@arbidocs/react 0.5.57 → 0.5.59
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/README.md +9 -0
- package/dist/artifacts/index.cjs +14 -14
- package/dist/artifacts/index.js +4 -4
- package/dist/calls/livekit/index.cjs +49 -49
- package/dist/calls/livekit/index.js +4 -4
- package/dist/{chunk-V64EETLS.cjs → chunk-3QK4VVPG.cjs} +4 -4
- package/dist/{chunk-V64EETLS.cjs.map → chunk-3QK4VVPG.cjs.map} +1 -1
- package/dist/{chunk-3CVY5SGY.cjs → chunk-4E737GNX.cjs} +65 -65
- package/dist/{chunk-3CVY5SGY.cjs.map → chunk-4E737GNX.cjs.map} +1 -1
- package/dist/{chunk-RRWAX52L.cjs → chunk-G76ASVVH.cjs} +6 -2
- package/dist/chunk-G76ASVVH.cjs.map +1 -0
- package/dist/{chunk-WRMA2JYX.js → chunk-KRH55LXW.js} +5 -5
- package/dist/{chunk-WRMA2JYX.js.map → chunk-KRH55LXW.js.map} +1 -1
- package/dist/{chunk-UKEUDTOE.cjs → chunk-LCSUCZVX.cjs} +46 -46
- package/dist/{chunk-UKEUDTOE.cjs.map → chunk-LCSUCZVX.cjs.map} +1 -1
- package/dist/{chunk-4TKNUJKD.js → chunk-M2SZQBCO.js} +3 -3
- package/dist/{chunk-4TKNUJKD.js.map → chunk-M2SZQBCO.js.map} +1 -1
- package/dist/{chunk-PVUZULHI.js → chunk-OSWKXZTJ.js} +92 -12
- package/dist/chunk-OSWKXZTJ.js.map +1 -0
- package/dist/{chunk-DFZECLD3.js → chunk-R7YNABZY.js} +2 -2
- package/dist/chunk-R7YNABZY.js.map +1 -0
- package/dist/{chunk-JFL7BBZ6.js → chunk-S2W3ZOWG.js} +4 -4
- package/dist/{chunk-JFL7BBZ6.js.map → chunk-S2W3ZOWG.js.map} +1 -1
- package/dist/{chunk-PBXJFMES.js → chunk-U64WCQP3.js} +6 -2
- package/dist/chunk-U64WCQP3.js.map +1 -0
- package/dist/{chunk-2JQ7QNOO.cjs → chunk-X7JXQT6F.cjs} +154 -69
- package/dist/chunk-X7JXQT6F.cjs.map +1 -0
- package/dist/{chunk-YRY6DGRU.cjs → chunk-Y7S2SQH3.cjs} +2 -2
- package/dist/chunk-Y7S2SQH3.cjs.map +1 -0
- package/dist/document-tools/index.cjs +60 -60
- package/dist/document-tools/index.d.cts +2 -2
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/document-tools/index.js +5 -5
- package/dist/index.cjs +2317 -1092
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1672 -1085
- package/dist/index.d.ts +1672 -1085
- package/dist/index.js +1223 -60
- package/dist/index.js.map +1 -1
- package/dist/{query-keys.d-DM2N5pzN.d.cts → query-keys.d-DEEMzkLz.d.cts} +4 -0
- package/dist/{query-keys.d-DM2N5pzN.d.ts → query-keys.d-DEEMzkLz.d.ts} +4 -0
- package/dist/viewers/index.cjs +2 -2
- package/dist/viewers/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-2JQ7QNOO.cjs.map +0 -1
- package/dist/chunk-DFZECLD3.js.map +0 -1
- package/dist/chunk-PBXJFMES.js.map +0 -1
- package/dist/chunk-PVUZULHI.js.map +0 -1
- package/dist/chunk-RRWAX52L.cjs.map +0 -1
- package/dist/chunk-YRY6DGRU.cjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3QK4VVPG_cjs = require('../chunk-3QK4VVPG.cjs');
|
|
4
4
|
var chunkSUZORMAB_cjs = require('../chunk-SUZORMAB.cjs');
|
|
5
5
|
var chunk2IJP73ZG_cjs = require('../chunk-2IJP73ZG.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkG76ASVVH_cjs = require('../chunk-G76ASVVH.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
12
|
require('../chunk-S6A6FSG7.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-Y7S2SQH3.cjs');
|
|
14
14
|
require('../chunk-RCKA7BEF.cjs');
|
|
15
15
|
var react = require('react');
|
|
16
16
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -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 ? chunk3QK4VVPG_cjs.fetchDocumentFile : chunk3QK4VVPG_cjs.fetchDocumentPdf)(client, doc.external_id);
|
|
46
46
|
} catch (e) {
|
|
47
|
-
if (!pdf && e instanceof
|
|
47
|
+
if (!pdf && e instanceof chunk3QK4VVPG_cjs.DocumentFetchError) return null;
|
|
48
48
|
throw e;
|
|
49
49
|
}
|
|
50
50
|
const bytes = new Uint8Array(await blob.arrayBuffer());
|
|
@@ -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 } = chunk3QK4VVPG_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(chunk3QK4VVPG_cjs.SIGNED_LOCKED_REASON, "info");
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
try {
|
|
387
|
-
const { blob, fileName } = await
|
|
387
|
+
const { blob, fileName } = await chunk3QK4VVPG_cjs.fetchMarkupPdf(
|
|
388
388
|
client,
|
|
389
389
|
documentId,
|
|
390
390
|
snapshotVersion ? snapshotVersion : void 0
|
|
@@ -521,17 +521,17 @@ function useIsOnline() {
|
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
523
|
function useDocumentBytes(documentRef, options) {
|
|
524
|
-
const { client } =
|
|
524
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
525
525
|
const { version, kind, enabled = true, fallback } = options;
|
|
526
526
|
return reactQuery.useQuery({
|
|
527
|
-
queryKey:
|
|
527
|
+
queryKey: chunkG76ASVVH_cjs.documentBytesKey(documentRef, version ?? null, kind),
|
|
528
528
|
queryFn: async ({ signal }) => {
|
|
529
529
|
if (fallback && typeof navigator !== "undefined" && navigator.onLine === false) {
|
|
530
530
|
const offline = await fallback();
|
|
531
531
|
if (offline) return offline;
|
|
532
532
|
}
|
|
533
533
|
try {
|
|
534
|
-
return await (kind === "original" ?
|
|
534
|
+
return await (kind === "original" ? chunk3QK4VVPG_cjs.fetchDocumentFile : chunk3QK4VVPG_cjs.fetchDocumentPdf)(
|
|
535
535
|
client,
|
|
536
536
|
documentRef,
|
|
537
537
|
{ signal }
|
|
@@ -576,10 +576,10 @@ async function fetchDocumentSignatures(client, documentRef) {
|
|
|
576
576
|
return data;
|
|
577
577
|
}
|
|
578
578
|
function useDocumentSignatures(documentId, enabled = true) {
|
|
579
|
-
const { client } =
|
|
579
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
580
580
|
const { docId, version } = chunkZWFMFOGP_cjs.parseVersionRef(documentId);
|
|
581
581
|
return reactQuery.useQuery({
|
|
582
|
-
queryKey:
|
|
582
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.documentSignatures(docId ?? "", version),
|
|
583
583
|
queryFn: () => fetchDocumentSignatures(client, documentId),
|
|
584
584
|
enabled: enabled && !!docId,
|
|
585
585
|
staleTime: 6e4
|
|
@@ -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 = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
648
648
|
const queryClient = reactQuery.useQueryClient();
|
|
649
649
|
return reactQuery.useMutation({
|
|
650
650
|
mutationFn: (vars) => {
|
|
@@ -653,7 +653,7 @@ function useSignDocument() {
|
|
|
653
653
|
},
|
|
654
654
|
onSuccess: async (result) => {
|
|
655
655
|
await env.onDocumentsChanged?.([result.doc_ext_id], "signed");
|
|
656
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
656
|
+
await queryClient.invalidateQueries({ queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.documentSignatures() });
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
659
|
}
|
|
@@ -690,9 +690,9 @@ async function fetchSignatureVerification(client, reference) {
|
|
|
690
690
|
return data;
|
|
691
691
|
}
|
|
692
692
|
function useSignatureVerification(reference) {
|
|
693
|
-
const { client } =
|
|
693
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
694
694
|
return reactQuery.useQuery({
|
|
695
|
-
queryKey:
|
|
695
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureVerification(reference ?? ""),
|
|
696
696
|
queryFn: () => fetchSignatureVerification(client, reference),
|
|
697
697
|
enabled: !!reference,
|
|
698
698
|
retry: false
|
|
@@ -793,18 +793,18 @@ async function fetchDocumentSignatureRequests(client, documentId) {
|
|
|
793
793
|
return data;
|
|
794
794
|
}
|
|
795
795
|
function useDocumentSignatureRequests(documentId, enabled = true) {
|
|
796
|
-
const { client } =
|
|
796
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
797
797
|
return reactQuery.useQuery({
|
|
798
|
-
queryKey:
|
|
798
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureRequestsForDocument(documentId ?? ""),
|
|
799
799
|
queryFn: () => fetchDocumentSignatureRequests(client, documentId),
|
|
800
800
|
enabled: enabled && !!documentId,
|
|
801
801
|
staleTime: 15e3
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
function useSignatureRequestsAwaitingMe(enabled = true) {
|
|
805
|
-
const { client } =
|
|
805
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
806
806
|
return reactQuery.useQuery({
|
|
807
|
-
queryKey:
|
|
807
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureRequestsAwaitingMe(),
|
|
808
808
|
queryFn: async () => {
|
|
809
809
|
const { data, error } = await client.GET("/v1/signature-requests", {
|
|
810
810
|
params: { query: { awaiting_me: true } }
|
|
@@ -817,9 +817,9 @@ function useSignatureRequestsAwaitingMe(enabled = true) {
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function useSignatureRequest(requestId) {
|
|
820
|
-
const { client } =
|
|
820
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
821
821
|
return reactQuery.useQuery({
|
|
822
|
-
queryKey:
|
|
822
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureRequest(requestId ?? ""),
|
|
823
823
|
queryFn: async () => {
|
|
824
824
|
const { data, error } = await client.GET("/v1/signature-requests/{request_ext_id}", {
|
|
825
825
|
params: { path: { request_ext_id: requestId } }
|
|
@@ -867,10 +867,10 @@ async function saveSignatureRequest(client, { documentId, version, fields, messa
|
|
|
867
867
|
}
|
|
868
868
|
function useInvalidateRequests() {
|
|
869
869
|
const queryClient = reactQuery.useQueryClient();
|
|
870
|
-
return () => queryClient.invalidateQueries({ queryKey:
|
|
870
|
+
return () => queryClient.invalidateQueries({ queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureRequests() });
|
|
871
871
|
}
|
|
872
872
|
function useSaveSignatureRequest() {
|
|
873
|
-
const { client } =
|
|
873
|
+
const { client } = chunk3QK4VVPG_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 } = chunk3QK4VVPG_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 } = chunk3QK4VVPG_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 = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
936
936
|
const invalidate = useInvalidateRequests();
|
|
937
937
|
const queryClient = reactQuery.useQueryClient();
|
|
938
938
|
return reactQuery.useMutation({
|
|
@@ -944,15 +944,15 @@ function useSignSignatureRequest() {
|
|
|
944
944
|
await invalidate();
|
|
945
945
|
if (result.completed && result.request.doc_ext_id) {
|
|
946
946
|
await env.onDocumentsChanged?.([result.request.doc_ext_id], "signed");
|
|
947
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
947
|
+
await queryClient.invalidateQueries({ queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.documentSignatures() });
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
function useSignerCandidates(enabled = true) {
|
|
953
|
-
const { client, user } =
|
|
953
|
+
const { client, user } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
954
954
|
return reactQuery.useQuery({
|
|
955
|
-
queryKey:
|
|
955
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureCandidates(),
|
|
956
956
|
queryFn: async () => {
|
|
957
957
|
const { data, error } = await client.GET("/v1/workspace/users");
|
|
958
958
|
if (!data) throw new Error(detail(error, "The workspace members could not be read"));
|
|
@@ -990,14 +990,14 @@ async function inviteSigners(client, documentId, emails) {
|
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
function useInviteSigners() {
|
|
993
|
-
const { client } =
|
|
993
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
994
994
|
const invalidate = useInvalidateRequests();
|
|
995
995
|
const queryClient = reactQuery.useQueryClient();
|
|
996
996
|
return reactQuery.useMutation({
|
|
997
997
|
mutationFn: ({ documentId, emails }) => inviteSigners(client, documentId, emails),
|
|
998
998
|
onSuccess: async () => {
|
|
999
999
|
await invalidate();
|
|
1000
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
1000
|
+
await queryClient.invalidateQueries({ queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.signatureCandidates() });
|
|
1001
1001
|
}
|
|
1002
1002
|
});
|
|
1003
1003
|
}
|
|
@@ -1034,9 +1034,9 @@ 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 } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
1038
1038
|
return reactQuery.useQuery({
|
|
1039
|
-
queryKey:
|
|
1039
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.savedSignature(),
|
|
1040
1040
|
queryFn: () => fetchSavedSignature(client),
|
|
1041
1041
|
enabled,
|
|
1042
1042
|
staleTime: 6e4,
|
|
@@ -1044,19 +1044,19 @@ function useSavedSignature(enabled = true) {
|
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
1046
|
function useStoreSavedSignature() {
|
|
1047
|
-
const { client } =
|
|
1047
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
1048
1048
|
const queryClient = reactQuery.useQueryClient();
|
|
1049
1049
|
return reactQuery.useMutation({
|
|
1050
1050
|
mutationFn: (signature) => storeSavedSignature(client, signature),
|
|
1051
|
-
onSuccess: (_, signature) => queryClient.setQueryData(
|
|
1051
|
+
onSuccess: (_, signature) => queryClient.setQueryData(chunkG76ASVVH_cjs.arbiQueryKeys.savedSignature(), signature)
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
function useDeleteSavedSignature() {
|
|
1055
|
-
const { client } =
|
|
1055
|
+
const { client } = chunk3QK4VVPG_cjs.useDocumentTools();
|
|
1056
1056
|
const queryClient = reactQuery.useQueryClient();
|
|
1057
1057
|
return reactQuery.useMutation({
|
|
1058
1058
|
mutationFn: () => deleteSavedSignature(client),
|
|
1059
|
-
onSuccess: () => queryClient.setQueryData(
|
|
1059
|
+
onSuccess: () => queryClient.setQueryData(chunkG76ASVVH_cjs.arbiQueryKeys.savedSignature(), null)
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
1062
|
function pngBytes(base64) {
|
|
@@ -1144,14 +1144,14 @@ async function signFileShare(client$1, domain, vars) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
function useFileShare(client, shareId, signing) {
|
|
1146
1146
|
return reactQuery.useQuery({
|
|
1147
|
-
queryKey:
|
|
1147
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.fileShare(shareId),
|
|
1148
1148
|
queryFn: () => getFileShare(client, shareId),
|
|
1149
1149
|
refetchInterval: signing ? false : 5e3
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
function useFileSharePdf(client, shareId, share) {
|
|
1153
1153
|
return reactQuery.useQuery({
|
|
1154
|
-
queryKey:
|
|
1154
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.fileSharePdf(shareId, share?.status),
|
|
1155
1155
|
queryFn: () => fileShareBytes(client, shareId, share?.status === "completed" ? "signed" : "view"),
|
|
1156
1156
|
enabled: !!share?.can_preview,
|
|
1157
1157
|
staleTime: Infinity
|
|
@@ -1159,7 +1159,7 @@ function useFileSharePdf(client, shareId, share) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
function useFileShares(client) {
|
|
1161
1161
|
return reactQuery.useQuery({
|
|
1162
|
-
queryKey:
|
|
1162
|
+
queryKey: chunkG76ASVVH_cjs.arbiQueryKeys.fileShares(),
|
|
1163
1163
|
queryFn: async () => {
|
|
1164
1164
|
const result = await client.GET("/v1/file-shares");
|
|
1165
1165
|
if (!result.data) throw new Error("Could not load shared files");
|
|
@@ -1170,75 +1170,75 @@ function useFileShares(client) {
|
|
|
1170
1170
|
|
|
1171
1171
|
Object.defineProperty(exports, "DocumentFetchError", {
|
|
1172
1172
|
enumerable: true,
|
|
1173
|
-
get: function () { return
|
|
1173
|
+
get: function () { return chunk3QK4VVPG_cjs.DocumentFetchError; }
|
|
1174
1174
|
});
|
|
1175
1175
|
Object.defineProperty(exports, "DocumentToolsProvider", {
|
|
1176
1176
|
enumerable: true,
|
|
1177
|
-
get: function () { return
|
|
1177
|
+
get: function () { return chunk3QK4VVPG_cjs.DocumentToolsProvider; }
|
|
1178
1178
|
});
|
|
1179
1179
|
Object.defineProperty(exports, "MarkupDownloadError", {
|
|
1180
1180
|
enumerable: true,
|
|
1181
|
-
get: function () { return
|
|
1181
|
+
get: function () { return chunk3QK4VVPG_cjs.MarkupDownloadError; }
|
|
1182
1182
|
});
|
|
1183
1183
|
Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
|
|
1184
1184
|
enumerable: true,
|
|
1185
|
-
get: function () { return
|
|
1185
|
+
get: function () { return chunk3QK4VVPG_cjs.SIGNED_LOCKED_REASON; }
|
|
1186
1186
|
});
|
|
1187
1187
|
Object.defineProperty(exports, "certificateLink", {
|
|
1188
1188
|
enumerable: true,
|
|
1189
|
-
get: function () { return
|
|
1189
|
+
get: function () { return chunk3QK4VVPG_cjs.certificateLink; }
|
|
1190
1190
|
});
|
|
1191
1191
|
Object.defineProperty(exports, "clientUpload", {
|
|
1192
1192
|
enumerable: true,
|
|
1193
|
-
get: function () { return
|
|
1193
|
+
get: function () { return chunk3QK4VVPG_cjs.clientUpload; }
|
|
1194
1194
|
});
|
|
1195
1195
|
Object.defineProperty(exports, "contentDispositionFileName", {
|
|
1196
1196
|
enumerable: true,
|
|
1197
|
-
get: function () { return
|
|
1197
|
+
get: function () { return chunk3QK4VVPG_cjs.contentDispositionFileName; }
|
|
1198
1198
|
});
|
|
1199
1199
|
Object.defineProperty(exports, "currentHasMarkup", {
|
|
1200
1200
|
enumerable: true,
|
|
1201
|
-
get: function () { return
|
|
1201
|
+
get: function () { return chunk3QK4VVPG_cjs.currentHasMarkup; }
|
|
1202
1202
|
});
|
|
1203
1203
|
Object.defineProperty(exports, "defaultCertificateUrl", {
|
|
1204
1204
|
enumerable: true,
|
|
1205
|
-
get: function () { return
|
|
1205
|
+
get: function () { return chunk3QK4VVPG_cjs.defaultCertificateUrl; }
|
|
1206
1206
|
});
|
|
1207
1207
|
Object.defineProperty(exports, "downloadBlob", {
|
|
1208
1208
|
enumerable: true,
|
|
1209
|
-
get: function () { return
|
|
1209
|
+
get: function () { return chunk3QK4VVPG_cjs.downloadBlob; }
|
|
1210
1210
|
});
|
|
1211
1211
|
Object.defineProperty(exports, "fetchDocumentFile", {
|
|
1212
1212
|
enumerable: true,
|
|
1213
|
-
get: function () { return
|
|
1213
|
+
get: function () { return chunk3QK4VVPG_cjs.fetchDocumentFile; }
|
|
1214
1214
|
});
|
|
1215
1215
|
Object.defineProperty(exports, "fetchDocumentPdf", {
|
|
1216
1216
|
enumerable: true,
|
|
1217
|
-
get: function () { return
|
|
1217
|
+
get: function () { return chunk3QK4VVPG_cjs.fetchDocumentPdf; }
|
|
1218
1218
|
});
|
|
1219
1219
|
Object.defineProperty(exports, "fetchMarkupPdf", {
|
|
1220
1220
|
enumerable: true,
|
|
1221
|
-
get: function () { return
|
|
1221
|
+
get: function () { return chunk3QK4VVPG_cjs.fetchMarkupPdf; }
|
|
1222
1222
|
});
|
|
1223
1223
|
Object.defineProperty(exports, "isSignedVersion", {
|
|
1224
1224
|
enumerable: true,
|
|
1225
|
-
get: function () { return
|
|
1225
|
+
get: function () { return chunk3QK4VVPG_cjs.isSignedVersion; }
|
|
1226
1226
|
});
|
|
1227
1227
|
Object.defineProperty(exports, "uploadQueryString", {
|
|
1228
1228
|
enumerable: true,
|
|
1229
|
-
get: function () { return
|
|
1229
|
+
get: function () { return chunk3QK4VVPG_cjs.uploadQueryString; }
|
|
1230
1230
|
});
|
|
1231
1231
|
Object.defineProperty(exports, "useDocumentTools", {
|
|
1232
1232
|
enumerable: true,
|
|
1233
|
-
get: function () { return
|
|
1233
|
+
get: function () { return chunk3QK4VVPG_cjs.useDocumentTools; }
|
|
1234
1234
|
});
|
|
1235
1235
|
Object.defineProperty(exports, "useOptionalDocumentTools", {
|
|
1236
1236
|
enumerable: true,
|
|
1237
|
-
get: function () { return
|
|
1237
|
+
get: function () { return chunk3QK4VVPG_cjs.useOptionalDocumentTools; }
|
|
1238
1238
|
});
|
|
1239
1239
|
Object.defineProperty(exports, "documentBytesKey", {
|
|
1240
1240
|
enumerable: true,
|
|
1241
|
-
get: function () { return
|
|
1241
|
+
get: function () { return chunkG76ASVVH_cjs.documentBytesKey; }
|
|
1242
1242
|
});
|
|
1243
1243
|
exports.DEFAULT_FIELD_SIZE = DEFAULT_FIELD_SIZE;
|
|
1244
1244
|
exports.FIELD_TYPE_LABELS = FIELD_TYPE_LABELS;
|
|
@@ -5,8 +5,8 @@ import { P as ProductionChoices, A as AnnotationStore } from '../ProductionDialo
|
|
|
5
5
|
import { a as BundleFile, b as BundleIndexEntry } from '../bundle.d-BnCSbHy2.cjs';
|
|
6
6
|
import { A as Annotation, b as AnnotationLayer } from '../model.d-CNtRWKVK.cjs';
|
|
7
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
8
|
-
import { D as DocumentBytesKind } from '../query-keys.d-
|
|
9
|
-
export { f as documentBytesKey } from '../query-keys.d-
|
|
8
|
+
import { D as DocumentBytesKind } from '../query-keys.d-DEEMzkLz.cjs';
|
|
9
|
+
export { f as documentBytesKey } from '../query-keys.d-DEEMzkLz.cjs';
|
|
10
10
|
import '@arbidocs/sdk/browser';
|
|
11
11
|
|
|
12
12
|
type DocumentToolsClient = ArbiClient['fetch'];
|
|
@@ -5,8 +5,8 @@ import { P as ProductionChoices, A as AnnotationStore } from '../ProductionDialo
|
|
|
5
5
|
import { a as BundleFile, b as BundleIndexEntry } from '../bundle.d-BnCSbHy2.js';
|
|
6
6
|
import { A as Annotation, b as AnnotationLayer } from '../model.d-CNtRWKVK.js';
|
|
7
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
8
|
-
import { D as DocumentBytesKind } from '../query-keys.d-
|
|
9
|
-
export { f as documentBytesKey } from '../query-keys.d-
|
|
8
|
+
import { D as DocumentBytesKind } from '../query-keys.d-DEEMzkLz.js';
|
|
9
|
+
export { f as documentBytesKey } from '../query-keys.d-DEEMzkLz.js';
|
|
10
10
|
import '@arbidocs/sdk/browser';
|
|
11
11
|
|
|
12
12
|
type DocumentToolsClient = ArbiClient['fetch'];
|
|
@@ -1,16 +1,16 @@
|
|
|
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-M2SZQBCO.js';
|
|
2
|
+
export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-M2SZQBCO.js';
|
|
3
3
|
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-T4CLW3DN.js';
|
|
4
4
|
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-T3USOSVN.js';
|
|
5
|
-
import { documentBytesKey, arbiQueryKeys } from '../chunk-
|
|
6
|
-
export { documentBytesKey } from '../chunk-
|
|
5
|
+
import { documentBytesKey, arbiQueryKeys } from '../chunk-U64WCQP3.js';
|
|
6
|
+
export { documentBytesKey } from '../chunk-U64WCQP3.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
12
|
import '../chunk-SN5YV6FF.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-R7YNABZY.js';
|
|
14
14
|
import '../chunk-CPZ36AQS.js';
|
|
15
15
|
import { useMemo, useState, useCallback, useEffect, useSyncExternalStore } from 'react';
|
|
16
16
|
import { onlineManager, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|