@arbidocs/react 0.5.57 → 0.5.58
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-WRMA2JYX.js → chunk-7VENKMLD.js} +5 -5
- package/dist/{chunk-WRMA2JYX.js.map → chunk-7VENKMLD.js.map} +1 -1
- package/dist/{chunk-2JQ7QNOO.cjs → chunk-A675AQXL.cjs} +154 -69
- package/dist/chunk-A675AQXL.cjs.map +1 -0
- package/dist/{chunk-KUGZXI7V.js → chunk-CE4RY7VA.js} +3 -3
- package/dist/{chunk-KUGZXI7V.js.map → chunk-CE4RY7VA.js.map} +1 -1
- package/dist/{chunk-RRWAX52L.cjs → chunk-G76ASVVH.cjs} +6 -2
- package/dist/chunk-G76ASVVH.cjs.map +1 -0
- package/dist/{chunk-PVUZULHI.js → chunk-J33GSXDT.js} +92 -12
- package/dist/chunk-J33GSXDT.js.map +1 -0
- package/dist/{chunk-3CVY5SGY.cjs → chunk-JNS3BOPU.cjs} +65 -65
- package/dist/{chunk-3CVY5SGY.cjs.map → chunk-JNS3BOPU.cjs.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-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-FSPLYO52.cjs → chunk-SOOLC65L.cjs} +3 -3
- package/dist/{chunk-FSPLYO52.cjs.map → chunk-SOOLC65L.cjs.map} +1 -1
- package/dist/{chunk-PBXJFMES.js → chunk-U64WCQP3.js} +6 -2
- package/dist/chunk-U64WCQP3.js.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 +2567 -1342
- 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 +1226 -63
- 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/ui/index.cjs +164 -164
- package/dist/ui/index.js +2 -2
- 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
|
@@ -143,6 +143,10 @@ var arbiQueryKeys = {
|
|
|
143
143
|
database: (databaseId) => databaseId === void 0 ? ["arbi", "databases", "one"] : ["arbi", "databases", "one", databaseId],
|
|
144
144
|
/** A database's rows (a search); no id: every database's, no params: every search of one. */
|
|
145
145
|
databaseRows: (databaseId, params) => databaseId === void 0 ? ["arbi", "databases", "rows"] : params === void 0 ? ["arbi", "databases", "rows", databaseId] : ["arbi", "databases", "rows", databaseId, params],
|
|
146
|
+
/** The saved dashboards of a store's scope (a workspace). */
|
|
147
|
+
dashboards: (scope) => ["arbi", "dashboards", scope],
|
|
148
|
+
/** A database's rows grouped and measured (a chart); no id: every database's. */
|
|
149
|
+
databaseAggregate: (databaseId, request) => databaseId === void 0 ? ["arbi", "databases", "aggregate"] : ["arbi", "databases", "aggregate", databaseId, request ?? {}],
|
|
146
150
|
// ── Configs, health ─────────────────────────────────────────────────────────────────────────
|
|
147
151
|
/** Under `configs()`: the saved configuration versions. */
|
|
148
152
|
configVersions: () => ["arbi", "configs", "versions"],
|
|
@@ -299,5 +303,5 @@ function isUnderQueryKey(queryKey, prefix) {
|
|
|
299
303
|
}
|
|
300
304
|
|
|
301
305
|
export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, documentBytesKey, isUnderQueryKey, mailQueryKeys };
|
|
302
|
-
//# sourceMappingURL=chunk-
|
|
303
|
-
//# sourceMappingURL=chunk-
|
|
306
|
+
//# sourceMappingURL=chunk-U64WCQP3.js.map
|
|
307
|
+
//# sourceMappingURL=chunk-U64WCQP3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/query-keys.ts"],"names":[],"mappings":";AAgBO,IAAM,aAAA,GAAgB;AAAA,EAC3B,UAAA,EAAY,MAAM,CAAC,MAAA,EAAQ,YAAY,CAAA;AAAA,EACvC,WAAW,CAAC,EAAA,KAAe,CAAC,MAAA,EAAQ,aAAa,EAAE,CAAA;AAAA,EACnD,YAAA,EAAc,CAAC,EAAA,EAAY,MAAA,KAAoB,CAAC,MAAA,EAAQ,cAAA,EAAgB,IAAI,MAAM,CAAA;AAAA,EAClF,UAAA,EAAY,MAAM,CAAC,MAAA,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mBAAmB,CAC9B,WAAA,EACA,SACA,IAAA,KAEA,OAAA,KAAY,SACP,CAAC,MAAA,EAAQ,eAAA,EAAiB,WAAW,IACrC,CAAC,MAAA,EAAQ,iBAAiB,WAAA,EAAa,OAAA,EAAS,QAAQ,KAAK;AAG7D,SAAS,eAAA,CAAgB,UAA8B,MAAA,EAAqC;AACjG,EAAA,OAAO,MAAA,CAAO,MAAM,CAAC,IAAA,EAAM,MAAM,QAAA,CAAS,CAAC,MAAM,IAAI,CAAA;AACvD","file":"chunk-U64WCQP3.js","sourcesContent":["/**\n * The one query-key factory of the ARBI front end: every React Query key and mutation key the\n * packages and the app use is built here, under `['arbi', …]`. Literal key arrays anywhere else\n * fail the `arbi/query-keys-from-factory` lint rule and `query-keys.guard.test.ts`, so a key can't\n * drift from the queries it names (a stale literal reads or invalidates nothing, silently).\n *\n * Dependency-free on purpose (types only): e2e helpers import it and pass keys into the page.\n */\n\nimport type {\n CalendarWindow,\n ListEventsParams,\n OverlayLayerName,\n RoomQuery,\n} from '@arbidocs/sdk/browser'\n\nexport const arbiQueryKeys = {\n fileShares: () => ['arbi', 'fileShares'] as const,\n fileShare: (id: string) => ['arbi', 'fileShare', id] as const,\n fileSharePdf: (id: string, status?: string) => ['arbi', 'fileSharePdf', id, status] as const,\n workspaces: () => ['arbi', 'workspaces'] as const,\n /** Every workspace's member list: what a workspace switch drops. */\n allWorkspaceUsers: () => ['arbi', 'workspaceUsers'] as const,\n workspaceUsers: (workspaceId: string) => ['arbi', 'workspaceUsers', workspaceId] as const,\n /** Every workspace's documents list: the prefix a write patches when it does not know the workspace. */\n allDocuments: () => ['arbi', 'documents'] as const,\n documents: (workspaceId: string) => ['arbi', 'documents', workspaceId] as const,\n /** One document (a viewer's); writes keep it current next to the list. */\n document: (docId: string) => ['arbi', 'document', docId] as const,\n documentsById: (docIds: string[]) =>\n ['arbi', 'documentsById', [...docIds].sort().join(',')] as const,\n /** Every workspace's near-duplicate pairs. */\n allSimilarDocuments: () => ['arbi', 'similarDocuments'] as const,\n similarDocuments: (workspaceId: string, threshold: number) =>\n ['arbi', 'similarDocuments', workspaceId, threshold] as const,\n /** Every version list: the prefix a new version invalidates. */\n allDocumentVersions: () => ['arbi', 'documentVersions'] as const,\n documentVersions: (docId: string) => ['arbi', 'documentVersions', docId] as const,\n conversations: (workspaceId: string) => ['arbi', 'conversations', workspaceId] as const,\n /** Every workspace's conversation list (and threads): the prefix a conversation write invalidates. */\n allConversations: () => ['arbi', 'conversations'] as const,\n /** A conversation's threads, under the conversations prefix (ids are unique across workspaces). */\n conversationThreads: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'threads'] as const,\n /** One stored message with everything the server keeps on it (its trace and metadata). */\n messageDetails: (messageId: string) => ['arbi', 'messageDetails', messageId] as const,\n /** The backend's built-in slash commands. */\n assistantCommands: () => ['arbi', 'assistantCommands'] as const,\n /** Every workspace's tags (lists, tables and kinds): what a cross-workspace change refreshes. */\n allTags: () => ['arbi', 'tags'] as const,\n tags: (workspaceId: string) => ['arbi', 'tags', workspaceId] as const,\n /** Under the workspace's tags: the kinds' fields (refreshed with the tags). */\n tagKinds: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'kinds'] as const,\n /** Every filtered list (a table of tags): what a tag write refreshes, the whole list aside. */\n tagLists: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'list'] as const,\n /** Under the workspace's tags: a tag, doctag or fact write that invalidates `tags` refreshes it. */\n tagList: (workspaceId: string, query: string) =>\n ['arbi', 'tags', workspaceId, 'list', query] as const,\n /** A kind's fields, under the workspace's tags. */\n tagKind: (workspaceId: string, kind: string) =>\n ['arbi', 'tags', workspaceId, 'kind', kind] as const,\n /** A task's history, under the conversations prefix: every conversation write refreshes it. */\n conversationActivity: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'activity'] as const,\n /** Under the conversations prefix: every step action or conversation write refreshes it. */\n conversationUsage: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'usage'] as const,\n thumbnails: (docIds: string[]) => ['arbi', 'thumbnails', [...docIds].sort().join(',')] as const,\n /** Every stage of a document's parsed content. */\n parsedDocument: (docId: string) => ['arbi', 'parsedDoc', docId] as const,\n parsedDoc: (docId: string, stage: string) => ['arbi', 'parsedDoc', docId, stage] as const,\n agents: () => ['arbi', 'agents'] as const,\n sessions: () => ['arbi', 'sessions'] as const,\n health: () => ['arbi', 'health'] as const,\n workflows: () => ['arbi', 'workflows'] as const,\n /** Under `workflows()`: a workflow write or run refreshes its runs too. */\n workflowRuns: (workflowId: string) => ['arbi', 'workflows', workflowId, 'runs'] as const,\n /** Every workspace's facts: the prefix a fact write invalidates. */\n allFacts: () => ['arbi', 'facts'] as const,\n facts: (workspaceId: string) => ['arbi', 'facts', workspaceId] as const,\n configs: () => ['arbi', 'configs'] as const,\n activity: () => ['arbi', 'activity'] as const,\n /** Every transfer query (jobs, lists, plans): what a finished job refreshes. */\n allWorkspaceTransfers: () => ['arbi', 'workspaceTransfers'] as const,\n /** The caller's recent transfer jobs out of a workspace. */\n workspaceTransfers: (workspaceId: string) =>\n ['arbi', 'workspaceTransfers', 'list', workspaceId] as const,\n /** One transfer job's progress. */\n workspaceTransfer: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'job', transferId] as const,\n /** What a scope (serialised) would take in a workspace, for a mode. */\n workspaceTransferPlan: (workspaceId: string, scope: string, mode: string) =>\n ['arbi', 'workspaceTransfers', 'plan', workspaceId, scope, mode] as const,\n /** A workspace's activity feed (all its pages). */\n workspaceActivity: (workspaceId: string) => ['arbi', 'workspaceActivity', workspaceId] as const,\n projects: () => ['arbi', 'projects'] as const,\n /** A filtered project list, under `projects()`. */\n projectsFiltered: (stage?: string, leadUser?: string) =>\n ['arbi', 'projects', 'list', stage ?? '', leadUser ?? ''] as const,\n /** Under `projects()`: a project update refreshes its events too. */\n projectEvents: (projectExtId: string) => ['arbi', 'projects', projectExtId, 'events'] as const,\n projectUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, monthsBack] as const,\n projectConversationUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, 'byConversation', monthsBack] as const,\n projectInvoices: (projectExtId: string) => ['arbi', 'projectInvoices', projectExtId] as const,\n /** The plans and add-ons on sale. */\n products: () => ['arbi', 'products'] as const,\n /** Prices of a purchase or a change (quotes, previews); nothing is bought. */\n billingQuotes: () => ['arbi', 'billingQuote'] as const,\n userUsageToday: () => ['arbi', 'userUsageToday'] as const,\n currentUser: () => ['arbi', 'currentUser'] as const,\n firmPool: () => ['arbi', 'firmPool'] as const,\n contacts: () => ['arbi', 'contacts'] as const,\n /** Every chat query (the list and each open thread). */\n chats: () => ['arbi', 'chats'] as const,\n /** My chats, raw (titles and last messages are ciphertext), most recently active first. */\n chatList: () => ['arbi', 'chats', 'list'] as const,\n /** One thread's loaded messages, decrypted, oldest first (`ChatThreadData`). */\n chatThread: (chatExtId: string) => ['arbi', 'chats', 'thread', chatExtId] as const,\n /** My own agent's progress on my last message to it (`agent_dm_status`), per agent. */\n agentDmStatus: (agentExtId: string) => ['arbi', 'chats', 'agentStatus', agentExtId] as const,\n /** The paid features this person may use (`/v1/user/entitlements`). */\n entitlements: () => ['arbi', 'entitlements'] as const,\n skills: () => ['arbi', 'skills'] as const,\n /** A skill's main file (SKILL.md), as text. */\n skillSource: (docExtId: string) => ['arbi', 'skills', 'source', docExtId] as const,\n /** An agent's pinned config; `undefined` = the library default config. */\n agentConfig: (agentExtId?: string) => ['arbi', 'agentConfig', agentExtId ?? 'default'] as const,\n agentWorkspaces: (agentExtId: string) => ['arbi', 'agentWorkspaces', agentExtId] as const,\n /** An agent's own login, polled while its controls are open. */\n agentSession: (agentExtId: string) => ['arbi', 'agentSession', agentExtId] as const,\n agentChats: (agentExtId: string) => ['arbi', 'agentChats', agentExtId] as const,\n authorizeLimits: () => ['arbi', 'authorizeLimits'] as const,\n mcpTools: () => ['arbi', 'mcpTools'] as const,\n models: () => ['arbi', 'models'] as const,\n availableModels: () => ['arbi', 'availableModels'] as const,\n modelConnections: (userId?: string) => ['arbi', 'modelConnections', userId] as const,\n directModelUsage: (userId?: string) => ['arbi', 'directModelUsage', userId] as const,\n /** The signed-in user's own profile (name, picture, email). */\n profile: () => ['arbi', 'profile'] as const,\n identity: () => ['arbi', 'identity'] as const,\n /** The signed-in user's settings record (notification preferences, flags). */\n userSettings: () => ['arbi', 'userSettings'] as const,\n /** Every notification list: the prefix a delete, a read receipt or an arrival invalidates. */\n allNotifications: () => ['arbi', 'notifications'] as const,\n /** The newest `limit` notifications, received and sent. */\n notifications: (limit: number) => ['arbi', 'notifications', limit] as const,\n /** The documents a workspace may use as its Word house template. */\n houseTemplateCandidates: (workspaceId: string) =>\n ['arbi', 'houseTemplateCandidates', workspaceId] as const,\n // ── Storage, archive ────────────────────────────────────────────────────────────────────────\n /** Every storage view (projects, items, names, Recently deleted): what a restore or delete refreshes. */\n storage: () => ['arbi', 'storage'] as const,\n /** What each project stores; no params: every such list. */\n storageProjects: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'projects'] as const)\n : (['arbi', 'storage', 'projects', params] as const),\n /** The largest items stored; no params: every such list. */\n storageItems: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'items'] as const)\n : (['arbi', 'storage', 'items', params] as const),\n /** Decrypted document names of storage items. */\n storageItemNames: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'names'] as const)\n : (['arbi', 'storage', 'names', params] as const),\n /** The deployment's storage day by day. */\n storageSnapshots: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'snapshots'] as const)\n : (['arbi', 'storage', 'snapshots', params] as const),\n /** A workspace's Recently deleted documents; no id: every workspace's. */\n workspaceTrash: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'storage', 'workspaceTrash'] as const)\n : (['arbi', 'storage', 'workspaceTrash', workspaceId] as const),\n /** A workspace's archive state; no id: every workspace's. */\n workspaceArchive: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceArchive'] as const)\n : (['arbi', 'workspaceArchive', workspaceId] as const),\n // ── Databases ───────────────────────────────────────────────────────────────────────────────\n /** Every database query of the open workspace. */\n databases: () => ['arbi', 'databases'] as const,\n databaseList: () => ['arbi', 'databases', 'list'] as const,\n /** One database; no id: every one read. */\n database: (databaseId?: string) =>\n databaseId === undefined\n ? (['arbi', 'databases', 'one'] as const)\n : (['arbi', 'databases', 'one', databaseId] as const),\n /** A database's rows (a search); no id: every database's, no params: every search of one. */\n databaseRows: (databaseId?: string, params?: object) =>\n databaseId === undefined\n ? (['arbi', 'databases', 'rows'] as const)\n : params === undefined\n ? (['arbi', 'databases', 'rows', databaseId] as const)\n : (['arbi', 'databases', 'rows', databaseId, params] as const),\n /** The saved dashboards of a store's scope (a workspace). */\n dashboards: (scope: string) => ['arbi', 'dashboards', scope] as const,\n /** A database's rows grouped and measured (a chart); no id: every database's. */\n databaseAggregate: (databaseId?: string, request?: object) =>\n databaseId === undefined\n ? (['arbi', 'databases', 'aggregate'] as const)\n : (['arbi', 'databases', 'aggregate', databaseId, request ?? {}] as const),\n // ── Configs, health ─────────────────────────────────────────────────────────────────────────\n /** Under `configs()`: the saved configuration versions. */\n configVersions: () => ['arbi', 'configs', 'versions'] as const,\n /** Under `configs()`: the JSON schema of every config model. */\n configSchema: () => ['arbi', 'configs', 'schema'] as const,\n /** Under `configs()`: one configuration. */\n config: (configId: string) => ['arbi', 'configs', 'one', configId] as const,\n /** The remote model providers' health. */\n remoteModels: () => ['arbi', 'remoteModels'] as const,\n // ── Conversations ───────────────────────────────────────────────────────────────────────────\n /** Under the conversations prefix: what a parked run waits for the owner to allow. */\n conversationPendingAuth: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'pending-auth'] as const,\n // ── Document tools ──────────────────────────────────────────────────────────────────────────\n /** Signatures on a document (a version); no id: every document's. */\n documentSignatures: (docId?: string, version?: number | null) =>\n docId === undefined\n ? (['arbi', 'documentSignatures'] as const)\n : (['arbi', 'documentSignatures', docId, version ?? null] as const),\n /** The certificate of a signature reference. */\n signatureVerification: (reference: string) =>\n ['arbi', 'signatureVerification', reference] as const,\n /** Every signature request list: what a request write refreshes. */\n signatureRequests: () => ['arbi', 'signatureRequests'] as const,\n signatureRequestsForDocument: (docId: string) =>\n ['arbi', 'signatureRequests', 'document', docId] as const,\n signatureRequestsAwaitingMe: () => ['arbi', 'signatureRequests', 'awaiting-me'] as const,\n signatureRequest: (requestId: string) => ['arbi', 'signatureRequests', 'one', requestId] as const,\n signatureCandidates: () => ['arbi', 'signatureRequests', 'candidates'] as const,\n /** The user's saved (informal) signature. */\n savedSignature: () => ['arbi', 'savedSignature'] as const,\n /** An html/react artifact's source. */\n artifactSource: (docId: string) => ['arbi', 'artifactSource', docId] as const,\n /** An artifact's text, under its parsed content (refreshed with it). */\n artifactText: (docId: string) => ['arbi', 'parsedDoc', docId, 'marker', 'artifact-text'] as const,\n /** An image document's bytes as an object URL. */\n assetImage: (docId: string) => ['arbi', 'assetImage', docId] as const,\n // ── Misc ────────────────────────────────────────────────────────────────────────────────────\n /** An agent config's model tier (the builder's badge). */\n agentConfigModel: (configId: string) => ['arbi', 'agentConfigModel', configId] as const,\n /** Under `billingQuotes()`: the price of a plan change. */\n billingPreview: (projectExtId: string, change: unknown) =>\n ['arbi', 'billingQuote', 'preview', projectExtId, change] as const,\n billingPlanQuote: (projectExtId: string | null, body: unknown) =>\n ['arbi', 'billingQuote', 'plan', projectExtId, body] as const,\n billingAddonQuote: (projectExtId: string, kind: string) =>\n ['arbi', 'billingQuote', 'addon', projectExtId, kind] as const,\n /** Under `contacts()`: a search of the people one can reach. */\n contactSearch: (term: string) => ['arbi', 'contacts', 'search', term] as const,\n /** Under the workspace's facts: a filtered list. */\n factList: (workspaceId: string, filter: unknown) =>\n ['arbi', 'facts', workspaceId, filter] as const,\n /** Under `skills()`: the list, hidden ones included or not. */\n skillList: (includeHidden: boolean) => ['arbi', 'skills', includeHidden] as const,\n /** Under the project's events: one kind, one page size. */\n projectEventList: (projectExtId: string, kind: string, limit: number | 'default') =>\n ['arbi', 'projects', projectExtId, 'events', kind, limit] as const,\n /** The documents pinned for offline reading on this device. */\n offlineDocuments: () => ['arbi', 'offlineDocuments'] as const,\n /** Notifications of one kind for a deployment's user (polled). */\n typedNotifications: (kind: string, apiUrl: string, userId: string | undefined) =>\n ['arbi', 'typedNotifications', kind, apiUrl, userId ?? ''] as const,\n}\n\n/**\n * Keys of the mutations a host may need to follow (its own caches outside these hooks), e.g. with\n * a `MutationCache` subscription: a workflow run creates a task in the host's own task list.\n */\nexport const arbiMutationKeys = {\n /** A member's role changed. */\n setWorkspaceMemberRoles: () => ['arbi', 'workspaces', 'roles'] as const,\n runWorkflow: () => ['arbi', 'workflows', 'run'] as const,\n updateTagKindSchema: () => ['arbi', 'tags', 'kinds', 'update'] as const,\n createTag: () => ['arbi', 'tags', 'create'] as const,\n updateTag: () => ['arbi', 'tags', 'update'] as const,\n deleteTag: () => ['arbi', 'tags', 'delete'] as const,\n extractEntities: () => ['arbi', 'tags', 'entities', 'extract'] as const,\n updateDocuments: () => ['arbi', 'documents', 'update'] as const,\n deleteDocuments: () => ['arbi', 'documents', 'delete'] as const,\n uploadDocuments: () => ['arbi', 'documents', 'upload'] as const,\n uploadUrls: () => ['arbi', 'documents', 'uploadUrls'] as const,\n assignDocTags: () => ['arbi', 'doctags', 'assign'] as const,\n removeDocTags: () => ['arbi', 'doctags', 'remove'] as const,\n updateDocTag: () => ['arbi', 'doctags', 'update'] as const,\n generateDocTags: () => ['arbi', 'doctags', 'generate'] as const,\n /** Members added to or removed from a workspace (leaving included). */\n workspaceMembership: () => ['arbi', 'workspaces', 'members'] as const,\n /** A chat turn being sent (the app's send pipeline). */\n sendMessage: () => ['arbi', 'conversations', 'send'] as const,\n}\n\n/**\n * Query keys of the calendar hooks, all under `['arbi', 'calendar']`. The calendar is the user's,\n * not a workspace's; only the overlays carry the open workspace.\n */\nexport const calendarQueryKeys = {\n all: () => ['arbi', 'calendar'] as const,\n settings: () => ['arbi', 'calendar', 'settings'] as const,\n calendars: () => ['arbi', 'calendar', 'calendars'] as const,\n /** Every event list: the prefix an event write invalidates. */\n events: () => ['arbi', 'calendar', 'events'] as const,\n eventList: (p: ListEventsParams) =>\n [\n 'arbi',\n 'calendar',\n 'events',\n { start: p.start, end: p.end, calendars: p.calendars?.join(',') ?? null },\n ] as const,\n /** Every single event read. */\n eventDetails: () => ['arbi', 'calendar', 'event'] as const,\n event: (id: string, recurrenceId?: string | null) =>\n ['arbi', 'calendar', 'event', id, recurrenceId ?? null] as const,\n shares: (calId: string) => ['arbi', 'calendar', 'shares', calId] as const,\n invitations: () => ['arbi', 'calendar', 'invitations'] as const,\n holidayCountries: () => ['arbi', 'calendar', 'holiday-countries'] as const,\n allRooms: () => ['arbi', 'calendar', 'rooms'] as const,\n rooms: (q: RoomQuery) => ['arbi', 'calendar', 'rooms', q] as const,\n freebusy: (attendees: string[], start: string, end: string) =>\n ['arbi', 'calendar', 'freebusy', attendees.join(','), start, end] as const,\n allLookups: () => ['arbi', 'calendar', 'lookup'] as const,\n lookup: (uid: string) => ['arbi', 'calendar', 'lookup', uid] as const,\n overlays: (workspaceId: string | null, w?: CalendarWindow, layers?: OverlayLayerName[]) =>\n [\n 'arbi',\n 'calendar',\n 'overlays',\n workspaceId,\n w ? { start: w.start, end: w.end, layers: layers?.join(',') } : null,\n ] as const,\n accounts: () => ['arbi', 'calendar', 'accounts'] as const,\n caldavProfiles: () => ['arbi', 'calendar', 'caldav-profiles'] as const,\n bookingPages: () => ['arbi', 'calendar', 'booking-pages'] as const,\n /** The offline outbox (writes made offline, not yet sent). */\n outbox: () => ['arbi', 'calendar', 'outbox'] as const,\n}\n\n/** Query keys of the call hooks, all under `['arbi', 'calls']`. Calls are the user's, not a workspace's. */\nexport const callQueryKeys = {\n all: () => ['arbi', 'calls'] as const,\n config: () => ['arbi', 'calls', 'config'] as const,\n call: (callExtId: string) => ['arbi', 'calls', 'call', callExtId] as const,\n /** Everything about a call's recordings: the prefix a recording event invalidates. */\n recordingsOf: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId] as const,\n recordings: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId, 'list'] as const,\n recording: (callExtId: string, recordingExtId: string) =>\n ['arbi', 'calls', 'recordings', callExtId, 'one', recordingExtId] as const,\n inviteLinks: (callExtId: string) => ['arbi', 'calls', 'invite-links', callExtId] as const,\n}\n\nexport const connectorQueryKeys = {\n all: () => ['arbi', 'connectors'] as const,\n catalog: () => ['arbi', 'connectors', 'catalog'] as const,\n mine: () => ['arbi', 'connectors', 'mine'] as const,\n mailboxFolders: (vendor: string) => ['arbi', 'connectors', 'folders', vendor] as const,\n mailboxSyncProgress: (vendor: string, workspaceExtId: string) =>\n ['arbi', 'connectors', 'sync-progress', vendor, workspaceExtId] as const,\n allMailboxSyncProgress: () => ['arbi', 'connectors', 'sync-progress'] as const,\n driveFolders: (vendor: string) => ['arbi', 'connectors', 'drive-folders', vendor] as const,\n driveFolderChildren: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-children', vendor, itemId] as const,\n driveFolderDocCount: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-doc-count', vendor, itemId] as const,\n driveSyncEstimate: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-estimate', vendor] as const,\n driveSyncProgress: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-progress', vendor] as const,\n allDriveSyncProgress: () => ['arbi', 'connectors', 'drive-sync-progress'] as const,\n slack: () => ['arbi', 'connectors', 'slack'] as const,\n}\n\nexport const mailQueryKeys = {\n all: () => ['arbi', 'mail'] as const,\n policy: () => ['arbi', 'mail', 'policy'] as const,\n accounts: () => ['arbi', 'mail', 'accounts'] as const,\n unlock: (accountId: string | undefined, sessionKey: string | null) =>\n ['arbi', 'mail', 'unlock', accountId, sessionKey ?? ''] as const,\n allFolders: () => ['arbi', 'mail', 'folders'] as const,\n folders: (accountId: string | undefined) => ['arbi', 'mail', 'folders', accountId] as const,\n allMessages: () => ['arbi', 'mail', 'messages'] as const,\n messages: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'messages', accountId, folderId, query, cursor] as const,\n message: (accountId: string | undefined, messageId: string | null | undefined) =>\n ['arbi', 'mail', 'message', accountId, messageId] as const,\n /** The projects an email's AI work can be billed to. */\n projects: () => ['arbi', 'mail', 'projects'] as const,\n /** A saved draft prepared for editing. */\n draftCompose: (accountId: string | undefined, draftId: string | undefined) =>\n ['arbi', 'mail', 'draft-compose', accountId, draftId] as const,\n attachmentText: (accountId: string, messageId: string, attachmentId: string) =>\n ['arbi', 'mail', 'attachment-text', accountId, messageId, attachmentId] as const,\n}\n\n/** `pdf`: the document as a PDF; `original`: the stored file (an image, a recording, a sheet). */\nexport type DocumentBytesKind = 'pdf' | 'original'\n\n/** Every version and kind of a document's bytes: the prefix a new version invalidates. */\nexport const documentBytesKey = (\n documentRef: string,\n version?: number | null,\n kind?: DocumentBytesKind\n) =>\n version === undefined\n ? (['arbi', 'documentBytes', documentRef] as const)\n : (['arbi', 'documentBytes', documentRef, version, kind ?? 'pdf'] as const)\n\n/** Whether `queryKey` lies under `prefix` (a factory key): React Query's own prefix match. */\nexport function isUnderQueryKey(queryKey: readonly unknown[], prefix: readonly unknown[]): boolean {\n return prefix.every((part, i) => queryKey[i] === part)\n}\n"]}
|
|
@@ -22,5 +22,5 @@ function useDeploymentDomain() {
|
|
|
22
22
|
exports.useArbi = useArbi;
|
|
23
23
|
exports.useArbiHost = useArbiHost;
|
|
24
24
|
exports.useDeploymentDomain = useDeploymentDomain;
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-Y7S2SQH3.cjs.map
|
|
26
|
+
//# sourceMappingURL=chunk-Y7S2SQH3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/host/config.ts","../src/useArbi.ts"],"names":["useContext","ArbiHostContext"],"mappings":";;;;;AA+HO,SAAS,WAAA,GAA8B;AAC5C,EAAA,OAAOA,iBAAWC,iCAAe,CAAA;AACnC;;;AC1HO,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-Y7S2SQH3.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'\nimport type { DashboardsHost } from '../datasets/registry'\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 * Charts and dashboards: more data sources (an external feed, a source relabelled in the site's\n * words) and where saved dashboards are kept. Absent: the built-in sources, saved in a database.\n */\n dashboards?: DashboardsHost\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,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';
|