@arbidocs/react 0.5.15 → 0.5.17
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/annotations/freeze/index.cjs +15 -15
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +56 -56
- package/dist/annotations/index.d.cts +0 -1
- package/dist/annotations/index.d.ts +0 -1
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +2 -2
- package/dist/artifacts/index.js +1 -1
- package/dist/bundle-4TKU5WEQ.js +5 -0
- package/dist/{bundle-HFDCTQCK.js.map → bundle-4TKU5WEQ.js.map} +1 -1
- package/dist/bundle-B5AN4B7H.cjs +14 -0
- package/dist/{bundle-MRZK7HWU.cjs.map → bundle-B5AN4B7H.cjs.map} +1 -1
- package/dist/calls/livekit/index.cjs +41 -41
- package/dist/calls/livekit/index.js +2 -2
- package/dist/{chunk-S33P6THG.js → chunk-2XMHFQ7M.js} +3 -3
- package/dist/{chunk-S33P6THG.js.map → chunk-2XMHFQ7M.js.map} +1 -1
- package/dist/{chunk-BXR5WEQ3.cjs → chunk-4VQ3XHAQ.cjs} +5 -5
- package/dist/chunk-4VQ3XHAQ.cjs.map +1 -0
- package/dist/{chunk-RDF2Q45F.cjs → chunk-ALLWAYMB.cjs} +20 -20
- package/dist/{chunk-RDF2Q45F.cjs.map → chunk-ALLWAYMB.cjs.map} +1 -1
- package/dist/{chunk-36NAB4FC.cjs → chunk-CNRF5SLZ.cjs} +9 -3
- package/dist/chunk-CNRF5SLZ.cjs.map +1 -0
- package/dist/{chunk-R4RVHP6T.js → chunk-D63FAYES.js} +3 -3
- package/dist/chunk-D63FAYES.js.map +1 -0
- package/dist/{chunk-WA4NBJ6Q.cjs → chunk-EYOXZHXM.cjs} +7 -7
- package/dist/chunk-EYOXZHXM.cjs.map +1 -0
- package/dist/{chunk-WHBDSNXO.js → chunk-GUCQMP6G.js} +3 -3
- package/dist/chunk-GUCQMP6G.js.map +1 -0
- package/dist/{chunk-5WVXYOGX.js → chunk-J2GERLMU.js} +9 -4
- package/dist/chunk-J2GERLMU.js.map +1 -0
- package/dist/{chunk-LRBOMQ6Q.cjs → chunk-NSSGDZSL.cjs} +2 -2
- package/dist/{chunk-LRBOMQ6Q.cjs.map → chunk-NSSGDZSL.cjs.map} +1 -1
- package/dist/{chunk-NBIW7AEE.js → chunk-XTWUMTCQ.js} +2 -2
- package/dist/{chunk-NBIW7AEE.js.map → chunk-XTWUMTCQ.js.map} +1 -1
- package/dist/document-tools/index.cjs +11 -11
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +3 -3
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +420 -364
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -1
- package/dist/index.d.ts +72 -1
- package/dist/index.js +51 -5
- package/dist/index.js.map +1 -1
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle-HFDCTQCK.js +0 -5
- package/dist/bundle-MRZK7HWU.cjs +0 -14
- package/dist/chunk-36NAB4FC.cjs.map +0 -1
- package/dist/chunk-5WVXYOGX.js.map +0 -1
- package/dist/chunk-BXR5WEQ3.cjs.map +0 -1
- package/dist/chunk-R4RVHP6T.js.map +0 -1
- package/dist/chunk-WA4NBJ6Q.cjs.map +0 -1
- package/dist/chunk-WHBDSNXO.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2M4B4FFA_cjs = require('../chunk-2M4B4FFA.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkALLWAYMB_cjs = require('../chunk-ALLWAYMB.cjs');
|
|
5
|
+
var chunkNSSGDZSL_cjs = require('../chunk-NSSGDZSL.cjs');
|
|
6
6
|
var chunkH4FGDXYB_cjs = require('../chunk-H4FGDXYB.cjs');
|
|
7
7
|
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
8
8
|
require('../chunk-VOFNX4P6.cjs');
|
|
@@ -107,7 +107,7 @@ async function buildProduction(client, documents, choices, options) {
|
|
|
107
107
|
if (items.length === 0) {
|
|
108
108
|
throw new Error("None of these documents has a PDF version to number yet.");
|
|
109
109
|
}
|
|
110
|
-
const { buildBundle } = await import('../bundle-
|
|
110
|
+
const { buildBundle } = await import('../bundle-B5AN4B7H.cjs');
|
|
111
111
|
const result = await buildBundle(items, {
|
|
112
112
|
layout: choices.layout,
|
|
113
113
|
bates: {
|
|
@@ -169,7 +169,7 @@ async function call(request) {
|
|
|
169
169
|
return await request();
|
|
170
170
|
} catch (e) {
|
|
171
171
|
if (e instanceof TypeError || typeof navigator !== "undefined" && !navigator.onLine) {
|
|
172
|
-
throw new
|
|
172
|
+
throw new chunkALLWAYMB_cjs.AnnotationStoreOfflineError();
|
|
173
173
|
}
|
|
174
174
|
throw e;
|
|
175
175
|
}
|
|
@@ -198,8 +198,8 @@ function createMarkupStore({ version, client, onSaved }) {
|
|
|
198
198
|
response.status
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
const layer =
|
|
202
|
-
schema:
|
|
201
|
+
const layer = chunkNSSGDZSL_cjs.parseLayer({
|
|
202
|
+
schema: chunkNSSGDZSL_cjs.LAYER_SCHEMA_VERSION,
|
|
203
203
|
documentId,
|
|
204
204
|
annotations: data.annotations ?? [],
|
|
205
205
|
updatedAt: data.updated_at ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -252,7 +252,7 @@ function createMarkupStore({ version, client, onSaved }) {
|
|
|
252
252
|
const deleted = new Set(
|
|
253
253
|
[...seen].filter((id) => !mine.annotations.some((a) => a.id === id))
|
|
254
254
|
);
|
|
255
|
-
const merged =
|
|
255
|
+
const merged = chunkALLWAYMB_cjs.mergeLayers({ base, mine, theirs: latest.layer, deleted });
|
|
256
256
|
revision = latest.revision;
|
|
257
257
|
canEdit = latest.canEdit;
|
|
258
258
|
base = latest.layer;
|
|
@@ -290,7 +290,7 @@ function readLegacyLayer(documentId) {
|
|
|
290
290
|
try {
|
|
291
291
|
const raw = storage()?.getItem(LEGACY_LAYER_PREFIX + documentId);
|
|
292
292
|
if (!raw) return null;
|
|
293
|
-
return
|
|
293
|
+
return chunkNSSGDZSL_cjs.parseLayer(JSON.parse(raw));
|
|
294
294
|
} catch {
|
|
295
295
|
return null;
|
|
296
296
|
}
|
|
@@ -319,12 +319,12 @@ async function addToMarkup(documentId, version, marks, client) {
|
|
|
319
319
|
const store = createMarkupStore({ version, client });
|
|
320
320
|
const current = await store.load(documentId);
|
|
321
321
|
const incoming = {
|
|
322
|
-
...
|
|
322
|
+
...chunkNSSGDZSL_cjs.emptyLayer(documentId, (/* @__PURE__ */ new Date()).toISOString()),
|
|
323
323
|
annotations: marks
|
|
324
324
|
};
|
|
325
|
-
const merged =
|
|
325
|
+
const merged = chunkALLWAYMB_cjs.mergeLayers({ base: null, mine: current, theirs: incoming });
|
|
326
326
|
const added = merged.annotations.length - current.annotations.length;
|
|
327
|
-
if (added > 0) await store.save(
|
|
327
|
+
if (added > 0) await store.save(chunkNSSGDZSL_cjs.parseLayer({ ...merged, schema: chunkNSSGDZSL_cjs.LAYER_SCHEMA_VERSION }));
|
|
328
328
|
return added;
|
|
329
329
|
}
|
|
330
330
|
async function migrateLegacyLayer(documentId, layer, versions, currentVersion, client) {
|