feat: enhance embed block resizing, improve bookmark viewMode reactivity, and redesign tests panel UI

- Fixed bookmark block viewMode not updating on block changes by converting to setter/getter pattern with cached property
- Enhanced embed block with persistent resize handles using opacity transitions instead of DOM changes to prevent iframe flashing
- Improved YouTube URL handling to support watch, youtu.be, shorts, and embed formats with normalized embed URLs
- Added iframe permissions (
This commit is contained in:
2025-11-20 22:00:15 -05:00
parent 6b47ec39ff
commit 843258be44
8 changed files with 319 additions and 75 deletions
+17
View File
@@ -0,0 +1,17 @@
---
titre: NewPage
auteur: Bruno Charest
creation_date: 2025-11-21T02:01:06.468Z
modification_date: 2025-11-20T21:01:07-04:00
catégorie: ""
tags: []
aliases: []
status: en-cours
publish: false
favoris: false
template: false
task: false
archive: false
draft: false
private: false
---
+15
View File
@@ -0,0 +1,15 @@
---
titre: "NewPage"
auteur: "Bruno Charest"
creation_date: "2025-11-21T02:01:06.468Z"
modification_date: "2025-11-21T02:01:06.468Z"
status: "en-cours"
publish: false
favoris: false
template: false
task: false
archive: false
draft: false
private: false
---
+2 -2
View File
@@ -1,8 +1,8 @@
---
titre: test-file
auteur: Bruno Charest
creation_date: 2025-10-23T13:00:42-04:00
modification_date: 2025-10-23T13:00:42-04:00
creation_date: 2025-11-20T16:27:20-04:00
modification_date: 2025-11-20T16:27:20-04:00
catégorie: ""
tags: []
aliases: []
+3
View File
@@ -0,0 +1,3 @@
# Test File
This is a test file for API testing.
+7 -15
View File
@@ -2,29 +2,21 @@
title: "Éditeur Nimbus — Section Tests"
nimbusEditor: true
documentModelFormat: "block-model-v1"
tags:
- test2
- configuration
- bruno
- titi
---
```json
{
"id": "block_1763149113471_461xyut80",
"title": "Page Tests",
"blocks": [
{
"id": "block_1763664525710_yg13o2ra5",
"type": "embed",
"props": {
"url": "https://www.youtube.com/watch?v=9z1GInFvwA0",
"provider": "generic"
},
"meta": {
"createdAt": "2025-11-20T18:48:45.710Z",
"updatedAt": "2025-11-20T18:48:53.317Z"
}
}
],
"blocks": [],
"meta": {
"createdAt": "2025-11-14T19:38:33.471Z",
"updatedAt": "2025-11-20T18:48:53.317Z"
"updatedAt": "2025-11-21T02:28:15.835Z"
}
}
```