@arbidocs/blocks 0.4.147 → 0.4.151

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 (339) hide show
  1. package/dist/ConnectedNativeDocxComparison-OFPIXNJB.js +35 -0
  2. package/dist/ConnectedNativeDocxComparison-OFPIXNJB.js.map +1 -0
  3. package/dist/ConnectedNativeDocxComparison-Y5BNLNH6.cjs +44 -0
  4. package/dist/ConnectedNativeDocxComparison-Y5BNLNH6.cjs.map +1 -0
  5. package/dist/ConnectedNativeDocxEditor-HTEW5JAH.cjs +46 -0
  6. package/dist/ConnectedNativeDocxEditor-HTEW5JAH.cjs.map +1 -0
  7. package/dist/ConnectedNativeDocxEditor-LRYU5HPA.js +33 -0
  8. package/dist/ConnectedNativeDocxEditor-LRYU5HPA.js.map +1 -0
  9. package/dist/ConnectedStreamedWordArtifact-QAUVUCSX.js +35 -0
  10. package/dist/ConnectedStreamedWordArtifact-QAUVUCSX.js.map +1 -0
  11. package/dist/ConnectedStreamedWordArtifact-QW74LKHN.cjs +44 -0
  12. package/dist/ConnectedStreamedWordArtifact-QW74LKHN.cjs.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 +263 -264
  22. package/dist/agents/index.js +6 -7
  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/chat/index.cjs +78 -78
  27. package/dist/chat/index.js +3 -3
  28. package/dist/{chunk-2FL7QJKJ.js → chunk-265GOG4W.js} +3 -3
  29. package/dist/{chunk-2FL7QJKJ.js.map → chunk-265GOG4W.js.map} +1 -1
  30. package/dist/{chunk-LTU35TQN.cjs → chunk-2FLWPM3B.cjs} +636 -31
  31. package/dist/chunk-2FLWPM3B.cjs.map +1 -0
  32. package/dist/{chunk-SUUPR735.js → chunk-3PCBYOIZ.js} +4 -4
  33. package/dist/{chunk-SUUPR735.js.map → chunk-3PCBYOIZ.js.map} +1 -1
  34. package/dist/{chunk-WIZ7Z7FN.js → chunk-4236BRZK.js} +46 -221
  35. package/dist/chunk-4236BRZK.js.map +1 -0
  36. package/dist/{chunk-IL3WB3YX.cjs → chunk-4JNKXOFZ.cjs} +3 -3
  37. package/dist/{chunk-IL3WB3YX.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-6I6CVX5G.cjs +22 -0
  41. package/dist/chunk-6I6CVX5G.cjs.map +1 -0
  42. package/dist/{chunk-MHFF5N65.cjs → chunk-757OYF6G.cjs} +4 -38
  43. package/dist/chunk-757OYF6G.cjs.map +1 -0
  44. package/dist/chunk-B3FMUFAW.cjs +1956 -0
  45. package/dist/chunk-B3FMUFAW.cjs.map +1 -0
  46. package/dist/{chunk-B3AHCIV5.js → chunk-BJ24VPOA.js} +4 -55
  47. package/dist/chunk-BJ24VPOA.js.map +1 -0
  48. package/dist/chunk-C7PTF6BQ.cjs +172 -0
  49. package/dist/chunk-C7PTF6BQ.cjs.map +1 -0
  50. package/dist/{chunk-LZRMXJIE.js → chunk-COA3S3CZ.js} +3 -3
  51. package/dist/{chunk-LZRMXJIE.js.map → chunk-COA3S3CZ.js.map} +1 -1
  52. package/dist/{chunk-VUR63NMQ.js → chunk-CROTH2BS.js} +6 -6
  53. package/dist/{chunk-VUR63NMQ.js.map → chunk-CROTH2BS.js.map} +1 -1
  54. package/dist/{chunk-AO7SK6WP.cjs → chunk-CU2O32Z4.cjs} +31 -31
  55. package/dist/{chunk-AO7SK6WP.cjs.map → chunk-CU2O32Z4.cjs.map} +1 -1
  56. package/dist/chunk-D3WFIFRY.cjs +659 -0
  57. package/dist/chunk-D3WFIFRY.cjs.map +1 -0
  58. package/dist/{chunk-DAHCRVPM.js → chunk-DB2OXRQC.js} +84 -82
  59. package/dist/chunk-DB2OXRQC.js.map +1 -0
  60. package/dist/{chunk-QXMR5YHC.js → chunk-DIB4JYUY.js} +19 -3
  61. package/dist/chunk-DIB4JYUY.js.map +1 -0
  62. package/dist/chunk-DVB5ZKOF.js +22 -0
  63. package/dist/chunk-DVB5ZKOF.js.map +1 -0
  64. package/dist/chunk-EYJMMGXF.js +19 -0
  65. package/dist/chunk-EYJMMGXF.js.map +1 -0
  66. package/dist/chunk-FAXXN7KI.cjs +213 -0
  67. package/dist/chunk-FAXXN7KI.cjs.map +1 -0
  68. package/dist/{chunk-2MJWWPHY.js → chunk-G4IYES7G.js} +140 -15
  69. package/dist/chunk-G4IYES7G.js.map +1 -0
  70. package/dist/{chunk-T5I4NRFP.cjs → chunk-GFOEWPAP.cjs} +8 -8
  71. package/dist/{chunk-T5I4NRFP.cjs.map → chunk-GFOEWPAP.cjs.map} +1 -1
  72. package/dist/{chunk-QI6AIHWP.cjs → chunk-GOWXP5KT.cjs} +145 -14
  73. package/dist/chunk-GOWXP5KT.cjs.map +1 -0
  74. package/dist/chunk-HALD6ZB5.cjs +18 -0
  75. package/dist/chunk-HALD6ZB5.cjs.map +1 -0
  76. package/dist/chunk-HUJF2XM2.js +6584 -0
  77. package/dist/chunk-HUJF2XM2.js.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-KQYPP72K.js +644 -0
  85. package/dist/chunk-KQYPP72K.js.map +1 -0
  86. package/dist/chunk-KUT2Y7JF.cjs +43 -0
  87. package/dist/chunk-KUT2Y7JF.cjs.map +1 -0
  88. package/dist/{chunk-6YTHQ73P.cjs → chunk-LLYZGH3L.cjs} +3 -56
  89. package/dist/chunk-LLYZGH3L.cjs.map +1 -0
  90. package/dist/{chunk-YSHIC4NJ.cjs → chunk-LXTOOUEN.cjs} +159 -154
  91. package/dist/chunk-LXTOOUEN.cjs.map +1 -0
  92. package/dist/{chunk-EVUEIBNU.js → chunk-M4S75AEJ.js} +44 -5
  93. package/dist/chunk-M4S75AEJ.js.map +1 -0
  94. package/dist/{chunk-V5OAXIBN.cjs → chunk-NPR5BGFF.cjs} +11 -11
  95. package/dist/{chunk-V5OAXIBN.cjs.map → chunk-NPR5BGFF.cjs.map} +1 -1
  96. package/dist/{chunk-PLJ7PHWU.cjs → chunk-NS7NVX4E.cjs} +3 -3
  97. package/dist/{chunk-PLJ7PHWU.cjs.map → chunk-NS7NVX4E.cjs.map} +1 -1
  98. package/dist/{chunk-AINU3EJ6.cjs → chunk-Q4BY2CQQ.cjs} +92 -90
  99. package/dist/chunk-Q4BY2CQQ.cjs.map +1 -0
  100. package/dist/chunk-QN47Q4N7.js +16 -0
  101. package/dist/chunk-QN47Q4N7.js.map +1 -0
  102. package/dist/{chunk-I2QSDQQV.cjs → chunk-QT3A4PFC.cjs} +21 -2
  103. package/dist/chunk-QT3A4PFC.cjs.map +1 -0
  104. package/dist/{chunk-ZM26YEOT.js → chunk-RY2SODRN.js} +3 -3
  105. package/dist/{chunk-ZM26YEOT.js.map → chunk-RY2SODRN.js.map} +1 -1
  106. package/dist/chunk-SDOEHEJP.js +208 -0
  107. package/dist/chunk-SDOEHEJP.js.map +1 -0
  108. package/dist/{chunk-DETZZBG2.cjs → chunk-SIB6C7P7.cjs} +43 -2
  109. package/dist/chunk-SIB6C7P7.cjs.map +1 -0
  110. package/dist/{chunk-MFY2ZNP6.cjs → chunk-SMN32BQ3.cjs} +4 -4
  111. package/dist/chunk-SMN32BQ3.cjs.map +1 -0
  112. package/dist/chunk-T74Q3MCZ.cjs +6751 -0
  113. package/dist/chunk-T74Q3MCZ.cjs.map +1 -0
  114. package/dist/{chunk-AOSUHWIL.js → chunk-TZOQKV64.js} +4 -37
  115. package/dist/chunk-TZOQKV64.js.map +1 -0
  116. package/dist/{chunk-U37AYUPI.cjs → chunk-U6JQ4KMX.cjs} +46 -233
  117. package/dist/chunk-U6JQ4KMX.cjs.map +1 -0
  118. package/dist/chunk-WFA2GVZJ.js +16 -0
  119. package/dist/chunk-WFA2GVZJ.js.map +1 -0
  120. package/dist/chunk-WU34CHU5.js +1907 -0
  121. package/dist/chunk-WU34CHU5.js.map +1 -0
  122. package/dist/{chunk-O4YPVYPO.cjs → chunk-YAEXSCUW.cjs} +364 -60
  123. package/dist/chunk-YAEXSCUW.cjs.map +1 -0
  124. package/dist/{chunk-H74HEPKT.js → chunk-YXNNNP57.js} +598 -13
  125. package/dist/chunk-YXNNNP57.js.map +1 -0
  126. package/dist/chunk-Z27QMJ6S.cjs +25 -0
  127. package/dist/chunk-Z27QMJ6S.cjs.map +1 -0
  128. package/dist/{chunk-CSI2B2H5.js → chunk-Z4NQ3TED.js} +4 -4
  129. package/dist/chunk-Z4NQ3TED.js.map +1 -0
  130. package/dist/{chunk-DGV7HQA7.js → chunk-ZLEYLCE4.js} +4 -4
  131. package/dist/chunk-ZLEYLCE4.js.map +1 -0
  132. package/dist/chunk-ZNLTEZEF.js +170 -0
  133. package/dist/chunk-ZNLTEZEF.js.map +1 -0
  134. package/dist/chunk-ZP6Q3KXU.cjs +18 -0
  135. package/dist/chunk-ZP6Q3KXU.cjs.map +1 -0
  136. package/dist/citations/index.cjs +14 -14
  137. package/dist/citations/index.js +2 -2
  138. package/dist/collaboration/index.cjs +35 -35
  139. package/dist/collaboration/index.js +1 -1
  140. package/dist/connect/docx.cjs +21 -26
  141. package/dist/connect/docx.cjs.map +1 -1
  142. package/dist/connect/docx.js +10 -26
  143. package/dist/connect/docx.js.map +1 -1
  144. package/dist/connect/index.cjs +8662 -2824
  145. package/dist/connect/index.cjs.map +1 -1
  146. package/dist/connect/index.d.ts +10 -2
  147. package/dist/connect/index.js +8467 -2670
  148. package/dist/connect/index.js.map +1 -1
  149. package/dist/connect/viewer.cjs +2357 -0
  150. package/dist/connect/viewer.cjs.map +1 -0
  151. package/dist/connect/viewer.d.ts +8 -0
  152. package/dist/connect/viewer.js +2350 -0
  153. package/dist/connect/viewer.js.map +1 -0
  154. package/dist/connection/ConnectedWorkflowsTable.d.ts +2 -12
  155. package/dist/connection/ai.d.ts +2 -9
  156. package/dist/connection/billing/AddAddonDialog.d.ts +24 -0
  157. package/dist/connection/billing/BillingCard.d.ts +18 -0
  158. package/dist/connection/billing/BillingProjectEntity.d.ts +9 -0
  159. package/dist/connection/billing/ChangePlanDialog.d.ts +20 -0
  160. package/dist/connection/billing/ChangeProPlan.d.ts +20 -0
  161. package/dist/connection/billing/CheckoutTotal.d.ts +12 -0
  162. package/dist/connection/billing/DailyCapEditor.d.ts +4 -0
  163. package/dist/connection/billing/InvoicesModal.d.ts +6 -0
  164. package/dist/connection/billing/NewProjectFlow.d.ts +14 -0
  165. package/dist/connection/billing/PlanChangeLines.d.ts +13 -0
  166. package/dist/connection/billing/PlanSelector.d.ts +50 -0
  167. package/dist/connection/billing/ProjectBilling.d.ts +24 -0
  168. package/dist/connection/billing/ProjectDetail.d.ts +16 -0
  169. package/dist/connection/billing/ProjectUsageCard.d.ts +21 -0
  170. package/dist/connection/billing/ProjectUsageContent.d.ts +18 -0
  171. package/dist/connection/billing/ProjectsTable.d.ts +13 -0
  172. package/dist/connection/billing/ReduceAddonDialog.d.ts +18 -0
  173. package/dist/connection/billing/ReferralReward.d.ts +32 -0
  174. package/dist/connection/billing/SharedProjects.d.ts +13 -0
  175. package/dist/connection/billing/StripeCheckoutModal.d.ts +32 -0
  176. package/dist/connection/billing/SubscriptionPlans.d.ts +15 -0
  177. package/dist/connection/billing/SubscriptionStatus.d.ts +10 -0
  178. package/dist/connection/billing/addon-pricing.d.ts +97 -0
  179. package/dist/connection/billing/api-error.d.ts +6 -0
  180. package/dist/connection/billing/billing-country.d.ts +14 -0
  181. package/dist/connection/billing/billing-focus.d.ts +11 -0
  182. package/dist/connection/billing/index.d.ts +22 -0
  183. package/dist/connection/billing/plan-badge.d.ts +15 -0
  184. package/dist/connection/billing/plan-change-outcome.d.ts +15 -0
  185. package/dist/connection/billing/plan-constants.d.ts +29 -0
  186. package/dist/connection/billing/plan-pricing.d.ts +67 -0
  187. package/dist/connection/billing/quota-items.d.ts +33 -0
  188. package/dist/connection/billing/referral-reward.d.ts +28 -0
  189. package/dist/connection/billing/refusal-copy.d.ts +5 -0
  190. package/dist/connection/billing/reward-balance.d.ts +19 -0
  191. package/dist/connection/billing/support.d.ts +35 -0
  192. package/dist/connection/billing/tax-quote.d.ts +36 -0
  193. package/dist/connection/billing/useAddonPurchase.d.ts +32 -0
  194. package/dist/connection/billing/useAutoRefreshPendingProjects.d.ts +11 -0
  195. package/dist/connection/billing/useCheckoutQuote.d.ts +30 -0
  196. package/dist/connection/billing/useOpenBillingPortal.d.ts +12 -0
  197. package/dist/connection/calendar/CalendarSettingsDialog.d.ts +1 -1
  198. package/dist/connection/facts/ConnectedFactsPage.d.ts +50 -0
  199. package/dist/connection/facts/FactMarkdownEditor.d.ts +57 -0
  200. package/dist/connection/facts/FactSourcesPopover.d.ts +38 -0
  201. package/dist/connection/facts/FactTextEditor.d.ts +2 -0
  202. package/dist/connection/facts/factNouns.d.ts +4 -0
  203. package/dist/connection/facts/factPageColumns.d.ts +37 -0
  204. package/dist/connection/facts/types.d.ts +127 -0
  205. package/dist/connection/facts/useFactActions.d.ts +10 -0
  206. package/dist/connection/facts/useFactComposer.d.ts +54 -0
  207. package/dist/connection/facts/useFactFilters.d.ts +101 -0
  208. package/dist/connection/facts/useFactSelection.d.ts +82 -0
  209. package/dist/connection/facts/useFactsGrid.d.ts +87 -0
  210. package/dist/connection/facts/useFactsPageView.d.ts +4 -0
  211. package/dist/connection/mail/ConnectedMailComposer.d.ts +3 -1
  212. package/dist/connection/mail/ConnectedMailbox.d.ts +4 -2
  213. package/dist/connection/mail/MailComposerForm.d.ts +4 -2
  214. package/dist/connection/mail/MailRecipientInput.d.ts +14 -0
  215. package/dist/connection/mail/index.d.ts +1 -1
  216. package/dist/connection/mail/types.d.ts +10 -0
  217. package/dist/connection/search/ConnectedSearchPage.d.ts +64 -0
  218. package/dist/connection/search/SearchResultRows.d.ts +38 -0
  219. package/dist/connection/search/index.d.ts +2 -0
  220. package/dist/connection/tags/ConnectedTagTable.d.ts +108 -0
  221. package/dist/connection/tags/ConnectedTagsPage.d.ts +55 -0
  222. package/dist/connection/tags/DocTagPassages.d.ts +25 -0
  223. package/dist/connection/tags/GlossaryExport.d.ts +7 -0
  224. package/dist/connection/tags/TagCombineFilter.d.ts +14 -0
  225. package/dist/connection/tags/TagPlacement.d.ts +16 -0
  226. package/dist/connection/tags/TagsPageSections.d.ts +36 -0
  227. package/dist/connection/tags/tagCombine.d.ts +55 -0
  228. package/dist/connection/useConnectedWorkNotifications.d.ts +7 -24
  229. package/dist/connection/viewer/ConnectedDocumentToolsProvider.d.ts +11 -0
  230. package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +21 -0
  231. package/dist/connection/viewer/FinaliseTranslationButton.d.ts +15 -0
  232. package/dist/connection/viewer/ViewerPdfPane.d.ts +46 -0
  233. package/dist/connection/viewer/parsed/ParsedPassage.d.ts +48 -0
  234. package/dist/connection/viewer/parsed/ParsedTextView.d.ts +17 -0
  235. package/dist/connection/viewer/parsed/PassageTagPanel.d.ts +18 -0
  236. package/dist/connection/viewer/parsed/citation-line.d.ts +17 -0
  237. package/dist/connection/viewer/parsed/document-tags.d.ts +8 -0
  238. package/dist/connection/viewer/parsed/useChunkTagging.d.ts +46 -0
  239. package/dist/connection/viewer/parsed/useCitationSelection.d.ts +27 -0
  240. package/dist/connection/viewer/parsed/useDocumentLabels.d.ts +38 -0
  241. package/dist/connection/viewer/parsed/useLazyPages.d.ts +18 -0
  242. package/dist/connection/viewer/parsed/usePageScrollSync.d.ts +17 -0
  243. package/dist/connection/viewer/parsed/usePassageCopy.d.ts +25 -0
  244. package/dist/connection/viewer/support.d.ts +97 -0
  245. package/dist/connection/viewer/useImageCrop.d.ts +13 -0
  246. package/dist/connection/viewer/useViewedDocument.d.ts +70 -0
  247. package/dist/connection/viewer/useViewerBlobs.d.ts +15 -0
  248. package/dist/connection/viewer/useViewerTabs.d.ts +18 -0
  249. package/dist/connection/viewer/useViewerVersions.d.ts +11 -0
  250. package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +6 -0
  251. package/dist/document-tools/index.cjs +59 -652
  252. package/dist/document-tools/index.cjs.map +1 -1
  253. package/dist/document-tools/index.js +2 -641
  254. package/dist/document-tools/index.js.map +1 -1
  255. package/dist/docx/index.cjs +48 -47
  256. package/dist/docx/index.js +4 -3
  257. package/dist/facts/FactsBulkBar.d.ts +6 -3
  258. package/dist/facts/cited-version-ref.d.ts +1 -0
  259. package/dist/facts/index.cjs +204 -1940
  260. package/dist/facts/index.cjs.map +1 -1
  261. package/dist/facts/index.d.ts +1 -0
  262. package/dist/facts/index.js +13 -1895
  263. package/dist/facts/index.js.map +1 -1
  264. package/dist/files/TagPassagePanel.d.ts +2 -1
  265. package/dist/files/ViewerChrome.d.ts +5 -4
  266. package/dist/files/ViewerControlBar.d.ts +12 -0
  267. package/dist/files/doc-labels.d.ts +35 -0
  268. package/dist/files/grid/FilterButton.d.ts +12 -0
  269. package/dist/files/grid/RowDensityControl.d.ts +18 -0
  270. package/dist/files/grid/row-density.d.ts +27 -0
  271. package/dist/files/index.cjs +778 -7099
  272. package/dist/files/index.cjs.map +1 -1
  273. package/dist/files/index.d.ts +5 -0
  274. package/dist/files/index.js +13 -6918
  275. package/dist/files/index.js.map +1 -1
  276. package/dist/index.cjs +993 -1209
  277. package/dist/index.cjs.map +1 -1
  278. package/dist/index.js +22 -355
  279. package/dist/index.js.map +1 -1
  280. package/dist/retrieval/SearchSnippet.d.ts +6 -0
  281. package/dist/retrieval/index.cjs +74 -41
  282. package/dist/retrieval/index.d.ts +2 -0
  283. package/dist/retrieval/index.js +2 -1
  284. package/dist/retrieval/search-results.d.ts +46 -0
  285. package/dist/settings/Billing.d.ts +0 -66
  286. package/dist/settings/SubscriptionParts.d.ts +1 -50
  287. package/dist/settings/index.cjs +166 -214
  288. package/dist/settings/index.d.ts +3 -2
  289. package/dist/settings/index.js +1 -1
  290. package/dist/settings/inverted-index-filter.d.ts +26 -0
  291. package/dist/studio/index.cjs +3 -3
  292. package/dist/studio/index.js +2 -2
  293. package/dist/tags/definitions.d.ts +10 -0
  294. package/dist/tags/index.d.ts +4 -1
  295. package/dist/tags/page/ExtractEntitiesDialog.d.ts +24 -0
  296. package/dist/tags/page/TagPicker.d.ts +16 -0
  297. package/dist/tags/page/tagsPageLabels.d.ts +36 -0
  298. package/dist/workflow-canvas/index.cjs +19 -20
  299. package/dist/workflow-canvas/index.cjs.map +1 -1
  300. package/dist/workflow-canvas/index.js +6 -7
  301. package/dist/workflow-canvas/index.js.map +1 -1
  302. package/node_modules/@arbidocs/coedit/package.json +1 -1
  303. package/package.json +13 -4
  304. package/dist/calendar/access-setup.d.ts +0 -8
  305. package/dist/chunk-2MJWWPHY.js.map +0 -1
  306. package/dist/chunk-3AFWGEDJ.cjs +0 -53
  307. package/dist/chunk-3AFWGEDJ.cjs.map +0 -1
  308. package/dist/chunk-6YTHQ73P.cjs.map +0 -1
  309. package/dist/chunk-7RJTEWYM.js.map +0 -1
  310. package/dist/chunk-AINU3EJ6.cjs.map +0 -1
  311. package/dist/chunk-AOSUHWIL.js.map +0 -1
  312. package/dist/chunk-B3AHCIV5.js.map +0 -1
  313. package/dist/chunk-CSI2B2H5.js.map +0 -1
  314. package/dist/chunk-DAHCRVPM.js.map +0 -1
  315. package/dist/chunk-DETZZBG2.cjs.map +0 -1
  316. package/dist/chunk-DGV7HQA7.js.map +0 -1
  317. package/dist/chunk-EVUEIBNU.js.map +0 -1
  318. package/dist/chunk-H74HEPKT.js.map +0 -1
  319. package/dist/chunk-I2QSDQQV.cjs.map +0 -1
  320. package/dist/chunk-J5CWKFSC.js +0 -170
  321. package/dist/chunk-J5CWKFSC.js.map +0 -1
  322. package/dist/chunk-LTU35TQN.cjs.map +0 -1
  323. package/dist/chunk-MFY2ZNP6.cjs.map +0 -1
  324. package/dist/chunk-MHFF5N65.cjs.map +0 -1
  325. package/dist/chunk-NRFAWUVD.js.map +0 -1
  326. package/dist/chunk-O4YPVYPO.cjs.map +0 -1
  327. package/dist/chunk-ODRHHWHY.cjs.map +0 -1
  328. package/dist/chunk-QI6AIHWP.cjs.map +0 -1
  329. package/dist/chunk-QXMR5YHC.js.map +0 -1
  330. package/dist/chunk-RFXJYIDV.js +0 -50
  331. package/dist/chunk-RFXJYIDV.js.map +0 -1
  332. package/dist/chunk-U37AYUPI.cjs.map +0 -1
  333. package/dist/chunk-WIZ7Z7FN.js.map +0 -1
  334. package/dist/chunk-XVUOMWMD.cjs +0 -177
  335. package/dist/chunk-XVUOMWMD.cjs.map +0 -1
  336. package/dist/chunk-YSHIC4NJ.cjs.map +0 -1
  337. package/dist/connection/ConnectedTagTable.d.ts +0 -32
  338. package/dist/connection/calendar/CopyField.d.ts +0 -9
  339. package/dist/connection/calendar/OpenAccessPanel.d.ts +0 -7
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Hook for managing chunk-level tagging
3
+ *
4
+ * Provides utilities for applying/removing tags to specific chunks
5
+ * within a document, and determining which tags apply to a chunk.
6
+ *
7
+ * Citations format: CitedDocument[] — a doc-first, best-first list of the
8
+ * documents (each with its cited chunks) backing the doctag's note. A doctag
9
+ * is grounded in passages, so a document that loses its last chunk drops out,
10
+ * and the doctag itself becomes ungrounded (null) once no documents remain.
11
+ */
12
+ import type { components } from '@arbidocs/client';
13
+ type CitationSources = components['schemas']['CitationSources'];
14
+ type DocTag = components['schemas']['DocTagResponse'];
15
+ type Tag = Pick<components['schemas']['TagResponse'], 'external_id'>;
16
+ type Citations = CitationSources | null | undefined;
17
+ interface UseChunkTaggingProps {
18
+ documentId: string;
19
+ documentDoctags: DocTag[];
20
+ }
21
+ interface ChunkTagState {
22
+ /** Tags that are applied to this specific chunk */
23
+ appliedTags: DocTag[];
24
+ /** Check if a specific tag is applied to this chunk */
25
+ isTagApplied: (tagExtId: string) => boolean;
26
+ /** Get the doctag for a specific tag if it applies to this chunk */
27
+ getDoctagForChunk: (tagExtId: string) => DocTag | undefined;
28
+ }
29
+ /** Every passage backing the doctag, document order then chunk order. */
30
+ export declare function getAllChunkIdsFromCitations(citations: Citations): string[];
31
+ /**
32
+ * Drop a passage. A doctag is grounded in passages, not whole documents, so a
33
+ * document that loses its last passage goes too; null once none remain, so an
34
+ * emptied doctag is ungrounded rather than grounded-in-nothing.
35
+ */
36
+ export declare function removeChunkFromCitations(citations: Citations, chunkExtId: string): Citations;
37
+ /** Add a passage under its document, ignoring duplicates. Order is the ranking. */
38
+ export declare function addChunkToCitations(citations: Citations, documentId: string, chunkExtId: string): CitationSources;
39
+ export declare function useChunkTagging({ documentId, documentDoctags }: UseChunkTaggingProps): {
40
+ getChunkTagState: (chunkExtId: string) => ChunkTagState;
41
+ toggleChunkTag: (chunkExtId: string, tag: Tag, note?: string) => Promise<void>;
42
+ updateChunkTagNote: (_chunkExtId: string, tag: Tag, note: string | null) => Promise<void>;
43
+ getChunkTagColors: (chunkExtId: string, workspaceTags: Tag[]) => string[];
44
+ isLoading: boolean;
45
+ };
46
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Passage selection for citations in the parsed viewer: drag-to-select, click / shift-click
3
+ * ranges, contiguous runs, the cited-run stepper, and the fact-citation highlight set.
4
+ */
5
+ import type { RefObject } from 'react';
6
+ import type { ProcessedPage } from '@arbidocs/react/viewers';
7
+ interface Options {
8
+ documentId: string;
9
+ containerRef: RefObject<HTMLDivElement | null>;
10
+ processedChunks: ProcessedPage[];
11
+ orderedChunkIds: string[];
12
+ pageOf: (id: string) => number | undefined;
13
+ }
14
+ export declare function useCitationSelection({ documentId, containerRef, processedChunks, orderedChunkIds, pageOf, }: Options): {
15
+ isCitationMode: boolean;
16
+ selectedChunks: Set<string>;
17
+ selectionRuns: Map<string, import("@arbidocs/react/viewers").ChunkRunInfo>;
18
+ runStartIds: string[];
19
+ runCursor: number;
20
+ gotoRun: (delta: number) => void;
21
+ handleSelectionEnd: () => void;
22
+ handleChunkClick: (chunkId: string, extendFromAnchor: boolean) => void;
23
+ factCitationSet: Set<string>;
24
+ factCitationActive: boolean;
25
+ viewingPassageId: string | null;
26
+ };
27
+ export {};
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Labels (doctags) on the parsed document: summaries, per-passage colours, the label being
3
+ * walked, and the passage being labelled. A doctag is anchored to the document, so its passages
4
+ * come with the document itself; no reverse lookup.
5
+ */
6
+ import type { components } from '@arbidocs/client';
7
+ type DocTag = components['schemas']['DocTagResponse'];
8
+ /** One label marking a passage. */
9
+ export interface PassageLabel {
10
+ tagExtId: string;
11
+ name: string;
12
+ color: string;
13
+ }
14
+ export declare function useDocumentLabels(documentId: string, doctags: DocTag[] | undefined, orderedChunkIds: string[]): {
15
+ documentDoctags: {
16
+ note?: string | null;
17
+ citations?: components["schemas"]["CitationSources"] | null;
18
+ external_id: string;
19
+ doc_ext_id: string;
20
+ tag_ext_id: string;
21
+ created_by_ext_id: string;
22
+ updated_by_ext_id?: string | null;
23
+ created_at: string;
24
+ updated_at: string;
25
+ }[];
26
+ labelSummaries: import("../../../files").DocTagSummary[];
27
+ labelsByChunk: Map<string, PassageLabel[]>;
28
+ removeLabel: (chunkExtId: string, tagExtId: string) => Promise<void>;
29
+ activeTagExtId: string | null;
30
+ activeTagColor: string | undefined;
31
+ activeChunkIds: Set<string>;
32
+ tagCursor: number;
33
+ gotoTagged: (delta: number) => void;
34
+ selectTag: (tagExtId: string | null) => void;
35
+ taggingChunkId: string | null;
36
+ setTaggingChunkId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
37
+ };
38
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Lazy page rendering for the parsed viewer: only pages near the viewport render their chunks;
3
+ * the rest idle-fill, and a target page/passage (deep link, search, citation) is pre-rendered and
4
+ * scrolled into view.
5
+ */
6
+ import type { RefObject } from 'react';
7
+ import type { ProcessedPage } from '@arbidocs/react/viewers';
8
+ interface Options {
9
+ containerRef: RefObject<HTMLDivElement | null>;
10
+ processedChunks: ProcessedPage[];
11
+ scrollTrigger?: number;
12
+ }
13
+ export declare function useLazyPages({ containerRef, processedChunks, scrollTrigger }: Options): {
14
+ renderedPages: Set<number>;
15
+ isChunkHighlighted: (chunkId: string) => boolean;
16
+ placeholderHeight: number;
17
+ };
18
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Page Scroll Sync Hook
3
+ *
4
+ * Handles bidirectional page synchronization between HTML viewer and page controls.
5
+ * Manages tab switch scrolling, passage highlighting, and manual page navigation.
6
+ */
7
+ interface UsePageScrollSyncProps {
8
+ containerRef: React.RefObject<HTMLDivElement | null>;
9
+ processedChunksLength: number;
10
+ scrollTrigger?: number;
11
+ /** Optional callback with visibility data for lazy loading */
12
+ onVisibilityUpdate?: (visibilityMap: Map<number, number>) => void;
13
+ }
14
+ export declare function usePageScrollSync({ containerRef, processedChunksLength, scrollTrigger, onVisibilityUpdate, }: UsePageScrollSyncProps): {
15
+ isChunkHighlighted: (chunkId: string) => boolean;
16
+ };
17
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Passage Copy Hook
3
+ *
4
+ * Handles citation formatting and clipboard operations for document passages.
5
+ */
6
+ import type { ViewerDocumentRecord } from '../support';
7
+ interface PassageInfo {
8
+ type: 'link' | 'passage';
9
+ documentTitle: string;
10
+ pageNumber?: number;
11
+ passageIndex?: number;
12
+ passageContent: string;
13
+ href?: string;
14
+ }
15
+ interface UsePassageCopyProps {
16
+ documentId: string;
17
+ documentData: ViewerDocumentRecord | null | undefined;
18
+ selectedWorkspaceId: string | null;
19
+ }
20
+ export declare function usePassageCopy({ documentId, documentData, selectedWorkspaceId, }: UsePassageCopyProps): {
21
+ formatChunkWithCitation: (chunkContent: string, pageNumber?: number, chunkExtId?: string) => string;
22
+ getPassageDeepLink: (chunkExtId?: string) => string;
23
+ copyToClipboard: (text: string, passageInfo?: PassageInfo) => Promise<void>;
24
+ };
25
+ export {};
@@ -0,0 +1,97 @@
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
+ /**
61
+ * A citation being edited elsewhere (a fact's sources, a field's) picks its passages in the text
62
+ * view: clicks and selections there are handed to it. Absent: passages are not pickable.
63
+ */
64
+ passageCitation?: PassageCitation;
65
+ /** Open the document's passages in the host's navigator (a passage's menu). Absent: not offered. */
66
+ openInNavigator?: (documentId: string) => void;
67
+ /** Start a new label or field in the host's editor (the passage tagging panel). Absent: not offered. */
68
+ createTag?: () => void;
69
+ /** How dates read (versions, signatures). Default: `fmtDate`. */
70
+ formatDate?: (iso: string) => string;
71
+ /** The viewer is shown in another window: PDF pages render without the page's web fonts. */
72
+ isDetached?: boolean;
73
+ }
74
+ /** A passage picked for a citation: its chunk and, when known, its page. */
75
+ export interface PickedPassage {
76
+ chunk_id: string;
77
+ page?: number;
78
+ }
79
+ /** The citation a host is editing, as the text view sees it. */
80
+ export interface PassageCitation {
81
+ /** The citation picking passages now, and the document it picks in; null when none is. */
82
+ active: {
83
+ documentId: string;
84
+ key: string | null;
85
+ } | null;
86
+ /** Passages to light (a fact's cited passages while its sources are open). */
87
+ highlighted: readonly string[];
88
+ /** Passages added to the citation. */
89
+ pick: (passages: PickedPassage[]) => void;
90
+ /** Passages taken off it. */
91
+ unpick: (chunkIds: string[]) => void;
92
+ }
93
+ export declare function DocumentViewerSupportProvider({ value, children, }: {
94
+ value: DocumentViewerSupport;
95
+ children: ReactNode;
96
+ }): import("react").JSX.Element;
97
+ 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: {