docblocks-react-ui 0.9.1 → 0.10.1
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 +73 -0
- package/dist/{Editor-DEHzA7Mt.mjs → Editor-DKO25suc.mjs} +240 -332
- package/dist/{index-DmC2uQ2K.d.mts → index-DzYwo6Px.d.mts} +71 -28
- package/dist/index.d.mts +4 -4
- 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 +3 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9188b14: The attributes panel's polish: the label column stands the longest
|
|
8
|
+
locale key (the Russian's published-date key — the `w-32`), the rows
|
|
9
|
+
stand a 4 px gap over the former padding, the row's minimum height
|
|
10
|
+
stands dropped (the rows hug the values' band), the "Not set"
|
|
11
|
+
placeholder stands the values' font and the column's left edge over
|
|
12
|
+
every row, and the `publishedAt` row is display-only (the value is
|
|
13
|
+
consumer-owned — the panel's edit entry and the row's removal stand
|
|
14
|
+
removed, like the `status` row; the
|
|
15
|
+
`docblocks/attributes-published-at` slot now marks the display span).
|
|
16
|
+
- 985c50f: The color pickers stand one shared mechanism (the canvas's palette's
|
|
17
|
+
parity): the circular swatches over the shared `ColorSwatches` with the
|
|
18
|
+
custom rainbow's swatch + the hex's input, and the trigger's preview over
|
|
19
|
+
the shared `ColorChip` (the current's color, the hollow's stroke over the
|
|
20
|
+
stroke's attrs, the `X` over the absent).
|
|
21
|
+
|
|
22
|
+
- The callout's menu: the native `input type="color"`'s picker stands
|
|
23
|
+
removed. The custom color's commit stands over the hex's field (the
|
|
24
|
+
Enter / the blur over the valid value); the close over the uncommitted
|
|
25
|
+
draft discards it (the canvas's Esc's parity — the former's
|
|
26
|
+
commit-on-close's scrub stands no stand). The
|
|
27
|
+
`docblocks/callout-color-picker` slot now marks the hex's input.
|
|
28
|
+
- The table's row / column background: the own square swatch's grid stands
|
|
29
|
+
removed over the shared's palette (the subcontent's slot
|
|
30
|
+
`docblocks/table-color-palette`); the conditional `Remove background`'s
|
|
31
|
+
item stands removed — the shared's none's swatch
|
|
32
|
+
(`docblocks/palette-none`) is the clear's mechanism. The handle's menu
|
|
33
|
+
closes over a swatch's pick (the palette's buttons stand no Radix
|
|
34
|
+
item's close of their own).
|
|
35
|
+
- The page format toolbar's color trigger stands the current's color's
|
|
36
|
+
chip (the mark's hex; the `X` over the absent / the mixed's range).
|
|
37
|
+
- The `ColorChip`'s primitive (the `docblocks/color-chip`'s slot) is the
|
|
38
|
+
shared's trigger's preview.
|
|
39
|
+
|
|
40
|
+
## 0.10.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- d51bd43: **Consumer-owned tags: the `docTags` contract (the document's no-storage's
|
|
45
|
+
stand).**
|
|
46
|
+
|
|
47
|
+
The `tags` row of the document-attributes panel no longer reads or writes
|
|
48
|
+
the document's `attributes.tags` record: the tags are never document data
|
|
49
|
+
(a consumer that stores its tags in its own database no longer races the
|
|
50
|
+
document's copy). The consumer passes the tags over the new `docTags`
|
|
51
|
+
provider prop and the panel displays the passed list and reports the
|
|
52
|
+
user's tag actions:
|
|
53
|
+
|
|
54
|
+
- `docTags.tags` — the document's tags (`{ id, label }[]`; the
|
|
55
|
+
consumer's type may extend it — the extra fields stay opaque);
|
|
56
|
+
- `docTags.onTagAdd` — the add affordance's click (the consumer opens its
|
|
57
|
+
own creation's UI — the tag's picker over its catalog, the creation's
|
|
58
|
+
flow; the package opens nothing);
|
|
59
|
+
- `docTags.onTagRemove(tag)` — the chip's removal (the consumer removes
|
|
60
|
+
over its own store and passes the updated list back over `tags`);
|
|
61
|
+
- `docTags.onTagClick(tag, event)` — the chip's click (the native
|
|
62
|
+
`MouseEvent`; the package opens nothing and preventDefaults nothing —
|
|
63
|
+
the navigation's stand is the consumer's); it stands over the read-only
|
|
64
|
+
modes too (the observing gesture's parity).
|
|
65
|
+
|
|
66
|
+
**Breaking (the 0.x's minor's stand)**: the `tagEditor` provider prop (and
|
|
67
|
+
its `TagEditor` / `TagEditorProps` types, exported since 0.9.0) is removed
|
|
68
|
+
— its contract committed the list into the document (the
|
|
69
|
+
`onTagsChange`'s `setAttribute`), which the consumer-owned stand
|
|
70
|
+
supersedes. A consumer on 0.9.x migrates over the `docTags`'s contract
|
|
71
|
+
(the chips' display stands unchanged); the legacy's stored
|
|
72
|
+
`attributes.tags` data stays readable over `doc.meta.attributes`
|
|
73
|
+
(migration's read) and the markdown frontmatter's import keeps writing it
|
|
74
|
+
(the data's stand — the panel is decoupled from the record).
|
|
75
|
+
|
|
3
76
|
## 0.9.1
|
|
4
77
|
|
|
5
78
|
### Patch Changes
|