@arbidocs/react 0.5.12 → 0.5.14
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 +4 -4
- package/dist/artifacts/index.js +3 -3
- package/dist/bundle-ARVFITGZ.cjs +14 -0
- package/dist/{bundle-MRZK7HWU.cjs.map → bundle-ARVFITGZ.cjs.map} +1 -1
- package/dist/bundle-KTL2TMF4.js +5 -0
- package/dist/{bundle-HFDCTQCK.js.map → bundle-KTL2TMF4.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +43 -43
- package/dist/calls/livekit/index.js +4 -4
- package/dist/{chunk-YWYCEEBF.js → chunk-5JR64WMK.js} +3 -3
- package/dist/{chunk-YWYCEEBF.js.map → chunk-5JR64WMK.js.map} +1 -1
- package/dist/{chunk-7NHOKV7N.cjs → chunk-5OPQJIMY.cjs} +3 -3
- package/dist/{chunk-7NHOKV7N.cjs.map → chunk-5OPQJIMY.cjs.map} +1 -1
- package/dist/{chunk-BXR5WEQ3.cjs → chunk-DHNECU6Z.cjs} +6 -6
- package/dist/{chunk-BXR5WEQ3.cjs.map → chunk-DHNECU6Z.cjs.map} +1 -1
- package/dist/{chunk-S33P6THG.js → chunk-DRYAQ5LX.js} +3 -3
- package/dist/{chunk-S33P6THG.js.map → chunk-DRYAQ5LX.js.map} +1 -1
- package/dist/{chunk-R4RVHP6T.js → chunk-EUL6I5HZ.js} +3 -3
- package/dist/{chunk-R4RVHP6T.js.map → chunk-EUL6I5HZ.js.map} +1 -1
- package/dist/{chunk-WHBDSNXO.js → chunk-FZLT2YYZ.js} +4 -4
- package/dist/{chunk-WHBDSNXO.js.map → chunk-FZLT2YYZ.js.map} +1 -1
- package/dist/{chunk-WA4NBJ6Q.cjs → chunk-IGITGIR2.cjs} +3 -3
- package/dist/{chunk-WA4NBJ6Q.cjs.map → chunk-IGITGIR2.cjs.map} +1 -1
- package/dist/{chunk-3WIBD44F.js → chunk-MAB3JV6R.js} +3 -3
- package/dist/{chunk-3WIBD44F.js.map → chunk-MAB3JV6R.js.map} +1 -1
- package/dist/{chunk-RDF2Q45F.cjs → chunk-MILSSS26.cjs} +3 -3
- package/dist/{chunk-RDF2Q45F.cjs.map → chunk-MILSSS26.cjs.map} +1 -1
- package/dist/{chunk-2M4B4FFA.cjs → chunk-O4IWCDEJ.cjs} +3 -3
- package/dist/{chunk-2M4B4FFA.cjs.map → chunk-O4IWCDEJ.cjs.map} +1 -1
- package/dist/{chunk-WE7QWWJ4.js → chunk-PVGDSQOB.js} +3 -3
- package/dist/{chunk-WE7QWWJ4.js.map → chunk-PVGDSQOB.js.map} +1 -1
- package/dist/{chunk-XTYG5SIL.cjs → chunk-RZ2DMNSP.cjs} +3 -3
- package/dist/{chunk-XTYG5SIL.cjs.map → chunk-RZ2DMNSP.cjs.map} +1 -1
- package/dist/{chunk-36NAB4FC.cjs → chunk-UMP5MJER.cjs} +3 -3
- package/dist/{chunk-36NAB4FC.cjs.map → chunk-UMP5MJER.cjs.map} +1 -1
- package/dist/{chunk-5WVXYOGX.js → chunk-YO4LH3ZC.js} +3 -3
- package/dist/{chunk-5WVXYOGX.js.map → chunk-YO4LH3ZC.js.map} +1 -1
- package/dist/document-tools/index.cjs +48 -48
- package/dist/document-tools/index.js +7 -7
- package/dist/index.cjs +678 -650
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -120
- package/dist/index.d.ts +17 -120
- package/dist/index.js +43 -15
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +33 -33
- package/dist/shell/index.js +2 -2
- package/dist/ui/index.cjs +147 -147
- package/dist/ui/index.js +2 -2
- package/dist/viewers/index.cjs +5 -5
- package/dist/viewers/index.js +2 -2
- package/package.json +3 -3
- package/dist/bundle-HFDCTQCK.js +0 -5
- package/dist/bundle-MRZK7HWU.cjs +0 -14
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunkLRBOMQ6Q_cjs = require('../chunk-LRBOMQ6Q.cjs');
|
|
3
|
+
var chunkO4IWCDEJ_cjs = require('../chunk-O4IWCDEJ.cjs');
|
|
4
|
+
var chunkMILSSS26_cjs = require('../chunk-MILSSS26.cjs');
|
|
6
5
|
var chunkH4FGDXYB_cjs = require('../chunk-H4FGDXYB.cjs');
|
|
6
|
+
require('../chunk-QQ7SCJRY.cjs');
|
|
7
7
|
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
8
8
|
require('../chunk-VOFNX4P6.cjs');
|
|
9
9
|
require('../chunk-WYZJLZ67.cjs');
|
|
10
10
|
require('../chunk-HJDR5HEO.cjs');
|
|
11
11
|
require('../chunk-Z3LLUO32.cjs');
|
|
12
|
-
require('../chunk-S6A6FSG7.cjs');
|
|
13
|
-
require('../chunk-QQ7SCJRY.cjs');
|
|
14
12
|
require('../chunk-RCKA7BEF.cjs');
|
|
13
|
+
require('../chunk-S6A6FSG7.cjs');
|
|
14
|
+
var chunkLRBOMQ6Q_cjs = require('../chunk-LRBOMQ6Q.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 ? chunkO4IWCDEJ_cjs.fetchDocumentFile : chunkO4IWCDEJ_cjs.fetchDocumentPdf)(client, doc.external_id);
|
|
46
46
|
} catch (e) {
|
|
47
|
-
if (!pdf && e instanceof
|
|
47
|
+
if (!pdf && e instanceof chunkO4IWCDEJ_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-ARVFITGZ.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 chunkMILSSS26_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 = chunkMILSSS26_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
|
...chunkLRBOMQ6Q_cjs.emptyLayer(documentId, (/* @__PURE__ */ new Date()).toISOString()),
|
|
323
323
|
annotations: marks
|
|
324
324
|
};
|
|
325
|
-
const merged =
|
|
325
|
+
const merged = chunkMILSSS26_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(chunkLRBOMQ6Q_cjs.parseLayer({ ...merged, schema: chunkLRBOMQ6Q_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 } = chunkO4IWCDEJ_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(chunkO4IWCDEJ_cjs.SIGNED_LOCKED_REASON, "info");
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
try {
|
|
387
|
-
const { blob, fileName } = await
|
|
387
|
+
const { blob, fileName } = await chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
525
525
|
const { version, kind, enabled = true, fallback } = options;
|
|
526
526
|
return reactQuery.useQuery({
|
|
527
527
|
queryKey: chunkH4FGDXYB_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" ? chunkO4IWCDEJ_cjs.fetchDocumentFile : chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
580
580
|
const { docId, version } = chunkZWFMFOGP_cjs.parseVersionRef(documentId);
|
|
581
581
|
return reactQuery.useQuery({
|
|
582
582
|
queryKey: chunkH4FGDXYB_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 = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
694
694
|
return reactQuery.useQuery({
|
|
695
695
|
queryKey: chunkH4FGDXYB_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
797
797
|
return reactQuery.useQuery({
|
|
798
798
|
queryKey: chunkH4FGDXYB_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
806
806
|
return reactQuery.useQuery({
|
|
807
807
|
queryKey: chunkH4FGDXYB_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
821
821
|
return reactQuery.useQuery({
|
|
822
822
|
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.signatureRequest(requestId ?? ""),
|
|
823
823
|
queryFn: async () => {
|
|
@@ -870,7 +870,7 @@ function useInvalidateRequests() {
|
|
|
870
870
|
return () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.signatureRequests() });
|
|
871
871
|
}
|
|
872
872
|
function useSaveSignatureRequest() {
|
|
873
|
-
const { client } =
|
|
873
|
+
const { client } = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_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 = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
954
954
|
return reactQuery.useQuery({
|
|
955
955
|
queryKey: chunkH4FGDXYB_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 } = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
1038
1038
|
return reactQuery.useQuery({
|
|
1039
1039
|
queryKey: chunkH4FGDXYB_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 } = chunkO4IWCDEJ_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 } = chunkO4IWCDEJ_cjs.useDocumentTools();
|
|
1056
1056
|
const queryClient = reactQuery.useQueryClient();
|
|
1057
1057
|
return reactQuery.useMutation({
|
|
1058
1058
|
mutationFn: () => deleteSavedSignature(client),
|
|
@@ -1073,71 +1073,71 @@ function pngSize(base64) {
|
|
|
1073
1073
|
|
|
1074
1074
|
Object.defineProperty(exports, "DocumentFetchError", {
|
|
1075
1075
|
enumerable: true,
|
|
1076
|
-
get: function () { return
|
|
1076
|
+
get: function () { return chunkO4IWCDEJ_cjs.DocumentFetchError; }
|
|
1077
1077
|
});
|
|
1078
1078
|
Object.defineProperty(exports, "DocumentToolsProvider", {
|
|
1079
1079
|
enumerable: true,
|
|
1080
|
-
get: function () { return
|
|
1080
|
+
get: function () { return chunkO4IWCDEJ_cjs.DocumentToolsProvider; }
|
|
1081
1081
|
});
|
|
1082
1082
|
Object.defineProperty(exports, "MarkupDownloadError", {
|
|
1083
1083
|
enumerable: true,
|
|
1084
|
-
get: function () { return
|
|
1084
|
+
get: function () { return chunkO4IWCDEJ_cjs.MarkupDownloadError; }
|
|
1085
1085
|
});
|
|
1086
1086
|
Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
|
|
1087
1087
|
enumerable: true,
|
|
1088
|
-
get: function () { return
|
|
1088
|
+
get: function () { return chunkO4IWCDEJ_cjs.SIGNED_LOCKED_REASON; }
|
|
1089
1089
|
});
|
|
1090
1090
|
Object.defineProperty(exports, "certificateLink", {
|
|
1091
1091
|
enumerable: true,
|
|
1092
|
-
get: function () { return
|
|
1092
|
+
get: function () { return chunkO4IWCDEJ_cjs.certificateLink; }
|
|
1093
1093
|
});
|
|
1094
1094
|
Object.defineProperty(exports, "clientUpload", {
|
|
1095
1095
|
enumerable: true,
|
|
1096
|
-
get: function () { return
|
|
1096
|
+
get: function () { return chunkO4IWCDEJ_cjs.clientUpload; }
|
|
1097
1097
|
});
|
|
1098
1098
|
Object.defineProperty(exports, "contentDispositionFileName", {
|
|
1099
1099
|
enumerable: true,
|
|
1100
|
-
get: function () { return
|
|
1100
|
+
get: function () { return chunkO4IWCDEJ_cjs.contentDispositionFileName; }
|
|
1101
1101
|
});
|
|
1102
1102
|
Object.defineProperty(exports, "currentHasMarkup", {
|
|
1103
1103
|
enumerable: true,
|
|
1104
|
-
get: function () { return
|
|
1104
|
+
get: function () { return chunkO4IWCDEJ_cjs.currentHasMarkup; }
|
|
1105
1105
|
});
|
|
1106
1106
|
Object.defineProperty(exports, "defaultCertificateUrl", {
|
|
1107
1107
|
enumerable: true,
|
|
1108
|
-
get: function () { return
|
|
1108
|
+
get: function () { return chunkO4IWCDEJ_cjs.defaultCertificateUrl; }
|
|
1109
1109
|
});
|
|
1110
1110
|
Object.defineProperty(exports, "downloadBlob", {
|
|
1111
1111
|
enumerable: true,
|
|
1112
|
-
get: function () { return
|
|
1112
|
+
get: function () { return chunkO4IWCDEJ_cjs.downloadBlob; }
|
|
1113
1113
|
});
|
|
1114
1114
|
Object.defineProperty(exports, "fetchDocumentFile", {
|
|
1115
1115
|
enumerable: true,
|
|
1116
|
-
get: function () { return
|
|
1116
|
+
get: function () { return chunkO4IWCDEJ_cjs.fetchDocumentFile; }
|
|
1117
1117
|
});
|
|
1118
1118
|
Object.defineProperty(exports, "fetchDocumentPdf", {
|
|
1119
1119
|
enumerable: true,
|
|
1120
|
-
get: function () { return
|
|
1120
|
+
get: function () { return chunkO4IWCDEJ_cjs.fetchDocumentPdf; }
|
|
1121
1121
|
});
|
|
1122
1122
|
Object.defineProperty(exports, "fetchMarkupPdf", {
|
|
1123
1123
|
enumerable: true,
|
|
1124
|
-
get: function () { return
|
|
1124
|
+
get: function () { return chunkO4IWCDEJ_cjs.fetchMarkupPdf; }
|
|
1125
1125
|
});
|
|
1126
1126
|
Object.defineProperty(exports, "isSignedVersion", {
|
|
1127
1127
|
enumerable: true,
|
|
1128
|
-
get: function () { return
|
|
1128
|
+
get: function () { return chunkO4IWCDEJ_cjs.isSignedVersion; }
|
|
1129
1129
|
});
|
|
1130
1130
|
Object.defineProperty(exports, "uploadQueryString", {
|
|
1131
1131
|
enumerable: true,
|
|
1132
|
-
get: function () { return
|
|
1132
|
+
get: function () { return chunkO4IWCDEJ_cjs.uploadQueryString; }
|
|
1133
1133
|
});
|
|
1134
1134
|
Object.defineProperty(exports, "useDocumentTools", {
|
|
1135
1135
|
enumerable: true,
|
|
1136
|
-
get: function () { return
|
|
1136
|
+
get: function () { return chunkO4IWCDEJ_cjs.useDocumentTools; }
|
|
1137
1137
|
});
|
|
1138
1138
|
Object.defineProperty(exports, "useOptionalDocumentTools", {
|
|
1139
1139
|
enumerable: true,
|
|
1140
|
-
get: function () { return
|
|
1140
|
+
get: function () { return chunkO4IWCDEJ_cjs.useOptionalDocumentTools; }
|
|
1141
1141
|
});
|
|
1142
1142
|
Object.defineProperty(exports, "documentBytesKey", {
|
|
1143
1143
|
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-
|
|
3
|
-
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-
|
|
4
|
-
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-NBIW7AEE.js';
|
|
1
|
+
import { fetchDocumentFile, fetchDocumentPdf, DocumentFetchError, useDocumentTools, SIGNED_LOCKED_REASON, fetchMarkupPdf } from '../chunk-5JR64WMK.js';
|
|
2
|
+
export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-5JR64WMK.js';
|
|
3
|
+
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-DRYAQ5LX.js';
|
|
5
4
|
import { documentBytesKey, arbiQueryKeys } from '../chunk-RG2ZE7DF.js';
|
|
6
5
|
export { documentBytesKey } from '../chunk-RG2ZE7DF.js';
|
|
6
|
+
import '../chunk-KGCGA452.js';
|
|
7
7
|
import { parseVersionRef } from '../chunk-NNWMHMEC.js';
|
|
8
8
|
import '../chunk-WUTL62MC.js';
|
|
9
9
|
import '../chunk-YNNAJJ5Z.js';
|
|
10
10
|
import '../chunk-47CCGUWR.js';
|
|
11
11
|
import '../chunk-QRCMKEE6.js';
|
|
12
|
-
import '../chunk-SN5YV6FF.js';
|
|
13
|
-
import '../chunk-KGCGA452.js';
|
|
14
12
|
import '../chunk-CPZ36AQS.js';
|
|
13
|
+
import '../chunk-SN5YV6FF.js';
|
|
14
|
+
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-NBIW7AEE.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-KTL2TMF4.js');
|
|
111
111
|
const result = await buildBundle(items, {
|
|
112
112
|
layout: choices.layout,
|
|
113
113
|
bates: {
|