@arbidocs/react 0.5.161 → 0.5.163

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 (38) hide show
  1. package/dist/annotations/index.cjs +47 -47
  2. package/dist/annotations/useAnnotationLayer.js +7 -3
  3. package/dist/annotations/useAnnotationLayer.js.map +2 -2
  4. package/dist/artifacts/index.cjs +2 -2
  5. package/dist/calls/livekit/index.cjs +41 -41
  6. package/dist/chat/workflow-run-titles.js +6 -1
  7. package/dist/chat/workflow-run-titles.js.map +2 -2
  8. package/dist/{chunk-GVU3KYP3.cjs → chunk-42X5ZO7Y.cjs} +11 -82
  9. package/dist/chunk-42X5ZO7Y.cjs.map +1 -0
  10. package/dist/{chunk-SUZORMAB.cjs → chunk-L5TQDBG4.cjs} +9 -5
  11. package/dist/chunk-L5TQDBG4.cjs.map +1 -0
  12. package/dist/{chunk-2MGJXBBJ.cjs → chunk-SUMXDNYG.cjs} +157 -6
  13. package/dist/chunk-SUMXDNYG.cjs.map +1 -0
  14. package/dist/{chunk-QV7KINWC.cjs → chunk-ZBI5AMZC.cjs} +6 -6
  15. package/dist/{chunk-QV7KINWC.cjs.map → chunk-ZBI5AMZC.cjs.map} +1 -1
  16. package/dist/conversation-list.js +32 -4
  17. package/dist/conversation-list.js.map +2 -2
  18. package/dist/directmessages/chat-cache.js +5 -0
  19. package/dist/directmessages/chat-cache.js.map +2 -2
  20. package/dist/document-tools/core.cjs +62 -62
  21. package/dist/document-tools/index.cjs +62 -62
  22. package/dist/hooks.js +7 -1
  23. package/dist/hooks.js.map +2 -2
  24. package/dist/index.cjs +625 -603
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.ts +208 -1024
  27. package/dist/session/conversation-panels.js +41 -0
  28. package/dist/session/conversation-panels.js.map +7 -0
  29. package/dist/session/index.js +2 -0
  30. package/dist/session/index.js.map +2 -2
  31. package/dist/session/layout.js +7 -3
  32. package/dist/session/layout.js.map +2 -2
  33. package/dist/workspaces/switch.js +7 -4
  34. package/dist/workspaces/switch.js.map +2 -2
  35. package/package.json +3 -3
  36. package/dist/chunk-2MGJXBBJ.cjs.map +0 -1
  37. package/dist/chunk-GVU3KYP3.cjs.map +0 -1
  38. package/dist/chunk-SUZORMAB.cjs.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import { chats } from "@arbidocs/sdk/browser";
2
2
  import { arbiQueryKeys } from "../hooks.js";
3
+ import { calendarQueryKeys, callQueryKeys } from "../query-keys.js";
3
4
  function myChatId(arbi) {
4
5
  try {
5
6
  return arbi.user.identity()?.externalId ?? null;
@@ -161,6 +162,10 @@ async function applyChatUpdated(arbi, queryClient, chatExtId, message) {
161
162
  function applyAgentDmStatus(queryClient, status) {
162
163
  if (!["queued", "working", "done", "failed"].includes(status.status)) return;
163
164
  queryClient.setQueryData(arbiQueryKeys.agentDmStatus(status.agent_ext_id), status);
165
+ if (status.status === "done" || status.status === "failed") {
166
+ void queryClient.invalidateQueries({ queryKey: calendarQueryKeys.all() });
167
+ void queryClient.invalidateQueries({ queryKey: callQueryKeys.all() });
168
+ }
164
169
  }
165
170
  async function applyChatEvent(arbi, queryClient, event) {
166
171
  const e = event;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/directmessages/chat-cache.ts"],
4
- "sourcesContent": ["/**\n * The one chat cache: my chat list (`arbiQueryKeys.chatList()`, raw \u2014 titles and last messages\n * stay ciphertext) and each open thread (`arbiQueryKeys.chatThread(id)`, decrypted). Every reader\n * (the messenger, unread badges, the DM kit, a call's chat) and every writer (a send, a delete,\n * a WebSocket event) goes through here, so one change shows everywhere at once.\n *\n * Live events: `<ArbiWebSocketProvider>` applies them itself; a host with its own socket passes each\n * chat event to `applyChatEvent`.\n */\n\nimport type { QueryClient } from '@tanstack/react-query'\nimport type { WsAgentDmStatusMessage } from '@arbidocs/client'\nimport { chats, type Arbi } from '@arbidocs/sdk/browser'\nimport { arbiQueryKeys } from '../hooks'\n\nexport type ChatResponse = chats.ChatResponse\nexport type ChatMessageResponse = chats.ChatMessageResponse\nexport type DecryptedChatMessage = chats.DecryptedChatMessage\nexport type ChatAttachmentFile = chats.ChatAttachmentFile\nexport type ChatMemberKey = chats.ChatMemberKey\n\n/** A message in an open thread; an optimistic row carries a local id until the server echoes it. */\nexport type ChatThreadMessage = DecryptedChatMessage & { optimistic?: boolean }\n\n/** An open thread's cache entry: decrypted messages, oldest first. */\nexport interface ChatThreadData {\n messages: ChatThreadMessage[]\n /** False once the oldest page has been loaded. */\n hasMore: boolean\n}\n\n/** The signed-in user's external id, or null when signed out. */\nexport function myChatId(arbi: Arbi): string | null {\n try {\n return arbi.user.identity()?.externalId ?? null\n } catch {\n return null\n }\n}\n\n// \u2500\u2500 The chat open in a messenger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** The chat open in a messenger, if any: its new messages do not count as unread. */\nlet openChatExtId: string | null = null\nexport function setOpenChat(chatExtId: string | null): void {\n openChatExtId = chatExtId\n}\nexport function getOpenChat(): string | null {\n return openChatExtId\n}\n\n// \u2500\u2500 Writers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nfunction byActivity(a: ChatResponse, b: ChatResponse): number {\n const at = Date.parse(a.last_message_at ?? a.created_at)\n const bt = Date.parse(b.last_message_at ?? b.created_at)\n return bt - at\n}\n\n/** My chats as the cache holds them (empty until the list has loaded). */\nexport function cachedChats(queryClient: QueryClient): ChatResponse[] {\n return queryClient.getQueryData<ChatResponse[]>(arbiQueryKeys.chatList()) ?? []\n}\n\n/** One of my chats from the cache, if the list has it. */\nexport function cachedChat(queryClient: QueryClient, chatExtId: string): ChatResponse | undefined {\n return cachedChats(queryClient).find((c) => c.external_id === chatExtId)\n}\n\n/** Put a chat (new or updated) into the list, keeping the list newest first. */\nexport function upsertChat(queryClient: QueryClient, chat: ChatResponse): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) => {\n if (!old) return old\n const rest = old.filter((c) => c.external_id !== chat.external_id)\n return [chat, ...rest].sort(byActivity)\n })\n}\n\n/** Drop a chat I left or lost, with its thread. */\nexport function removeChat(queryClient: QueryClient, chatExtId: string): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.filter((c) => c.external_id !== chatExtId)\n )\n queryClient.removeQueries({ queryKey: arbiQueryKeys.chatThread(chatExtId) })\n}\n\n/** Append a message to a loaded thread (deduplicated, replacing its optimistic copy). */\nexport function appendToThread(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatThreadMessage,\n replaceOptimisticId?: string\n): void {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) => {\n if (!old) return old\n const without = old.messages.filter(\n (m) => m.external_id !== message.external_id && m.external_id !== replaceOptimisticId\n )\n return { ...old, messages: [...without, message] }\n })\n}\n\n/** Take a message out of a loaded thread (a failed optimistic send). */\nexport function dropFromThread(queryClient: QueryClient, chatExtId: string, messageExtId: string) {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) =>\n old ? { ...old, messages: old.messages.filter((m) => m.external_id !== messageExtId) } : old\n )\n}\n\n/** Replace a message of a loaded thread where it stands (no-op when it is not loaded). */\nfunction replaceInThread(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatThreadMessage\n): void {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) => {\n if (!old || !old.messages.some((m) => m.external_id === message.external_id)) return old\n return {\n ...old,\n messages: old.messages.map((m) => (m.external_id === message.external_id ? message : m)),\n }\n })\n}\n\n/** Swap a chat's `last_message` in the list when it is still `message`. */\nfunction patchLastMessage(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.map((c) =>\n c.external_id === chatExtId && c.last_message?.external_id === message.external_id\n ? { ...c, last_message: message }\n : c\n )\n )\n}\n\n/**\n * Delete one of my messages. The server keeps it in place as a tombstone (`deleted: true`), so\n * the cache marks it the same way at once \u2014 a refetch then returns exactly what is shown. Rolled\n * back (and rethrown) when the delete fails.\n */\nexport async function deleteChatMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n messageExtId: string\n): Promise<void> {\n const thread = queryClient.getQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId))\n const before = thread?.messages.find((m) => m.external_id === messageExtId)\n const listed = cachedChat(queryClient, chatExtId)\n const wasLast = listed?.last_message?.external_id === messageExtId ? listed.last_message : null\n if (before) replaceInThread(queryClient, chatExtId, chats.chatMessageTombstone(before))\n if (wasLast) patchLastMessage(queryClient, chatExtId, chats.chatMessageTombstone(wasLast))\n try {\n await arbi.chats.deleteMessage(chatExtId, messageExtId)\n } catch (err) {\n if (before) replaceInThread(queryClient, chatExtId, before)\n if (wasLast) patchLastMessage(queryClient, chatExtId, wasLast)\n throw err\n }\n}\n\n// \u2500\u2500 Live events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** A message changed in place (a deleted message's tombstone): update it where it stands. */\nasync function applyChangedMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): Promise<void> {\n if (message.deleted) {\n replaceInThread(queryClient, chatExtId, chats.chatMessageTombstone(message))\n patchLastMessage(queryClient, chatExtId, chats.chatMessageTombstone(message))\n return\n }\n const chat = cachedChat(queryClient, chatExtId)\n if (!chat || !queryClient.getQueryData(arbiQueryKeys.chatThread(chatExtId))) return\n try {\n replaceInThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message))\n } catch (err) {\n console.error('[chats] could not decrypt a changed message', err)\n }\n}\n\n/** `chat.message`: a new message in one of my chats. */\nexport async function applyChatMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): Promise<void> {\n // Not new: a tombstone replaces the message where it stands (never unread, never the preview).\n if (message.deleted) return applyChangedMessage(arbi, queryClient, chatExtId, message)\n const me = myChatId(arbi)\n const chat = cachedChat(queryClient, chatExtId)\n if (!chat) {\n // A chat I was just added to: fetch the list fresh.\n void queryClient.invalidateQueries({ queryKey: arbiQueryKeys.chatList() })\n return\n }\n const mine = message.sender_ext_id === me\n const isOpen = openChatExtId === chatExtId\n upsertChat(queryClient, {\n ...chat,\n last_message: message,\n last_message_at: message.created_at,\n unread_count: mine ? 0 : isOpen ? chat.unread_count : chat.unread_count + 1,\n members: mine\n ? chat.members.map((m) =>\n m.user.external_id === me ? { ...m, last_read_at: message.created_at } : m\n )\n : chat.members,\n })\n if (queryClient.getQueryData(arbiQueryKeys.chatThread(chatExtId))) {\n try {\n appendToThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message))\n } catch (err) {\n console.error('[chats] could not decrypt a live message', err)\n }\n }\n}\n\n/** `chat.read`: a member's watermark moved (a read receipt). */\nexport function applyChatRead(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n userExtId: string,\n lastReadAt: string\n): void {\n const me = myChatId(arbi)\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.map((c) =>\n c.external_id !== chatExtId\n ? c\n : {\n ...c,\n unread_count: userExtId === me ? 0 : c.unread_count,\n members: c.members.map((m) =>\n m.user.external_id === userExtId ? { ...m, last_read_at: lastReadAt } : m\n ),\n }\n )\n )\n}\n\n/**\n * `chat.updated`: members, keys, title or a deleted message changed. Refetch the chat; when it now\n * needs a new epoch and I am still in it, seal one. A changed `message` (a deleted message's\n * tombstone) is applied in place; without one the open thread is reloaded.\n */\nexport async function applyChatUpdated(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message?: ChatMessageResponse | null\n): Promise<void> {\n if (message) await applyChangedMessage(arbi, queryClient, chatExtId, message)\n let chat: ChatResponse\n try {\n chat = await arbi.chats.get(chatExtId)\n } catch {\n // Removed from it (or it is gone).\n removeChat(queryClient, chatExtId)\n return\n }\n if (chat.rotation_required) {\n // Best effort: whoever posts next rotates first.\n chat = await arbi.chats.ready(chat).catch(() => chat)\n }\n upsertChat(queryClient, chat)\n // Members, keys or a new epoch: reload the open thread. A changed message is already in place.\n if (!message)\n void queryClient.invalidateQueries({ queryKey: arbiQueryKeys.chatThread(chatExtId) })\n}\n\n/** My own agent's progress on a message I sent it (`agent_dm_status`). */\nexport type AgentDmStatus = WsAgentDmStatusMessage\n\n/** `agent_dm_status`: remember my agent's latest progress (read by `useAgentDmStatus`). */\nexport function applyAgentDmStatus(queryClient: QueryClient, status: AgentDmStatus): void {\n if (!['queued', 'working', 'done', 'failed'].includes(status.status)) return\n queryClient.setQueryData(arbiQueryKeys.agentDmStatus(status.agent_ext_id), status)\n}\n\n/** The chat events of the server's WebSocket, as `applyChatEvent` takes them. */\nexport type ChatEvent =\n | { type: 'chat.message'; chat_ext_id: string; message: ChatMessageResponse }\n | { type: 'chat.read'; chat_ext_id: string; user_ext_id: string; last_read_at: string }\n | { type: 'chat.updated'; chat_ext_id: string; message?: ChatMessageResponse | null }\n | AgentDmStatus\n\n/** Apply one chat event of the server's WebSocket to the cache. Other messages are ignored. */\nexport async function applyChatEvent(\n arbi: Arbi,\n queryClient: QueryClient,\n event: { type: string }\n): Promise<void> {\n const e = event as ChatEvent\n if (e.type === 'chat.message')\n return applyChatMessage(arbi, queryClient, e.chat_ext_id, e.message)\n if (e.type === 'chat.read')\n return applyChatRead(arbi, queryClient, e.chat_ext_id, e.user_ext_id, e.last_read_at)\n if (e.type === 'chat.updated')\n return applyChatUpdated(arbi, queryClient, e.chat_ext_id, e.message)\n if (e.type === 'agent_dm_status') applyAgentDmStatus(queryClient, e)\n}\n"],
5
- "mappings": "AAYA,SAAS,aAAwB;AACjC,SAAS,qBAAqB;AAmBvB,SAAS,SAAS,MAA2B;AAClD,MAAI;AACF,WAAO,KAAK,KAAK,SAAS,GAAG,cAAc;AAAA,EAC7C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAKA,IAAI,gBAA+B;AAC5B,SAAS,YAAY,WAAgC;AAC1D,kBAAgB;AAClB;AACO,SAAS,cAA6B;AAC3C,SAAO;AACT;AAIA,SAAS,WAAW,GAAiB,GAAyB;AAC5D,QAAM,KAAK,KAAK,MAAM,EAAE,mBAAmB,EAAE,UAAU;AACvD,QAAM,KAAK,KAAK,MAAM,EAAE,mBAAmB,EAAE,UAAU;AACvD,SAAO,KAAK;AACd;AAGO,SAAS,YAAY,aAA0C;AACpE,SAAO,YAAY,aAA6B,cAAc,SAAS,CAAC,KAAK,CAAC;AAChF;AAGO,SAAS,WAAW,aAA0B,WAA6C;AAChG,SAAO,YAAY,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB,SAAS;AACzE;AAGO,SAAS,WAAW,aAA0B,MAA0B;AAC7E,cAAY,aAA6B,cAAc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SAAS,EAAE,QAAQ;AAAA,UAAI,CAAC,MACtB,EAAE,KAAK,gBAAgB,YAAY,EAAE,GAAG,GAAG,cAAc,WAAW,IAAI;AAAA,QAC1E;AAAA,MACF;AAAA,IACN;AAAA,EACF;AACF;AAOA,eAAsB,iBACpB,MACA,aACA,WACA,SACe;AACf,MAAI,QAAS,OAAM,oBAAoB,MAAM,aAAa,WAAW,OAAO;AAC5E,MAAI;AACJ,MAAI;AACF,WAAO,MAAM,KAAK,MAAM,IAAI,SAAS;AAAA,EACvC,QAAQ;AAEN,eAAW,aAAa,SAAS;AACjC;AAAA,EACF;AACA,MAAI,KAAK,mBAAmB;AAE1B,WAAO,MAAM,KAAK,MAAM,MAAM,IAAI,EAAE,MAAM,MAAM,IAAI;AAAA,EACtD;AACA,aAAW,aAAa,IAAI;AAE5B,MAAI,CAAC;AACH,SAAK,YAAY,kBAAkB,EAAE,UAAU,cAAc,WAAW,SAAS,EAAE,CAAC;AACxF;AAMO,SAAS,mBAAmB,aAA0B,QAA6B;AACxF,MAAI,CAAC,CAAC,UAAU,WAAW,QAAQ,QAAQ,EAAE,SAAS,OAAO,MAAM,EAAG;AACtE,cAAY,aAAa,cAAc,cAAc,OAAO,YAAY,GAAG,MAAM;AACnF;AAUA,eAAsB,eACpB,MACA,aACA,OACe;AACf,QAAM,IAAI;AACV,MAAI,EAAE,SAAS;AACb,WAAO,iBAAiB,MAAM,aAAa,EAAE,aAAa,EAAE,OAAO;AACrE,MAAI,EAAE,SAAS;AACb,WAAO,cAAc,MAAM,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY;AACtF,MAAI,EAAE,SAAS;AACb,WAAO,iBAAiB,MAAM,aAAa,EAAE,aAAa,EAAE,OAAO;AACrE,MAAI,EAAE,SAAS,kBAAmB,oBAAmB,aAAa,CAAC;AACrE;",
4
+ "sourcesContent": ["/**\n * The one chat cache: my chat list (`arbiQueryKeys.chatList()`, raw \u2014 titles and last messages\n * stay ciphertext) and each open thread (`arbiQueryKeys.chatThread(id)`, decrypted). Every reader\n * (the messenger, unread badges, the DM kit, a call's chat) and every writer (a send, a delete,\n * a WebSocket event) goes through here, so one change shows everywhere at once.\n *\n * Live events: `<ArbiWebSocketProvider>` applies them itself; a host with its own socket passes each\n * chat event to `applyChatEvent`.\n */\n\nimport type { QueryClient } from '@tanstack/react-query'\nimport type { WsAgentDmStatusMessage } from '@arbidocs/client'\nimport { chats, type Arbi } from '@arbidocs/sdk/browser'\nimport { arbiQueryKeys } from '../hooks'\nimport { calendarQueryKeys, callQueryKeys } from '../query-keys'\n\nexport type ChatResponse = chats.ChatResponse\nexport type ChatMessageResponse = chats.ChatMessageResponse\nexport type DecryptedChatMessage = chats.DecryptedChatMessage\nexport type ChatAttachmentFile = chats.ChatAttachmentFile\nexport type ChatMemberKey = chats.ChatMemberKey\n\n/** A message in an open thread; an optimistic row carries a local id until the server echoes it. */\nexport type ChatThreadMessage = DecryptedChatMessage & { optimistic?: boolean }\n\n/** An open thread's cache entry: decrypted messages, oldest first. */\nexport interface ChatThreadData {\n messages: ChatThreadMessage[]\n /** False once the oldest page has been loaded. */\n hasMore: boolean\n}\n\n/** The signed-in user's external id, or null when signed out. */\nexport function myChatId(arbi: Arbi): string | null {\n try {\n return arbi.user.identity()?.externalId ?? null\n } catch {\n return null\n }\n}\n\n// \u2500\u2500 The chat open in a messenger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** The chat open in a messenger, if any: its new messages do not count as unread. */\nlet openChatExtId: string | null = null\nexport function setOpenChat(chatExtId: string | null): void {\n openChatExtId = chatExtId\n}\nexport function getOpenChat(): string | null {\n return openChatExtId\n}\n\n// \u2500\u2500 Writers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nfunction byActivity(a: ChatResponse, b: ChatResponse): number {\n const at = Date.parse(a.last_message_at ?? a.created_at)\n const bt = Date.parse(b.last_message_at ?? b.created_at)\n return bt - at\n}\n\n/** My chats as the cache holds them (empty until the list has loaded). */\nexport function cachedChats(queryClient: QueryClient): ChatResponse[] {\n return queryClient.getQueryData<ChatResponse[]>(arbiQueryKeys.chatList()) ?? []\n}\n\n/** One of my chats from the cache, if the list has it. */\nexport function cachedChat(queryClient: QueryClient, chatExtId: string): ChatResponse | undefined {\n return cachedChats(queryClient).find((c) => c.external_id === chatExtId)\n}\n\n/** Put a chat (new or updated) into the list, keeping the list newest first. */\nexport function upsertChat(queryClient: QueryClient, chat: ChatResponse): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) => {\n if (!old) return old\n const rest = old.filter((c) => c.external_id !== chat.external_id)\n return [chat, ...rest].sort(byActivity)\n })\n}\n\n/** Drop a chat I left or lost, with its thread. */\nexport function removeChat(queryClient: QueryClient, chatExtId: string): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.filter((c) => c.external_id !== chatExtId)\n )\n queryClient.removeQueries({ queryKey: arbiQueryKeys.chatThread(chatExtId) })\n}\n\n/** Append a message to a loaded thread (deduplicated, replacing its optimistic copy). */\nexport function appendToThread(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatThreadMessage,\n replaceOptimisticId?: string\n): void {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) => {\n if (!old) return old\n const without = old.messages.filter(\n (m) => m.external_id !== message.external_id && m.external_id !== replaceOptimisticId\n )\n return { ...old, messages: [...without, message] }\n })\n}\n\n/** Take a message out of a loaded thread (a failed optimistic send). */\nexport function dropFromThread(queryClient: QueryClient, chatExtId: string, messageExtId: string) {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) =>\n old ? { ...old, messages: old.messages.filter((m) => m.external_id !== messageExtId) } : old\n )\n}\n\n/** Replace a message of a loaded thread where it stands (no-op when it is not loaded). */\nfunction replaceInThread(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatThreadMessage\n): void {\n queryClient.setQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId), (old) => {\n if (!old || !old.messages.some((m) => m.external_id === message.external_id)) return old\n return {\n ...old,\n messages: old.messages.map((m) => (m.external_id === message.external_id ? message : m)),\n }\n })\n}\n\n/** Swap a chat's `last_message` in the list when it is still `message`. */\nfunction patchLastMessage(\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): void {\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.map((c) =>\n c.external_id === chatExtId && c.last_message?.external_id === message.external_id\n ? { ...c, last_message: message }\n : c\n )\n )\n}\n\n/**\n * Delete one of my messages. The server keeps it in place as a tombstone (`deleted: true`), so\n * the cache marks it the same way at once \u2014 a refetch then returns exactly what is shown. Rolled\n * back (and rethrown) when the delete fails.\n */\nexport async function deleteChatMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n messageExtId: string\n): Promise<void> {\n const thread = queryClient.getQueryData<ChatThreadData>(arbiQueryKeys.chatThread(chatExtId))\n const before = thread?.messages.find((m) => m.external_id === messageExtId)\n const listed = cachedChat(queryClient, chatExtId)\n const wasLast = listed?.last_message?.external_id === messageExtId ? listed.last_message : null\n if (before) replaceInThread(queryClient, chatExtId, chats.chatMessageTombstone(before))\n if (wasLast) patchLastMessage(queryClient, chatExtId, chats.chatMessageTombstone(wasLast))\n try {\n await arbi.chats.deleteMessage(chatExtId, messageExtId)\n } catch (err) {\n if (before) replaceInThread(queryClient, chatExtId, before)\n if (wasLast) patchLastMessage(queryClient, chatExtId, wasLast)\n throw err\n }\n}\n\n// \u2500\u2500 Live events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** A message changed in place (a deleted message's tombstone): update it where it stands. */\nasync function applyChangedMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): Promise<void> {\n if (message.deleted) {\n replaceInThread(queryClient, chatExtId, chats.chatMessageTombstone(message))\n patchLastMessage(queryClient, chatExtId, chats.chatMessageTombstone(message))\n return\n }\n const chat = cachedChat(queryClient, chatExtId)\n if (!chat || !queryClient.getQueryData(arbiQueryKeys.chatThread(chatExtId))) return\n try {\n replaceInThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message))\n } catch (err) {\n console.error('[chats] could not decrypt a changed message', err)\n }\n}\n\n/** `chat.message`: a new message in one of my chats. */\nexport async function applyChatMessage(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message: ChatMessageResponse\n): Promise<void> {\n // Not new: a tombstone replaces the message where it stands (never unread, never the preview).\n if (message.deleted) return applyChangedMessage(arbi, queryClient, chatExtId, message)\n const me = myChatId(arbi)\n const chat = cachedChat(queryClient, chatExtId)\n if (!chat) {\n // A chat I was just added to: fetch the list fresh.\n void queryClient.invalidateQueries({ queryKey: arbiQueryKeys.chatList() })\n return\n }\n const mine = message.sender_ext_id === me\n const isOpen = openChatExtId === chatExtId\n upsertChat(queryClient, {\n ...chat,\n last_message: message,\n last_message_at: message.created_at,\n unread_count: mine ? 0 : isOpen ? chat.unread_count : chat.unread_count + 1,\n members: mine\n ? chat.members.map((m) =>\n m.user.external_id === me ? { ...m, last_read_at: message.created_at } : m\n )\n : chat.members,\n })\n if (queryClient.getQueryData(arbiQueryKeys.chatThread(chatExtId))) {\n try {\n appendToThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message))\n } catch (err) {\n console.error('[chats] could not decrypt a live message', err)\n }\n }\n}\n\n/** `chat.read`: a member's watermark moved (a read receipt). */\nexport function applyChatRead(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n userExtId: string,\n lastReadAt: string\n): void {\n const me = myChatId(arbi)\n queryClient.setQueryData<ChatResponse[]>(arbiQueryKeys.chatList(), (old) =>\n old?.map((c) =>\n c.external_id !== chatExtId\n ? c\n : {\n ...c,\n unread_count: userExtId === me ? 0 : c.unread_count,\n members: c.members.map((m) =>\n m.user.external_id === userExtId ? { ...m, last_read_at: lastReadAt } : m\n ),\n }\n )\n )\n}\n\n/**\n * `chat.updated`: members, keys, title or a deleted message changed. Refetch the chat; when it now\n * needs a new epoch and I am still in it, seal one. A changed `message` (a deleted message's\n * tombstone) is applied in place; without one the open thread is reloaded.\n */\nexport async function applyChatUpdated(\n arbi: Arbi,\n queryClient: QueryClient,\n chatExtId: string,\n message?: ChatMessageResponse | null\n): Promise<void> {\n if (message) await applyChangedMessage(arbi, queryClient, chatExtId, message)\n let chat: ChatResponse\n try {\n chat = await arbi.chats.get(chatExtId)\n } catch {\n // Removed from it (or it is gone).\n removeChat(queryClient, chatExtId)\n return\n }\n if (chat.rotation_required) {\n // Best effort: whoever posts next rotates first.\n chat = await arbi.chats.ready(chat).catch(() => chat)\n }\n upsertChat(queryClient, chat)\n // Members, keys or a new epoch: reload the open thread. A changed message is already in place.\n if (!message)\n void queryClient.invalidateQueries({ queryKey: arbiQueryKeys.chatThread(chatExtId) })\n}\n\n/** My own agent's progress on a message I sent it (`agent_dm_status`). */\nexport type AgentDmStatus = WsAgentDmStatusMessage\n\n/** `agent_dm_status`: remember my agent's latest progress (read by `useAgentDmStatus`). */\nexport function applyAgentDmStatus(queryClient: QueryClient, status: AgentDmStatus): void {\n if (!['queued', 'working', 'done', 'failed'].includes(status.status)) return\n queryClient.setQueryData(arbiQueryKeys.agentDmStatus(status.agent_ext_id), status)\n // Native actions use the server APIs, so they do not run this browser's mutation callbacks.\n // Refresh the owner's open schedule and call controls after a run, including partial failures.\n if (status.status === 'done' || status.status === 'failed') {\n void queryClient.invalidateQueries({ queryKey: calendarQueryKeys.all() })\n void queryClient.invalidateQueries({ queryKey: callQueryKeys.all() })\n }\n}\n\n/** The chat events of the server's WebSocket, as `applyChatEvent` takes them. */\nexport type ChatEvent =\n | { type: 'chat.message'; chat_ext_id: string; message: ChatMessageResponse }\n | { type: 'chat.read'; chat_ext_id: string; user_ext_id: string; last_read_at: string }\n | { type: 'chat.updated'; chat_ext_id: string; message?: ChatMessageResponse | null }\n | AgentDmStatus\n\n/** Apply one chat event of the server's WebSocket to the cache. Other messages are ignored. */\nexport async function applyChatEvent(\n arbi: Arbi,\n queryClient: QueryClient,\n event: { type: string }\n): Promise<void> {\n const e = event as ChatEvent\n if (e.type === 'chat.message')\n return applyChatMessage(arbi, queryClient, e.chat_ext_id, e.message)\n if (e.type === 'chat.read')\n return applyChatRead(arbi, queryClient, e.chat_ext_id, e.user_ext_id, e.last_read_at)\n if (e.type === 'chat.updated')\n return applyChatUpdated(arbi, queryClient, e.chat_ext_id, e.message)\n if (e.type === 'agent_dm_status') applyAgentDmStatus(queryClient, e)\n}\n"],
5
+ "mappings": "AAYA,SAAS,aAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB,qBAAqB;AAmB1C,SAAS,SAAS,MAA2B;AAClD,MAAI;AACF,WAAO,KAAK,KAAK,SAAS,GAAG,cAAc;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AU,WAAW,QAAQ,QAAQ,EAAE,SAAS,OAAO,MAAM,EAAG;AACtE,cAAY,aAAa,cAAc,cAAc,OAAO,YAAY,GAAG,MAAM;AAGjF,MAAI,OAAO,WAAW,UAAU,OAAO,WAAW,UAAU;AAC1D,SAAK,YAAY,kBAAkB,EAAE,UAAU,kBAAkB,IAAI,EAAE,CAAC;AACxE,SAAK,YAAY,kBAAkB,EAAE,UAAU,cAAc,IAAI,EAAE,CAAC;AAAA,EACtE;AACF;AAUA,eAAsB,eACpB,MACA,aACA,OACe;AACf,QAAM,IAAI;AACV,MAAI,EAAE,SAAS;AACb,WAAO,iBAAiB,MAAM,aAAa,EAAE,aAAa,EAAE,OAAO;AACrE,MAAI,EAAE,SAAS;AACb,WAAO,cAAc,MAAM,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY;AACtF,MAAI,EAAE,SAAS;AACb,WAAO,iBAAiB,MAAM,aAAa,EAAE,aAAa,EAAE,OAAO;AACrE,MAAI,EAAE,SAAS,kBAAmB,oBAAmB,aAAa,CAAC;AACrE;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkQV7KINWC_cjs = require('../chunk-QV7KINWC.cjs');
3
+ var chunkZBI5AMZC_cjs = require('../chunk-ZBI5AMZC.cjs');
4
4
  var chunk6TJL4Z2F_cjs = require('../chunk-6TJL4Z2F.cjs');
5
- require('../chunk-SUZORMAB.cjs');
5
+ require('../chunk-L5TQDBG4.cjs');
6
6
  require('../chunk-2IJP73ZG.cjs');
7
7
  var chunkZZBCZRA5_cjs = require('../chunk-ZZBCZRA5.cjs');
8
8
  require('../chunk-KULS4YWP.cjs');
@@ -16,243 +16,243 @@ require('../chunk-S6A6FSG7.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "DEFAULT_FIELD_SIZE", {
18
18
  enumerable: true,
19
- get: function () { return chunkQV7KINWC_cjs.DEFAULT_FIELD_SIZE; }
19
+ get: function () { return chunkZBI5AMZC_cjs.DEFAULT_FIELD_SIZE; }
20
20
  });
21
21
  Object.defineProperty(exports, "FIELD_TYPE_LABELS", {
22
22
  enumerable: true,
23
- get: function () { return chunkQV7KINWC_cjs.FIELD_TYPE_LABELS; }
23
+ get: function () { return chunkZBI5AMZC_cjs.FIELD_TYPE_LABELS; }
24
24
  });
25
25
  Object.defineProperty(exports, "INFORMAL_SIGNATURE_NOTE", {
26
26
  enumerable: true,
27
- get: function () { return chunkQV7KINWC_cjs.INFORMAL_SIGNATURE_NOTE; }
27
+ get: function () { return chunkZBI5AMZC_cjs.INFORMAL_SIGNATURE_NOTE; }
28
28
  });
29
29
  Object.defineProperty(exports, "LEGACY_LAYER_PREFIX", {
30
30
  enumerable: true,
31
- get: function () { return chunkQV7KINWC_cjs.LEGACY_LAYER_PREFIX; }
31
+ get: function () { return chunkZBI5AMZC_cjs.LEGACY_LAYER_PREFIX; }
32
32
  });
33
33
  Object.defineProperty(exports, "MARK_FIELD_TYPES", {
34
34
  enumerable: true,
35
- get: function () { return chunkQV7KINWC_cjs.MARK_FIELD_TYPES; }
35
+ get: function () { return chunkZBI5AMZC_cjs.MARK_FIELD_TYPES; }
36
36
  });
37
37
  Object.defineProperty(exports, "MAX_MERGE_ATTEMPTS", {
38
38
  enumerable: true,
39
- get: function () { return chunkQV7KINWC_cjs.MAX_MERGE_ATTEMPTS; }
39
+ get: function () { return chunkZBI5AMZC_cjs.MAX_MERGE_ATTEMPTS; }
40
40
  });
41
41
  Object.defineProperty(exports, "MarkupStoreError", {
42
42
  enumerable: true,
43
- get: function () { return chunkQV7KINWC_cjs.MarkupStoreError; }
43
+ get: function () { return chunkZBI5AMZC_cjs.MarkupStoreError; }
44
44
  });
45
45
  Object.defineProperty(exports, "SIGNATURE_FIELD_TYPES", {
46
46
  enumerable: true,
47
- get: function () { return chunkQV7KINWC_cjs.SIGNATURE_FIELD_TYPES; }
47
+ get: function () { return chunkZBI5AMZC_cjs.SIGNATURE_FIELD_TYPES; }
48
48
  });
49
49
  Object.defineProperty(exports, "SIGNED_UNCHANGED", {
50
50
  enumerable: true,
51
- get: function () { return chunkQV7KINWC_cjs.SIGNED_UNCHANGED; }
51
+ get: function () { return chunkZBI5AMZC_cjs.SIGNED_UNCHANGED; }
52
52
  });
53
53
  Object.defineProperty(exports, "SIGNER_PROGRESS_LABELS", {
54
54
  enumerable: true,
55
- get: function () { return chunkQV7KINWC_cjs.SIGNER_PROGRESS_LABELS; }
55
+ get: function () { return chunkZBI5AMZC_cjs.SIGNER_PROGRESS_LABELS; }
56
56
  });
57
57
  Object.defineProperty(exports, "SignatureVerificationError", {
58
58
  enumerable: true,
59
- get: function () { return chunkQV7KINWC_cjs.SignatureVerificationError; }
59
+ get: function () { return chunkZBI5AMZC_cjs.SignatureVerificationError; }
60
60
  });
61
61
  Object.defineProperty(exports, "VERIFY_PATH", {
62
62
  enumerable: true,
63
- get: function () { return chunkQV7KINWC_cjs.VERIFY_PATH; }
63
+ get: function () { return chunkZBI5AMZC_cjs.VERIFY_PATH; }
64
64
  });
65
65
  Object.defineProperty(exports, "addToMarkup", {
66
66
  enumerable: true,
67
- get: function () { return chunkQV7KINWC_cjs.addToMarkup; }
67
+ get: function () { return chunkZBI5AMZC_cjs.addToMarkup; }
68
68
  });
69
69
  Object.defineProperty(exports, "canAnnotate", {
70
70
  enumerable: true,
71
- get: function () { return chunkQV7KINWC_cjs.canAnnotate; }
71
+ get: function () { return chunkZBI5AMZC_cjs.canAnnotate; }
72
72
  });
73
73
  Object.defineProperty(exports, "copyOpenThreads", {
74
74
  enumerable: true,
75
- get: function () { return chunkQV7KINWC_cjs.copyOpenThreads; }
75
+ get: function () { return chunkZBI5AMZC_cjs.copyOpenThreads; }
76
76
  });
77
77
  Object.defineProperty(exports, "createMarkupStore", {
78
78
  enumerable: true,
79
- get: function () { return chunkQV7KINWC_cjs.createMarkupStore; }
79
+ get: function () { return chunkZBI5AMZC_cjs.createMarkupStore; }
80
80
  });
81
81
  Object.defineProperty(exports, "deleteSavedSignature", {
82
82
  enumerable: true,
83
- get: function () { return chunkQV7KINWC_cjs.deleteSavedSignature; }
83
+ get: function () { return chunkZBI5AMZC_cjs.deleteSavedSignature; }
84
84
  });
85
85
  Object.defineProperty(exports, "fetchDocumentSignatureRequests", {
86
86
  enumerable: true,
87
- get: function () { return chunkQV7KINWC_cjs.fetchDocumentSignatureRequests; }
87
+ get: function () { return chunkZBI5AMZC_cjs.fetchDocumentSignatureRequests; }
88
88
  });
89
89
  Object.defineProperty(exports, "fetchSavedSignature", {
90
90
  enumerable: true,
91
- get: function () { return chunkQV7KINWC_cjs.fetchSavedSignature; }
91
+ get: function () { return chunkZBI5AMZC_cjs.fetchSavedSignature; }
92
92
  });
93
93
  Object.defineProperty(exports, "fetchSignatureVerification", {
94
94
  enumerable: true,
95
- get: function () { return chunkQV7KINWC_cjs.fetchSignatureVerification; }
95
+ get: function () { return chunkZBI5AMZC_cjs.fetchSignatureVerification; }
96
96
  });
97
97
  Object.defineProperty(exports, "fieldsFromSuggestions", {
98
98
  enumerable: true,
99
- get: function () { return chunkQV7KINWC_cjs.fieldsFromSuggestions; }
99
+ get: function () { return chunkZBI5AMZC_cjs.fieldsFromSuggestions; }
100
100
  });
101
101
  Object.defineProperty(exports, "fieldsInSigningOrder", {
102
102
  enumerable: true,
103
- get: function () { return chunkQV7KINWC_cjs.fieldsInSigningOrder; }
103
+ get: function () { return chunkZBI5AMZC_cjs.fieldsInSigningOrder; }
104
104
  });
105
105
  Object.defineProperty(exports, "forgetLegacyLayer", {
106
106
  enumerable: true,
107
- get: function () { return chunkQV7KINWC_cjs.forgetLegacyLayer; }
107
+ get: function () { return chunkZBI5AMZC_cjs.forgetLegacyLayer; }
108
108
  });
109
109
  Object.defineProperty(exports, "frozenCopyName", {
110
110
  enumerable: true,
111
- get: function () { return chunkQV7KINWC_cjs.frozenCopyName; }
111
+ get: function () { return chunkZBI5AMZC_cjs.frozenCopyName; }
112
112
  });
113
113
  Object.defineProperty(exports, "initialsOf", {
114
114
  enumerable: true,
115
- get: function () { return chunkQV7KINWC_cjs.initialsOf; }
115
+ get: function () { return chunkZBI5AMZC_cjs.initialsOf; }
116
116
  });
117
117
  Object.defineProperty(exports, "inviteSigners", {
118
118
  enumerable: true,
119
- get: function () { return chunkQV7KINWC_cjs.inviteSigners; }
119
+ get: function () { return chunkZBI5AMZC_cjs.inviteSigners; }
120
120
  });
121
121
  Object.defineProperty(exports, "isEmailSigner", {
122
122
  enumerable: true,
123
- get: function () { return chunkQV7KINWC_cjs.isEmailSigner; }
123
+ get: function () { return chunkZBI5AMZC_cjs.isEmailSigner; }
124
124
  });
125
125
  Object.defineProperty(exports, "isSignatureReference", {
126
126
  enumerable: true,
127
- get: function () { return chunkQV7KINWC_cjs.isSignatureReference; }
127
+ get: function () { return chunkZBI5AMZC_cjs.isSignatureReference; }
128
128
  });
129
129
  Object.defineProperty(exports, "marksByVersion", {
130
130
  enumerable: true,
131
- get: function () { return chunkQV7KINWC_cjs.marksByVersion; }
131
+ get: function () { return chunkZBI5AMZC_cjs.marksByVersion; }
132
132
  });
133
133
  Object.defineProperty(exports, "matchSignedCopy", {
134
134
  enumerable: true,
135
- get: function () { return chunkQV7KINWC_cjs.matchSignedCopy; }
135
+ get: function () { return chunkZBI5AMZC_cjs.matchSignedCopy; }
136
136
  });
137
137
  Object.defineProperty(exports, "migrateLegacyLayer", {
138
138
  enumerable: true,
139
- get: function () { return chunkQV7KINWC_cjs.migrateLegacyLayer; }
139
+ get: function () { return chunkZBI5AMZC_cjs.migrateLegacyLayer; }
140
140
  });
141
141
  Object.defineProperty(exports, "newFieldId", {
142
142
  enumerable: true,
143
- get: function () { return chunkQV7KINWC_cjs.newFieldId; }
143
+ get: function () { return chunkZBI5AMZC_cjs.newFieldId; }
144
144
  });
145
145
  Object.defineProperty(exports, "openThreadsOf", {
146
146
  enumerable: true,
147
- get: function () { return chunkQV7KINWC_cjs.openThreadsOf; }
147
+ get: function () { return chunkZBI5AMZC_cjs.openThreadsOf; }
148
148
  });
149
149
  Object.defineProperty(exports, "pngBytes", {
150
150
  enumerable: true,
151
- get: function () { return chunkQV7KINWC_cjs.pngBytes; }
151
+ get: function () { return chunkZBI5AMZC_cjs.pngBytes; }
152
152
  });
153
153
  Object.defineProperty(exports, "pngSize", {
154
154
  enumerable: true,
155
- get: function () { return chunkQV7KINWC_cjs.pngSize; }
155
+ get: function () { return chunkZBI5AMZC_cjs.pngSize; }
156
156
  });
157
157
  Object.defineProperty(exports, "readLegacyLayer", {
158
158
  enumerable: true,
159
- get: function () { return chunkQV7KINWC_cjs.readLegacyLayer; }
159
+ get: function () { return chunkZBI5AMZC_cjs.readLegacyLayer; }
160
160
  });
161
161
  Object.defineProperty(exports, "redactionLogName", {
162
162
  enumerable: true,
163
- get: function () { return chunkQV7KINWC_cjs.redactionLogName; }
163
+ get: function () { return chunkZBI5AMZC_cjs.redactionLogName; }
164
164
  });
165
165
  Object.defineProperty(exports, "saveSignatureRequest", {
166
166
  enumerable: true,
167
- get: function () { return chunkQV7KINWC_cjs.saveSignatureRequest; }
167
+ get: function () { return chunkZBI5AMZC_cjs.saveSignatureRequest; }
168
168
  });
169
169
  Object.defineProperty(exports, "sendBlocker", {
170
170
  enumerable: true,
171
- get: function () { return chunkQV7KINWC_cjs.sendBlocker; }
171
+ get: function () { return chunkZBI5AMZC_cjs.sendBlocker; }
172
172
  });
173
173
  Object.defineProperty(exports, "signSignatureRequest", {
174
174
  enumerable: true,
175
- get: function () { return chunkQV7KINWC_cjs.signSignatureRequest; }
175
+ get: function () { return chunkZBI5AMZC_cjs.signSignatureRequest; }
176
176
  });
177
177
  Object.defineProperty(exports, "signatureFieldSuggestions", {
178
178
  enumerable: true,
179
- get: function () { return chunkQV7KINWC_cjs.signatureFieldSuggestions; }
179
+ get: function () { return chunkZBI5AMZC_cjs.signatureFieldSuggestions; }
180
180
  });
181
181
  Object.defineProperty(exports, "splitSuggestions", {
182
182
  enumerable: true,
183
- get: function () { return chunkQV7KINWC_cjs.splitSuggestions; }
183
+ get: function () { return chunkZBI5AMZC_cjs.splitSuggestions; }
184
184
  });
185
185
  Object.defineProperty(exports, "storeSavedSignature", {
186
186
  enumerable: true,
187
- get: function () { return chunkQV7KINWC_cjs.storeSavedSignature; }
187
+ get: function () { return chunkZBI5AMZC_cjs.storeSavedSignature; }
188
188
  });
189
189
  Object.defineProperty(exports, "suggestSignatureFields", {
190
190
  enumerable: true,
191
- get: function () { return chunkQV7KINWC_cjs.suggestSignatureFields; }
191
+ get: function () { return chunkZBI5AMZC_cjs.suggestSignatureFields; }
192
192
  });
193
193
  Object.defineProperty(exports, "uploadFrozenCopy", {
194
194
  enumerable: true,
195
- get: function () { return chunkQV7KINWC_cjs.uploadFrozenCopy; }
195
+ get: function () { return chunkZBI5AMZC_cjs.uploadFrozenCopy; }
196
196
  });
197
197
  Object.defineProperty(exports, "useDeclineSignatureRequest", {
198
198
  enumerable: true,
199
- get: function () { return chunkQV7KINWC_cjs.useDeclineSignatureRequest; }
199
+ get: function () { return chunkZBI5AMZC_cjs.useDeclineSignatureRequest; }
200
200
  });
201
201
  Object.defineProperty(exports, "useDeleteSavedSignature", {
202
202
  enumerable: true,
203
- get: function () { return chunkQV7KINWC_cjs.useDeleteSavedSignature; }
203
+ get: function () { return chunkZBI5AMZC_cjs.useDeleteSavedSignature; }
204
204
  });
205
205
  Object.defineProperty(exports, "useDocumentBytes", {
206
206
  enumerable: true,
207
- get: function () { return chunkQV7KINWC_cjs.useDocumentBytes; }
207
+ get: function () { return chunkZBI5AMZC_cjs.useDocumentBytes; }
208
208
  });
209
209
  Object.defineProperty(exports, "useDocumentMarkup", {
210
210
  enumerable: true,
211
- get: function () { return chunkQV7KINWC_cjs.useDocumentMarkup; }
211
+ get: function () { return chunkZBI5AMZC_cjs.useDocumentMarkup; }
212
212
  });
213
213
  Object.defineProperty(exports, "useDocumentSignatureRequests", {
214
214
  enumerable: true,
215
- get: function () { return chunkQV7KINWC_cjs.useDocumentSignatureRequests; }
215
+ get: function () { return chunkZBI5AMZC_cjs.useDocumentSignatureRequests; }
216
216
  });
217
217
  Object.defineProperty(exports, "useInviteSigners", {
218
218
  enumerable: true,
219
- get: function () { return chunkQV7KINWC_cjs.useInviteSigners; }
219
+ get: function () { return chunkZBI5AMZC_cjs.useInviteSigners; }
220
220
  });
221
221
  Object.defineProperty(exports, "useIsOnline", {
222
222
  enumerable: true,
223
- get: function () { return chunkQV7KINWC_cjs.useIsOnline; }
223
+ get: function () { return chunkZBI5AMZC_cjs.useIsOnline; }
224
224
  });
225
225
  Object.defineProperty(exports, "useSaveSignatureRequest", {
226
226
  enumerable: true,
227
- get: function () { return chunkQV7KINWC_cjs.useSaveSignatureRequest; }
227
+ get: function () { return chunkZBI5AMZC_cjs.useSaveSignatureRequest; }
228
228
  });
229
229
  Object.defineProperty(exports, "useSavedSignature", {
230
230
  enumerable: true,
231
- get: function () { return chunkQV7KINWC_cjs.useSavedSignature; }
231
+ get: function () { return chunkZBI5AMZC_cjs.useSavedSignature; }
232
232
  });
233
233
  Object.defineProperty(exports, "useSignSignatureRequest", {
234
234
  enumerable: true,
235
- get: function () { return chunkQV7KINWC_cjs.useSignSignatureRequest; }
235
+ get: function () { return chunkZBI5AMZC_cjs.useSignSignatureRequest; }
236
236
  });
237
237
  Object.defineProperty(exports, "useSignatureVerification", {
238
238
  enumerable: true,
239
- get: function () { return chunkQV7KINWC_cjs.useSignatureVerification; }
239
+ get: function () { return chunkZBI5AMZC_cjs.useSignatureVerification; }
240
240
  });
241
241
  Object.defineProperty(exports, "useSignerCandidates", {
242
242
  enumerable: true,
243
- get: function () { return chunkQV7KINWC_cjs.useSignerCandidates; }
243
+ get: function () { return chunkZBI5AMZC_cjs.useSignerCandidates; }
244
244
  });
245
245
  Object.defineProperty(exports, "useStoreSavedSignature", {
246
246
  enumerable: true,
247
- get: function () { return chunkQV7KINWC_cjs.useStoreSavedSignature; }
247
+ get: function () { return chunkZBI5AMZC_cjs.useStoreSavedSignature; }
248
248
  });
249
249
  Object.defineProperty(exports, "useVoidSignatureRequest", {
250
250
  enumerable: true,
251
- get: function () { return chunkQV7KINWC_cjs.useVoidSignatureRequest; }
251
+ get: function () { return chunkZBI5AMZC_cjs.useVoidSignatureRequest; }
252
252
  });
253
253
  Object.defineProperty(exports, "versionsWithMarkup", {
254
254
  enumerable: true,
255
- get: function () { return chunkQV7KINWC_cjs.versionsWithMarkup; }
255
+ get: function () { return chunkZBI5AMZC_cjs.versionsWithMarkup; }
256
256
  });
257
257
  Object.defineProperty(exports, "DocumentFetchError", {
258
258
  enumerable: true,