@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,32 @@
1
+ /**
2
+ * useAddonPurchase — buy one add-on block (+£25 of AI usage or +25 GB) for a Pro project and tell
3
+ * the user what happened. The monthly usage cap limits automatic top-ups only, so it never refuses a block
4
+ * bought here. The block is charged now for the current period and then renews every
5
+ * period until the user reduces it. Shared by the add-on confirm dialog (project Add-ons card,
6
+ * quota-exceeded modal).
7
+ *
8
+ * - `paid` → the block is live now.
9
+ * - `requires_action` → the bank wants 3-D Secure: open Stripe's hosted invoice in a new tab;
10
+ * the block is added once confirmed (the next refresh picks it up).
11
+ * - 402 `{code, message}` (declined / no card / no billing address) → the
12
+ * refusal template ("… Nothing was charged. …"); any other failure leaves the outcome unknown:
13
+ * `onUnknownError` lets the caller check the project before saying what happened.
14
+ */
15
+ export type AddonKind = 'ai_usage' | 'storage';
16
+ export type AddonErrorCode = 'PAYMENT_DECLINED' | 'PAYMENT_METHOD_REQUIRED' | 'BILLING_ADDRESS_REQUIRED';
17
+ /** The user-facing message for a failed add-on request (402 detail object or plain detail). */
18
+ export declare function addonErrorMessage(error: unknown): string;
19
+ /** The refusal for a charge the backend turned down (402 with a known code), else null. */
20
+ export declare function chargeRefusalMessage(error: unknown): string | null;
21
+ /** The 402 code of a failed add-on request, if it has one. */
22
+ export declare function addonErrorCode(error: unknown): AddonErrorCode | null;
23
+ export declare function useAddonPurchase(): {
24
+ buy: (kind: AddonKind, projectExtId: string, options?: {
25
+ onPaid?: () => void;
26
+ onRequiresAction?: () => void;
27
+ onError?: (code: AddonErrorCode | null) => void;
28
+ /** A failure that doesn't say whether the charge went through (timeout, 5xx). */
29
+ onUnknownError?: () => void;
30
+ }) => void;
31
+ isPending: boolean;
32
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * useAutoRefreshPendingProjects
3
+ *
4
+ * Auto-refreshes owned projects stuck at subscription="none" (checkout
5
+ * completed but not yet synced). Skips member-of projects: refresh requires
6
+ * owner, and non-owner projects already have `subscription` blanked to
7
+ * "none" by the backend regardless of real state.
8
+ *
9
+ * Each project is refreshed at most once per mount (refreshedRef guard).
10
+ */
11
+ export declare function useAutoRefreshPendingProjects(): void;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * useCheckoutQuote — the tax-inclusive total of a plan purchase for the billing country (and
3
+ * ZIP / postcode where the tax depends on it), from the backend's Stripe Tax quote. Shown by
4
+ * `CheckoutTotal` before Stripe opens.
5
+ */
6
+ import type { PlanInterval } from './plan-pricing';
7
+ import { type TaxQuote } from './tax-quote';
8
+ export interface CheckoutQuoteState {
9
+ quote?: TaxQuote;
10
+ isLoading: boolean;
11
+ /** Show the ZIP / postcode field. */
12
+ showPostcode: boolean;
13
+ /** Why there is no total (e.g. "Enter your ZIP / postal code to see the total."). */
14
+ error: string | null;
15
+ /** Continue to payment: priced, or the pricing failed for a reason other than the address. */
16
+ canContinue: boolean;
17
+ }
18
+ /**
19
+ * Prices the plan, plus any add-on blocks picked at checkout (one period of each), for the billing address.
20
+ * `projectExtId` for an existing project.
21
+ */
22
+ export declare function useCheckoutQuote({ projectExtId, interval, country, postalCode, aiBlocks, storageBlocks, enabled, }: {
23
+ projectExtId?: string | null;
24
+ interval: PlanInterval;
25
+ country: string;
26
+ postalCode: string;
27
+ aiBlocks?: number;
28
+ storageBlocks?: number;
29
+ enabled?: boolean;
30
+ }): CheckoutQuoteState;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Opens a fresh Stripe billing-portal link for a project in a new tab.
3
+ *
4
+ * The tab is opened synchronously inside the click: browsers only allow
5
+ * window.open() during the user gesture, and the portal link arrives after an
6
+ * await. The tab starts on about:blank and is pointed at the Stripe URL once the
7
+ * link is ready.
8
+ */
9
+ export declare function useOpenBillingPortal(): {
10
+ open: (projectExtId: string) => void;
11
+ isPending: boolean;
12
+ };
@@ -1,6 +1,6 @@
1
1
  import { type CalendarSettings } from '@arbidocs/react';
2
2
  import { type CalendarListItem } from '../../calendar';
3
- export type CalendarSettingsTab = 'general' | 'accounts' | 'access' | 'booking' | 'rooms';
3
+ export type CalendarSettingsTab = 'general' | 'accounts' | 'booking' | 'rooms';
4
4
  export interface CalendarSettingsDialogProps {
5
5
  open: boolean;
6
6
  settings: CalendarSettings;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ConnectedAppsSettings
3
+ *
4
+ * "Connected Apps" settings tab — lets users connect their legal tools
5
+ * (iManage, CoCounsel, Everlaw, CourtListener, …) so the ARBI agent can
6
+ * query them directly during a conversation.
7
+ *
8
+ * Architecture: calls /v1/connectors (catalog) and /v1/connectors/me (user's
9
+ * installed connectors) to build the list. Each card shows the vendor, its
10
+ * connection status, and a Connect / Disconnect action.
11
+ *
12
+ * OAuth flow: clicking "Connect" navigates the browser to
13
+ * /v1/connectors/{vendor}/authorize, which redirects to the vendor's OAuth
14
+ * consent page. After the user grants access the vendor redirects back to
15
+ * /v1/connectors/{vendor}/callback, which stores the encrypted token and
16
+ * redirects to /settings/connected-apps?connected={vendor}.
17
+ */
18
+ export interface ConnectedAppsSettingsProps {
19
+ /** The vendor an OAuth return just connected (`?connected=`): badged for 4 s, then cleared. */
20
+ justConnectedVendor?: string | null;
21
+ /** The badge is done: forget the just-connected vendor. */
22
+ onJustConnectedSeen?: () => void;
23
+ }
24
+ export declare function ConnectedAppsSettings({ justConnectedVendor, onJustConnectedSeen, }: ConnectedAppsSettingsProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { type ConnectorCatalogEntry, type UserConnectorEntry } from '@arbidocs/react';
2
+ export interface ConnectedDriveSyncDialogProps {
3
+ catalog: ConnectorCatalogEntry;
4
+ userConnector: UserConnectorEntry | undefined;
5
+ open: boolean;
6
+ onOpenChange: (open: boolean) => void;
7
+ /** When set, hide the workspace picker and force sync onto this workspace. */
8
+ lockedWorkspaceExtId?: string;
9
+ /** Fired after a successful enable, with the workspace the sync now targets. */
10
+ onEnabled?: (workspaceExtId: string) => void;
11
+ }
12
+ export declare function ConnectedDriveSyncDialog({ catalog, userConnector, open, onOpenChange, lockedWorkspaceExtId, onEnabled, }: ConnectedDriveSyncDialogProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { type ConnectorCatalogEntry, type UserConnectorEntry } from '@arbidocs/react';
2
+ export interface ConnectedMailboxSyncDialogProps {
3
+ catalog: ConnectorCatalogEntry;
4
+ userConnector: UserConnectorEntry | undefined;
5
+ open: boolean;
6
+ onOpenChange: (open: boolean) => void;
7
+ /** When set, hide the workspace picker and force sync onto this workspace. */
8
+ lockedWorkspaceExtId?: string;
9
+ /** Fired after a successful enable, with the workspace the sync now targets. */
10
+ onEnabled?: (workspaceExtId: string) => void;
11
+ }
12
+ export declare function ConnectedMailboxSyncDialog({ catalog, userConnector, open, onOpenChange, lockedWorkspaceExtId, onEnabled, }: ConnectedMailboxSyncDialogProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { ConnectedAppsSettings, type ConnectedAppsSettingsProps } from './ConnectedAppsSettings';
2
+ export { ConnectedMailboxSyncDialog, type ConnectedMailboxSyncDialogProps, } from './ConnectedMailboxSyncDialog';
3
+ export { ConnectedDriveSyncDialog, type ConnectedDriveSyncDialogProps, } from './ConnectedDriveSyncDialog';
4
+ export { BACKFILL_OPTIONS, formatLastSync, windowLabel } from './sync-labels';
@@ -0,0 +1,21 @@
1
+ /** Labels of a connector sync: the backfill windows and "last synced" times. */
2
+ export declare const BACKFILL_OPTIONS: readonly [{
3
+ readonly value: "1";
4
+ readonly label: "Last 1 day";
5
+ }, {
6
+ readonly value: "7";
7
+ readonly label: "Last 7 days";
8
+ }, {
9
+ readonly value: "30";
10
+ readonly label: "Last 30 days";
11
+ }, {
12
+ readonly value: "90";
13
+ readonly label: "Last 90 days";
14
+ }, {
15
+ readonly value: "365";
16
+ readonly label: "Last year";
17
+ }];
18
+ /** Human-friendly "3d ago" style relative time; falls back to the raw ISO on parse failure. */
19
+ export declare function formatLastSync(iso: string): string;
20
+ /** Label for a backfill window in days (e.g. 1 -> "Last 1 day"). */
21
+ export declare function windowLabel(days: number | null): string;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The Facts page: the open workspace's facts — what it knows, a date, a decision, a preference —
3
+ * written by hand or kept by the assistant. A table (with labels, sources, verified and shared
4
+ * toggles, inline edits and bulk actions), a calendar and a timeline of the dated ones, and Smart
5
+ * Search when the host has one. A fact is written or edited in the composer above them: its text
6
+ * (rich markdown), its date, labels, sources (whole documents or passages picked in the viewer),
7
+ * and whether it is shared and verified.
8
+ *
9
+ * Data is `@arbidocs/react` (facts, tags) and the connected workspace documents. The host plugs in
10
+ * what lives elsewhere in it (see `types.ts`): the current chat's facts, the viewer's passage
11
+ * collection, where the view choices are kept, a request from another surface, and its own labels
12
+ * panel, export and Smart Search.
13
+ */
14
+ import { type ReactNode } from 'react';
15
+ import type { FactCreator, LookupUser } from './factPageColumns';
16
+ import type { FactPassageCollector, FactsChat, FactsPageRequest, FactsPageSlots, FactsPageView } from './types';
17
+ /** Who may do something to a fact, by its creator's id. */
18
+ export type FactCreatorCheck = (creatorExtId: string | null | undefined) => boolean;
19
+ export interface ConnectedFactsPageProps extends FactsPageSlots {
20
+ /** The current chat's facts (absent: no In chat column, filter or bulk action). */
21
+ chat?: FactsChat;
22
+ /** The viewer's passage collection (absent: citing a document opens it). */
23
+ collector?: FactPassageCollector;
24
+ /** Where the view choices are kept (default: in the page). */
25
+ view?: FactsPageView;
26
+ /** A one-off request from another surface; each part done is reported. */
27
+ request?: FactsPageRequest;
28
+ onRequestHandled?: (part: keyof FactsPageRequest) => void;
29
+ /** Open the labels panel for the selected facts (with `renderLabelsPanel`). */
30
+ onOpenLabels?: () => void;
31
+ /**
32
+ * Who may change who sees a fact (default: its creator) and who may reword or delete it (default:
33
+ * its creator; a host adds the workspace's owners).
34
+ */
35
+ permissions?: {
36
+ canChangeSharing: FactCreatorCheck;
37
+ canRewrite: FactCreatorCheck;
38
+ };
39
+ /** A creator by id (default: the workspace's members). */
40
+ lookupUser?: LookupUser;
41
+ /** A creator's avatar (default: the shared one). */
42
+ renderUser?: (user: FactCreator | null) => ReactNode;
43
+ }
44
+ /** One id for the grid's persisted column state and its row-height density.
45
+ * v11: reset so the Dates column opens beside the fact text.
46
+ * v12: reset so the table opens in date order (a saved column state would override the default sort).
47
+ * v13: the Pinned column became In chat (colId `in_chat`).
48
+ * Bump to reset state. */
49
+ export declare const FACTS_GRID_ID = "facts-grid-v13";
50
+ export declare function ConnectedFactsPage({ chat, collector, view: hostView, request, onRequestHandled, onOpenLabels, permissions, lookupUser: hostLookupUser, renderUser, renderLabelsPanel, renderExport, renderSmartSearch, emptyStateExtra, }: ConnectedFactsPageProps): import("react").JSX.Element;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * FactMarkdownEditor
3
+ *
4
+ * A WYSIWYG editor for a fact: the text is edited as rendered markdown (via the
5
+ * shared MDXEditor, same engine the document artifacts use), and the fact's
6
+ * source citations are preserved and managed beneath it exactly as the packaged
7
+ * CitationEditor did — per-document rows with page refs and a remove control,
8
+ * and the document picker wired to the viewer's passage-collection flow.
9
+ *
10
+ * The editor is heavy (Lexical), so it is lazy-loaded. It adopts its markdown on mount only, so
11
+ * the parent bumps `editorKey` each time the composer opens to reload the right fact's text.
12
+ */
13
+ import type { components } from '@arbidocs/client';
14
+ import { type ReactNode } from 'react';
15
+ import type { FactPassageCollector } from './types';
16
+ type CitationSources = components['schemas']['CitationSources'];
17
+ type DocResponse = components['schemas']['DocResponse'];
18
+ export interface FactMarkdownEditorProps {
19
+ /** Remount key so the editor adopts a different fact's markdown on open. */
20
+ editorKey: string;
21
+ value: string;
22
+ citations: CitationSources | null;
23
+ onChange: (text: string, citations: CitationSources | null) => void;
24
+ /** Open a document in the viewer, armed to collect passages for this fact.
25
+ * `toggle: false` always opens (the picker's list); otherwise clicking the
26
+ * document already in view closes it. */
27
+ onCiteDocument: (docExtId: string, opts?: {
28
+ toggle?: boolean;
29
+ }) => void;
30
+ /** The viewer's passage collection, while a source's popover is open. */
31
+ collector?: FactPassageCollector;
32
+ /** Resolved cited documents, keyed by external id. */
33
+ citedDocs?: Record<string, DocResponse>;
34
+ /** The document currently on display in the viewer (null when closed). Its
35
+ * Source row is highlighted so it's clear which cited doc you're reading. */
36
+ viewingDocId?: string | null;
37
+ /** The workspace document picker (Sources title + combobox), injected.
38
+ * `sourcesToggle` is the control that opens the sources popup (every cited
39
+ * document with its passages) — place it in front of the combobox (null when
40
+ * the fact has no sources to show). */
41
+ renderDocumentPicker: (onSelect: (docExtId: string) => void, selectedIds: string[], onOpen: (docExtId: string) => void, sourcesToggle: ReactNode,
42
+ /** True while the Sources popup is open — shut the picker's list then. */
43
+ sourcesOpen: boolean) => ReactNode;
44
+ /** The markdown MDXEditor produces on mount (its canonical round-trip of
45
+ * `value`) — use as the "unchanged" baseline for a dirty check. */
46
+ onNormalized?: (normalized: string) => void;
47
+ /** Keep the sources toggle in place (disabled) even when the fact has no
48
+ * sources, so selecting different events doesn't change the Sources row
49
+ * geometry (used by the timeline/calendar). */
50
+ reserveSourcesSpace?: boolean;
51
+ /** The fact section element the source Citation popovers portal into and are
52
+ * kept within (see FactSourcesPopover), so it never spills over the sidebar. */
53
+ citationContainer?: HTMLElement | null;
54
+ 'data-testid'?: string;
55
+ }
56
+ export declare function FactMarkdownEditor({ editorKey, value, citations, onChange, onCiteDocument, collector, citedDocs, viewingDocId, renderDocumentPicker, onNormalized, reserveSourcesSpace, citationContainer, 'data-testid': dataTestId, }: FactMarkdownEditorProps): import("react").JSX.Element;
57
+ export {};
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The fact's sources as ONE popup off the "Sources" control in the Sources row — every cited
3
+ * document, each with the passages the fact draws from it listed beneath (page + excerpt), laid out
4
+ * like the chat's citations. Being a popover (not an in-flow list) it never pushes the rest of the
5
+ * composer up or down. Clicking a document opens it in the viewer; clicking a passage jumps to and
6
+ * highlights it there, exactly like a chat citation. Excerpts are resolved live
7
+ * (`usePassageQuotes`), never stored on the fact. The viewer side goes through the host's
8
+ * `FactPassageCollector`.
9
+ */
10
+ import type { components } from '@arbidocs/client';
11
+ import { type OrderResolver, type QuoteResolver } from '@arbidocs/react';
12
+ import { type ReactNode } from 'react';
13
+ import type { FactCitations } from '../../facts/fact-citations';
14
+ import type { FactPassageCollector } from './types';
15
+ type DocResponse = components['schemas']['DocResponse'];
16
+ export interface FactSourcesPopoverProps {
17
+ open: boolean;
18
+ onOpenChange: (open: boolean) => void;
19
+ /** The Sources row (picker + the PopoverTrigger toggle) this popup hangs off. */
20
+ children: ReactNode;
21
+ /** Cited documents in citation order, each with its passages. */
22
+ citations: FactCitations;
23
+ citedDocs?: Record<string, DocResponse>;
24
+ quoteFor: QuoteResolver;
25
+ orderOf?: OrderResolver;
26
+ /** The document currently on display in the viewer (null when closed). */
27
+ viewingDocId?: string | null;
28
+ /** Open a document in the viewer, armed to collect passages for this fact. */
29
+ onCiteDocument: (docExtId: string) => void;
30
+ onRemoveDoc: (docExtId: string) => void;
31
+ /** The viewer's passage collection (absent: passages open the document, nothing is marked). */
32
+ collector?: FactPassageCollector;
33
+ /** The fact section the popover is portalled INTO and fenced WITHIN, so it
34
+ * opens into the fact content rather than across the app sidebar. */
35
+ container?: HTMLElement | null;
36
+ }
37
+ export declare function FactSourcesPopover({ open, onOpenChange, children, citations, citedDocs, quoteFor, orderOf, viewingDocId, onCiteDocument, onRemoveDoc, collector, container, }: FactSourcesPopoverProps): import("react").JSX.Element;
38
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type ArtifactMarkdownEditorProps } from '../../artifacts/editor/ArtifactMarkdownEditor';
2
+ export default function FactTextEditor(props: Omit<ArtifactMarkdownEditorProps, 'dictation'>): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const factNouns: () => {
2
+ SINGULAR: string;
3
+ PLURAL: string;
4
+ };
@@ -0,0 +1,37 @@
1
+ import type { ColDef } from 'ag-grid-community';
2
+ import { type ReactNode } from 'react';
3
+ import type { Fact } from './types';
4
+ /** A fact's creator, as the page knows them. */
5
+ export interface FactCreator {
6
+ external_id: string;
7
+ given_name?: string | null;
8
+ family_name?: string | null;
9
+ email?: string | null;
10
+ picture?: string | null;
11
+ }
12
+ /** Resolves a creator's external id to the user. */
13
+ export type LookupUser = (externalId: string | null | undefined) => FactCreator | null;
14
+ export interface FactGridContext {
15
+ lookupUser?: LookupUser;
16
+ /** The host's own creator avatar. */
17
+ renderUser?: (user: FactCreator | null) => ReactNode;
18
+ renderFactTags?: (fact: Fact, rowHeight?: number) => ReactNode;
19
+ openEdit?: (fact: Fact) => void;
20
+ removeFact?: (fact: Fact) => void;
21
+ /** Who may change who can see a fact: its creator or a workspace owner. */
22
+ canChangeSharing?: (fact: Fact) => boolean;
23
+ /** Who may reword a fact (it replaces the note): its creator or a workspace owner. */
24
+ canRewrite?: (fact: Fact) => boolean;
25
+ /** Whether the fact is in the current chat (read live: the column defs are built once). */
26
+ isInChat?: (fact: Fact) => boolean;
27
+ }
28
+ interface FactColumnCallbacks {
29
+ /** Add the fact to the current chat, or take it out (absent: no chat, no In chat column). */
30
+ onToggleInChat?: (fact: Fact) => void;
31
+ /** Whether the fact is in the current chat. */
32
+ isInChat?: (fact: Fact) => boolean;
33
+ onToggleConfirmed: (fact: Fact) => void;
34
+ onToggleShared: (fact: Fact) => void;
35
+ }
36
+ export declare function createFactPageColumns({ onToggleInChat, isInChat, onToggleConfirmed, onToggleShared, }: FactColumnCallbacks): ColDef<Fact>[];
37
+ export {};
@@ -0,0 +1,127 @@
1
+ /**
2
+ * What the connected Facts page shares with its host. The page reads and writes the facts itself
3
+ * (`@arbidocs/react`); a host plugs in what lives elsewhere in it: the current chat's facts, the
4
+ * document viewer's passage collection, where the page's view choices are kept, and the parts that
5
+ * are its own (the labels panel, export, Smart Search).
6
+ */
7
+ import type { ReactNode } from 'react';
8
+ import type { GridState } from 'ag-grid-community';
9
+ import type { FactResponse } from '@arbidocs/sdk/browser';
10
+ import type { TriState } from '../../settings/TriStateFilterMenu';
11
+ import type { FactsSearchField } from '../../facts/FactsFilterInput';
12
+ import type { FactsViewMode } from '../../facts/FactsViewToggle';
13
+ export type Fact = FactResponse;
14
+ /**
15
+ * The current chat's facts (absent: no chat, no In chat column). Adding is the host's to refuse
16
+ * (a budget, a duplicate) and to say why; it returns how many it added.
17
+ */
18
+ export interface FactsChat {
19
+ /** The ids of the facts in the current chat. */
20
+ factIds: readonly string[];
21
+ add: (facts: Fact[]) => number;
22
+ remove: (factIds: string[]) => number;
23
+ /** The chat's facts budget, in characters (absent: no budget shown). */
24
+ budget?: {
25
+ used: number;
26
+ cap: number;
27
+ };
28
+ }
29
+ /** A passage picked in the viewer for the fact being written. */
30
+ export interface CollectedPassage {
31
+ chunk_id: string;
32
+ page?: number | null;
33
+ }
34
+ /**
35
+ * The document viewer's passage collection: citing a document opens it in the viewer, and the
36
+ * passages picked (or unpicked) there land on the fact being written. Absent: citing a document
37
+ * opens it (`openDocument`) and sources are whole documents or passages already cited.
38
+ */
39
+ export interface FactPassageCollector {
40
+ /** The document on display in the viewer (null when it is closed). */
41
+ displayedDocId: string | null;
42
+ /** The document passages are being collected from (null: not collecting). */
43
+ collectingDocId: string | null;
44
+ /** Passages picked in the viewer since the last `consumePicked`. */
45
+ picked: readonly CollectedPassage[];
46
+ /** Passages unpicked in the viewer since the last `consumeUnpicked`. */
47
+ unpicked: readonly string[];
48
+ consumePicked: () => void;
49
+ consumeUnpicked: () => void;
50
+ /** Open a document in the viewer, collecting for this fact (null: a new one). */
51
+ open: (docId: string, factId: string | null) => void;
52
+ /** Collect from a document already on display (null: stop collecting). */
53
+ collect: (docId: string | null) => void;
54
+ /** Close the viewer. */
55
+ close: () => void;
56
+ /** Mark the cited passages in the viewer while the sources list is open ([]: none). */
57
+ highlight: (chunkIds: string[]) => void;
58
+ /** Clear the passage being read in the viewer and its highlight. */
59
+ clearReading: () => void;
60
+ }
61
+ /**
62
+ * Where the page keeps its view choices, so they outlast leaving the page (default: kept in the
63
+ * page while it is mounted). Each pair is a value and its setter.
64
+ */
65
+ export interface FactsPageView {
66
+ view: FactsViewMode;
67
+ setView: (view: FactsViewMode) => void;
68
+ /** The table's row height (px). */
69
+ rowHeight: number;
70
+ setRowHeight: (height: number) => void;
71
+ /** The timeline's label gutter width (px). */
72
+ labelWidth: number;
73
+ setLabelWidth: (width: number) => void;
74
+ /** The timeline zoom. */
75
+ zoom: number;
76
+ setZoom: (zoom: number) => void;
77
+ /** The filter box's text and what it searches. */
78
+ filterText: string;
79
+ setFilterText: (text: string) => void;
80
+ searchFields: FactsSearchField[];
81
+ setSearchFields: (fields: FactsSearchField[]) => void;
82
+ /** The quick filters (tri-state, by filter id). */
83
+ filters: Map<string, TriState>;
84
+ setFilters: (filters: Map<string, TriState>) => void;
85
+ /** The table's column state. */
86
+ gridState?: GridState;
87
+ setGridState?: (state: GridState) => void;
88
+ }
89
+ /** What the labels panel applies labels to: the selected facts. */
90
+ export interface FactsLabelTarget {
91
+ noun: {
92
+ singular: string;
93
+ plural: string;
94
+ };
95
+ ids: string[];
96
+ /** How many facts carry a label. */
97
+ countFor: (tagId: string) => number;
98
+ apply: (tagIds: string[]) => Promise<void>;
99
+ clear: (tagIds: string[]) => Promise<void>;
100
+ }
101
+ /** A one-off request from another surface: show a view, start a fact, or bring one into view. */
102
+ export interface FactsPageRequest {
103
+ view?: FactsViewMode | null;
104
+ compose?: boolean;
105
+ focusFactId?: string | null;
106
+ }
107
+ /** The host's own parts of the page. */
108
+ export interface FactsPageSlots {
109
+ /** The labels panel for the selected facts (opened by `onOpenLabels`). */
110
+ renderLabelsPanel?: (target: FactsLabelTarget) => ReactNode;
111
+ /** Export the selected facts. */
112
+ renderExport?: (props: {
113
+ open: boolean;
114
+ onOpenChange: (open: boolean) => void;
115
+ items: {
116
+ extId: string;
117
+ label: string;
118
+ }[];
119
+ }) => ReactNode;
120
+ /** The Smart Search view (absent: no Smart Search). */
121
+ renderSmartSearch?: (props: {
122
+ selectedFactId: string | null;
123
+ onOpenFact: (factId: string) => void;
124
+ }) => ReactNode;
125
+ /** Under the empty state (e.g. "find facts in your documents"). */
126
+ emptyStateExtra?: ReactNode;
127
+ }
@@ -0,0 +1,10 @@
1
+ import type { CellValueChangedEvent } from 'ag-grid-community';
2
+ import type { Fact } from './types';
3
+ export declare function useFactActions(refetch: () => unknown): {
4
+ toggleShared: (m: Fact) => Promise<void>;
5
+ toggleConfirmed: (m: Fact) => Promise<void>;
6
+ remove: (m: Fact) => Promise<boolean>;
7
+ setFactTags: (fact: Fact, tagExtIds: string[]) => Promise<void>;
8
+ handleCellValueChanged: (event: CellValueChangedEvent<Fact>) => Promise<void>;
9
+ isDeleting: boolean;
10
+ };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * The inline fact composer's state and behaviour: draft buffers, passage collection from the
3
+ * document viewer, create/update/delete, and the "dirty" check that gates Save.
4
+ */
5
+ import type { components } from '@arbidocs/client';
6
+ import { type RefObject } from 'react';
7
+ import type { GridApi } from 'ag-grid-community';
8
+ import { type FactDateFields } from '../../facts/fact-date';
9
+ import type { Fact, FactPassageCollector } from './types';
10
+ export declare function useFactComposer(notes: Fact[], remove: (fact: Fact) => Promise<boolean>, gridApiRef: RefObject<GridApi<Fact> | null>, collector: FactPassageCollector | undefined,
11
+ /** A request to start a fact (from another surface), and its done. */
12
+ composeRequested: boolean, onComposeHandled: () => void): {
13
+ composing: boolean;
14
+ setComposing: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
+ draft: string;
16
+ setDraft: import("react").Dispatch<import("react").SetStateAction<string>>;
17
+ setBaselineText: import("react").Dispatch<import("react").SetStateAction<string>>;
18
+ draftCitations: {
19
+ doc_ext_id: string;
20
+ version?: number | null;
21
+ chunks?: components["schemas"]["CitedChunk"][];
22
+ }[] | null;
23
+ setDraftCitations: import("react").Dispatch<import("react").SetStateAction<{
24
+ doc_ext_id: string;
25
+ version?: number | null;
26
+ chunks?: components["schemas"]["CitedChunk"][];
27
+ }[] | null>>;
28
+ draftTagIds: string[];
29
+ setDraftTagIds: import("react").Dispatch<import("react").SetStateAction<string[]>>;
30
+ draftDateFields: FactDateFields;
31
+ setDraftDateFields: import("react").Dispatch<import("react").SetStateAction<FactDateFields>>;
32
+ draftShared: boolean;
33
+ setDraftShared: import("react").Dispatch<import("react").SetStateAction<boolean>>;
34
+ draftConfirmed: boolean;
35
+ setDraftConfirmed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
36
+ composerError: string | null;
37
+ setComposerError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
38
+ editingId: string | null;
39
+ composerSession: number;
40
+ editingIdRef: RefObject<string | null>;
41
+ displayedDocId: string | null;
42
+ resetComposer: () => void;
43
+ startNewFact: () => void;
44
+ saveComposer: () => Promise<void>;
45
+ deleteEditingFact: () => Promise<void>;
46
+ openEdit: (m: Fact) => void;
47
+ composerDirty: boolean;
48
+ citeDocument: (docExtId: string, target: string, opts?: {
49
+ toggle?: boolean;
50
+ }) => void;
51
+ setSourceCitationSession: (docExtId: string | null) => void;
52
+ isSaving: boolean;
53
+ DRAFT_TARGET: string;
54
+ };