docblocks-react-ui 0.18.1 → 0.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,87 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a093e2f: The canvas connector tool's press no longer starts a native text selection over
8
+ the page miniature's text under the pointer: the press's default stands
9
+ suppressed for the whole gesture, like the move and resize sessions.
10
+ - 89f6cf0: A dragged canvas item (and the page card) now gets its own composited layer
11
+ while the move or resize session is live: the WebKit family repaints the moved
12
+ item's selection ring unreliably over a transform-only change, leaving the ring
13
+ trailing behind the drag.
14
+ - 33cc913: A page-frame block whose canvas frame is wider than the page column is now
15
+ drawn uniformly downscaled to the column's width instead of being clipped at
16
+ its left and right edges; a frame that fits keeps its 1:1 scale.
17
+ - 9c9f55f: The caret seat at a mention chip's boundary now prefers the adjacent editable
18
+ text node over the chip's parent element slot: the WebKit family places a caret
19
+ next to a `contenteditable="false"` inline island unreliably and collapsed the
20
+ pick's caret to the block's end. The element slot stays the fallback when no
21
+ text stands on that side.
22
+ - 18386b1: The divider picked from the slash menu over a block with text no longer does
23
+ nothing: it lands right after the caret block (the trigger phrase strips, the
24
+ block keeps its text, the caret stays in it). A phrase-only block without
25
+ followers still takes the divider's slot.
26
+ - eed613c: The page view's transient surfaces no longer hang over the canvas: the slash
27
+ menu (with its pickers), the mention picker and its hover card, the link editor,
28
+ and the floating format toolbar close on the switch to the canvas view and are
29
+ not resurrected by switching back.
30
+
31
+ ## 0.19.0
32
+
33
+ ### Minor Changes
34
+
35
+ - f5c22cd: The image and file blocks resolve their bytes lazily: the metadata's lookup
36
+ (the store's `getMeta`) runs at mount and the bytes (`get` + the object URL)
37
+ wait for the block to enter the viewport's preload band (the viewport grown
38
+ by the `--docblocks-image-preload-margin` token, 200% by default; the blocks
39
+ above the fold on mount and the cover resolve eagerly). The new optional
40
+ `EditorProvider.blobLoading` prop (`"lazy"` by default, `"eager"` for the
41
+ previous behavior, inherited by nested providers) sets the policy. The new
42
+ optional `BlobMeta.width` / `BlobMeta.height` let the placeholder reserve the
43
+ image's aspect ratio, so the resolution never shifts the page. The resolved
44
+ `<img>` carries `loading="lazy"`, `decoding="async"`, and the metadata's
45
+ `width`/`height` (the box reserved before the decode).
46
+
47
+ ### Patch Changes
48
+
49
+ - bcb06c3: The code block's clipboard `text/html` payload now escapes the double quote
50
+ in the language's `class` attribute (and in the code's body). A hostile
51
+ `language` value (a free data string, reachable through a raw document
52
+ write or a markdown fence's info) could otherwise open a new HTML attribute
53
+ in the serialized payload and reach the clipboard of a third-party paste
54
+ target.
55
+ - b195fb8: The code block's language lookup uses the own-key stand only: a language value
56
+ standing on an `Object.prototype` key (such as `constructor` — reachable over
57
+ `updateBlock`, a markdown fence, or a peer write, since the attr is a plain
58
+ string) renders plain (no highlight layer) instead of resolving to the
59
+ inherited non-grammar value that crashed the block's render to its error
60
+ placeholder.
61
+ - 8c10428: The external-form database grid's write-tails over a pending row (the row
62
+ filtered out of the page) build their undo entries over the pre-operation
63
+ state seeded from the pending stand: the pending row's edit and its removal
64
+ are undoable (the removal's inverse is the row-restore over the `rowRestore`
65
+ capability), and the insert's entry no longer strands over a removed pending
66
+ row — undoing such a removal restores the row, and the following undo deletes
67
+ it over the restored row.
68
+ - 074f982: The enum column's edit form no longer deletes options added concurrently
69
+ over the open form. The commit's delete set is now the form's prefill (the
70
+ options the user saw) minus the kept, so an option an other client adds
71
+ while the form is open survives the save; the user's own removals over the
72
+ form still stand.
73
+ - 917abf8: The callout icon catalog and the canvas connector port lookup now use own-key
74
+ membership instead of the prototype-chain lookup. A prototype-key value kept
75
+ by the lenient reader over the wire data (`constructor`, `__proto__`, ...)
76
+ used to resolve through `Object.prototype`: the callout block crashed into
77
+ its error placeholder, and the connector endpoint resolved to NaN geometry.
78
+ - ad4696d: The standalone's `useTableList` catalog hook now re-reads the catalog over a
79
+ bridge identity change (a relink to a fresh bridge instance), in parity with
80
+ the `useDatabaseTable`'s re-bootstrap — the stale catalog over the previous
81
+ bridge no longer stands while mutations land on the new one.
82
+ - Updated dependencies [d58429f]
83
+ - docblocks-core@0.8.2
84
+
3
85
  ## 0.18.1
4
86
 
5
87
  ### Patch Changes
package/README.md CHANGED
@@ -1054,6 +1054,36 @@ dark set, so the swatch follows the theme flip). Override them on
1054
1054
  of hex or `var(…)` entries) to replace the swatches outright; a picked
1055
1055
  swatch always commits a concrete hex to the document.
1056
1056
 
1057
+ ### Page width
1058
+
1059
+ The page view renders the document's blocks in a centered column: the block
1060
+ content zone defaults to a 900 px maximum width (the `--docblocks-page-max-width`
1061
+ token), and the column's box adds the two gutter paddings around it (the derived
1062
+ `--docblocks-page-column-max-width`). A narrower viewport renders at the full
1063
+ available width — the maximum never over-constrains. The gutter (the row grip and
1064
+ its quick-insert) follows the column's edge, so it stays clear of the blocks at
1065
+ any width. The canvas view ignores the token: it owns its own full-bleed
1066
+ viewport.
1067
+
1068
+ Change the width by overriding the token on the editor root (the "Overriding
1069
+ individual values" pattern) — any length or percentage stands for a custom
1070
+ width:
1071
+
1072
+ ```css
1073
+ [data-slot="docblocks/editor"] {
1074
+ --docblocks-page-max-width: 1200px; /* a wider content zone */
1075
+ }
1076
+ ```
1077
+
1078
+ `none` stands for the full available width (the blocks span the editor's whole
1079
+ width, the gutter at the viewport's edge):
1080
+
1081
+ ```css
1082
+ [data-slot="docblocks/editor"] {
1083
+ --docblocks-page-max-width: none;
1084
+ }
1085
+ ```
1086
+
1057
1087
  ### Structure
1058
1088
 
1059
1089
  Structural styling hooks are `data-slot` attributes (`docblocks/editor`,