@arbidocs/blocks 0.5.145 → 0.5.147

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 (307) hide show
  1. package/README.md +5 -0
  2. package/dist/{ConnectedCallDock-JVLJEWLJ.cjs → ConnectedCallDock-6VGATAAQ.cjs} +5 -5
  3. package/dist/{ConnectedCallDock-JVLJEWLJ.cjs.map → ConnectedCallDock-6VGATAAQ.cjs.map} +1 -1
  4. package/dist/{ConnectedCallRoom-7YQRDIS3.cjs → ConnectedCallRoom-YBNERVTW.cjs} +5 -5
  5. package/dist/{ConnectedCallRoom-7YQRDIS3.cjs.map → ConnectedCallRoom-YBNERVTW.cjs.map} +1 -1
  6. package/dist/{ConnectedNativeDocxComparison-KKX27IGJ.cjs → ConnectedNativeDocxComparison-MG54YLSO.cjs} +10 -10
  7. package/dist/{ConnectedNativeDocxComparison-KKX27IGJ.cjs.map → ConnectedNativeDocxComparison-MG54YLSO.cjs.map} +1 -1
  8. package/dist/{ConnectedPresentation-JJXQBIV2.cjs → ConnectedPresentation-JZQFTC5H.cjs} +4 -4
  9. package/dist/{ConnectedPresentation-JJXQBIV2.cjs.map → ConnectedPresentation-JZQFTC5H.cjs.map} +1 -1
  10. package/dist/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs → ConnectedStreamedWordArtifact-7KZGQECL.cjs} +10 -10
  11. package/dist/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs.map → ConnectedStreamedWordArtifact-7KZGQECL.cjs.map} +1 -1
  12. package/dist/{DocumentReviewCard-ENCPTGJE.cjs → DocumentReviewCard-UDC4PNIS.cjs} +15 -14
  13. package/dist/DocumentReviewCard-UDC4PNIS.cjs.map +1 -0
  14. package/dist/{FilesViewerDialog-VJYQ7XZA.cjs → FilesViewerDialog-D5GHWK4Y.cjs} +16 -15
  15. package/dist/FilesViewerDialog-D5GHWK4Y.cjs.map +1 -0
  16. package/dist/{NativeDocxEditor-7A3SYDAJ.cjs → NativeDocxEditor-R2OKJLRY.cjs} +6 -6
  17. package/dist/{NativeDocxEditor-7A3SYDAJ.cjs.map → NativeDocxEditor-R2OKJLRY.cjs.map} +1 -1
  18. package/dist/{WorkspaceTableView-2RH33X3U.cjs → WorkspaceTableView-2NRV4CWP.cjs} +7 -6
  19. package/dist/WorkspaceTableView-2NRV4CWP.cjs.map +1 -0
  20. package/dist/agents/index.cjs +176 -175
  21. package/dist/agents/tasks/TaskRowMenu.d.ts +1 -2
  22. package/dist/agents/tasks/TaskRowMenu.js +0 -2
  23. package/dist/agents/tasks/TaskRowMenu.js.map +2 -2
  24. package/dist/agents/tasks/TaskTable.d.ts +5 -2
  25. package/dist/agents/tasks/TaskTable.js +11 -8
  26. package/dist/agents/tasks/TaskTable.js.map +2 -2
  27. package/dist/agents/tasks/taskTableLabels.js +1 -1
  28. package/dist/agents/tasks/taskTableLabels.js.map +1 -1
  29. package/dist/{ai-YX3OAC4F.cjs → ai-VLIPYNWP.cjs} +13 -13
  30. package/dist/ai-VLIPYNWP.cjs.map +1 -0
  31. package/dist/calls/index.cjs +2 -2
  32. package/dist/chat/ChatThreads.js +1 -1
  33. package/dist/chat/ChatThreads.js.map +2 -2
  34. package/dist/chat/chat-page-types.d.ts +2 -0
  35. package/dist/chat/chat-page-types.js.map +2 -2
  36. package/dist/chat/index.cjs +25 -25
  37. package/dist/{chunk-32HVYK4Q.cjs → chunk-3VPNL4EH.cjs} +14 -13
  38. package/dist/chunk-3VPNL4EH.cjs.map +1 -0
  39. package/dist/{chunk-6TU4YLFW.cjs → chunk-5TT6J67U.cjs} +3 -3
  40. package/dist/chunk-5TT6J67U.cjs.map +1 -0
  41. package/dist/{chunk-UNBORYTW.cjs → chunk-7AULM6LS.cjs} +7 -7
  42. package/dist/{chunk-UNBORYTW.cjs.map → chunk-7AULM6LS.cjs.map} +1 -1
  43. package/dist/{chunk-MBXXWTKT.cjs → chunk-AYWY4MX2.cjs} +28 -28
  44. package/dist/{chunk-MBXXWTKT.cjs.map → chunk-AYWY4MX2.cjs.map} +1 -1
  45. package/dist/{chunk-P2AZ2HX7.cjs → chunk-AZQ4XIVY.cjs} +26 -26
  46. package/dist/{chunk-P2AZ2HX7.cjs.map → chunk-AZQ4XIVY.cjs.map} +1 -1
  47. package/dist/{chunk-6JLRF7N6.cjs → chunk-BD7P4KYQ.cjs} +5 -6
  48. package/dist/chunk-BD7P4KYQ.cjs.map +1 -0
  49. package/dist/{chunk-INNHU46B.cjs → chunk-BLJET4KG.cjs} +4 -4
  50. package/dist/{chunk-INNHU46B.cjs.map → chunk-BLJET4KG.cjs.map} +1 -1
  51. package/dist/{chunk-VZKTOGZR.cjs → chunk-BLRPBEUG.cjs} +2 -2
  52. package/dist/{chunk-VZKTOGZR.cjs.map → chunk-BLRPBEUG.cjs.map} +1 -1
  53. package/dist/chunk-DKY67DA6.cjs +43 -0
  54. package/dist/chunk-DKY67DA6.cjs.map +1 -0
  55. package/dist/{chunk-N3H3YAKY.cjs → chunk-DUNXLT63.cjs} +17 -12
  56. package/dist/chunk-DUNXLT63.cjs.map +1 -0
  57. package/dist/{chunk-UOI6JJPG.cjs → chunk-EF2QQBDV.cjs} +29 -134
  58. package/dist/chunk-EF2QQBDV.cjs.map +1 -0
  59. package/dist/{chunk-3Y75LUCT.cjs → chunk-FHKBR55Q.cjs} +3 -3
  60. package/dist/{chunk-3Y75LUCT.cjs.map → chunk-FHKBR55Q.cjs.map} +1 -1
  61. package/dist/chunk-G5YLJ2YT.cjs +18 -0
  62. package/dist/{chunk-S2NQS4RC.cjs.map → chunk-G5YLJ2YT.cjs.map} +1 -1
  63. package/dist/{chunk-QW6NCUR7.cjs → chunk-GAA222SK.cjs} +5 -5
  64. package/dist/{chunk-QW6NCUR7.cjs.map → chunk-GAA222SK.cjs.map} +1 -1
  65. package/dist/{chunk-I5L24HOC.cjs → chunk-HWZT24TD.cjs} +6 -6
  66. package/dist/{chunk-I5L24HOC.cjs.map → chunk-HWZT24TD.cjs.map} +1 -1
  67. package/dist/{chunk-LVIQWRC5.cjs → chunk-KRQCUVH7.cjs} +2 -2
  68. package/dist/chunk-KRQCUVH7.cjs.map +1 -0
  69. package/dist/{chunk-6RJXO2NF.cjs → chunk-KWV4VC74.cjs} +6 -6
  70. package/dist/{chunk-6RJXO2NF.cjs.map → chunk-KWV4VC74.cjs.map} +1 -1
  71. package/dist/{chunk-UD56Y6UA.cjs → chunk-L5Q5PDTA.cjs} +4 -4
  72. package/dist/{chunk-UD56Y6UA.cjs.map → chunk-L5Q5PDTA.cjs.map} +1 -1
  73. package/dist/{chunk-XAW22O2S.cjs → chunk-LCIMYEGX.cjs} +4 -4
  74. package/dist/{chunk-XAW22O2S.cjs.map → chunk-LCIMYEGX.cjs.map} +1 -1
  75. package/dist/{chunk-A53YMUOX.cjs → chunk-LH3PDPJP.cjs} +3 -3
  76. package/dist/{chunk-A53YMUOX.cjs.map → chunk-LH3PDPJP.cjs.map} +1 -1
  77. package/dist/{chunk-BCRB42SP.cjs → chunk-LYYJDQW6.cjs} +110 -970
  78. package/dist/chunk-LYYJDQW6.cjs.map +1 -0
  79. package/dist/{chunk-OE36OY64.cjs → chunk-LZQ2XZOC.cjs} +4 -4
  80. package/dist/{chunk-OE36OY64.cjs.map → chunk-LZQ2XZOC.cjs.map} +1 -1
  81. package/dist/{chunk-WQEWVZGO.cjs → chunk-MEWRE43W.cjs} +31 -31
  82. package/dist/{chunk-WQEWVZGO.cjs.map → chunk-MEWRE43W.cjs.map} +1 -1
  83. package/dist/chunk-MWHVETKN.cjs +151 -0
  84. package/dist/chunk-MWHVETKN.cjs.map +1 -0
  85. package/dist/{chunk-33GOYI3O.cjs → chunk-ONRUHYW3.cjs} +4 -4
  86. package/dist/{chunk-33GOYI3O.cjs.map → chunk-ONRUHYW3.cjs.map} +1 -1
  87. package/dist/{chunk-KP7BQIZL.cjs → chunk-ORGGDQKZ.cjs} +43 -40
  88. package/dist/chunk-ORGGDQKZ.cjs.map +1 -0
  89. package/dist/{chunk-TMZS7IKQ.cjs → chunk-OXPIJYRU.cjs} +70 -65
  90. package/dist/chunk-OXPIJYRU.cjs.map +1 -0
  91. package/dist/{chunk-2V5HW6T5.cjs → chunk-P5TQOSKA.cjs} +6 -6
  92. package/dist/{chunk-2V5HW6T5.cjs.map → chunk-P5TQOSKA.cjs.map} +1 -1
  93. package/dist/chunk-Q25CZLK6.cjs +958 -0
  94. package/dist/chunk-Q25CZLK6.cjs.map +1 -0
  95. package/dist/{chunk-464TFVQ7.cjs → chunk-UNWDR6GG.cjs} +6 -6
  96. package/dist/{chunk-464TFVQ7.cjs.map → chunk-UNWDR6GG.cjs.map} +1 -1
  97. package/dist/{chunk-ZPIZINH2.cjs → chunk-VLHBKF4P.cjs} +164 -98
  98. package/dist/chunk-VLHBKF4P.cjs.map +1 -0
  99. package/dist/{chunk-TG2GM7WJ.cjs → chunk-WCT6FT2K.cjs} +11 -7
  100. package/dist/chunk-WCT6FT2K.cjs.map +1 -0
  101. package/dist/{chunk-O6OLY43S.cjs → chunk-WN6BLSAZ.cjs} +5 -5
  102. package/dist/{chunk-O6OLY43S.cjs.map → chunk-WN6BLSAZ.cjs.map} +1 -1
  103. package/dist/{chunk-NPRNR54M.cjs → chunk-ZCVW63DF.cjs} +4 -4
  104. package/dist/{chunk-NPRNR54M.cjs.map → chunk-ZCVW63DF.cjs.map} +1 -1
  105. package/dist/collaboration/index.cjs +34 -9
  106. package/dist/collaboration/sharing/ShareControl.d.ts +15 -6
  107. package/dist/collaboration/sharing/ShareControl.js +9 -4
  108. package/dist/collaboration/sharing/ShareControl.js.map +2 -2
  109. package/dist/collaboration/sharing/index.d.ts +1 -0
  110. package/dist/collaboration/sharing/index.js +15 -1
  111. package/dist/collaboration/sharing/index.js.map +2 -2
  112. package/dist/collaboration/sharing/one-way.d.ts +41 -0
  113. package/dist/collaboration/sharing/one-way.js +39 -0
  114. package/dist/collaboration/sharing/one-way.js.map +7 -0
  115. package/dist/connect/docx.cjs +14 -14
  116. package/dist/connect/index.cjs +4050 -3997
  117. package/dist/connect/index.cjs.map +1 -1
  118. package/dist/connect/viewer.cjs +13 -12
  119. package/dist/connection/account-cluster/ConnectedAccountCluster.js +1 -1
  120. package/dist/connection/account-cluster/ConnectedAccountCluster.js.map +1 -1
  121. package/dist/connection/agents/agentsPageParts.js +6 -2
  122. package/dist/connection/agents/agentsPageParts.js.map +2 -2
  123. package/dist/connection/command/actions.js +3 -3
  124. package/dist/connection/command/actions.js.map +2 -2
  125. package/dist/connection/conversation/ConnectedConversationSettings.js +3 -6
  126. package/dist/connection/conversation/ConnectedConversationSettings.js.map +2 -2
  127. package/dist/connection/dashboards/PanelEditor.d.ts +3 -9
  128. package/dist/connection/dashboards/PanelEditor.js +17 -124
  129. package/dist/connection/dashboards/PanelEditor.js.map +2 -2
  130. package/dist/connection/dashboards/index.d.ts +0 -1
  131. package/dist/connection/dashboards/index.js +0 -6
  132. package/dist/connection/dashboards/index.js.map +2 -2
  133. package/dist/connection/dashboards/templates.d.ts +1 -1
  134. package/dist/connection/dashboards/templates.js.map +1 -1
  135. package/dist/connection/databases/ConnectedDatabasesPage.js +46 -20
  136. package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
  137. package/dist/connection/databases/DatabaseViewsMenu.d.ts +5 -1
  138. package/dist/connection/databases/DatabaseViewsMenu.js +16 -21
  139. package/dist/connection/databases/DatabaseViewsMenu.js.map +2 -2
  140. package/dist/connection/files/bulk/ConnectedFilesBulkActions.d.ts +4 -3
  141. package/dist/connection/files/bulk/ConnectedFilesBulkActions.js +12 -18
  142. package/dist/connection/files/bulk/ConnectedFilesBulkActions.js.map +2 -2
  143. package/dist/connection/files/bulk/useDocumentBulkActions.d.ts +2 -3
  144. package/dist/connection/files/bulk/useDocumentBulkActions.js +6 -15
  145. package/dist/connection/files/bulk/useDocumentBulkActions.js.map +2 -2
  146. package/dist/connection/files/grid/cells.d.ts +7 -3
  147. package/dist/connection/files/grid/cells.js +8 -5
  148. package/dist/connection/files/grid/cells.js.map +2 -2
  149. package/dist/connection/files/grid/documentCellRenderers.d.ts +4 -1
  150. package/dist/connection/files/grid/documentCellRenderers.js +3 -2
  151. package/dist/connection/files/grid/documentCellRenderers.js.map +2 -2
  152. package/dist/connection/files/grid/documentColumns.d.ts +3 -3
  153. package/dist/connection/files/grid/documentColumns.js +4 -2
  154. package/dist/connection/files/grid/documentColumns.js.map +2 -2
  155. package/dist/connection/files/grid/useDocumentTable.js +10 -5
  156. package/dist/connection/files/grid/useDocumentTable.js.map +2 -2
  157. package/dist/connection/files/index.d.ts +1 -2
  158. package/dist/connection/files/index.js +4 -12
  159. package/dist/connection/files/index.js.map +2 -2
  160. package/dist/connection/files/review/useAiReviewLiveUpdates.js +13 -2
  161. package/dist/connection/files/review/useAiReviewLiveUpdates.js.map +2 -2
  162. package/dist/connection/files/views/ViewSelector.js +9 -21
  163. package/dist/connection/files/views/ViewSelector.js.map +2 -2
  164. package/dist/connection/files/views/useTableViews.d.ts +23 -15
  165. package/dist/connection/files/views/useTableViews.js +61 -35
  166. package/dist/connection/files/views/useTableViews.js.map +2 -2
  167. package/dist/connection/files/views/useViewWrites.d.ts +6 -0
  168. package/dist/connection/files/views/useViewWrites.js +64 -0
  169. package/dist/connection/files/views/useViewWrites.js.map +7 -0
  170. package/dist/connection/pages/BlockEditor.d.ts +32 -0
  171. package/dist/connection/pages/BlockEditor.js +175 -0
  172. package/dist/connection/pages/BlockEditor.js.map +7 -0
  173. package/dist/connection/pages/ConnectedPagesPage.d.ts +31 -0
  174. package/dist/connection/pages/ConnectedPagesPage.js +426 -0
  175. package/dist/connection/pages/ConnectedPagesPage.js.map +7 -0
  176. package/dist/connection/pages/DocumentBlocks.d.ts +46 -0
  177. package/dist/connection/pages/DocumentBlocks.js +200 -0
  178. package/dist/connection/pages/DocumentBlocks.js.map +7 -0
  179. package/dist/connection/pages/DocumentsPicker.d.ts +26 -0
  180. package/dist/connection/pages/DocumentsPicker.js +133 -0
  181. package/dist/connection/pages/DocumentsPicker.js.map +7 -0
  182. package/dist/connection/pages/PageBlockView.d.ts +22 -0
  183. package/dist/connection/pages/PageBlockView.js +82 -0
  184. package/dist/connection/pages/PageBlockView.js.map +7 -0
  185. package/dist/connection/pages/PageGrid.d.ts +26 -0
  186. package/dist/connection/pages/PageGrid.js +50 -0
  187. package/dist/connection/pages/PageGrid.js.map +7 -0
  188. package/dist/connection/pages/PageView.d.ts +24 -0
  189. package/dist/connection/pages/PageView.js +93 -0
  190. package/dist/connection/pages/PageView.js.map +7 -0
  191. package/dist/connection/pages/PagesList.d.ts +14 -0
  192. package/dist/connection/pages/PagesList.js +143 -0
  193. package/dist/connection/pages/PagesList.js.map +7 -0
  194. package/dist/connection/pages/TableViewBlock.d.ts +24 -0
  195. package/dist/connection/pages/TableViewBlock.js +82 -0
  196. package/dist/connection/pages/TableViewBlock.js.map +7 -0
  197. package/dist/connection/pages/ViewPicker.d.ts +21 -0
  198. package/dist/connection/pages/ViewPicker.js +56 -0
  199. package/dist/connection/pages/ViewPicker.js.map +7 -0
  200. package/dist/connection/pages/index.d.ts +9 -0
  201. package/dist/connection/pages/index.js +49 -0
  202. package/dist/connection/pages/index.js.map +7 -0
  203. package/dist/connection/pages/labels.d.ts +61 -0
  204. package/dist/connection/pages/labels.js +61 -0
  205. package/dist/connection/pages/labels.js.map +7 -0
  206. package/dist/connection/settings-page/featuresSection.js +2 -2
  207. package/dist/connection/settings-page/featuresSection.js.map +1 -1
  208. package/dist/connection/sharing/ResourceShareForm.js +1 -1
  209. package/dist/connection/sharing/ResourceShareForm.js.map +2 -2
  210. package/dist/connection/threads-page/ConnectedThreadsPage.js +10 -8
  211. package/dist/connection/threads-page/ConnectedThreadsPage.js.map +2 -2
  212. package/dist/connection/viewer/ConnectedDocumentViewer.js +11 -6
  213. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  214. package/dist/dashboards/ConditionsEditor.d.ts +54 -0
  215. package/dist/dashboards/ConditionsEditor.js +156 -0
  216. package/dist/dashboards/ConditionsEditor.js.map +7 -0
  217. package/dist/dashboards/index.cjs +33 -521
  218. package/dist/dashboards/index.cjs.map +1 -1
  219. package/dist/dashboards/index.d.ts +3 -2
  220. package/dist/dashboards/index.js +13 -1
  221. package/dist/dashboards/index.js.map +2 -2
  222. package/dist/databases/DatabaseFilterMenu.d.ts +18 -0
  223. package/dist/databases/DatabaseFilterMenu.js +95 -0
  224. package/dist/databases/DatabaseFilterMenu.js.map +7 -0
  225. package/dist/databases/DatabaseTable.js +1 -1
  226. package/dist/databases/DatabaseTable.js.map +1 -1
  227. package/dist/databases/DatabaseToolbar.d.ts +3 -1
  228. package/dist/databases/DatabaseToolbar.js +2 -0
  229. package/dist/databases/DatabaseToolbar.js.map +2 -2
  230. package/dist/databases/index.cjs +85 -71
  231. package/dist/databases/index.d.ts +1 -0
  232. package/dist/databases/index.js +8 -0
  233. package/dist/databases/index.js.map +2 -2
  234. package/dist/docx/NativeDocxEditor.js +3 -4
  235. package/dist/docx/NativeDocxEditor.js.map +2 -2
  236. package/dist/docx/index.cjs +38 -38
  237. package/dist/embed/index.cjs +14 -13
  238. package/dist/facts/index.cjs +43 -43
  239. package/dist/files/bulk/BulkActionsBar.d.ts +8 -5
  240. package/dist/files/bulk/BulkActionsBar.js +6 -7
  241. package/dist/files/bulk/BulkActionsBar.js.map +2 -2
  242. package/dist/files/cells/DocumentNameCell.d.ts +2 -1
  243. package/dist/files/cells/DocumentNameCell.js +1 -1
  244. package/dist/files/cells/DocumentNameCell.js.map +2 -2
  245. package/dist/files/index.cjs +237 -224
  246. package/dist/files/index.d.ts +1 -1
  247. package/dist/files/index.js +0 -2
  248. package/dist/files/index.js.map +2 -2
  249. package/dist/files/permissions.d.ts +4 -3
  250. package/dist/files/permissions.js +6 -3
  251. package/dist/files/permissions.js.map +2 -2
  252. package/dist/files/views/ViewSelectorMenu.d.ts +24 -5
  253. package/dist/files/views/ViewSelectorMenu.js +78 -51
  254. package/dist/files/views/ViewSelectorMenu.js.map +2 -2
  255. package/dist/files/views/gridViews.d.ts +34 -1
  256. package/dist/files/views/gridViews.js +28 -0
  257. package/dist/files/views/gridViews.js.map +2 -2
  258. package/dist/files/views/index.d.ts +2 -2
  259. package/dist/files/views/index.js +8 -0
  260. package/dist/files/views/index.js.map +2 -2
  261. package/dist/files/views/useGridViews.d.ts +8 -4
  262. package/dist/files/views/useGridViews.js +42 -11
  263. package/dist/files/views/useGridViews.js.map +2 -2
  264. package/dist/files/visibility.d.ts +1 -16
  265. package/dist/files/visibility.js +6 -23
  266. package/dist/files/visibility.js.map +2 -2
  267. package/dist/index.cjs +455 -430
  268. package/dist/index.cjs.map +1 -1
  269. package/dist/pages/index.cjs +1363 -0
  270. package/dist/pages/index.cjs.map +1 -0
  271. package/dist/pages/index.d.ts +14 -0
  272. package/dist/pages/index.js +3 -0
  273. package/dist/pages/index.js.map +7 -0
  274. package/dist/settings/ConversationSettingsParts.d.ts +4 -6
  275. package/dist/settings/ConversationSettingsParts.js +15 -10
  276. package/dist/settings/ConversationSettingsParts.js.map +2 -2
  277. package/dist/settings/index.cjs +145 -144
  278. package/dist/studio/index.cjs +8 -7
  279. package/dist/studio/index.cjs.map +1 -1
  280. package/dist/studio/widgets.js.map +1 -1
  281. package/dist/styles.css +1 -1
  282. package/dist/workflow-canvas/index.cjs +28 -27
  283. package/dist/workflow-canvas/index.cjs.map +1 -1
  284. package/node_modules/@arbidocs/coedit/package.json +1 -1
  285. package/package.json +10 -5
  286. package/dist/DocumentReviewCard-ENCPTGJE.cjs.map +0 -1
  287. package/dist/FilesViewerDialog-VJYQ7XZA.cjs.map +0 -1
  288. package/dist/WorkspaceTableView-2RH33X3U.cjs.map +0 -1
  289. package/dist/ai-YX3OAC4F.cjs.map +0 -1
  290. package/dist/chunk-32HVYK4Q.cjs.map +0 -1
  291. package/dist/chunk-6JLRF7N6.cjs.map +0 -1
  292. package/dist/chunk-6TU4YLFW.cjs.map +0 -1
  293. package/dist/chunk-BCRB42SP.cjs.map +0 -1
  294. package/dist/chunk-KP7BQIZL.cjs.map +0 -1
  295. package/dist/chunk-LVIQWRC5.cjs.map +0 -1
  296. package/dist/chunk-N3H3YAKY.cjs.map +0 -1
  297. package/dist/chunk-S2NQS4RC.cjs +0 -18
  298. package/dist/chunk-TG2GM7WJ.cjs.map +0 -1
  299. package/dist/chunk-TMZS7IKQ.cjs.map +0 -1
  300. package/dist/chunk-UOI6JJPG.cjs.map +0 -1
  301. package/dist/chunk-ZPIZINH2.cjs.map +0 -1
  302. package/dist/connection/dashboards/ConnectedDashboardsPage.d.ts +0 -69
  303. package/dist/connection/dashboards/ConnectedDashboardsPage.js +0 -554
  304. package/dist/connection/dashboards/ConnectedDashboardsPage.js.map +0 -7
  305. package/dist/connection/files/views/tableViews.d.ts +0 -19
  306. package/dist/connection/files/views/tableViews.js +0 -36
  307. package/dist/connection/files/views/tableViews.js.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/chat/chat-page-types.ts"],
4
- "sourcesContent": ["import type { ReactNode } from 'react'\nimport type { WorkflowStepKind } from '../agents/workflows/stepKinds'\nimport type { WorkflowStepPhase } from '../agents/workflows/run'\nimport type { MentionCandidate, MessageMentionRef } from '@arbidocs/react/shell'\nimport type { SlashMenuItem } from './SlashMenu'\n\n/**\n * The view-model of a chat page. It is the shape `useConversation()` from `@arbidocs/react` returns,\n * so `<ChatPage chat={useConversation(...)} />` works without an adapter; any other source (a demo,\n * another backend) can fill it in. Plain data and callbacks: no SDK, store or router.\n */\n/** One passage of a source document behind a citation. */\nexport interface ChatPagePassage {\n id: string\n /** The source document's id, when known (what an \"open document\" action needs). */\n documentId: string | null\n documentTitle: string\n page: number | null\n text: string\n}\n\n/** The source behind `[statement](#cite-N)` marks of an answer. */\nexport interface ChatPageCitation {\n /** The number in `(#cite-N)`. */\n num: string\n statement: string\n documentTitle: string\n page: number | null\n passages: ReadonlyArray<ChatPagePassage>\n}\n\n/** What the host gets when the reader opens a cited document. */\nexport interface ChatCitationTarget {\n documentId: string | null\n documentTitle: string\n page: number | null\n /** The cited passage (the one opened from, or the first). */\n passage: ChatPagePassage | null\n citation: ChatPageCitation\n}\n\nexport interface ChatPageMessage {\n senderName?: string\n /**\n * Written by someone else in a shared thread: shown on the left. Unset (the reader's own, or a\n * one-person chat): on the right.\n */\n fromOther?: boolean\n id: string\n role: 'user' | 'assistant'\n /** Markdown for an assistant message, plain text for a user message. */\n content: string\n status: 'streaming' | 'complete' | 'error'\n /** Why an assistant message failed. */\n error?: string\n /** Agent steps the answer took so far. */\n stepCount?: number\n /** Sources of the `[..](#cite-N)` marks in `content`. Without them the marks are quiet numbers. */\n citations?: ReadonlyArray<ChatPageCitation>\n /** The reader stopped the answer; `content` is what had streamed. */\n stopped?: boolean\n /** A user message that started a workflow step (its id): shown as that step's chip. */\n workflowStep?: string\n}\n\nexport interface ChatPageThread {\n id: string\n /** Empty until the first question titles it. */\n title: string\n}\n\nexport interface ChatPageDocument {\n id: string\n name: string\n isSelected: boolean\n}\n\n/**\n * The composer's `/` menu: its rows (commands and skills) and what picking or typing a skill does.\n * `useConnectedChat` fills it from the connection; the page filters the rows by the draft.\n */\nexport interface ChatPageSlash {\n items: ReadonlyArray<SlashMenuItem>\n /** A picked row: true when it was handled (a skill's form opened); otherwise `/name ` is inserted. */\n pick: (item: SlashMenuItem) => boolean\n /** A submitted draft: true when it named a skill (its form opened), so nothing is sent. */\n startDraft: (draft: string) => boolean\n /** The menu's \"Browse skills\" footer. Omit to hide it. */\n onBrowse?: () => void\n /** Rendered once with the composer (the skill's form). */\n launcher?: ReactNode\n}\n\nexport interface ChatPageController {\n /** The composer's `/` menu. Omit for none. */\n slash?: ChatPageSlash\n assistantMode?: 'always' | 'mentioned'\n setAssistantMode?: (mode: 'always' | 'mentioned') => void | Promise<void>\n isUpdatingAssistantMode?: boolean\n isPostingComment?: boolean\n mentionCandidates?: ReadonlyArray<MentionCandidate>\n threads: ReadonlyArray<ChatPageThread>\n activeThreadId: string\n messages: ReadonlyArray<ChatPageMessage>\n isRunning: boolean\n /** The last turn failed. */\n error: string | null\n /** A stored conversation's messages are loading. */\n isLoadingThread?: boolean\n /** The conversation list is loading. */\n isLoadingThreads?: boolean\n /** Loading or deleting a stored conversation failed. */\n historyError?: string | null\n documents: ReadonlyArray<ChatPageDocument>\n isLoadingDocuments: boolean\n isUploading: boolean\n uploadError: string | null\n send: (text: string, options?: { mentions?: MessageMentionRef[] }) => void | Promise<void>\n retry: () => void | Promise<void>\n /** Stops the running answer. Omit when the source cannot be aborted: no stop button then. */\n stop?: () => void\n selectThread: (id: string) => void\n newThread: () => void\n /** Omit to hide the delete action. */\n deleteThread?: (id: string) => void\n toggleDocument: (id: string) => void\n selectAllDocuments: () => void\n upload: (files: File[]) => void | Promise<void>\n}\n\n/** Every fixed string of the chat page. Pass a partial `labels` to translate or reword. */\nexport interface ChatPageLabels {\n /** Accessible name of the whole chat. */\n chat: string\n conversations: string\n newChat: string\n untitled: string\n deleteConversation: (title: string) => string\n /** Assistant name on the answer's byline. */\n assistant: string\n thinking: string\n steps: (count: number) => string\n responseFailed: string\n answerFailedTitle: string\n uploadFailedTitle: string\n placeholder: string\n composerAriaLabel: string\n documentsInChat: (selected: number, total: number) => string\n documentsHeading: string\n selectAllDocuments: string\n noDocuments: string\n uploadDocuments: string\n uploading: string\n emptyTitle: string\n emptyDescription: string\n emptyUploadTitle: string\n emptyUploadDescription: string\n workflows: string\n loadingDocuments: string\n stop: string\n stopped: string\n loadingConversation: string\n historyFailedTitle: string\n /** Accessible name of a citation mark. */\n citation: (num: string, source: string) => string\n /** Heading of the citation popover. */\n citationHeading: (num: string) => string\n citationNoSource: string\n openDocument: string\n page: (page: number) => string\n morePassages: (count: number) => string\n}\n\nexport const DEFAULT_CHAT_PAGE_LABELS: ChatPageLabels = {\n chat: 'Assistant chat',\n conversations: 'Conversations',\n newChat: 'New chat',\n untitled: 'New chat',\n deleteConversation: (title) => `Delete conversation ${title}`,\n assistant: 'Assistant',\n thinking: 'Thinking\u2026',\n steps: (count) => (count === 1 ? '1 step' : `${count} steps`),\n responseFailed: 'Response failed',\n answerFailedTitle: 'The answer could not be completed',\n uploadFailedTitle: 'The upload failed',\n placeholder: 'Ask about your documents',\n composerAriaLabel: 'Message the assistant',\n documentsInChat: (selected, total) => `${selected} of ${total} documents in this chat`,\n documentsHeading: 'Documents in this chat',\n selectAllDocuments: 'Select all',\n noDocuments: 'No documents yet',\n uploadDocuments: 'Upload documents',\n uploading: 'Uploading\u2026',\n emptyTitle: 'Ask about your documents',\n emptyDescription: 'Every answer is grounded in the selected documents and cites its sources.',\n emptyUploadTitle: 'Add a document to start',\n emptyUploadDescription: 'Upload the documents you want to ask about.',\n workflows: 'Workflows',\n loadingDocuments: 'Loading documents\u2026',\n stop: 'Stop generating',\n stopped: 'Stopped',\n loadingConversation: 'Loading conversation\u2026',\n historyFailedTitle: 'The conversation history could not be used',\n citation: (num, source) => (source ? `Source ${num}: ${source}` : `Source ${num}`),\n citationHeading: (num) => `Source ${num}`,\n citationNoSource: 'The passage for this source is not available.',\n openDocument: 'Open document',\n page: (page) => `Page ${page}`,\n morePassages: (count) => (count === 1 ? '1 more passage' : `${count} more passages`),\n}\n\nexport interface ChatPageProps {\n /** Open a notification at its original message once history has loaded. */\n targetMessageId?: string\n chat: ChatPageController\n /**\n * The stored thread the host names (a `?conversation=` link): selected once the thread list has it. With\n * `onConversationChange` the host hears which stored thread is on screen (`null` after a new thread) and can\n * mirror it; a link the list has not loaded yet is kept meanwhile. Absent: the chat picks its own thread.\n */\n conversationId?: string | null\n onConversationChange?: (conversationId: string | null) => void\n /**\n * `page` (default): a full-page chat; while it is mounted the dock yields (see\n * `useChatSurface`). `dock`: the same chat in the dock, which does not claim the page slot.\n */\n surface?: 'page' | 'dock'\n /** Replaces the heading (default: the active conversation's title). */\n header?: ReactNode\n /** Actions at the right of the header bar. */\n headerActions?: ReactNode\n /**\n * The workflow launcher column. A column beside the chat when the container is wide, a\n * collapsible panel under the header when it is not (so an open dock never squeezes it).\n */\n aside?: ReactNode\n /** Starter questions on the empty conversation; clicking one fills the composer. */\n prompts?: ReadonlyArray<string>\n /** Whether the empty state asks for documents before offering starter prompts. */\n documentsRequired?: boolean\n /** Heading of the empty state; wins over `labels.emptyTitle`. */\n emptyTitle?: string\n /** Sub-heading of the empty state; wins over `labels.emptyDescription`. */\n emptyDescription?: string\n /**\n * Renders an answer. Default: `ChatMessageContent` (markdown: lists, tables, a quiet numbered\n * mark with a source popover for each citation).\n */\n renderContent?: (message: ChatPageMessage) => ReactNode\n /**\n * Opens the cited document (and page) in the host's viewer. Without it the citation popover\n * shows the source and passage and offers no open action.\n */\n onOpenCitation?: (target: ChatCitationTarget) => void\n /**\n * A workflow step by id \u2014 its title, kind and phase: a message that started a step shows as that\n * step's chip, as the thread's bar draws it (else its id, as an AI step).\n */\n workflowStepOf?: (stepId: string) => WorkflowStepView | undefined\n /**\n * Container width, in rem, from which `aside` is a column beside the chat; narrower, it is a\n * button-toggled panel over the transcript. Default 60.\n */\n asideBreakpoint?: number\n /**\n * Fill the height left in the nearest scrolling ancestor below the chat's own top (the page\n * header above it, the shell bars around it), measured in dynamic viewport units so a phone's\n * collapsing URL bar cannot cut it. Use it for a chat card placed under a page header.\n */\n fillHeight?: boolean\n /** Smallest height `fillHeight` gives, in px. Default 360. */\n minHeight?: number\n /**\n * One conversation only (e.g. a workflow run's thread): no conversation list, select or New\n * chat; the host picks the thread (`chat.selectThread`).\n */\n singleThread?: boolean\n /** Drop the heading from the header bar (the host's page header already names the chat). */\n compactHeader?: boolean\n /** Accepted upload types for the file picker. */\n accept?: string\n labels?: Partial<ChatPageLabels>\n className?: string\n testIds?: Partial<{\n root: string\n transcript: string\n input: string\n send: string\n documents: string\n upload: string\n alert: string\n asideToggle: string\n aside: string\n }>\n}\n\n/** A workflow step as a chat shows it: its title, kind and where it is. */\nexport interface WorkflowStepView {\n title?: string\n kind?: WorkflowStepKind\n phase?: WorkflowStepPhase\n /** The step's document (its latest version): opened from beside its chip. */\n document?: { name: string; onOpen: () => void }\n}\n"],
5
- "mappings": ";AA6KO,MAAM,2BAA2C;AAAA,EACtD,MAAM;AAAA,EACN,eAAe;AAAA,EACf,SAAS;AAAA,EACT,UAAU;AAAA,EACV,oBAAoB,CAAC,UAAU,uBAAuB,KAAK;AAAA,EAC3D,WAAW;AAAA,EACX,UAAU;AAAA,EACV,OAAO,CAAC,UAAW,UAAU,IAAI,WAAW,GAAG,KAAK;AAAA,EACpD,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,iBAAiB,CAAC,UAAU,UAAU,GAAG,QAAQ,OAAO,KAAK;AAAA,EAC7D,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU,CAAC,KAAK,WAAY,SAAS,UAAU,GAAG,KAAK,MAAM,KAAK,UAAU,GAAG;AAAA,EAC/E,iBAAiB,CAAC,QAAQ,UAAU,GAAG;AAAA,EACvC,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,MAAM,CAAC,SAAS,QAAQ,IAAI;AAAA,EAC5B,cAAc,CAAC,UAAW,UAAU,IAAI,mBAAmB,GAAG,KAAK;AACrE;",
4
+ "sourcesContent": ["import type { ReactNode } from 'react'\nimport type { WorkflowStepKind } from '../agents/workflows/stepKinds'\nimport type { WorkflowStepPhase } from '../agents/workflows/run'\nimport type { MentionCandidate, MessageMentionRef } from '@arbidocs/react/shell'\nimport type { SlashMenuItem } from './SlashMenu'\n\n/**\n * The view-model of a chat page. It is the shape `useConversation()` from `@arbidocs/react` returns,\n * so `<ChatPage chat={useConversation(...)} />` works without an adapter; any other source (a demo,\n * another backend) can fill it in. Plain data and callbacks: no SDK, store or router.\n */\n/** One passage of a source document behind a citation. */\nexport interface ChatPagePassage {\n id: string\n /** The source document's id, when known (what an \"open document\" action needs). */\n documentId: string | null\n documentTitle: string\n page: number | null\n text: string\n}\n\n/** The source behind `[statement](#cite-N)` marks of an answer. */\nexport interface ChatPageCitation {\n /** The number in `(#cite-N)`. */\n num: string\n statement: string\n documentTitle: string\n page: number | null\n passages: ReadonlyArray<ChatPagePassage>\n}\n\n/** What the host gets when the reader opens a cited document. */\nexport interface ChatCitationTarget {\n documentId: string | null\n documentTitle: string\n page: number | null\n /** The cited passage (the one opened from, or the first). */\n passage: ChatPagePassage | null\n citation: ChatPageCitation\n}\n\nexport interface ChatPageMessage {\n senderName?: string\n /**\n * Written by someone else in a shared thread: shown on the left. Unset (the reader's own, or a\n * one-person chat): on the right.\n */\n fromOther?: boolean\n id: string\n role: 'user' | 'assistant'\n /** Markdown for an assistant message, plain text for a user message. */\n content: string\n status: 'streaming' | 'complete' | 'error'\n /** Why an assistant message failed. */\n error?: string\n /** Agent steps the answer took so far. */\n stepCount?: number\n /** Sources of the `[..](#cite-N)` marks in `content`. Without them the marks are quiet numbers. */\n citations?: ReadonlyArray<ChatPageCitation>\n /** The reader stopped the answer; `content` is what had streamed. */\n stopped?: boolean\n /** A user message that started a workflow step (its id): shown as that step's chip. */\n workflowStep?: string\n}\n\nexport interface ChatPageThread {\n id: string\n /** Empty until the first question titles it. */\n title: string\n /** False: no delete for it (a shared thread is a workspace owner's to delete). Default true. */\n canDelete?: boolean\n}\n\nexport interface ChatPageDocument {\n id: string\n name: string\n isSelected: boolean\n}\n\n/**\n * The composer's `/` menu: its rows (commands and skills) and what picking or typing a skill does.\n * `useConnectedChat` fills it from the connection; the page filters the rows by the draft.\n */\nexport interface ChatPageSlash {\n items: ReadonlyArray<SlashMenuItem>\n /** A picked row: true when it was handled (a skill's form opened); otherwise `/name ` is inserted. */\n pick: (item: SlashMenuItem) => boolean\n /** A submitted draft: true when it named a skill (its form opened), so nothing is sent. */\n startDraft: (draft: string) => boolean\n /** The menu's \"Browse skills\" footer. Omit to hide it. */\n onBrowse?: () => void\n /** Rendered once with the composer (the skill's form). */\n launcher?: ReactNode\n}\n\nexport interface ChatPageController {\n /** The composer's `/` menu. Omit for none. */\n slash?: ChatPageSlash\n assistantMode?: 'always' | 'mentioned'\n setAssistantMode?: (mode: 'always' | 'mentioned') => void | Promise<void>\n isUpdatingAssistantMode?: boolean\n isPostingComment?: boolean\n mentionCandidates?: ReadonlyArray<MentionCandidate>\n threads: ReadonlyArray<ChatPageThread>\n activeThreadId: string\n messages: ReadonlyArray<ChatPageMessage>\n isRunning: boolean\n /** The last turn failed. */\n error: string | null\n /** A stored conversation's messages are loading. */\n isLoadingThread?: boolean\n /** The conversation list is loading. */\n isLoadingThreads?: boolean\n /** Loading or deleting a stored conversation failed. */\n historyError?: string | null\n documents: ReadonlyArray<ChatPageDocument>\n isLoadingDocuments: boolean\n isUploading: boolean\n uploadError: string | null\n send: (text: string, options?: { mentions?: MessageMentionRef[] }) => void | Promise<void>\n retry: () => void | Promise<void>\n /** Stops the running answer. Omit when the source cannot be aborted: no stop button then. */\n stop?: () => void\n selectThread: (id: string) => void\n newThread: () => void\n /** Omit to hide the delete action. */\n deleteThread?: (id: string) => void\n toggleDocument: (id: string) => void\n selectAllDocuments: () => void\n upload: (files: File[]) => void | Promise<void>\n}\n\n/** Every fixed string of the chat page. Pass a partial `labels` to translate or reword. */\nexport interface ChatPageLabels {\n /** Accessible name of the whole chat. */\n chat: string\n conversations: string\n newChat: string\n untitled: string\n deleteConversation: (title: string) => string\n /** Assistant name on the answer's byline. */\n assistant: string\n thinking: string\n steps: (count: number) => string\n responseFailed: string\n answerFailedTitle: string\n uploadFailedTitle: string\n placeholder: string\n composerAriaLabel: string\n documentsInChat: (selected: number, total: number) => string\n documentsHeading: string\n selectAllDocuments: string\n noDocuments: string\n uploadDocuments: string\n uploading: string\n emptyTitle: string\n emptyDescription: string\n emptyUploadTitle: string\n emptyUploadDescription: string\n workflows: string\n loadingDocuments: string\n stop: string\n stopped: string\n loadingConversation: string\n historyFailedTitle: string\n /** Accessible name of a citation mark. */\n citation: (num: string, source: string) => string\n /** Heading of the citation popover. */\n citationHeading: (num: string) => string\n citationNoSource: string\n openDocument: string\n page: (page: number) => string\n morePassages: (count: number) => string\n}\n\nexport const DEFAULT_CHAT_PAGE_LABELS: ChatPageLabels = {\n chat: 'Assistant chat',\n conversations: 'Conversations',\n newChat: 'New chat',\n untitled: 'New chat',\n deleteConversation: (title) => `Delete conversation ${title}`,\n assistant: 'Assistant',\n thinking: 'Thinking\u2026',\n steps: (count) => (count === 1 ? '1 step' : `${count} steps`),\n responseFailed: 'Response failed',\n answerFailedTitle: 'The answer could not be completed',\n uploadFailedTitle: 'The upload failed',\n placeholder: 'Ask about your documents',\n composerAriaLabel: 'Message the assistant',\n documentsInChat: (selected, total) => `${selected} of ${total} documents in this chat`,\n documentsHeading: 'Documents in this chat',\n selectAllDocuments: 'Select all',\n noDocuments: 'No documents yet',\n uploadDocuments: 'Upload documents',\n uploading: 'Uploading\u2026',\n emptyTitle: 'Ask about your documents',\n emptyDescription: 'Every answer is grounded in the selected documents and cites its sources.',\n emptyUploadTitle: 'Add a document to start',\n emptyUploadDescription: 'Upload the documents you want to ask about.',\n workflows: 'Workflows',\n loadingDocuments: 'Loading documents\u2026',\n stop: 'Stop generating',\n stopped: 'Stopped',\n loadingConversation: 'Loading conversation\u2026',\n historyFailedTitle: 'The conversation history could not be used',\n citation: (num, source) => (source ? `Source ${num}: ${source}` : `Source ${num}`),\n citationHeading: (num) => `Source ${num}`,\n citationNoSource: 'The passage for this source is not available.',\n openDocument: 'Open document',\n page: (page) => `Page ${page}`,\n morePassages: (count) => (count === 1 ? '1 more passage' : `${count} more passages`),\n}\n\nexport interface ChatPageProps {\n /** Open a notification at its original message once history has loaded. */\n targetMessageId?: string\n chat: ChatPageController\n /**\n * The stored thread the host names (a `?conversation=` link): selected once the thread list has it. With\n * `onConversationChange` the host hears which stored thread is on screen (`null` after a new thread) and can\n * mirror it; a link the list has not loaded yet is kept meanwhile. Absent: the chat picks its own thread.\n */\n conversationId?: string | null\n onConversationChange?: (conversationId: string | null) => void\n /**\n * `page` (default): a full-page chat; while it is mounted the dock yields (see\n * `useChatSurface`). `dock`: the same chat in the dock, which does not claim the page slot.\n */\n surface?: 'page' | 'dock'\n /** Replaces the heading (default: the active conversation's title). */\n header?: ReactNode\n /** Actions at the right of the header bar. */\n headerActions?: ReactNode\n /**\n * The workflow launcher column. A column beside the chat when the container is wide, a\n * collapsible panel under the header when it is not (so an open dock never squeezes it).\n */\n aside?: ReactNode\n /** Starter questions on the empty conversation; clicking one fills the composer. */\n prompts?: ReadonlyArray<string>\n /** Whether the empty state asks for documents before offering starter prompts. */\n documentsRequired?: boolean\n /** Heading of the empty state; wins over `labels.emptyTitle`. */\n emptyTitle?: string\n /** Sub-heading of the empty state; wins over `labels.emptyDescription`. */\n emptyDescription?: string\n /**\n * Renders an answer. Default: `ChatMessageContent` (markdown: lists, tables, a quiet numbered\n * mark with a source popover for each citation).\n */\n renderContent?: (message: ChatPageMessage) => ReactNode\n /**\n * Opens the cited document (and page) in the host's viewer. Without it the citation popover\n * shows the source and passage and offers no open action.\n */\n onOpenCitation?: (target: ChatCitationTarget) => void\n /**\n * A workflow step by id \u2014 its title, kind and phase: a message that started a step shows as that\n * step's chip, as the thread's bar draws it (else its id, as an AI step).\n */\n workflowStepOf?: (stepId: string) => WorkflowStepView | undefined\n /**\n * Container width, in rem, from which `aside` is a column beside the chat; narrower, it is a\n * button-toggled panel over the transcript. Default 60.\n */\n asideBreakpoint?: number\n /**\n * Fill the height left in the nearest scrolling ancestor below the chat's own top (the page\n * header above it, the shell bars around it), measured in dynamic viewport units so a phone's\n * collapsing URL bar cannot cut it. Use it for a chat card placed under a page header.\n */\n fillHeight?: boolean\n /** Smallest height `fillHeight` gives, in px. Default 360. */\n minHeight?: number\n /**\n * One conversation only (e.g. a workflow run's thread): no conversation list, select or New\n * chat; the host picks the thread (`chat.selectThread`).\n */\n singleThread?: boolean\n /** Drop the heading from the header bar (the host's page header already names the chat). */\n compactHeader?: boolean\n /** Accepted upload types for the file picker. */\n accept?: string\n labels?: Partial<ChatPageLabels>\n className?: string\n testIds?: Partial<{\n root: string\n transcript: string\n input: string\n send: string\n documents: string\n upload: string\n alert: string\n asideToggle: string\n aside: string\n }>\n}\n\n/** A workflow step as a chat shows it: its title, kind and where it is. */\nexport interface WorkflowStepView {\n title?: string\n kind?: WorkflowStepKind\n phase?: WorkflowStepPhase\n /** The step's document (its latest version): opened from beside its chip. */\n document?: { name: string; onOpen: () => void }\n}\n"],
5
+ "mappings": ";AA+KO,MAAM,2BAA2C;AAAA,EACtD,MAAM;AAAA,EACN,eAAe;AAAA,EACf,SAAS;AAAA,EACT,UAAU;AAAA,EACV,oBAAoB,CAAC,UAAU,uBAAuB,KAAK;AAAA,EAC3D,WAAW;AAAA,EACX,UAAU;AAAA,EACV,OAAO,CAAC,UAAW,UAAU,IAAI,WAAW,GAAG,KAAK;AAAA,EACpD,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,iBAAiB,CAAC,UAAU,UAAU,GAAG,QAAQ,OAAO,KAAK;AAAA,EAC7D,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,UAAU,CAAC,KAAK,WAAY,SAAS,UAAU,GAAG,KAAK,MAAM,KAAK,UAAU,GAAG;AAAA,EAC/E,iBAAiB,CAAC,QAAQ,UAAU,GAAG;AAAA,EACvC,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,MAAM,CAAC,SAAS,QAAQ,IAAI;AAAA,EAC5B,cAAc,CAAC,UAAW,UAAU,IAAI,mBAAmB,GAAG,KAAK;AACrE;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk6RJXO2NF_cjs = require('../chunk-6RJXO2NF.cjs');
4
+ var chunkKWV4VC74_cjs = require('../chunk-KWV4VC74.cjs');
5
5
  var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
6
- var chunk2V5HW6T5_cjs = require('../chunk-2V5HW6T5.cjs');
6
+ var chunkP5TQOSKA_cjs = require('../chunk-P5TQOSKA.cjs');
7
7
  var chunkXZMYSDU4_cjs = require('../chunk-XZMYSDU4.cjs');
8
- var chunk6TU4YLFW_cjs = require('../chunk-6TU4YLFW.cjs');
8
+ var chunk5TT6J67U_cjs = require('../chunk-5TT6J67U.cjs');
9
9
  var chunkJHDCDEXY_cjs = require('../chunk-JHDCDEXY.cjs');
10
10
  var chunk5RMVFFVW_cjs = require('../chunk-5RMVFFVW.cjs');
11
11
  var chunk5F4DCIHS_cjs = require('../chunk-5F4DCIHS.cjs');
@@ -37,7 +37,7 @@ require('../chunk-PLIF5CUV.cjs');
37
37
 
38
38
  Object.defineProperty(exports, "AssistantToaster", {
39
39
  enumerable: true,
40
- get: function () { return chunk6RJXO2NF_cjs.AssistantToaster; }
40
+ get: function () { return chunkKWV4VC74_cjs.AssistantToaster; }
41
41
  });
42
42
  Object.defineProperty(exports, "ComposerAccessories", {
43
43
  enumerable: true,
@@ -181,15 +181,15 @@ Object.defineProperty(exports, "useDismissibleCard", {
181
181
  });
182
182
  Object.defineProperty(exports, "AssistantDock", {
183
183
  enumerable: true,
184
- get: function () { return chunk2V5HW6T5_cjs.AssistantDock; }
184
+ get: function () { return chunkP5TQOSKA_cjs.AssistantDock; }
185
185
  });
186
186
  Object.defineProperty(exports, "AssistantDockToggle", {
187
187
  enumerable: true,
188
- get: function () { return chunk2V5HW6T5_cjs.AssistantDockToggle; }
188
+ get: function () { return chunkP5TQOSKA_cjs.AssistantDockToggle; }
189
189
  });
190
190
  Object.defineProperty(exports, "useAssistantDock", {
191
191
  enumerable: true,
192
- get: function () { return chunk2V5HW6T5_cjs.useAssistantDock; }
192
+ get: function () { return chunkP5TQOSKA_cjs.useAssistantDock; }
193
193
  });
194
194
  Object.defineProperty(exports, "useOpenCitation", {
195
195
  enumerable: true,
@@ -197,75 +197,75 @@ Object.defineProperty(exports, "useOpenCitation", {
197
197
  });
198
198
  Object.defineProperty(exports, "AssistantModeToggle", {
199
199
  enumerable: true,
200
- get: function () { return chunk6TU4YLFW_cjs.AssistantModeToggle; }
200
+ get: function () { return chunk5TT6J67U_cjs.AssistantModeToggle; }
201
201
  });
202
202
  Object.defineProperty(exports, "ChatDocuments", {
203
203
  enumerable: true,
204
- get: function () { return chunk6TU4YLFW_cjs.ChatDocuments; }
204
+ get: function () { return chunk5TT6J67U_cjs.ChatDocuments; }
205
205
  });
206
206
  Object.defineProperty(exports, "ChatMessageContent", {
207
207
  enumerable: true,
208
- get: function () { return chunk6TU4YLFW_cjs.ChatMessageContent; }
208
+ get: function () { return chunk5TT6J67U_cjs.ChatMessageContent; }
209
209
  });
210
210
  Object.defineProperty(exports, "ChatPage", {
211
211
  enumerable: true,
212
- get: function () { return chunk6TU4YLFW_cjs.ChatPage; }
212
+ get: function () { return chunk5TT6J67U_cjs.ChatPage; }
213
213
  });
214
214
  Object.defineProperty(exports, "ChatThreadList", {
215
215
  enumerable: true,
216
- get: function () { return chunk6TU4YLFW_cjs.ChatThreadList; }
216
+ get: function () { return chunk5TT6J67U_cjs.ChatThreadList; }
217
217
  });
218
218
  Object.defineProperty(exports, "ChatThreadSelect", {
219
219
  enumerable: true,
220
- get: function () { return chunk6TU4YLFW_cjs.ChatThreadSelect; }
220
+ get: function () { return chunk5TT6J67U_cjs.ChatThreadSelect; }
221
221
  });
222
222
  Object.defineProperty(exports, "CitationMark", {
223
223
  enumerable: true,
224
- get: function () { return chunk6TU4YLFW_cjs.CitationMark; }
224
+ get: function () { return chunk5TT6J67U_cjs.CitationMark; }
225
225
  });
226
226
  Object.defineProperty(exports, "ContextChip", {
227
227
  enumerable: true,
228
- get: function () { return chunk6TU4YLFW_cjs.ContextChip; }
228
+ get: function () { return chunk5TT6J67U_cjs.ContextChip; }
229
229
  });
230
230
  Object.defineProperty(exports, "ConversationEmpty", {
231
231
  enumerable: true,
232
- get: function () { return chunk6TU4YLFW_cjs.ConversationEmpty; }
232
+ get: function () { return chunk5TT6J67U_cjs.ConversationEmpty; }
233
233
  });
234
234
  Object.defineProperty(exports, "DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS", {
235
235
  enumerable: true,
236
- get: function () { return chunk6TU4YLFW_cjs.DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS; }
236
+ get: function () { return chunk5TT6J67U_cjs.DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS; }
237
237
  });
238
238
  Object.defineProperty(exports, "DEFAULT_CHAT_PAGE_LABELS", {
239
239
  enumerable: true,
240
- get: function () { return chunk6TU4YLFW_cjs.DEFAULT_CHAT_PAGE_LABELS; }
240
+ get: function () { return chunk5TT6J67U_cjs.DEFAULT_CHAT_PAGE_LABELS; }
241
241
  });
242
242
  Object.defineProperty(exports, "DEFAULT_CONVERSATION_EMPTY_LABELS", {
243
243
  enumerable: true,
244
- get: function () { return chunk6TU4YLFW_cjs.DEFAULT_CONVERSATION_EMPTY_LABELS; }
244
+ get: function () { return chunk5TT6J67U_cjs.DEFAULT_CONVERSATION_EMPTY_LABELS; }
245
245
  });
246
246
  Object.defineProperty(exports, "DEFAULT_MESSAGE_ALERT_LABELS", {
247
247
  enumerable: true,
248
- get: function () { return chunk6TU4YLFW_cjs.DEFAULT_MESSAGE_ALERT_LABELS; }
248
+ get: function () { return chunk5TT6J67U_cjs.DEFAULT_MESSAGE_ALERT_LABELS; }
249
249
  });
250
250
  Object.defineProperty(exports, "MessageAlert", {
251
251
  enumerable: true,
252
- get: function () { return chunk6TU4YLFW_cjs.MessageAlert; }
252
+ get: function () { return chunk5TT6J67U_cjs.MessageAlert; }
253
253
  });
254
254
  Object.defineProperty(exports, "useChatSurface", {
255
255
  enumerable: true,
256
- get: function () { return chunk6TU4YLFW_cjs.useChatSurface; }
256
+ get: function () { return chunk5TT6J67U_cjs.useChatSurface; }
257
257
  });
258
258
  Object.defineProperty(exports, "useControlledThread", {
259
259
  enumerable: true,
260
- get: function () { return chunk6TU4YLFW_cjs.useControlledThread; }
260
+ get: function () { return chunk5TT6J67U_cjs.useControlledThread; }
261
261
  });
262
262
  Object.defineProperty(exports, "useRegisterEmbeddedChat", {
263
263
  enumerable: true,
264
- get: function () { return chunk6TU4YLFW_cjs.useRegisterEmbeddedChat; }
264
+ get: function () { return chunk5TT6J67U_cjs.useRegisterEmbeddedChat; }
265
265
  });
266
266
  Object.defineProperty(exports, "useStartRequestedConversation", {
267
267
  enumerable: true,
268
- get: function () { return chunk6TU4YLFW_cjs.useStartRequestedConversation; }
268
+ get: function () { return chunk5TT6J67U_cjs.useStartRequestedConversation; }
269
269
  });
270
270
  Object.defineProperty(exports, "BranchControls", {
271
271
  enumerable: true,
@@ -8,6 +8,7 @@ var chunk7D4WXUBS_cjs = require('./chunk-7D4WXUBS.cjs');
8
8
  var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
9
9
  var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
10
10
  var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
11
+ var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
11
12
  var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
12
13
  var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
13
14
  var chunkYZ25NAR3_cjs = require('./chunk-YZ25NAR3.cjs');
@@ -5160,7 +5161,7 @@ var DEFAULT_TASK_LIST_LABELS = {
5160
5161
  colShared: "Sharing",
5161
5162
  shared: "Shared with the workspace",
5162
5163
  sharedOwnerOnly: "Only the creator can change who can see this",
5163
- deleteOwnerOnly: "Only the creator or workspace owner can delete this",
5164
+ deleteOwnerOnly: "Only a workspace owner can delete this (its creator only while it is private)",
5164
5165
  goalMet: (met, total) => `${met}/${total} met`,
5165
5166
  subtasksDone: (done, total) => `${done}/${total} sub-tasks done`,
5166
5167
  expandSubtasks: "Show sub-tasks",
@@ -5215,7 +5216,6 @@ function TaskRowMenu({
5215
5216
  onDelete,
5216
5217
  onMoveTo,
5217
5218
  onOpenActivity,
5218
- onToggleShared,
5219
5219
  onGrantAccess
5220
5220
  }) {
5221
5221
  const [open, setOpen] = react.useState(false);
@@ -5275,7 +5275,6 @@ function TaskRowMenu({
5275
5275
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.History, { className: "mr-2 size-4", "aria-hidden": true }),
5276
5276
  labels.activity
5277
5277
  ] }),
5278
- isOwner && onToggleShared && /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuItem, { disabled: busy, onSelect: onToggleShared, children: task.is_shared ? "Make private" : "Share with workspace" }),
5279
5278
  canEdit && onAddSubtask && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onAddSubtask, "data-testid": `task-add-subtask-${id}`, children: [
5280
5279
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ListPlus, { className: "mr-2 size-4", "aria-hidden": true }),
5281
5280
  labels.addSubtask
@@ -5462,7 +5461,7 @@ function TaskTable(props) {
5462
5461
  const markable = selectedTasks.filter(
5463
5462
  (t) => t.status != null && (t.is_owner !== false || props.canEditShared) && isPlainTodo(t) && asTaskStatus(t.status) !== "done"
5464
5463
  );
5465
- const deletable = selectedTasks.filter((t) => t.is_owner !== false || props.isWorkspaceOwner);
5464
+ const deletable = selectedTasks.filter((t) => chunkDKY67DA6_cjs.canDeleteThread(t, Boolean(props.isWorkspaceOwner)));
5466
5465
  const rowsRef = react.useRef(rows);
5467
5466
  rowsRef.current = rows;
5468
5467
  const handleSelectionChange = (picked) => {
@@ -5623,15 +5622,17 @@ function TaskTable(props) {
5623
5622
  renderShared: (row) => {
5624
5623
  const { l: lb, props: p } = latest.current;
5625
5624
  const { task } = row;
5626
- if (!p.onToggleShared) return null;
5625
+ if (!p.onShare) return null;
5626
+ const shared = task.is_shared ?? false;
5627
5627
  return /* @__PURE__ */ jsxRuntime.jsx(
5628
5628
  ui.SharingEntity,
5629
5629
  {
5630
- shared: task.is_shared ?? false,
5631
- onToggle: (shouldShare) => latest.current.props.onToggleShared?.(task, shouldShare),
5632
- disabled: task.is_owner === false,
5633
- disabledTooltip: lb.sharedOwnerOnly,
5634
- tooltipActive: "Shared with this workspace \u2014 click to make private",
5630
+ shared,
5631
+ onToggle: (shouldShare) => {
5632
+ if (shouldShare) latest.current.props.onShare?.(task);
5633
+ },
5634
+ disabled: shared || task.is_owner === false,
5635
+ disabledTooltip: shared ? chunkDKY67DA6_cjs.sharedForGoodTooltip() : lb.sharedOwnerOnly,
5635
5636
  tooltipInactive: "Only you can see this \u2014 click to share with this workspace",
5636
5637
  "data-testid": `task-shared-${task.external_id}`
5637
5638
  }
@@ -5667,7 +5668,7 @@ function TaskTable(props) {
5667
5668
  const busy = p.busyId === id;
5668
5669
  const isOwner = task.is_owner !== false;
5669
5670
  const canEdit = isOwner || Boolean(p.canEditShared);
5670
- const canAdmin = isOwner || Boolean(p.isWorkspaceOwner);
5671
+ const canAdmin = chunkDKY67DA6_cjs.canDeleteThread(task, Boolean(p.isWorkspaceOwner));
5671
5672
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
5672
5673
  !latest.current.narrow && isOwner && task.pending_auth_request_id && p.onGrantAccess && /* @__PURE__ */ jsxRuntime.jsxs(
5673
5674
  ui.Button,
@@ -10089,5 +10090,5 @@ exports.useWorkflowView = useWorkflowView;
10089
10090
  exports.withLabelIds = withLabelIds;
10090
10091
  exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
10091
10092
  exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10092
- //# sourceMappingURL=chunk-32HVYK4Q.cjs.map
10093
- //# sourceMappingURL=chunk-32HVYK4Q.cjs.map
10093
+ //# sourceMappingURL=chunk-3VPNL4EH.cjs.map
10094
+ //# sourceMappingURL=chunk-3VPNL4EH.cjs.map