@arbidocs/react 0.5.18 → 0.5.20

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 (98) hide show
  1. package/dist/{ProductionDialog.d-CttHqQAh.d.ts → ProductionDialog.d-BDJwBSzj.d.ts} +1 -1
  2. package/dist/{ProductionDialog.d-BD1osHeq.d.cts → ProductionDialog.d-DjRQFmQw.d.cts} +1 -1
  3. package/dist/annotations/freeze/index.cjs +15 -15
  4. package/dist/annotations/freeze/index.d.cts +1 -1
  5. package/dist/annotations/freeze/index.d.ts +1 -1
  6. package/dist/annotations/freeze/index.js +3 -3
  7. package/dist/annotations/index.cjs +56 -56
  8. package/dist/annotations/index.d.cts +5 -5
  9. package/dist/annotations/index.d.ts +5 -5
  10. package/dist/annotations/index.js +2 -2
  11. package/dist/artifacts/index.cjs +10 -10
  12. package/dist/artifacts/index.js +3 -3
  13. package/dist/bundle-DCWPYNGD.cjs +14 -0
  14. package/dist/{bundle-B5AN4B7H.cjs.map → bundle-DCWPYNGD.cjs.map} +1 -1
  15. package/dist/bundle-JCKKGEJE.js +5 -0
  16. package/dist/{bundle-4TKU5WEQ.js.map → bundle-JCKKGEJE.js.map} +1 -1
  17. package/dist/calls/livekit/index.cjs +42 -42
  18. package/dist/calls/livekit/index.js +3 -3
  19. package/dist/{chunk-YWYCEEBF.js → chunk-2HVCNYFH.js} +32 -3
  20. package/dist/chunk-2HVCNYFH.js.map +1 -0
  21. package/dist/{chunk-NSSGDZSL.cjs → chunk-2IJP73ZG.cjs} +2 -2
  22. package/dist/{chunk-NSSGDZSL.cjs.map → chunk-2IJP73ZG.cjs.map} +1 -1
  23. package/dist/{chunk-KFFH2JJM.cjs → chunk-4UDIA47U.cjs} +32 -32
  24. package/dist/{chunk-KFFH2JJM.cjs.map → chunk-4UDIA47U.cjs.map} +1 -1
  25. package/dist/{chunk-HUZB36QU.cjs → chunk-5YWIUUUT.cjs} +53 -2
  26. package/dist/chunk-5YWIUUUT.cjs.map +1 -0
  27. package/dist/{chunk-D63FAYES.js → chunk-A2XSLTIP.js} +5 -5
  28. package/dist/chunk-A2XSLTIP.js.map +1 -0
  29. package/dist/{chunk-EYOXZHXM.cjs → chunk-B6I2HRRF.cjs} +9 -9
  30. package/dist/chunk-B6I2HRRF.cjs.map +1 -0
  31. package/dist/{chunk-2M4B4FFA.cjs → chunk-CZP7FF3E.cjs} +31 -2
  32. package/dist/chunk-CZP7FF3E.cjs.map +1 -0
  33. package/dist/{chunk-GUCQMP6G.js → chunk-DUU537MW.js} +4 -4
  34. package/dist/{chunk-GUCQMP6G.js.map → chunk-DUU537MW.js.map} +1 -1
  35. package/dist/{chunk-4VQ3XHAQ.cjs → chunk-DYCONTUK.cjs} +41 -41
  36. package/dist/{chunk-4VQ3XHAQ.cjs.map → chunk-DYCONTUK.cjs.map} +1 -1
  37. package/dist/{chunk-CNRF5SLZ.cjs → chunk-FLAZSNC5.cjs} +33 -33
  38. package/dist/{chunk-CNRF5SLZ.cjs.map → chunk-FLAZSNC5.cjs.map} +1 -1
  39. package/dist/{chunk-WE7QWWJ4.js → chunk-KRAUMKBG.js} +4 -37
  40. package/dist/chunk-KRAUMKBG.js.map +1 -0
  41. package/dist/{chunk-J2GERLMU.js → chunk-LYGJVSNM.js} +3 -3
  42. package/dist/{chunk-J2GERLMU.js.map → chunk-LYGJVSNM.js.map} +1 -1
  43. package/dist/{chunk-GN33GLHR.js → chunk-MQ7LZWGP.js} +3 -3
  44. package/dist/{chunk-GN33GLHR.js.map → chunk-MQ7LZWGP.js.map} +1 -1
  45. package/dist/chunk-NA3FJX37.js +89 -0
  46. package/dist/chunk-NA3FJX37.js.map +1 -0
  47. package/dist/{chunk-RG2ZE7DF.js → chunk-PBXJFMES.js} +5 -2
  48. package/dist/chunk-PBXJFMES.js.map +1 -0
  49. package/dist/{chunk-H4FGDXYB.cjs → chunk-RRWAX52L.cjs} +5 -2
  50. package/dist/chunk-RRWAX52L.cjs.map +1 -0
  51. package/dist/{chunk-ALLWAYMB.cjs → chunk-SUZORMAB.cjs} +157 -65
  52. package/dist/chunk-SUZORMAB.cjs.map +1 -0
  53. package/dist/{chunk-XTWUMTCQ.js → chunk-T3USOSVN.js} +2 -2
  54. package/dist/{chunk-XTWUMTCQ.js.map → chunk-T3USOSVN.js.map} +1 -1
  55. package/dist/{chunk-2XMHFQ7M.js → chunk-T4CLW3DN.js} +141 -49
  56. package/dist/chunk-T4CLW3DN.js.map +1 -0
  57. package/dist/{chunk-XTYG5SIL.cjs → chunk-YBIW7T66.cjs} +5 -39
  58. package/dist/chunk-YBIW7T66.cjs.map +1 -0
  59. package/dist/document-tools/index.cjs +174 -69
  60. package/dist/document-tools/index.cjs.map +1 -1
  61. package/dist/document-tools/index.d.cts +99 -6
  62. package/dist/document-tools/index.d.ts +99 -6
  63. package/dist/document-tools/index.js +107 -10
  64. package/dist/document-tools/index.js.map +1 -1
  65. package/dist/index.cjs +911 -802
  66. package/dist/index.cjs.map +1 -1
  67. package/dist/{index.d-Dx9sGkW2.d.cts → index.d-DscWCwr2.d.cts} +15 -1
  68. package/dist/{index.d-Dx9sGkW2.d.ts → index.d-DscWCwr2.d.ts} +15 -1
  69. package/dist/index.d.cts +70 -22
  70. package/dist/index.d.ts +70 -22
  71. package/dist/index.js +122 -15
  72. package/dist/index.js.map +1 -1
  73. package/dist/{model.d-D63gedpb.d.cts → model.d-CNtRWKVK.d.cts} +1 -1
  74. package/dist/{model.d-D63gedpb.d.ts → model.d-CNtRWKVK.d.ts} +1 -1
  75. package/dist/{query-keys.d-ClYiYNBR.d.cts → query-keys.d-DM2N5pzN.d.cts} +3 -0
  76. package/dist/{query-keys.d-ClYiYNBR.d.ts → query-keys.d-DM2N5pzN.d.ts} +3 -0
  77. package/dist/shell/index.cjs +34 -34
  78. package/dist/shell/index.js +3 -3
  79. package/dist/ui/index.cjs +16 -12
  80. package/dist/ui/index.d.cts +1 -1
  81. package/dist/ui/index.d.ts +1 -1
  82. package/dist/ui/index.js +2 -2
  83. package/package.json +3 -3
  84. package/dist/bundle-4TKU5WEQ.js +0 -5
  85. package/dist/bundle-B5AN4B7H.cjs +0 -14
  86. package/dist/chunk-2M4B4FFA.cjs.map +0 -1
  87. package/dist/chunk-2XMHFQ7M.js.map +0 -1
  88. package/dist/chunk-ALLWAYMB.cjs.map +0 -1
  89. package/dist/chunk-D63FAYES.js.map +0 -1
  90. package/dist/chunk-EYOXZHXM.cjs.map +0 -1
  91. package/dist/chunk-H4FGDXYB.cjs.map +0 -1
  92. package/dist/chunk-HUZB36QU.cjs.map +0 -1
  93. package/dist/chunk-RG2ZE7DF.js.map +0 -1
  94. package/dist/chunk-W4H6XAIU.js +0 -39
  95. package/dist/chunk-W4H6XAIU.js.map +0 -1
  96. package/dist/chunk-WE7QWWJ4.js.map +0 -1
  97. package/dist/chunk-XTYG5SIL.cjs.map +0 -1
  98. package/dist/chunk-YWYCEEBF.js.map +0 -1
@@ -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,EAAQ,YAAY,CAAA;AAAA;AAAA,EAEvC,iBAAA,EAAmB,MAAM,CAAC,MAAA,EAAQ,gBAAgB,CAAA;AAAA,EAClD,gBAAgB,CAAC,WAAA,KAAwB,CAAC,MAAA,EAAQ,kBAAkB,WAAW,CAAA;AAAA;AAAA,EAE/E,YAAA,EAAc,MAAM,CAAC,MAAA,EAAQ,WAAW,CAAA;AAAA,EACxC,WAAW,CAAC,WAAA,KAAwB,C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,UAAU,CAAA;AAAA,EAC9C,QAAA,EAAU,CACR,SAAA,EACA,QAAA,EACA,KAAA,EACA,MAAA,KACG,CAAC,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,SAAA,EAAW,QAAA,EAAU,OAAO,MAAM,CAAA;AAAA,EACpE,OAAA,EAAS,CAAC,SAAA,EAA+B,SAAA,KACvC,CAAC,MAAA,EAAQ,MAAA,EAAQ,SAAA,EAAW,SAAA,EAAW,SAAS,CAAA;AAAA;AAAA,EAElD,QAAA,EAAU,MAAM,CAAC,MAAA,EAAQ,QAAQ,UAAU,CAAA;AAAA;AAAA,EAE3C,YAAA,EAAc,CAAC,SAAA,EAA+B,OAAA,KAC5C,CAAC,MAAA,EAAQ,MAAA,EAAQ,eAAA,EAAiB,SAAA,EAAW,OAAO,CAAA;AAAA,EACtD,cAAA,EAAgB,CAAC,SAAA,EAAmB,SAAA,EAAmB,YAAA,KACrD,CAAC,MAAA,EAAQ,MAAA,EAAQ,iBAAA,EAAmB,SAAA,EAAW,SAAA,EAAW,YAAY;AAC1E;AAMO,IAAM,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-RRWAX52L.cjs","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 // ── 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"]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNSSGDZSL_cjs = require('./chunk-NSSGDZSL.cjs');
3
+ var chunk2IJP73ZG_cjs = require('./chunk-2IJP73ZG.cjs');
4
4
  var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
5
5
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
6
6
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
@@ -18,7 +18,7 @@ function reduceLayer(layer, action) {
18
18
  case "replaceAll":
19
19
  return action.layer;
20
20
  case "add": {
21
- const annotation = chunkNSSGDZSL_cjs.parseAnnotation(action.annotation);
21
+ const annotation = chunk2IJP73ZG_cjs.parseAnnotation(action.annotation);
22
22
  if (layer.annotations.some((a) => a.id === annotation.id)) {
23
23
  throw new Error(`annotation ${annotation.id} already exists`);
24
24
  }
@@ -37,7 +37,7 @@ function reduceLayer(layer, action) {
37
37
  case "update": {
38
38
  const found = layer.annotations.find((a) => a.id === action.id);
39
39
  if (!found) return layer;
40
- const next = chunkNSSGDZSL_cjs.parseAnnotation({
40
+ const next = chunk2IJP73ZG_cjs.parseAnnotation({
41
41
  ...found,
42
42
  ...action.patch,
43
43
  id: found.id,
@@ -76,7 +76,7 @@ function reduceLayer(layer, action) {
76
76
  case "reply": {
77
77
  const found = layer.annotations.find((a) => a.id === action.id);
78
78
  if (!found || found.kind !== "comment") return layer;
79
- const next = chunkNSSGDZSL_cjs.parseAnnotation({
79
+ const next = chunk2IJP73ZG_cjs.parseAnnotation({
80
80
  ...found,
81
81
  replies: [...found.replies, action.reply],
82
82
  updatedAt: action.now
@@ -146,10 +146,10 @@ function createMemoryStore(now = () => (/* @__PURE__ */ new Date()).toISOString(
146
146
  return {
147
147
  async load(documentId) {
148
148
  const raw = layers.get(documentId);
149
- return raw ? chunkNSSGDZSL_cjs.parseLayer(JSON.parse(raw)) : chunkNSSGDZSL_cjs.emptyLayer(documentId, now());
149
+ return raw ? chunk2IJP73ZG_cjs.parseLayer(JSON.parse(raw)) : chunk2IJP73ZG_cjs.emptyLayer(documentId, now());
150
150
  },
151
151
  async save(layer) {
152
- layers.set(layer.documentId, JSON.stringify(chunkNSSGDZSL_cjs.parseLayer(layer)));
152
+ layers.set(layer.documentId, JSON.stringify(chunk2IJP73ZG_cjs.parseLayer(layer)));
153
153
  }
154
154
  };
155
155
  }
@@ -159,14 +159,14 @@ function createLocalStorageStore(storage = safeLocalStorage(), now = () => (/* @
159
159
  async load(documentId) {
160
160
  try {
161
161
  const raw = storage?.getItem(STORAGE_PREFIX + documentId);
162
- if (raw) return chunkNSSGDZSL_cjs.parseLayer(JSON.parse(raw));
162
+ if (raw) return chunk2IJP73ZG_cjs.parseLayer(JSON.parse(raw));
163
163
  } catch {
164
164
  }
165
- return chunkNSSGDZSL_cjs.emptyLayer(documentId, now());
165
+ return chunk2IJP73ZG_cjs.emptyLayer(documentId, now());
166
166
  },
167
167
  async save(layer) {
168
168
  if (!storage) throw new Error("storage is not available");
169
- storage.setItem(STORAGE_PREFIX + layer.documentId, JSON.stringify(chunkNSSGDZSL_cjs.parseLayer(layer)));
169
+ storage.setItem(STORAGE_PREFIX + layer.documentId, JSON.stringify(chunk2IJP73ZG_cjs.parseLayer(layer)));
170
170
  }
171
171
  };
172
172
  }
@@ -269,7 +269,7 @@ function toNorm(r, page) {
269
269
  const cy1 = Math.min(Math.max(y1, 0), page.height);
270
270
  const cx2 = Math.min(Math.max(x2, 0), page.width);
271
271
  const cy2 = Math.min(Math.max(y2, 0), page.height);
272
- return chunkNSSGDZSL_cjs.clampRect({
272
+ return chunk2IJP73ZG_cjs.clampRect({
273
273
  x: cx1 / page.width,
274
274
  y: cy1 / page.height,
275
275
  w: (cx2 - cx1) / page.width,
@@ -334,14 +334,22 @@ var DRAW_TOOLS = ["box", "comment", "stamp", "redact-area"];
334
334
  var TEXT_TOOLS = ["highlight", "redact-text"];
335
335
  var DEFAULT_SETTINGS = {
336
336
  colors: { highlight: "#ffe066", box: "#e03131", stamp: "#c92a2a" },
337
- stampLabel: "CONFIDENTIAL",
337
+ stampLabel: "[REDACTED]",
338
338
  stampImage: null,
339
339
  redactionReason: "Privileged",
340
340
  strokeWidth: 2
341
341
  };
342
342
  var HIGHLIGHT_COLORS = ["#ffe066", "#8ce99a", "#74c0fc", "#ffa8a8", "#eebefa"];
343
343
  var MARK_COLORS = ["#e03131", "#1c7ed6", "#2f9e44", "#f08c00", "#000000"];
344
- var STAMP_PRESETS = ["CONFIDENTIAL", "DRAFT", "APPROVED", "FILED", "PRIVILEGED", "COPY"];
344
+ var STAMP_PRESETS = [
345
+ "[REDACTED]",
346
+ "CONFIDENTIAL",
347
+ "DRAFT",
348
+ "APPROVED",
349
+ "FILED",
350
+ "PRIVILEGED",
351
+ "COPY"
352
+ ];
345
353
  var REDACTION_REASONS = [
346
354
  "Privileged",
347
355
  "Confidential",
@@ -384,7 +392,7 @@ function useAnnotationLayer({
384
392
  makeId = defaultId
385
393
  }) {
386
394
  const [history, setHistory] = react.useState(
387
- () => createHistory(chunkNSSGDZSL_cjs.emptyLayer(documentId, now()))
395
+ () => createHistory(chunk2IJP73ZG_cjs.emptyLayer(documentId, now()))
388
396
  );
389
397
  const [savedLayer, setSavedLayer] = react.useState(null);
390
398
  const [status, setStatus] = react.useState("loading");
@@ -435,7 +443,7 @@ function useAnnotationLayer({
435
443
  setSavedLayer(null);
436
444
  setStoreReadOnly(false);
437
445
  savedRef.current = null;
438
- commit(createHistory(chunkNSSGDZSL_cjs.emptyLayer(documentId, nowRef.current())));
446
+ commit(createHistory(chunk2IJP73ZG_cjs.emptyLayer(documentId, nowRef.current())));
439
447
  storeRef.current.load(documentId).then((layer) => {
440
448
  if (cancelled) return;
441
449
  savedRef.current = layer;
@@ -879,7 +887,7 @@ function dragRect(origin, mode, dx, dy) {
879
887
  const x2 = Math.min(Math.max(Math.max(left2, right), 0), 1);
880
888
  const y1 = Math.min(Math.max(Math.min(top2, bottom), 0), 1);
881
889
  const y2 = Math.min(Math.max(Math.max(top2, bottom), 0), 1);
882
- return chunkNSSGDZSL_cjs.clampRect({
890
+ return chunk2IJP73ZG_cjs.clampRect({
883
891
  x: x1,
884
892
  y: y1,
885
893
  w: Math.max(x2 - x1, MIN_MARK),
@@ -996,7 +1004,7 @@ function AnnotationPageOverlay({
996
1004
  const id = controller.add({
997
1005
  kind: "stamp",
998
1006
  page: pageNumber,
999
- rect: chunkNSSGDZSL_cjs.clampRect({ x: a.x / page.width - w / 2, y: a.y / page.height - h / 2, w, h }),
1007
+ rect: chunk2IJP73ZG_cjs.clampRect({ x: a.x / page.width - w / 2, y: a.y / page.height - h / 2, w, h }),
1000
1008
  label,
1001
1009
  color: "#0d1a59",
1002
1010
  image
@@ -1005,7 +1013,7 @@ function AnnotationPageOverlay({
1005
1013
  controller.setTool("select");
1006
1014
  if (id) controller.select(id);
1007
1015
  } else if (tool === "stamp") {
1008
- const placed = isTooSmall(rect) ? chunkNSSGDZSL_cjs.clampRect({
1016
+ const placed = isTooSmall(rect) ? chunk2IJP73ZG_cjs.clampRect({
1009
1017
  x: a.x / page.width - DEFAULT_STAMP.w / 2,
1010
1018
  y: a.y / page.height - DEFAULT_STAMP.h / 2,
1011
1019
  ...DEFAULT_STAMP
@@ -1018,7 +1026,7 @@ function AnnotationPageOverlay({
1018
1026
  color: settings.colors.stamp
1019
1027
  });
1020
1028
  } else if (tool === "comment") {
1021
- const anchor = chunkNSSGDZSL_cjs.clampRect({
1029
+ const anchor = chunk2IJP73ZG_cjs.clampRect({
1022
1030
  x: a.x / page.width,
1023
1031
  y: a.y / page.height,
1024
1032
  w: COMMENT_ICON_PX / page.width,
@@ -1336,7 +1344,7 @@ function RedactionView({
1336
1344
  const rects = rectOverride ? [rectOverride] : a.rects;
1337
1345
  const approved = a.status === "approved";
1338
1346
  const rejected = a.status === "rejected";
1339
- const label = `Redaction (${a.status}): ${a.reason}`;
1347
+ const label = `Redaction (${a.status}, not applied): ${a.reason}`;
1340
1348
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: rects.map((r, i) => /* @__PURE__ */ jsxRuntime.jsx(
1341
1349
  "div",
1342
1350
  {
@@ -1358,7 +1366,7 @@ function RedactionView({
1358
1366
  color: "#c92a2a"
1359
1367
  }
1360
1368
  },
1361
- children: i === 0 && !rejected && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate px-1", children: a.reason })
1369
+ children: i === 0 && !rejected && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate px-1", children: "[REDACTED]" })
1362
1370
  },
1363
1371
  i
1364
1372
  )) });
@@ -1776,9 +1784,13 @@ function AnnotationToolbar({
1776
1784
  }) {
1777
1785
  useTextSelectionMarks(controller);
1778
1786
  useAnnotationShortcuts(controller);
1787
+ const [reviewing, setReviewing] = react.useState(false);
1779
1788
  const { tool, settings } = controller;
1780
1789
  const pending = pendingRedactions(controller.layer);
1781
- const redactionCount = controller.layer.annotations.filter((a) => a.kind === "redaction").length;
1790
+ const redactions = controller.layer.annotations.filter((a) => a.kind === "redaction");
1791
+ const redactionCount = redactions.length;
1792
+ const approved = redactions.filter((a) => a.status === "approved").length;
1793
+ const rejected = redactions.filter((a) => a.status === "rejected").length;
1782
1794
  const colored = tool === "highlight" || tool === "box" || tool === "stamp";
1783
1795
  const redacting = tool === "redact-text" || tool === "redact-area";
1784
1796
  const status = layerStatusText(controller);
@@ -1799,7 +1811,11 @@ function AnnotationToolbar({
1799
1811
  redactionCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-sm", "data-testid": "annotation-review", children: [
1800
1812
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "rounded-md bg-muted px-2 py-1", "data-testid": "annotation-pending-count", children: [
1801
1813
  pending.length,
1802
- " pending"
1814
+ " pending \xB7 ",
1815
+ approved,
1816
+ " approved, not applied \xB7 ",
1817
+ rejected,
1818
+ " rejected"
1803
1819
  ] }),
1804
1820
  editable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1805
1821
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1911,7 +1927,7 @@ function AnnotationToolbar({
1911
1927
  editable && tool === "stamp" && settings.stampImage && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-muted-foreground", "data-testid": "annotation-place-signature", children: [
1912
1928
  "Click where your ",
1913
1929
  settings.stampImage.label.toLowerCase(),
1914
- " goes. Informal signature: for verified signing, use Request signatures."
1930
+ " goes."
1915
1931
  ] }),
1916
1932
  editable && tool === "stamp" && !settings.stampImage && /* @__PURE__ */ jsxRuntime.jsx(
1917
1933
  PresetField,
@@ -1925,12 +1941,98 @@ function AnnotationToolbar({
1925
1941
  onChange: (stampLabel) => controller.setSettings({ stampLabel })
1926
1942
  }
1927
1943
  ),
1928
- (redacting || redactionCount > 0) && /* @__PURE__ */ jsxRuntime.jsx(
1944
+ (redacting || redactionCount > 0) && /* @__PURE__ */ jsxRuntime.jsxs(
1929
1945
  "div",
1930
1946
  {
1931
1947
  className: "flex w-full flex-wrap items-center gap-x-3 gap-y-2",
1932
1948
  "data-testid": "annotation-redaction-row",
1933
- children: redactionControls
1949
+ children: [
1950
+ redactionControls,
1951
+ redactionCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1952
+ /* @__PURE__ */ jsxRuntime.jsx(
1953
+ chunkWYZJLZ67_cjs.Button,
1954
+ {
1955
+ type: "button",
1956
+ size: "sm",
1957
+ variant: "outline",
1958
+ onClick: () => setReviewing((on) => !on),
1959
+ "aria-expanded": reviewing,
1960
+ "data-testid": "annotation-review-toggle",
1961
+ children: "Review redactions"
1962
+ }
1963
+ ),
1964
+ /* @__PURE__ */ jsxRuntime.jsx(
1965
+ "p",
1966
+ {
1967
+ className: "w-full text-xs text-amber-700 dark:text-amber-400",
1968
+ role: "status",
1969
+ "data-testid": "annotation-preview-warning",
1970
+ children: "Preview only: black boxes, including approved ones, have not removed the underlying content. Apply approved redactions to create a redacted copy."
1971
+ }
1972
+ )
1973
+ ] })
1974
+ ]
1975
+ }
1976
+ ),
1977
+ reviewing && redactionCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
1978
+ "div",
1979
+ {
1980
+ className: "max-h-64 w-full overflow-auto rounded border",
1981
+ "data-testid": "annotation-redaction-review-list",
1982
+ children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full text-left text-sm", children: [
1983
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
1984
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "p-2", children: "Page" }),
1985
+ /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Reason" }),
1986
+ /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Review status" }),
1987
+ /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Decision" })
1988
+ ] }) }),
1989
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: redactions.map((a) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "border-t", "data-testid": `redaction-review-${a.id}`, children: [
1990
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "p-2", children: /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: () => controller.select(a.id), children: [
1991
+ "Page ",
1992
+ a.page
1993
+ ] }) }),
1994
+ /* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(
1995
+ "input",
1996
+ {
1997
+ "aria-label": `Reason for redaction ${a.id}`,
1998
+ value: a.reason,
1999
+ disabled: !editable,
2000
+ className: "rounded border bg-background px-2 py-1",
2001
+ onChange: (e) => controller.update(a.id, {
2002
+ reason: e.target.value,
2003
+ status: "pending",
2004
+ reviewedBy: void 0,
2005
+ reviewedAt: void 0
2006
+ })
2007
+ }
2008
+ ) }),
2009
+ /* @__PURE__ */ jsxRuntime.jsx("td", { children: a.status === "approved" ? "Approved \xB7 not applied" : a.status }),
2010
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "flex gap-1 p-2", children: editable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2011
+ /* @__PURE__ */ jsxRuntime.jsx(
2012
+ chunkWYZJLZ67_cjs.Button,
2013
+ {
2014
+ type: "button",
2015
+ size: "sm",
2016
+ variant: "outline",
2017
+ disabled: a.status === "approved",
2018
+ onClick: () => controller.setRedactionStatus([a.id], "approved"),
2019
+ children: "Approve"
2020
+ }
2021
+ ),
2022
+ /* @__PURE__ */ jsxRuntime.jsx(
2023
+ chunkWYZJLZ67_cjs.Button,
2024
+ {
2025
+ type: "button",
2026
+ size: "sm",
2027
+ variant: "outline",
2028
+ disabled: a.status === "rejected",
2029
+ onClick: () => controller.setRedactionStatus([a.id], "rejected"),
2030
+ children: "Reject"
2031
+ }
2032
+ )
2033
+ ] }) })
2034
+ ] }, a.id)) })
2035
+ ] })
1934
2036
  }
1935
2037
  ),
1936
2038
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-end gap-3 text-xs text-muted-foreground", children: [
@@ -1946,10 +2048,21 @@ function AnnotationToolbar({
1946
2048
  }
1947
2049
  ),
1948
2050
  actions,
1949
- onFreeze && /* @__PURE__ */ jsxRuntime.jsxs(chunkWYZJLZ67_cjs.Button, { type: "button", size: "sm", "data-testid": "annotation-freeze", onClick: onFreeze, children: [
1950
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Snowflake, { size: 14 }),
1951
- "Freeze copy"
1952
- ] })
2051
+ onFreeze && /* @__PURE__ */ jsxRuntime.jsxs(
2052
+ chunkWYZJLZ67_cjs.Button,
2053
+ {
2054
+ type: "button",
2055
+ size: "sm",
2056
+ "data-testid": "annotation-freeze",
2057
+ onClick: onFreeze,
2058
+ disabled: pending.length > 0,
2059
+ title: pending.length ? "Approve or reject each proposed redaction first" : void 0,
2060
+ children: [
2061
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.EyeOff, { size: 14 }),
2062
+ redactionCount ? "Apply approved redactions" : "Create annotated copy"
2063
+ ]
2064
+ }
2065
+ )
1953
2066
  ] })
1954
2067
  ]
1955
2068
  }
@@ -1973,25 +2086,24 @@ function FreezeDialog({
1973
2086
  }) {
1974
2087
  const [mode, setMode] = react.useState("vector");
1975
2088
  const [comments, setComments] = react.useState("omit");
1976
- const [burnPending, setBurnPending] = react.useState(false);
1977
2089
  const [redactionLog, setRedactionLog] = react.useState(true);
1978
2090
  const marks = controller.layer.annotations;
1979
- const redactions = marks.filter(chunkNSSGDZSL_cjs.isEffectiveRedaction);
2091
+ const redactions = marks.filter(chunk2IJP73ZG_cjs.isEffectiveRedaction);
1980
2092
  const pending = pendingRedactions(controller.layer);
1981
2093
  const hasRedactionMarks = marks.some((a) => a.kind === "redaction");
1982
2094
  const forced = redactions.length > 0;
1983
2095
  const effectiveMode = forced ? "image" : mode;
1984
- const blocked = pending.length > 0 && !burnPending;
2096
+ const blocked = pending.length > 0;
1985
2097
  const counts = Object.keys(KIND_LABELS).map(
1986
2098
  (k) => [
1987
2099
  k,
1988
- marks.filter((a) => a.kind === k && (k !== "redaction" || chunkNSSGDZSL_cjs.isEffectiveRedaction(a))).length
2100
+ marks.filter((a) => a.kind === k && (k !== "redaction" || chunk2IJP73ZG_cjs.isEffectiveRedaction(a))).length
1989
2101
  ]
1990
2102
  ).filter(([, n]) => n > 0);
1991
2103
  return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZJLZ67_cjs.Dialog, { open, onOpenChange: (next) => !busy && onOpenChange(next), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkWYZJLZ67_cjs.DialogContent, { "data-testid": "freeze-dialog", children: [
1992
2104
  /* @__PURE__ */ jsxRuntime.jsxs(chunkWYZJLZ67_cjs.DialogHeader, { children: [
1993
- /* @__PURE__ */ jsxRuntime.jsx(chunkWYZJLZ67_cjs.DialogTitle, { children: "Freeze a copy" }),
1994
- /* @__PURE__ */ jsxRuntime.jsx(chunkWYZJLZ67_cjs.DialogDescription, { children: "Saves a separate document with your annotations built in, next to the original. The original stays as it is." })
2105
+ /* @__PURE__ */ jsxRuntime.jsx(chunkWYZJLZ67_cjs.DialogTitle, { children: hasRedactionMarks ? "Apply approved redactions" : "Create annotated copy" }),
2106
+ /* @__PURE__ */ jsxRuntime.jsx(chunkWYZJLZ67_cjs.DialogDescription, { children: "Approval records your review decision. Applying permanently removes the covered content from a new redacted copy. The original remains in your files." })
1995
2107
  ] }),
1996
2108
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": "freeze-summary", children: counts.length === 0 ? "No annotations yet." : counts.map(([k, n]) => `${n} ${KIND_LABELS[k]}`).join(", ") }),
1997
2109
  /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "space-y-2 text-sm", disabled: busy, children: [
@@ -2050,32 +2162,12 @@ function FreezeDialog({
2050
2162
  )
2051
2163
  ] }),
2052
2164
  forced && comments !== "omit" && marks.some((a) => a.kind === "comment") && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-destructive", "data-testid": "freeze-comment-warning", children: "Comments are copied as written and may repeat text you have redacted." }),
2053
- pending.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
2054
- "label",
2055
- {
2056
- className: "flex items-start gap-2 rounded-md border border-border p-2 text-sm",
2057
- "data-testid": "freeze-pending",
2058
- children: [
2059
- /* @__PURE__ */ jsxRuntime.jsx(
2060
- "input",
2061
- {
2062
- type: "checkbox",
2063
- "data-testid": "freeze-burn-pending",
2064
- checked: burnPending,
2065
- disabled: busy,
2066
- onChange: (e) => setBurnPending(e.target.checked)
2067
- }
2068
- ),
2069
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
2070
- pending.length,
2071
- " redaction",
2072
- pending.length === 1 ? " has" : "s have",
2073
- " not been reviewed",
2074
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-xs text-muted-foreground", children: "Tick to redact them as well, or approve or reject them first." })
2075
- ] })
2076
- ]
2077
- }
2078
- ),
2165
+ pending.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "rounded border p-2 text-sm", "data-testid": "freeze-pending", children: [
2166
+ pending.length,
2167
+ " redaction",
2168
+ pending.length === 1 ? " has" : "s have",
2169
+ " not been reviewed. Approve or reject each one before applying redactions."
2170
+ ] }),
2079
2171
  hasRedactionMarks && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex items-start gap-2 text-sm", children: [
2080
2172
  /* @__PURE__ */ jsxRuntime.jsx(
2081
2173
  "input",
@@ -2120,10 +2212,10 @@ function FreezeDialog({
2120
2212
  onClick: () => onConfirm({
2121
2213
  mode: effectiveMode,
2122
2214
  comments,
2123
- pendingRedactions: burnPending ? "burn" : "error",
2215
+ pendingRedactions: "error",
2124
2216
  redactionLog: hasRedactionMarks && redactionLog
2125
2217
  }),
2126
- children: busy ? "Freezing\u2026" : "Freeze"
2218
+ children: busy ? "Creating copy\u2026" : hasRedactionMarks ? "Apply redactions and create copy" : "Create annotated copy"
2127
2219
  }
2128
2220
  )
2129
2221
  ] })
@@ -2511,5 +2603,5 @@ exports.undo = undo;
2511
2603
  exports.useAnnotationLayer = useAnnotationLayer;
2512
2604
  exports.useAnnotationShortcuts = useAnnotationShortcuts;
2513
2605
  exports.useTextSelectionMarks = useTextSelectionMarks;
2514
- //# sourceMappingURL=chunk-ALLWAYMB.cjs.map
2515
- //# sourceMappingURL=chunk-ALLWAYMB.cjs.map
2606
+ //# sourceMappingURL=chunk-SUZORMAB.cjs.map
2607
+ //# sourceMappingURL=chunk-SUZORMAB.cjs.map