docblocks-react-ui 0.12.0 → 0.13.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 +160 -0
- package/README.md +9 -0
- package/dist/{Editor-BhnGAuCO.mjs → Editor-dcSgC9ho.mjs} +6315 -4241
- package/dist/{index-BRYlGI3B.d.mts → index-BA6ZzJK8.d.mts} +53 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +1 -1
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +37 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,165 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8c597ab: The canvas's created and pasted figures join their container: a shape or a
|
|
8
|
+
canvas-text whose centre stands inside a container's box becomes a member of
|
|
9
|
+
the top-most such container in the same transaction as the insert — one undo
|
|
10
|
+
step — and leaves every earlier owner, so a figure never stands in two
|
|
11
|
+
containers. The dock's placement tools, the ghost text block's entry, the pen
|
|
12
|
+
stroke, and the paste path stand it; the container, the frame and the
|
|
13
|
+
connector never join automatically, and a pasted fragment's own members keep
|
|
14
|
+
the fragment's membership (only the fragment's top-level figures join the
|
|
15
|
+
target container).
|
|
16
|
+
- 916a2a4: The canvas's drill-down reaches the objects covered by another one: the Alt
|
|
17
|
+
press steps the stack of the objects under the point (from its top, wrapping)
|
|
18
|
+
and the plain repeat press steps the same way over a click — a drag still
|
|
19
|
+
moves the pressed object. The session is positional (the stack is recomputed at
|
|
20
|
+
each press, the clicks near the previous point step on), a camera or tool move
|
|
21
|
+
drops it, and a transient `i / N` chip at the click point names the selected
|
|
22
|
+
candidate's position (the touch tap steps over the wider radius). The Alt
|
|
23
|
+
press suppresses the double-click's inline entries, and on touch the inline
|
|
24
|
+
edit's entry stands off right after a step.
|
|
25
|
+
- c5d44f6: The canvas's Escape drills up: a single selected member stands its parent
|
|
26
|
+
container selected — the top-most owner by the paint order, the innermost over
|
|
27
|
+
a tie — one level per press, a local view state's step (no write, no wire
|
|
28
|
+
update). The active states cancel first: an in-flight tool, session or
|
|
29
|
+
drill-down step stands off, and only the clean state walks the containers.
|
|
30
|
+
- b8e3dc9: The canvas's frame stands a first-class z-order element: the `frame` type
|
|
31
|
+
joins the surface's canvas elements' z-order (the explicit `zIndex` over
|
|
32
|
+
the frame's registry spec, the `setZOrder`'s reorder over the frames, the
|
|
33
|
+
dense mirror's normalization / the strict validation's parity), and the
|
|
34
|
+
frame's render's view-back's pin stands off — the paint order is the
|
|
35
|
+
surface's children's order over every canvas type (the frame stands its
|
|
36
|
+
data's slot; the legacy documents' frames stand their existing slots — no
|
|
37
|
+
migration). The selection's toolbar stands unified over the canvas's types:
|
|
38
|
+
the single `group` (the container) / the single `frame` selection renders
|
|
39
|
+
the standard arrange's toolbar (the z-order's menu — the bring-forward /
|
|
40
|
+
to-front / send-backward / to-back's picks, one `setZOrder` each, the edge
|
|
41
|
+
states disabled) — the same mechanism over the shapes (the container and
|
|
42
|
+
the frame carry no style attrs of their own, so the menu is the toolbar's
|
|
43
|
+
whole content). The strict validator's all-or-nothing invariant now spans
|
|
44
|
+
the frame (the load's path is unchanged — the snapshot's normalization
|
|
45
|
+
runs before the validation; a pre-upgrade snapshot validated directly
|
|
46
|
+
stands the frame's index's gap over the strict's read).
|
|
47
|
+
- ddf1773: The canvas's block press stands on one hit resolver over the geometry instead
|
|
48
|
+
of the DOM's paint order. The press zones are the shape's box (a figure set to
|
|
49
|
+
no fill stands its outline's band, an invisible figure its box), the
|
|
50
|
+
canvas-text's box, the container's and the frame's border band — their
|
|
51
|
+
interiors pass the press through — and the connector's stroke band along the
|
|
52
|
+
rendered route (the straight / orthogonal / curved variants over the resolved
|
|
53
|
+
endpoints, the same geometry the label's inline edit reads). The tolerance is
|
|
54
|
+
screen px, so the bands keep their on-screen reach at any zoom, and the
|
|
55
|
+
drill-down's candidate stack follows the paint order with a member lifted above
|
|
56
|
+
every container that lists it.
|
|
57
|
+
- d8e22ce: The canvas container / frame title chips stand over the screen layer above
|
|
58
|
+
the world's paint order: a filled figure painted over the box — the chip's
|
|
59
|
+
own seat above the box's top edge included — no longer takes the chip's
|
|
60
|
+
press, so the covered container and the frame stay selectable and movable
|
|
61
|
+
by their chips. The chip keeps its on-screen size at any zoom (the seat is
|
|
62
|
+
the live box's screen projection: it rides the in-flight move / resize
|
|
63
|
+
preview and the camera) and renders only over the viewport's culled-in
|
|
64
|
+
items; the read-only modes render it inert. The chip's press keeps the
|
|
65
|
+
item's contract (the shift toggle, the multi-selection's group drag, the
|
|
66
|
+
focus park, the pointer capture), and its double-click enters the title's
|
|
67
|
+
inline edit through the chip's own block identity.
|
|
68
|
+
- bd6a97a: The consumer-owned description contract (the `docDescription` provider
|
|
69
|
+
prop): the description stands out of the document's data — the
|
|
70
|
+
consumer's store is the source (the document never stores or syncs it),
|
|
71
|
+
and the panel's `description` row displays the passed value and reports
|
|
72
|
+
the user's edit over the `onEdit` callback (the panel's inline editor's
|
|
73
|
+
commit — the entered string verbatim; the empty string stands the
|
|
74
|
+
removal's stand — the consumer clears its store over the callback; the
|
|
75
|
+
row's removal's affordance stands over the non-empty's value and commits
|
|
76
|
+
the empty string's stand). Without
|
|
77
|
+
`onEdit` the row stands display-only (over the edit mode too). Over the
|
|
78
|
+
prop's presence the row stands out of the `renderAttribute`'s reach
|
|
79
|
+
(the consumer's value is the source). Without the prop the row keeps the
|
|
80
|
+
built-in stand (the value over the doc's `attributes.description`
|
|
81
|
+
record); the legacy's stored `attributes.description` stands inert over
|
|
82
|
+
the prop's presence (the migration's read over `doc.meta.attributes`),
|
|
83
|
+
and the frontmatter's import keeps writing it (the data's stand — the
|
|
84
|
+
panel is decoupled).
|
|
85
|
+
- 2c001eb: The canvas shape tools' dock placement creates shapes with the neutral
|
|
86
|
+
default fill (`#e9ecef`): a new figure has a modest body (the
|
|
87
|
+
Miro/Figma look) instead of a stroke-only figure, and the fill palette
|
|
88
|
+
is the override (the explicit "none" entry keeps the stroke-only
|
|
89
|
+
annotation frame). The pen's stroke (the `points` path) is created
|
|
90
|
+
without a fill (its path renders the stroke only); the hit model is
|
|
91
|
+
unchanged (an absent fill is a normal figure, the explicit "none"
|
|
92
|
+
keeps the outline zone). Existing documents are untouched (no
|
|
93
|
+
migration — the default applies to the placement only), and the dark
|
|
94
|
+
theme applies the hex's dark neutral value at render (the data keeps
|
|
95
|
+
the source hex).
|
|
96
|
+
- 531a656: The view mode's text stands selectable and copyable: the read-only live
|
|
97
|
+
document keeps the native selection over the page (the editing surfaces
|
|
98
|
+
stay off — no caret, no write), and the editor's copy payload serves it —
|
|
99
|
+
the same to-html/to-text serialization as the edit mode's (the marks, the
|
|
100
|
+
`@label` mentions, the cross-block ranges). The published stand keeps the
|
|
101
|
+
selection's ban: no range, no copy (the reader's stand on the rendered
|
|
102
|
+
page only). The editor root carries the resolved mode over the new
|
|
103
|
+
`data-mode` structural hook (`data-readonly` stays for both read-only
|
|
104
|
+
stands); the canvas world keeps the no-select stand over the view mode
|
|
105
|
+
(the native range would fight the pan's drag).
|
|
106
|
+
|
|
107
|
+
A native table block now copies as a spreadsheet's grid: the html flavor
|
|
108
|
+
carries a real `<table>` (the rows and the columns in the table's own
|
|
109
|
+
order, a cell's line breaks as `<br>`) and the plain flavor the TSV — the
|
|
110
|
+
pasted cells land in a spreadsheet's grid instead of a column of lines.
|
|
111
|
+
The table's covered cells stand the copy's unit (a partially covered
|
|
112
|
+
endpoint cell is included whole), the block's own selection (the row's
|
|
113
|
+
gutter press) copies the whole grid, and the table pieces stand in place
|
|
114
|
+
over a cross-block range (the surrounding blocks keep their lines).
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- 803c2be: The canvas view's culling no longer thins the surface's siblings' block
|
|
119
|
+
context: the off-viewport items' keep set stands the rendered wrappers
|
|
120
|
+
only, and the connector's endpoint resolution stands the surface's full
|
|
121
|
+
children over their committed geometry. A connector whose endpoint block
|
|
122
|
+
is off-viewport (out of the culling's margin's band) stood dropped
|
|
123
|
+
(`data-missing`, the line's no render) with the label chip orphaned —
|
|
124
|
+
the line now stands drawn over its visible spans (the line's own cull
|
|
125
|
+
box over its endpoints' boxes' union still decides its mount), and the
|
|
126
|
+
label chip's midpoint's read stands the full list (no culling-induced
|
|
127
|
+
drop).
|
|
128
|
+
- 9b16229: The canvas culling's margin stands the screen px over every zoom (the
|
|
129
|
+
1/zoom's world's conversion in the visible world rect's math): the
|
|
130
|
+
band's on-screen width stands constant (300 px), so the off-viewport
|
|
131
|
+
items pop in over the pan's edge at a constant on-screen distance
|
|
132
|
+
instead of shrinking over the zoom (the 75px stand over the 25% fit).
|
|
133
|
+
The tradeoff: the band stands wider over the world at the low zooms —
|
|
134
|
+
the heavy canvas's mounted DOM grows over the zoom-out (the culling's
|
|
135
|
+
performance stand's documented cost).
|
|
136
|
+
- a8a7bdc: The canvas frame's interior stands pointer-transparent: a press inside the
|
|
137
|
+
frame's box reaches the figure under it (the page miniature over the empty
|
|
138
|
+
region), so the region marker no longer shields the figures it covers. The
|
|
139
|
+
frame keeps its own press targets — the boundary's border's hit band and
|
|
140
|
+
the title chip — which select the frame and start its move, the container's
|
|
141
|
+
idiom's parity.
|
|
142
|
+
- 754a210: The canvas's world-space strokes stand the min-screen stand: the
|
|
143
|
+
connector's line and the shape's border read the data's width over the
|
|
144
|
+
1/zoom's compensation (the CSS `max()` over the world's inverse-zoom's
|
|
145
|
+
variable), so they stand at least 1 screen-px wide over the zoom's < 1
|
|
146
|
+
(the dark data color's sub-pixel thinning's fix — the dark line over the
|
|
147
|
+
dark canvas no longer falls below the visibility threshold at the fit's
|
|
148
|
+
zoom). The zoom's >= 1 stands the data's verbatim (the line's
|
|
149
|
+
thickening's parity), and the data's stand stands the `stroke-width`
|
|
150
|
+
attribute (the render's compensation is the style). The stand resolves
|
|
151
|
+
natively over the zoom's flip (the no per-item re-render's stand).
|
|
152
|
+
- 2f51dfa: The canvas view's entry stands the fit over the stale stored viewport:
|
|
153
|
+
the restored zoom / pan's rect over the content's box — the empty's
|
|
154
|
+
intersection (the off-document's pan's stand: the storage's drift over
|
|
155
|
+
the content's / the container's size's change) stands the fit (the fit
|
|
156
|
+
button's stand), the partial's intersection stands the restore (the
|
|
157
|
+
zoomed-in's stand — the visible's rect over the content's box — is
|
|
158
|
+
kept). The empty canvas's stand (no content) stands the restore (the
|
|
159
|
+
fit's no-op's parity).
|
|
160
|
+
- Updated dependencies [b8e3dc9]
|
|
161
|
+
- docblocks-core@0.6.0
|
|
162
|
+
|
|
3
163
|
## 0.12.0
|
|
4
164
|
|
|
5
165
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -201,6 +201,15 @@ document data, never on the wire):
|
|
|
201
201
|
off); the read-only gestures keep (scroll, the embed pan / zoom, the
|
|
202
202
|
canvas wheel zoom / pan). Consecutive empty text blocks render as one
|
|
203
203
|
over the read-only modes (the document data is untouched).
|
|
204
|
+
- Copy: the `view` mode's text stands selectable and copyable (the
|
|
205
|
+
editor's payload keeps the marks, the mentions, and the cross-block
|
|
206
|
+
ranges); a native table block copies as a spreadsheet's grid (the
|
|
207
|
+
`text/html` flavor is a real `<table>`, the `text/plain` one the TSV —
|
|
208
|
+
the block's own selection copies the whole table). The `published`
|
|
209
|
+
mode stands no selection and no copy (the reader gets the rendered page
|
|
210
|
+
only). The editor root carries the resolved mode over the `data-mode`
|
|
211
|
+
attribute (the styling hook; `data-readonly` marks both read-only
|
|
212
|
+
modes).
|
|
204
213
|
- Publishing is a consumer action: snapshot the doc state (`doc.encode()`
|
|
205
214
|
or `doc.toJSON()`), persist it where the reader loads it from, and
|
|
206
215
|
hydrate it (`loadDoc` / `fromJSON`) — for the `editor`'s `published`
|