docblocks-react-ui 0.13.0 → 0.15.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 +81 -0
- package/dist/{Editor-dcSgC9ho.mjs → Editor-BF7wBMcp.mjs} +760 -600
- package/dist/{index-BA6ZzJK8.d.mts → index-C3vzW1Mv.d.mts} +181 -148
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +74 -18
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +31 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a8559ae: The inline meta editors (the header's title, the attributes panel's rows,
|
|
8
|
+
the key's rename) follow the incoming value while the field stands: a
|
|
9
|
+
pristine field reseeds over a value change from the reader (the document's
|
|
10
|
+
write, a peer's edit, the consumer's own state) with the caret kept in
|
|
11
|
+
place, and a typed draft stands over it — the user's text is never
|
|
12
|
+
clobbered mid-edit. The commit and the Escape's cancel are unchanged.
|
|
13
|
+
- fb2eef9: The diagram preview's load-time view is the FIT: over the settled geometry
|
|
14
|
+
(the svg's async render, the page's post-mount layout) a diagram without a
|
|
15
|
+
persisted view stands whole in the frame, centered, scaled down only —
|
|
16
|
+
never up. The persisted zoom / pan is the explicit gesture's state only:
|
|
17
|
+
it is restored on reload and written back to the document on the wheel,
|
|
18
|
+
the drag-pan, the toolbar's zoom / fit / reset presses, and it is never
|
|
19
|
+
written by the load default, the peer's adopt, or the geometry's
|
|
20
|
+
re-computation. A wrapper resize re-fits the diagram while no explicit
|
|
21
|
+
view stands (and re-clamps the pan once it does).
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 5020597: Grouping the selected canvas figures leaves their earlier containers: the
|
|
26
|
+
engine used to add the members to the new group while the old group kept
|
|
27
|
+
them, so a figure stood in two containers and both markers moved it. The
|
|
28
|
+
new group's creation and the leave are one transaction (one undo step, one
|
|
29
|
+
wire update); an earlier group left without members stands in place (the
|
|
30
|
+
empty container is a legal marker).
|
|
31
|
+
- fb02998: The cover tint's border stands the plain border until the cover's average
|
|
32
|
+
color resolves: the tint variable lands only once the blob's read and the
|
|
33
|
+
image's decode settle, and an undefined variable inside the color mix
|
|
34
|
+
invalidated the whole border-color — the dark theme flashed its near-white
|
|
35
|
+
text color as the frame's border over that window.
|
|
36
|
+
- 6d5ab1c: A press over a non-editable island inside the text (the mention chip, an
|
|
37
|
+
image figure, the table's chrome) starts no cross-drag caret session: the
|
|
38
|
+
session used to seat the selection on the island's line and focus the
|
|
39
|
+
editable with it, which pulled the scroll port to the chip and left the
|
|
40
|
+
caret away from the pressed point. A self-contained editable inside the
|
|
41
|
+
island (a table cell's inner, the empty cell's activation layer) keeps its
|
|
42
|
+
session.
|
|
43
|
+
|
|
44
|
+
## 0.14.0
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- cdb165c: The mention chip's hover stands the link's affordance when the consumer
|
|
49
|
+
supplies `mentionInteractions`: the pointer cursor and a light neutral
|
|
50
|
+
background over the chip's rounded rect (3px radius, a 2px offset from
|
|
51
|
+
the letters) with a 120ms fade. The editor root marks the interactive
|
|
52
|
+
stand over `data-mention-interactive`, so a chip without the interactions
|
|
53
|
+
stays inert (no cursor, no highlight) and the consumer's own CSS can key
|
|
54
|
+
on the same hook. The chip carries the padding over the interactive stand
|
|
55
|
+
only, so the hover stands no layout jump; the row keeps its plain-text
|
|
56
|
+
height and the read-only modes keep the same hover (the observing
|
|
57
|
+
gesture's parity). The hover background reads the new
|
|
58
|
+
`--docblocks-mention-hover-background` token (the standard `--muted`'s
|
|
59
|
+
mapping, light and dark fallbacks).
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- 1872604: The diagram preview's viewport re-clamps over the settled geometry: a
|
|
64
|
+
ResizeObserver over the wrapper and the transform layer stands the
|
|
65
|
+
diagram's centering when the boxes change after the mount — the page's
|
|
66
|
+
layout settles post-mount, and the mermaid svg lands asynchronously, so
|
|
67
|
+
the mount-time clamp measured the loading skeleton's box and left the
|
|
68
|
+
view unclamped (a diagram narrower than the column stood against the
|
|
69
|
+
wrapper's left edge; a tall one kept the same stand until an unrelated
|
|
70
|
+
change re-ran the clamp). The re-clamp stands the canonical view, so
|
|
71
|
+
nothing lands on the wire on load (the identity's attrs stay the null
|
|
72
|
+
idiom); the gestures, the fit, the reset, and the persisted view's
|
|
73
|
+
restore are unchanged. A tall diagram now stands centered from the first
|
|
74
|
+
settled frame, with no gesture or scroll.
|
|
75
|
+
- c6a123b: The text surfaces carry the long word's break themselves
|
|
76
|
+
(`overflow-wrap: break-word`): the editable region gets the browser's
|
|
77
|
+
editing default, and the read-only modes inherit nothing of it, so a long
|
|
78
|
+
word in a fixed-width table cell wrapped in the edit mode and spilled
|
|
79
|
+
across the cell's edge onto the neighbor over the view and published
|
|
80
|
+
modes. The break now stands on the text block's inner, the cell's own
|
|
81
|
+
content layer, and the cell's activation layer — the same wrap in every
|
|
82
|
+
mode. User content only: the chrome is untouched.
|
|
83
|
+
|
|
3
84
|
## 0.13.0
|
|
4
85
|
|
|
5
86
|
### Minor Changes
|