@arbidocs/blocks 0.5.21 → 0.5.23

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 (229) hide show
  1. package/dist/{ConnectedCallDock-ZWNWGEST.js → ConnectedCallDock-AQ33U57C.js} +7 -7
  2. package/dist/{ConnectedCallDock-ZWNWGEST.js.map → ConnectedCallDock-AQ33U57C.js.map} +1 -1
  3. package/dist/{ConnectedCallDock-7FPHYOMU.cjs → ConnectedCallDock-JRWGC6UT.cjs} +8 -8
  4. package/dist/{ConnectedCallDock-7FPHYOMU.cjs.map → ConnectedCallDock-JRWGC6UT.cjs.map} +1 -1
  5. package/dist/{ConnectedCallRoom-QAF3ZOEC.js → ConnectedCallRoom-5YNFPS6E.js} +7 -7
  6. package/dist/{ConnectedCallRoom-QAF3ZOEC.js.map → ConnectedCallRoom-5YNFPS6E.js.map} +1 -1
  7. package/dist/{ConnectedCallRoom-HSLYF6YL.cjs → ConnectedCallRoom-CCEIJAOG.cjs} +8 -8
  8. package/dist/{ConnectedCallRoom-HSLYF6YL.cjs.map → ConnectedCallRoom-CCEIJAOG.cjs.map} +1 -1
  9. package/dist/{ConnectedNativeDocxComparison-4X7H57LE.js → ConnectedNativeDocxComparison-GMQHSY3Z.js} +10 -10
  10. package/dist/{ConnectedNativeDocxComparison-4X7H57LE.js.map → ConnectedNativeDocxComparison-GMQHSY3Z.js.map} +1 -1
  11. package/dist/{ConnectedNativeDocxComparison-7WTVHEKI.cjs → ConnectedNativeDocxComparison-HH3PHNXU.cjs} +11 -11
  12. package/dist/{ConnectedNativeDocxComparison-7WTVHEKI.cjs.map → ConnectedNativeDocxComparison-HH3PHNXU.cjs.map} +1 -1
  13. package/dist/{ConnectedNativeDocxEditor-I6RQUSR3.js → ConnectedNativeDocxEditor-4IAKVBEF.js} +9 -9
  14. package/dist/{ConnectedNativeDocxEditor-I6RQUSR3.js.map → ConnectedNativeDocxEditor-4IAKVBEF.js.map} +1 -1
  15. package/dist/{ConnectedNativeDocxEditor-PZ2ASQO3.cjs → ConnectedNativeDocxEditor-JNHNZG3P.cjs} +11 -11
  16. package/dist/{ConnectedNativeDocxEditor-PZ2ASQO3.cjs.map → ConnectedNativeDocxEditor-JNHNZG3P.cjs.map} +1 -1
  17. package/dist/{ConnectedStreamedWordArtifact-Q5KC4W7O.cjs → ConnectedStreamedWordArtifact-CZZOH667.cjs} +11 -11
  18. package/dist/ConnectedStreamedWordArtifact-CZZOH667.cjs.map +1 -0
  19. package/dist/{ConnectedStreamedWordArtifact-KCYSJ3B2.js → ConnectedStreamedWordArtifact-GLJCJPTP.js} +10 -10
  20. package/dist/ConnectedStreamedWordArtifact-GLJCJPTP.js.map +1 -0
  21. package/dist/agents/index.cjs +328 -328
  22. package/dist/agents/index.js +6 -6
  23. package/dist/auth/index.cjs +47 -47
  24. package/dist/auth/index.js +2 -2
  25. package/dist/calls/index.cjs +39 -39
  26. package/dist/calls/index.js +7 -7
  27. package/dist/chat/index.cjs +145 -145
  28. package/dist/chat/index.js +4 -4
  29. package/dist/{chunk-R2HXGTVB.cjs → chunk-2QQUGL2V.cjs} +2 -2
  30. package/dist/{chunk-R2HXGTVB.cjs.map → chunk-2QQUGL2V.cjs.map} +1 -1
  31. package/dist/{chunk-DTENNALR.js → chunk-44FPFTU2.js} +6 -6
  32. package/dist/{chunk-DTENNALR.js.map → chunk-44FPFTU2.js.map} +1 -1
  33. package/dist/{chunk-MJT7KHHT.cjs → chunk-75UVQKQ5.cjs} +52 -52
  34. package/dist/{chunk-MJT7KHHT.cjs.map → chunk-75UVQKQ5.cjs.map} +1 -1
  35. package/dist/{chunk-GK2U3VU6.cjs → chunk-7DDMF3DZ.cjs} +4 -4
  36. package/dist/{chunk-GK2U3VU6.cjs.map → chunk-7DDMF3DZ.cjs.map} +1 -1
  37. package/dist/{chunk-JWUUGVQR.js → chunk-7JJ7LU3T.js} +5 -5
  38. package/dist/{chunk-JWUUGVQR.js.map → chunk-7JJ7LU3T.js.map} +1 -1
  39. package/dist/{chunk-YT5OOFK3.js → chunk-7S76Q5RK.js} +3 -3
  40. package/dist/{chunk-YT5OOFK3.js.map → chunk-7S76Q5RK.js.map} +1 -1
  41. package/dist/{chunk-S5XIMM27.cjs → chunk-7ZHPLTGK.cjs} +9 -9
  42. package/dist/{chunk-S5XIMM27.cjs.map → chunk-7ZHPLTGK.cjs.map} +1 -1
  43. package/dist/{chunk-F6LC2CRB.js → chunk-AAVFCPKD.js} +6 -6
  44. package/dist/{chunk-F6LC2CRB.js.map → chunk-AAVFCPKD.js.map} +1 -1
  45. package/dist/{chunk-ZMYK7XTS.js → chunk-AF24CV6J.js} +3 -3
  46. package/dist/{chunk-ZMYK7XTS.js.map → chunk-AF24CV6J.js.map} +1 -1
  47. package/dist/{chunk-EW2ZGGWH.cjs → chunk-ASTMGLHT.cjs} +7 -7
  48. package/dist/{chunk-EW2ZGGWH.cjs.map → chunk-ASTMGLHT.cjs.map} +1 -1
  49. package/dist/{chunk-T4OJYZSY.cjs → chunk-B26FXLMG.cjs} +5 -5
  50. package/dist/{chunk-T4OJYZSY.cjs.map → chunk-B26FXLMG.cjs.map} +1 -1
  51. package/dist/{chunk-PFVCOUU6.cjs → chunk-BL74GYSA.cjs} +26 -26
  52. package/dist/{chunk-PFVCOUU6.cjs.map → chunk-BL74GYSA.cjs.map} +1 -1
  53. package/dist/{chunk-K237IYOD.cjs → chunk-BYJUI4AT.cjs} +54 -2
  54. package/dist/chunk-BYJUI4AT.cjs.map +1 -0
  55. package/dist/{chunk-F7IQGPZH.js → chunk-C6P2QW36.js} +5 -5
  56. package/dist/{chunk-F7IQGPZH.js.map → chunk-C6P2QW36.js.map} +1 -1
  57. package/dist/{chunk-KILCORJ7.js → chunk-DHPEUC6H.js} +3 -3
  58. package/dist/{chunk-KILCORJ7.js.map → chunk-DHPEUC6H.js.map} +1 -1
  59. package/dist/{chunk-MSPNYW6Z.cjs → chunk-DTLVC6MN.cjs} +2 -53
  60. package/dist/chunk-DTLVC6MN.cjs.map +1 -0
  61. package/dist/{chunk-MSCDYRSA.cjs → chunk-DXO2RXVQ.cjs} +4 -4
  62. package/dist/{chunk-MSCDYRSA.cjs.map → chunk-DXO2RXVQ.cjs.map} +1 -1
  63. package/dist/{chunk-FOW7TRQR.js → chunk-ENAXJ63V.js} +3 -3
  64. package/dist/{chunk-FOW7TRQR.js.map → chunk-ENAXJ63V.js.map} +1 -1
  65. package/dist/{chunk-MCU4HJDM.cjs → chunk-EWWVKXEQ.cjs} +4 -4
  66. package/dist/{chunk-MCU4HJDM.cjs.map → chunk-EWWVKXEQ.cjs.map} +1 -1
  67. package/dist/{chunk-UEDM2NNI.cjs → chunk-FCWS7I5C.cjs} +9 -9
  68. package/dist/{chunk-UEDM2NNI.cjs.map → chunk-FCWS7I5C.cjs.map} +1 -1
  69. package/dist/{chunk-525U3M3N.js → chunk-FUOCCKE4.js} +3 -3
  70. package/dist/{chunk-525U3M3N.js.map → chunk-FUOCCKE4.js.map} +1 -1
  71. package/dist/{chunk-BQQTLZBN.js → chunk-GRT4EH76.js} +2 -2
  72. package/dist/{chunk-BQQTLZBN.js.map → chunk-GRT4EH76.js.map} +1 -1
  73. package/dist/{chunk-YRHQ7OLG.cjs → chunk-I5RK4WAE.cjs} +8 -8
  74. package/dist/{chunk-YRHQ7OLG.cjs.map → chunk-I5RK4WAE.cjs.map} +1 -1
  75. package/dist/{chunk-YFLXVKMR.js → chunk-IKTPM73F.js} +4 -4
  76. package/dist/{chunk-YFLXVKMR.js.map → chunk-IKTPM73F.js.map} +1 -1
  77. package/dist/{chunk-YQJOWQDJ.cjs → chunk-IWT4QVQL.cjs} +4 -4
  78. package/dist/{chunk-YQJOWQDJ.cjs.map → chunk-IWT4QVQL.cjs.map} +1 -1
  79. package/dist/{chunk-5ZU2XYXO.cjs → chunk-KJVDYWAM.cjs} +30 -4
  80. package/dist/chunk-KJVDYWAM.cjs.map +1 -0
  81. package/dist/{chunk-CQU37FNV.cjs → chunk-KKT53TZQ.cjs} +5 -5
  82. package/dist/{chunk-CQU37FNV.cjs.map → chunk-KKT53TZQ.cjs.map} +1 -1
  83. package/dist/{chunk-RJY5NX72.cjs → chunk-KXSXIQSW.cjs} +12 -12
  84. package/dist/{chunk-RJY5NX72.cjs.map → chunk-KXSXIQSW.cjs.map} +1 -1
  85. package/dist/{chunk-SPSODKUF.js → chunk-M4FLTGFM.js} +5 -5
  86. package/dist/{chunk-SPSODKUF.js.map → chunk-M4FLTGFM.js.map} +1 -1
  87. package/dist/{chunk-K35WQH42.js → chunk-MD2XJASR.js} +3 -3
  88. package/dist/{chunk-K35WQH42.js.map → chunk-MD2XJASR.js.map} +1 -1
  89. package/dist/{chunk-KMF3ORIV.js → chunk-MQEN62NR.js} +3 -3
  90. package/dist/{chunk-KMF3ORIV.js.map → chunk-MQEN62NR.js.map} +1 -1
  91. package/dist/{chunk-J5J5JRPL.js → chunk-MUF3RFJZ.js} +4 -4
  92. package/dist/{chunk-J5J5JRPL.js.map → chunk-MUF3RFJZ.js.map} +1 -1
  93. package/dist/{chunk-K4PGCNCI.cjs → chunk-O4TCX6PD.cjs} +5 -5
  94. package/dist/{chunk-K4PGCNCI.cjs.map → chunk-O4TCX6PD.cjs.map} +1 -1
  95. package/dist/{chunk-KL6XOSEN.js → chunk-PLAGIVFF.js} +4 -52
  96. package/dist/chunk-PLAGIVFF.js.map +1 -0
  97. package/dist/{chunk-D3BHUDOU.js → chunk-PZRTRYPD.js} +3 -3
  98. package/dist/{chunk-D3BHUDOU.js.map → chunk-PZRTRYPD.js.map} +1 -1
  99. package/dist/{chunk-4C2S3Z3I.cjs → chunk-QW3SVHGM.cjs} +4 -4
  100. package/dist/{chunk-4C2S3Z3I.cjs.map → chunk-QW3SVHGM.cjs.map} +1 -1
  101. package/dist/{chunk-F4AJTY45.cjs → chunk-R7M5LN7D.cjs} +4 -4
  102. package/dist/{chunk-F4AJTY45.cjs.map → chunk-R7M5LN7D.cjs.map} +1 -1
  103. package/dist/{chunk-UNZUM76L.js → chunk-RRIXIUYD.js} +3 -3
  104. package/dist/{chunk-UNZUM76L.js.map → chunk-RRIXIUYD.js.map} +1 -1
  105. package/dist/{chunk-FQIJICZE.cjs → chunk-S4G3DNMA.cjs} +18 -18
  106. package/dist/{chunk-FQIJICZE.cjs.map → chunk-S4G3DNMA.cjs.map} +1 -1
  107. package/dist/{chunk-ML62FUHZ.js → chunk-SUDPZ5IQ.js} +3 -3
  108. package/dist/{chunk-ML62FUHZ.js.map → chunk-SUDPZ5IQ.js.map} +1 -1
  109. package/dist/{chunk-I3G7DQJH.cjs → chunk-T3VDKPKH.cjs} +18 -18
  110. package/dist/{chunk-I3G7DQJH.cjs.map → chunk-T3VDKPKH.cjs.map} +1 -1
  111. package/dist/{chunk-G2XAACRG.cjs → chunk-TATPWHHN.cjs} +5 -5
  112. package/dist/{chunk-G2XAACRG.cjs.map → chunk-TATPWHHN.cjs.map} +1 -1
  113. package/dist/{chunk-IJQ5DIZT.cjs → chunk-TTJGCJWX.cjs} +5 -5
  114. package/dist/{chunk-IJQ5DIZT.cjs.map → chunk-TTJGCJWX.cjs.map} +1 -1
  115. package/dist/{chunk-WYUFBKQ4.js → chunk-V5HVPQP7.js} +3 -3
  116. package/dist/{chunk-WYUFBKQ4.js.map → chunk-V5HVPQP7.js.map} +1 -1
  117. package/dist/{chunk-IXBJEQH5.js → chunk-VN4FSGBR.js} +53 -4
  118. package/dist/chunk-VN4FSGBR.js.map +1 -0
  119. package/dist/{chunk-BITGO5LI.cjs → chunk-VNHLFS6T.cjs} +4 -4
  120. package/dist/{chunk-BITGO5LI.cjs.map → chunk-VNHLFS6T.cjs.map} +1 -1
  121. package/dist/{chunk-CHHE2UNJ.js → chunk-WNC5INOD.js} +4 -4
  122. package/dist/{chunk-CHHE2UNJ.js.map → chunk-WNC5INOD.js.map} +1 -1
  123. package/dist/{chunk-6EGWPMPU.cjs → chunk-WPOQLGKJ.cjs} +14 -14
  124. package/dist/{chunk-6EGWPMPU.cjs.map → chunk-WPOQLGKJ.cjs.map} +1 -1
  125. package/dist/{chunk-FERNQVSH.js → chunk-X4Y7ZHFB.js} +30 -5
  126. package/dist/chunk-X4Y7ZHFB.js.map +1 -0
  127. package/dist/{chunk-UAFP562F.js → chunk-XL55UDLO.js} +3 -3
  128. package/dist/{chunk-UAFP562F.js.map → chunk-XL55UDLO.js.map} +1 -1
  129. package/dist/{chunk-P3HSWP2P.js → chunk-XVGUR746.js} +3 -3
  130. package/dist/{chunk-P3HSWP2P.js.map → chunk-XVGUR746.js.map} +1 -1
  131. package/dist/{chunk-YVA6SCVO.js → chunk-Y5ER2GAU.js} +3 -3
  132. package/dist/{chunk-YVA6SCVO.js.map → chunk-Y5ER2GAU.js.map} +1 -1
  133. package/dist/{chunk-O3TAF4ZM.js → chunk-Y7DWW5XD.js} +3 -3
  134. package/dist/{chunk-O3TAF4ZM.js.map → chunk-Y7DWW5XD.js.map} +1 -1
  135. package/dist/{chunk-APVKLXM5.cjs → chunk-YBTKLOGG.cjs} +4 -4
  136. package/dist/{chunk-APVKLXM5.cjs.map → chunk-YBTKLOGG.cjs.map} +1 -1
  137. package/dist/{chunk-YVEMNMIA.cjs → chunk-YOMT5FFH.cjs} +6 -6
  138. package/dist/{chunk-YVEMNMIA.cjs.map → chunk-YOMT5FFH.cjs.map} +1 -1
  139. package/dist/{chunk-VFZLZSJ3.js → chunk-ZYGQFD5Y.js} +3 -3
  140. package/dist/{chunk-VFZLZSJ3.js.map → chunk-ZYGQFD5Y.js.map} +1 -1
  141. package/dist/citations/index.cjs +10 -10
  142. package/dist/citations/index.js +2 -2
  143. package/dist/connect/docx.cjs +13 -13
  144. package/dist/connect/docx.js +9 -9
  145. package/dist/connect/index.cjs +1393 -866
  146. package/dist/connect/index.cjs.map +1 -1
  147. package/dist/connect/index.d.ts +1 -0
  148. package/dist/connect/index.js +575 -57
  149. package/dist/connect/index.js.map +1 -1
  150. package/dist/connect/viewer.cjs +77 -77
  151. package/dist/connect/viewer.js +12 -12
  152. package/dist/connection/auth/support.d.ts +17 -0
  153. package/dist/connection/auth/useLoginActions.d.ts +5 -0
  154. package/dist/connection/billing/ConnectedQuotaDialog.d.ts +5 -13
  155. package/dist/connection/billing/ProjectUsageContent.d.ts +7 -4
  156. package/dist/connection/billing/index.d.ts +2 -1
  157. package/dist/connection/connectors/ConnectedSharePointAdminConsentPage.d.ts +26 -0
  158. package/dist/connection/connectors/index.d.ts +1 -0
  159. package/dist/connection/defaultHost.d.ts +1 -1
  160. package/dist/connection/entities/ConnectedProjectEntity.d.ts +8 -0
  161. package/dist/connection/entities/ConnectedUserEntity.d.ts +20 -0
  162. package/dist/connection/entities/ConnectedWorkspaceEntity.d.ts +31 -0
  163. package/dist/connection/entities/index.d.ts +5 -0
  164. package/dist/connection/entities/renderConnectedUser.d.ts +6 -0
  165. package/dist/connection/settings-page/ConnectedAccountSettings.d.ts +2 -1
  166. package/dist/connection/settings-page/ConnectedBoxPortalSection.d.ts +6 -0
  167. package/dist/connection/settings-page/index.d.ts +1 -0
  168. package/dist/connection/settings-page/sections.d.ts +44 -0
  169. package/dist/facts/index.cjs +3 -3
  170. package/dist/facts/index.js +2 -2
  171. package/dist/files/index.cjs +223 -223
  172. package/dist/files/index.js +3 -3
  173. package/dist/home/index.cjs +30 -30
  174. package/dist/home/index.js +5 -5
  175. package/dist/index.cjs +643 -643
  176. package/dist/index.js +18 -18
  177. package/dist/provider/environment.d.ts +2 -0
  178. package/dist/retrieval/index.cjs +4 -4
  179. package/dist/retrieval/index.js +2 -2
  180. package/dist/shell/index.cjs +46 -46
  181. package/dist/shell/index.js +3 -3
  182. package/dist/studio/index.cjs +14 -14
  183. package/dist/studio/index.js +6 -6
  184. package/dist/workflow-canvas/index.cjs +26 -26
  185. package/dist/workflow-canvas/index.js +8 -8
  186. package/dist/workspaces/WorkspaceTypeBadge.d.ts +14 -0
  187. package/dist/workspaces/index.cjs +32 -28
  188. package/dist/workspaces/index.d.ts +1 -0
  189. package/dist/workspaces/index.js +4 -4
  190. package/node_modules/@arbidocs/coedit/dist/encoding.cjs +54 -56
  191. package/node_modules/@arbidocs/coedit/dist/encoding.cjs.map +1 -1
  192. package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +50 -14
  193. package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +50 -14
  194. package/node_modules/@arbidocs/coedit/dist/encoding.js +54 -57
  195. package/node_modules/@arbidocs/coedit/dist/encoding.js.map +1 -1
  196. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +211 -109
  197. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
  198. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +211 -109
  199. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
  200. package/node_modules/@arbidocs/coedit/dist/index.cjs +210 -108
  201. package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
  202. package/node_modules/@arbidocs/coedit/dist/index.d.cts +1 -1
  203. package/node_modules/@arbidocs/coedit/dist/index.d.ts +1 -1
  204. package/node_modules/@arbidocs/coedit/dist/index.js +210 -108
  205. package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
  206. package/node_modules/@arbidocs/coedit/dist/server.cjs +214 -112
  207. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  208. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  209. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  210. package/node_modules/@arbidocs/coedit/dist/server.js +214 -112
  211. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  212. package/node_modules/@arbidocs/coedit/dist/template.cjs +3 -2
  213. package/node_modules/@arbidocs/coedit/dist/template.cjs.map +1 -1
  214. package/node_modules/@arbidocs/coedit/dist/template.d.cts +5 -0
  215. package/node_modules/@arbidocs/coedit/dist/template.d.ts +5 -0
  216. package/node_modules/@arbidocs/coedit/dist/template.js +3 -2
  217. package/node_modules/@arbidocs/coedit/dist/template.js.map +1 -1
  218. package/node_modules/@arbidocs/coedit/dist/{versions-DXiFQMA6.d.ts → versions-XSYTVmOU.d.cts} +1 -1
  219. package/node_modules/@arbidocs/coedit/dist/{versions-DXiFQMA6.d.cts → versions-XSYTVmOU.d.ts} +1 -1
  220. package/node_modules/@arbidocs/coedit/package.json +1 -1
  221. package/package.json +5 -5
  222. package/dist/ConnectedStreamedWordArtifact-KCYSJ3B2.js.map +0 -1
  223. package/dist/ConnectedStreamedWordArtifact-Q5KC4W7O.cjs.map +0 -1
  224. package/dist/chunk-5ZU2XYXO.cjs.map +0 -1
  225. package/dist/chunk-FERNQVSH.js.map +0 -1
  226. package/dist/chunk-IXBJEQH5.js.map +0 -1
  227. package/dist/chunk-K237IYOD.cjs.map +0 -1
  228. package/dist/chunk-KL6XOSEN.js.map +0 -1
  229. package/dist/chunk-MSPNYW6Z.cjs.map +0 -1
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkMJT7KHHT_cjs = require('../chunk-MJT7KHHT.cjs');
5
- var chunkFQIJICZE_cjs = require('../chunk-FQIJICZE.cjs');
4
+ var chunk75UVQKQ5_cjs = require('../chunk-75UVQKQ5.cjs');
5
+ var chunkS4G3DNMA_cjs = require('../chunk-S4G3DNMA.cjs');
6
6
  require('../chunk-RFIBUWLF.cjs');
7
- var chunkYRHQ7OLG_cjs = require('../chunk-YRHQ7OLG.cjs');
8
- require('../chunk-CQU37FNV.cjs');
7
+ var chunkI5RK4WAE_cjs = require('../chunk-I5RK4WAE.cjs');
8
+ require('../chunk-KKT53TZQ.cjs');
9
9
  require('../chunk-AQPZ4QMV.cjs');
10
10
  require('../chunk-SIB6C7P7.cjs');
11
11
  require('../chunk-DVUZTGVL.cjs');
12
12
  require('../chunk-V4ISCZJ7.cjs');
13
13
  require('../chunk-AHDJXIUB.cjs');
14
14
  require('../chunk-2EI7NCUA.cjs');
15
- require('../chunk-4C2S3Z3I.cjs');
15
+ require('../chunk-QW3SVHGM.cjs');
16
16
  require('../chunk-LKK52DEY.cjs');
17
17
  require('../chunk-VZOOGA47.cjs');
18
- var chunkYVEMNMIA_cjs = require('../chunk-YVEMNMIA.cjs');
19
- var chunkYQJOWQDJ_cjs = require('../chunk-YQJOWQDJ.cjs');
18
+ var chunkYOMT5FFH_cjs = require('../chunk-YOMT5FFH.cjs');
19
+ var chunkIWT4QVQL_cjs = require('../chunk-IWT4QVQL.cjs');
20
20
  require('../chunk-MB3S2ETI.cjs');
21
21
  require('../chunk-MEMWZ72Y.cjs');
22
22
  require('../chunk-ZW6FPIFC.cjs');
@@ -27,7 +27,7 @@ require('../chunk-UFEXJIEY.cjs');
27
27
  require('../chunk-FX3K6LNZ.cjs');
28
28
  require('../chunk-CQ2YSHIF.cjs');
29
29
  require('../chunk-PPCATBOY.cjs');
30
- var chunkR2HXGTVB_cjs = require('../chunk-R2HXGTVB.cjs');
30
+ var chunk2QQUGL2V_cjs = require('../chunk-2QQUGL2V.cjs');
31
31
  require('../chunk-SI222Z3A.cjs');
32
32
  require('../chunk-ULWRNGGE.cjs');
33
33
  require('../chunk-MHVNT4J3.cjs');
@@ -322,9 +322,9 @@ function SignalsEditor({
322
322
  {
323
323
  className: ui.cn(
324
324
  "space-y-1.5 rounded-md border p-2",
325
- chunkFQIJICZE_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
325
+ chunkS4G3DNMA_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
326
326
  ),
327
- "data-incomplete": chunkFQIJICZE_cjs.isIncompleteSignal(signal) || void 0,
327
+ "data-incomplete": chunkS4G3DNMA_cjs.isIncompleteSignal(signal) || void 0,
328
328
  "data-testid": `${testId}-${i}`,
329
329
  children: [
330
330
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -1610,7 +1610,7 @@ function triggerFields(trigger, clearOthers) {
1610
1610
  return {
1611
1611
  timezone: trigger.timezone,
1612
1612
  rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
1613
- run_at: trigger.start === "once" ? chunkFQIJICZE_cjs.localInputToIso(trigger.runAt) : none,
1613
+ run_at: trigger.start === "once" ? chunkS4G3DNMA_cjs.localInputToIso(trigger.runAt) : none,
1614
1614
  event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
1615
1615
  // A step signal is `workflow_signal` narrowed to one signal name.
1616
1616
  event_filter: filter ?? none,
@@ -1626,7 +1626,7 @@ function plan(value, options) {
1626
1626
  criteria: [],
1627
1627
  max_passes: 3,
1628
1628
  documents: [],
1629
- steps: chunkFQIJICZE_cjs.toPlanSteps(value.workflow, options)
1629
+ steps: chunkS4G3DNMA_cjs.toPlanSteps(value.workflow, options)
1630
1630
  };
1631
1631
  }
1632
1632
  function builderToWorkflowRequest(value, workspaceId, options = {}) {
@@ -1661,7 +1661,7 @@ function builderToWorkflowUpdate(value, options = {}) {
1661
1661
  }
1662
1662
  function workflowRecordToBuilder(record) {
1663
1663
  const planned = record.plan?.steps ?? [];
1664
- const steps = planned.length ? chunkFQIJICZE_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1664
+ const steps = planned.length ? chunkS4G3DNMA_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1665
1665
  {
1666
1666
  id: "work",
1667
1667
  kind: "agent",
@@ -1669,7 +1669,7 @@ function workflowRecordToBuilder(record) {
1669
1669
  ...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
1670
1670
  }
1671
1671
  ] : [];
1672
- const when = chunkFQIJICZE_cjs.workflowWhen(record);
1672
+ const when = chunkS4G3DNMA_cjs.workflowWhen(record);
1673
1673
  return {
1674
1674
  workflow: {
1675
1675
  id: record.external_id,
@@ -1678,12 +1678,12 @@ function workflowRecordToBuilder(record) {
1678
1678
  inputs: [],
1679
1679
  landing: "chat",
1680
1680
  schedulable: false,
1681
- run: { kind: "steps", steps, layout: chunkFQIJICZE_cjs.layoutFromPlanSteps(planned ?? []) }
1681
+ run: { kind: "steps", steps, layout: chunkS4G3DNMA_cjs.layoutFromPlanSteps(planned ?? []) }
1682
1682
  },
1683
1683
  trigger: {
1684
1684
  ...DEFAULT_WORKFLOW_TRIGGER,
1685
1685
  start: when === "now" ? "manual" : when,
1686
- runAt: chunkFQIJICZE_cjs.isoToLocalInput(record.run_at),
1686
+ runAt: chunkS4G3DNMA_cjs.isoToLocalInput(record.run_at),
1687
1687
  rrule: record.rrule ?? "",
1688
1688
  timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
1689
1689
  eventKind: record.event_kind ?? "",
@@ -1739,7 +1739,7 @@ function triggerSummary(trigger, options = {}) {
1739
1739
  case "once":
1740
1740
  return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
1741
1741
  case "repeat":
1742
- return trigger.rrule ? chunkFQIJICZE_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1742
+ return trigger.rrule ? chunkS4G3DNMA_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1743
1743
  case "event":
1744
1744
  if (isSignalTrigger(trigger))
1745
1745
  return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
@@ -1798,7 +1798,7 @@ function TriggerInspector({
1798
1798
  }
1799
1799
  )
1800
1800
  ] }),
1801
- trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkFQIJICZE_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1801
+ trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkS4G3DNMA_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1802
1802
  trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1803
1803
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
1804
1804
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1850,7 +1850,7 @@ function TriggerInspector({
1850
1850
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1851
1851
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
1852
1852
  /* @__PURE__ */ jsxRuntime.jsx(
1853
- chunkYRHQ7OLG_cjs.AgentSelect,
1853
+ chunkI5RK4WAE_cjs.AgentSelect,
1854
1854
  {
1855
1855
  agents,
1856
1856
  value: trigger.agentId,
@@ -2687,13 +2687,13 @@ function WorkflowPreview({
2687
2687
  renderIcon,
2688
2688
  testId
2689
2689
  }) {
2690
- const run = chunkMJT7KHHT_cjs.useWorkflowPreview(workflow, {
2690
+ const run = chunk75UVQKQ5_cjs.useWorkflowPreview(workflow, {
2691
2691
  resolveWorkflow: (id) => workflows.find((w) => w.id === id),
2692
2692
  compose,
2693
2693
  answer
2694
2694
  });
2695
2695
  return /* @__PURE__ */ jsxRuntime.jsx(
2696
- chunkFQIJICZE_cjs.WorkflowRunner,
2696
+ chunkS4G3DNMA_cjs.WorkflowRunner,
2697
2697
  {
2698
2698
  workflow,
2699
2699
  run,
@@ -2769,14 +2769,14 @@ function ConnectedWorkflowBuilder({
2769
2769
  ...builderProps
2770
2770
  }) {
2771
2771
  const l = { ...DEFAULT_CONNECTED_WORKFLOW_BUILDER_LABELS, ...connectedLabels };
2772
- const { notify, openConversation } = chunkR2HXGTVB_cjs.useBlocksEnvironment();
2773
- const { workspaceId, live, ensureWorkspaceOpen } = chunkYQJOWQDJ_cjs.useConnectedWorkspace();
2772
+ const { notify, openConversation } = chunk2QQUGL2V_cjs.useBlocksEnvironment();
2773
+ const { workspaceId, live, ensureWorkspaceOpen } = chunkIWT4QVQL_cjs.useConnectedWorkspace();
2774
2774
  const members = react$2.useWorkspaceUsers(workspaceId ?? void 0, {
2775
2775
  enabled: live && !!workspaceId,
2776
2776
  beforeFetch: ensureWorkspaceOpen
2777
2777
  });
2778
- const { data: tagList } = chunkYVEMNMIA_cjs.useConnectedTags();
2779
- const { data: docList } = chunkYVEMNMIA_cjs.useListedDocuments();
2778
+ const { data: tagList } = chunkYOMT5FFH_cjs.useConnectedTags();
2779
+ const { data: docList } = chunkYOMT5FFH_cjs.useListedDocuments();
2780
2780
  const people = (members.data ?? []).map((m) => ({
2781
2781
  value: m.user.external_id,
2782
2782
  label: [m.user.given_name, m.user.family_name].filter(Boolean).join(" ") || m.user.email
@@ -2789,7 +2789,7 @@ function ConnectedWorkflowBuilder({
2789
2789
  const saved = react$2.useWorkflows();
2790
2790
  const skills = react$2.useSkills();
2791
2791
  const agentsQuery = react$2.useAgents();
2792
- const { data: conversations } = chunkYVEMNMIA_cjs.useConnectedConversations();
2792
+ const { data: conversations } = chunkYOMT5FFH_cjs.useConnectedConversations();
2793
2793
  const create = react$2.useCreateWorkflow();
2794
2794
  const update = react$2.useUpdateWorkflow();
2795
2795
  const run = react$2.useRunWorkflow();
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- import { useWorkflowPreview } from '../chunk-F7IQGPZH.js';
3
- import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-DTENNALR.js';
2
+ import { useWorkflowPreview } from '../chunk-C6P2QW36.js';
3
+ import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-44FPFTU2.js';
4
4
  import '../chunk-CQCC7LE7.js';
5
- import { AgentSelect } from '../chunk-YT5OOFK3.js';
6
- import '../chunk-KMF3ORIV.js';
5
+ import { AgentSelect } from '../chunk-7S76Q5RK.js';
6
+ import '../chunk-MQEN62NR.js';
7
7
  import '../chunk-G4GLDQLY.js';
8
8
  import '../chunk-M4S75AEJ.js';
9
9
  import '../chunk-5LXQPP2K.js';
10
10
  import '../chunk-NUNKSZKU.js';
11
11
  import '../chunk-RLWIUUQ5.js';
12
12
  import '../chunk-YU2KUMGE.js';
13
- import '../chunk-ML62FUHZ.js';
13
+ import '../chunk-SUDPZ5IQ.js';
14
14
  import '../chunk-7F5Z4K5W.js';
15
15
  import '../chunk-WNDIVNPT.js';
16
- import { useConnectedTags, useListedDocuments, useConnectedConversations } from '../chunk-KILCORJ7.js';
17
- import { useConnectedWorkspace } from '../chunk-UNZUM76L.js';
16
+ import { useConnectedTags, useListedDocuments, useConnectedConversations } from '../chunk-DHPEUC6H.js';
17
+ import { useConnectedWorkspace } from '../chunk-RRIXIUYD.js';
18
18
  import '../chunk-T4P237N6.js';
19
19
  import '../chunk-ABEKUV6L.js';
20
20
  import '../chunk-P6GHJSLR.js';
@@ -25,7 +25,7 @@ import '../chunk-5VYJP6XD.js';
25
25
  import '../chunk-SLSBJRWW.js';
26
26
  import '../chunk-GAGYAHYO.js';
27
27
  import '../chunk-NPLYHR2E.js';
28
- import { useBlocksEnvironment } from '../chunk-BQQTLZBN.js';
28
+ import { useBlocksEnvironment } from '../chunk-GRT4EH76.js';
29
29
  import '../chunk-U4HWVCRN.js';
30
30
  import '../chunk-TX2ZICS7.js';
31
31
  import '../chunk-7F6CBP3Z.js';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * WorkspaceTypeBadge: a workspace's type badge (private, shared or public: icon, colour, label).
3
+ */
4
+ import type { components } from '@arbidocs/client';
5
+ type Workspace = Pick<components['schemas']['WorkspaceResponse'], 'is_public' | 'users'>;
6
+ export interface WorkspaceTypeBadgeProps {
7
+ workspace: Workspace;
8
+ showTooltip?: boolean;
9
+ size?: 'sm' | 'md';
10
+ isSelected?: boolean;
11
+ className?: string;
12
+ }
13
+ export declare function WorkspaceTypeBadge({ workspace, showTooltip, size, isSelected, className, }: WorkspaceTypeBadgeProps): import("react").JSX.Element;
14
+ export {};
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk5ZU2XYXO_cjs = require('../chunk-5ZU2XYXO.cjs');
4
+ var chunkKJVDYWAM_cjs = require('../chunk-KJVDYWAM.cjs');
5
5
  var chunkJUUOJP7I_cjs = require('../chunk-JUUOJP7I.cjs');
6
6
  require('../chunk-UAEYU2NN.cjs');
7
7
  require('../chunk-C2ECYOPP.cjs');
8
8
  var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
9
- require('../chunk-4C2S3Z3I.cjs');
9
+ require('../chunk-QW3SVHGM.cjs');
10
10
  require('../chunk-UFEXJIEY.cjs');
11
- require('../chunk-R2HXGTVB.cjs');
11
+ require('../chunk-2QQUGL2V.cjs');
12
12
  require('../chunk-SI222Z3A.cjs');
13
13
  require('../chunk-ULWRNGGE.cjs');
14
14
  require('../chunk-MHVNT4J3.cjs');
@@ -63,7 +63,7 @@ function WorkspaceGallery({
63
63
  const opening = workspace.id === activeOpeningId;
64
64
  const state = { current, opening };
65
65
  return /* @__PURE__ */ jsxRuntime.jsx(
66
- chunk5ZU2XYXO_cjs.WorkspaceCard,
66
+ chunkKJVDYWAM_cjs.WorkspaceCard,
67
67
  {
68
68
  workspace,
69
69
  current,
@@ -86,99 +86,103 @@ function WorkspaceGallery({
86
86
 
87
87
  Object.defineProperty(exports, "CommonWorkspaceToggle", {
88
88
  enumerable: true,
89
- get: function () { return chunk5ZU2XYXO_cjs.CommonWorkspaceToggle; }
89
+ get: function () { return chunkKJVDYWAM_cjs.CommonWorkspaceToggle; }
90
90
  });
91
91
  Object.defineProperty(exports, "DEFAULT_WORKSPACE_CARD_LABELS", {
92
92
  enumerable: true,
93
- get: function () { return chunk5ZU2XYXO_cjs.DEFAULT_WORKSPACE_CARD_LABELS; }
93
+ get: function () { return chunkKJVDYWAM_cjs.DEFAULT_WORKSPACE_CARD_LABELS; }
94
94
  });
95
95
  Object.defineProperty(exports, "ExpandableSection", {
96
96
  enumerable: true,
97
- get: function () { return chunk5ZU2XYXO_cjs.ExpandableSection; }
97
+ get: function () { return chunkKJVDYWAM_cjs.ExpandableSection; }
98
98
  });
99
99
  Object.defineProperty(exports, "FormActions", {
100
100
  enumerable: true,
101
- get: function () { return chunk5ZU2XYXO_cjs.FormActions; }
101
+ get: function () { return chunkKJVDYWAM_cjs.FormActions; }
102
102
  });
103
103
  Object.defineProperty(exports, "FormErrorBanner", {
104
104
  enumerable: true,
105
- get: function () { return chunk5ZU2XYXO_cjs.FormErrorBanner; }
105
+ get: function () { return chunkKJVDYWAM_cjs.FormErrorBanner; }
106
106
  });
107
107
  Object.defineProperty(exports, "ItalicNone", {
108
108
  enumerable: true,
109
- get: function () { return chunk5ZU2XYXO_cjs.ItalicNone; }
109
+ get: function () { return chunkKJVDYWAM_cjs.ItalicNone; }
110
110
  });
111
111
  Object.defineProperty(exports, "LeaveFooter", {
112
112
  enumerable: true,
113
- get: function () { return chunk5ZU2XYXO_cjs.LeaveFooter; }
113
+ get: function () { return chunkKJVDYWAM_cjs.LeaveFooter; }
114
114
  });
115
115
  Object.defineProperty(exports, "ModalActionRow", {
116
116
  enumerable: true,
117
- get: function () { return chunk5ZU2XYXO_cjs.ModalActionRow; }
117
+ get: function () { return chunkKJVDYWAM_cjs.ModalActionRow; }
118
118
  });
119
119
  Object.defineProperty(exports, "PageLoading", {
120
120
  enumerable: true,
121
- get: function () { return chunk5ZU2XYXO_cjs.PageLoading; }
121
+ get: function () { return chunkKJVDYWAM_cjs.PageLoading; }
122
122
  });
123
123
  Object.defineProperty(exports, "ProjectActionButton", {
124
124
  enumerable: true,
125
- get: function () { return chunk5ZU2XYXO_cjs.ProjectActionButton; }
125
+ get: function () { return chunkKJVDYWAM_cjs.ProjectActionButton; }
126
126
  });
127
127
  Object.defineProperty(exports, "ProjectOptionRow", {
128
128
  enumerable: true,
129
- get: function () { return chunk5ZU2XYXO_cjs.ProjectOptionRow; }
129
+ get: function () { return chunkKJVDYWAM_cjs.ProjectOptionRow; }
130
130
  });
131
131
  Object.defineProperty(exports, "ProjectPicker", {
132
132
  enumerable: true,
133
- get: function () { return chunk5ZU2XYXO_cjs.ProjectPicker; }
133
+ get: function () { return chunkKJVDYWAM_cjs.ProjectPicker; }
134
134
  });
135
135
  Object.defineProperty(exports, "WorkspaceAudienceLine", {
136
136
  enumerable: true,
137
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceAudienceLine; }
137
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceAudienceLine; }
138
138
  });
139
139
  Object.defineProperty(exports, "WorkspaceCard", {
140
140
  enumerable: true,
141
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceCard; }
141
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceCard; }
142
142
  });
143
143
  Object.defineProperty(exports, "WorkspaceFieldsView", {
144
144
  enumerable: true,
145
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceFieldsView; }
145
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceFieldsView; }
146
146
  });
147
147
  Object.defineProperty(exports, "WorkspaceFormModal", {
148
148
  enumerable: true,
149
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceFormModal; }
149
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceFormModal; }
150
150
  });
151
151
  Object.defineProperty(exports, "WorkspaceGroup", {
152
152
  enumerable: true,
153
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceGroup; }
153
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceGroup; }
154
154
  });
155
155
  Object.defineProperty(exports, "WorkspaceIdentityPanel", {
156
156
  enumerable: true,
157
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceIdentityPanel; }
157
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceIdentityPanel; }
158
158
  });
159
159
  Object.defineProperty(exports, "WorkspaceList", {
160
160
  enumerable: true,
161
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceList; }
161
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceList; }
162
162
  });
163
163
  Object.defineProperty(exports, "WorkspacePageFrame", {
164
164
  enumerable: true,
165
- get: function () { return chunk5ZU2XYXO_cjs.WorkspacePageFrame; }
165
+ get: function () { return chunkKJVDYWAM_cjs.WorkspacePageFrame; }
166
166
  });
167
167
  Object.defineProperty(exports, "WorkspaceProjectSlot", {
168
168
  enumerable: true,
169
- get: function () { return chunk5ZU2XYXO_cjs.WorkspaceProjectSlot; }
169
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceProjectSlot; }
170
+ });
171
+ Object.defineProperty(exports, "WorkspaceTypeBadge", {
172
+ enumerable: true,
173
+ get: function () { return chunkKJVDYWAM_cjs.WorkspaceTypeBadge; }
170
174
  });
171
175
  Object.defineProperty(exports, "formatRole", {
172
176
  enumerable: true,
173
- get: function () { return chunk5ZU2XYXO_cjs.formatRole; }
177
+ get: function () { return chunkKJVDYWAM_cjs.formatRole; }
174
178
  });
175
179
  Object.defineProperty(exports, "getRoleBadgeClass", {
176
180
  enumerable: true,
177
- get: function () { return chunk5ZU2XYXO_cjs.getRoleBadgeClass; }
181
+ get: function () { return chunkKJVDYWAM_cjs.getRoleBadgeClass; }
178
182
  });
179
183
  Object.defineProperty(exports, "getRoleDescription", {
180
184
  enumerable: true,
181
- get: function () { return chunk5ZU2XYXO_cjs.getRoleDescription; }
185
+ get: function () { return chunkKJVDYWAM_cjs.getRoleDescription; }
182
186
  });
183
187
  Object.defineProperty(exports, "NO_PROJECT_GROUP_KEY", {
184
188
  enumerable: true,
@@ -8,6 +8,7 @@ export { WorkspacePageFrame, WorkspaceIdentityPanel, WorkspaceProjectSlot, Itali
8
8
  export type { WorkspaceProjectSlotProps, WorkspaceAudienceLineProps, LeaveFooterProps, } from './WorkspaceSettingsParts';
9
9
  export { RoleBadge, WorkspaceTypeBadgeView } from './WorkspaceBadges';
10
10
  export type { RoleBadgeProps, WorkspaceTypeBadgeViewProps } from './WorkspaceBadges';
11
+ export { WorkspaceTypeBadge, type WorkspaceTypeBadgeProps } from './WorkspaceTypeBadge';
11
12
  export { FormErrorBanner, FormActions, ModalActionRow, WorkspaceFormModal, ProjectOptionRow, ProjectPicker, ProjectActionButton, WorkspaceFieldsView, type WorkspaceFormModalProps, type ProjectPickerOption, type ProjectPickerProps, type WorkspaceFieldsViewProps, type WorkspaceFieldsLabels, } from './WorkspaceFormParts';
12
13
  export { getHumanUserCount, getWorkspaceTypeInfo, getVariantBgClass, getVariantBorderClass, type WorkspaceVariant, } from './workspace-type';
13
14
  export { CommonWorkspaceToggle, type CommonWorkspaceToggleProps } from './CommonWorkspaceToggle';
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { WorkspaceCard } from '../chunk-FERNQVSH.js';
3
- export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-FERNQVSH.js';
2
+ import { WorkspaceCard } from '../chunk-X4Y7ZHFB.js';
3
+ export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, WorkspaceTypeBadge, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-X4Y7ZHFB.js';
4
4
  export { NO_PROJECT_GROUP_KEY, WORKSPACE_CATEGORY_FILTERS, byRecentUpdate, getHumanUserCount, getVariantBgClass, getVariantBorderClass, getWorkspaceTypeInfo, groupWorkspacesByProject, isAgentAccount, isListedWorkspace, projectFilterId, workspaceConversationCount, workspaceDocumentCount, workspaceFilterAttributes, workspaceGroupStats } from '../chunk-BTF4AZMG.js';
5
5
  import '../chunk-WZ63HE2C.js';
6
6
  import '../chunk-FUPAGAZB.js';
7
7
  export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
8
- import '../chunk-ML62FUHZ.js';
8
+ import '../chunk-SUDPZ5IQ.js';
9
9
  import '../chunk-5VYJP6XD.js';
10
- import '../chunk-BQQTLZBN.js';
10
+ import '../chunk-GRT4EH76.js';
11
11
  import '../chunk-U4HWVCRN.js';
12
12
  import '../chunk-TX2ZICS7.js';
13
13
  import '../chunk-7F6CBP3Z.js';
@@ -334,6 +334,20 @@ function writeUnits(text, units) {
334
334
  function isRichParagraph(map) {
335
335
  return map.has("inline");
336
336
  }
337
+ var PACKED = "xml";
338
+ function isPackedElement(map) {
339
+ return map.has(PACKED);
340
+ }
341
+ var TEXT_BEARING = /* @__PURE__ */ new Set(["p", "t", "delText", "instrText", "delInstrText"]);
342
+ function packable(xml) {
343
+ if (xml.ns === WML && TEXT_BEARING.has(xml.local)) return false;
344
+ return xml.children.every((c) => typeof c === "string" || packable(c));
345
+ }
346
+ function createPacked(xml, scope) {
347
+ const map = new Y__namespace.Map();
348
+ map.set(PACKED, serializeXml(xml, scope));
349
+ return map;
350
+ }
337
351
  function isParagraphEl(el) {
338
352
  return el.ns === WML && el.local === "p";
339
353
  }
@@ -353,57 +367,47 @@ function newText(value) {
353
367
  text.insert(0, value);
354
368
  return text;
355
369
  }
356
- function createRichParagraph(xml, encoded) {
370
+ function createRichParagraph(xml, encoded, scope = /* @__PURE__ */ new Map()) {
357
371
  const map = new Y__namespace.Map();
358
372
  fieldsOf(map, xml);
373
+ const inner = withBindings(scope, xml.bindings);
359
374
  const children = new Y__namespace.Array();
360
- children.push(encoded.head.map((el) => xmlToLive(el)));
375
+ children.push(encoded.head.map((el) => xmlToLive(el, inner)));
361
376
  map.set("children", children);
362
377
  const inline = new Y__namespace.Text();
363
378
  writeUnits(inline, encoded.units);
364
379
  map.set("inline", inline);
365
380
  return map;
366
381
  }
367
- function xmlToLive(xml) {
382
+ function withBindings(scope, bindings) {
383
+ const inner = new Map(scope);
384
+ for (const b of bindings) inner.set(b.prefix, b.ns);
385
+ return inner;
386
+ }
387
+ function xmlToLive(xml, scope = /* @__PURE__ */ new Map(), root = false) {
368
388
  if (isParagraphEl(xml)) {
369
389
  const encoded = encodeParagraph(xml.children);
370
- if (encoded) return createRichParagraph(xml, encoded);
390
+ if (encoded) return createRichParagraph(xml, encoded, scope);
371
391
  }
372
- return xmlToGenericLive(xml);
373
- }
374
- function xmlToGenericLive(xml) {
392
+ if (!root && packable(xml)) return createPacked(xml, scope);
375
393
  const map = new Y__namespace.Map();
376
394
  fieldsOf(map, xml);
395
+ const inner = withBindings(scope, xml.bindings);
377
396
  const children = new Y__namespace.Array();
378
- children.push(xml.children.map((c) => typeof c === "string" ? newText(c) : xmlToLive(c)));
397
+ children.push(xml.children.map((c) => typeof c === "string" ? newText(c) : xmlToLive(c, inner)));
379
398
  map.set("children", children);
380
399
  return map;
381
400
  }
382
- function liveToXml(map) {
383
- const prefix = map.get("prefix");
384
- const stored = map.get("children").toArray().map((child) => child instanceof Y__namespace.Text ? child.toString() : liveToXml(child));
385
- const children = isRichParagraph(map) ? [...stored, ...decodeInline(readUnits(map.get("inline")))] : stored;
386
- const xml = {
387
- ns: map.get("ns"),
388
- local: map.get("local"),
389
- attrs: map.get("attrs").toArray().map((a) => ({ ...a })),
390
- bindings: map.get("bindings").toArray().map((b) => ({ ...b })),
391
- children
392
- };
393
- if (prefix !== void 0) xml.prefix = prefix;
394
- return xml;
395
- }
396
401
  var escapeText = (value) => value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
397
402
  var escapeAttr = (value) => value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/\t/g, "&#9;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;");
398
403
  var qualified = (prefix, local) => prefix ? `${prefix}:${local}` : local;
399
- function serializeXml(el, scope) {
400
- const inScope = new Map(scope);
401
- for (const b of el.bindings) inScope.set(b.prefix, b.ns);
402
- let out = `<${qualified(el.prefix, el.local)}`;
403
- for (const b of el.bindings) {
404
+ function startTag(prefix, local, bindings, attrs, scope) {
405
+ const inScope = withBindings(scope, bindings);
406
+ let out = `<${qualified(prefix, local)}`;
407
+ for (const b of bindings) {
404
408
  out += b.prefix === "" ? ` xmlns="${escapeAttr(b.ns)}"` : ` xmlns:${b.prefix}="${escapeAttr(b.ns)}"`;
405
409
  }
406
- for (const a of el.attrs) {
410
+ for (const a of attrs) {
407
411
  let p = a.prefix;
408
412
  if (a.ns !== "" && !p) {
409
413
  for (const [candidate, uri] of inScope) {
@@ -415,48 +419,41 @@ function serializeXml(el, scope) {
415
419
  }
416
420
  out += ` ${qualified(p, a.local)}="${escapeAttr(a.value)}"`;
417
421
  }
422
+ return [out, inScope];
423
+ }
424
+ function serializeXml(el, scope) {
425
+ const [out, inScope] = startTag(el.prefix, el.local, el.bindings, el.attrs, scope);
418
426
  if (el.children.length === 0) return `${out}/>`;
419
- out += ">";
427
+ let body = "";
420
428
  for (const child of el.children) {
421
- out += typeof child === "string" ? escapeText(child) : serializeXml(child, inScope);
429
+ body += typeof child === "string" ? escapeText(child) : serializeXml(child, inScope);
422
430
  }
423
- return `${out}</${qualified(el.prefix, el.local)}>`;
431
+ return `${out}>${body}</${qualified(el.prefix, el.local)}>`;
424
432
  }
425
433
  function serializeLive(el, scope) {
426
- if (isRichParagraph(el)) return serializeXml(liveToXml(el), scope);
434
+ if (isPackedElement(el)) return el.get(PACKED);
427
435
  const prefix = el.get("prefix");
428
436
  const local = el.get("local");
429
437
  const bindings = el.get("bindings").toArray();
430
438
  const attrs = el.get("attrs").toArray();
431
439
  const children = el.get("children").toArray();
432
- const inScope = new Map(scope);
433
- for (const b of bindings) inScope.set(b.prefix, b.ns);
434
- let out = `<${qualified(prefix, local)}`;
435
- for (const b of bindings) {
436
- out += b.prefix === "" ? ` xmlns="${escapeAttr(b.ns)}"` : ` xmlns:${b.prefix}="${escapeAttr(b.ns)}"`;
437
- }
438
- for (const a of attrs) {
439
- let p = a.prefix;
440
- if (a.ns !== "" && !p) {
441
- for (const [candidate, uri] of inScope) {
442
- if (candidate !== "" && uri === a.ns) {
443
- p = candidate;
444
- break;
445
- }
446
- }
447
- }
448
- out += ` ${qualified(p, a.local)}="${escapeAttr(a.value)}"`;
449
- }
450
- if (children.length === 0) return `${out}/>`;
451
- out += ">";
440
+ const [out, inScope] = startTag(prefix, local, bindings, attrs, scope);
441
+ const inline = isRichParagraph(el) ? decodeInline(readUnits(el.get("inline"))) : [];
442
+ if (children.length === 0 && inline.length === 0) return `${out}/>`;
443
+ let body = "";
452
444
  for (const child of children) {
453
- out += child instanceof Y__namespace.Text ? escapeText(child.toString()) : serializeLive(child, inScope);
445
+ body += child instanceof Y__namespace.Text ? escapeText(child.toString()) : serializeLive(child, inScope);
454
446
  }
455
- return `${out}</${qualified(prefix, local)}>`;
447
+ for (const child of inline) body += serializeXml(child, inScope);
448
+ return `${out}>${body}</${qualified(prefix, local)}>`;
456
449
  }
457
450
 
458
451
  // src/encoding.ts
459
- var COLLAB_FORMAT = "arbi-docx/1";
452
+ var COLLAB_FORMAT = "arbi-docx/2";
453
+ var READABLE_FORMATS = /* @__PURE__ */ new Set(["arbi-docx/1", COLLAB_FORMAT]);
454
+ function isReadableFormat(format) {
455
+ return format !== void 0 && READABLE_FORMATS.has(format);
456
+ }
460
457
  function isText(node) {
461
458
  return node.kind === "textValue";
462
459
  }
@@ -477,7 +474,7 @@ function canonicalToXml(node) {
477
474
  return xml;
478
475
  }
479
476
  function encodeElement(el) {
480
- return xmlToLive(canonicalToXml(el));
477
+ return xmlToLive(canonicalToXml(el), /* @__PURE__ */ new Map(), true);
481
478
  }
482
479
  function encodeText(value) {
483
480
  return newText(value);
@@ -742,6 +739,7 @@ exports.contentTypeOf = contentTypeOf;
742
739
  exports.encodeElement = encodeElement;
743
740
  exports.encodeText = encodeText;
744
741
  exports.isBootstrapped = isBootstrapped;
742
+ exports.isReadableFormat = isReadableFormat;
745
743
  exports.materialize = materialize;
746
744
  exports.materializeBytes = materializeBytes;
747
745
  exports.readFormat = readFormat;