@arbidocs/react 0.5.46 → 0.5.48
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 +14 -14
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +48 -48
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +5 -5
- package/dist/artifacts/index.js +4 -4
- package/dist/bundle-IC65W2AO.cjs +14 -0
- package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
- package/dist/bundle-YNOX7VIL.js +5 -0
- package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +44 -44
- package/dist/calls/livekit/index.js +5 -5
- package/dist/{chunk-SOOLC65L.cjs → chunk-25PMGZT7.cjs} +4 -4
- package/dist/{chunk-SOOLC65L.cjs.map → chunk-25PMGZT7.cjs.map} +1 -1
- package/dist/{chunk-PW6PJQFL.cjs → chunk-6N7PXOR5.cjs} +7 -7
- package/dist/{chunk-PW6PJQFL.cjs.map → chunk-6N7PXOR5.cjs.map} +1 -1
- package/dist/{chunk-CE4RY7VA.js → chunk-DWCST7NF.js} +4 -4
- package/dist/{chunk-CE4RY7VA.js.map → chunk-DWCST7NF.js.map} +1 -1
- package/dist/{chunk-FZL5KHOM.js → chunk-E76255DQ.js} +4 -4
- package/dist/{chunk-FZL5KHOM.js.map → chunk-E76255DQ.js.map} +1 -1
- package/dist/{chunk-TUPSNW3B.cjs → chunk-F7MTKPV5.cjs} +3 -3
- package/dist/{chunk-TUPSNW3B.cjs.map → chunk-F7MTKPV5.cjs.map} +1 -1
- package/dist/{chunk-4DYDWDXC.js → chunk-FNV5V2J2.js} +5 -5
- package/dist/{chunk-4DYDWDXC.js.map → chunk-FNV5V2J2.js.map} +1 -1
- package/dist/{chunk-KOLCL4KV.js → chunk-IBBV5A5M.js} +3 -3
- package/dist/{chunk-KOLCL4KV.js.map → chunk-IBBV5A5M.js.map} +1 -1
- package/dist/{chunk-34K7LFN7.cjs → chunk-J5DUAVNR.cjs} +4 -4
- package/dist/{chunk-34K7LFN7.cjs.map → chunk-J5DUAVNR.cjs.map} +1 -1
- package/dist/{chunk-ONGNP4JM.cjs → chunk-NETQSWIK.cjs} +3 -3
- package/dist/{chunk-ONGNP4JM.cjs.map → chunk-NETQSWIK.cjs.map} +1 -1
- package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
- package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
- package/dist/{chunk-T4CLW3DN.js → chunk-NSNTGXTW.js} +3 -3
- package/dist/{chunk-T4CLW3DN.js.map → chunk-NSNTGXTW.js.map} +1 -1
- package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
- package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
- package/dist/{chunk-CMNZI4WQ.js → chunk-QN4UN6KG.js} +3 -3
- package/dist/{chunk-CMNZI4WQ.js.map → chunk-QN4UN6KG.js.map} +1 -1
- package/dist/{chunk-SUZORMAB.cjs → chunk-YCDRSSDT.cjs} +3 -3
- package/dist/{chunk-SUZORMAB.cjs.map → chunk-YCDRSSDT.cjs.map} +1 -1
- package/dist/document-tools/index.cjs +49 -49
- package/dist/document-tools/index.js +8 -8
- package/dist/index.cjs +717 -717
- package/dist/index.js +19 -19
- package/dist/shell/index.cjs +34 -34
- package/dist/shell/index.js +3 -3
- package/dist/ui/index.cjs +170 -170
- package/dist/ui/index.js +4 -4
- package/dist/viewers/index.cjs +5 -5
- package/dist/viewers/index.js +2 -2
- package/package.json +3 -3
- package/dist/bundle-DCWPYNGD.cjs +0 -14
- package/dist/bundle-JCKKGEJE.js +0 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNETQSWIK_cjs = require('../chunk-NETQSWIK.cjs');
|
|
4
|
+
var chunkYCDRSSDT_cjs = require('../chunk-YCDRSSDT.cjs');
|
|
4
5
|
var chunkRRWAX52L_cjs = require('../chunk-RRWAX52L.cjs');
|
|
5
|
-
|
|
6
|
-
var chunk2IJP73ZG_cjs = require('../chunk-2IJP73ZG.cjs');
|
|
6
|
+
require('../chunk-YIUUTRMQ.cjs');
|
|
7
7
|
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
8
8
|
require('../chunk-VOFNX4P6.cjs');
|
|
9
9
|
require('../chunk-WYZJLZ67.cjs');
|
|
10
|
-
require('../chunk-Z3LLUO32.cjs');
|
|
11
10
|
require('../chunk-HJDR5HEO.cjs');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-YIUUTRMQ.cjs');
|
|
11
|
+
require('../chunk-Z3LLUO32.cjs');
|
|
14
12
|
require('../chunk-RCKA7BEF.cjs');
|
|
13
|
+
require('../chunk-S6A6FSG7.cjs');
|
|
14
|
+
var chunk2IJP73ZG_cjs = require('../chunk-2IJP73ZG.cjs');
|
|
15
15
|
var react = require('react');
|
|
16
16
|
var reactQuery = require('@tanstack/react-query');
|
|
17
17
|
var client = require('@arbidocs/client');
|
|
@@ -42,9 +42,9 @@ async function fetchProductionPdf(client, doc) {
|
|
|
42
42
|
const pdf = isPdfDocument(doc);
|
|
43
43
|
let blob;
|
|
44
44
|
try {
|
|
45
|
-
blob = await (pdf ?
|
|
45
|
+
blob = await (pdf ? chunkNETQSWIK_cjs.fetchDocumentFile : chunkNETQSWIK_cjs.fetchDocumentPdf)(client, doc.external_id);
|
|
46
46
|
} catch (e) {
|
|
47
|
-
if (!pdf && e instanceof
|
|
47
|
+
if (!pdf && e instanceof chunkNETQSWIK_cjs.DocumentFetchError) return null;
|
|
48
48
|
throw e;
|
|
49
49
|
}
|
|
50
50
|
const bytes = new Uint8Array(await blob.arrayBuffer());
|
|
@@ -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-IC65W2AO.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 chunkYCDRSSDT_cjs.AnnotationStoreOfflineError();
|
|
173
173
|
}
|
|
174
174
|
throw e;
|
|
175
175
|
}
|
|
@@ -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 = chunkYCDRSSDT_cjs.mergeLayers({ base, mine, theirs: latest.layer, deleted });
|
|
256
256
|
revision = latest.revision;
|
|
257
257
|
canEdit = latest.canEdit;
|
|
258
258
|
base = latest.layer;
|
|
@@ -322,7 +322,7 @@ async function addToMarkup(documentId, version, marks, client) {
|
|
|
322
322
|
...chunk2IJP73ZG_cjs.emptyLayer(documentId, (/* @__PURE__ */ new Date()).toISOString()),
|
|
323
323
|
annotations: marks
|
|
324
324
|
};
|
|
325
|
-
const merged =
|
|
325
|
+
const merged = chunkYCDRSSDT_cjs.mergeLayers({ base: null, mine: current, theirs: incoming });
|
|
326
326
|
const added = merged.annotations.length - current.annotations.length;
|
|
327
327
|
if (added > 0) await store.save(chunk2IJP73ZG_cjs.parseLayer({ ...merged, schema: chunk2IJP73ZG_cjs.LAYER_SCHEMA_VERSION }));
|
|
328
328
|
return added;
|
|
@@ -349,7 +349,7 @@ function versionsWithMarkup(versions) {
|
|
|
349
349
|
}
|
|
350
350
|
var SIGNED_UNCHANGED = "The signed PDF is unchanged: the comments are kept beside it as markup.";
|
|
351
351
|
function useDocumentMarkup(documentData, snapshotVersion, currentSigned = false) {
|
|
352
|
-
const { client, notify, saveFile, onDocumentsChanged } =
|
|
352
|
+
const { client, notify, saveFile, onDocumentsChanged } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
353
353
|
const documentId = documentData?.external_id;
|
|
354
354
|
const currentVersion = documentData?.current_version ?? 1;
|
|
355
355
|
const shownVersion = snapshotVersion ?? currentVersion;
|
|
@@ -380,11 +380,11 @@ function useDocumentMarkup(documentData, snapshotVersion, currentSigned = false)
|
|
|
380
380
|
const downloadMarkup = react.useCallback(async () => {
|
|
381
381
|
if (!documentId) return;
|
|
382
382
|
if (currentSigned) {
|
|
383
|
-
notify(
|
|
383
|
+
notify(chunkNETQSWIK_cjs.SIGNED_LOCKED_REASON, "info");
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
try {
|
|
387
|
-
const { blob, fileName } = await
|
|
387
|
+
const { blob, fileName } = await chunkNETQSWIK_cjs.fetchMarkupPdf(
|
|
388
388
|
client,
|
|
389
389
|
documentId,
|
|
390
390
|
snapshotVersion ? snapshotVersion : void 0
|
|
@@ -521,7 +521,7 @@ function useIsOnline() {
|
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
523
|
function useDocumentBytes(documentRef, options) {
|
|
524
|
-
const { client } =
|
|
524
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
525
525
|
const { version, kind, enabled = true, fallback } = options;
|
|
526
526
|
return reactQuery.useQuery({
|
|
527
527
|
queryKey: chunkRRWAX52L_cjs.documentBytesKey(documentRef, version ?? null, kind),
|
|
@@ -531,7 +531,7 @@ function useDocumentBytes(documentRef, options) {
|
|
|
531
531
|
if (offline) return offline;
|
|
532
532
|
}
|
|
533
533
|
try {
|
|
534
|
-
return await (kind === "original" ?
|
|
534
|
+
return await (kind === "original" ? chunkNETQSWIK_cjs.fetchDocumentFile : chunkNETQSWIK_cjs.fetchDocumentPdf)(
|
|
535
535
|
client,
|
|
536
536
|
documentRef,
|
|
537
537
|
{ signal }
|
|
@@ -576,7 +576,7 @@ async function fetchDocumentSignatures(client, documentRef) {
|
|
|
576
576
|
return data;
|
|
577
577
|
}
|
|
578
578
|
function useDocumentSignatures(documentId, enabled = true) {
|
|
579
|
-
const { client } =
|
|
579
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
580
580
|
const { docId, version } = chunkZWFMFOGP_cjs.parseVersionRef(documentId);
|
|
581
581
|
return reactQuery.useQuery({
|
|
582
582
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.documentSignatures(docId ?? "", version),
|
|
@@ -644,7 +644,7 @@ async function signDocument(client$1, deploymentDomain, {
|
|
|
644
644
|
return signed.data;
|
|
645
645
|
}
|
|
646
646
|
function useSignDocument() {
|
|
647
|
-
const env =
|
|
647
|
+
const env = chunkNETQSWIK_cjs.useDocumentTools();
|
|
648
648
|
const queryClient = reactQuery.useQueryClient();
|
|
649
649
|
return reactQuery.useMutation({
|
|
650
650
|
mutationFn: (vars) => {
|
|
@@ -690,7 +690,7 @@ async function fetchSignatureVerification(client, reference) {
|
|
|
690
690
|
return data;
|
|
691
691
|
}
|
|
692
692
|
function useSignatureVerification(reference) {
|
|
693
|
-
const { client } =
|
|
693
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
694
694
|
return reactQuery.useQuery({
|
|
695
695
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureVerification(reference ?? ""),
|
|
696
696
|
queryFn: () => fetchSignatureVerification(client, reference),
|
|
@@ -793,7 +793,7 @@ async function fetchDocumentSignatureRequests(client, documentId) {
|
|
|
793
793
|
return data;
|
|
794
794
|
}
|
|
795
795
|
function useDocumentSignatureRequests(documentId, enabled = true) {
|
|
796
|
-
const { client } =
|
|
796
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
797
797
|
return reactQuery.useQuery({
|
|
798
798
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureRequestsForDocument(documentId ?? ""),
|
|
799
799
|
queryFn: () => fetchDocumentSignatureRequests(client, documentId),
|
|
@@ -802,7 +802,7 @@ function useDocumentSignatureRequests(documentId, enabled = true) {
|
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
function useSignatureRequestsAwaitingMe(enabled = true) {
|
|
805
|
-
const { client } =
|
|
805
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
806
806
|
return reactQuery.useQuery({
|
|
807
807
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureRequestsAwaitingMe(),
|
|
808
808
|
queryFn: async () => {
|
|
@@ -817,7 +817,7 @@ function useSignatureRequestsAwaitingMe(enabled = true) {
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function useSignatureRequest(requestId) {
|
|
820
|
-
const { client } =
|
|
820
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
821
821
|
return reactQuery.useQuery({
|
|
822
822
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureRequest(requestId ?? ""),
|
|
823
823
|
queryFn: async () => {
|
|
@@ -870,7 +870,7 @@ function useInvalidateRequests() {
|
|
|
870
870
|
return () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureRequests() });
|
|
871
871
|
}
|
|
872
872
|
function useSaveSignatureRequest() {
|
|
873
|
-
const { client } =
|
|
873
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
874
874
|
const invalidate = useInvalidateRequests();
|
|
875
875
|
return reactQuery.useMutation({
|
|
876
876
|
mutationFn: (vars) => saveSignatureRequest(client, vars),
|
|
@@ -878,7 +878,7 @@ function useSaveSignatureRequest() {
|
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
880
|
function useVoidSignatureRequest() {
|
|
881
|
-
const { client } =
|
|
881
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
882
882
|
const invalidate = useInvalidateRequests();
|
|
883
883
|
return reactQuery.useMutation({
|
|
884
884
|
mutationFn: async (requestId) => {
|
|
@@ -892,7 +892,7 @@ function useVoidSignatureRequest() {
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
function useDeclineSignatureRequest() {
|
|
895
|
-
const { client } =
|
|
895
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
896
896
|
const invalidate = useInvalidateRequests();
|
|
897
897
|
return reactQuery.useMutation({
|
|
898
898
|
mutationFn: async ({ requestId, reason }) => {
|
|
@@ -932,7 +932,7 @@ async function signSignatureRequest(client$1, deploymentDomain, { request, pdfBl
|
|
|
932
932
|
return signed.data;
|
|
933
933
|
}
|
|
934
934
|
function useSignSignatureRequest() {
|
|
935
|
-
const env =
|
|
935
|
+
const env = chunkNETQSWIK_cjs.useDocumentTools();
|
|
936
936
|
const invalidate = useInvalidateRequests();
|
|
937
937
|
const queryClient = reactQuery.useQueryClient();
|
|
938
938
|
return reactQuery.useMutation({
|
|
@@ -950,7 +950,7 @@ function useSignSignatureRequest() {
|
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
function useSignerCandidates(enabled = true) {
|
|
953
|
-
const { client, user } =
|
|
953
|
+
const { client, user } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
954
954
|
return reactQuery.useQuery({
|
|
955
955
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.signatureCandidates(),
|
|
956
956
|
queryFn: async () => {
|
|
@@ -990,7 +990,7 @@ async function inviteSigners(client, documentId, emails) {
|
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
function useInviteSigners() {
|
|
993
|
-
const { client } =
|
|
993
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
994
994
|
const invalidate = useInvalidateRequests();
|
|
995
995
|
const queryClient = reactQuery.useQueryClient();
|
|
996
996
|
return reactQuery.useMutation({
|
|
@@ -1034,7 +1034,7 @@ async function deleteSavedSignature(client) {
|
|
|
1034
1034
|
if (!response.ok) throw new Error(detail2(error, "Your saved signature could not be deleted"));
|
|
1035
1035
|
}
|
|
1036
1036
|
function useSavedSignature(enabled = true) {
|
|
1037
|
-
const { client } =
|
|
1037
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
1038
1038
|
return reactQuery.useQuery({
|
|
1039
1039
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.savedSignature(),
|
|
1040
1040
|
queryFn: () => fetchSavedSignature(client),
|
|
@@ -1044,7 +1044,7 @@ function useSavedSignature(enabled = true) {
|
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
1046
|
function useStoreSavedSignature() {
|
|
1047
|
-
const { client } =
|
|
1047
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
1048
1048
|
const queryClient = reactQuery.useQueryClient();
|
|
1049
1049
|
return reactQuery.useMutation({
|
|
1050
1050
|
mutationFn: (signature) => storeSavedSignature(client, signature),
|
|
@@ -1052,7 +1052,7 @@ function useStoreSavedSignature() {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
function useDeleteSavedSignature() {
|
|
1055
|
-
const { client } =
|
|
1055
|
+
const { client } = chunkNETQSWIK_cjs.useDocumentTools();
|
|
1056
1056
|
const queryClient = reactQuery.useQueryClient();
|
|
1057
1057
|
return reactQuery.useMutation({
|
|
1058
1058
|
mutationFn: () => deleteSavedSignature(client),
|
|
@@ -1170,71 +1170,71 @@ function useFileShares(client) {
|
|
|
1170
1170
|
|
|
1171
1171
|
Object.defineProperty(exports, "DocumentFetchError", {
|
|
1172
1172
|
enumerable: true,
|
|
1173
|
-
get: function () { return
|
|
1173
|
+
get: function () { return chunkNETQSWIK_cjs.DocumentFetchError; }
|
|
1174
1174
|
});
|
|
1175
1175
|
Object.defineProperty(exports, "DocumentToolsProvider", {
|
|
1176
1176
|
enumerable: true,
|
|
1177
|
-
get: function () { return
|
|
1177
|
+
get: function () { return chunkNETQSWIK_cjs.DocumentToolsProvider; }
|
|
1178
1178
|
});
|
|
1179
1179
|
Object.defineProperty(exports, "MarkupDownloadError", {
|
|
1180
1180
|
enumerable: true,
|
|
1181
|
-
get: function () { return
|
|
1181
|
+
get: function () { return chunkNETQSWIK_cjs.MarkupDownloadError; }
|
|
1182
1182
|
});
|
|
1183
1183
|
Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
|
|
1184
1184
|
enumerable: true,
|
|
1185
|
-
get: function () { return
|
|
1185
|
+
get: function () { return chunkNETQSWIK_cjs.SIGNED_LOCKED_REASON; }
|
|
1186
1186
|
});
|
|
1187
1187
|
Object.defineProperty(exports, "certificateLink", {
|
|
1188
1188
|
enumerable: true,
|
|
1189
|
-
get: function () { return
|
|
1189
|
+
get: function () { return chunkNETQSWIK_cjs.certificateLink; }
|
|
1190
1190
|
});
|
|
1191
1191
|
Object.defineProperty(exports, "clientUpload", {
|
|
1192
1192
|
enumerable: true,
|
|
1193
|
-
get: function () { return
|
|
1193
|
+
get: function () { return chunkNETQSWIK_cjs.clientUpload; }
|
|
1194
1194
|
});
|
|
1195
1195
|
Object.defineProperty(exports, "contentDispositionFileName", {
|
|
1196
1196
|
enumerable: true,
|
|
1197
|
-
get: function () { return
|
|
1197
|
+
get: function () { return chunkNETQSWIK_cjs.contentDispositionFileName; }
|
|
1198
1198
|
});
|
|
1199
1199
|
Object.defineProperty(exports, "currentHasMarkup", {
|
|
1200
1200
|
enumerable: true,
|
|
1201
|
-
get: function () { return
|
|
1201
|
+
get: function () { return chunkNETQSWIK_cjs.currentHasMarkup; }
|
|
1202
1202
|
});
|
|
1203
1203
|
Object.defineProperty(exports, "defaultCertificateUrl", {
|
|
1204
1204
|
enumerable: true,
|
|
1205
|
-
get: function () { return
|
|
1205
|
+
get: function () { return chunkNETQSWIK_cjs.defaultCertificateUrl; }
|
|
1206
1206
|
});
|
|
1207
1207
|
Object.defineProperty(exports, "downloadBlob", {
|
|
1208
1208
|
enumerable: true,
|
|
1209
|
-
get: function () { return
|
|
1209
|
+
get: function () { return chunkNETQSWIK_cjs.downloadBlob; }
|
|
1210
1210
|
});
|
|
1211
1211
|
Object.defineProperty(exports, "fetchDocumentFile", {
|
|
1212
1212
|
enumerable: true,
|
|
1213
|
-
get: function () { return
|
|
1213
|
+
get: function () { return chunkNETQSWIK_cjs.fetchDocumentFile; }
|
|
1214
1214
|
});
|
|
1215
1215
|
Object.defineProperty(exports, "fetchDocumentPdf", {
|
|
1216
1216
|
enumerable: true,
|
|
1217
|
-
get: function () { return
|
|
1217
|
+
get: function () { return chunkNETQSWIK_cjs.fetchDocumentPdf; }
|
|
1218
1218
|
});
|
|
1219
1219
|
Object.defineProperty(exports, "fetchMarkupPdf", {
|
|
1220
1220
|
enumerable: true,
|
|
1221
|
-
get: function () { return
|
|
1221
|
+
get: function () { return chunkNETQSWIK_cjs.fetchMarkupPdf; }
|
|
1222
1222
|
});
|
|
1223
1223
|
Object.defineProperty(exports, "isSignedVersion", {
|
|
1224
1224
|
enumerable: true,
|
|
1225
|
-
get: function () { return
|
|
1225
|
+
get: function () { return chunkNETQSWIK_cjs.isSignedVersion; }
|
|
1226
1226
|
});
|
|
1227
1227
|
Object.defineProperty(exports, "uploadQueryString", {
|
|
1228
1228
|
enumerable: true,
|
|
1229
|
-
get: function () { return
|
|
1229
|
+
get: function () { return chunkNETQSWIK_cjs.uploadQueryString; }
|
|
1230
1230
|
});
|
|
1231
1231
|
Object.defineProperty(exports, "useDocumentTools", {
|
|
1232
1232
|
enumerable: true,
|
|
1233
|
-
get: function () { return
|
|
1233
|
+
get: function () { return chunkNETQSWIK_cjs.useDocumentTools; }
|
|
1234
1234
|
});
|
|
1235
1235
|
Object.defineProperty(exports, "useOptionalDocumentTools", {
|
|
1236
1236
|
enumerable: true,
|
|
1237
|
-
get: function () { return
|
|
1237
|
+
get: function () { return chunkNETQSWIK_cjs.useOptionalDocumentTools; }
|
|
1238
1238
|
});
|
|
1239
1239
|
Object.defineProperty(exports, "documentBytesKey", {
|
|
1240
1240
|
enumerable: true,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { fetchDocumentFile, fetchDocumentPdf, DocumentFetchError, useDocumentTools, SIGNED_LOCKED_REASON, fetchMarkupPdf } from '../chunk-
|
|
2
|
-
export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-
|
|
1
|
+
import { fetchDocumentFile, fetchDocumentPdf, DocumentFetchError, useDocumentTools, SIGNED_LOCKED_REASON, fetchMarkupPdf } from '../chunk-IBBV5A5M.js';
|
|
2
|
+
export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-IBBV5A5M.js';
|
|
3
|
+
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-NSNTGXTW.js';
|
|
3
4
|
import { documentBytesKey, arbiQueryKeys } from '../chunk-PBXJFMES.js';
|
|
4
5
|
export { documentBytesKey } from '../chunk-PBXJFMES.js';
|
|
5
|
-
import
|
|
6
|
-
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-T3USOSVN.js';
|
|
6
|
+
import '../chunk-MB34NKBZ.js';
|
|
7
7
|
import { parseVersionRef } from '../chunk-NNWMHMEC.js';
|
|
8
8
|
import '../chunk-WUTL62MC.js';
|
|
9
9
|
import '../chunk-YNNAJJ5Z.js';
|
|
10
|
-
import '../chunk-QRCMKEE6.js';
|
|
11
10
|
import '../chunk-47CCGUWR.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-MB34NKBZ.js';
|
|
11
|
+
import '../chunk-QRCMKEE6.js';
|
|
14
12
|
import '../chunk-CPZ36AQS.js';
|
|
13
|
+
import '../chunk-SN5YV6FF.js';
|
|
14
|
+
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-T3USOSVN.js';
|
|
15
15
|
import { useMemo, useState, useCallback, useEffect, useSyncExternalStore } from 'react';
|
|
16
16
|
import { onlineManager, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
17
17
|
import { unlockIdentityWithPassword, signMessage, getUserEncryptionKeypair, sealedBoxDecrypt, sealedBoxEncrypt, initSodium } from '@arbidocs/client';
|
|
@@ -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-YNOX7VIL.js');
|
|
111
111
|
const result = await buildBundle(items, {
|
|
112
112
|
layout: choices.layout,
|
|
113
113
|
bates: {
|