@arbidocs/react 0.5.53 → 0.5.55

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.
Files changed (40) hide show
  1. package/README.md +15 -0
  2. package/dist/artifacts/index.cjs +9 -9
  3. package/dist/artifacts/index.js +3 -3
  4. package/dist/calls/livekit/index.cjs +48 -48
  5. package/dist/calls/livekit/index.js +3 -3
  6. package/dist/{chunk-ME4TS33T.cjs → chunk-2JQ7QNOO.cjs} +31 -31
  7. package/dist/{chunk-ME4TS33T.cjs.map → chunk-2JQ7QNOO.cjs.map} +1 -1
  8. package/dist/{chunk-W7DQJT4T.cjs → chunk-3CVY5SGY.cjs} +159 -22
  9. package/dist/chunk-3CVY5SGY.cjs.map +1 -0
  10. package/dist/{chunk-KOLCL4KV.js → chunk-4TKNUJKD.js} +3 -3
  11. package/dist/{chunk-KOLCL4KV.js.map → chunk-4TKNUJKD.js.map} +1 -1
  12. package/dist/{chunk-MB34NKBZ.js → chunk-DFZECLD3.js} +2 -2
  13. package/dist/chunk-DFZECLD3.js.map +1 -0
  14. package/dist/{chunk-G3GPVSTA.js → chunk-JFL7BBZ6.js} +3 -3
  15. package/dist/{chunk-G3GPVSTA.js.map → chunk-JFL7BBZ6.js.map} +1 -1
  16. package/dist/{chunk-BIHGAW4G.js → chunk-PVUZULHI.js} +3 -3
  17. package/dist/{chunk-BIHGAW4G.js.map → chunk-PVUZULHI.js.map} +1 -1
  18. package/dist/{chunk-ODGIOGH5.cjs → chunk-UKEUDTOE.cjs} +16 -16
  19. package/dist/{chunk-ODGIOGH5.cjs.map → chunk-UKEUDTOE.cjs.map} +1 -1
  20. package/dist/{chunk-ONGNP4JM.cjs → chunk-V64EETLS.cjs} +4 -4
  21. package/dist/{chunk-ONGNP4JM.cjs.map → chunk-V64EETLS.cjs.map} +1 -1
  22. package/dist/{chunk-JQSHGBNI.js → chunk-WRMA2JYX.js} +139 -8
  23. package/dist/chunk-WRMA2JYX.js.map +1 -0
  24. package/dist/{chunk-YIUUTRMQ.cjs → chunk-YRY6DGRU.cjs} +2 -2
  25. package/dist/chunk-YRY6DGRU.cjs.map +1 -0
  26. package/dist/document-tools/index.cjs +41 -41
  27. package/dist/document-tools/index.js +3 -3
  28. package/dist/index.cjs +797 -780
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +202 -122
  31. package/dist/index.d.ts +202 -122
  32. package/dist/index.js +37 -43
  33. package/dist/index.js.map +1 -1
  34. package/dist/viewers/index.cjs +2 -2
  35. package/dist/viewers/index.js +1 -1
  36. package/package.json +3 -3
  37. package/dist/chunk-JQSHGBNI.js.map +0 -1
  38. package/dist/chunk-MB34NKBZ.js.map +0 -1
  39. package/dist/chunk-W7DQJT4T.cjs.map +0 -1
  40. package/dist/chunk-YIUUTRMQ.cjs.map +0 -1
@@ -22,5 +22,5 @@ function useDeploymentDomain() {
22
22
  exports.useArbi = useArbi;
23
23
  exports.useArbiHost = useArbiHost;
24
24
  exports.useDeploymentDomain = useDeploymentDomain;
25
- //# sourceMappingURL=chunk-YIUUTRMQ.cjs.map
26
- //# sourceMappingURL=chunk-YIUUTRMQ.cjs.map
25
+ //# sourceMappingURL=chunk-YRY6DGRU.cjs.map
26
+ //# sourceMappingURL=chunk-YRY6DGRU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/host/config.ts","../src/useArbi.ts"],"names":["useContext","ArbiHostContext"],"mappings":";;;;;AAyHO,SAAS,WAAA,GAA8B;AAC5C,EAAA,OAAOA,iBAAWC,iCAAe,CAAA;AACnC;;;ACpHO,SAAS,OAAA,GAAgB;AAC9B,EAAA,MAAM,EAAE,IAAA,EAAK,GAAI,WAAA,EAAY;AAC7B,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,MAAM,IAAI,MAAM,0DAA0D,CAAA;AAAA,EAC5E;AACA,EAAA,OAAO,IAAA;AACT;AAOO,SAAS,mBAAA,GAA0C;AACxD,EAAA,OAAO,WAAA,EAAY,CAAE,IAAA,EAAM,mBAAA,EAAoB;AACjD","file":"chunk-YRY6DGRU.cjs","sourcesContent":["/**\n * What a host hands the `@arbidocs/react` hooks, as one configuration (`<ArbiHost config>`). Every\n * field is optional: without one the hooks use their own default. `@arbidocs/blocks` extends it\n * with the blocks domains (environment, billing, viewer, …).\n *\n * A field whose value lives in the host's state is a hook (`use…`), called by the hooks and kits\n * that need it, so the configuration itself stays one stable object for the host's life.\n */\n\nimport { useContext } from 'react'\nimport type { Arbi } from '@arbidocs/sdk/browser'\nimport type { AccountClient } from '../account/client'\nimport type { CalendarSupport } from '../calendar/support'\nimport type { ComponentType } from 'react'\nimport type { MeetingChatRef } from '../calls/meeting-chat'\nimport type { ActiveCall } from '../calls/session'\nimport type { ArbiChatHost } from '../chat/host'\nimport type { DocumentsSupport } from '../documents/support'\nimport type { MailClient } from '../mail/client'\nimport type { ArbiSessionStore } from '../session/store'\nimport type { DictateContextValue } from '../ui/DictateContext'\nimport type { EntityVocabulary } from '../entities/vocabulary'\nimport type { ArbiHostConnection } from './ArbiHost'\nimport type { ArbiFeatures } from './features'\nimport { ArbiHostContext } from './context'\n\n/** The mail client, and whether mail is on for the signed-in user. */\nexport interface MailHost {\n client: MailClient\n /**\n * Whether mail reads run (signed in and entitled), and the server session the mailbox is\n * unlocked for: unlocking runs again when it changes (`null`: none yet, nothing is unlocked).\n * Absent: on, for one session.\n */\n useStatus?: () => { enabled: boolean; sessionKey: string | null }\n}\n\n/** The account client of the settings kits, and whether account reads run (signed in). */\nexport interface AccountHost {\n client: AccountClient\n /** Absent: always. */\n useEnabled?: () => boolean\n}\n\n/** A person in the call UI (a participant, a speaker, a host). */\nexport interface CallUserPillProps {\n /** Their LiveKit identity: the user ext id. */\n identity: string\n /** The call's name for them, for someone the host does not know. */\n name?: string | null\n size?: 'xs' | 'sm' | 'md' | 'lg'\n variant?: 'pill' | 'icon'\n /** Click opens a chat with them (off by default inside the call). */\n interactive?: boolean\n className?: string\n}\n\n/** Where the call panel goes in the host's layout. */\nexport type CallSlotMode = 'docked' | 'main'\n\n/** What the calls need from the host: navigation and layout are the host's. */\nexport interface CallsHost {\n /**\n * Show a call's meeting chat: an end-to-end chat, or a workspace meeting thread. Absent: the\n * in-call \"Open meeting chat\" does nothing.\n */\n openMeetingChat?: (ref: MeetingChatRef) => void\n /**\n * Once connected, show the call's conversation (its chat and live transcript) beside the call.\n * Absent: nothing is shown.\n */\n showConversation?: (call: ActiveCall) => void | Promise<void>\n /**\n * The element whose box the shown call fills: the right-hand dock, or (a webinar's audience) the\n * main area. The host claims its slot while `shown` and calls `onLost` when another panel takes\n * it (the call then minimises). Absent: the call floats at the right edge.\n */\n useSlot?: (mode: CallSlotMode, shown: boolean, onLost: () => void) => HTMLElement | null\n /** How a person shows in the call UI. Absent: the plain user pill with the call's name. */\n UserPill?: ComponentType<CallUserPillProps>\n}\n\nexport interface ArbiHostConfig {\n /**\n * The SDK on the signed-in session. A host with its own login passes one on its session\n * (`new Arbi({ url, session })`); a blocks-only site gets one from `defaultHost`. A new instance (a\n * new session, a newly opened workspace) re-renders every hook.\n */\n arbi?: Arbi\n /** The session state the kits share. Absent: an in-memory one per top-level host. */\n session?: ArbiSessionStore\n /** Live processing, uploads and the host's document actions. Absent: the package's own. */\n documents?: DocumentsSupport\n /** The calendar kept on this device and account OAuth. Absent: online only, the user's connectors. */\n calendar?: CalendarSupport\n /** Absent: mail on the `arbi` session. */\n mail?: MailHost\n /** Absent: the account on the `arbi` session. */\n account?: AccountHost\n /** Absent: calls open no meeting chat from the room. */\n calls?: CallsHost\n /**\n * The parts of the product the user switches on or off, and where each switch is kept (the user's\n * settings, or this device), read with `useFeature(name)`. The call UI also follows the `calls`\n * feature, on top of the server's calls config. Absent, or a feature not listed: on.\n */\n features?: ArbiFeatures\n /** Dictation for every `dictate` field. Absent: no mic button. */\n dictate?: DictateContextValue\n /** The sign-in layer of a blocks-only site (`defaultHost` in `@arbidocs/blocks/connect`). */\n connection?: ArbiHostConnection\n /** Where the chat engine's side effects go (documents shown, mail drafts, used-up quota). */\n chat?: ArbiChatHost\n /**\n * The site's words for the entities (`{ PROJECT: 'Matter' }`), read by every kit through\n * `getEntityLabel`. Absent: the registry's (\"Project\", \"Workspace\", \"Thread\", …).\n */\n vocabulary?: EntityVocabulary\n}\n\n/** The host configuration in scope (`{}` outside an `<ArbiHost>`). */\nexport function useArbiHost(): ArbiHostConfig {\n return useContext(ArbiHostContext) as ArbiHostConfig\n}\n","/**\n * The `Arbi` of the host configuration (`<ArbiHost config={{ arbi }}>`).\n */\n\nimport type { Arbi } from '@arbidocs/sdk/browser'\nimport { useArbiHost } from './host/config'\n\nexport function useArbi(): Arbi {\n const { arbi } = useArbiHost()\n if (!arbi) {\n throw new Error('useArbi() needs an <ArbiHost> whose config has an `arbi`')\n }\n return arbi\n}\n\n/**\n * The deployment domain the user's keys are derived for, as the host's `Arbi` computes it\n * (`deploymentDomain`, else the API URL's hostname). `undefined` without one. The document tools\n * default their `deploymentDomain` (needed for e-signing) to it.\n */\nexport function useDeploymentDomain(): string | undefined {\n return useArbiHost().arbi?.getDeploymentDomain()\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkONGNP4JM_cjs = require('../chunk-ONGNP4JM.cjs');
3
+ var chunkV64EETLS_cjs = require('../chunk-V64EETLS.cjs');
4
4
  var chunkSUZORMAB_cjs = require('../chunk-SUZORMAB.cjs');
5
5
  var chunk2IJP73ZG_cjs = require('../chunk-2IJP73ZG.cjs');
6
6
  var chunkRRWAX52L_cjs = require('../chunk-RRWAX52L.cjs');
@@ -10,7 +10,7 @@ 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-YIUUTRMQ.cjs');
13
+ require('../chunk-YRY6DGRU.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 ? chunkONGNP4JM_cjs.fetchDocumentFile : chunkONGNP4JM_cjs.fetchDocumentPdf)(client, doc.external_id);
45
+ blob = await (pdf ? chunkV64EETLS_cjs.fetchDocumentFile : chunkV64EETLS_cjs.fetchDocumentPdf)(client, doc.external_id);
46
46
  } catch (e) {
47
- if (!pdf && e instanceof chunkONGNP4JM_cjs.DocumentFetchError) return null;
47
+ if (!pdf && e instanceof chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
352
+ const { client, notify, saveFile, onDocumentsChanged } = chunkV64EETLS_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(chunkONGNP4JM_cjs.SIGNED_LOCKED_REASON, "info");
383
+ notify(chunkV64EETLS_cjs.SIGNED_LOCKED_REASON, "info");
384
384
  return;
385
385
  }
386
386
  try {
387
- const { blob, fileName } = await chunkONGNP4JM_cjs.fetchMarkupPdf(
387
+ const { blob, fileName } = await chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
524
+ const { client } = chunkV64EETLS_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" ? chunkONGNP4JM_cjs.fetchDocumentFile : chunkONGNP4JM_cjs.fetchDocumentPdf)(
534
+ return await (kind === "original" ? chunkV64EETLS_cjs.fetchDocumentFile : chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
579
+ const { client } = chunkV64EETLS_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 = chunkONGNP4JM_cjs.useDocumentTools();
647
+ const env = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
693
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
796
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
805
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
820
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
873
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
881
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
895
+ const { client } = chunkV64EETLS_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 = chunkONGNP4JM_cjs.useDocumentTools();
935
+ const env = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
953
+ const { client, user } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
993
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
1037
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
1047
+ const { client } = chunkV64EETLS_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 } = chunkONGNP4JM_cjs.useDocumentTools();
1055
+ const { client } = chunkV64EETLS_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 chunkONGNP4JM_cjs.DocumentFetchError; }
1173
+ get: function () { return chunkV64EETLS_cjs.DocumentFetchError; }
1174
1174
  });
1175
1175
  Object.defineProperty(exports, "DocumentToolsProvider", {
1176
1176
  enumerable: true,
1177
- get: function () { return chunkONGNP4JM_cjs.DocumentToolsProvider; }
1177
+ get: function () { return chunkV64EETLS_cjs.DocumentToolsProvider; }
1178
1178
  });
1179
1179
  Object.defineProperty(exports, "MarkupDownloadError", {
1180
1180
  enumerable: true,
1181
- get: function () { return chunkONGNP4JM_cjs.MarkupDownloadError; }
1181
+ get: function () { return chunkV64EETLS_cjs.MarkupDownloadError; }
1182
1182
  });
1183
1183
  Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
1184
1184
  enumerable: true,
1185
- get: function () { return chunkONGNP4JM_cjs.SIGNED_LOCKED_REASON; }
1185
+ get: function () { return chunkV64EETLS_cjs.SIGNED_LOCKED_REASON; }
1186
1186
  });
1187
1187
  Object.defineProperty(exports, "certificateLink", {
1188
1188
  enumerable: true,
1189
- get: function () { return chunkONGNP4JM_cjs.certificateLink; }
1189
+ get: function () { return chunkV64EETLS_cjs.certificateLink; }
1190
1190
  });
1191
1191
  Object.defineProperty(exports, "clientUpload", {
1192
1192
  enumerable: true,
1193
- get: function () { return chunkONGNP4JM_cjs.clientUpload; }
1193
+ get: function () { return chunkV64EETLS_cjs.clientUpload; }
1194
1194
  });
1195
1195
  Object.defineProperty(exports, "contentDispositionFileName", {
1196
1196
  enumerable: true,
1197
- get: function () { return chunkONGNP4JM_cjs.contentDispositionFileName; }
1197
+ get: function () { return chunkV64EETLS_cjs.contentDispositionFileName; }
1198
1198
  });
1199
1199
  Object.defineProperty(exports, "currentHasMarkup", {
1200
1200
  enumerable: true,
1201
- get: function () { return chunkONGNP4JM_cjs.currentHasMarkup; }
1201
+ get: function () { return chunkV64EETLS_cjs.currentHasMarkup; }
1202
1202
  });
1203
1203
  Object.defineProperty(exports, "defaultCertificateUrl", {
1204
1204
  enumerable: true,
1205
- get: function () { return chunkONGNP4JM_cjs.defaultCertificateUrl; }
1205
+ get: function () { return chunkV64EETLS_cjs.defaultCertificateUrl; }
1206
1206
  });
1207
1207
  Object.defineProperty(exports, "downloadBlob", {
1208
1208
  enumerable: true,
1209
- get: function () { return chunkONGNP4JM_cjs.downloadBlob; }
1209
+ get: function () { return chunkV64EETLS_cjs.downloadBlob; }
1210
1210
  });
1211
1211
  Object.defineProperty(exports, "fetchDocumentFile", {
1212
1212
  enumerable: true,
1213
- get: function () { return chunkONGNP4JM_cjs.fetchDocumentFile; }
1213
+ get: function () { return chunkV64EETLS_cjs.fetchDocumentFile; }
1214
1214
  });
1215
1215
  Object.defineProperty(exports, "fetchDocumentPdf", {
1216
1216
  enumerable: true,
1217
- get: function () { return chunkONGNP4JM_cjs.fetchDocumentPdf; }
1217
+ get: function () { return chunkV64EETLS_cjs.fetchDocumentPdf; }
1218
1218
  });
1219
1219
  Object.defineProperty(exports, "fetchMarkupPdf", {
1220
1220
  enumerable: true,
1221
- get: function () { return chunkONGNP4JM_cjs.fetchMarkupPdf; }
1221
+ get: function () { return chunkV64EETLS_cjs.fetchMarkupPdf; }
1222
1222
  });
1223
1223
  Object.defineProperty(exports, "isSignedVersion", {
1224
1224
  enumerable: true,
1225
- get: function () { return chunkONGNP4JM_cjs.isSignedVersion; }
1225
+ get: function () { return chunkV64EETLS_cjs.isSignedVersion; }
1226
1226
  });
1227
1227
  Object.defineProperty(exports, "uploadQueryString", {
1228
1228
  enumerable: true,
1229
- get: function () { return chunkONGNP4JM_cjs.uploadQueryString; }
1229
+ get: function () { return chunkV64EETLS_cjs.uploadQueryString; }
1230
1230
  });
1231
1231
  Object.defineProperty(exports, "useDocumentTools", {
1232
1232
  enumerable: true,
1233
- get: function () { return chunkONGNP4JM_cjs.useDocumentTools; }
1233
+ get: function () { return chunkV64EETLS_cjs.useDocumentTools; }
1234
1234
  });
1235
1235
  Object.defineProperty(exports, "useOptionalDocumentTools", {
1236
1236
  enumerable: true,
1237
- get: function () { return chunkONGNP4JM_cjs.useOptionalDocumentTools; }
1237
+ get: function () { return chunkV64EETLS_cjs.useOptionalDocumentTools; }
1238
1238
  });
1239
1239
  Object.defineProperty(exports, "documentBytesKey", {
1240
1240
  enumerable: true,
@@ -1,5 +1,5 @@
1
- import { fetchDocumentFile, fetchDocumentPdf, DocumentFetchError, useDocumentTools, SIGNED_LOCKED_REASON, fetchMarkupPdf } from '../chunk-KOLCL4KV.js';
2
- export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-KOLCL4KV.js';
1
+ import { fetchDocumentFile, fetchDocumentPdf, DocumentFetchError, useDocumentTools, SIGNED_LOCKED_REASON, fetchMarkupPdf } from '../chunk-4TKNUJKD.js';
2
+ export { DocumentFetchError, DocumentToolsProvider, MarkupDownloadError, SIGNED_LOCKED_REASON, certificateLink, clientUpload, contentDispositionFileName, currentHasMarkup, defaultCertificateUrl, downloadBlob, fetchDocumentFile, fetchDocumentPdf, fetchMarkupPdf, isSignedVersion, uploadQueryString, useDocumentTools, useOptionalDocumentTools } from '../chunk-4TKNUJKD.js';
3
3
  import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-T4CLW3DN.js';
4
4
  import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-T3USOSVN.js';
5
5
  import { documentBytesKey, arbiQueryKeys } from '../chunk-PBXJFMES.js';
@@ -10,7 +10,7 @@ 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-MB34NKBZ.js';
13
+ import '../chunk-DFZECLD3.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';