@arbidocs/blocks 0.4.146 → 0.4.150

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 (357) hide show
  1. package/dist/ConnectedNativeDocxComparison-3XQSINPQ.cjs +44 -0
  2. package/dist/ConnectedNativeDocxComparison-3XQSINPQ.cjs.map +1 -0
  3. package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js +35 -0
  4. package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js.map +1 -0
  5. package/dist/ConnectedNativeDocxEditor-IPEZDERL.js +33 -0
  6. package/dist/ConnectedNativeDocxEditor-IPEZDERL.js.map +1 -0
  7. package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs +46 -0
  8. package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs.map +1 -0
  9. package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs +44 -0
  10. package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs.map +1 -0
  11. package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js +35 -0
  12. package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js.map +1 -0
  13. package/dist/FactTextEditor-YESAU2IJ.js +25 -0
  14. package/dist/FactTextEditor-YESAU2IJ.js.map +1 -0
  15. package/dist/FactTextEditor-YUPBCTXK.cjs +27 -0
  16. package/dist/FactTextEditor-YUPBCTXK.cjs.map +1 -0
  17. package/dist/{NativeDocxEditor-BE2OEOTJ.cjs → NativeDocxEditor-5VBNM5I7.cjs} +8 -8
  18. package/dist/{NativeDocxEditor-BE2OEOTJ.cjs.map → NativeDocxEditor-5VBNM5I7.cjs.map} +1 -1
  19. package/dist/{NativeDocxEditor-KOPFMRYW.js → NativeDocxEditor-XT5ZLFGU.js} +4 -4
  20. package/dist/{NativeDocxEditor-KOPFMRYW.js.map → NativeDocxEditor-XT5ZLFGU.js.map} +1 -1
  21. package/dist/agents/index.cjs +265 -266
  22. package/dist/agents/index.js +8 -9
  23. package/dist/calendar/index.cjs +117 -125
  24. package/dist/calendar/index.d.ts +0 -1
  25. package/dist/calendar/index.js +1 -1
  26. package/dist/calls/index.cjs +3 -3
  27. package/dist/calls/index.js +2 -2
  28. package/dist/chat/index.cjs +78 -78
  29. package/dist/chat/index.js +3 -3
  30. package/dist/{chunk-2FL7QJKJ.js → chunk-265GOG4W.js} +3 -3
  31. package/dist/{chunk-2FL7QJKJ.js.map → chunk-265GOG4W.js.map} +1 -1
  32. package/dist/{chunk-IJST4EBM.js → chunk-3E2F4AHD.js} +8 -8
  33. package/dist/{chunk-IJST4EBM.js.map → chunk-3E2F4AHD.js.map} +1 -1
  34. package/dist/chunk-3FSXWVHW.cjs +5184 -0
  35. package/dist/chunk-3FSXWVHW.cjs.map +1 -0
  36. package/dist/{chunk-LPYEUD2D.cjs → chunk-4JNKXOFZ.cjs} +3 -3
  37. package/dist/{chunk-LPYEUD2D.cjs.map → chunk-4JNKXOFZ.cjs.map} +1 -1
  38. package/dist/{chunk-ODRHHWHY.cjs → chunk-4KMLM3GY.cjs} +4 -4
  39. package/dist/chunk-4KMLM3GY.cjs.map +1 -0
  40. package/dist/{chunk-MHFF5N65.cjs → chunk-757OYF6G.cjs} +4 -38
  41. package/dist/chunk-757OYF6G.cjs.map +1 -0
  42. package/dist/chunk-AXTDDWMR.js +16 -0
  43. package/dist/chunk-AXTDDWMR.js.map +1 -0
  44. package/dist/{chunk-B3AHCIV5.js → chunk-BJ24VPOA.js} +4 -55
  45. package/dist/chunk-BJ24VPOA.js.map +1 -0
  46. package/dist/chunk-C7PTF6BQ.cjs +172 -0
  47. package/dist/chunk-C7PTF6BQ.cjs.map +1 -0
  48. package/dist/{chunk-T5B7FM7S.js → chunk-COA3S3CZ.js} +3 -3
  49. package/dist/{chunk-T5B7FM7S.js.map → chunk-COA3S3CZ.js.map} +1 -1
  50. package/dist/{chunk-C44TDH54.js → chunk-CQPFW64W.js} +5 -5
  51. package/dist/{chunk-C44TDH54.js.map → chunk-CQPFW64W.js.map} +1 -1
  52. package/dist/chunk-D3WFIFRY.cjs +659 -0
  53. package/dist/chunk-D3WFIFRY.cjs.map +1 -0
  54. package/dist/{chunk-QXMR5YHC.js → chunk-DIB4JYUY.js} +19 -3
  55. package/dist/chunk-DIB4JYUY.js.map +1 -0
  56. package/dist/chunk-DVB5ZKOF.js +22 -0
  57. package/dist/chunk-DVB5ZKOF.js.map +1 -0
  58. package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
  59. package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
  60. package/dist/chunk-EDV7CYG6.cjs +18 -0
  61. package/dist/chunk-EDV7CYG6.cjs.map +1 -0
  62. package/dist/chunk-FAXXN7KI.cjs +213 -0
  63. package/dist/chunk-FAXXN7KI.cjs.map +1 -0
  64. package/dist/{chunk-2MJWWPHY.js → chunk-G4IYES7G.js} +140 -15
  65. package/dist/chunk-G4IYES7G.js.map +1 -0
  66. package/dist/{chunk-MFMASSEO.cjs → chunk-GGTUMLCT.cjs} +93 -91
  67. package/dist/chunk-GGTUMLCT.cjs.map +1 -0
  68. package/dist/{chunk-QI6AIHWP.cjs → chunk-GOWXP5KT.cjs} +145 -14
  69. package/dist/chunk-GOWXP5KT.cjs.map +1 -0
  70. package/dist/{chunk-O6IEZDRC.cjs → chunk-GRGS5M6O.cjs} +181 -3
  71. package/dist/chunk-GRGS5M6O.cjs.map +1 -0
  72. package/dist/{chunk-A6IU4GIW.js → chunk-HGLC566X.js} +598 -13
  73. package/dist/chunk-HGLC566X.js.map +1 -0
  74. package/dist/{chunk-O2GW5IY6.cjs → chunk-ILM42LE6.cjs} +33 -33
  75. package/dist/{chunk-O2GW5IY6.cjs.map → chunk-ILM42LE6.cjs.map} +1 -1
  76. package/dist/{chunk-C3CGJK7A.cjs → chunk-IPQ5MJ4Z.cjs} +636 -31
  77. package/dist/chunk-IPQ5MJ4Z.cjs.map +1 -0
  78. package/dist/{chunk-NRFAWUVD.js → chunk-JAANWQGB.js} +157 -157
  79. package/dist/chunk-JAANWQGB.js.map +1 -0
  80. package/dist/{chunk-7RJTEWYM.js → chunk-JGOST4IL.js} +350 -64
  81. package/dist/chunk-JGOST4IL.js.map +1 -0
  82. package/dist/chunk-KHXEIEXN.js +41 -0
  83. package/dist/chunk-KHXEIEXN.js.map +1 -0
  84. package/dist/chunk-KLPRAQCE.cjs +22 -0
  85. package/dist/chunk-KLPRAQCE.cjs.map +1 -0
  86. package/dist/chunk-KQYPP72K.js +644 -0
  87. package/dist/chunk-KQYPP72K.js.map +1 -0
  88. package/dist/chunk-KUT2Y7JF.cjs +43 -0
  89. package/dist/chunk-KUT2Y7JF.cjs.map +1 -0
  90. package/dist/{chunk-6YTHQ73P.cjs → chunk-LLYZGH3L.cjs} +3 -56
  91. package/dist/chunk-LLYZGH3L.cjs.map +1 -0
  92. package/dist/{chunk-YSHIC4NJ.cjs → chunk-LXTOOUEN.cjs} +159 -154
  93. package/dist/chunk-LXTOOUEN.cjs.map +1 -0
  94. package/dist/{chunk-EVUEIBNU.js → chunk-M4S75AEJ.js} +44 -5
  95. package/dist/chunk-M4S75AEJ.js.map +1 -0
  96. package/dist/{chunk-V5OAXIBN.cjs → chunk-NPR5BGFF.cjs} +11 -11
  97. package/dist/{chunk-V5OAXIBN.cjs.map → chunk-NPR5BGFF.cjs.map} +1 -1
  98. package/dist/{chunk-PLJ7PHWU.cjs → chunk-NS7NVX4E.cjs} +3 -3
  99. package/dist/{chunk-PLJ7PHWU.cjs.map → chunk-NS7NVX4E.cjs.map} +1 -1
  100. package/dist/{chunk-RB7GX2VT.cjs → chunk-NWNAYXC7.cjs} +9 -9
  101. package/dist/{chunk-RB7GX2VT.cjs.map → chunk-NWNAYXC7.cjs.map} +1 -1
  102. package/dist/chunk-Q6N6MZKO.js +5004 -0
  103. package/dist/chunk-Q6N6MZKO.js.map +1 -0
  104. package/dist/{chunk-I2QSDQQV.cjs → chunk-QT3A4PFC.cjs} +21 -2
  105. package/dist/chunk-QT3A4PFC.cjs.map +1 -0
  106. package/dist/{chunk-6HCJ3ZEU.js → chunk-R6VCPDPF.js} +178 -6
  107. package/dist/chunk-R6VCPDPF.js.map +1 -0
  108. package/dist/{chunk-ZM26YEOT.js → chunk-RY2SODRN.js} +3 -3
  109. package/dist/{chunk-ZM26YEOT.js.map → chunk-RY2SODRN.js.map} +1 -1
  110. package/dist/chunk-SDOEHEJP.js +208 -0
  111. package/dist/chunk-SDOEHEJP.js.map +1 -0
  112. package/dist/{chunk-DETZZBG2.cjs → chunk-SIB6C7P7.cjs} +43 -2
  113. package/dist/chunk-SIB6C7P7.cjs.map +1 -0
  114. package/dist/{chunk-OPTBQSCV.cjs → chunk-SMN32BQ3.cjs} +4 -183
  115. package/dist/chunk-SMN32BQ3.cjs.map +1 -0
  116. package/dist/chunk-TAWPVD6C.cjs +1956 -0
  117. package/dist/chunk-TAWPVD6C.cjs.map +1 -0
  118. package/dist/chunk-TC25LGIM.js +6584 -0
  119. package/dist/chunk-TC25LGIM.js.map +1 -0
  120. package/dist/{chunk-OBWYM25Y.js → chunk-TL45OJQE.js} +85 -83
  121. package/dist/chunk-TL45OJQE.js.map +1 -0
  122. package/dist/{chunk-AOSUHWIL.js → chunk-TZOQKV64.js} +4 -37
  123. package/dist/chunk-TZOQKV64.js.map +1 -0
  124. package/dist/chunk-UTVY63DG.js +16 -0
  125. package/dist/chunk-UTVY63DG.js.map +1 -0
  126. package/dist/chunk-V4YZXGXR.cjs +6751 -0
  127. package/dist/chunk-V4YZXGXR.cjs.map +1 -0
  128. package/dist/chunk-XRWHFMHK.js +19 -0
  129. package/dist/chunk-XRWHFMHK.js.map +1 -0
  130. package/dist/{chunk-O4YPVYPO.cjs → chunk-YAEXSCUW.cjs} +364 -60
  131. package/dist/chunk-YAEXSCUW.cjs.map +1 -0
  132. package/dist/chunk-YIFCLNII.cjs +18 -0
  133. package/dist/chunk-YIFCLNII.cjs.map +1 -0
  134. package/dist/chunk-Z27QMJ6S.cjs +25 -0
  135. package/dist/chunk-Z27QMJ6S.cjs.map +1 -0
  136. package/dist/{chunk-CSI2B2H5.js → chunk-Z4NQ3TED.js} +4 -4
  137. package/dist/chunk-Z4NQ3TED.js.map +1 -0
  138. package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
  139. package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
  140. package/dist/{chunk-FUTMU4FR.js → chunk-ZLEYLCE4.js} +8 -181
  141. package/dist/chunk-ZLEYLCE4.js.map +1 -0
  142. package/dist/chunk-ZNLTEZEF.js +170 -0
  143. package/dist/chunk-ZNLTEZEF.js.map +1 -0
  144. package/dist/chunk-ZO7PJMCO.js +1907 -0
  145. package/dist/chunk-ZO7PJMCO.js.map +1 -0
  146. package/dist/citations/index.cjs +14 -14
  147. package/dist/citations/index.js +2 -2
  148. package/dist/collaboration/index.cjs +74 -74
  149. package/dist/collaboration/index.js +3 -3
  150. package/dist/connect/docx.cjs +23 -28
  151. package/dist/connect/docx.cjs.map +1 -1
  152. package/dist/connect/docx.js +12 -28
  153. package/dist/connect/docx.js.map +1 -1
  154. package/dist/connect/index.cjs +8799 -2057
  155. package/dist/connect/index.cjs.map +1 -1
  156. package/dist/connect/index.d.ts +11 -2
  157. package/dist/connect/index.js +8578 -1884
  158. package/dist/connect/index.js.map +1 -1
  159. package/dist/connect/viewer.cjs +1229 -0
  160. package/dist/connect/viewer.cjs.map +1 -0
  161. package/dist/connect/viewer.d.ts +8 -0
  162. package/dist/connect/viewer.js +1226 -0
  163. package/dist/connect/viewer.js.map +1 -0
  164. package/dist/connection/ConnectedWorkflowsTable.d.ts +2 -12
  165. package/dist/connection/ai.d.ts +2 -9
  166. package/dist/connection/billing/AddAddonDialog.d.ts +24 -0
  167. package/dist/connection/billing/BillingCard.d.ts +18 -0
  168. package/dist/connection/billing/BillingProjectEntity.d.ts +9 -0
  169. package/dist/connection/billing/ChangePlanDialog.d.ts +20 -0
  170. package/dist/connection/billing/ChangeProPlan.d.ts +20 -0
  171. package/dist/connection/billing/CheckoutTotal.d.ts +12 -0
  172. package/dist/connection/billing/DailyCapEditor.d.ts +4 -0
  173. package/dist/connection/billing/InvoicesModal.d.ts +6 -0
  174. package/dist/connection/billing/NewProjectFlow.d.ts +14 -0
  175. package/dist/connection/billing/PlanChangeLines.d.ts +13 -0
  176. package/dist/connection/billing/PlanSelector.d.ts +50 -0
  177. package/dist/connection/billing/ProjectBilling.d.ts +24 -0
  178. package/dist/connection/billing/ProjectDetail.d.ts +16 -0
  179. package/dist/connection/billing/ProjectUsageCard.d.ts +21 -0
  180. package/dist/connection/billing/ProjectUsageContent.d.ts +18 -0
  181. package/dist/connection/billing/ProjectsTable.d.ts +13 -0
  182. package/dist/connection/billing/ReduceAddonDialog.d.ts +18 -0
  183. package/dist/connection/billing/ReferralReward.d.ts +32 -0
  184. package/dist/connection/billing/SharedProjects.d.ts +13 -0
  185. package/dist/connection/billing/StripeCheckoutModal.d.ts +32 -0
  186. package/dist/connection/billing/SubscriptionPlans.d.ts +15 -0
  187. package/dist/connection/billing/SubscriptionStatus.d.ts +10 -0
  188. package/dist/connection/billing/addon-pricing.d.ts +97 -0
  189. package/dist/connection/billing/api-error.d.ts +6 -0
  190. package/dist/connection/billing/billing-country.d.ts +14 -0
  191. package/dist/connection/billing/billing-focus.d.ts +11 -0
  192. package/dist/connection/billing/index.d.ts +22 -0
  193. package/dist/connection/billing/plan-badge.d.ts +15 -0
  194. package/dist/connection/billing/plan-change-outcome.d.ts +15 -0
  195. package/dist/connection/billing/plan-constants.d.ts +29 -0
  196. package/dist/connection/billing/plan-pricing.d.ts +67 -0
  197. package/dist/connection/billing/quota-items.d.ts +33 -0
  198. package/dist/connection/billing/referral-reward.d.ts +28 -0
  199. package/dist/connection/billing/refusal-copy.d.ts +5 -0
  200. package/dist/connection/billing/reward-balance.d.ts +19 -0
  201. package/dist/connection/billing/support.d.ts +35 -0
  202. package/dist/connection/billing/tax-quote.d.ts +36 -0
  203. package/dist/connection/billing/useAddonPurchase.d.ts +32 -0
  204. package/dist/connection/billing/useAutoRefreshPendingProjects.d.ts +11 -0
  205. package/dist/connection/billing/useCheckoutQuote.d.ts +30 -0
  206. package/dist/connection/billing/useOpenBillingPortal.d.ts +12 -0
  207. package/dist/connection/calendar/CalendarSettingsDialog.d.ts +1 -1
  208. package/dist/connection/connectors/ConnectedAppsSettings.d.ts +24 -0
  209. package/dist/connection/connectors/ConnectedDriveSyncDialog.d.ts +12 -0
  210. package/dist/connection/connectors/ConnectedMailboxSyncDialog.d.ts +12 -0
  211. package/dist/connection/connectors/index.d.ts +4 -0
  212. package/dist/connection/connectors/sync-labels.d.ts +21 -0
  213. package/dist/connection/facts/ConnectedFactsPage.d.ts +50 -0
  214. package/dist/connection/facts/FactMarkdownEditor.d.ts +57 -0
  215. package/dist/connection/facts/FactSourcesPopover.d.ts +38 -0
  216. package/dist/connection/facts/FactTextEditor.d.ts +2 -0
  217. package/dist/connection/facts/factNouns.d.ts +4 -0
  218. package/dist/connection/facts/factPageColumns.d.ts +37 -0
  219. package/dist/connection/facts/types.d.ts +127 -0
  220. package/dist/connection/facts/useFactActions.d.ts +10 -0
  221. package/dist/connection/facts/useFactComposer.d.ts +54 -0
  222. package/dist/connection/facts/useFactFilters.d.ts +101 -0
  223. package/dist/connection/facts/useFactSelection.d.ts +82 -0
  224. package/dist/connection/facts/useFactsGrid.d.ts +87 -0
  225. package/dist/connection/facts/useFactsPageView.d.ts +4 -0
  226. package/dist/connection/mail/ConnectedMailComposer.d.ts +3 -1
  227. package/dist/connection/mail/ConnectedMailbox.d.ts +4 -2
  228. package/dist/connection/mail/MailComposerForm.d.ts +4 -2
  229. package/dist/connection/mail/MailRecipientInput.d.ts +14 -0
  230. package/dist/connection/mail/index.d.ts +1 -1
  231. package/dist/connection/mail/types.d.ts +10 -0
  232. package/dist/connection/search/ConnectedSearchPage.d.ts +64 -0
  233. package/dist/connection/search/SearchResultRows.d.ts +38 -0
  234. package/dist/connection/search/index.d.ts +2 -0
  235. package/dist/connection/settings-page/ConnectedSettingsPage.d.ts +4 -0
  236. package/dist/connection/settings-page/index.d.ts +1 -1
  237. package/dist/connection/tags/ConnectedTagTable.d.ts +108 -0
  238. package/dist/connection/tags/ConnectedTagsPage.d.ts +55 -0
  239. package/dist/connection/tags/DocTagPassages.d.ts +25 -0
  240. package/dist/connection/tags/GlossaryExport.d.ts +7 -0
  241. package/dist/connection/tags/TagCombineFilter.d.ts +14 -0
  242. package/dist/connection/tags/TagPlacement.d.ts +16 -0
  243. package/dist/connection/tags/TagsPageSections.d.ts +36 -0
  244. package/dist/connection/tags/tagCombine.d.ts +55 -0
  245. package/dist/connection/useConnectedWorkNotifications.d.ts +7 -24
  246. package/dist/connection/viewer/ConnectedDocumentToolsProvider.d.ts +11 -0
  247. package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +21 -0
  248. package/dist/connection/viewer/FinaliseTranslationButton.d.ts +15 -0
  249. package/dist/connection/viewer/ViewerPdfPane.d.ts +46 -0
  250. package/dist/connection/viewer/support.d.ts +79 -0
  251. package/dist/connection/viewer/useImageCrop.d.ts +13 -0
  252. package/dist/connection/viewer/useViewedDocument.d.ts +70 -0
  253. package/dist/connection/viewer/useViewerBlobs.d.ts +15 -0
  254. package/dist/connection/viewer/useViewerTabs.d.ts +18 -0
  255. package/dist/connection/viewer/useViewerVersions.d.ts +11 -0
  256. package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +6 -0
  257. package/dist/document-tools/index.cjs +59 -652
  258. package/dist/document-tools/index.cjs.map +1 -1
  259. package/dist/document-tools/index.js +2 -641
  260. package/dist/document-tools/index.js.map +1 -1
  261. package/dist/docx/index.cjs +48 -47
  262. package/dist/docx/index.js +4 -3
  263. package/dist/facts/FactsBulkBar.d.ts +6 -3
  264. package/dist/facts/cited-version-ref.d.ts +1 -0
  265. package/dist/facts/index.cjs +206 -1942
  266. package/dist/facts/index.cjs.map +1 -1
  267. package/dist/facts/index.d.ts +1 -0
  268. package/dist/facts/index.js +15 -1897
  269. package/dist/facts/index.js.map +1 -1
  270. package/dist/files/ViewerChrome.d.ts +5 -4
  271. package/dist/files/ViewerControlBar.d.ts +12 -0
  272. package/dist/files/doc-labels.d.ts +35 -0
  273. package/dist/files/grid/FilterButton.d.ts +12 -0
  274. package/dist/files/grid/RowDensityControl.d.ts +18 -0
  275. package/dist/files/grid/row-density.d.ts +27 -0
  276. package/dist/files/index.cjs +779 -7100
  277. package/dist/files/index.cjs.map +1 -1
  278. package/dist/files/index.d.ts +5 -0
  279. package/dist/files/index.js +14 -6919
  280. package/dist/files/index.js.map +1 -1
  281. package/dist/home/index.cjs +2 -2
  282. package/dist/home/index.js +2 -2
  283. package/dist/index.cjs +1043 -1259
  284. package/dist/index.cjs.map +1 -1
  285. package/dist/index.js +27 -360
  286. package/dist/index.js.map +1 -1
  287. package/dist/retrieval/SearchSnippet.d.ts +6 -0
  288. package/dist/retrieval/index.cjs +75 -42
  289. package/dist/retrieval/index.d.ts +2 -0
  290. package/dist/retrieval/index.js +3 -2
  291. package/dist/retrieval/search-results.d.ts +46 -0
  292. package/dist/settings/Billing.d.ts +0 -66
  293. package/dist/settings/PlanBadge.d.ts +1 -1
  294. package/dist/settings/SubscriptionParts.d.ts +1 -50
  295. package/dist/settings/index.cjs +501 -3714
  296. package/dist/settings/index.cjs.map +1 -1
  297. package/dist/settings/index.d.ts +3 -2
  298. package/dist/settings/index.js +10 -3527
  299. package/dist/settings/index.js.map +1 -1
  300. package/dist/settings/inverted-index-filter.d.ts +26 -0
  301. package/dist/shell/index.cjs +2 -2
  302. package/dist/shell/index.js +2 -2
  303. package/dist/site/index.cjs +5 -5
  304. package/dist/site/index.js +1 -1
  305. package/dist/studio/index.cjs +6 -6
  306. package/dist/studio/index.js +5 -5
  307. package/dist/tags/definitions.d.ts +10 -0
  308. package/dist/tags/index.d.ts +4 -1
  309. package/dist/tags/page/ExtractEntitiesDialog.d.ts +24 -0
  310. package/dist/tags/page/TagPicker.d.ts +16 -0
  311. package/dist/tags/page/tagsPageLabels.d.ts +36 -0
  312. package/dist/workflow-canvas/index.cjs +21 -22
  313. package/dist/workflow-canvas/index.cjs.map +1 -1
  314. package/dist/workflow-canvas/index.js +8 -9
  315. package/dist/workflow-canvas/index.js.map +1 -1
  316. package/node_modules/@arbidocs/coedit/package.json +1 -1
  317. package/package.json +13 -4
  318. package/dist/calendar/access-setup.d.ts +0 -8
  319. package/dist/chunk-2MJWWPHY.js.map +0 -1
  320. package/dist/chunk-3AFWGEDJ.cjs +0 -53
  321. package/dist/chunk-3AFWGEDJ.cjs.map +0 -1
  322. package/dist/chunk-5YHEHEJT.js +0 -1667
  323. package/dist/chunk-5YHEHEJT.js.map +0 -1
  324. package/dist/chunk-6HCJ3ZEU.js.map +0 -1
  325. package/dist/chunk-6YTHQ73P.cjs.map +0 -1
  326. package/dist/chunk-7RJTEWYM.js.map +0 -1
  327. package/dist/chunk-A6IU4GIW.js.map +0 -1
  328. package/dist/chunk-AOSUHWIL.js.map +0 -1
  329. package/dist/chunk-B3AHCIV5.js.map +0 -1
  330. package/dist/chunk-C3CGJK7A.cjs.map +0 -1
  331. package/dist/chunk-CSI2B2H5.js.map +0 -1
  332. package/dist/chunk-DETZZBG2.cjs.map +0 -1
  333. package/dist/chunk-EVUEIBNU.js.map +0 -1
  334. package/dist/chunk-FUTMU4FR.js.map +0 -1
  335. package/dist/chunk-I2QSDQQV.cjs.map +0 -1
  336. package/dist/chunk-J5CWKFSC.js +0 -170
  337. package/dist/chunk-J5CWKFSC.js.map +0 -1
  338. package/dist/chunk-MFMASSEO.cjs.map +0 -1
  339. package/dist/chunk-MHFF5N65.cjs.map +0 -1
  340. package/dist/chunk-NRFAWUVD.js.map +0 -1
  341. package/dist/chunk-O4YPVYPO.cjs.map +0 -1
  342. package/dist/chunk-O6IEZDRC.cjs.map +0 -1
  343. package/dist/chunk-OBWYM25Y.js.map +0 -1
  344. package/dist/chunk-ODRHHWHY.cjs.map +0 -1
  345. package/dist/chunk-OPTBQSCV.cjs.map +0 -1
  346. package/dist/chunk-QI6AIHWP.cjs.map +0 -1
  347. package/dist/chunk-QXMR5YHC.js.map +0 -1
  348. package/dist/chunk-RFXJYIDV.js +0 -50
  349. package/dist/chunk-RFXJYIDV.js.map +0 -1
  350. package/dist/chunk-U73KPFYH.cjs +0 -1717
  351. package/dist/chunk-U73KPFYH.cjs.map +0 -1
  352. package/dist/chunk-XVUOMWMD.cjs +0 -177
  353. package/dist/chunk-XVUOMWMD.cjs.map +0 -1
  354. package/dist/chunk-YSHIC4NJ.cjs.map +0 -1
  355. package/dist/connection/ConnectedTagTable.d.ts +0 -32
  356. package/dist/connection/calendar/CopyField.d.ts +0 -9
  357. package/dist/connection/calendar/OpenAccessPanel.d.ts +0 -7
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The Tags page: every tag of the open workspace, by kind — labels, annotations, issues, people,
3
+ * organisations and saved searches — and everything tagged with each one.
4
+ *
5
+ * The tab header has a button per kind and the filter box with its filter menu, which only filters
6
+ * what is shown: tags included or excluded, whichever kind they are, narrow every view to the
7
+ * items they let through (`TagFilterChips` lists them). In the main area a search-and-create picker
8
+ * (`TagPicker`) opens a tag of the open kind or creates one. A kind shows all its tags as a table
9
+ * (their kind's fields as columns, and the items tagged with each); a tag shows its fields,
10
+ * editable in place, and every document (with the tag's note there and the passages it cites),
11
+ * fact and thread tagged with it, plus its sub-tags. Tags are moved, shared and deleted here;
12
+ * people and organisations can be extracted from documents.
13
+ *
14
+ * Data comes from `@arbidocs/react` (the open workspace's tags, tables, kinds, facts) and the
15
+ * connected workspace lists (`useConnectedDocuments`, `useConnectedConversations`: a host that keeps
16
+ * them itself gives them once through `ConnectedWorkspaceDataProvider`). What belongs to other
17
+ * parts of the host — the AI review, Smart Search, the tag editor form, opening a fact — comes in
18
+ * as callbacks and a render slot.
19
+ */
20
+ import { type ReactNode } from 'react';
21
+ import { type TagKind, type TagResponse } from '@arbidocs/sdk/browser';
22
+ /** The kinds the AI review fills across the documents. */
23
+ export type TagsReviewKind = Extract<TagKind, 'label' | 'annotation' | 'issue'>;
24
+ /** What the tag editor is given: the tag to edit, and what to do once a new one is made. */
25
+ export interface TagEditorSlotProps {
26
+ open: boolean;
27
+ onOpenChange: (open: boolean) => void;
28
+ tag: TagResponse | undefined;
29
+ /** The workspace's tags (saved searches aside): what a tag can be nested under. */
30
+ tags: TagResponse[];
31
+ /** A new tag was made: open it. */
32
+ onCreated: (tagId: string) => void;
33
+ }
34
+ export interface ConnectedTagsPageProps {
35
+ /** Documents whose people and organisations are still being extracted. */
36
+ extractingDocIds?: readonly string[];
37
+ /** Open a fact. Absent: facts are listed, not opened. */
38
+ onOpenFact?: (factId: string) => void;
39
+ /** Open Smart Search: the saved searches' action. Absent: none. */
40
+ onOpenSmartSearch?: () => void;
41
+ /**
42
+ * Have the AI fill a kind's tags (or the open tag) across the documents: the labels',
43
+ * annotations' and issues' action. Absent: none.
44
+ */
45
+ onReview?: (target: {
46
+ kind: TagsReviewKind;
47
+ tag?: {
48
+ id: string;
49
+ name: string;
50
+ };
51
+ }) => void;
52
+ /** The tag editor (a dialog). Absent: tags are not edited here. */
53
+ renderTagEditor?: (props: TagEditorSlotProps) => ReactNode;
54
+ }
55
+ export declare function ConnectedTagsPage({ extractingDocIds, onOpenFact, onOpenSmartSearch, onReview, renderTagEditor, }: ConnectedTagsPageProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The passages a tag's link to a document cites ("2 passages" under a tag on the Tags page), shown
3
+ * like a fact's sources: hovering or clicking the count opens a popover listing them (page +
4
+ * excerpt); a passage opens the document in the viewer at that passage, highlighted, exactly like a
5
+ * chat or fact citation; a cited document's name opens it; a whole-document citation just opens it.
6
+ *
7
+ * The citations are the doctag's own (`doctags[].citations` of the workspace's documents);
8
+ * excerpts are read live from the documents (`usePassageQuotes`); the presentation is the facts'
9
+ * (`FactSourcesPanel`, `FactSourceGroup`, `FactPassageItem`).
10
+ */
11
+ import type { components } from '@arbidocs/client';
12
+ type DocResponse = components['schemas']['DocResponse'];
13
+ export interface DocTagPassagesProps {
14
+ /** The tagged document. */
15
+ docId: string;
16
+ /** The tag whose link to the document cites the passages. */
17
+ tagId: string;
18
+ /** The count's text ("2 passages"). */
19
+ label: string;
20
+ /** The workspace's documents by id (the doctag's citations, the cited documents' names). */
21
+ docOf: (docId: string) => DocResponse | undefined;
22
+ testId?: string;
23
+ }
24
+ export declare function DocTagPassages({ docId, tagId, label, docOf, testId }: DocTagPassagesProps): import("react").JSX.Element;
25
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface GlossaryExportProps {
2
+ /** The Definitions label. */
3
+ labelId: string;
4
+ /** A cited document's name (a definition's source). */
5
+ nameOf: (docId: string) => string | null | undefined;
6
+ }
7
+ export declare function GlossaryExport({ labelId, nameOf }: GlossaryExportProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { type TagKind, type TagResponse } from '@arbidocs/sdk/browser';
2
+ import { type TagCombination } from './tagCombine';
3
+ export interface TagCombineFilterProps {
4
+ tags: readonly TagResponse[];
5
+ combination: TagCombination;
6
+ onChange: (combination: TagCombination) => void;
7
+ /** The kinds whose tags the menu lists (the open view's). */
8
+ kinds: readonly TagKind[];
9
+ /** Trigger styling (e.g. flush inside the filter box, as on the Files page). */
10
+ triggerClassName?: string;
11
+ }
12
+ export declare function TagCombineFilter({ tags, combination, onChange, kinds, triggerClassName, }: TagCombineFilterProps): import("react").JSX.Element;
13
+ /** Every tag the filter includes or excludes, whichever kind it is, each removable; and Clear. */
14
+ export declare function TagFilterChips({ tags, combination, onChange, }: Pick<TagCombineFilterProps, 'tags' | 'combination' | 'onChange'>): import("react").JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Where a tag sits and who sees it, on its page: shared with the workspace or private, and (labels
3
+ * and annotations) the tag it is nested under — "Top level" or "Under …", among the tags of its
4
+ * kind that may be a parent (never itself or a sub-tag of its own, never a nested one: nesting is
5
+ * two levels deep). A tag with sub-tags stays at the top level. Issues, people and organisations
6
+ * are flat. Data-free: the host saves the change.
7
+ */
8
+ import { type TagChange, type TagResponse } from '@arbidocs/sdk/browser';
9
+ export interface TagPlacementProps {
10
+ tag: TagResponse;
11
+ /** The workspace's tags. */
12
+ tags: readonly TagResponse[];
13
+ /** Save a change (`parent_ext_id: null` moves it to the top level); `done` says what it did. */
14
+ onChange: (change: Pick<TagChange, 'shared' | 'parent_ext_id'>, done: string) => void;
15
+ }
16
+ export declare function TagPlacement({ tag, tags, onChange }: TagPlacementProps): import("react").JSX.Element;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The two views of the Tags page's main area: every tag of a kind as a table (`KindSection`), and
3
+ * one tag in full (`TagSection`) — its placement and actions, its sub-tags as rows, its fields
4
+ * editable in place, and every document (with the tag's note there and the passages it cites),
5
+ * fact and thread tagged with it.
6
+ */
7
+ import type { ReactNode } from 'react';
8
+ import { type TagKind, type TagResponse } from '@arbidocs/sdk/browser';
9
+ import { type TagTableFilter } from './ConnectedTagTable';
10
+ /** What both views share: the filter and where a tagged item opens. */
11
+ export interface TagsPageViewContext {
12
+ filter: TagTableFilter;
13
+ onOpenTag: (tagId: string) => void;
14
+ onOpenFact?: (factId: string) => void;
15
+ }
16
+ /** Every tag of a kind as a table, under the kind's heading (the picker at its right). */
17
+ export declare function KindSection({ kind, ctx, extractingCount, picker, }: {
18
+ kind: TagKind;
19
+ ctx: TagsPageViewContext;
20
+ extractingCount: number;
21
+ picker: ReactNode;
22
+ }): import("react").JSX.Element;
23
+ /** One tag in full: its placement and actions, its sub-tags, and everything tagged with it. */
24
+ export declare function TagSection({ tag, tags, ctx, actions, onEdit, onDelete, onBack, renderPassages, picker, }: {
25
+ tag: TagResponse;
26
+ tags: readonly TagResponse[];
27
+ ctx: TagsPageViewContext;
28
+ /** Its own actions before Edit (e.g. printing the glossary of the Definitions label). */
29
+ actions?: ReactNode;
30
+ /** Edit it. Absent: no Edit. */
31
+ onEdit?: () => void;
32
+ onDelete: () => void;
33
+ onBack: () => void;
34
+ renderPassages: (docId: string, label: string) => ReactNode;
35
+ picker: ReactNode;
36
+ }): import("react").JSX.Element;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The Tags page's filter: a tri-state choice per tag (include / exclude, as the Files filter), one
3
+ * state for the whole page whichever kind is open, and what it lets through across the workspace —
4
+ * documents, facts and threads. Matching is the tri-state filter's own evaluator
5
+ * (`applyInvertedIndexFilter`): include is OR across tags, exclude drops a match and wins over
6
+ * include. Every view then shows only the tagged items that pass (`narrowTagRow`,
7
+ * `narrowTagTable`), and only the tags with some left.
8
+ */
9
+ import { type TagNode, type TagResponse } from '@arbidocs/sdk/browser';
10
+ import type { TriState } from '../../settings/TriStateFilterMenu';
11
+ import type { TagTableData, TagTableRow } from '../../tags/tagTableModel';
12
+ export type TagCombination = Map<string, TriState>;
13
+ /** Whether any tag is included or excluded. */
14
+ export declare const isCombining: (combination: TagCombination) => boolean;
15
+ /**
16
+ * The next combination after the user changes it: a tag newly included or excluded brings its
17
+ * sub-tags along (each can then be unset on its own); a tag set back to neither takes along the
18
+ * sub-tags that still carry the state it had.
19
+ */
20
+ export declare function cascadeTagCombination(tags: readonly TagNode[], previous: TagCombination, next: TagCombination): TagCombination;
21
+ /** What the filter lets through: the ids of the documents, facts and threads that pass. */
22
+ export interface TagFilterMatches {
23
+ docs: Set<string>;
24
+ facts: Set<string>;
25
+ threads: Set<string>;
26
+ }
27
+ /** The workspace's tagged items the filter reads: each item's id and the tags it carries. */
28
+ export interface TaggedItems {
29
+ documents: ReadonlyArray<{
30
+ id: string;
31
+ tagIds: readonly string[];
32
+ }>;
33
+ facts: ReadonlyArray<{
34
+ id: string;
35
+ tagIds: readonly string[];
36
+ }>;
37
+ threads: ReadonlyArray<{
38
+ id: string;
39
+ tagIds: readonly string[];
40
+ }>;
41
+ }
42
+ /**
43
+ * What the filter lets through (undefined: no filter). Every list is the workspace's own, so an
44
+ * exclusion applies to everything, not only to what an included tag links.
45
+ */
46
+ export declare function tagCombinationMatches(combination: TagCombination, items: TaggedItems): TagFilterMatches | undefined;
47
+ /**
48
+ * Narrow one tag's tagged items to what the filter lets through (`matches`; absent: no filter),
49
+ * counting what is left; `shown` keeps that many of each list (a table cell lists a few).
50
+ */
51
+ export declare function narrowTagRow(row: TagTableRow, matches: TagFilterMatches | undefined, shown?: number): TagTableRow;
52
+ /** A table under the filter: each row narrowed, and only the rows with tagged items left. */
53
+ export declare function narrowTagTable(table: TagTableData | undefined, matches: TagFilterMatches | undefined, shown?: number): TagTableData | undefined;
54
+ /** A tag's values as text a filter can match (a linked tag by its name). */
55
+ export declare function tagValueText(tag: Pick<TagResponse, 'field_values'>, nameOf: (id: string) => string | undefined): string;
@@ -1,27 +1,10 @@
1
- import type { components } from '@arbidocs/client';
2
- export type WorkNotificationTarget = {
3
- kind: 'conversation';
4
- workspaceId: string;
5
- conversationId: string;
6
- messageId?: string;
7
- } | {
8
- kind: 'workflow';
9
- workspaceId?: string;
10
- workflowId: string;
11
- }
12
- /** A draft an agent left for the user (`mail_draft_ready`): open it, e.g. `ConnectedMailbox draftId`. */
13
- | {
14
- kind: 'mail_draft';
15
- draftId: string;
16
- mailbox?: string;
17
- };
18
- /** Persisted work notifications in the shared bell; the consumer owns navigation. */
19
- export declare function useConnectedWorkNotifications(onOpen: (target: WorkNotificationTarget) => void | Promise<void>): {
1
+ import { type NotificationTarget } from '@arbidocs/react';
2
+ /**
3
+ * Persisted work notifications (mentions, finished and failed runs, access requests, drafts an
4
+ * agent left) in the shared bell. What each says and where it leads is the one shared mapping,
5
+ * `describeServerNotification`; the consumer turns a {@link NotificationTarget} into its routes.
6
+ */
7
+ export declare function useConnectedWorkNotifications(onOpen: (target: NotificationTarget) => void | Promise<void>): {
20
8
  onMarkRead: (id: string) => void;
21
9
  onMarkAllRead: () => void;
22
10
  };
23
- /** Route from explicit IDs; encrypted task text is never needed for a link. */
24
- export declare function mapWorkNotification(note: components['schemas']['NotificationResponse']): {
25
- title: string;
26
- target: WorkNotificationTarget;
27
- } | null;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The PDF document tools (markup, Freeze, signing, signature requests, productions) on the
3
+ * signed-in session, for any host: the API client, the signed-in user, the host's notices and
4
+ * document opening (`BlocksEnvironment`), and the shared caches a change refreshes. A host with its
5
+ * own binding (its own lists to refresh, an XHR upload with progress, Mail) keeps it: an enclosing
6
+ * `DocumentToolsProvider` wins.
7
+ */
8
+ import { type ReactNode } from 'react';
9
+ export declare function ConnectedDocumentToolsProvider({ children }: {
10
+ children: ReactNode;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The whole document viewer on the signed-in session: a document (or one of its versions, read
3
+ * only) as its PDF, its text, the Word editor, a sheet, an image, a recording or a live artifact;
4
+ * its versions and comparisons; markup, signing and signature requests; sharing, Email, Translate
5
+ * and Finalise. Runs under any host (`useConnectedWorkspace`): the open document, tab and comparison
6
+ * are the session state's, navigation the `BlocksEnvironment`'s, and what only the host knows comes
7
+ * through `DocumentViewerSupportProvider`.
8
+ */
9
+ import { type ReactNode } from 'react';
10
+ export interface ConnectedDocumentViewerProps {
11
+ /**
12
+ * The document, or a version reference `doc-…@v{n}` (a citation, a "made from v2" link): an
13
+ * earlier version opens read-only. Default: the session state's viewing document.
14
+ */
15
+ documentId?: string;
16
+ /** Controls at the right end of the header (a panel's dock / pop-out switcher). */
17
+ headerActions?: ReactNode;
18
+ /** Where html/react artifacts load their sandbox runtime from. */
19
+ artifactRuntimeUrl?: string;
20
+ }
21
+ export declare function ConnectedDocumentViewer(props: ConnectedDocumentViewerProps): import("react").JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ interface TranslationDocument {
2
+ external_id: string;
3
+ derived_from?: ReadonlyArray<{
4
+ role?: string | null;
5
+ }> | null;
6
+ }
7
+ /**
8
+ * Finalise: save the translation's current version as a new PDF document, labelled "Translation" and
9
+ * linked to the original. The editable translation stays as it is; the new PDF opens.
10
+ */
11
+ export declare function FinaliseTranslationButton({ document, isCompact, }: {
12
+ document: TranslationDocument | undefined;
13
+ isCompact: boolean;
14
+ }): React.ReactElement | null;
15
+ export {};
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The PDF (or media) body of the document viewer: loading and failure states, the image, audio and
3
+ * video players, and the PDF with its tools — the markup layer, signature placement, a signature
4
+ * request being prepared or signed.
5
+ */
6
+ import type { SignatureAppearance, SignatureRequest, useDocumentMarkup } from '@arbidocs/react/document-tools';
7
+ import { type PdfViewerProps } from '@arbidocs/react/viewers';
8
+ import { type ViewedDocument } from './useViewedDocument';
9
+ /** A signature request: the author placing fields, or a signer walked through theirs. */
10
+ export type SignatureFlow = {
11
+ kind: 'prepare';
12
+ draft?: SignatureRequest;
13
+ } | {
14
+ kind: 'sign';
15
+ request: SignatureRequest;
16
+ } | null;
17
+ /**
18
+ * The kit PDF viewer, reporting the page read into the session state; in a detached window its
19
+ * pages render without the opener's web fonts (canvas text in another document cannot use them).
20
+ */
21
+ export declare function SessionPdfViewer(props: Omit<PdfViewerProps, 'onPageChange' | 'disableFontFace'>): import("react").JSX.Element;
22
+ export interface ViewerPdfPaneProps {
23
+ documentId: string;
24
+ doc: ViewedDocument;
25
+ pdfBlob: Blob | null;
26
+ isPdfLoading: boolean;
27
+ pdfError: unknown;
28
+ onDownload: () => void;
29
+ viewerProps: {
30
+ currentPage: number | undefined;
31
+ onLoadSuccess: (pages: number) => void;
32
+ scrollTrigger: number;
33
+ zoom: number;
34
+ onZoomChange: (zoom: number) => void;
35
+ };
36
+ signatureFlow: SignatureFlow;
37
+ onSignatureFlow: (flow: SignatureFlow) => void;
38
+ currentUserId: string | undefined;
39
+ placingSignature: boolean;
40
+ onPlacingDone: (appearance?: SignatureAppearance) => void;
41
+ annotating: boolean;
42
+ markup: ReturnType<typeof useDocumentMarkup>;
43
+ pdfSnapshotNumber: number | undefined;
44
+ isSigned: boolean;
45
+ }
46
+ export declare function ViewerPdfPane({ documentId, doc, pdfBlob, isPdfLoading, pdfError, onDownload, viewerProps, signatureFlow, onSignatureFlow, currentUserId, placingSignature, onPlacingDone, annotating, markup, pdfSnapshotNumber, isSigned, }: ViewerPdfPaneProps): import("react").JSX.Element;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * What a host adds to the connected document viewer. The viewer reads documents, versions, PDFs,
3
+ * markup and signatures on the signed-in session by itself; these are the host's own things it
4
+ * cannot know: documents the host makes on the client (an artifact streaming in from a chat, an
5
+ * unsaved draft), the host's dialogs and workflows a document action opens, and how the host lays
6
+ * the viewer out. Every field is optional: without one the viewer offers less (no Translate button,
7
+ * no draft controls), never something that does nothing.
8
+ */
9
+ import { type ReactNode } from 'react';
10
+ import type { components } from '@arbidocs/client';
11
+ /** A document's record, as the viewer reads it. */
12
+ export type ViewerDocumentRecord = components['schemas']['DocResponse'];
13
+ /** An artifact being generated in a chat, shown in the viewer as it streams. */
14
+ export interface ViewerStreamingDocument {
15
+ title?: string | null;
16
+ /** The content so far (Markdown, or the html/react source of a live artifact). */
17
+ content: string;
18
+ /** How it is carried: a document draft, a live `html` / `react` artifact, an `image`. */
19
+ mode?: string | null;
20
+ isComplete: boolean;
21
+ }
22
+ /** A document the user started on the client, with no backend record until it is saved. */
23
+ export interface ViewerDraftDocument {
24
+ kind: 'text' | 'audio' | 'photo' | 'video';
25
+ title?: string | null;
26
+ /** A text draft's starting content. */
27
+ content?: string | null;
28
+ }
29
+ export interface DocumentViewerSupport {
30
+ /** Artifacts streaming in, by document id. */
31
+ streamingDocuments?: Readonly<Record<string, ViewerStreamingDocument>>;
32
+ /** Unsaved drafts, by their client id. */
33
+ draftDocuments?: Readonly<Record<string, ViewerDraftDocument>>;
34
+ /** A draft's kind (text, photo, audio, video), in place of the tabs. */
35
+ renderDraftKind?: (draftId: string) => ReactNode;
36
+ /** A draft's name (editable), in place of the title. */
37
+ renderDraftTitle?: (draftId: string) => ReactNode;
38
+ /** The recorder of a photo, audio or video draft: the whole body of the viewer. */
39
+ renderCaptureDraft?: (draftId: string) => ReactNode;
40
+ /** A text draft was saved as `documentId`; the viewer shows it next. */
41
+ onDraftSaved?: (draftId: string, documentId: string) => void;
42
+ /** The copy of a document kept on this device, for when the network is down. */
43
+ loadOfflineCopy?: (document: ViewerDocumentRecord) => Promise<Blob | undefined>;
44
+ /** Documents related to the one open (near duplicates), beside its name. */
45
+ renderRelated?: (document: ViewerDocumentRecord) => ReactNode;
46
+ /** A document as a pill (the comparison's other side). Default: its name. */
47
+ renderDocumentPill?: (documentId: string) => ReactNode;
48
+ /** Open the host's share dialog for the document. Default: share it with the workspace. */
49
+ share?: (document: {
50
+ id: string;
51
+ name: string | undefined;
52
+ isPrivate: boolean;
53
+ }) => void;
54
+ /** Ask the assistant about a version (`doc-…@v2`) open read-only. Absent: not offered. */
55
+ askAboutVersion?: (versionRef: string) => void;
56
+ /** Translate the document (or the version) on screen. Absent: not offered. */
57
+ translate?: (documentRef: string) => void;
58
+ /** Start an image generation from the image on screen. Absent: not offered. */
59
+ useImageAsReference?: (documentId: string) => void;
60
+ /** The text (parsed) view of the document; the viewer gives it the page and zoom. */
61
+ renderParsedView?: (props: ParsedViewProps) => ReactNode;
62
+ /** How dates read (versions, signatures). Default: `fmtDate`. */
63
+ formatDate?: (iso: string) => string;
64
+ /** The viewer is shown in another window: PDF pages render without the page's web fonts. */
65
+ isDetached?: boolean;
66
+ }
67
+ /** What the viewer hands the text view. */
68
+ export interface ParsedViewProps {
69
+ documentId: string;
70
+ onLoadSuccess: (totalPages: number) => void;
71
+ scrollTrigger: number;
72
+ zoom: number;
73
+ onZoomChange: (zoom: number) => void;
74
+ }
75
+ export declare function DocumentViewerSupportProvider({ value, children, }: {
76
+ value: DocumentViewerSupport;
77
+ children: ReactNode;
78
+ }): import("react").JSX.Element;
79
+ export declare function useDocumentViewerSupport(): DocumentViewerSupport;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Cropping an image in the viewer: the crop is saved as a NEW document made from the image
3
+ * (`derived_from`, role `crop`); the original is never touched. The new document opens once its id
4
+ * is back (otherwise it arrives through the documents list).
5
+ */
6
+ export declare function useImageCrop(documentId: string, fileName: string | null | undefined, imageBlob: Blob | null): {
7
+ cropImageUrl: string | null;
8
+ handleOpenCrop: () => void;
9
+ closeCrop: () => void;
10
+ handleCropComplete: (result: {
11
+ blob: Blob;
12
+ }) => Promise<void>;
13
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * What the document viewer is looking at: the document record, the host's streaming / draft overlay,
3
+ * the kind of content (artifact, live artifact, media, Word, sheet, ...) and whether it has parsed
4
+ * text.
5
+ */
6
+ /** Lower-cased extension with its dot (`.pdf`), or `''`. */
7
+ export declare function fileExtension(fileName: string | null | undefined): string;
8
+ export declare function useViewedDocument(documentId: string): {
9
+ workspaceId: string | null;
10
+ documentData: NonNullable<NoInfer<{
11
+ external_id: string;
12
+ workspace_ext_id: string;
13
+ file_name?: string | null;
14
+ status?: string | null;
15
+ error_message?: string | null;
16
+ failed_stage?: string | null;
17
+ n_pages?: number | null;
18
+ n_chunks?: number | null;
19
+ tokens?: number | null;
20
+ file_type?: string | null;
21
+ file_size?: number | null;
22
+ storage_type?: string | null;
23
+ storage_uri?: string | null;
24
+ content_hash?: string | null;
25
+ shared?: boolean | null;
26
+ re_ocred?: boolean | null;
27
+ config_ext_id?: string | null;
28
+ parent_ext_id?: string | null;
29
+ current_version: number;
30
+ versions: import("@arbidocs/client").components["schemas"]["DocVersion"][];
31
+ thread_id?: string | null;
32
+ derived_from: import("@arbidocs/client").components["schemas"]["DerivedFrom"][];
33
+ source_message_ext_id?: string | null;
34
+ conversation_ext_id?: string | null;
35
+ created_by_ext_id: string;
36
+ updated_by_ext_id?: string | null;
37
+ created_at: string;
38
+ updated_at: string;
39
+ wp_type?: string | null;
40
+ folder?: string | null;
41
+ sender?: string | null;
42
+ doctags: import("@arbidocs/client").components["schemas"]["DocTagResponse"][];
43
+ doc_metadata?: import("@arbidocs/client").components["schemas"]["DocMetadata"] | null;
44
+ } | null>> | undefined;
45
+ streamingDoc: import("./support").ViewerStreamingDocument | undefined;
46
+ isStreaming: boolean;
47
+ draftDoc: import("./support").ViewerDraftDocument | undefined;
48
+ isDraft: boolean;
49
+ isCaptureDraft: boolean;
50
+ isTextDraft: boolean;
51
+ labelSummaries: import("../../files").DocTagSummary[];
52
+ isImage: boolean;
53
+ isWebmFile: boolean;
54
+ setWebmHasVideoTrack: import("react").Dispatch<import("react").SetStateAction<boolean | null>>;
55
+ isVideo: boolean;
56
+ isAudio: boolean;
57
+ isMedia: boolean;
58
+ isBlobArtifact: boolean;
59
+ savedDocumentId: string | null;
60
+ isArtifact: boolean;
61
+ liveKind: import("@arbidocs/react/artifacts").ArtifactPreviewKind | null;
62
+ liveSource: string;
63
+ isDocx: boolean;
64
+ isXlsx: boolean;
65
+ isEmail: boolean;
66
+ isDownloadOnly: boolean;
67
+ isParsedDocLoading: boolean;
68
+ hasParsedContent: boolean;
69
+ };
70
+ export type ViewedDocument = ReturnType<typeof useViewedDocument>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The bytes the document viewer shows: the PDF (or, for media, the stored file), with the host's
3
+ * copy kept on the device when the network is down; the stored sheet; the `.webm` track probe; and
4
+ * downloading the stored file.
5
+ */
6
+ import type { ViewedDocument } from './useViewedDocument';
7
+ /** `documentId` may be a version reference (`doc-…@v2`). */
8
+ export declare function useViewerBlobs(documentId: string, doc: ViewedDocument): {
9
+ pdfBlob: Blob | null;
10
+ isPdfLoading: boolean;
11
+ pdfError: Error | null;
12
+ xlsxBlob: NoInfer<Blob> | null;
13
+ xlsxError: Error | null;
14
+ handleDirectDownload: () => Promise<void>;
15
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Tabs of the document viewer: which tabs a document has, the automatic switches when the
3
+ * document's type or parsed content changes, and switching (which ends a comparison when leaving
4
+ * the tab that hosts it). The open tab is the session state's, so whatever opens a document can
5
+ * open it on a tab.
6
+ */
7
+ import { type ArbiViewerTab } from '@arbidocs/react';
8
+ import type { ViewerTab } from '../../files/ViewerParts';
9
+ import type { ViewedDocument } from './useViewedDocument';
10
+ /**
11
+ * @param hasHistory The document has earlier versions (a signed copy, a re-upload): PDF and text
12
+ * documents then get a Versions tab too. Artifacts and Word documents always have one.
13
+ */
14
+ export declare function useViewerTabs(doc: ViewedDocument, isCompact: boolean, hasHistory?: boolean): {
15
+ activeTab: ArbiViewerTab;
16
+ handleTabChange: (tabId: string) => void;
17
+ viewerTabs: ViewerTab[];
18
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A document's versions (oldest first; every row's `id` is a version reference) and its
3
+ * translations (each its own document, made from one of its versions). A listed document carries
4
+ * its versions, so it costs no request; one that is not in the workspace list asks for them.
5
+ */
6
+ import { type ArtifactVersion } from '@arbidocs/react/artifacts';
7
+ import type { TranslationEntry } from '../../artifacts/VersionTimeline';
8
+ export declare function useViewerVersions(docId: string | null | undefined): {
9
+ versions: ArtifactVersion[];
10
+ translations: TranslationEntry[];
11
+ };
@@ -48,6 +48,12 @@ export declare function useConnectedWorkspaceSettings(workspaceId: string, { onL
48
48
  project_subscription?: string | null | undefined;
49
49
  project_owner_ext_id?: string | null | undefined;
50
50
  house_template_ext_id?: string | null | undefined;
51
+ archive?: {
52
+ status: "archiving" | "archived" | "restoring";
53
+ archived_at: string;
54
+ documents_done: number;
55
+ documents_total: number;
56
+ } | null | undefined;
51
57
  } | undefined;
52
58
  members: {
53
59
  user: {