docblocks-react-ui 0.29.2 → 0.31.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,85 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 957bb52: The connectors bend: the line's toolbar adds a waypoint at the route's
8
+ middle segment, the waypoint's dot drags the route's corner (one
9
+ `updateBlock` on the release — the endpoints stay the block refs, the route
10
+ re-derives through the stored points), and the dot's double-click removes
11
+ the point (an empty route drops the attr). The route stands the stored
12
+ `points`, so it persists over the wire, the reload and the undo.
13
+ - 858d145: The canvas containers read as one visual language: the group box stands the
14
+ frame's own ring token and the ring's width, so a container's border is a
15
+ single 2 px muted line (previously a 1 px table line on the group and a
16
+ fainter one on the frame — both lost among brightly stroked figures at a
17
+ low zoom). The title chips carry the same resting border. Rendering only:
18
+ the document data is untouched.
19
+ - ef0baf9: The canvas's floating toolbars stay inside the canvas's visible area: the
20
+ shape, canvas-text and container toolbars flip below the box when the box
21
+ stands too close to the canvas's top edge (the above-the-box stand left the
22
+ canvas and landed under the consumer's header, where no press reached it)
23
+ and clamp inside the canvas's width. The toolbars themselves render
24
+ unpositioned — the canvas view owns their placement.
25
+
26
+ ### Patch Changes
27
+
28
+ - f555207: The canvas marquee no longer takes a container's box for its contents: a
29
+ container or frame is swept by the marquee's border band only (its interior
30
+ stands transparent, the press hit's parity), so a rubber band drawn inside
31
+ a frame takes the figures it crosses; a container whose members stand in
32
+ the marquee yields to them.
33
+ - c07c522: The link popover opens at the selection without moving the document: the
34
+ popover's box stands at the anchor from its first frame (it no longer lays
35
+ out at the editor content's end, where the native focus scroll pulled the
36
+ whole page) and the address input takes the focus without scrolling. A long
37
+ article keeps the reader's position over the open.
38
+ - 4e35a36: The link popover's close restores the text selection: the address input's
39
+ focus collapsed the browser selection, so the Escape (and every other close
40
+ of the popover) left the reader without the highlight and without the copy
41
+ payload. The close now re-seats the DOM selection from the editor's own
42
+ selection, and the focus park takes no scroll.
43
+ - 63474c0: The paste's caret-block tail keeps its run structure: a paste into the
44
+ middle of a line re-inserts the text after the caret with its marks
45
+ (`link`, `bold`, `italic`, …), so the tail no longer degrades to plain
46
+ text. Both paste branches (the plain-text markdown materialization and the
47
+ rich html one) read the tail's runs before the caret block is split and
48
+ re-insert them through the per-run insertion; the single transaction and
49
+ the single undo step stand.
50
+
51
+ ## 0.30.0
52
+
53
+ ### Minor Changes
54
+
55
+ - 52822ae: The empty page's input stand: a full-document empty page (the edit mode)
56
+ stands a visible, focusable caret home (the command-palette placeholder's
57
+ affordance) while the root holds no blocks, so a newly created or peer-emptied
58
+ document is editable again. The arrival stands nothing — the untouched doc
59
+ gains no block and no version (the no-phantom-version invariant holds). The
60
+ first gesture (the click over the stand, or the first input over a pure
61
+ container position) materializes the first paragraph: a fresh id (the
62
+ reserved `${docId}-tail` stays free for the trailing-paragraph guarantee, so
63
+ a later non-text tail still stands its editable trailing line) and seats the
64
+ caret in it; the stand unmounts over the real block's row. The read-only
65
+ empty page stands no stand.
66
+ - 1459e60: The table's auto-sizing stand: a table with no stored `columnWidths`
67
+ (the import / the paste / the slash insert's stand) renders its columns
68
+ over the first row's text (one line without the wrap, the 50 px minimum
69
+ floor), stretched proportionally to the page column's content width — the
70
+ table spans the content. A sum over the container stands un-stretched
71
+ (the overflow scrolls). The first seam resize (the pointer's drag or the
72
+ keyboard's step) materializes the layout: the commit stores the full width
73
+ array in one transaction, and the undo reverts to the auto stand. A table
74
+ with stored `columnWidths` stands them un-stretched (the explicit stand's
75
+ priority). The slash's Table insert now stands a widthless table (the auto
76
+ stand) instead of the fixed 100 px default widths.
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [d7807c7]
81
+ - docblocks-core@0.14.0
82
+
3
83
  ## 0.29.2
4
84
 
5
85
  ### Patch Changes
package/README.md CHANGED
@@ -207,6 +207,14 @@ document data, never on the wire):
207
207
  off); the read-only gestures keep (scroll, the embed pan / zoom, the
208
208
  canvas wheel zoom / pan). Consecutive empty text blocks render as one
209
209
  over the read-only modes (the document data is untouched).
210
+ - **The empty page's input stand (the `edit` mode only):** a full-document
211
+ empty page (the root holds no blocks) stands a visible, focusable caret
212
+ home (the command-palette placeholder's affordance) so a newly created or
213
+ peer-emptied document is editable. The arrival stands nothing — the
214
+ untouched doc gains no block and no version; the first gesture (the click
215
+ over the stand, or the first input over a pure container position)
216
+ materializes the first paragraph and seats the caret in it, and the stand
217
+ unmounts over the real block. The read-only empty page stands no stand.
210
218
  - Copy: the `view` mode's text stands selectable and copyable (the
211
219
  editor's payload keeps the marks, the mentions, and the cross-block
212
220
  ranges); a native table block copies as a spreadsheet's grid (the
@@ -309,6 +317,12 @@ attach(doc, provider);
309
317
  span the grid fits; the parse never throws and the same payload always
310
318
  imports the same document. The markdown path carries no merged cells (GFM
311
319
  cannot express them);
320
+ - a table imported from markdown / HTML stores no `columnWidths` — the
321
+ renderer auto-sizes a table with no stored widths: the columns stand the
322
+ first row's text (one line, the 50 px minimum) stretched proportionally
323
+ to the page column's content width, and the first seam resize
324
+ materializes the layout (the stored `columnWidths` from then on). A table
325
+ with stored `columnWidths` stands them un-stretched;
312
326
  - an empty or whitespace-only payload is a no-op (no transaction);
313
327
  - a non-fresh document (the root has children) throws the typed
314
328
  `ImportDocumentError` — the import fills the root, it never appends;