@fileverse-dev/ddoc 6.0.1-dist-slim.1 → 6.0.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/dist/{ddoc-persistence-DLdSviUr.mjs → ddoc-persistence-C2ay3lLb.mjs} +13 -14
- package/dist/headless-editor-utils.es.js +1 -1
- package/dist/index-By29BevC.mjs +13126 -0
- package/dist/index.es.js +21547 -10751
- package/dist/markdown-source-pane-CYcEKMfr.mjs +6069 -0
- package/dist/package/extensions/comment/comment-decoration-plugin.d.ts +8 -3
- package/dist/package/extensions/comment/comment.d.ts +3 -1
- package/dist/package/extensions/emoji/components/emoji-utils.d.ts +2 -2
- package/dist/package/extensions/suggestion/multiline-structure.d.ts +25 -0
- package/dist/package/extensions/suggestion/suggestion-tracking-extension.d.ts +2 -0
- package/dist/package/stores/comment-store.d.ts +6 -1
- package/dist/package/types.d.ts +10 -0
- package/dist/persistence.es.js +1 -1
- package/dist/{split-view-toolbar-6aBSjsO2.mjs → split-view-toolbar-DrK-Wp2F.mjs} +46 -47
- package/dist/style.css +1 -1
- package/dist/tab-utils-CAcIp-Dt.mjs +313 -0
- package/dist/use-headless-editor-BIcZNvlS.mjs +162510 -0
- package/package.json +2 -5
- package/dist/data-BCRDUrcS.mjs +0 -59842
- package/dist/index-BaWxoKsY.mjs +0 -14053
- package/dist/markdown-source-pane-BJbpMXo2.mjs +0 -143
- package/dist/tab-utils-BNFvrUAj.mjs +0 -284
- package/dist/use-headless-editor-BHUo3Yv-.mjs +0 -43828
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as _, S as I, A as $, t as C } from "./tab-utils-CAcIp-Dt.mjs";
|
|
2
2
|
import * as m from "yjs";
|
|
3
|
-
import { S as I, A as $ } from "./tab-utils-BNFvrUAj.mjs";
|
|
4
3
|
const U = (e) => {
|
|
5
4
|
const r = [];
|
|
6
5
|
for (const [n, f] of e) {
|
|
@@ -33,7 +32,7 @@ const U = (e) => {
|
|
|
33
32
|
new TextEncoder().encode(N(e))
|
|
34
33
|
);
|
|
35
34
|
return _(new Uint8Array(r));
|
|
36
|
-
}, T = 8e3,
|
|
35
|
+
}, T = 8e3, H = "DdocStoreRepaired", h = "updates", P = "custom", B = (e) => e instanceof Error ? e : new Error(String(e)), E = (e, r, n) => ({
|
|
37
36
|
ddocId: e,
|
|
38
37
|
status: r,
|
|
39
38
|
encodedState: null,
|
|
@@ -123,10 +122,10 @@ const U = (e) => {
|
|
|
123
122
|
e,
|
|
124
123
|
"unavailable",
|
|
125
124
|
new Error("IndexedDB is unavailable")
|
|
126
|
-
) : await q(e, r) === !1 ? E(e, "missing") : F(e, r),
|
|
125
|
+
) : await q(e, r) === !1 ? E(e, "missing") : F(e, r), W = (e, r = {}) => K(
|
|
127
126
|
e,
|
|
128
127
|
r.timeoutMs ?? T
|
|
129
|
-
),
|
|
128
|
+
), z = (e, r, n = {}) => {
|
|
130
129
|
const f = n.timeoutMs ?? T, o = (s, u) => ({
|
|
131
130
|
...E(e, s, u),
|
|
132
131
|
changed: !1,
|
|
@@ -238,7 +237,7 @@ const U = (e) => {
|
|
|
238
237
|
} finally {
|
|
239
238
|
r.destroy();
|
|
240
239
|
}
|
|
241
|
-
},
|
|
240
|
+
}, G = async (e, r = {}) => {
|
|
242
241
|
const n = (o, t = 0, s) => ({
|
|
243
242
|
ddocId: e,
|
|
244
243
|
status: o,
|
|
@@ -309,7 +308,7 @@ const U = (e) => {
|
|
|
309
308
|
}
|
|
310
309
|
};
|
|
311
310
|
});
|
|
312
|
-
},
|
|
311
|
+
}, J = (e, r = {}) => {
|
|
313
312
|
if (typeof indexedDB > "u")
|
|
314
313
|
return Promise.resolve({
|
|
315
314
|
ddocId: e,
|
|
@@ -352,7 +351,7 @@ const U = (e) => {
|
|
|
352
351
|
error: B(a.error ?? "dDoc IndexedDB delete failed")
|
|
353
352
|
});
|
|
354
353
|
});
|
|
355
|
-
},
|
|
354
|
+
}, Q = async (e) => {
|
|
356
355
|
const r = new m.Doc();
|
|
357
356
|
try {
|
|
358
357
|
return m.applyUpdate(r, C(e)), await Y(r);
|
|
@@ -361,11 +360,11 @@ const U = (e) => {
|
|
|
361
360
|
}
|
|
362
361
|
};
|
|
363
362
|
export {
|
|
364
|
-
|
|
363
|
+
H as D,
|
|
365
364
|
T as a,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
G as b,
|
|
366
|
+
J as d,
|
|
367
|
+
Q as g,
|
|
368
|
+
z as m,
|
|
369
|
+
W as r
|
|
371
370
|
};
|