docblocks-react-ui 0.11.0 → 0.12.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,108 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 086e514: The canvas figure's fill stand over the themes (the render-time's transform,
8
+ no document data change): the light theme stands the fixed-hex fill verbatim
9
+ (import fidelity), the dark theme stands the light fixed fill darkened (the
10
+ dark corridor — the hue kept, the lightness over the dark, the saturation
11
+ reduced; dark fills pass through; palette-token fills are unchanged in both
12
+ themes). The figure text without an explicit `textColor` resolves the
13
+ contrast against the effective fill (black or white by the better WCAG
14
+ contrast; an explicit `textColor` always wins). The dark-class flip
15
+ re-renders the figures with no wire writes and no document-state mutation;
16
+ the strokes pass through unchanged.
17
+ - 43e2183: The canvas figure's stroke and the connector's line color stand the same
18
+ themes' transform as the fill (the render-time's dark corridor): over the
19
+ dark theme a light fixed-hex `stroke` (the shape's border) and `strokeColor`
20
+ (the connector's line, the arrowheads, and the label chip's frame) stand the
21
+ darkened's value; dark values and the theme tokens pass through, and the
22
+ light theme stands the data verbatim. The document keeps the source hex (no
23
+ wire writes, no persistence).
24
+ - d97a429: The floating format toolbar's color palette (the text's `color` / the
25
+ background's `highlight` target) stands the reset's affordance: a cross
26
+ button after all the palette's swatches clears the active target's mark
27
+ (`unsetMark`). The other palettes (the callout's background, the table's
28
+ handles, the canvas's fill / stroke) keep the transparent's "no color"
29
+ swatch.
30
+ - 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.
31
+
32
+ ### Patch Changes
33
+
34
+ - The shape and canvas-text toolbars' text color section stands the reset's
35
+ cross — the none's button over the row's tail (the after-all-the-colors'
36
+ position, the page's format palette's parity): the active stand over the
37
+ `textColor`'s set, the inert stand over the unset color (the pick is a
38
+ no-op). The pick removes the `textColor` attr over the core's
39
+ `removeBlockAttr` (one transact, one undo step) and returns the text to
40
+ the no-color's stand — the contrast's resolution over the effective fill
41
+ (or the theme's foreground when the fill stands none) — in the shape and
42
+ the canvas-text alike. The color's sections keep the transparent swatch's
43
+ none over the fill / stroke / line / label palettes (their data's "none"
44
+ stand) — the cross is the text color's affordance only.
45
+ - 049735e: The canvas-text's figure stands the side insets from the box's edges
46
+ (the shape's text's padding parity — the rect's 8 px x): the item's
47
+ wrapper carries the horizontal padding inside the box (the border-box's
48
+ stand — the selection's frame and the item's geometry are unmoved, the
49
+ text's wrap width stands the inset's width). The double-click's ghost
50
+ stands the same inset (the commit's visual continuity — the typed text
51
+ stands where the committed text stands).
52
+ - 64abd94: Improved the canvas view's re-render contract for large canvases (several
53
+ thousands of figures and connectors): the viewport state (the in-flight
54
+ session's previews — the move / the resize, the connector endpoint's
55
+ drag, the keyboard focus) stands in a per-view zustand store, and the
56
+ canvas items / connector lines / port dots / label chips subscribe to
57
+ their own narrow slices (a pointermove re-renders only the items and the
58
+ lines the preview touches, never the resting surface). The surfaces'
59
+ chrome re-render keys over a structural chrome stamp (a content-only
60
+ change stands no re-render of the chrome). The off-viewport items stand
61
+ no DOM of their own (the viewport's culling over the visible world rect
62
+ + the 300px margin — the off-viewport figures / connectors mount / unmount
63
+ over the pan's bring-in / take-out; the in-flight session's items stand
64
+ un-culled). The canvas view's module set stands split by responsibility
65
+ (the world assembly, the world-space overlays, the screen-space chrome,
66
+ the selection's overlay, the per-line / per-item math).
67
+ - 9efe1d4: Fixed the code block's caption line losing the focus (and the empty line
68
+ unmounting) over a press of the caption's button while a caret stood in
69
+ the code: the page container's stranded-caret re-seat mistook the form
70
+ control's focus residue (the document selection standing a collapsed caret
71
+ at a container position while the input holds the focus) for a stranded
72
+ caret and re-seated it into the block on every frame, blurring the
73
+ just-seated input. The re-seat now stands no while a form control inside
74
+ the container holds the focus (the control's landing stands a genuine
75
+ one).
76
+ - de984b6: The code block's copy button now copies the `text/html` payload (the `PRE`
77
+ over the code's child, the `language-*` class on the `code` element) plus
78
+ the `text/plain` fallback — the paste into a text block materializes the
79
+ code block verbatim through the rich pipeline (the plain payload's
80
+ markdown pipeline stood the distortion: the newlines collapsed, the
81
+ indentation lost, the markdown-flavored lines re-blocked — the `---` to
82
+ the divider, the `# x` to the heading, …). The rich pipeline now reads
83
+ the `language-*` class back over the `PRE`'s materialization (the
84
+ language's round-trip's stand — over the `PRE`'s own class or the
85
+ `code`'s child's, the producer's convention's positions); the paste into
86
+ the code block keeps the plain payload's stand (the `plainWins`'s gate),
87
+ and the external apps receive the plain fallback unchanged (the legacy
88
+ engines without `ClipboardItem` stand the plain write).
89
+ - 7b7917c: The link's click over the edit's mode: the browser cancels the anchor's
90
+ navigation default inside the contenteditable (the caret's seat stands),
91
+ so a clicked link stood dead — the editor now opens the href itself over
92
+ the new tab's stand (`noopener,noreferrer`, the `window.open`'s
93
+ gesture's call) — the edit and the view's modes stand the same contract
94
+ (the reader's same-tab's carry-away's off), the editor's state stands
95
+ untouched (the caret's seat and the focus are the mousedown's default's
96
+ work — preserved; no write, no navigation). A press-drag over the link
97
+ (the selection's gesture) stands no open (the down/click distance's
98
+ guard); the modified clicks and the middle-click stand the browser's
99
+ native stands; the rendered anchor stands `rel="noopener noreferrer"`
100
+ (the native open's security's parity).
101
+ - Updated dependencies [75e6caa]
102
+ - Updated dependencies
103
+ - Updated dependencies [acb03c6]
104
+ - docblocks-core@0.5.0
105
+
3
106
  ## 0.11.0
4
107
 
5
108
  ### Minor Changes