@arbidocs/blocks 0.5.135 → 0.5.137

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 (283) hide show
  1. package/dist/{ConnectedCallDock-ZNS5BS2R.cjs → ConnectedCallDock-L27WYW4Y.cjs} +21 -21
  2. package/dist/{ConnectedCallDock-ZNS5BS2R.cjs.map → ConnectedCallDock-L27WYW4Y.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-ACNVSFH7.cjs → ConnectedCallRoom-ZXSS6CVG.cjs} +14 -14
  4. package/dist/{ConnectedCallRoom-ACNVSFH7.cjs.map → ConnectedCallRoom-ZXSS6CVG.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs → ConnectedNativeDocxComparison-X2O5OIYZ.cjs} +16 -16
  6. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs.map → ConnectedNativeDocxComparison-X2O5OIYZ.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-3JXN6SRT.cjs → ConnectedPresentation-XVCFF25X.cjs} +16 -16
  8. package/dist/{ConnectedPresentation-3JXN6SRT.cjs.map → ConnectedPresentation-XVCFF25X.cjs.map} +1 -1
  9. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-GM5D7IUG.cjs} +3 -3
  10. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-GM5D7IUG.cjs.map} +1 -1
  11. package/dist/{ConnectedSlidesTab-IECS2MJI.cjs → ConnectedSlidesTab-UG2NUFPS.cjs} +14 -14
  12. package/dist/{ConnectedSlidesTab-IECS2MJI.cjs.map → ConnectedSlidesTab-UG2NUFPS.cjs.map} +1 -1
  13. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs → ConnectedStreamedWordArtifact-BI6WFIAW.cjs} +16 -16
  14. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs.map → ConnectedStreamedWordArtifact-BI6WFIAW.cjs.map} +1 -1
  15. package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-SOWXEXMC.cjs} +15 -15
  16. package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-SOWXEXMC.cjs.map} +1 -1
  17. package/dist/{FilesViewerDialog-IFF2JR2A.cjs → FilesViewerDialog-A5OAV2YP.cjs} +45 -45
  18. package/dist/{FilesViewerDialog-IFF2JR2A.cjs.map → FilesViewerDialog-A5OAV2YP.cjs.map} +1 -1
  19. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs → WorkspaceTableView-B5FAVVVA.cjs} +8 -8
  20. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs.map → WorkspaceTableView-B5FAVVVA.cjs.map} +1 -1
  21. package/dist/agents/index.cjs +297 -297
  22. package/dist/{ai-QEXZ4SYR.cjs → ai-XVDR2XYV.cjs} +25 -25
  23. package/dist/ai-XVDR2XYV.cjs.map +1 -0
  24. package/dist/calls/index.cjs +121 -121
  25. package/dist/chat/index.cjs +1 -1
  26. package/dist/{chunk-LG36LSVZ.cjs → chunk-2WHI2PAJ.cjs} +4 -4
  27. package/dist/{chunk-LG36LSVZ.cjs.map → chunk-2WHI2PAJ.cjs.map} +1 -1
  28. package/dist/{chunk-TOYKBRAU.cjs → chunk-6JI4AXAY.cjs} +12 -12
  29. package/dist/{chunk-TOYKBRAU.cjs.map → chunk-6JI4AXAY.cjs.map} +1 -1
  30. package/dist/{chunk-VCDD763Y.cjs → chunk-7HU2NQVO.cjs} +3 -3
  31. package/dist/{chunk-VCDD763Y.cjs.map → chunk-7HU2NQVO.cjs.map} +1 -1
  32. package/dist/{chunk-BN33PC5F.cjs → chunk-7QZ7F3YL.cjs} +76 -76
  33. package/dist/{chunk-BN33PC5F.cjs.map → chunk-7QZ7F3YL.cjs.map} +1 -1
  34. package/dist/{chunk-X46QYO4S.cjs → chunk-ALR6NCVR.cjs} +4 -4
  35. package/dist/{chunk-X46QYO4S.cjs.map → chunk-ALR6NCVR.cjs.map} +1 -1
  36. package/dist/{chunk-TXBXIUTX.cjs → chunk-CYA7MDHZ.cjs} +6 -6
  37. package/dist/{chunk-TXBXIUTX.cjs.map → chunk-CYA7MDHZ.cjs.map} +1 -1
  38. package/dist/{chunk-UWTCK5IN.cjs → chunk-DNWJUTK6.cjs} +6 -6
  39. package/dist/{chunk-UWTCK5IN.cjs.map → chunk-DNWJUTK6.cjs.map} +1 -1
  40. package/dist/{chunk-QFXOTJ6G.cjs → chunk-DT4ORVVI.cjs} +3 -3
  41. package/dist/{chunk-QFXOTJ6G.cjs.map → chunk-DT4ORVVI.cjs.map} +1 -1
  42. package/dist/{chunk-MEYQLQWS.cjs → chunk-EHFSR633.cjs} +13 -13
  43. package/dist/{chunk-MEYQLQWS.cjs.map → chunk-EHFSR633.cjs.map} +1 -1
  44. package/dist/{chunk-IFJBE7M5.cjs → chunk-EY23TOPI.cjs} +11 -11
  45. package/dist/{chunk-IFJBE7M5.cjs.map → chunk-EY23TOPI.cjs.map} +1 -1
  46. package/dist/{chunk-TENWM7BH.cjs → chunk-G7E5IJST.cjs} +5 -5
  47. package/dist/{chunk-TENWM7BH.cjs.map → chunk-G7E5IJST.cjs.map} +1 -1
  48. package/dist/{chunk-5GHGIDZP.cjs → chunk-GRRD7SEY.cjs} +15 -15
  49. package/dist/{chunk-5GHGIDZP.cjs.map → chunk-GRRD7SEY.cjs.map} +1 -1
  50. package/dist/{chunk-ZN2JXV65.cjs → chunk-HQ7M75LU.cjs} +64 -64
  51. package/dist/{chunk-ZN2JXV65.cjs.map → chunk-HQ7M75LU.cjs.map} +1 -1
  52. package/dist/{chunk-MMKMQZ2B.cjs → chunk-HVVD4YSE.cjs} +50 -50
  53. package/dist/{chunk-MMKMQZ2B.cjs.map → chunk-HVVD4YSE.cjs.map} +1 -1
  54. package/dist/{chunk-RSQGDXAF.cjs → chunk-K3WSXEEI.cjs} +3 -3
  55. package/dist/{chunk-RSQGDXAF.cjs.map → chunk-K3WSXEEI.cjs.map} +1 -1
  56. package/dist/{chunk-LLD4PNBW.cjs → chunk-K424CT35.cjs} +4 -4
  57. package/dist/{chunk-LLD4PNBW.cjs.map → chunk-K424CT35.cjs.map} +1 -1
  58. package/dist/{chunk-OOW7H2YD.cjs → chunk-KZWPBL2P.cjs} +6 -6
  59. package/dist/{chunk-OOW7H2YD.cjs.map → chunk-KZWPBL2P.cjs.map} +1 -1
  60. package/dist/{chunk-LFMOQALU.cjs → chunk-LWWPIYFD.cjs} +48 -48
  61. package/dist/{chunk-LFMOQALU.cjs.map → chunk-LWWPIYFD.cjs.map} +1 -1
  62. package/dist/{chunk-VPKKPHJY.cjs → chunk-M5EQGQRC.cjs} +4 -4
  63. package/dist/{chunk-VPKKPHJY.cjs.map → chunk-M5EQGQRC.cjs.map} +1 -1
  64. package/dist/{chunk-ECSOXKJQ.cjs → chunk-N5UI363Q.cjs} +3 -3
  65. package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-N5UI363Q.cjs.map} +1 -1
  66. package/dist/{chunk-FYFL3CET.cjs → chunk-NB6XGPEB.cjs} +4 -4
  67. package/dist/{chunk-FYFL3CET.cjs.map → chunk-NB6XGPEB.cjs.map} +1 -1
  68. package/dist/{chunk-C5APAFUY.cjs → chunk-PA7YEXL3.cjs} +4 -4
  69. package/dist/{chunk-C5APAFUY.cjs.map → chunk-PA7YEXL3.cjs.map} +1 -1
  70. package/dist/{chunk-R5NTEW4L.cjs → chunk-PTLILY4Q.cjs} +27 -27
  71. package/dist/{chunk-R5NTEW4L.cjs.map → chunk-PTLILY4Q.cjs.map} +1 -1
  72. package/dist/{chunk-EYXU32D7.cjs → chunk-Q77OKXYM.cjs} +6 -6
  73. package/dist/{chunk-EYXU32D7.cjs.map → chunk-Q77OKXYM.cjs.map} +1 -1
  74. package/dist/{chunk-U6XMZG6G.cjs → chunk-RDBUQCAS.cjs} +3 -3
  75. package/dist/{chunk-U6XMZG6G.cjs.map → chunk-RDBUQCAS.cjs.map} +1 -1
  76. package/dist/{chunk-FABKMTAI.cjs → chunk-REP5GA2Z.cjs} +10 -10
  77. package/dist/{chunk-FABKMTAI.cjs.map → chunk-REP5GA2Z.cjs.map} +1 -1
  78. package/dist/{chunk-ZTHYJP4G.cjs → chunk-RFPZKHZ6.cjs} +7 -7
  79. package/dist/{chunk-ZTHYJP4G.cjs.map → chunk-RFPZKHZ6.cjs.map} +1 -1
  80. package/dist/{chunk-IEAZX7L6.cjs → chunk-RIONTVEH.cjs} +7 -7
  81. package/dist/{chunk-IEAZX7L6.cjs.map → chunk-RIONTVEH.cjs.map} +1 -1
  82. package/dist/{chunk-6CGMSJLB.cjs → chunk-RJE6KXJQ.cjs} +3 -3
  83. package/dist/{chunk-6CGMSJLB.cjs.map → chunk-RJE6KXJQ.cjs.map} +1 -1
  84. package/dist/{chunk-VIUEPJ3Y.cjs → chunk-RUKEMF6Q.cjs} +35 -35
  85. package/dist/{chunk-VIUEPJ3Y.cjs.map → chunk-RUKEMF6Q.cjs.map} +1 -1
  86. package/dist/{chunk-JJZOL5MG.cjs → chunk-RYVZDFVO.cjs} +3 -3
  87. package/dist/{chunk-JJZOL5MG.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
  88. package/dist/{chunk-MMMGOZYH.cjs → chunk-SUPCMKLP.cjs} +4 -4
  89. package/dist/{chunk-MMMGOZYH.cjs.map → chunk-SUPCMKLP.cjs.map} +1 -1
  90. package/dist/{chunk-VF26CUE3.cjs → chunk-TCVDV5RF.cjs} +3 -3
  91. package/dist/{chunk-VF26CUE3.cjs.map → chunk-TCVDV5RF.cjs.map} +1 -1
  92. package/dist/{chunk-SK6LFIU2.cjs → chunk-TIBTTITZ.cjs} +3 -3
  93. package/dist/{chunk-SK6LFIU2.cjs.map → chunk-TIBTTITZ.cjs.map} +1 -1
  94. package/dist/{chunk-JYZ6UE5X.cjs → chunk-ZHGIAVAC.cjs} +28 -28
  95. package/dist/{chunk-JYZ6UE5X.cjs.map → chunk-ZHGIAVAC.cjs.map} +1 -1
  96. package/dist/connect/docx.cjs +19 -19
  97. package/dist/connect/index.cjs +991 -991
  98. package/dist/connect/viewer.cjs +33 -33
  99. package/dist/dashboards/index.cjs +1 -1
  100. package/dist/embed/index.cjs +39 -39
  101. package/dist/files/index.cjs +224 -224
  102. package/dist/index.cjs +1590 -1590
  103. package/dist/settings/index.cjs +146 -146
  104. package/dist/shell/index.cjs +87 -87
  105. package/dist/studio/index.cjs +28 -28
  106. package/dist/vite/index.cjs +11 -1
  107. package/dist/vite/index.cjs.map +1 -1
  108. package/dist/vite/index.d.ts +13 -0
  109. package/dist/vite/index.js +11 -1
  110. package/dist/vite/index.js.map +1 -1
  111. package/dist/workflow-canvas/index.cjs +53 -53
  112. package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
  113. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
  114. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
  115. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
  116. package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
  117. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
  118. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
  119. package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
  120. package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
  121. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  122. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  123. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  124. package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
  125. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  126. package/node_modules/@arbidocs/coedit/package.json +2 -2
  127. package/node_modules/@docx-editor.dev/core/README.md +25 -1
  128. package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
  129. package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
  130. package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
  131. package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
  132. package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
  133. package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
  134. package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
  135. package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
  136. package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
  137. package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
  138. package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
  139. package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
  140. package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
  141. package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
  142. package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
  143. package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
  144. package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
  145. package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
  146. package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
  147. package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
  148. package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
  149. package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
  150. package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
  151. package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
  152. package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
  153. package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
  154. package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
  155. package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
  156. package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
  157. package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
  158. package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
  159. package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
  160. package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
  161. package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
  162. package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
  163. package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
  164. package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
  165. package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
  166. package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
  167. package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
  168. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
  169. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
  170. package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
  171. package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
  172. package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
  173. package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
  174. package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
  175. package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
  176. package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
  177. package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
  178. package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
  179. package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
  180. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
  181. package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
  182. package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
  183. package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
  184. package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
  185. package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
  186. package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
  187. package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
  188. package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
  189. package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
  190. package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
  191. package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
  192. package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
  193. package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
  194. package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
  195. package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
  196. package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
  197. package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  198. package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
  199. package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
  200. package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
  201. package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
  202. package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
  203. package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
  204. package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
  205. package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
  206. package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
  207. package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
  208. package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
  209. package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
  210. package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
  211. package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
  212. package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
  213. package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
  214. package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
  215. package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
  216. package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
  217. package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
  218. package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
  219. package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
  220. package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
  221. package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
  222. package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
  223. package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
  224. package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
  225. package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
  226. package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
  227. package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
  228. package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
  229. package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
  230. package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
  231. package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
  232. package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
  233. package/node_modules/@docx-editor.dev/core/package.json +3 -2
  234. package/node_modules/@docx-editor.dev/react/README.md +71 -0
  235. package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
  236. package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
  237. package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
  238. package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
  239. package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
  240. package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
  241. package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
  242. package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
  243. package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
  244. package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
  245. package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
  246. package/node_modules/@docx-editor.dev/react/package.json +4 -3
  247. package/package.json +8 -8
  248. package/dist/ai-QEXZ4SYR.cjs.map +0 -1
  249. package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
  250. package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
  251. package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
  252. package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
  253. package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
  254. package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
  255. package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
  256. package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
  257. package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
  258. package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
  259. package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
  260. package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
  261. package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
  262. package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
  263. package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
  264. package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
  265. package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
  266. package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
  267. package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
  268. package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
  269. package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
  270. package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
  271. package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
  272. package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
  273. package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
  274. package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
  275. package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
  276. package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
  277. package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
  278. package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
  279. package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
  280. package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
  281. package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
  282. package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
  283. package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
@@ -2,8 +2,8 @@
2
2
  'use strict';
3
3
 
4
4
  var chunk5A6T4W46_cjs = require('./chunk-5A6T4W46.cjs');
5
- var chunk3YZKDCWY_cjs = require('./chunk-3YZKDCWY.cjs');
6
5
  var chunkJN5YMHGI_cjs = require('./chunk-JN5YMHGI.cjs');
6
+ var chunk3YZKDCWY_cjs = require('./chunk-3YZKDCWY.cjs');
7
7
  var chunkLIKDQBNJ_cjs = require('./chunk-LIKDQBNJ.cjs');
8
8
  var react = require('@arbidocs/react');
9
9
  var ui = require('@arbidocs/react/ui');
@@ -189,5 +189,5 @@ exports.useUsableSkillListings = useUsableSkillListings;
189
189
  exports.useWorkflowDefinitions = useWorkflowDefinitions;
190
190
  exports.useWorkflowTasks = useWorkflowTasks;
191
191
  exports.withoutMarketplace = withoutMarketplace;
192
- //# sourceMappingURL=chunk-6CGMSJLB.cjs.map
193
- //# sourceMappingURL=chunk-6CGMSJLB.cjs.map
192
+ //# sourceMappingURL=chunk-RJE6KXJQ.cjs.map
193
+ //# sourceMappingURL=chunk-RJE6KXJQ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/connection/workflows/useWorkflowTasks.ts","../src/connection/useIsExternalAccount.ts","../src/connection/workflows/useSkillsEnabled.ts","../src/connection/workflows/useHostSkills.ts","../src/connection/workflows/useNamedWorkflows.ts","../src/connection/workflows/useWorkflowDefinitions.ts"],"names":["useRunWorkflow","useStartTaskQuery","useCreateWorkflow","useUpdateConversation","useUpdateWorkflow","useArbiSessionState","useCreateWork","useBlocksEnvironment","useGrantAgentAccess","useCallback","useDocuments","useMemo","getDocumentTitle","taskComposerToCreateRequest","taskComposerToUpdateRequest","composerToWorkflowUpdate","useArbiSession","useUserSettings","useHost","skillPackWorkflows","useAssistantCopy","nameBuiltinWorkflows","useSkills","useWorkflowUsage","WEB_WORKFLOWS","DASHBOARD_OPERATIONS","mergeSkillWorkflows","DAS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M,MAAA,GAASC,kCAAA,CAAiB,OAAA,CAAQ,CAAC,EAAA,KAAO;AAC9C,MAAA,MAAM,CAAA,GAAI,IAAA,CAAK,GAAA,CAAI,EAAE,CAAA;AACrB,MAAA,OAAO,CAAA,GAAI,CAAC,CAAC,CAAA,GAAI,EAAC;AAAA,IACpB,CAAC,CAAA;AACD,IAAA,OAAO;AAAA,MACL,MAAA,EAAQ,GAAA;AAAA,MACR,aAAA;AAAA,MACA,KAAA,EAAO,aAAA,GAAgB,CAAC,GAAG,QAAA,EAAU,GAAGC,iCAAA,CAAgB,UAAA,EAAY,KAAK,CAAC,CAAA,GAAI,EAAC;AAAA,MAC/E,SAAA,EAAW,CAAC,GAAG,MAAA,EAAQ,GAAG,UAAU,CAAA;AAAA,MACpC,QAAA,EAAU,CAACC,6BAAA,EAAa,GAAG,GAAA,CAAI,MAAA,CAAO,CAAC,CAAA,KAAM,CAAA,CAAE,WAAW,CAAA,EAAGC,6BAAW;AAAA,KAC1E;AAAA,EACF,CAAA,EAAG,CAAC,UAAA,EAAY,QAAA,EAAU,OAAO,aAAA,EAAe,GAAA,EAAK,UAAU,CAAC,CAAA;AAClE","file":"chunk-6CGMSJLB.cjs","sourcesContent":["/**\n * Creating and updating work and workflows from the composer, in one place.\n *\n * \"Now\" is an assistant query with task options (the person's own run: the thread becomes a task); a plain\n * to-do creates work with no run. Any other start (a date, a repeat, an event, after another task) saves a workflow\n * that creates the work when it fires. The request mapping is shared with every host (and tested in\n * blocks): `taskComposerToCreateRequest` decides which.\n *\n * Workspace authorization is a per-run, least-privilege choice (`auth_mode`) composed over the shipped\n * workspace-access-request + grant machinery:\n * - Now -> no tier: the query runs as the person asking, with their own access.\n * - Workflow -> `scheduled_require_auth` by default (asks at run time), or `scheduled_permanent`\n * (\"keep access\"): standing membership so unattended runs can decrypt while the owner\n * is away. Only this tier grants membership.\n */\n\nimport {\n useCreateWorkflow,\n useGrantAgentAccess,\n useRunWorkflow,\n useUpdateWorkflow,\n useDocuments,\n useArbiSessionState,\n useCreateWork,\n useStartTaskQuery,\n useUpdateConversation,\n} from '@arbidocs/react'\nimport { getDocumentTitle } from '@arbidocs/react/ui'\nimport type { components } from '@arbidocs/client'\nimport { useCallback, useMemo } from 'react'\nimport {\n composerToWorkflowUpdate,\n taskComposerToCreateRequest,\n taskComposerToUpdateRequest,\n} from '../../agents/tasks/taskRequest'\nimport { type TaskComposerValues } from '../../agents/tasks/taskComposerTypes'\nimport { type WorkflowDefinition } from '../../agents/workflows/types'\nimport type { TaskPlan } from '../../agents/workflows/planSteps'\nimport { useBlocksEnvironment } from '../../provider/environment'\n\ntype Task = components['schemas']['ConversationResponse']\ntype Workflow = components['schemas']['WorkflowResponse']\n\nexport interface TaskSubmitContext {\n workflow: WorkflowDefinition\n values: TaskComposerValues\n /** Goal checklist for agent work, if one was drafted. */\n plan?: TaskPlan | null\n}\n\n/** What a composer submission created. `ran` is null for work no agent runs. */\nexport type CreateOutcome =\n | { kind: 'work'; task: Pick<Task, 'title'> & { external_id?: string }; ran: boolean | null }\n | { kind: 'workflow'; workflow: Workflow }\n\nexport function useWorkflowTasks() {\n const runWorkflow = useRunWorkflow()\n const startQuery = useStartTaskQuery()\n const createWorkflow = useCreateWorkflow()\n const updateConversation = useUpdateConversation()\n const updateWorkflowMutation = useUpdateWorkflow()\n const activeWorkspaceId = useArbiSessionState((s) => s.workspaceId)\n const createWork = useCreateWork({ workspaceId: activeWorkspaceId })\n const { openFiles } = useBlocksEnvironment()\n\n // Standing access for a workflow's agent, so its unattended runs can read the workspace. An agent\n // that is already a member makes the server refuse the re-grant: that is no failure here.\n const { mutateAsync: grant } = useGrantAgentAccess()\n const grantAgentAccess = useCallback(\n (agentExtId: string, workspaceId: string) =>\n grant({ agentExtId, workspaceId }).then(\n () => undefined,\n () => undefined\n ),\n [grant]\n )\n // File names for the prompt's wording (\"the document <name>\"): the server is told the ids as well.\n const { data: documents = [] } = useDocuments()\n const documentTitles = useMemo(\n () =>\n Object.fromEntries(documents.map((d) => [d.external_id, getDocumentTitle(d, d.external_id)])),\n [documents]\n )\n\n /**\n * Create work or a workflow. `forceWorkflow` is for the workflow dialog, where even a reminder is\n * saved as a workflow.\n */\n const create = useCallback(\n async (ctx: TaskSubmitContext, forceWorkflow = false): Promise<CreateOutcome> => {\n const request = taskComposerToCreateRequest(\n { ...ctx, documentTitles, plan: ctx.plan ?? null },\n activeWorkspaceId ?? undefined,\n forceWorkflow\n )\n if (request.kind === 'workflow') {\n const workflow = await createWorkflow.mutateAsync(request.body)\n // Keep access: deposit the key for the agent the server assigned (the Assistant when none was\n // picked), while the owner is here, so unattended runs start on their own.\n const workspaceId = workflow.workspace_ext_id ?? request.body.workspace_ext_id\n if (\n workflow.auth_mode === 'scheduled_permanent' &&\n !workflow.on_demand &&\n workflow.agent_ext_id &&\n workspaceId\n ) {\n await grantAgentAccess(workflow.agent_ext_id, workspaceId)\n }\n if (ctx.workflow.documentAction && ctx.values.when === 'now' && !forceWorkflow) {\n const result = await runWorkflow.mutateAsync(workflow.external_id)\n if (result.error) throw new Error(result.error)\n openFiles()\n }\n return { kind: 'workflow', workflow }\n }\n if (request.kind === 'query') {\n // Run now is the person's own assistant query: it makes the thread a task and runs it.\n const { conversationId } = await startQuery.start(request.query)\n return {\n kind: 'work',\n task: { external_id: conversationId, title: request.query.task.title ?? null },\n ran: true,\n }\n }\n // A plain to-do (or reminder): a task with no run.\n const task = await createWork.mutateAsync(request.body)\n return { kind: 'work', task, ran: null }\n },\n [\n activeWorkspaceId,\n createWork,\n createWorkflow,\n documentTitles,\n grantAgentAccess,\n startQuery,\n runWorkflow,\n openFiles,\n ]\n )\n\n /** PATCH the editable fields of a task (the instruction, workspace and agent stay as created). */\n const update = useCallback(\n async (task: Pick<Task, 'external_id'> & { is_owner?: boolean }, ctx: TaskSubmitContext) => {\n const patch = taskComposerToUpdateRequest({ ...ctx, plan: ctx.plan ?? null })\n // Who can see a task is its owner's to change: an editor's save leaves it out.\n if (task.is_owner === false) delete patch.shared\n await updateConversation.mutateAsync({ conversationId: task.external_id, patch })\n },\n [updateConversation]\n )\n\n /** PATCH a workflow: its name, trigger and action. */\n const updateWorkflow = useCallback(\n async (\n workflow: Pick<Workflow, 'external_id' | 'agent_ext_id' | 'workspace_ext_id'> & {\n is_owner?: boolean\n },\n ctx: TaskSubmitContext\n ) => {\n const patch = composerToWorkflowUpdate({ ...ctx, documentTitles, plan: ctx.plan ?? null })\n // Sharing a workflow is its owner's: an editor's save leaves it out.\n if (workflow.is_owner === false) delete patch.shared\n const workspaceId = workflow.workspace_ext_id ?? activeWorkspaceId\n const updated = await updateWorkflowMutation.mutateAsync({\n workflowId: workflow.external_id,\n patch,\n })\n // The agent the server keeps (the Assistant when none was picked) gets the key for unattended runs.\n const agentId = updated.agent_ext_id ?? patch.agent_ext_id ?? workflow.agent_ext_id\n if (\n updated.auth_mode === 'scheduled_permanent' &&\n !updated.on_demand &&\n agentId &&\n workspaceId\n ) {\n await grantAgentAccess(agentId, workspaceId)\n }\n },\n [activeWorkspaceId, documentTitles, grantAgentAccess, updateWorkflowMutation]\n )\n\n return {\n create,\n update,\n updateWorkflow,\n isPending:\n createWork.isPending ||\n startQuery.isPending ||\n createWorkflow.isPending ||\n updateConversation.isPending ||\n updateWorkflowMutation.isPending,\n }\n}\n","import { useArbiSession } from '@arbidocs/react'\n\n/** The account fields that say it is an external one. */\ninterface AccountKind {\n temporary_access_only?: boolean | null\n user_type?: string | null\n}\n\n/** An external account: temporary access to shared workspaces only. */\nexport const isExternalAccount = (user: AccountKind | null | undefined): boolean =>\n !!user && (user.temporary_access_only === true || user.user_type === 'external')\n\n/**\n * Whether the signed-in person is an external guest. They get the built-in skills and the host's\n * skill packs, never the marketplace (the backend enforces it as well).\n */\nexport function useIsExternalAccount(): boolean {\n return isExternalAccount(useArbiSession().user)\n}\n\n/** Skill listings without the marketplace's (`visibility: global`): what an external guest gets. */\nexport const withoutMarketplace = <T extends { visibility?: string | null }>(listings: T[]): T[] =>\n listings.filter((s) => s.visibility !== 'global')\n","/**\n * The one gate for everything skill-shaped in the app: the empty chat's Start list, the skill\n * entries of the slash menu, the sidebar's Skills item, the Skills browser's entry points and the\n * typed `/skill` interception. It is the personal `show_skills` user setting, default off; the\n * switch lives in Settings, Experimental (developers only), so today only developers have it.\n */\n\nimport { useUserSettings } from '@arbidocs/react'\nimport { useIsExternalAccount } from '../useIsExternalAccount'\n\nexport function useSkillsEnabled(): boolean {\n const { data: userSettings } = useUserSettings()\n return userSettings?.show_skills ?? false\n}\n\n/**\n * Whether the Skills browser (the marketplace: \"Browse skills\", the Skills menu entry) is offered:\n * to skills users, never to an external guest (the backend enforces it as well).\n */\nexport function useCanBrowseSkills(): boolean {\n const skillsEnabled = useSkillsEnabled()\n const isExternal = useIsExternalAccount()\n return skillsEnabled && !isExternal\n}\n","/**\n * The host's skill packs (`host.workflows.skillPacks`) as the kit's workflows, and the `/` menu's\n * rows for them: one section per heading (a category, else a pack's label).\n */\nimport { useMemo } from 'react'\nimport { skillPackWorkflows, type SkillPackWorkflow } from '../../agents/workflows/skillPack'\nimport type { SlashMenuItem } from '../../chat/SlashMenu'\nimport { useHost } from '../../provider/host'\n\n/** The section heading of a pack without a label or category. */\nconst DEFAULT_PACK_LABEL = 'Skills from this site'\n\nconst NO_PACKS: SkillPackWorkflow[] = []\n\nexport function useHostSkills(): SkillPackWorkflow[] {\n const packs = useHost().workflows?.skillPacks\n return useMemo(() => (packs?.length ? packs.flatMap(skillPackWorkflows) : NO_PACKS), [packs])\n}\n\n/**\n * A pack skill's `/` menu row. Its section is its heading (its category, else its pack's label), so\n * skills of several packs under one heading share one section.\n */\nexport function hostSkillItem(workflow: SkillPackWorkflow): SlashMenuItem {\n const label = workflow.category ?? workflow.pack.label ?? DEFAULT_PACK_LABEL\n return {\n name: workflow.id,\n description: workflow.description,\n kind: 'skill',\n group: { id: `pack-${label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`, label },\n }\n}\n","import { useMemo } from 'react'\nimport { useAssistantCopy } from '@arbidocs/react/shell'\nimport { nameBuiltinWorkflows } from '../../agents/workflows/catalogue/seed'\nimport type { WorkflowDefinition } from '../../agents/workflows/types'\n\n/** The seeded workflows in the host's assistant name (`nameBuiltinWorkflows`). */\nexport function useNamedWorkflows(\n workflows: ReadonlyArray<WorkflowDefinition>\n): WorkflowDefinition[] {\n const copy = useAssistantCopy()\n return useMemo(() => nameBuiltinWorkflows(workflows, copy), [workflows, copy])\n}\n","/**\n * The one list of workflows: the seeded ones plus every skill the user can invoke (each degraded\n * to a single-field form from its `arg_hint`). The dashboard tiles, the slash menu, tasks and\n * agents all read this.\n */\n\nimport { useMemo } from 'react'\nimport { useSkills } from '@arbidocs/react'\nimport { mergeSkillWorkflows } from '../../agents/workflows/workflow'\nimport { type WorkflowDefinition } from '../../agents/workflows/types'\nimport {\n CUSTOM_TASK,\n DASHBOARD_OPERATIONS,\n DASHBOARD_PINNED,\n REMIND_TASK,\n} from '../../agents/workflows/catalogue/seed'\nimport { useSkillsEnabled } from './useSkillsEnabled'\nimport { useHostSkills } from './useHostSkills'\nimport { useIsExternalAccount, withoutMarketplace } from '../useIsExternalAccount'\nimport { sortByRecentUse, useWorkflowUsage } from '../../agents/workflows/catalogue/workflow-usage'\nimport { WEB_WORKFLOWS } from '../../agents/workflows/catalogue/registry'\nimport { useNamedWorkflows } from './useNamedWorkflows'\n\nexport interface UseWorkflowDefinitionsResult {\n /**\n * Every skill workflow of this host: built-ins, the host's skill packs, then the user's and the\n * marketplace's (one list).\n */\n skills: WorkflowDefinition[]\n /** The user has skills switched on (`show_skills`): the gate of every skill-shaped surface. */\n skillsEnabled: boolean\n /**\n * The empty chat's Start section: built-ins first (their own order), then the user's own and\n * marketplace skills by recent use, then name. EMPTY for users without skills enabled.\n */\n start: WorkflowDefinition[]\n /** The dashboard Start band: pinned skills in order, then the operation launchers. */\n dashboard: WorkflowDefinition[]\n /** What a task can run: schedulable skills plus a free instruction and a reminder. */\n forTasks: WorkflowDefinition[]\n}\n\n/**\n * The skill listings a person may use from the menus: a host pack's slug is the pack's (an\n * installed copy is the same skill), and an external guest gets no marketplace skills.\n */\nexport function useUsableSkillListings(hostSkills: ReadonlyArray<WorkflowDefinition>) {\n const { data: listings } = useSkills()\n const isExternal = useIsExternalAccount()\n return useMemo(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n const usable = (listings ?? []).filter((s) => !packSlugs.has(s.slug))\n return isExternal ? withoutMarketplace(usable) : usable\n }, [listings, hostSkills, isExternal])\n}\n\nexport function useWorkflowDefinitions(): UseWorkflowDefinitionsResult {\n const hostSkills = useHostSkills()\n const listings = useUsableSkillListings(hostSkills)\n const usage = useWorkflowUsage()\n const skillsEnabled = useSkillsEnabled()\n const web = useNamedWorkflows(WEB_WORKFLOWS)\n const operations = useNamedWorkflows(DASHBOARD_OPERATIONS)\n return useMemo(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n // An uploaded skill of a built-in's slug is used instead of it.\n const { host: builtins, skills: fromServer } = mergeSkillWorkflows(\n web.filter((w) => !packSlugs.has(w.id)),\n listings\n )\n // The host's packs sit with the built-ins; they are listed in the menus, not in Start.\n const all = [...builtins, ...hostSkills, ...fromServer]\n const byId = new Map(all.map((w) => [w.id, w]))\n const pinned = DASHBOARD_PINNED.flatMap((id) => {\n const w = byId.get(id)\n return w ? [w] : []\n })\n return {\n skills: all,\n skillsEnabled,\n start: skillsEnabled ? [...builtins, ...sortByRecentUse(fromServer, usage)] : [],\n dashboard: [...pinned, ...operations],\n forTasks: [CUSTOM_TASK, ...all.filter((w) => w.schedulable), REMIND_TASK],\n }\n }, [hostSkills, listings, usage, skillsEnabled, web, operations])\n}\n"]}
1
+ {"version":3,"sources":["../src/connection/workflows/useWorkflowTasks.ts","../src/connection/useIsExternalAccount.ts","../src/connection/workflows/useSkillsEnabled.ts","../src/connection/workflows/useHostSkills.ts","../src/connection/workflows/useNamedWorkflows.ts","../src/connection/workflows/useWorkflowDefinitions.ts"],"names":["useRunWorkflow","useStartTaskQuery","useCreateWorkflow","useUpdateConversation","useUpdateWorkflow","useArbiSessionState","useCreateWork","useBlocksEnvironment","useGrantAgentAccess","useCallback","useDocuments","useMemo","getDocumentTitle","taskComposerToCreateRequest","taskComposerToUpdateRequest","composerToWorkflowUpdate","useArbiSession","useUserSettings","useHost","skillPackWorkflows","useAssistantCopy","nameBuiltinWorkflows","useSkills","useWorkflowUsage","WEB_WORKFLOWS","DASHBOARD_OPERATIONS","mergeSkillWorkflows","DASHBOARD_PINNED","sortByRecentUse","CUSTOM_TASK","REMIND_TASK"],"mappings":";;;;;;;;;;;AAuDO,SAAS,gBAAA,GAAmB;AACjC,EAAA,MAAM,cAAcA,oBAAA,EAAe;AACnC,EAAA,MAAM,aAAaC,uBAAA,EAAkB;AACrC,EAAA,MAAM,iBAAiBC,uBAAA,EAAkB;AACzC,EAAA,MAAM,qBAAqBC,2BAAA,EAAsB;AACjD,EAAA,MAAM,yBAAyBC,uBAAA,EAAkB;AACjD,EAAA,MAAM,iBAAA,GAAoBC,yBAAA,CAAoB,CAAC,CAAA,KAAM,EAAE,WAAW,CAAA;AAClE,EAAA,MAAM,UAAA,GAAaC,mBAAA,CAAc,EAAE,WAAA,EAAa,mBAAmB,CAAA;AACnE,EAAA,MAAM,EAAE,SAAA,EAAU,GAAIC,sCAAA,EAAqB;AAI3C,EAAA,MAAM,EAAE,WAAA,EAAa,KAAA,EAAM,GAAIC,yBAAA,EAAoB;AACnD,EAAA,MAAM,gBAAA,GAAmBC,mBAAA;AAAA,IACvB,CAAC,YAAoB,WAAA,KACnB,KAAA,CAAM,EAAE,UAAA,EAAY,WAAA,EAAa,CAAA,CAAE,IAAA;AAAA,MACjC,MAAM,MAAA;AAAA,MACN,MAAM;AAAA,KACR;AAAA,IACF,CAAC,KAAK;AAAA,GACR;AAEA,EAAA,MAAM,EAAE,IAAA,EAAM,SAAA,GAAY,EAAC,KAAMC,kBAAA,EAAa;AAC9C,EAAA,MAAM,cAAA,GAAiBC,eAAA;AAAA,IAC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I,CAAA,CAAE,EAAE,CAAC,CAAA;AAAA,MACtC;AAAA,KACF;AAEA,IAAA,MAAM,MAAM,CAAC,GAAG,UAAU,GAAG,UAAA,EAAY,GAAG,UAAU,CAAA;AACtD,IAAA,MAAM,IAAA,GAAO,IAAI,GAAA,CAAI,GAAA,CAAI,GAAA,CAAI,CAAC,CAAA,KAAM,CAAC,CAAA,CAAE,EAAA,EAAI,CAAC,CAAC,CAAC,CAAA;AAC9C,IAAA,MAAM,MAAA,GAASC,kCAAA,CAAiB,OAAA,CAAQ,CAAC,EAAA,KAAO;AAC9C,MAAA,MAAM,CAAA,GAAI,IAAA,CAAK,GAAA,CAAI,EAAE,CAAA;AACrB,MAAA,OAAO,CAAA,GAAI,CAAC,CAAC,CAAA,GAAI,EAAC;AAAA,IACpB,CAAC,CAAA;AACD,IAAA,OAAO;AAAA,MACL,MAAA,EAAQ,GAAA;AAAA,MACR,aAAA;AAAA,MACA,KAAA,EAAO,aAAA,GAAgB,CAAC,GAAG,QAAA,EAAU,GAAGC,iCAAA,CAAgB,UAAA,EAAY,KAAK,CAAC,CAAA,GAAI,EAAC;AAAA,MAC/E,SAAA,EAAW,CAAC,GAAG,MAAA,EAAQ,GAAG,UAAU,CAAA;AAAA,MACpC,QAAA,EAAU,CAACC,6BAAA,EAAa,GAAG,GAAA,CAAI,MAAA,CAAO,CAAC,CAAA,KAAM,CAAA,CAAE,WAAW,CAAA,EAAGC,6BAAW;AAAA,KAC1E;AAAA,EACF,CAAA,EAAG,CAAC,UAAA,EAAY,QAAA,EAAU,OAAO,aAAA,EAAe,GAAA,EAAK,UAAU,CAAC,CAAA;AAClE","file":"chunk-RJE6KXJQ.cjs","sourcesContent":["/**\n * Creating and updating work and workflows from the composer, in one place.\n *\n * \"Now\" is an assistant query with task options (the person's own run: the thread becomes a task); a plain\n * to-do creates work with no run. Any other start (a date, a repeat, an event, after another task) saves a workflow\n * that creates the work when it fires. The request mapping is shared with every host (and tested in\n * blocks): `taskComposerToCreateRequest` decides which.\n *\n * Workspace authorization is a per-run, least-privilege choice (`auth_mode`) composed over the shipped\n * workspace-access-request + grant machinery:\n * - Now -> no tier: the query runs as the person asking, with their own access.\n * - Workflow -> `scheduled_require_auth` by default (asks at run time), or `scheduled_permanent`\n * (\"keep access\"): standing membership so unattended runs can decrypt while the owner\n * is away. Only this tier grants membership.\n */\n\nimport {\n useCreateWorkflow,\n useGrantAgentAccess,\n useRunWorkflow,\n useUpdateWorkflow,\n useDocuments,\n useArbiSessionState,\n useCreateWork,\n useStartTaskQuery,\n useUpdateConversation,\n} from '@arbidocs/react'\nimport { getDocumentTitle } from '@arbidocs/react/ui'\nimport type { components } from '@arbidocs/client'\nimport { useCallback, useMemo } from 'react'\nimport {\n composerToWorkflowUpdate,\n taskComposerToCreateRequest,\n taskComposerToUpdateRequest,\n} from '../../agents/tasks/taskRequest'\nimport { type TaskComposerValues } from '../../agents/tasks/taskComposerTypes'\nimport { type WorkflowDefinition } from '../../agents/workflows/types'\nimport type { TaskPlan } from '../../agents/workflows/planSteps'\nimport { useBlocksEnvironment } from '../../provider/environment'\n\ntype Task = components['schemas']['ConversationResponse']\ntype Workflow = components['schemas']['WorkflowResponse']\n\nexport interface TaskSubmitContext {\n workflow: WorkflowDefinition\n values: TaskComposerValues\n /** Goal checklist for agent work, if one was drafted. */\n plan?: TaskPlan | null\n}\n\n/** What a composer submission created. `ran` is null for work no agent runs. */\nexport type CreateOutcome =\n | { kind: 'work'; task: Pick<Task, 'title'> & { external_id?: string }; ran: boolean | null }\n | { kind: 'workflow'; workflow: Workflow }\n\nexport function useWorkflowTasks() {\n const runWorkflow = useRunWorkflow()\n const startQuery = useStartTaskQuery()\n const createWorkflow = useCreateWorkflow()\n const updateConversation = useUpdateConversation()\n const updateWorkflowMutation = useUpdateWorkflow()\n const activeWorkspaceId = useArbiSessionState((s) => s.workspaceId)\n const createWork = useCreateWork({ workspaceId: activeWorkspaceId })\n const { openFiles } = useBlocksEnvironment()\n\n // Standing access for a workflow's agent, so its unattended runs can read the workspace. An agent\n // that is already a member makes the server refuse the re-grant: that is no failure here.\n const { mutateAsync: grant } = useGrantAgentAccess()\n const grantAgentAccess = useCallback(\n (agentExtId: string, workspaceId: string) =>\n grant({ agentExtId, workspaceId }).then(\n () => undefined,\n () => undefined\n ),\n [grant]\n )\n // File names for the prompt's wording (\"the document <name>\"): the server is told the ids as well.\n const { data: documents = [] } = useDocuments()\n const documentTitles = useMemo(\n () =>\n Object.fromEntries(documents.map((d) => [d.external_id, getDocumentTitle(d, d.external_id)])),\n [documents]\n )\n\n /**\n * Create work or a workflow. `forceWorkflow` is for the workflow dialog, where even a reminder is\n * saved as a workflow.\n */\n const create = useCallback(\n async (ctx: TaskSubmitContext, forceWorkflow = false): Promise<CreateOutcome> => {\n const request = taskComposerToCreateRequest(\n { ...ctx, documentTitles, plan: ctx.plan ?? null },\n activeWorkspaceId ?? undefined,\n forceWorkflow\n )\n if (request.kind === 'workflow') {\n const workflow = await createWorkflow.mutateAsync(request.body)\n // Keep access: deposit the key for the agent the server assigned (the Assistant when none was\n // picked), while the owner is here, so unattended runs start on their own.\n const workspaceId = workflow.workspace_ext_id ?? request.body.workspace_ext_id\n if (\n workflow.auth_mode === 'scheduled_permanent' &&\n !workflow.on_demand &&\n workflow.agent_ext_id &&\n workspaceId\n ) {\n await grantAgentAccess(workflow.agent_ext_id, workspaceId)\n }\n if (ctx.workflow.documentAction && ctx.values.when === 'now' && !forceWorkflow) {\n const result = await runWorkflow.mutateAsync(workflow.external_id)\n if (result.error) throw new Error(result.error)\n openFiles()\n }\n return { kind: 'workflow', workflow }\n }\n if (request.kind === 'query') {\n // Run now is the person's own assistant query: it makes the thread a task and runs it.\n const { conversationId } = await startQuery.start(request.query)\n return {\n kind: 'work',\n task: { external_id: conversationId, title: request.query.task.title ?? null },\n ran: true,\n }\n }\n // A plain to-do (or reminder): a task with no run.\n const task = await createWork.mutateAsync(request.body)\n return { kind: 'work', task, ran: null }\n },\n [\n activeWorkspaceId,\n createWork,\n createWorkflow,\n documentTitles,\n grantAgentAccess,\n startQuery,\n runWorkflow,\n openFiles,\n ]\n )\n\n /** PATCH the editable fields of a task (the instruction, workspace and agent stay as created). */\n const update = useCallback(\n async (task: Pick<Task, 'external_id'> & { is_owner?: boolean }, ctx: TaskSubmitContext) => {\n const patch = taskComposerToUpdateRequest({ ...ctx, plan: ctx.plan ?? null })\n // Who can see a task is its owner's to change: an editor's save leaves it out.\n if (task.is_owner === false) delete patch.shared\n await updateConversation.mutateAsync({ conversationId: task.external_id, patch })\n },\n [updateConversation]\n )\n\n /** PATCH a workflow: its name, trigger and action. */\n const updateWorkflow = useCallback(\n async (\n workflow: Pick<Workflow, 'external_id' | 'agent_ext_id' | 'workspace_ext_id'> & {\n is_owner?: boolean\n },\n ctx: TaskSubmitContext\n ) => {\n const patch = composerToWorkflowUpdate({ ...ctx, documentTitles, plan: ctx.plan ?? null })\n // Sharing a workflow is its owner's: an editor's save leaves it out.\n if (workflow.is_owner === false) delete patch.shared\n const workspaceId = workflow.workspace_ext_id ?? activeWorkspaceId\n const updated = await updateWorkflowMutation.mutateAsync({\n workflowId: workflow.external_id,\n patch,\n })\n // The agent the server keeps (the Assistant when none was picked) gets the key for unattended runs.\n const agentId = updated.agent_ext_id ?? patch.agent_ext_id ?? workflow.agent_ext_id\n if (\n updated.auth_mode === 'scheduled_permanent' &&\n !updated.on_demand &&\n agentId &&\n workspaceId\n ) {\n await grantAgentAccess(agentId, workspaceId)\n }\n },\n [activeWorkspaceId, documentTitles, grantAgentAccess, updateWorkflowMutation]\n )\n\n return {\n create,\n update,\n updateWorkflow,\n isPending:\n createWork.isPending ||\n startQuery.isPending ||\n createWorkflow.isPending ||\n updateConversation.isPending ||\n updateWorkflowMutation.isPending,\n }\n}\n","import { useArbiSession } from '@arbidocs/react'\n\n/** The account fields that say it is an external one. */\ninterface AccountKind {\n temporary_access_only?: boolean | null\n user_type?: string | null\n}\n\n/** An external account: temporary access to shared workspaces only. */\nexport const isExternalAccount = (user: AccountKind | null | undefined): boolean =>\n !!user && (user.temporary_access_only === true || user.user_type === 'external')\n\n/**\n * Whether the signed-in person is an external guest. They get the built-in skills and the host's\n * skill packs, never the marketplace (the backend enforces it as well).\n */\nexport function useIsExternalAccount(): boolean {\n return isExternalAccount(useArbiSession().user)\n}\n\n/** Skill listings without the marketplace's (`visibility: global`): what an external guest gets. */\nexport const withoutMarketplace = <T extends { visibility?: string | null }>(listings: T[]): T[] =>\n listings.filter((s) => s.visibility !== 'global')\n","/**\n * The one gate for everything skill-shaped in the app: the empty chat's Start list, the skill\n * entries of the slash menu, the sidebar's Skills item, the Skills browser's entry points and the\n * typed `/skill` interception. It is the personal `show_skills` user setting, default off; the\n * switch lives in Settings, Experimental (developers only), so today only developers have it.\n */\n\nimport { useUserSettings } from '@arbidocs/react'\nimport { useIsExternalAccount } from '../useIsExternalAccount'\n\nexport function useSkillsEnabled(): boolean {\n const { data: userSettings } = useUserSettings()\n return userSettings?.show_skills ?? false\n}\n\n/**\n * Whether the Skills browser (the marketplace: \"Browse skills\", the Skills menu entry) is offered:\n * to skills users, never to an external guest (the backend enforces it as well).\n */\nexport function useCanBrowseSkills(): boolean {\n const skillsEnabled = useSkillsEnabled()\n const isExternal = useIsExternalAccount()\n return skillsEnabled && !isExternal\n}\n","/**\n * The host's skill packs (`host.workflows.skillPacks`) as the kit's workflows, and the `/` menu's\n * rows for them: one section per heading (a category, else a pack's label).\n */\nimport { useMemo } from 'react'\nimport { skillPackWorkflows, type SkillPackWorkflow } from '../../agents/workflows/skillPack'\nimport type { SlashMenuItem } from '../../chat/SlashMenu'\nimport { useHost } from '../../provider/host'\n\n/** The section heading of a pack without a label or category. */\nconst DEFAULT_PACK_LABEL = 'Skills from this site'\n\nconst NO_PACKS: SkillPackWorkflow[] = []\n\nexport function useHostSkills(): SkillPackWorkflow[] {\n const packs = useHost().workflows?.skillPacks\n return useMemo(() => (packs?.length ? packs.flatMap(skillPackWorkflows) : NO_PACKS), [packs])\n}\n\n/**\n * A pack skill's `/` menu row. Its section is its heading (its category, else its pack's label), so\n * skills of several packs under one heading share one section.\n */\nexport function hostSkillItem(workflow: SkillPackWorkflow): SlashMenuItem {\n const label = workflow.category ?? workflow.pack.label ?? DEFAULT_PACK_LABEL\n return {\n name: workflow.id,\n description: workflow.description,\n kind: 'skill',\n group: { id: `pack-${label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`, label },\n }\n}\n","import { useMemo } from 'react'\nimport { useAssistantCopy } from '@arbidocs/react/shell'\nimport { nameBuiltinWorkflows } from '../../agents/workflows/catalogue/seed'\nimport type { WorkflowDefinition } from '../../agents/workflows/types'\n\n/** The seeded workflows in the host's assistant name (`nameBuiltinWorkflows`). */\nexport function useNamedWorkflows(\n workflows: ReadonlyArray<WorkflowDefinition>\n): WorkflowDefinition[] {\n const copy = useAssistantCopy()\n return useMemo(() => nameBuiltinWorkflows(workflows, copy), [workflows, copy])\n}\n","/**\n * The one list of workflows: the seeded ones plus every skill the user can invoke (each degraded\n * to a single-field form from its `arg_hint`). The dashboard tiles, the slash menu, tasks and\n * agents all read this.\n */\n\nimport { useMemo } from 'react'\nimport { useSkills } from '@arbidocs/react'\nimport { mergeSkillWorkflows } from '../../agents/workflows/workflow'\nimport { type WorkflowDefinition } from '../../agents/workflows/types'\nimport {\n CUSTOM_TASK,\n DASHBOARD_OPERATIONS,\n DASHBOARD_PINNED,\n REMIND_TASK,\n} from '../../agents/workflows/catalogue/seed'\nimport { useSkillsEnabled } from './useSkillsEnabled'\nimport { useHostSkills } from './useHostSkills'\nimport { useIsExternalAccount, withoutMarketplace } from '../useIsExternalAccount'\nimport { sortByRecentUse, useWorkflowUsage } from '../../agents/workflows/catalogue/workflow-usage'\nimport { WEB_WORKFLOWS } from '../../agents/workflows/catalogue/registry'\nimport { useNamedWorkflows } from './useNamedWorkflows'\n\nexport interface UseWorkflowDefinitionsResult {\n /**\n * Every skill workflow of this host: built-ins, the host's skill packs, then the user's and the\n * marketplace's (one list).\n */\n skills: WorkflowDefinition[]\n /** The user has skills switched on (`show_skills`): the gate of every skill-shaped surface. */\n skillsEnabled: boolean\n /**\n * The empty chat's Start section: built-ins first (their own order), then the user's own and\n * marketplace skills by recent use, then name. EMPTY for users without skills enabled.\n */\n start: WorkflowDefinition[]\n /** The dashboard Start band: pinned skills in order, then the operation launchers. */\n dashboard: WorkflowDefinition[]\n /** What a task can run: schedulable skills plus a free instruction and a reminder. */\n forTasks: WorkflowDefinition[]\n}\n\n/**\n * The skill listings a person may use from the menus: a host pack's slug is the pack's (an\n * installed copy is the same skill), and an external guest gets no marketplace skills.\n */\nexport function useUsableSkillListings(hostSkills: ReadonlyArray<WorkflowDefinition>) {\n const { data: listings } = useSkills()\n const isExternal = useIsExternalAccount()\n return useMemo(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n const usable = (listings ?? []).filter((s) => !packSlugs.has(s.slug))\n return isExternal ? withoutMarketplace(usable) : usable\n }, [listings, hostSkills, isExternal])\n}\n\nexport function useWorkflowDefinitions(): UseWorkflowDefinitionsResult {\n const hostSkills = useHostSkills()\n const listings = useUsableSkillListings(hostSkills)\n const usage = useWorkflowUsage()\n const skillsEnabled = useSkillsEnabled()\n const web = useNamedWorkflows(WEB_WORKFLOWS)\n const operations = useNamedWorkflows(DASHBOARD_OPERATIONS)\n return useMemo(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n // An uploaded skill of a built-in's slug is used instead of it.\n const { host: builtins, skills: fromServer } = mergeSkillWorkflows(\n web.filter((w) => !packSlugs.has(w.id)),\n listings\n )\n // The host's packs sit with the built-ins; they are listed in the menus, not in Start.\n const all = [...builtins, ...hostSkills, ...fromServer]\n const byId = new Map(all.map((w) => [w.id, w]))\n const pinned = DASHBOARD_PINNED.flatMap((id) => {\n const w = byId.get(id)\n return w ? [w] : []\n })\n return {\n skills: all,\n skillsEnabled,\n start: skillsEnabled ? [...builtins, ...sortByRecentUse(fromServer, usage)] : [],\n dashboard: [...pinned, ...operations],\n forTasks: [CUSTOM_TASK, ...all.filter((w) => w.schedulable), REMIND_TASK],\n }\n }, [hostSkills, listings, usage, skillsEnabled, web, operations])\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkFYFL3CET_cjs = require('./chunk-FYFL3CET.cjs');
4
+ var chunkNB6XGPEB_cjs = require('./chunk-NB6XGPEB.cjs');
5
5
  var chunkWQMR3O2D_cjs = require('./chunk-WQMR3O2D.cjs');
6
6
  var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
7
7
  var chunkLIKDQBNJ_cjs = require('./chunk-LIKDQBNJ.cjs');
@@ -69,7 +69,7 @@ function TileStatusBadge({ doc, status }) {
69
69
  case "failed":
70
70
  tone = "danger";
71
71
  icon = /* @__PURE__ */ jsxRuntime.jsx(
72
- chunkFYFL3CET_cjs.FailedStageIcon,
72
+ chunkNB6XGPEB_cjs.FailedStageIcon,
73
73
  {
74
74
  stage: doc.failed_stage ?? null,
75
75
  errorMessage: doc.error_message,
@@ -96,7 +96,7 @@ function TileStatusBadge({ doc, status }) {
96
96
  return null;
97
97
  }
98
98
  return /* @__PURE__ */ jsxRuntime.jsx(
99
- chunkFYFL3CET_cjs.StatusPill,
99
+ chunkNB6XGPEB_cjs.StatusPill,
100
100
  {
101
101
  tone,
102
102
  icon,
@@ -108,11 +108,11 @@ function TileStatusBadge({ doc, status }) {
108
108
  function TileVisibilityBadge({ doc }) {
109
109
  const shared = !!doc.shared;
110
110
  return /* @__PURE__ */ jsxRuntime.jsx(
111
- chunkFYFL3CET_cjs.StatusPill,
111
+ chunkNB6XGPEB_cjs.StatusPill,
112
112
  {
113
113
  icon: /* @__PURE__ */ jsxRuntime.jsx(ui.VisibilityIcon, { isShared: shared, className: "size-3.5", "aria-hidden": true }),
114
114
  label: shared ? ui.getEntityLabel("WORKSPACE") : "Only you",
115
- title: chunkFYFL3CET_cjs.visibilityAudience(shared),
115
+ title: chunkNB6XGPEB_cjs.visibilityAudience(shared),
116
116
  testId: `explorer-file-visibility-${doc.external_id}`
117
117
  }
118
118
  );
@@ -139,7 +139,7 @@ function FileTooltipContent({
139
139
  }) {
140
140
  const labels = (doc.doctags ?? []).map((dt) => tagNameById.get(dt.tag_ext_id)).filter((name) => !!name);
141
141
  return /* @__PURE__ */ jsxRuntime.jsx(
142
- chunkFYFL3CET_cjs.ExplorerFileTooltip,
142
+ chunkNB6XGPEB_cjs.ExplorerFileTooltip,
143
143
  {
144
144
  title: ui.getDocumentTitle(doc, doc.file_name ?? ""),
145
145
  summary: ui.getDocumentSubject(doc),
@@ -148,7 +148,7 @@ function FileTooltipContent({
148
148
  shared: !!doc.shared,
149
149
  visibilityIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.VisibilityIcon, { isShared: !!doc.shared, className: "h-3 w-3" }),
150
150
  labels,
151
- uiLabels: { shared: chunkFYFL3CET_cjs.visibilityAudience(true), private: chunkFYFL3CET_cjs.visibilityAudience(false) }
151
+ uiLabels: { shared: chunkNB6XGPEB_cjs.visibilityAudience(true), private: chunkNB6XGPEB_cjs.visibilityAudience(false) }
152
152
  }
153
153
  );
154
154
  }
@@ -260,7 +260,7 @@ var FileTile = react.memo(function FileTile2({
260
260
  ];
261
261
  const tooltip = renaming || dndActive ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(FileTooltipContent, { doc, modifiedBy, tagNameById });
262
262
  return /* @__PURE__ */ jsxRuntime.jsx(
263
- chunkFYFL3CET_cjs.ExplorerFileTile,
263
+ chunkNB6XGPEB_cjs.ExplorerFileTile,
264
264
  {
265
265
  id: doc.external_id,
266
266
  title: ui.getDocumentTitle(doc, doc.file_name ?? ""),
@@ -354,17 +354,17 @@ var FolderTile = react.memo(function FolderTile2({
354
354
  }
355
355
  ] : []
356
356
  ];
357
- const displayName = folder.path.length === 1 ? chunkFYFL3CET_cjs.formatFolderSegment(folder.name) : folder.name;
358
- const providerIcon = folder.path.length === 1 && chunkFYFL3CET_cjs.hasFolderProviderIcon(folder.name) ? /* @__PURE__ */ jsxRuntime.jsx(
357
+ const displayName = folder.path.length === 1 ? chunkNB6XGPEB_cjs.formatFolderSegment(folder.name) : folder.name;
358
+ const providerIcon = folder.path.length === 1 && chunkNB6XGPEB_cjs.hasFolderProviderIcon(folder.name) ? /* @__PURE__ */ jsxRuntime.jsx(
359
359
  "span",
360
360
  {
361
361
  className: "flex items-center justify-center drop-shadow-sm",
362
362
  style: { width: iconSize, height: iconSize },
363
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkFYFL3CET_cjs.FolderProviderIcon, { folderPath: folder.name, className: "h-full w-full" })
363
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkNB6XGPEB_cjs.FolderProviderIcon, { folderPath: folder.name, className: "h-full w-full" })
364
364
  }
365
365
  ) : void 0;
366
366
  return /* @__PURE__ */ jsxRuntime.jsx(
367
- chunkFYFL3CET_cjs.ExplorerFolderTile,
367
+ chunkNB6XGPEB_cjs.ExplorerFolderTile,
368
368
  {
369
369
  name: folder.name,
370
370
  displayName: displayName === "" ? null : displayName,
@@ -581,7 +581,7 @@ function describeGlyph(resolved, doc) {
581
581
  }
582
582
  return {
583
583
  node: /* @__PURE__ */ jsxRuntime.jsx(
584
- chunkFYFL3CET_cjs.FailedStageIcon,
584
+ chunkNB6XGPEB_cjs.FailedStageIcon,
585
585
  {
586
586
  stage: resolved.failedStage,
587
587
  errorMessage: doc.error_message,
@@ -626,7 +626,7 @@ var StatusCell2 = react.memo(function StatusCell3({
626
626
  if (isPendingSync) {
627
627
  return cell(
628
628
  /* @__PURE__ */ jsxRuntime.jsx(
629
- chunkFYFL3CET_cjs.StatusPill,
629
+ chunkNB6XGPEB_cjs.StatusPill,
630
630
  {
631
631
  tone: "warning",
632
632
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5" }),
@@ -641,7 +641,7 @@ var StatusCell2 = react.memo(function StatusCell3({
641
641
  case "completed":
642
642
  return cell(
643
643
  /* @__PURE__ */ jsxRuntime.jsx(
644
- chunkFYFL3CET_cjs.StatusPill,
644
+ chunkNB6XGPEB_cjs.StatusPill,
645
645
  {
646
646
  tone: "success",
647
647
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle, { className: "size-3.5" }),
@@ -654,7 +654,7 @@ var StatusCell2 = react.memo(function StatusCell3({
654
654
  case "skipped":
655
655
  return cell(
656
656
  /* @__PURE__ */ jsxRuntime.jsx(
657
- chunkFYFL3CET_cjs.StatusPill,
657
+ chunkNB6XGPEB_cjs.StatusPill,
658
658
  {
659
659
  tone: "neutral",
660
660
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SkipForward, { className: "size-3.5" }),
@@ -667,7 +667,7 @@ var StatusCell2 = react.memo(function StatusCell3({
667
667
  case "empty":
668
668
  return cell(
669
669
  /* @__PURE__ */ jsxRuntime.jsx(
670
- chunkFYFL3CET_cjs.StatusPill,
670
+ chunkNB6XGPEB_cjs.StatusPill,
671
671
  {
672
672
  tone: "warning",
673
673
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileX, { className: "size-3.5" }),
@@ -680,7 +680,7 @@ var StatusCell2 = react.memo(function StatusCell3({
680
680
  case "low-content":
681
681
  return cell(
682
682
  /* @__PURE__ */ jsxRuntime.jsx(
683
- chunkFYFL3CET_cjs.StatusPill,
683
+ chunkNB6XGPEB_cjs.StatusPill,
684
684
  {
685
685
  tone: "warning",
686
686
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "size-3.5" }),
@@ -695,7 +695,7 @@ var StatusCell2 = react.memo(function StatusCell3({
695
695
  if (quota) {
696
696
  return cell(
697
697
  /* @__PURE__ */ jsxRuntime.jsx(
698
- chunkFYFL3CET_cjs.StatusPill,
698
+ chunkNB6XGPEB_cjs.StatusPill,
699
699
  {
700
700
  tone: "warning",
701
701
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: "size-3.5" }),
@@ -708,11 +708,11 @@ var StatusCell2 = react.memo(function StatusCell3({
708
708
  }
709
709
  return cell(
710
710
  /* @__PURE__ */ jsxRuntime.jsx(
711
- chunkFYFL3CET_cjs.StatusPill,
711
+ chunkNB6XGPEB_cjs.StatusPill,
712
712
  {
713
713
  tone: "danger",
714
714
  icon: /* @__PURE__ */ jsxRuntime.jsx(
715
- chunkFYFL3CET_cjs.FailedStageIcon,
715
+ chunkNB6XGPEB_cjs.FailedStageIcon,
716
716
  {
717
717
  stage: failedStage,
718
718
  errorMessage: doc.error_message,
@@ -729,7 +729,7 @@ var StatusCell2 = react.memo(function StatusCell3({
729
729
  const isDocx = doc.file_name?.toLowerCase().endsWith(".docx");
730
730
  return cell(
731
731
  /* @__PURE__ */ jsxRuntime.jsx(
732
- chunkFYFL3CET_cjs.StatusPill,
732
+ chunkNB6XGPEB_cjs.StatusPill,
733
733
  {
734
734
  tone: "neutral",
735
735
  label: isDocx ? "Uploaded" : "Queued",
@@ -746,7 +746,7 @@ var StatusCell2 = react.memo(function StatusCell3({
746
746
  case "analysing":
747
747
  return cell(
748
748
  /* @__PURE__ */ jsxRuntime.jsx(
749
- chunkFYFL3CET_cjs.StatusPill,
749
+ chunkNB6XGPEB_cjs.StatusPill,
750
750
  {
751
751
  tone: "info",
752
752
  label: PROCESSING_LABELS[status],
@@ -829,7 +829,7 @@ var DocumentNameCell = react.memo(function DocumentNameCell2({
829
829
  }
830
830
  };
831
831
  return /* @__PURE__ */ jsxRuntime.jsx(
832
- chunkFYFL3CET_cjs.DocumentNameCellFrame,
832
+ chunkNB6XGPEB_cjs.DocumentNameCellFrame,
833
833
  {
834
834
  testId: `open-document-viewer-button-${doc.external_id}`,
835
835
  isViewing,
@@ -858,7 +858,7 @@ var DocumentNameCell = react.memo(function DocumentNameCell2({
858
858
  openTimerRef.current = window.setTimeout(onOpen, OPEN_AFTER_DOUBLE_CLICK_WINDOW_MS);
859
859
  },
860
860
  actions: /* @__PURE__ */ jsxRuntime.jsx(
861
- chunkFYFL3CET_cjs.DocumentRowMenu,
861
+ chunkNB6XGPEB_cjs.DocumentRowMenu,
862
862
  {
863
863
  canEdit,
864
864
  onOpen,
@@ -895,8 +895,8 @@ var DocumentSharedCell = react.memo(function DocumentSharedCell2({
895
895
  onToggle: handleToggle,
896
896
  disabled,
897
897
  disabledTooltip,
898
- tooltipActive: chunkFYFL3CET_cjs.visibilityToggleTooltip(true),
899
- tooltipInactive: chunkFYFL3CET_cjs.visibilityToggleTooltip(false)
898
+ tooltipActive: chunkNB6XGPEB_cjs.visibilityToggleTooltip(true),
899
+ tooltipInactive: chunkNB6XGPEB_cjs.visibilityToggleTooltip(false)
900
900
  }
901
901
  );
902
902
  });
@@ -909,7 +909,7 @@ function useDocumentFolders(documents, value) {
909
909
  }, [documents, value]);
910
910
  }
911
911
  function folderSegments(folder) {
912
- return folder.split("/").map((part, i) => i === 0 ? chunkFYFL3CET_cjs.formatFolderSegment(part) : part).filter((part, i) => i > 0 || part !== "");
912
+ return folder.split("/").map((part, i) => i === 0 ? chunkNB6XGPEB_cjs.formatFolderSegment(part) : part).filter((part, i) => i > 0 || part !== "");
913
913
  }
914
914
  var DocumentFolderCell = react.memo(
915
915
  function DocumentFolderCell2({
@@ -921,14 +921,14 @@ var DocumentFolderCell = react.memo(
921
921
  const folder = document.folder;
922
922
  const folders = useDocumentFolders(allDocuments, folder);
923
923
  return /* @__PURE__ */ jsxRuntime.jsx(
924
- chunkFYFL3CET_cjs.FolderCell,
924
+ chunkNB6XGPEB_cjs.FolderCell,
925
925
  {
926
926
  folder,
927
927
  segments: folder ? folderSegments(folder) : [],
928
- icon: folder && chunkFYFL3CET_cjs.hasFolderProviderIcon(folder) ? /* @__PURE__ */ jsxRuntime.jsx(chunkFYFL3CET_cjs.FolderProviderIcon, { folderPath: folder, className: "h-3.5 w-3.5 flex-none shrink-0" }) : void 0,
928
+ icon: folder && chunkNB6XGPEB_cjs.hasFolderProviderIcon(folder) ? /* @__PURE__ */ jsxRuntime.jsx(chunkNB6XGPEB_cjs.FolderProviderIcon, { folderPath: folder, className: "h-3.5 w-3.5 flex-none shrink-0" }) : void 0,
929
929
  isEditable,
930
930
  picker: /* @__PURE__ */ jsxRuntime.jsx(
931
- chunkFYFL3CET_cjs.FolderCommandList,
931
+ chunkNB6XGPEB_cjs.FolderCommandList,
932
932
  {
933
933
  folders,
934
934
  value: folder,
@@ -964,7 +964,7 @@ var RelatedDocumentsCell = react.memo(function RelatedDocumentsCell2({
964
964
  onCompare
965
965
  }) {
966
966
  return /* @__PURE__ */ jsxRuntime.jsx(
967
- chunkFYFL3CET_cjs.RelatedDocsCell,
967
+ chunkNB6XGPEB_cjs.RelatedDocsCell,
968
968
  {
969
969
  parent: related.parent,
970
970
  attachments: related.children,
@@ -1056,7 +1056,7 @@ var DocumentLabelsCell = react.memo(function DocumentLabelsCell2({
1056
1056
  );
1057
1057
  const openFieldsManager = actions?.openFieldsManager;
1058
1058
  return /* @__PURE__ */ jsxRuntime.jsx(
1059
- chunkFYFL3CET_cjs.LabelMultiSelectView,
1059
+ chunkNB6XGPEB_cjs.LabelMultiSelectView,
1060
1060
  {
1061
1061
  options,
1062
1062
  appliedIds,
@@ -1086,5 +1086,5 @@ exports.openPendingSyncDialog = openPendingSyncDialog;
1086
1086
  exports.parseQuotaError = parseQuotaError;
1087
1087
  exports.startMenuItem = startMenuItem;
1088
1088
  exports.useDocumentFolders = useDocumentFolders;
1089
- //# sourceMappingURL=chunk-VIUEPJ3Y.cjs.map
1090
- //# sourceMappingURL=chunk-VIUEPJ3Y.cjs.map
1089
+ //# sourceMappingURL=chunk-RUKEMF6Q.cjs.map
1090
+ //# sourceMappingURL=chunk-RUKEMF6Q.cjs.map