docblocks-react-ui 0.11.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 +263 -0
- package/README.md +9 -0
- package/dist/{Editor-g5aY0giB.mjs → Editor-dcSgC9ho.mjs} +18240 -15156
- package/dist/Maximize-BBHnCDWL.mjs +24 -0
- package/dist/{index-DPLVe3Mf.d.mts → index-BA6ZzJK8.d.mts} +65 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +438 -9
- package/dist/pdf/index.d.mts +1 -1
- package/dist/pdf/index.mjs +1 -22
- package/dist/styles.css +37 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,268 @@
|
|
|
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
|
+
|
|
163
|
+
## 0.12.0
|
|
164
|
+
|
|
165
|
+
### Minor Changes
|
|
166
|
+
|
|
167
|
+
- 086e514: The canvas figure's fill stand over the themes (the render-time's transform,
|
|
168
|
+
no document data change): the light theme stands the fixed-hex fill verbatim
|
|
169
|
+
(import fidelity), the dark theme stands the light fixed fill darkened (the
|
|
170
|
+
dark corridor — the hue kept, the lightness over the dark, the saturation
|
|
171
|
+
reduced; dark fills pass through; palette-token fills are unchanged in both
|
|
172
|
+
themes). The figure text without an explicit `textColor` resolves the
|
|
173
|
+
contrast against the effective fill (black or white by the better WCAG
|
|
174
|
+
contrast; an explicit `textColor` always wins). The dark-class flip
|
|
175
|
+
re-renders the figures with no wire writes and no document-state mutation;
|
|
176
|
+
the strokes pass through unchanged.
|
|
177
|
+
- 43e2183: The canvas figure's stroke and the connector's line color stand the same
|
|
178
|
+
themes' transform as the fill (the render-time's dark corridor): over the
|
|
179
|
+
dark theme a light fixed-hex `stroke` (the shape's border) and `strokeColor`
|
|
180
|
+
(the connector's line, the arrowheads, and the label chip's frame) stand the
|
|
181
|
+
darkened's value; dark values and the theme tokens pass through, and the
|
|
182
|
+
light theme stands the data verbatim. The document keeps the source hex (no
|
|
183
|
+
wire writes, no persistence).
|
|
184
|
+
- d97a429: The floating format toolbar's color palette (the text's `color` / the
|
|
185
|
+
background's `highlight` target) stands the reset's affordance: a cross
|
|
186
|
+
button after all the palette's swatches clears the active target's mark
|
|
187
|
+
(`unsetMark`). The other palettes (the callout's background, the table's
|
|
188
|
+
handles, the canvas's fill / stroke) keep the transparent's "no color"
|
|
189
|
+
swatch.
|
|
190
|
+
- acb03c6: The mermaid diagram preview's viewport (the `./mermaid` subpath): the diagram now renders over a pan/zoom viewport — the `ctrl`/`cmd` + wheel's zoom at the cursor (0.25–4x), the plain wheel's vertical pan, the drag's pan, and the hover toolbar (zoom in / out, the percent label, the fit-to-view button, the reset) over the diagram. The fit stands the diagram into the visible viewport (capped at 100% — the small diagram stands its natural size, centered); the reset restores the default view. The view persists over the code block's new optional `zoom` / `panX` / `panY` attrs (the null idiom — the reload restores the view, the panes share it over the wire; the persisted coordinate stands the clamped stand — the sub-wrapper content's centering offset is the identity's canonical coordinate, so the peer's adopt stands the no-write parity). The bottom-edge's resize (the editing mode's stand) stretches / clips the diagram's height over the new optional `height` attr (absent = the diagram's natural's height — the auto's stand; the drag's linear stand over the pointer delta, the keyboard's step per press). The attrs are additive over the `code` block's schema; the code mode stands the attrs inert.
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- The shape and canvas-text toolbars' text color section stands the reset's
|
|
195
|
+
cross — the none's button over the row's tail (the after-all-the-colors'
|
|
196
|
+
position, the page's format palette's parity): the active stand over the
|
|
197
|
+
`textColor`'s set, the inert stand over the unset color (the pick is a
|
|
198
|
+
no-op). The pick removes the `textColor` attr over the core's
|
|
199
|
+
`removeBlockAttr` (one transact, one undo step) and returns the text to
|
|
200
|
+
the no-color's stand — the contrast's resolution over the effective fill
|
|
201
|
+
(or the theme's foreground when the fill stands none) — in the shape and
|
|
202
|
+
the canvas-text alike. The color's sections keep the transparent swatch's
|
|
203
|
+
none over the fill / stroke / line / label palettes (their data's "none"
|
|
204
|
+
stand) — the cross is the text color's affordance only.
|
|
205
|
+
- 049735e: The canvas-text's figure stands the side insets from the box's edges
|
|
206
|
+
(the shape's text's padding parity — the rect's 8 px x): the item's
|
|
207
|
+
wrapper carries the horizontal padding inside the box (the border-box's
|
|
208
|
+
stand — the selection's frame and the item's geometry are unmoved, the
|
|
209
|
+
text's wrap width stands the inset's width). The double-click's ghost
|
|
210
|
+
stands the same inset (the commit's visual continuity — the typed text
|
|
211
|
+
stands where the committed text stands).
|
|
212
|
+
- 64abd94: Improved the canvas view's re-render contract for large canvases (several
|
|
213
|
+
thousands of figures and connectors): the viewport state (the in-flight
|
|
214
|
+
session's previews — the move / the resize, the connector endpoint's
|
|
215
|
+
drag, the keyboard focus) stands in a per-view zustand store, and the
|
|
216
|
+
canvas items / connector lines / port dots / label chips subscribe to
|
|
217
|
+
their own narrow slices (a pointermove re-renders only the items and the
|
|
218
|
+
lines the preview touches, never the resting surface). The surfaces'
|
|
219
|
+
chrome re-render keys over a structural chrome stamp (a content-only
|
|
220
|
+
change stands no re-render of the chrome). The off-viewport items stand
|
|
221
|
+
no DOM of their own (the viewport's culling over the visible world rect
|
|
222
|
+
+ the 300px margin — the off-viewport figures / connectors mount / unmount
|
|
223
|
+
over the pan's bring-in / take-out; the in-flight session's items stand
|
|
224
|
+
un-culled). The canvas view's module set stands split by responsibility
|
|
225
|
+
(the world assembly, the world-space overlays, the screen-space chrome,
|
|
226
|
+
the selection's overlay, the per-line / per-item math).
|
|
227
|
+
- 9efe1d4: Fixed the code block's caption line losing the focus (and the empty line
|
|
228
|
+
unmounting) over a press of the caption's button while a caret stood in
|
|
229
|
+
the code: the page container's stranded-caret re-seat mistook the form
|
|
230
|
+
control's focus residue (the document selection standing a collapsed caret
|
|
231
|
+
at a container position while the input holds the focus) for a stranded
|
|
232
|
+
caret and re-seated it into the block on every frame, blurring the
|
|
233
|
+
just-seated input. The re-seat now stands no while a form control inside
|
|
234
|
+
the container holds the focus (the control's landing stands a genuine
|
|
235
|
+
one).
|
|
236
|
+
- de984b6: The code block's copy button now copies the `text/html` payload (the `PRE`
|
|
237
|
+
over the code's child, the `language-*` class on the `code` element) plus
|
|
238
|
+
the `text/plain` fallback — the paste into a text block materializes the
|
|
239
|
+
code block verbatim through the rich pipeline (the plain payload's
|
|
240
|
+
markdown pipeline stood the distortion: the newlines collapsed, the
|
|
241
|
+
indentation lost, the markdown-flavored lines re-blocked — the `---` to
|
|
242
|
+
the divider, the `# x` to the heading, …). The rich pipeline now reads
|
|
243
|
+
the `language-*` class back over the `PRE`'s materialization (the
|
|
244
|
+
language's round-trip's stand — over the `PRE`'s own class or the
|
|
245
|
+
`code`'s child's, the producer's convention's positions); the paste into
|
|
246
|
+
the code block keeps the plain payload's stand (the `plainWins`'s gate),
|
|
247
|
+
and the external apps receive the plain fallback unchanged (the legacy
|
|
248
|
+
engines without `ClipboardItem` stand the plain write).
|
|
249
|
+
- 7b7917c: The link's click over the edit's mode: the browser cancels the anchor's
|
|
250
|
+
navigation default inside the contenteditable (the caret's seat stands),
|
|
251
|
+
so a clicked link stood dead — the editor now opens the href itself over
|
|
252
|
+
the new tab's stand (`noopener,noreferrer`, the `window.open`'s
|
|
253
|
+
gesture's call) — the edit and the view's modes stand the same contract
|
|
254
|
+
(the reader's same-tab's carry-away's off), the editor's state stands
|
|
255
|
+
untouched (the caret's seat and the focus are the mousedown's default's
|
|
256
|
+
work — preserved; no write, no navigation). A press-drag over the link
|
|
257
|
+
(the selection's gesture) stands no open (the down/click distance's
|
|
258
|
+
guard); the modified clicks and the middle-click stand the browser's
|
|
259
|
+
native stands; the rendered anchor stands `rel="noopener noreferrer"`
|
|
260
|
+
(the native open's security's parity).
|
|
261
|
+
- Updated dependencies [75e6caa]
|
|
262
|
+
- Updated dependencies
|
|
263
|
+
- Updated dependencies [acb03c6]
|
|
264
|
+
- docblocks-core@0.5.0
|
|
265
|
+
|
|
3
266
|
## 0.11.0
|
|
4
267
|
|
|
5
268
|
### 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`
|