@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,38 @@
1
+ /**
2
+ * The search page's rows: a passage in the flat list, a passage inside its document's group, and
3
+ * the group's header. Each is memoized against stable props from the page, so paging or moving
4
+ * the threshold doesn't re-render rows.
5
+ */
6
+ import { type MouseEvent, type ReactNode } from 'react';
7
+ import { type SearchChunk } from '@arbidocs/react';
8
+ import { type SearchDocumentGroup } from '../../retrieval/search-results';
9
+ export interface SearchRowLabels {
10
+ /** Badge on a passage that contains none of the query's words. */
11
+ meaningMatch: string;
12
+ meaningMatchTitle: string;
13
+ /** The page a grouped passage is on. */
14
+ page: (page: number) => string;
15
+ /** A grouped passage without a page. */
16
+ passage: string;
17
+ }
18
+ export declare const DEFAULT_SEARCH_ROW_LABELS: SearchRowLabels;
19
+ interface RowProps {
20
+ hit: SearchChunk;
21
+ terms: string[];
22
+ onOpen: (e: MouseEvent, hit: SearchChunk) => void;
23
+ labels: SearchRowLabels;
24
+ }
25
+ export declare const FlatResultRow: import("react").NamedExoticComponent<RowProps & {
26
+ position: number;
27
+ }>;
28
+ export declare const GroupedResultRow: import("react").NamedExoticComponent<RowProps & {
29
+ testId: string;
30
+ }>;
31
+ export declare const SearchGroupRowHeader: import("react").NamedExoticComponent<{
32
+ group: SearchDocumentGroup;
33
+ /** The document's chip. */
34
+ source: ReactNode;
35
+ isExpanded: boolean;
36
+ onToggle: (docId: string) => void;
37
+ }>;
38
+ export {};
@@ -0,0 +1,2 @@
1
+ export { ConnectedSearchPage, DEFAULT_CONNECTED_SEARCH_PAGE_LABELS, type ConnectedSearchPageProps, type ConnectedSearchPageLabels, type SearchScope, type SearchDocumentChipProps, } from './ConnectedSearchPage';
2
+ export { DEFAULT_SEARCH_ROW_LABELS, type SearchRowLabels } from './SearchResultRows';
@@ -0,0 +1,108 @@
1
+ /**
2
+ * `TagTable` bound to the connection: every tag of a kind in the open workspace (`kind="issue"`:
3
+ * every issue), or with `parentId` a label's children. The columns are the kind's fields in the
4
+ * workspace (`useTagKindSchema`), edited in place and saved as the kind's schema
5
+ * (`useUpdateTagKindSchema`); the rows are the tag list filtered by kind with links (`useTags`),
6
+ * their cells saved with `useSetTagValues`. "Add row" creates a tag of the kind (issues, people and
7
+ * organisations are flat: no parent). The workspace's people fill person columns and its tags
8
+ * link columns; the snapshot is filed in the workspace as a Word document (`.docx`, so it opens in
9
+ * the Word editor; its id goes to `onExported`, so a host can open it or send it for signature) or
10
+ * downloaded. A `filter` narrows the rows to the tagged items it lets through and to the tags
11
+ * whose name (or values) match its text, as the Tags page's filter does. A refused write is said
12
+ * through the blocks environment (`notify`).
13
+ */
14
+ import { type TagKind } from '@arbidocs/sdk/browser';
15
+ import { type TagTableProps } from '../../tags/TagTable';
16
+ import { type TagFilterMatches } from './tagCombine';
17
+ /** What the filter box searches: tag names, and optionally their field values. */
18
+ export type TagTableFilterField = 'name' | 'values';
19
+ /** What narrows a table: the tagged items a tag filter lets through, and the filter box's text. */
20
+ export interface TagTableFilter {
21
+ matches?: TagFilterMatches;
22
+ text?: string;
23
+ fields?: readonly TagTableFilterField[];
24
+ }
25
+ /**
26
+ * What a tag's values can name: the open workspace's people (person fields) and tags (link fields,
27
+ * e.g. a person's organisation, named for their chips), and the tag list itself.
28
+ */
29
+ export declare function useTagValueOptions(): {
30
+ allTags: {
31
+ external_id: string;
32
+ workspace_ext_id: string;
33
+ name: string;
34
+ instruction?: string | null | undefined;
35
+ tag_type: {
36
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
37
+ options: string[];
38
+ };
39
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
40
+ shared: boolean;
41
+ parent_ext_id?: string | null | undefined;
42
+ doctag_count: number;
43
+ facttag_count: number;
44
+ convotag_count: number;
45
+ field_values?: {
46
+ [x: string]: unknown;
47
+ } | undefined;
48
+ links?: {
49
+ docs?: {
50
+ doc_ext_id: string;
51
+ file_name: string;
52
+ note?: string | null | undefined;
53
+ citations_count: number;
54
+ updated_at: string;
55
+ }[] | undefined;
56
+ facts?: {
57
+ fact_ext_id: string;
58
+ text: string;
59
+ confirmed: boolean;
60
+ updated_at: string;
61
+ }[] | undefined;
62
+ threads?: {
63
+ conversation_ext_id: string;
64
+ title?: string | null | undefined;
65
+ updated_at: string;
66
+ }[] | undefined;
67
+ doc_count: number;
68
+ fact_count: number;
69
+ thread_count: number;
70
+ } | null | undefined;
71
+ created_by_ext_id: string;
72
+ updated_by_ext_id?: string | null | undefined;
73
+ created_at: string;
74
+ updated_at: string;
75
+ }[];
76
+ people: {
77
+ value: string;
78
+ label: string;
79
+ }[];
80
+ tagOptions: {
81
+ value: string;
82
+ label: string;
83
+ kind: "label" | "search" | "annotation" | "person" | "organisation" | "issue";
84
+ }[];
85
+ };
86
+ export interface ConnectedTagTableProps extends Pick<TagTableProps, 'onOpenDocument' | 'onOpenFact' | 'onOpenThread' | 'onOpenRow' | 'onOpenTag' | 'actions' | 'labels' | 'className' | 'testId'> {
87
+ /** The rows are the workspace's tags of this kind, oldest first; the columns its fields. */
88
+ kind: TagKind;
89
+ /** This tag's children instead (a label hierarchy; flat kinds have none), as rows of `kind`. */
90
+ parentId?: string;
91
+ /** How many documents, facts and threads each row lists (the rest are counted). Default 3. */
92
+ linksLimit?: number;
93
+ /** Narrow the rows (see {@link TagTableFilter}). */
94
+ filter?: TagTableFilter;
95
+ /** The exported document's title; default the kind's ("Issues", "People", …). */
96
+ exportTitle?: string;
97
+ /** The snapshot was filed: its document id. Absent: no export button. */
98
+ onExported?: (documentId: string) => void;
99
+ /** Offer the snapshot as a `.docx` download. Default true. */
100
+ downloadable?: boolean;
101
+ /** Offer "Add row" (where the kind is added by name). Default true. */
102
+ addRows?: boolean;
103
+ /** Edit the columns (the kind's fields). Default true. */
104
+ editColumns?: boolean;
105
+ /** Read only: no cell edits, no "Add row", no column changes. */
106
+ readOnly?: boolean;
107
+ }
108
+ export declare function ConnectedTagTable({ kind, parentId, linksLimit, filter, exportTitle, onExported, downloadable, addRows, editColumns, readOnly, ...props }: ConnectedTagTableProps): import("react").JSX.Element;
@@ -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,48 @@
1
+ /**
2
+ * ParsedPassage: binds one parsed chunk to the `HtmlPassage` block (markdown body, citation
3
+ * entity pills, copy/link/label/navigator actions). Memoized so selecting one passage does not
4
+ * re-parse the markdown of the others.
5
+ */
6
+ import type { ProcessedChunk } from '@arbidocs/react/viewers';
7
+ import type { PassageLabel } from './useDocumentLabels';
8
+ export interface ParsedPassageProps {
9
+ chunk: ProcessedChunk;
10
+ pageNumber: number | null;
11
+ isHighlighted: boolean;
12
+ isSelected: boolean;
13
+ /** One of a fact's cited passages, listed in an open Citation popover. */
14
+ isCitationHighlight: boolean;
15
+ /** The cited passage currently being read from the Citation popover. */
16
+ isActiveCitation: boolean;
17
+ /** A fact's Citation popover drives the highlights; its shades win over the selection fill. */
18
+ factCitationActive: boolean;
19
+ isCitationMode: boolean;
20
+ runIsStart: boolean;
21
+ runIsEnd: boolean;
22
+ /** Last passage index of the run; set only on the run's first member. */
23
+ runEndIndex: number | undefined;
24
+ onChunkClick: ((chunkId: string, extendFromAnchor: boolean) => void) | undefined;
25
+ formatChunkWithCitation: (content: string, pageNumber: number | undefined, chunkExtId: string | undefined) => string;
26
+ getPassageDeepLink: (chunkExtId: string | undefined) => string | null;
27
+ copyToClipboard: (text: string, metadata: {
28
+ type: 'passage' | 'link';
29
+ documentTitle: string;
30
+ pageNumber: number | undefined;
31
+ passageIndex: number | undefined;
32
+ passageContent: string;
33
+ href?: string;
34
+ }) => void;
35
+ /** Open the document's passages in the host's navigator. Absent: not offered. */
36
+ onOpenNavigator: (() => void) | undefined;
37
+ /** Labels applied to this passage. */
38
+ labels: PassageLabel[];
39
+ /** The label currently being walked, when it marks this passage. */
40
+ activeTagColor: string | undefined;
41
+ /** Open the tagging panel for this passage. */
42
+ onTagPassage: ((chunkExtId: string) => void) | undefined;
43
+ /** Walk a label's passages (the label mark's Show row). */
44
+ onShowLabel: ((tagExtId: string) => void) | undefined;
45
+ /** Take a label off this passage (the label mark's Remove row). */
46
+ onRemoveLabel: ((chunkExtId: string, tagExtId: string) => void) | undefined;
47
+ }
48
+ export declare const ParsedPassage: import("react").NamedExoticComponent<ParsedPassageProps>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The text view of a document: its parsed passages, page by page, with labels, citation picking,
3
+ * passage links and copying, and the passage a citation opened it at. Data and behaviour live in
4
+ * the hooks (labels, citation selection, lazy pages); the markup is the blocks HtmlViewer parts.
5
+ */
6
+ export interface ParsedTextViewProps {
7
+ documentId: string;
8
+ stage?: 'marker' | 'subchunk' | 'final';
9
+ onLoadSuccess?: (totalPages: number) => void;
10
+ /** Incremented to trigger scroll to current page */
11
+ scrollTrigger?: number;
12
+ /** Text zoom, a multiplier of the normal size (1 = 100%). */
13
+ zoom?: number;
14
+ /** Called by pinch and double-tap. */
15
+ onZoomChange?: (zoom: number) => void;
16
+ }
17
+ export declare function ParsedTextView({ documentId, stage, onLoadSuccess, scrollTrigger, zoom, onZoomChange, }: ParsedTextViewProps): import("react").JSX.Element;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The passage tagging panel: the `TagPassagePanel` block bound to the passage's labels and fields
3
+ * (apply, remove, a note per passage).
4
+ */
5
+ import type { components } from '@arbidocs/client';
6
+ type DocTag = components['schemas']['DocTagResponse'];
7
+ interface PassageTagPanelProps {
8
+ documentId: string;
9
+ chunkExtId: string;
10
+ chunkContent: string;
11
+ pageNumber?: number;
12
+ documentDoctags: DocTag[];
13
+ onClose: () => void;
14
+ /** Called when a tag is selected to show all chunks with that tag */
15
+ onViewTaggedChunks?: (tagExtId: string) => void;
16
+ }
17
+ export declare function PassageTagPanel({ documentId, chunkExtId, chunkContent, pageNumber, documentDoctags, onClose, onViewTaggedChunks, }: PassageTagPanelProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Utility functions for formatting citations
3
+ */
4
+ interface ChunkCopyData {
5
+ content: string;
6
+ documentTitle?: string;
7
+ documentDate?: string;
8
+ pageNumber?: number;
9
+ chunkId?: string;
10
+ }
11
+ /**
12
+ * Formats a citation in basic academic format
13
+ * @param data - The chunk and document data
14
+ * @returns Formatted citation string
15
+ */
16
+ export declare function formatCitation(data: ChunkCopyData): string;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { components } from '@arbidocs/client';
2
+ type ScopedTag = Pick<components['schemas']['TagResponse'], 'kind' | 'doctag_count' | 'facttag_count'>;
3
+ /**
4
+ * A tag of the documents' vocabulary: not a saved search, and used on documents or not used
5
+ * anywhere yet (a tag used only on facts belongs to the facts').
6
+ */
7
+ export declare function isDocumentTag(tag: ScopedTag): boolean;
8
+ export {};