docblocks-react-ui 0.9.0 → 0.10.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d51bd43: **Consumer-owned tags: the `docTags` contract (the document's no-storage's
8
+ stand).**
9
+
10
+ The `tags` row of the document-attributes panel no longer reads or writes
11
+ the document's `attributes.tags` record: the tags are never document data
12
+ (a consumer that stores its tags in its own database no longer races the
13
+ document's copy). The consumer passes the tags over the new `docTags`
14
+ provider prop and the panel displays the passed list and reports the
15
+ user's tag actions:
16
+
17
+ - `docTags.tags` — the document's tags (`{ id, label }[]`; the
18
+ consumer's type may extend it — the extra fields stay opaque);
19
+ - `docTags.onTagAdd` — the add affordance's click (the consumer opens its
20
+ own creation's UI — the tag's picker over its catalog, the creation's
21
+ flow; the package opens nothing);
22
+ - `docTags.onTagRemove(tag)` — the chip's removal (the consumer removes
23
+ over its own store and passes the updated list back over `tags`);
24
+ - `docTags.onTagClick(tag, event)` — the chip's click (the native
25
+ `MouseEvent`; the package opens nothing and preventDefaults nothing —
26
+ the navigation's stand is the consumer's); it stands over the read-only
27
+ modes too (the observing gesture's parity).
28
+
29
+ **Breaking (the 0.x's minor's stand)**: the `tagEditor` provider prop (and
30
+ its `TagEditor` / `TagEditorProps` types, exported since 0.9.0) is removed
31
+ — its contract committed the list into the document (the
32
+ `onTagsChange`'s `setAttribute`), which the consumer-owned stand
33
+ supersedes. A consumer on 0.9.x migrates over the `docTags`'s contract
34
+ (the chips' display stands unchanged); the legacy's stored
35
+ `attributes.tags` data stays readable over `doc.meta.attributes`
36
+ (migration's read) and the markdown frontmatter's import keeps writing it
37
+ (the data's stand — the panel is decoupled from the record).
38
+
39
+ ## 0.9.1
40
+
41
+ ### Patch Changes
42
+
43
+ - 942538d: **A paste over the full document selection replaces the selection instead
44
+ of wiping the document.**
45
+
46
+ Over the range the seam's absence (the whole-document delete stands no
47
+ seam) previously dropped the paste payload and cleared the document of all
48
+ blocks with no undo restore and an unplaceable caret. Now, when the
49
+ selection's delete consumes the whole document and no seam remains, a
50
+ fresh empty paragraph is inserted at the root as the paste seat and the
51
+ payload materializes into it (one transaction, one undo step); a
52
+ whitespace-only full paste leaves the editable empty seat. Partial
53
+ cross-range pastes are unchanged.
54
+ - 19ba6b7: **Keyboard gestures over cross-block ranges: the continuation's stands.**
55
+
56
+ - **Shift+ArrowUp/ArrowDown now chains over the cross-block range** — the
57
+ former stand collapsed the selection on the second press (the browser's
58
+ anchor read-back flips over the editor's backward cross seat, and the
59
+ continuation re-based the range over the far end). The editor now owns
60
+ the vertical extension over the cross range: the moving end stands the
61
+ selection's direction (the user's anchor's identity), a single-line
62
+ block's end crosses to the adjacent text block (the non-text siblings
63
+ skipped, the empty blocks' stand), and a multi-line block's inner line
64
+ keeps the browser's native line walk.
65
+ - **Ctrl/Meta+Home and Ctrl/Meta+End seat the caret over the document's
66
+ edges** (the first text block's start, the last's end) and scroll the
67
+ caret into view — the browser's native stand degenerates over the
68
+ page's nested editables (the Ctrl+Home's no-move's stand).
69
+ - **Ctrl/Meta+A stands over the read-only modes too** (the view /
70
+ published's document zone — the former stand let the browser's
71
+ select-all take the consumer's whole page).
72
+ - d4e76ab: **Editor selection gestures: the native stands.**
73
+
74
+ - **Ctrl/Meta+A now selects the whole document** over the page's nested
75
+ editables, where the browser's own select-all degenerates (the Chromium's
76
+ stand: a collapsed caret at the document's end instead of the full
77
+ selection). The editor seats the whole-document selection itself (the
78
+ first text block's start to the last text block's end, the cross-block
79
+ range the copy/paste/delete's cross paths stand over); form controls and
80
+ the canvas view keep their own select-all.
81
+ - **A click-then-Shift+click extends the selection across the blocks** —
82
+ the browser's native shift+click extension stands (the former stand tore
83
+ down the session and suppressed the default, which killed the native
84
+ extension and let the focus fall to the document body).
85
+
3
86
  ## 0.9.0
4
87
 
5
88
  ### Minor Changes