docblocks-react-ui 0.29.0 → 0.29.2
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 +26 -0
- package/README.md +6 -2
- package/dist/{Editor-DbW7iFPK.mjs → Editor-y3dFOZE4.mjs} +725 -1155
- package/dist/{Maximize-BBHnCDWL.mjs → Maximize-BTsFyI81.mjs} +1 -2
- package/dist/{constants-D_3p65rk.mjs → constants-CBPODzZc.mjs} +11 -22
- package/dist/{index-DeOMnr7f.d.mts → index-BsP8XWdE.d.mts} +8 -10
- package/dist/{index-sSq0oOSl.d.mts → index-DxRfzb-L.d.mts} +1 -65
- package/dist/index.d.mts +19 -86
- package/dist/index.mjs +17 -30
- package/dist/mermaid/index.d.mts +1 -3
- package/dist/mermaid/index.mjs +13 -21
- package/dist/pdf/index.d.mts +15 -3
- package/dist/pdf/index.mjs +15 -25
- package/dist/styles.css +58 -58
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.29.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0caf66d: The editor store resyncs over the document's snapshot right after the mount
|
|
8
|
+
subscription: a change committed between the render (the store's seed) and
|
|
9
|
+
`doc.onChange` was invisible to the store, so an editor mounted over a
|
|
10
|
+
document whose state lands in that window could stay blank. An unmoved
|
|
11
|
+
document stands a no-op, and an unchanged block keeps its reference.
|
|
12
|
+
- 03c20c7: The trailing-paragraph guard writes nothing when a remote change leaves the
|
|
13
|
+
page empty: the empty page is the editor's own stand, so a document opened
|
|
14
|
+
without content (or emptied by a peer) is not edited by the guard on
|
|
15
|
+
arrival. The non-empty sequence with a non-text tail keeps its paragraph.
|
|
16
|
+
- Updated dependencies [49aaea5]
|
|
17
|
+
- docblocks-core@0.13.0
|
|
18
|
+
|
|
19
|
+
## 0.29.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- bae381f: The system columns stand the package's localized labels (`ID` / `Created` /
|
|
24
|
+
`Updated`, ru `ID` / `Создано` / `Обновлено`) in the grid's header, the
|
|
25
|
+
column list, the sort and filter pickers, and the accessible names. The wire
|
|
26
|
+
column name stays the consumer schema's identity, and the cells' values and
|
|
27
|
+
read-only behavior are unchanged.
|
|
28
|
+
|
|
3
29
|
## 0.29.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -337,7 +337,7 @@ import { useEffect, useMemo } from "react";
|
|
|
337
337
|
|
|
338
338
|
import { WsSyncProvider, attach, createDoc } from "docblocks-core";
|
|
339
339
|
|
|
340
|
-
const doc = createDoc({ id: "room-1" }); //
|
|
340
|
+
const doc = createDoc({ id: "room-1" }); // a new document; an existing one — openDoc({ id })
|
|
341
341
|
|
|
342
342
|
function App() {
|
|
343
343
|
const provider = useMemo(() => new WsSyncProvider("ws://my-server:5199/room-1"), []);
|
|
@@ -359,7 +359,11 @@ function App() {
|
|
|
359
359
|
|
|
360
360
|
- `attach` bootstraps the session (it sends the full local state first,
|
|
361
361
|
then routes local transactions out and remote updates in); detach it on
|
|
362
|
-
unmount.
|
|
362
|
+
unmount. A doc with no state at all — one opened with `openDoc({ id })` —
|
|
363
|
+
sends no bootstrap: opening an existing document is the server's state
|
|
364
|
+
arriving, not a local seed pushed into the room, so an unchanged document
|
|
365
|
+
gains no version. The opened doc's reads are empty and its writes throw
|
|
366
|
+
until that state lands.
|
|
363
367
|
- `WsSyncProvider` speaks standard y-protocols over WebSocket (the
|
|
364
368
|
y-websocket wire, wire-compatible with a standard y-websocket server);
|
|
365
369
|
`options: { token?, webSocketImpl?, maxPendingBytes?, maxFrameBytes? }`
|