docblocks-react-ui 0.16.0 → 0.18.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 +48 -0
- package/README.md +33 -0
- package/dist/{Editor-BrENM2MV.mjs → Editor-DQg2tfne.mjs} +17383 -16375
- package/dist/{constants-D8PSgkwi.mjs → constants-DWJbJpt5.mjs} +76 -8
- package/dist/{index-C3vzW1Mv.d.mts → index-DLLPjOP5.d.mts} +20 -206
- package/dist/index-G44JW36p.d.mts +236 -0
- package/dist/index.d.mts +114 -49
- package/dist/index.mjs +4 -4
- package/dist/mermaid/index.d.mts +1 -1
- package/dist/mermaid/index.mjs +210 -147
- package/dist/pdf/index.d.mts +1 -1
- package/dist/pdf/index.mjs +421 -362
- package/package.json +2 -2
- package/dist/index-YJcgf8Hh.d.mts +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d89891d: The editor stands a top-level render boundary: a throw of the editor's
|
|
8
|
+
chrome outside a block's renderer (the attributes panel, the canvas chrome,
|
|
9
|
+
the row list) is contained to the editor's content with a failure note and a
|
|
10
|
+
retry, so the consumer's application stays mounted. The boundary is exported
|
|
11
|
+
for the consumer's own wrappers (`fallback` and `resetKey` props); a block's
|
|
12
|
+
renderer keeps its narrower per-block boundary.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- dea90e3: The add-column form surfaces a failed commit's cause over its own error line:
|
|
17
|
+
the bridge's refusal (an in-use enum option's delete, a failed table or column
|
|
18
|
+
creation) no longer stands only in the console while the form shows nothing.
|
|
19
|
+
- ab7a859: The database table's row and column writes drop their late tail after the
|
|
20
|
+
block's table changes: a rollback, an error note or a post-commit refetch of
|
|
21
|
+
the previous table no longer overwrites the relinked grid's rows or leaves it
|
|
22
|
+
loading.
|
|
23
|
+
- 7e0e7c5: The markdown frontmatter drops a `__proto__` key: the entries live in plain
|
|
24
|
+
objects, where the assignment wrote the prototype chain instead of a value,
|
|
25
|
+
so a pasted or imported header could poison the parse's record. The key never
|
|
26
|
+
reaches the document's meta, and the rest of the header parses as usual.
|
|
27
|
+
- 16b251a: The react-ui layer stands a typed error family (`DocBlocksUiError` base +
|
|
28
|
+
the `EditorProviderError`, `BlobNotFoundError`, `PdfFetchError`,
|
|
29
|
+
`CanvasPasteError`, `UnknownSlashCommandError`, `UnhandledValueError`
|
|
30
|
+
conditions, all exported from the base entry): the former raw `Error`
|
|
31
|
+
throws of the provider's prop contract, the blob store's missing-id
|
|
32
|
+
rejections, the PDF fetch's non-ok response, and the internal invariant
|
|
33
|
+
guards now throw the named class — the messages are unchanged, so a
|
|
34
|
+
consumer can catch by class.
|
|
35
|
+
|
|
36
|
+
## 0.17.0
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- 05bd9d1: A protocol-relative link opens in a new tab with `noopener,noreferrer` (the
|
|
41
|
+
`web` class — it was treated as a relative path before), and the address
|
|
42
|
+
popover stores the typed protocol-relative form as an explicit `https://`
|
|
43
|
+
URL. The link popover parks the editor root's focus on the commit's effect,
|
|
44
|
+
so a fast gesture right after the close is not lost.
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [348f4ad]
|
|
49
|
+
- docblocks-core@0.8.0
|
|
50
|
+
|
|
3
51
|
## 0.16.0
|
|
4
52
|
|
|
5
53
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -652,6 +652,39 @@ or the removed state yourself — the `label` is the display snapshot. The
|
|
|
652
652
|
value is read per render into the provider context: pass a stable reference.
|
|
653
653
|
A nested provider that supplies none inherits the enclosing one.
|
|
654
654
|
|
|
655
|
+
### Links
|
|
656
|
+
|
|
657
|
+
The `link` mark's href stands one of four classes (the core's
|
|
658
|
+
`linkHrefKindOf`, exported from `docblocks-core` — the classifier the
|
|
659
|
+
validator, the renderer, and the click's open all stand on):
|
|
660
|
+
|
|
661
|
+
| Class | Example | The click's open |
|
|
662
|
+
| ---------- | ------------------------------------------------ | ------------------------------------ |
|
|
663
|
+
| `web` | `https://example.com/page`, `//example.com/page` | a new tab (`noopener,noreferrer`) |
|
|
664
|
+
| `mailto` | `mailto:help@example.com` | the same tab (the mail client) |
|
|
665
|
+
| `tel` | `tel:+79161234567` | the same tab (the dialer) |
|
|
666
|
+
| `relative` | `/docs/page`, `#section`, `./page` | the same tab (the page's navigation) |
|
|
667
|
+
|
|
668
|
+
The protocol-relative form is an absolute URL of the reader's scheme — the
|
|
669
|
+
`web` class, never a relative path. Any other scheme is rejected by the
|
|
670
|
+
writer (`InvalidMarkError` over the semantic API) and renders as plain text
|
|
671
|
+
over the lenient read.
|
|
672
|
+
|
|
673
|
+
Editing: the format toolbar's link button and mod+k over a text selection
|
|
674
|
+
open the address popover. A typed address resolves by form — a bare domain
|
|
675
|
+
stands `https://`, a bare email the `mailto:` form, a phone number the
|
|
676
|
+
`tel:` form, the protocol-relative form the explicit `https://`; an
|
|
677
|
+
existing uniform link prefills the input, and an invalid address stands the
|
|
678
|
+
error without a write. A commit is one `setMark` (one undo step), the
|
|
679
|
+
remove one `unsetMark`.
|
|
680
|
+
|
|
681
|
+
A plain click on a link opens it (a press-drag keeps the selection; the
|
|
682
|
+
modified and middle clicks keep the browser's native stand). A right-click
|
|
683
|
+
on a link opens the link menu — open, copy the address, edit, remove; the
|
|
684
|
+
read-only modes (`view` / `published`) stand the open and the copy only. A
|
|
685
|
+
plain-text paste links the bare URLs and the email addresses it carries
|
|
686
|
+
(the code blocks keep their raw text); typed text stands plain.
|
|
687
|
+
|
|
655
688
|
### Canvas
|
|
656
689
|
|
|
657
690
|
`view: "canvas"` renders the page miniature plus the document's
|