@fileverse-dev/ddoc 6.0.1-dist-slim.0 → 6.0.1-patch-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.
@@ -1,6 +1,5 @@
1
- import { fromUint8Array as _, toUint8Array as C } from "js-base64";
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, W = "DdocStoreRepaired", h = "updates", P = "custom", B = (e) => e instanceof Error ? e : new Error(String(e)), E = (e, r, n) => ({
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), z = (e, r = {}) => K(
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
- ), G = (e, r, n = {}) => {
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
- }, J = async (e, r = {}) => {
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
- }, Q = (e, r = {}) => {
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
- }, X = async (e) => {
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
- W as D,
363
+ H as D,
365
364
  T as a,
366
- J as b,
367
- Q as d,
368
- X as g,
369
- G as m,
370
- z as r
365
+ G as b,
366
+ J as d,
367
+ Q as g,
368
+ z as m,
369
+ W as r
371
370
  };
@@ -1,4 +1,4 @@
1
- import { c as s } from "./use-headless-editor-fZCM6BjV.mjs";
1
+ import { c as s } from "./use-headless-editor-BONFYUEs.mjs";
2
2
  const n = (e) => {
3
3
  const { getYjsConvertor: t, mergeYjsUpdates: r } = s(e);
4
4
  return { getYjsConvertor: t, mergeYjsUpdates: r };