@arbidocs/react 0.5.81 → 0.5.83

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 (61) hide show
  1. package/dist/artifacts/index.cjs +11 -18
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.cts +1 -3
  4. package/dist/artifacts/index.d.ts +1 -3
  5. package/dist/artifacts/index.js +5 -12
  6. package/dist/artifacts/index.js.map +1 -1
  7. package/dist/calls/livekit/index.cjs +48 -48
  8. package/dist/calls/livekit/index.js +3 -3
  9. package/dist/{chunk-YJEZEPUB.js → chunk-26WAJNXN.js} +3 -3
  10. package/dist/{chunk-YJEZEPUB.js.map → chunk-26WAJNXN.js.map} +1 -1
  11. package/dist/{chunk-DLBGBIAM.js → chunk-7R4SVVQE.js} +7 -5
  12. package/dist/chunk-7R4SVVQE.js.map +1 -0
  13. package/dist/{chunk-5YGUBXXH.cjs → chunk-AEG5ZMKH.cjs} +2 -2
  14. package/dist/chunk-AEG5ZMKH.cjs.map +1 -0
  15. package/dist/{chunk-5UJ4ZKJN.js → chunk-B3C25GWG.js} +4 -4
  16. package/dist/{chunk-5UJ4ZKJN.js.map → chunk-B3C25GWG.js.map} +1 -1
  17. package/dist/{chunk-4QON6LSH.js → chunk-BB32GHDD.js} +4 -4
  18. package/dist/{chunk-4QON6LSH.js.map → chunk-BB32GHDD.js.map} +1 -1
  19. package/dist/{chunk-2Y6LJNWA.js → chunk-EJIO2KAF.js} +2 -2
  20. package/dist/chunk-EJIO2KAF.js.map +1 -0
  21. package/dist/{chunk-L2P2X6LH.cjs → chunk-FEPBB7VJ.cjs} +35 -32
  22. package/dist/chunk-FEPBB7VJ.cjs.map +1 -0
  23. package/dist/{chunk-5IN5OGBT.cjs → chunk-FOB5QVGI.cjs} +16 -16
  24. package/dist/{chunk-5IN5OGBT.cjs.map → chunk-FOB5QVGI.cjs.map} +1 -1
  25. package/dist/{chunk-IZ3B62EN.cjs → chunk-JLJLPC5X.cjs} +22 -22
  26. package/dist/{chunk-IZ3B62EN.cjs.map → chunk-JLJLPC5X.cjs.map} +1 -1
  27. package/dist/{chunk-IHKQPOPK.cjs → chunk-PXWKJI4K.cjs} +18 -26
  28. package/dist/chunk-PXWKJI4K.cjs.map +1 -0
  29. package/dist/{chunk-OR6B7IL2.js → chunk-RZWWSAQG.js} +3 -3
  30. package/dist/{chunk-OR6B7IL2.js.map → chunk-RZWWSAQG.js.map} +1 -1
  31. package/dist/{chunk-QEVM3F5X.cjs → chunk-UKLLE4FC.cjs} +4 -4
  32. package/dist/{chunk-QEVM3F5X.cjs.map → chunk-UKLLE4FC.cjs.map} +1 -1
  33. package/dist/{chunk-RW3URTNE.cjs → chunk-VH234EOF.cjs} +25 -25
  34. package/dist/{chunk-RW3URTNE.cjs.map → chunk-VH234EOF.cjs.map} +1 -1
  35. package/dist/{chunk-LBAGMNGG.js → chunk-XAEVT7ZM.js} +18 -26
  36. package/dist/chunk-XAEVT7ZM.js.map +1 -0
  37. package/dist/document-tools/core.cjs +99 -99
  38. package/dist/document-tools/core.js +3 -3
  39. package/dist/document-tools/index.cjs +101 -101
  40. package/dist/document-tools/index.js +4 -4
  41. package/dist/index.cjs +1106 -1086
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/{index.d-BTbjugKS.d.ts → index.d-BDcwpFVa.d.cts} +73 -72
  44. package/dist/{index.d-BTbjugKS.d.cts → index.d-BDcwpFVa.d.ts} +73 -72
  45. package/dist/index.d.cts +52 -29
  46. package/dist/index.d.ts +52 -29
  47. package/dist/index.js +53 -38
  48. package/dist/index.js.map +1 -1
  49. package/dist/ui/index.cjs +148 -148
  50. package/dist/ui/index.d.cts +1 -1
  51. package/dist/ui/index.d.ts +1 -1
  52. package/dist/ui/index.js +1 -1
  53. package/dist/viewers/index.cjs +2 -2
  54. package/dist/viewers/index.js +1 -1
  55. package/package.json +3 -3
  56. package/dist/chunk-2Y6LJNWA.js.map +0 -1
  57. package/dist/chunk-5YGUBXXH.cjs.map +0 -1
  58. package/dist/chunk-DLBGBIAM.js.map +0 -1
  59. package/dist/chunk-IHKQPOPK.cjs.map +0 -1
  60. package/dist/chunk-L2P2X6LH.cjs.map +0 -1
  61. package/dist/chunk-LBAGMNGG.js.map +0 -1
@@ -18,5 +18,5 @@ function useDeploymentDomain() {
18
18
  }
19
19
 
20
20
  export { useArbi, useArbiHost, useDeploymentDomain };
21
- //# sourceMappingURL=chunk-2Y6LJNWA.js.map
22
- //# sourceMappingURL=chunk-2Y6LJNWA.js.map
21
+ //# sourceMappingURL=chunk-EJIO2KAF.js.map
22
+ //# sourceMappingURL=chunk-EJIO2KAF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/host/config.ts","../src/useArbi.ts"],"names":[],"mappings":";;;AAsIO,SAAS,WAAA,GAA8B;AAC5C,EAAA,OAAO,WAAW,eAAe,CAAA;AACnC;;;ACjIO,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-EJIO2KAF.js","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 { EntitySize } from '../entities/EntityPill'\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?: EntitySize\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 * What the site calls its assistant where people address it: the `@<name>` offered in a chat's\n * mention menu, the draft a shared thread starts with, and the name a message is routed to the\n * assistant on. Absent: \"ARBI\".\n */\n assistantName?: string\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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkU4PWVSCT_cjs = require('./chunk-U4PWVSCT.cjs');
4
- var chunk5YGUBXXH_cjs = require('./chunk-5YGUBXXH.cjs');
4
+ var chunkAEG5ZMKH_cjs = require('./chunk-AEG5ZMKH.cjs');
5
5
  var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
6
6
  var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
7
7
  var client = require('@arbidocs/client');
@@ -1027,6 +1027,7 @@ function closePanelIn(panels, panelId) {
1027
1027
  function panelPlace(panels, panelId) {
1028
1028
  return PANEL_MODES.find((mode) => panels[mode] === panelId) ?? null;
1029
1029
  }
1030
+ var DOCUMENT_VIEWER_PANEL = "document-viewer";
1030
1031
  var isPanelOpen = (state, panelId) => panelPlace(state.shell.panels, panelId) !== null;
1031
1032
  var dmTabId = (tab) => tab.recipientId ?? "new";
1032
1033
  function createArbiLayoutStore({
@@ -1532,7 +1533,7 @@ var createOwnStore = (host) => createArbiSessionStore(
1532
1533
  var moduleDefault = null;
1533
1534
  var defaultStore = () => moduleDefault ??= createArbiSessionStore();
1534
1535
  function useArbiSessionStore() {
1535
- const host = chunk5YGUBXXH_cjs.useArbiHost();
1536
+ const host = chunkAEG5ZMKH_cjs.useArbiHost();
1536
1537
  if (host.session) return host.session;
1537
1538
  const own = host[chunkN73IMVFF_cjs.OWN_SESSION_SLOT];
1538
1539
  if (own) return own.current ??= createOwnStore(host);
@@ -1571,7 +1572,7 @@ var SIGNED_OUT = {
1571
1572
  var noSubscription = () => () => {
1572
1573
  };
1573
1574
  function useArbiSession() {
1574
- return useSignedInSession(chunk5YGUBXXH_cjs.useArbiHost().arbi?.session ?? null);
1575
+ return useSignedInSession(chunkAEG5ZMKH_cjs.useArbiHost().arbi?.session ?? null);
1575
1576
  }
1576
1577
  function useSignedInSession(session) {
1577
1578
  const state = react.useSyncExternalStore(
@@ -1773,7 +1774,7 @@ function isUsageMetered(usage, subscription) {
1773
1774
  return !(empty && subscription === "dev");
1774
1775
  }
1775
1776
  function useWorkspaces(options) {
1776
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1777
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1777
1778
  return reactQuery.useQuery({
1778
1779
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.workspaces(),
1779
1780
  queryFn: () => arbi.workspaces.list(),
@@ -1781,7 +1782,7 @@ function useWorkspaces(options) {
1781
1782
  });
1782
1783
  }
1783
1784
  function useDocumentVersionList(docId, options) {
1784
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1785
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1785
1786
  return reactQuery.useQuery({
1786
1787
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.documentVersions(docId ?? ""),
1787
1788
  queryFn: () => arbi.documents.versions(docId),
@@ -1789,11 +1790,12 @@ function useDocumentVersionList(docId, options) {
1789
1790
  });
1790
1791
  }
1791
1792
  function useConversations(workspaceId, options) {
1792
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1793
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1793
1794
  const live = options?.live === true;
1794
1795
  return reactQuery.useQuery({
1795
1796
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.conversations(workspaceId ?? ""),
1796
- queryFn: () => arbi.readInWorkspace(workspaceId, () => arbi.conversations.list()),
1797
+ // The request names the workspace, so a switch while it runs cannot answer for another.
1798
+ queryFn: () => arbi.conversations.list({ workspaceId }),
1797
1799
  enabled: (options?.enabled ?? true) && !!workspaceId && arbi.hasWorkspace,
1798
1800
  placeholderData: (previous) => previous,
1799
1801
  ...live ? {
@@ -1802,7 +1804,7 @@ function useConversations(workspaceId, options) {
1802
1804
  });
1803
1805
  }
1804
1806
  function useBuiltinCommands() {
1805
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1807
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1806
1808
  const query = reactQuery.useQuery({
1807
1809
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.assistantCommands(),
1808
1810
  queryFn: () => arbi.assistant.commands(),
@@ -1813,7 +1815,7 @@ function useBuiltinCommands() {
1813
1815
  return { commands, isLoading: query.isLoading };
1814
1816
  }
1815
1817
  function useMessageDetails(messageId, options) {
1816
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1818
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1817
1819
  return reactQuery.useQuery({
1818
1820
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.messageDetails(messageId ?? ""),
1819
1821
  queryFn: () => arbi.conversations.getMessage(messageId),
@@ -1821,7 +1823,7 @@ function useMessageDetails(messageId, options) {
1821
1823
  });
1822
1824
  }
1823
1825
  function useConversationThreads(conversationId, options) {
1824
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1826
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1825
1827
  const session = useArbiSessionStore();
1826
1828
  return reactQuery.useQuery({
1827
1829
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.conversationThreads(conversationId ?? ""),
@@ -1840,7 +1842,7 @@ var tagListKey = (query) => [
1840
1842
  query.linksLimit !== void 0 ? `links:${query.linksLimit}` : ""
1841
1843
  ].filter(Boolean).join("|");
1842
1844
  function useTags(workspaceId, options) {
1843
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1845
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1844
1846
  const { enabled, ...query } = options ?? {};
1845
1847
  const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
1846
1848
  const key = tagListKey(query);
@@ -1858,7 +1860,7 @@ function useTags(workspaceId, options) {
1858
1860
  });
1859
1861
  }
1860
1862
  function useThumbnails(docIds, options) {
1861
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1863
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1862
1864
  return reactQuery.useQuery({
1863
1865
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.thumbnails(docIds),
1864
1866
  queryFn: () => arbi.documents.getThumbnails(docIds),
@@ -1867,7 +1869,7 @@ function useThumbnails(docIds, options) {
1867
1869
  });
1868
1870
  }
1869
1871
  function useParsedDocument(docId, stage = "final", options) {
1870
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1872
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1871
1873
  return reactQuery.useQuery({
1872
1874
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.parsedDoc(docId ?? "", stage),
1873
1875
  queryFn: () => {
@@ -1882,13 +1884,13 @@ function useParsedDocument(docId, stage = "final", options) {
1882
1884
  });
1883
1885
  }
1884
1886
  function useAssistantQuery() {
1885
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1887
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1886
1888
  return reactQuery.useMutation({
1887
1889
  mutationFn: ({ request, handlers }) => arbi.assistant.ask(request, handlers)
1888
1890
  });
1889
1891
  }
1890
1892
  function useAgents(options) {
1891
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1893
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1892
1894
  return reactQuery.useQuery({
1893
1895
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.agents(),
1894
1896
  queryFn: () => arbi.agents.list(),
@@ -1896,7 +1898,7 @@ function useAgents(options) {
1896
1898
  });
1897
1899
  }
1898
1900
  function useDeleteAgents() {
1899
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1901
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1900
1902
  const qc = reactQuery.useQueryClient();
1901
1903
  return reactQuery.useMutation({
1902
1904
  mutationFn: ({ agentExtIds }) => arbi.agents.delete(agentExtIds),
@@ -1915,7 +1917,7 @@ function useDeleteAgents() {
1915
1917
  });
1916
1918
  }
1917
1919
  function useHealth(options) {
1918
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1920
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1919
1921
  return reactQuery.useQuery({
1920
1922
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.health(),
1921
1923
  queryFn: () => arbi.health.check(),
@@ -1923,7 +1925,7 @@ function useHealth(options) {
1923
1925
  });
1924
1926
  }
1925
1927
  function useAvailableModels(options) {
1926
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1928
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1927
1929
  return reactQuery.useQuery({
1928
1930
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.availableModels(),
1929
1931
  queryFn: () => arbi.health.models(),
@@ -1932,7 +1934,7 @@ function useAvailableModels(options) {
1932
1934
  });
1933
1935
  }
1934
1936
  function useConfigs(options) {
1935
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1937
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1936
1938
  return reactQuery.useQuery({
1937
1939
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.configVersions(),
1938
1940
  queryFn: () => arbi.agentConfig.list(),
@@ -1940,7 +1942,7 @@ function useConfigs(options) {
1940
1942
  });
1941
1943
  }
1942
1944
  function useConfig(configId, options) {
1943
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1945
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1944
1946
  return reactQuery.useQuery({
1945
1947
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.config(configId ?? ""),
1946
1948
  queryFn: () => arbi.agentConfig.get(configId),
@@ -1949,7 +1951,7 @@ function useConfig(configId, options) {
1949
1951
  });
1950
1952
  }
1951
1953
  function useActivity(options) {
1952
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1954
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1953
1955
  return reactQuery.useQuery({
1954
1956
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.activity(),
1955
1957
  queryFn: () => arbi.dm.listActivity({ limit: options?.limit, offset: options?.offset }),
@@ -1957,7 +1959,7 @@ function useActivity(options) {
1957
1959
  });
1958
1960
  }
1959
1961
  function useWorkspaceActivity(workspaceId, options) {
1960
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1962
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1961
1963
  return reactQuery.useInfiniteQuery({
1962
1964
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.workspaceActivity(workspaceId ?? ""),
1963
1965
  queryFn: async ({ pageParam }) => {
@@ -1973,7 +1975,7 @@ function useWorkspaceActivity(workspaceId, options) {
1973
1975
  });
1974
1976
  }
1975
1977
  function useProjects(options) {
1976
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1978
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1977
1979
  return reactQuery.useQuery({
1978
1980
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.projects(),
1979
1981
  queryFn: () => arbi.projects.list(),
@@ -1981,7 +1983,7 @@ function useProjects(options) {
1981
1983
  });
1982
1984
  }
1983
1985
  function useProjectUsage(projectExtId, monthsBack = 0, options) {
1984
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1986
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1985
1987
  const usage = reactQuery.useQuery({
1986
1988
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.projectUsage(projectExtId ?? "", monthsBack),
1987
1989
  queryFn: () => arbi.projects.usage(projectExtId, monthsBack),
@@ -1993,7 +1995,7 @@ function useProjectUsage(projectExtId, monthsBack = 0, options) {
1993
1995
  return { ...usage, metered };
1994
1996
  }
1995
1997
  function useProjectsUsage(projectExtIds, monthsBack = 0, options) {
1996
- const arbi = chunk5YGUBXXH_cjs.useArbi();
1998
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
1997
1999
  const enabled = (options?.enabled ?? true) && arbi.isLoggedIn;
1998
2000
  const projects = useProjects({ enabled: enabled && projectExtIds.length > 0 });
1999
2001
  const results = reactQuery.useQueries({
@@ -2067,7 +2069,7 @@ function useProjectsUsage(projectExtIds, monthsBack = 0, options) {
2067
2069
  }, [signature]);
2068
2070
  }
2069
2071
  function useProjectInvoices(projectExtId, options) {
2070
- const arbi = chunk5YGUBXXH_cjs.useArbi();
2072
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
2071
2073
  return reactQuery.useQuery({
2072
2074
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.projectInvoices(projectExtId ?? ""),
2073
2075
  queryFn: () => arbi.projects.invoices(projectExtId),
@@ -2075,7 +2077,7 @@ function useProjectInvoices(projectExtId, options) {
2075
2077
  });
2076
2078
  }
2077
2079
  function useCurrentUser(options) {
2078
- const arbi = chunk5YGUBXXH_cjs.useArbi();
2080
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
2079
2081
  return reactQuery.useQuery({
2080
2082
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.currentUser(),
2081
2083
  queryFn: () => arbi.user.me(),
@@ -2085,7 +2087,7 @@ function useCurrentUser(options) {
2085
2087
  });
2086
2088
  }
2087
2089
  function useFirmPool(options) {
2088
- const arbi = chunk5YGUBXXH_cjs.useArbi();
2090
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
2089
2091
  return reactQuery.useQuery({
2090
2092
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.firmPool(),
2091
2093
  queryFn: () => arbi.firm.pool(),
@@ -2101,7 +2103,7 @@ function useBoxRole(options = {}) {
2101
2103
  return { isBox, isBoxAdmin: isBox && !!data?.can_top_up };
2102
2104
  }
2103
2105
  function useTopUpFirmPool() {
2104
- const arbi = chunk5YGUBXXH_cjs.useArbi();
2106
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
2105
2107
  const queryClient = reactQuery.useQueryClient();
2106
2108
  return reactQuery.useMutation({
2107
2109
  mutationFn: (aiAddons) => arbi.firm.topUp(aiAddons),
@@ -2126,7 +2128,7 @@ function useCanCreateProjects() {
2126
2128
  return user.data?.can_create_projects;
2127
2129
  }
2128
2130
  function useUserUsageToday(options) {
2129
- const arbi = chunk5YGUBXXH_cjs.useArbi();
2131
+ const arbi = chunkAEG5ZMKH_cjs.useArbi();
2130
2132
  return reactQuery.useQuery({
2131
2133
  queryKey: chunkU4PWVSCT_cjs.arbiQueryKeys.userUsageToday(),
2132
2134
  queryFn: () => arbi.user.usageToday(),
@@ -2138,6 +2140,7 @@ function useUserUsageToday(options) {
2138
2140
  }
2139
2141
 
2140
2142
  exports.DEFAULT_DOCUMENT_VIEWER_STATE = DEFAULT_DOCUMENT_VIEWER_STATE;
2143
+ exports.DOCUMENT_VIEWER_PANEL = DOCUMENT_VIEWER_PANEL;
2141
2144
  exports.EMPTY_CHAT_STATE = EMPTY_CHAT_STATE;
2142
2145
  exports.EMPTY_DOCUMENT_STATE = EMPTY_DOCUMENT_STATE;
2143
2146
  exports.EMPTY_SESSION_STATE = EMPTY_SESSION_STATE;
@@ -2219,5 +2222,5 @@ exports.useTransientView = useTransientView;
2219
2222
  exports.useUserUsageToday = useUserUsageToday;
2220
2223
  exports.useWorkspaceActivity = useWorkspaceActivity;
2221
2224
  exports.useWorkspaces = useWorkspaces;
2222
- //# sourceMappingURL=chunk-L2P2X6LH.cjs.map
2223
- //# sourceMappingURL=chunk-L2P2X6LH.cjs.map
2225
+ //# sourceMappingURL=chunk-FEPBB7VJ.cjs.map
2226
+ //# sourceMappingURL=chunk-FEPBB7VJ.cjs.map