@noseberry/nbd-editor 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/nbd-editor.cjs.js +1 -1
- package/dist/nbd-editor.cjs.js.map +1 -1
- package/dist/nbd-editor.css +1 -1
- package/dist/nbd-editor.esm.js +1 -1
- package/dist/nbd-editor.esm.js.map +1 -1
- package/dist/nbd-editor.umd.js +1 -1
- package/dist/nbd-editor.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ The editor manages its own state internally. You interact with it through callba
|
|
|
80
80
|
- [Theming](#theming)
|
|
81
81
|
- [Keyboard Shortcuts](#keyboard-shortcuts)
|
|
82
82
|
- [Events](#events)
|
|
83
|
+
- [Changelog](#changelog)
|
|
83
84
|
- [Build from Source](#build-from-source)
|
|
84
85
|
- [License](#license)
|
|
85
86
|
|
|
@@ -575,6 +576,8 @@ All available tokens:
|
|
|
575
576
|
| `--fe-danger` | `#ef4444` | Destructive / error colour |
|
|
576
577
|
| `--fe-radius` | `6px` | Border radius |
|
|
577
578
|
| `--fe-font` | system-ui stack | Font family |
|
|
579
|
+
| `--fe-shadow-sm` | subtle shadow | Subtle shadow — used on cards and panels |
|
|
580
|
+
| `--fe-shadow-md` | medium shadow | Medium shadow — used on dropdowns and modals |
|
|
578
581
|
| `--fe-header-height` | `60px` | Height of the sticky header bar |
|
|
579
582
|
| `--fe-status-bar-height` | `32px` | Height of the bottom status bar |
|
|
580
583
|
| `--fe-content-font-size` | `15px` | Body text size inside blocks |
|
|
@@ -616,6 +619,22 @@ editor.on('input', (block) => { }); // Block content input
|
|
|
616
619
|
|
|
617
620
|
---
|
|
618
621
|
|
|
622
|
+
## Changelog
|
|
623
|
+
|
|
624
|
+
### v1.1.1
|
|
625
|
+
|
|
626
|
+
**Bug fixes**
|
|
627
|
+
|
|
628
|
+
- **List blocks** — bullet and ordered-list blocks now initialize with the correct `<ul><li>` / `<ol><li>` structure. Previously, empty list blocks rendered a bare `<br>`, which caused broken list editing behavior on first interaction.
|
|
629
|
+
- **Focus reliability** — block focus and caret positioning after clicking a block now uses double `requestAnimationFrame` instead of `setTimeout(0)`, preventing occasional cases where the caret landed in the wrong position before the DOM had fully painted.
|
|
630
|
+
|
|
631
|
+
**Improvements**
|
|
632
|
+
|
|
633
|
+
- **Click-to-deselect** — clicking anywhere on the editor canvas outside a block now deselects the active block and returns the editor to its idle state.
|
|
634
|
+
- **Theme tokens** — two new elevation CSS variables are available: `--fe-shadow-sm` and `--fe-shadow-md`. All CSS variable defaults have been refreshed to a cleaner, more neutral palette (new accent `#3b82f6`, updated greys, semantic colours, and layout tokens).
|
|
635
|
+
|
|
636
|
+
---
|
|
637
|
+
|
|
619
638
|
## Build from Source
|
|
620
639
|
|
|
621
640
|
```bash
|