docblocks-react-ui 0.15.1 → 0.16.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 +24 -0
- package/README.md +5 -1
- package/dist/{Editor-xRjCnKad.mjs → Editor-BrENM2MV.mjs} +833 -69
- package/dist/index.d.mts +16 -1
- package/dist/index.mjs +86 -39
- package/dist/mermaid/index.mjs +1 -1
- package/dist/styles.css +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1ca3796: The `DocHeader` avatar slot is customizable: `renderAvatarContent` stands
|
|
8
|
+
the consumer's content in place of the built-in emoji / "+" render (the
|
|
9
|
+
wrapper, the emoji picker, and the accessible names stay the library's; the
|
|
10
|
+
read-only stands pass `editable: false`), and `hideAvatar` removes the slot
|
|
11
|
+
for consumers that render the document avatar elsewhere. Without the new
|
|
12
|
+
props the render is unchanged.
|
|
13
|
+
- c1b519d: Link editing: the format toolbar's link button and mod+k open an address
|
|
14
|
+
popover over the selection (an existing uniform link prefills and can be
|
|
15
|
+
edited or removed), a bare address resolves by form — a domain becomes an
|
|
16
|
+
https URL, an email a `mailto:`, a number a `tel:` — and an invalid address
|
|
17
|
+
stands the error. A link opens on a plain click (web URLs in a new tab with
|
|
18
|
+
`noopener,noreferrer`, `mailto:` / `tel:` / relative ones in the same tab)
|
|
19
|
+
and takes a context menu (open, copy the address, edit, remove). A
|
|
20
|
+
plain-text paste links the bare URLs and the email addresses it carries.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [ad563a8]
|
|
25
|
+
- docblocks-core@0.7.0
|
|
26
|
+
|
|
3
27
|
## 0.15.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -71,7 +71,11 @@ a bare `tsc`-only setup needs a one-line `declare module "*.css"` shim.
|
|
|
71
71
|
absent), the avatar, and the title — inline-editable in the edit mode
|
|
72
72
|
only (the read-only modes stand the title/avatar display-only), the
|
|
73
73
|
title/avatar commits are one core command each (one undo step each),
|
|
74
|
-
the Escape cancels without a write.
|
|
74
|
+
the Escape cancels without a write. The avatar slot's content is
|
|
75
|
+
replaceable over `renderAvatarContent` (the trigger, the picker, and the
|
|
76
|
+
accessible names stay the package's; the read-only stands pass
|
|
77
|
+
`editable: false`), and the slot is removable over `hideAvatar`. Over
|
|
78
|
+
the published's stand the
|
|
75
79
|
header stands the snapshot's meta (the live's meta stands off — the
|
|
76
80
|
`viewer`'s `doc` is the snapshot itself; the no-snapshot stand renders
|
|
77
81
|
the neutral meta, never the live one). It
|