@arbidocs/react 0.4.141 → 0.4.143

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,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTYUQFRHF_cjs = require('../chunk-TYUQFRHF.cjs');
3
+ var chunkL57RRAII_cjs = require('../chunk-L57RRAII.cjs');
4
4
  var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
5
5
  var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
6
6
  var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
@@ -449,7 +449,7 @@ async function fetchMarkupPdf(client, documentId, version) {
449
449
  }
450
450
  var SIGNED_UNCHANGED = "The signed PDF is unchanged: the comments are kept beside it as markup.";
451
451
  function useDocumentMarkup(documentData, snapshotVersion, currentSigned = false) {
452
- const { client, notify, saveFile, onDocumentsChanged } = chunkTYUQFRHF_cjs.useDocumentTools();
452
+ const { client, notify, saveFile, onDocumentsChanged } = chunkL57RRAII_cjs.useDocumentTools();
453
453
  const documentId = documentData?.external_id;
454
454
  const currentVersion = documentData?.current_version ?? 1;
455
455
  const shownVersion = snapshotVersion ?? currentVersion;
@@ -649,7 +649,7 @@ async function fetchDocumentSignatures(client, documentRef) {
649
649
  return data;
650
650
  }
651
651
  function useDocumentSignatures(documentId, enabled = true) {
652
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
652
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
653
653
  const { docId, version } = chunkZWFMFOGP_cjs.parseVersionRef(documentId);
654
654
  return reactQuery.useQuery({
655
655
  queryKey: [
@@ -720,7 +720,7 @@ async function signDocument(client$1, deploymentDomain, {
720
720
  return signed.data;
721
721
  }
722
722
  function useSignDocument() {
723
- const env = chunkTYUQFRHF_cjs.useDocumentTools();
723
+ const env = chunkL57RRAII_cjs.useDocumentTools();
724
724
  const queryClient = reactQuery.useQueryClient();
725
725
  return reactQuery.useMutation({
726
726
  mutationFn: (vars) => {
@@ -766,7 +766,7 @@ async function fetchSignatureVerification(client, reference) {
766
766
  return data;
767
767
  }
768
768
  function useSignatureVerification(reference) {
769
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
769
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
770
770
  return reactQuery.useQuery({
771
771
  queryKey: ["get", VERIFY_PATH, { params: { path: { reference } } }],
772
772
  queryFn: () => fetchSignatureVerification(client, reference),
@@ -854,7 +854,7 @@ async function fetchDocumentSignatureRequests(client, documentId) {
854
854
  return data;
855
855
  }
856
856
  function useDocumentSignatureRequests(documentId, enabled = true) {
857
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
857
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
858
858
  return reactQuery.useQuery({
859
859
  queryKey: [...REQUESTS_KEY, "document", documentId],
860
860
  queryFn: () => fetchDocumentSignatureRequests(client, documentId),
@@ -863,7 +863,7 @@ function useDocumentSignatureRequests(documentId, enabled = true) {
863
863
  });
864
864
  }
865
865
  function useSignatureRequestsAwaitingMe(enabled = true) {
866
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
866
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
867
867
  return reactQuery.useQuery({
868
868
  queryKey: [...REQUESTS_KEY, "awaiting-me"],
869
869
  queryFn: async () => {
@@ -878,7 +878,7 @@ function useSignatureRequestsAwaitingMe(enabled = true) {
878
878
  });
879
879
  }
880
880
  function useSignatureRequest(requestId) {
881
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
881
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
882
882
  return reactQuery.useQuery({
883
883
  queryKey: [...REQUESTS_KEY, "one", requestId],
884
884
  queryFn: async () => {
@@ -928,7 +928,7 @@ function useInvalidateRequests() {
928
928
  return () => queryClient.invalidateQueries({ queryKey: REQUESTS_KEY });
929
929
  }
930
930
  function useSaveSignatureRequest() {
931
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
931
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
932
932
  const invalidate = useInvalidateRequests();
933
933
  return reactQuery.useMutation({
934
934
  mutationFn: (vars) => saveSignatureRequest(client, vars),
@@ -936,7 +936,7 @@ function useSaveSignatureRequest() {
936
936
  });
937
937
  }
938
938
  function useVoidSignatureRequest() {
939
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
939
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
940
940
  const invalidate = useInvalidateRequests();
941
941
  return reactQuery.useMutation({
942
942
  mutationFn: async (requestId) => {
@@ -950,7 +950,7 @@ function useVoidSignatureRequest() {
950
950
  });
951
951
  }
952
952
  function useDeclineSignatureRequest() {
953
- const { client } = chunkTYUQFRHF_cjs.useDocumentTools();
953
+ const { client } = chunkL57RRAII_cjs.useDocumentTools();
954
954
  const invalidate = useInvalidateRequests();
955
955
  return reactQuery.useMutation({
956
956
  mutationFn: async ({ requestId, reason }) => {
@@ -990,7 +990,7 @@ async function signSignatureRequest(client$1, deploymentDomain, { request, pdfBl
990
990
  return signed.data;
991
991
  }
992
992
  function useSignSignatureRequest() {
993
- const env = chunkTYUQFRHF_cjs.useDocumentTools();
993
+ const env = chunkL57RRAII_cjs.useDocumentTools();
994
994
  const invalidate = useInvalidateRequests();
995
995
  const queryClient = reactQuery.useQueryClient();
996
996
  return reactQuery.useMutation({
@@ -1010,7 +1010,7 @@ function useSignSignatureRequest() {
1010
1010
  });
1011
1011
  }
1012
1012
  function useSignerCandidates(enabled = true) {
1013
- const { client, user } = chunkTYUQFRHF_cjs.useDocumentTools();
1013
+ const { client, user } = chunkL57RRAII_cjs.useDocumentTools();
1014
1014
  return reactQuery.useQuery({
1015
1015
  queryKey: [...REQUESTS_KEY, "candidates"],
1016
1016
  queryFn: async () => {
@@ -1034,35 +1034,35 @@ function useSignerCandidates(enabled = true) {
1034
1034
 
1035
1035
  Object.defineProperty(exports, "DocumentToolsProvider", {
1036
1036
  enumerable: true,
1037
- get: function () { return chunkTYUQFRHF_cjs.DocumentToolsProvider; }
1037
+ get: function () { return chunkL57RRAII_cjs.DocumentToolsProvider; }
1038
1038
  });
1039
1039
  Object.defineProperty(exports, "certificateLink", {
1040
1040
  enumerable: true,
1041
- get: function () { return chunkTYUQFRHF_cjs.certificateLink; }
1041
+ get: function () { return chunkL57RRAII_cjs.certificateLink; }
1042
1042
  });
1043
1043
  Object.defineProperty(exports, "clientUpload", {
1044
1044
  enumerable: true,
1045
- get: function () { return chunkTYUQFRHF_cjs.clientUpload; }
1045
+ get: function () { return chunkL57RRAII_cjs.clientUpload; }
1046
1046
  });
1047
1047
  Object.defineProperty(exports, "defaultCertificateUrl", {
1048
1048
  enumerable: true,
1049
- get: function () { return chunkTYUQFRHF_cjs.defaultCertificateUrl; }
1049
+ get: function () { return chunkL57RRAII_cjs.defaultCertificateUrl; }
1050
1050
  });
1051
1051
  Object.defineProperty(exports, "downloadBlob", {
1052
1052
  enumerable: true,
1053
- get: function () { return chunkTYUQFRHF_cjs.downloadBlob; }
1053
+ get: function () { return chunkL57RRAII_cjs.downloadBlob; }
1054
1054
  });
1055
1055
  Object.defineProperty(exports, "uploadQueryString", {
1056
1056
  enumerable: true,
1057
- get: function () { return chunkTYUQFRHF_cjs.uploadQueryString; }
1057
+ get: function () { return chunkL57RRAII_cjs.uploadQueryString; }
1058
1058
  });
1059
1059
  Object.defineProperty(exports, "useDocumentTools", {
1060
1060
  enumerable: true,
1061
- get: function () { return chunkTYUQFRHF_cjs.useDocumentTools; }
1061
+ get: function () { return chunkL57RRAII_cjs.useDocumentTools; }
1062
1062
  });
1063
1063
  Object.defineProperty(exports, "useOptionalDocumentTools", {
1064
1064
  enumerable: true,
1065
- get: function () { return chunkTYUQFRHF_cjs.useOptionalDocumentTools; }
1065
+ get: function () { return chunkL57RRAII_cjs.useOptionalDocumentTools; }
1066
1066
  });
1067
1067
  exports.DEFAULT_FIELD_SIZE = DEFAULT_FIELD_SIZE;
1068
1068
  exports.DocumentFetchError = DocumentFetchError;
@@ -33,7 +33,9 @@ type DocumentChange =
33
33
  /** A signature was added: the document has a new current version. */
34
34
  | 'signed'
35
35
  /** A new document was made from it (a frozen copy). The ids are the NEW documents. */
36
- | 'copy';
36
+ | 'copy'
37
+ /** A new version was saved (the Word editor's Save version): the document's current version. */
38
+ | 'version';
37
39
  /**
38
40
  * The `/v1/document/upload` query, typed from the API schema: `derived_from` is a list (a
39
41
  * production set is derived from every document in it), `shared` a boolean.
@@ -33,7 +33,9 @@ type DocumentChange =
33
33
  /** A signature was added: the document has a new current version. */
34
34
  | 'signed'
35
35
  /** A new document was made from it (a frozen copy). The ids are the NEW documents. */
36
- | 'copy';
36
+ | 'copy'
37
+ /** A new version was saved (the Word editor's Save version): the document's current version. */
38
+ | 'version';
37
39
  /**
38
40
  * The `/v1/document/upload` query, typed from the API schema: `derived_from` is a list (a
39
41
  * production set is derived from every document in it), `shared` a boolean.
@@ -1,5 +1,5 @@
1
- import { useDocumentTools } from '../chunk-ZJ6NQ4M4.js';
2
- export { DocumentToolsProvider, certificateLink, clientUpload, defaultCertificateUrl, downloadBlob, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-ZJ6NQ4M4.js';
1
+ import { useDocumentTools } from '../chunk-YYTX3W6C.js';
2
+ export { DocumentToolsProvider, certificateLink, clientUpload, defaultCertificateUrl, downloadBlob, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-YYTX3W6C.js';
3
3
  import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
4
4
  import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
5
5
  import { parseVersionRef } from '../chunk-NNWMHMEC.js';