@arbidocs/blocks 0.5.153 → 0.5.155

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 (263) hide show
  1. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs → ConnectedNativeDocxComparison-2DAQX5GX.cjs} +8 -8
  2. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs.map → ConnectedNativeDocxComparison-2DAQX5GX.cjs.map} +1 -1
  3. package/dist/{ConnectedPresentation-JUXIXKYN.cjs → ConnectedPresentation-J42JPUVR.cjs} +13 -13
  4. package/dist/{ConnectedPresentation-JUXIXKYN.cjs.map → ConnectedPresentation-J42JPUVR.cjs.map} +1 -1
  5. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs → ConnectedSlidesTab-BYS7HFNK.cjs} +12 -12
  6. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs.map → ConnectedSlidesTab-BYS7HFNK.cjs.map} +1 -1
  7. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs → ConnectedStreamedWordArtifact-LTYB62VM.cjs} +8 -8
  8. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs.map → ConnectedStreamedWordArtifact-LTYB62VM.cjs.map} +1 -1
  9. package/dist/{DocumentReviewCard-5W2QQWKA.cjs → DocumentReviewCard-5AP55NGZ.cjs} +4 -3
  10. package/dist/DocumentReviewCard-5AP55NGZ.cjs.map +1 -0
  11. package/dist/{FilesViewerDialog-63QUTG4L.cjs → FilesViewerDialog-SHWCE3UN.cjs} +21 -19
  12. package/dist/FilesViewerDialog-SHWCE3UN.cjs.map +1 -0
  13. package/dist/{RechartsRenderer-NU6WUZJS.cjs → RechartsRenderer-EPVL5QZA.cjs} +2 -2
  14. package/dist/{RechartsRenderer-NU6WUZJS.cjs.map → RechartsRenderer-EPVL5QZA.cjs.map} +1 -1
  15. package/dist/{SpotlightStrip-HXQFPAAL.cjs → SpotlightStrip-JE6MXUBT.cjs} +6 -6
  16. package/dist/{SpotlightStrip-HXQFPAAL.cjs.map → SpotlightStrip-JE6MXUBT.cjs.map} +1 -1
  17. package/dist/{WorkspaceTableView-2QP2HJLK.cjs → WorkspaceTableView-S4IBYQVF.cjs} +13 -11
  18. package/dist/WorkspaceTableView-S4IBYQVF.cjs.map +1 -0
  19. package/dist/agents/index.cjs +244 -243
  20. package/dist/agents/workflows/WorkflowLauncher.d.ts +3 -1
  21. package/dist/agents/workflows/WorkflowLauncher.js +2 -0
  22. package/dist/agents/workflows/WorkflowLauncher.js.map +2 -2
  23. package/dist/{ai-ODGRIL6Y.cjs → ai-QFY4LYQZ.cjs} +16 -16
  24. package/dist/ai-QFY4LYQZ.cjs.map +1 -0
  25. package/dist/calls/index.cjs +25 -24
  26. package/dist/calls/index.cjs.map +1 -1
  27. package/dist/{chunk-4I2PCP7O.cjs → chunk-2XOIULVN.cjs} +36 -35
  28. package/dist/chunk-2XOIULVN.cjs.map +1 -0
  29. package/dist/{chunk-D5DOK2AE.cjs → chunk-3SGFIDID.cjs} +10 -10
  30. package/dist/{chunk-D5DOK2AE.cjs.map → chunk-3SGFIDID.cjs.map} +1 -1
  31. package/dist/{chunk-WUM76MJU.cjs → chunk-4UDGCXUR.cjs} +7 -7
  32. package/dist/{chunk-WUM76MJU.cjs.map → chunk-4UDGCXUR.cjs.map} +1 -1
  33. package/dist/{chunk-LYKT336H.cjs → chunk-6I5HHWCD.cjs} +5 -5
  34. package/dist/{chunk-LYKT336H.cjs.map → chunk-6I5HHWCD.cjs.map} +1 -1
  35. package/dist/{chunk-KWJW5TMH.cjs → chunk-6OPDKROP.cjs} +4 -41
  36. package/dist/chunk-6OPDKROP.cjs.map +1 -0
  37. package/dist/{chunk-QWOPEBH2.cjs → chunk-6P4U63HO.cjs} +4 -4
  38. package/dist/{chunk-QWOPEBH2.cjs.map → chunk-6P4U63HO.cjs.map} +1 -1
  39. package/dist/chunk-74RUAGVD.cjs +1533 -0
  40. package/dist/chunk-74RUAGVD.cjs.map +1 -0
  41. package/dist/{chunk-QKCFV36K.cjs → chunk-7UPEFZCV.cjs} +9 -9
  42. package/dist/{chunk-QKCFV36K.cjs.map → chunk-7UPEFZCV.cjs.map} +1 -1
  43. package/dist/{chunk-DUNXLT63.cjs → chunk-AHUEBRLX.cjs} +2 -238
  44. package/dist/chunk-AHUEBRLX.cjs.map +1 -0
  45. package/dist/chunk-BH322H5B.cjs +594 -0
  46. package/dist/chunk-BH322H5B.cjs.map +1 -0
  47. package/dist/{chunk-AG6KAGAX.cjs → chunk-BTQ7IAOH.cjs} +4 -4
  48. package/dist/{chunk-AG6KAGAX.cjs.map → chunk-BTQ7IAOH.cjs.map} +1 -1
  49. package/dist/{chunk-FCT62ZPE.cjs → chunk-BZVK7JW5.cjs} +5 -5
  50. package/dist/{chunk-FCT62ZPE.cjs.map → chunk-BZVK7JW5.cjs.map} +1 -1
  51. package/dist/{chunk-HNLNRAEU.cjs → chunk-DSLMJ24E.cjs} +2 -261
  52. package/dist/chunk-DSLMJ24E.cjs.map +1 -0
  53. package/dist/chunk-DWRUGOTQ.cjs +35 -0
  54. package/dist/chunk-DWRUGOTQ.cjs.map +1 -0
  55. package/dist/{chunk-GAA222SK.cjs → chunk-EG3DPKXM.cjs} +5 -5
  56. package/dist/{chunk-GAA222SK.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
  57. package/dist/{chunk-VSDD5TH5.cjs → chunk-G3MRW4WB.cjs} +10 -8
  58. package/dist/chunk-G3MRW4WB.cjs.map +1 -0
  59. package/dist/{chunk-TFRCNIUY.cjs → chunk-GF6AYAMI.cjs} +9 -9
  60. package/dist/{chunk-TFRCNIUY.cjs.map → chunk-GF6AYAMI.cjs.map} +1 -1
  61. package/dist/{chunk-4ZR4O5SP.cjs → chunk-GK3U3FWY.cjs} +60 -28
  62. package/dist/chunk-GK3U3FWY.cjs.map +1 -0
  63. package/dist/{chunk-3CJTO6RV.cjs → chunk-GXRD5OSU.cjs} +8 -8
  64. package/dist/{chunk-3CJTO6RV.cjs.map → chunk-GXRD5OSU.cjs.map} +1 -1
  65. package/dist/chunk-JWCVA4LC.cjs +248 -0
  66. package/dist/chunk-JWCVA4LC.cjs.map +1 -0
  67. package/dist/{chunk-UM3EWCDE.cjs → chunk-K5F2VNCX.cjs} +35 -10
  68. package/dist/chunk-K5F2VNCX.cjs.map +1 -0
  69. package/dist/chunk-KD66CBYO.cjs +44 -0
  70. package/dist/chunk-KD66CBYO.cjs.map +1 -0
  71. package/dist/chunk-LLVE5TST.cjs +318 -0
  72. package/dist/chunk-LLVE5TST.cjs.map +1 -0
  73. package/dist/{chunk-CVVQHFLR.cjs → chunk-OZJENXU3.cjs} +71 -649
  74. package/dist/chunk-OZJENXU3.cjs.map +1 -0
  75. package/dist/{chunk-JLNKD56X.cjs → chunk-QEH375MU.cjs} +4 -4
  76. package/dist/{chunk-JLNKD56X.cjs.map → chunk-QEH375MU.cjs.map} +1 -1
  77. package/dist/chunk-SGYURQ23.cjs +271 -0
  78. package/dist/chunk-SGYURQ23.cjs.map +1 -0
  79. package/dist/{chunk-A5SKK3CU.cjs → chunk-SLCH5JRI.cjs} +64 -35
  80. package/dist/chunk-SLCH5JRI.cjs.map +1 -0
  81. package/dist/chunk-T26UYA6Q.cjs +64 -0
  82. package/dist/chunk-T26UYA6Q.cjs.map +1 -0
  83. package/dist/{chunk-SMO4SPPB.cjs → chunk-TD5V5BZ3.cjs} +5 -5
  84. package/dist/{chunk-SMO4SPPB.cjs.map → chunk-TD5V5BZ3.cjs.map} +1 -1
  85. package/dist/{chunk-IXTDOPSB.cjs → chunk-TSAZWUPZ.cjs} +4 -4
  86. package/dist/{chunk-IXTDOPSB.cjs.map → chunk-TSAZWUPZ.cjs.map} +1 -1
  87. package/dist/{chunk-5DGNJ6VJ.cjs → chunk-UD3LPATQ.cjs} +6 -6
  88. package/dist/{chunk-5DGNJ6VJ.cjs.map → chunk-UD3LPATQ.cjs.map} +1 -1
  89. package/dist/{chunk-OF7KMG6R.cjs → chunk-UJHQ4DA4.cjs} +5 -5
  90. package/dist/{chunk-OF7KMG6R.cjs.map → chunk-UJHQ4DA4.cjs.map} +1 -1
  91. package/dist/{chunk-NUFZFWHZ.cjs → chunk-W5QSKW7T.cjs} +3 -29
  92. package/dist/chunk-W5QSKW7T.cjs.map +1 -0
  93. package/dist/{chunk-NNZFZYTI.cjs → chunk-WOVNXJK5.cjs} +4 -54
  94. package/dist/chunk-WOVNXJK5.cjs.map +1 -0
  95. package/dist/{chunk-E6BM5ENI.cjs → chunk-WRTEKOQP.cjs} +2 -309
  96. package/dist/chunk-WRTEKOQP.cjs.map +1 -0
  97. package/dist/{chunk-Z3N32LL4.cjs → chunk-Y2Z5UHHV.cjs} +29 -27
  98. package/dist/chunk-Y2Z5UHHV.cjs.map +1 -0
  99. package/dist/{chunk-KRQCUVH7.cjs → chunk-YSAUOJA7.cjs} +9 -3
  100. package/dist/chunk-YSAUOJA7.cjs.map +1 -0
  101. package/dist/components/gestures/usePointerGesture.d.ts +13 -1
  102. package/dist/components/gestures/usePointerGesture.js +33 -8
  103. package/dist/components/gestures/usePointerGesture.js.map +2 -2
  104. package/dist/connect/docx.cjs +11 -11
  105. package/dist/connect/index.cjs +1064 -2179
  106. package/dist/connect/index.cjs.map +1 -1
  107. package/dist/connect/index.d.ts +1 -0
  108. package/dist/connect/index.js +1 -0
  109. package/dist/connect/index.js.map +2 -2
  110. package/dist/connect/viewer.cjs +11 -9
  111. package/dist/connection/dashboards/DashboardPanel.d.ts +2 -0
  112. package/dist/connection/dashboards/DashboardPanel.js +4 -0
  113. package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
  114. package/dist/connection/dashboards/index.d.ts +1 -1
  115. package/dist/connection/dashboards/index.js +2 -0
  116. package/dist/connection/dashboards/index.js.map +2 -2
  117. package/dist/connection/dashboards/templates.d.ts +10 -5
  118. package/dist/connection/dashboards/templates.js +7 -1
  119. package/dist/connection/dashboards/templates.js.map +2 -2
  120. package/dist/connection/export/ConnectedExportPanel.js +19 -78
  121. package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
  122. package/dist/connection/export/transfer-targets.d.ts +66 -0
  123. package/dist/connection/export/transfer-targets.js +93 -0
  124. package/dist/connection/export/transfer-targets.js.map +7 -0
  125. package/dist/connection/export/transfer-text.js +5 -0
  126. package/dist/connection/export/transfer-text.js.map +2 -2
  127. package/dist/connection/live-blocks/ConnectedAgendaBlock.d.ts +13 -0
  128. package/dist/connection/live-blocks/ConnectedAgendaBlock.js +19 -0
  129. package/dist/connection/live-blocks/ConnectedAgendaBlock.js.map +7 -0
  130. package/dist/connection/live-blocks/ConnectedCarouselBlock.d.ts +7 -0
  131. package/dist/connection/live-blocks/ConnectedCarouselBlock.js +84 -0
  132. package/dist/connection/live-blocks/ConnectedCarouselBlock.js.map +7 -0
  133. package/dist/connection/live-blocks/ConnectedListBlock.d.ts +29 -0
  134. package/dist/connection/live-blocks/ConnectedListBlock.js +193 -0
  135. package/dist/connection/live-blocks/ConnectedListBlock.js.map +7 -0
  136. package/dist/connection/live-blocks/ConnectedStartBlock.d.ts +7 -0
  137. package/dist/connection/live-blocks/ConnectedStartBlock.js +16 -0
  138. package/dist/connection/live-blocks/ConnectedStartBlock.js.map +7 -0
  139. package/dist/connection/live-blocks/DashboardAgenda.d.ts +10 -0
  140. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardAgenda.js +10 -2
  141. package/dist/connection/live-blocks/DashboardAgenda.js.map +7 -0
  142. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js.map +1 -1
  143. package/dist/connection/live-blocks/LiveBlockRoot.d.ts +11 -0
  144. package/dist/connection/live-blocks/LiveBlockRoot.js +22 -0
  145. package/dist/connection/live-blocks/LiveBlockRoot.js.map +7 -0
  146. package/dist/connection/live-blocks/index.d.ts +5 -0
  147. package/dist/connection/live-blocks/index.js +20 -0
  148. package/dist/connection/live-blocks/index.js.map +7 -0
  149. package/dist/connection/{workspace-dashboard/dashboard-rows.d.ts → live-blocks/list-rows.d.ts} +22 -4
  150. package/dist/connection/{workspace-dashboard/dashboard-rows.js → live-blocks/list-rows.js} +13 -8
  151. package/dist/connection/live-blocks/list-rows.js.map +7 -0
  152. package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js.map +1 -1
  153. package/dist/connection/live-blocks/workspace-dashboard-blocks.d.ts +23 -0
  154. package/dist/connection/live-blocks/workspace-dashboard-blocks.js +58 -0
  155. package/dist/connection/live-blocks/workspace-dashboard-blocks.js.map +7 -0
  156. package/dist/connection/pages/BlockEditor.d.ts +3 -1
  157. package/dist/connection/pages/BlockEditor.js +18 -1
  158. package/dist/connection/pages/BlockEditor.js.map +2 -2
  159. package/dist/connection/pages/ConnectedPagesPage.d.ts +9 -5
  160. package/dist/connection/pages/ConnectedPagesPage.js +144 -48
  161. package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
  162. package/dist/connection/pages/EditablePageGrid.d.ts +25 -15
  163. package/dist/connection/pages/EditablePageGrid.js +145 -50
  164. package/dist/connection/pages/EditablePageGrid.js.map +2 -2
  165. package/dist/connection/pages/LiveBlockEditor.d.ts +30 -0
  166. package/dist/connection/pages/LiveBlockEditor.js +175 -0
  167. package/dist/connection/pages/LiveBlockEditor.js.map +7 -0
  168. package/dist/connection/pages/PageBlockView.d.ts +5 -3
  169. package/dist/connection/pages/PageBlockView.js +69 -4
  170. package/dist/connection/pages/PageBlockView.js.map +2 -2
  171. package/dist/connection/pages/PageGrid.d.ts +4 -3
  172. package/dist/connection/pages/PageGrid.js +4 -2
  173. package/dist/connection/pages/PageGrid.js.map +2 -2
  174. package/dist/connection/pages/PageTransferDialog.d.ts +38 -0
  175. package/dist/connection/pages/PageTransferDialog.js +219 -0
  176. package/dist/connection/pages/PageTransferDialog.js.map +7 -0
  177. package/dist/connection/pages/PageView.d.ts +6 -2
  178. package/dist/connection/pages/PageView.js +40 -15
  179. package/dist/connection/pages/PageView.js.map +2 -2
  180. package/dist/connection/pages/PagesList.d.ts +4 -3
  181. package/dist/connection/pages/PagesList.js.map +2 -2
  182. package/dist/connection/pages/grid-layout.d.ts +44 -12
  183. package/dist/connection/pages/grid-layout.js +71 -27
  184. package/dist/connection/pages/grid-layout.js.map +2 -2
  185. package/dist/connection/pages/index.d.ts +5 -2
  186. package/dist/connection/pages/index.js +40 -5
  187. package/dist/connection/pages/index.js.map +2 -2
  188. package/dist/connection/pages/labels.d.ts +3 -1
  189. package/dist/connection/pages/labels.js +7 -1
  190. package/dist/connection/pages/labels.js.map +2 -2
  191. package/dist/connection/pages/page-templates.d.ts +10 -0
  192. package/dist/connection/pages/page-templates.js +16 -0
  193. package/dist/connection/pages/page-templates.js.map +7 -0
  194. package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +2 -0
  195. package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
  196. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +10 -7
  197. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js +31 -171
  198. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js.map +3 -3
  199. package/dist/dashboards/ChartRenderer.d.ts +5 -3
  200. package/dist/dashboards/ChartRenderer.js +29 -18
  201. package/dist/dashboards/ChartRenderer.js.map +2 -2
  202. package/dist/dashboards/PanelView.d.ts +6 -1
  203. package/dist/dashboards/PanelView.js +24 -7
  204. package/dist/dashboards/PanelView.js.map +2 -2
  205. package/dist/dashboards/RechartsRenderer.d.ts +2 -1
  206. package/dist/dashboards/RechartsRenderer.js.map +2 -2
  207. package/dist/dashboards/index.cjs +25 -21
  208. package/dist/embed/index.cjs +17 -15
  209. package/dist/home/FactsStrip.d.ts +3 -1
  210. package/dist/home/FactsStrip.js +3 -2
  211. package/dist/home/FactsStrip.js.map +2 -2
  212. package/dist/home/RecentList.d.ts +4 -2
  213. package/dist/home/RecentList.js +3 -2
  214. package/dist/home/RecentList.js.map +2 -2
  215. package/dist/home/StartTiles.d.ts +6 -1
  216. package/dist/home/StartTiles.js +55 -33
  217. package/dist/home/StartTiles.js.map +2 -2
  218. package/dist/home/index.cjs +62 -57
  219. package/dist/home/index.d.ts +1 -1
  220. package/dist/home/index.js +2 -1
  221. package/dist/home/index.js.map +2 -2
  222. package/dist/home/sections.d.ts +5 -0
  223. package/dist/home/sections.js +7 -0
  224. package/dist/home/sections.js.map +2 -2
  225. package/dist/index.cjs +326 -324
  226. package/dist/index.cjs.map +1 -1
  227. package/dist/pages/index.cjs +864 -155
  228. package/dist/pages/index.cjs.map +1 -1
  229. package/dist/settings/index.cjs +164 -163
  230. package/dist/shell/index.cjs +34 -33
  231. package/dist/studio/index.cjs +12 -12
  232. package/dist/styles.css +1 -1
  233. package/dist/workflow-canvas/index.cjs +24 -21
  234. package/dist/workflow-canvas/index.cjs.map +1 -1
  235. package/dist/workspaces/index.cjs +49 -47
  236. package/dist/workspaces/index.cjs.map +1 -1
  237. package/node_modules/@arbidocs/coedit/package.json +1 -1
  238. package/package.json +5 -5
  239. package/dist/DocumentReviewCard-5W2QQWKA.cjs.map +0 -1
  240. package/dist/FilesViewerDialog-63QUTG4L.cjs.map +0 -1
  241. package/dist/WorkspaceTableView-2QP2HJLK.cjs.map +0 -1
  242. package/dist/ai-ODGRIL6Y.cjs.map +0 -1
  243. package/dist/chunk-4I2PCP7O.cjs.map +0 -1
  244. package/dist/chunk-4ZR4O5SP.cjs.map +0 -1
  245. package/dist/chunk-A5SKK3CU.cjs.map +0 -1
  246. package/dist/chunk-CVVQHFLR.cjs.map +0 -1
  247. package/dist/chunk-DUNXLT63.cjs.map +0 -1
  248. package/dist/chunk-E6BM5ENI.cjs.map +0 -1
  249. package/dist/chunk-HNLNRAEU.cjs.map +0 -1
  250. package/dist/chunk-KRQCUVH7.cjs.map +0 -1
  251. package/dist/chunk-KWJW5TMH.cjs.map +0 -1
  252. package/dist/chunk-NNZFZYTI.cjs.map +0 -1
  253. package/dist/chunk-NUFZFWHZ.cjs.map +0 -1
  254. package/dist/chunk-UM3EWCDE.cjs.map +0 -1
  255. package/dist/chunk-VSDD5TH5.cjs.map +0 -1
  256. package/dist/chunk-Z3N32LL4.cjs.map +0 -1
  257. package/dist/connection/workspace-dashboard/DashboardAgenda.d.ts +0 -1
  258. package/dist/connection/workspace-dashboard/DashboardAgenda.js.map +0 -7
  259. package/dist/connection/workspace-dashboard/dashboard-rows.js.map +0 -7
  260. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.d.ts +0 -0
  261. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js +0 -0
  262. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.d.ts +0 -0
  263. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js +0 -0
@@ -1,26 +1,65 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkUM3EWCDE_cjs = require('../chunk-UM3EWCDE.cjs');
4
+ var chunkK5F2VNCX_cjs = require('../chunk-K5F2VNCX.cjs');
5
+ var chunk74RUAGVD_cjs = require('../chunk-74RUAGVD.cjs');
6
+ require('../chunk-DWRUGOTQ.cjs');
7
+ require('../chunk-KD66CBYO.cjs');
8
+ require('../chunk-7UPEFZCV.cjs');
9
+ require('../chunk-V27WLYTG.cjs');
10
+ require('../chunk-SGYURQ23.cjs');
5
11
  var chunkDLGYR4JL_cjs = require('../chunk-DLGYR4JL.cjs');
6
- var chunkLYKT336H_cjs = require('../chunk-LYKT336H.cjs');
7
- var chunkKRQCUVH7_cjs = require('../chunk-KRQCUVH7.cjs');
8
- var chunk4ZR4O5SP_cjs = require('../chunk-4ZR4O5SP.cjs');
12
+ require('../chunk-JWCVA4LC.cjs');
13
+ var chunkJCFXS336_cjs = require('../chunk-JCFXS336.cjs');
14
+ require('../chunk-223D4727.cjs');
15
+ require('../chunk-SNUBQMIS.cjs');
16
+ require('../chunk-5GBM7BQB.cjs');
17
+ require('../chunk-UD3LPATQ.cjs');
18
+ var chunk6I5HHWCD_cjs = require('../chunk-6I5HHWCD.cjs');
19
+ var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
20
+ var chunkGK3U3FWY_cjs = require('../chunk-GK3U3FWY.cjs');
9
21
  require('../chunk-PBPO54KZ.cjs');
10
22
  var chunkQ25CZLK6_cjs = require('../chunk-Q25CZLK6.cjs');
11
- require('../chunk-MWHVETKN.cjs');
23
+ var chunkMWHVETKN_cjs = require('../chunk-MWHVETKN.cjs');
24
+ require('../chunk-DTMBAFIL.cjs');
12
25
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
26
+ require('../chunk-7G2LJMUG.cjs');
27
+ require('../chunk-WRTEKOQP.cjs');
28
+ require('../chunk-SK6HQ46Q.cjs');
29
+ require('../chunk-WCT6FT2K.cjs');
13
30
  require('../chunk-2P7VH2SK.cjs');
14
31
  require('../chunk-ZU2B2RZK.cjs');
32
+ require('../chunk-BH322H5B.cjs');
33
+ require('../chunk-M55XUF4L.cjs');
34
+ require('../chunk-EVZH6Z5O.cjs');
35
+ require('../chunk-S237ORM3.cjs');
36
+ require('../chunk-II2OEXHW.cjs');
37
+ require('../chunk-G3MRW4WB.cjs');
38
+ require('../chunk-AHDJXIUB.cjs');
39
+ require('../chunk-RL2HI6NP.cjs');
40
+ require('../chunk-6UZC4XVV.cjs');
41
+ require('../chunk-SLCH5JRI.cjs');
42
+ require('../chunk-DKY67DA6.cjs');
15
43
  require('../chunk-YA6GXWC2.cjs');
16
44
  require('../chunk-ZVEW3JBT.cjs');
17
45
  var chunkMHIG6GGS_cjs = require('../chunk-MHIG6GGS.cjs');
18
46
  require('../chunk-VG24E4JJ.cjs');
19
47
  require('../chunk-U2FFG2B3.cjs');
48
+ require('../chunk-4M3OIBIS.cjs');
49
+ require('../chunk-6U3CYVZC.cjs');
50
+ require('../chunk-QUMUAJ2P.cjs');
51
+ require('../chunk-ZKKSTMMI.cjs');
52
+ require('../chunk-VZOOGA47.cjs');
53
+ require('../chunk-T26UYA6Q.cjs');
54
+ require('../chunk-DWN5AUMH.cjs');
20
55
  require('../chunk-GB5MN5FC.cjs');
56
+ require('../chunk-TMX7YFVM.cjs');
21
57
  require('../chunk-3YZKDCWY.cjs');
22
58
  var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
59
+ require('../chunk-SQCCQU3K.cjs');
60
+ require('../chunk-UDSHVNU3.cjs');
23
61
  require('../chunk-IPSHAMO2.cjs');
62
+ require('../chunk-PPCATBOY.cjs');
24
63
  var chunk46LX6EQT_cjs = require('../chunk-46LX6EQT.cjs');
25
64
  require('../chunk-K67VMSOX.cjs');
26
65
  require('../chunk-CVPV4I7Z.cjs');
@@ -34,6 +73,13 @@ var artifacts = require('@arbidocs/react/artifacts');
34
73
  var documentTools = require('@arbidocs/react/document-tools');
35
74
  var viewers = require('@arbidocs/react/viewers');
36
75
 
76
+ var PAGE_TEMPLATES = [
77
+ chunk74RUAGVD_cjs.WORKSPACE_DASHBOARD_PAGE,
78
+ ...chunkYSAUOJA7_cjs.DASHBOARD_TEMPLATES
79
+ ];
80
+ function pageOfTemplate(template) {
81
+ return "panels" in template ? react.pageFromDashboard(template) : structuredClone(template);
82
+ }
37
83
  var DEFAULT_DOCUMENTS_PICKER_LABELS = {
38
84
  label: "Documents",
39
85
  search: "Search documents\u2026",
@@ -63,7 +109,7 @@ function DocumentsPicker({
63
109
  [all]
64
110
  );
65
111
  const found = all.filter((d) => (d.file_name ?? "").toLowerCase().includes(query.trim().toLowerCase())).slice(0, 50);
66
- const pick = (id) => {
112
+ const pick2 = (id) => {
67
113
  if (!multiple) return onChange([id]);
68
114
  onChange(value.includes(id) ? value.filter((v) => v !== id) : [...value, id]);
69
115
  };
@@ -95,7 +141,7 @@ function DocumentsPicker({
95
141
  role: "option",
96
142
  "aria-selected": chosen,
97
143
  disabled: blocked,
98
- onClick: () => pick(d.external_id),
144
+ onClick: () => pick2(d.external_id),
99
145
  className: ui.cn(
100
146
  "flex w-full items-center justify-between gap-2 px-3 py-1.5 text-left text-sm hover:bg-muted disabled:cursor-not-allowed disabled:opacity-60",
101
147
  chosen && "bg-muted font-medium"
@@ -156,6 +202,170 @@ function DocumentsPicker({
156
202
  sharedOnly && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.sharedOnlyHint })
157
203
  ] });
158
204
  }
205
+ var DEFAULT_LIVE_BLOCK_EDITOR_LABELS = {
206
+ listSource: "Shows",
207
+ listSources: { documents: "Recent files", conversations: "Recent threads", facts: "Facts" },
208
+ factsGroups: "Facts shown",
209
+ factsGroupOptions: {
210
+ upcoming_and_newest: "Upcoming, then the newest",
211
+ upcoming: "Upcoming dated facts",
212
+ newest: "The newest facts"
213
+ },
214
+ rows: "Rows",
215
+ carouselSource: "Shows",
216
+ carouselSources: { skills: "Skills", workflows: "Workflows" },
217
+ cards: "Cards",
218
+ agendaDays: "Days ahead",
219
+ agendaEvents: "Events",
220
+ startNote: 'What you can start, "Create a file" and Add, as on the workspace dashboard. Nothing to set.'
221
+ };
222
+ var LIST_SOURCES = [
223
+ "documents",
224
+ "conversations",
225
+ "facts"
226
+ ];
227
+ var FACTS_GROUPS = [
228
+ "upcoming_and_newest",
229
+ "upcoming",
230
+ "newest"
231
+ ];
232
+ var CAROUSEL_SOURCES = ["skills", "workflows"];
233
+ var pick = (options, v) => options.find((o) => o === v);
234
+ function LiveBlockEditor({
235
+ value,
236
+ onChange,
237
+ workflowsOn,
238
+ labels,
239
+ testId = "live-block-editor"
240
+ }) {
241
+ const l = { ...DEFAULT_LIVE_BLOCK_EDITOR_LABELS, ...labels };
242
+ switch (value.kind) {
243
+ case "list": {
244
+ const { config } = value;
245
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 sm:grid-cols-3", "data-testid": testId, children: [
246
+ /* @__PURE__ */ jsxRuntime.jsx(
247
+ chunkMWHVETKN_cjs.EditorSelect,
248
+ {
249
+ label: l.listSource,
250
+ value: config.source,
251
+ options: LIST_SOURCES.map((s) => ({ value: s, label: l.listSources[s] })),
252
+ onChange: (v) => {
253
+ const source = pick(LIST_SOURCES, v);
254
+ if (source) onChange({ ...value, config: { source, limit: config.limit } });
255
+ },
256
+ testId: `${testId}-source`
257
+ }
258
+ ),
259
+ /* @__PURE__ */ jsxRuntime.jsx(
260
+ NumberField,
261
+ {
262
+ label: l.rows,
263
+ value: config.limit,
264
+ bounds: react.LIVE_BLOCK_LIMITS.listRows,
265
+ onChange: (limit) => onChange({ ...value, config: { ...config, limit } }),
266
+ testId: `${testId}-limit`
267
+ }
268
+ ),
269
+ config.source === "facts" && /* @__PURE__ */ jsxRuntime.jsx(
270
+ chunkMWHVETKN_cjs.EditorSelect,
271
+ {
272
+ label: l.factsGroups,
273
+ value: config.facts ?? "upcoming_and_newest",
274
+ options: FACTS_GROUPS.map((g) => ({ value: g, label: l.factsGroupOptions[g] })),
275
+ onChange: (v) => {
276
+ const facts = pick(FACTS_GROUPS, v);
277
+ if (facts) onChange({ ...value, config: { ...config, facts } });
278
+ },
279
+ testId: `${testId}-facts`
280
+ }
281
+ )
282
+ ] });
283
+ }
284
+ case "carousel": {
285
+ const { config } = value;
286
+ const sources = CAROUSEL_SOURCES.filter((s) => s !== "workflows" || workflowsOn);
287
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 sm:grid-cols-3", "data-testid": testId, children: [
288
+ /* @__PURE__ */ jsxRuntime.jsx(
289
+ chunkMWHVETKN_cjs.EditorSelect,
290
+ {
291
+ label: l.carouselSource,
292
+ value: config.source,
293
+ options: sources.map((s) => ({ value: s, label: l.carouselSources[s] })),
294
+ onChange: (v) => {
295
+ const source = pick(sources, v);
296
+ if (source) onChange({ ...value, config: { ...config, source } });
297
+ },
298
+ testId: `${testId}-source`
299
+ }
300
+ ),
301
+ /* @__PURE__ */ jsxRuntime.jsx(
302
+ NumberField,
303
+ {
304
+ label: l.cards,
305
+ value: config.limit,
306
+ bounds: react.LIVE_BLOCK_LIMITS.carouselItems,
307
+ onChange: (limit) => onChange({ ...value, config: { ...config, limit } }),
308
+ testId: `${testId}-limit`
309
+ }
310
+ )
311
+ ] });
312
+ }
313
+ case "agenda": {
314
+ const { config } = value;
315
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 sm:grid-cols-3", "data-testid": testId, children: [
316
+ /* @__PURE__ */ jsxRuntime.jsx(
317
+ NumberField,
318
+ {
319
+ label: l.agendaDays,
320
+ value: config.days,
321
+ bounds: react.LIVE_BLOCK_LIMITS.agendaDays,
322
+ onChange: (days) => onChange({ ...value, config: { ...config, days } }),
323
+ testId: `${testId}-days`
324
+ }
325
+ ),
326
+ /* @__PURE__ */ jsxRuntime.jsx(
327
+ NumberField,
328
+ {
329
+ label: l.agendaEvents,
330
+ value: config.limit,
331
+ bounds: react.LIVE_BLOCK_LIMITS.agendaEvents,
332
+ onChange: (limit) => onChange({ ...value, config: { ...config, limit } }),
333
+ testId: `${testId}-limit`
334
+ }
335
+ )
336
+ ] });
337
+ }
338
+ case "start":
339
+ return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": testId, children: l.startNote });
340
+ }
341
+ }
342
+ function NumberField({
343
+ label,
344
+ value,
345
+ bounds,
346
+ onChange,
347
+ testId
348
+ }) {
349
+ const id = react$1.useId();
350
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkMWHVETKN_cjs.EditorField, { label, htmlFor: id, children: /* @__PURE__ */ jsxRuntime.jsx(
351
+ ui.Input,
352
+ {
353
+ id,
354
+ type: "number",
355
+ inputMode: "numeric",
356
+ min: bounds.min,
357
+ max: bounds.max,
358
+ step: 1,
359
+ value,
360
+ onChange: (e) => {
361
+ const n = Math.round(Number(e.target.value));
362
+ if (Number.isFinite(n)) onChange(Math.min(bounds.max, Math.max(bounds.min, n)));
363
+ },
364
+ className: "bg-card text-sm",
365
+ "data-testid": testId
366
+ }
367
+ ) });
368
+ }
159
369
  var DEFAULT_VIEW_PICKER_LABELS = {
160
370
  label: "Table view",
161
371
  placeholder: "Choose a view\u2026",
@@ -220,9 +430,11 @@ function BlockEditor({
220
430
  editorLabels,
221
431
  pickerLabels,
222
432
  documentsLabels,
433
+ liveLabels,
223
434
  testId = "page-block-editor"
224
435
  }) {
225
436
  const l = { ...DEFAULT_BLOCK_EDITOR_LABELS, ...labels };
437
+ const workflowsOn = react.useFeature("workflows");
226
438
  const [value, setValue] = react$1.useState(block);
227
439
  react$1.useEffect(() => setValue(block), [block]);
228
440
  const setPanel = (panel) => setValue((b) => b ? { ...react.blockOfPanel(panel, b.layout.h), layout: b.layout } : b);
@@ -234,7 +446,7 @@ function BlockEditor({
234
446
  ] }),
235
447
  value && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
236
448
  (value.kind === "chart" || value.kind === "metric") && /* @__PURE__ */ jsxRuntime.jsx(
237
- chunkLYKT336H_cjs.PanelEditor,
449
+ chunk6I5HHWCD_cjs.PanelEditor,
238
450
  {
239
451
  value: react.panelOfBlock(value),
240
452
  onChange: setPanel,
@@ -277,6 +489,16 @@ function BlockEditor({
277
489
  labels: documentsLabels,
278
490
  testId: `${testId}-documents`
279
491
  }
492
+ ),
493
+ (value.kind === "list" || value.kind === "carousel" || value.kind === "agenda" || value.kind === "start") && /* @__PURE__ */ jsxRuntime.jsx(
494
+ LiveBlockEditor,
495
+ {
496
+ value,
497
+ onChange: setValue,
498
+ workflowsOn,
499
+ labels: liveLabels,
500
+ testId: `${testId}-live`
501
+ }
280
502
  )
281
503
  ] }),
282
504
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogFooter, { children: [
@@ -293,16 +515,27 @@ function BlockEditor({
293
515
  ] })
294
516
  ] }) });
295
517
  }
296
- var MIN_BLOCK_SIZE = {
297
- metric: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.metric },
298
- text: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.text },
299
- chart: { w: 3, h: react.DEFAULT_BLOCK_HEIGHT.chart },
300
- table: { w: 4, h: react.DEFAULT_BLOCK_HEIGHT.table },
301
- document: { w: 3, h: react.DEFAULT_BLOCK_HEIGHT.document },
302
- gallery: { w: 3, h: react.DEFAULT_BLOCK_HEIGHT.gallery }
518
+ var SLOT_COLUMNS = 3;
519
+ var SLOT_ROWS = 3;
520
+ var SLOTS_ACROSS = react.PAGE_GRID_COLUMNS / SLOT_COLUMNS;
521
+ var MAX_BLOCK_SLOTS = 4;
522
+ var DEFAULT_BLOCK_SLOTS = {
523
+ metric: { w: 1, h: react.DEFAULT_BLOCK_HEIGHT.metric / SLOT_ROWS },
524
+ text: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.text / SLOT_ROWS },
525
+ chart: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.chart / SLOT_ROWS },
526
+ table: { w: 4, h: react.DEFAULT_BLOCK_HEIGHT.table / SLOT_ROWS },
527
+ document: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.document / SLOT_ROWS },
528
+ gallery: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.gallery / SLOT_ROWS },
529
+ list: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.list / SLOT_ROWS },
530
+ carousel: { w: 4, h: react.DEFAULT_BLOCK_HEIGHT.carousel / SLOT_ROWS },
531
+ agenda: { w: 2, h: react.DEFAULT_BLOCK_HEIGHT.agenda / SLOT_ROWS },
532
+ start: { w: 4, h: react.DEFAULT_BLOCK_HEIGHT.start / SLOT_ROWS }
303
533
  };
534
+ function defaultLayout(kind) {
535
+ const { w, h } = DEFAULT_BLOCK_SLOTS[kind];
536
+ return { x: 0, y: 0, w: w * SLOT_COLUMNS, h: h * SLOT_ROWS };
537
+ }
304
538
  var overlaps = (a, b) => a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h;
305
- var clampInt = (n, lo, hi) => Math.min(hi, Math.max(lo, Math.round(n)));
306
539
  function compactLayout(items, pinned) {
307
540
  const placed = [];
308
541
  const out = /* @__PURE__ */ new Map();
@@ -346,37 +579,61 @@ function place(items, id, layout) {
346
579
  moved
347
580
  );
348
581
  }
582
+ var clampSlots = (n, lo, hi) => Math.min(hi, Math.max(lo, Math.round(n)));
583
+ function snapLayout(layout) {
584
+ const w = clampSlots(layout.w / SLOT_COLUMNS, 1, MAX_BLOCK_SLOTS);
585
+ const h = clampSlots(layout.h / SLOT_ROWS, 1, MAX_BLOCK_SLOTS);
586
+ const x = clampSlots(layout.x / SLOT_COLUMNS, 0, SLOTS_ACROSS - w);
587
+ const y = Math.max(0, Math.round(layout.y / SLOT_ROWS));
588
+ return { x: x * SLOT_COLUMNS, y: y * SLOT_ROWS, w: w * SLOT_COLUMNS, h: h * SLOT_ROWS };
589
+ }
590
+ function normalizeLayout(items) {
591
+ return compactLayout(items.map((i) => ({ ...i, layout: snapLayout(i.layout) })));
592
+ }
349
593
  function moveBlock(items, id, to, settle = true) {
350
594
  const item = items.find((i) => i.id === id);
351
595
  if (!item) return [...items];
352
- const layout = {
353
- ...item.layout,
354
- x: clampInt(to.x, 0, react.PAGE_GRID_COLUMNS - item.layout.w),
355
- y: Math.max(0, Math.round(to.y))
356
- };
596
+ const layout = snapLayout({ ...item.layout, x: to.x, y: to.y });
357
597
  const next = compactLayout(place(items, id, layout), id);
358
598
  return settle ? compactLayout(next) : next;
359
599
  }
360
600
  function resizeBlock(items, id, to, settle = true) {
361
601
  const item = items.find((i) => i.id === id);
362
602
  if (!item) return [...items];
363
- const min = MIN_BLOCK_SIZE[item.kind];
364
- const layout = {
365
- ...item.layout,
366
- w: clampInt(
367
- to.w,
368
- Math.min(min.w, react.PAGE_GRID_COLUMNS - item.layout.x),
369
- react.PAGE_GRID_COLUMNS - item.layout.x
370
- ),
371
- h: Math.max(min.h, Math.round(to.h))
372
- };
603
+ const room = SLOTS_ACROSS - item.layout.x / SLOT_COLUMNS;
604
+ const w = clampSlots(to.w / SLOT_COLUMNS, 1, Math.min(MAX_BLOCK_SLOTS, room));
605
+ const h = clampSlots(to.h / SLOT_ROWS, 1, MAX_BLOCK_SLOTS);
606
+ const layout = { ...item.layout, w: w * SLOT_COLUMNS, h: h * SLOT_ROWS };
373
607
  const next = compactLayout(place(items, id, layout), id);
374
608
  return settle ? compactLayout(next) : next;
375
609
  }
610
+ function stepSize(items, id, dw, dh) {
611
+ const item = items.find((i) => i.id === id);
612
+ if (!item) return [...items];
613
+ return resizeBlock(items, id, {
614
+ w: item.layout.w + dw * SLOT_COLUMNS,
615
+ h: item.layout.h + dh * SLOT_ROWS
616
+ });
617
+ }
618
+ function stepMove(items, id, dx, dy) {
619
+ const item = items.find((i) => i.id === id);
620
+ if (!item) return [...items];
621
+ const at = item.layout;
622
+ if (dx) return moveBlock(items, id, { x: at.x + dx * SLOT_COLUMNS, y: at.y });
623
+ if (!dy) return [...items];
624
+ const sameColumns = (b) => b.x < at.x + at.w && at.x < b.x + b.w;
625
+ const others = items.filter((i) => i.id !== id && sameColumns(i.layout)).map((i) => i.layout);
626
+ if (dy > 0) {
627
+ const below = others.filter((b) => b.y >= at.y + at.h).sort((a, b) => a.y - b.y)[0];
628
+ return below ? moveBlock(items, id, { x: at.x, y: below.y + below.h - at.h }) : [...items];
629
+ }
630
+ const above = others.filter((b) => b.y + b.h <= at.y).sort((a, b) => b.y - a.y)[0];
631
+ return above ? moveBlock(items, id, { x: at.x, y: above.y }) : [...items];
632
+ }
376
633
  function appendBlock(items, item) {
377
634
  const bottom = Math.max(0, ...items.map((i) => i.layout.y + i.layout.h));
378
- const w = clampInt(item.layout.w, 1, react.PAGE_GRID_COLUMNS);
379
- return compactLayout([...items, { ...item, layout: { ...item.layout, x: 0, y: bottom, w } }]);
635
+ const layout = snapLayout({ ...item.layout, x: 0, y: bottom });
636
+ return compactLayout([...items, { ...item, layout }]);
380
637
  }
381
638
  var PAGE_ROW_HEIGHT = "4.5rem";
382
639
  function PageGrid({ children, className, testId, gridRef }) {
@@ -384,8 +641,10 @@ function PageGrid({ children, className, testId, gridRef }) {
384
641
  "div",
385
642
  {
386
643
  ref: gridRef,
387
- className: ui.cn("grid grid-cols-1 gap-4 md:grid-cols-12", className),
388
- style: { gridAutoRows: `minmax(${PAGE_ROW_HEIGHT}, auto)` },
644
+ className: ui.cn(
645
+ "grid auto-rows-[minmax(4.5rem,auto)] grid-cols-1 gap-4 md:auto-rows-[4.5rem] md:grid-cols-12",
646
+ className
647
+ ),
389
648
  "data-slot": "page-grid",
390
649
  "data-testid": testId,
391
650
  children
@@ -425,15 +684,17 @@ function PageCell({
425
684
  );
426
685
  }
427
686
  var DEFAULT_EDITABLE_PAGE_GRID_LABELS = {
428
- move: "Move the block",
429
- moveHint: "Drag to move. Arrow keys move it; Shift and the arrow keys resize it.",
430
- resize: "Resize the block"
687
+ move: "Drag to move",
688
+ arrange: "Arrow keys move the block a slot; Shift and the arrow keys resize it.",
689
+ resize: "Drag to resize"
431
690
  };
691
+ var NO_DRAG = 'input, textarea, select, button, a[href], label, [contenteditable="true"], [contenteditable=""], [role="button"], [role="slider"], [role="scrollbar"], [data-no-drag]';
432
692
  var RESIZE_HANDLES = [
433
693
  { kind: "e", left: "100%", top: "50%", cursor: "ew-resize" },
434
694
  { kind: "s", left: "50%", top: "100%", cursor: "ns-resize" },
435
695
  { kind: "se", left: "100%", top: "100%", cursor: "nwse-resize" }
436
696
  ];
697
+ var ON_HOVER = "z-10 hidden opacity-0 transition-opacity group-hover/cell:opacity-100 group-focus-within/cell:opacity-100 md:flex";
437
698
  var px = (value) => {
438
699
  const n = parseFloat(value);
439
700
  return Number.isFinite(n) ? n : 0;
@@ -442,15 +703,26 @@ function pitchOf(grid) {
442
703
  if (!grid) return { col: 0, row: 0 };
443
704
  const view = grid.ownerDocument.defaultView ?? window;
444
705
  const style = view.getComputedStyle(grid);
706
+ const tracks = style.gridTemplateColumns.trim();
707
+ if (tracks && tracks !== "none" && tracks.split(/\s+/).length < 12) return { col: 0, row: 0 };
445
708
  const rem = px(view.getComputedStyle(grid.ownerDocument.documentElement).fontSize) || 16;
446
- const gapX = px(style.columnGap);
447
- const gapY = px(style.rowGap);
448
709
  return {
449
- col: (grid.getBoundingClientRect().width + gapX) / 12,
450
- row: px(PAGE_ROW_HEIGHT) * rem + gapY
710
+ col: (grid.getBoundingClientRect().width + px(style.columnGap)) / 12,
711
+ row: px(PAGE_ROW_HEIGHT) * rem + px(style.rowGap)
451
712
  };
452
713
  }
714
+ function pressesHeader(target) {
715
+ if (!(target instanceof Element)) return false;
716
+ if (target.closest("[data-page-move]")) return true;
717
+ return !!target.closest("[data-page-header]") && !target.closest(NO_DRAG);
718
+ }
453
719
  var keyOf = (blocks) => blocks.map((b) => `${b.id}:${b.layout.x},${b.layout.y},${b.layout.w},${b.layout.h}`).join("|");
720
+ var ARROWS = {
721
+ ArrowLeft: [-1, 0],
722
+ ArrowRight: [1, 0],
723
+ ArrowUp: [0, -1],
724
+ ArrowDown: [0, 1]
725
+ };
454
726
  function EditableCell({
455
727
  block,
456
728
  layout,
@@ -460,24 +732,34 @@ function EditableCell({
460
732
  onPreview,
461
733
  onCommit,
462
734
  renderBlock,
735
+ actionsOf,
463
736
  l,
737
+ hintId,
464
738
  testId
465
739
  }) {
466
740
  const element = react$1.useRef(null);
467
- const gesture = chunkUM3EWCDE_cjs.usePointerGesture({
741
+ const dropped = react$1.useRef(false);
742
+ const escape = react$1.useRef(null);
743
+ const gesture = chunkK5F2VNCX_cjs.usePointerGesture({
468
744
  element,
469
- threshold: 3,
470
- begin: () => {
745
+ threshold: 4,
746
+ begin: (kind, event) => {
747
+ if (kind === "move" && !pressesHeader(event.target)) return null;
471
748
  const { col, row } = pitchOf(grid());
472
749
  if (!col || !row) return null;
473
750
  return { base: blocks, start: block.layout, col, row, shown: keyOf(blocks) };
474
751
  },
475
752
  dragStart: () => {
476
753
  if (element.current) element.current.style.willChange = "transform";
754
+ const doc = element.current?.ownerDocument ?? document;
755
+ escape.current = (event) => {
756
+ if (event.key === "Escape") gesture.cancel();
757
+ };
758
+ doc.addEventListener("keydown", escape.current);
477
759
  },
478
760
  update: (g, kind, { dx, dy }) => {
479
- const cols = Math.round(dx / g.col);
480
- const rows = Math.round(dy / g.row);
761
+ const cols = dx / g.col;
762
+ const rows = dy / g.row;
481
763
  const next = kind === "move" ? moveBlock(g.base, block.id, { x: g.start.x + cols, y: g.start.y + rows }, false) : resizeBlock(
482
764
  g.base,
483
765
  block.id,
@@ -499,67 +781,105 @@ function EditableCell({
499
781
  }
500
782
  },
501
783
  end: (g, next, kind) => {
502
- if (element.current) {
503
- element.current.style.transform = "";
504
- element.current.style.willChange = "";
784
+ const el = element.current;
785
+ if (el) {
786
+ el.style.transform = "";
787
+ el.style.willChange = "";
788
+ }
789
+ if (escape.current) {
790
+ (el?.ownerDocument ?? document).removeEventListener("keydown", escape.current);
791
+ escape.current = null;
505
792
  }
506
793
  onPreview(null);
507
794
  if (!next) return;
795
+ dropped.current = true;
508
796
  const to = next.blocks.find((b) => b.id === block.id)?.layout ?? block.layout;
509
797
  const settled = kind === "move" ? moveBlock(g.base, block.id, to) : resizeBlock(g.base, block.id, to);
510
798
  if (keyOf(settled) !== keyOf(g.base)) onCommit(settled);
511
799
  }
512
800
  });
513
801
  const onKeyDown = (event) => {
514
- const step = {
515
- ArrowLeft: [-1, 0],
516
- ArrowRight: [1, 0],
517
- ArrowUp: [0, -1],
518
- ArrowDown: [0, 1]
519
- }[event.key];
520
- if (!step) return;
802
+ if (event.key === "Escape" && gesture.active()) {
803
+ gesture.cancel();
804
+ return;
805
+ }
806
+ const arrow = ARROWS[event.key];
807
+ if (!arrow) return;
521
808
  event.preventDefault();
522
- const [x, y] = step;
523
- const { layout: at } = block;
524
- onCommit(
525
- event.shiftKey ? resizeBlock(blocks, block.id, { w: at.w + x, h: at.h + y }) : moveBlock(blocks, block.id, { x: at.x + x, y: at.y + y })
526
- );
809
+ const [dx, dy] = arrow;
810
+ const next = event.shiftKey ? stepSize(blocks, block.id, dx, dy) : stepMove(blocks, block.id, dx, dy);
811
+ if (keyOf(next) !== keyOf(blocks)) onCommit(next);
527
812
  };
528
- const grip = /* @__PURE__ */ jsxRuntime.jsx(
529
- ui.Button,
530
- {
531
- variant: "ghost",
532
- size: "icon",
533
- className: "hidden size-7 cursor-grab touch-none active:cursor-grabbing md:inline-flex",
534
- "aria-label": l.move,
535
- title: l.moveHint,
536
- onPointerDown: (event) => gesture.start(event, "move"),
537
- onKeyDown,
538
- "data-testid": `${testId}-move-${block.id}`,
539
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "size-3.5" })
540
- }
541
- );
542
813
  return /* @__PURE__ */ jsxRuntime.jsxs(
543
814
  PageCell,
544
815
  {
545
816
  layout,
546
817
  cellRef: element,
547
- className: ui.cn("group/cell relative", dragged && "z-10 opacity-90"),
818
+ tabIndex: -1,
819
+ className: ui.cn(
820
+ "group/cell relative rounded-xl outline-none",
821
+ // Lifted while dragged: above the others, a strong outline, a shadow.
822
+ dragged && "z-20 scale-[1.02] select-none shadow-xl ring-2 ring-primary"
823
+ ),
824
+ "data-dragging": dragged || void 0,
548
825
  ...gesture.handlers,
826
+ onClickCapture: (event) => {
827
+ if (!dropped.current) return;
828
+ dropped.current = false;
829
+ event.preventDefault();
830
+ event.stopPropagation();
831
+ },
549
832
  testId: `${testId}-cell-${block.id}`,
550
833
  children: [
551
- renderBlock(block, grip),
834
+ renderBlock(block),
835
+ /* @__PURE__ */ jsxRuntime.jsxs(
836
+ "div",
837
+ {
838
+ className: ui.cn(
839
+ "absolute inset-x-0 top-0 z-10 flex h-10 items-center justify-end gap-1 rounded-t-xl px-2 md:touch-none",
840
+ dragged ? "cursor-grabbing" : "md:cursor-grab"
841
+ ),
842
+ "data-page-header": true,
843
+ onPointerDown: (event) => {
844
+ dropped.current = false;
845
+ gesture.start(event, "move", { lazy: true });
846
+ },
847
+ "data-testid": `${testId}-header-${block.id}`,
848
+ children: [
849
+ actionsOf?.(block),
850
+ /* @__PURE__ */ jsxRuntime.jsx(
851
+ ui.Button,
852
+ {
853
+ variant: "ghost",
854
+ size: "icon",
855
+ className: ui.cn(
856
+ "hidden size-7 opacity-0 transition-opacity focus-visible:opacity-100 group-hover/cell:opacity-100 group-focus-within/cell:opacity-100 md:inline-flex",
857
+ dragged ? "cursor-grabbing opacity-100" : "cursor-grab"
858
+ ),
859
+ "aria-label": l.move,
860
+ "aria-describedby": hintId,
861
+ title: l.move,
862
+ "data-page-move": true,
863
+ onKeyDown,
864
+ "data-testid": `${testId}-move-${block.id}`,
865
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Move, { className: "size-3.5" })
866
+ }
867
+ )
868
+ ]
869
+ }
870
+ ),
552
871
  RESIZE_HANDLES.map(({ kind, left, top, cursor }) => /* @__PURE__ */ jsxRuntime.jsx(
553
- chunkUM3EWCDE_cjs.GestureHandle,
872
+ chunkK5F2VNCX_cjs.GestureHandle,
554
873
  {
555
874
  left,
556
875
  top,
557
876
  cursor,
558
877
  size: "sm",
559
878
  bar: kind === "e" ? "v" : kind === "s" ? "h" : void 0,
560
- className: "hidden opacity-0 transition-opacity group-hover/cell:opacity-100 pointer-coarse:opacity-100 md:flex",
879
+ className: ON_HOVER,
561
880
  onPointerDown: (event) => gesture.start(event, kind),
562
881
  "aria-label": l.resize,
882
+ title: l.resize,
563
883
  testId: `${testId}-resize-${kind}-${block.id}`
564
884
  },
565
885
  kind
@@ -569,23 +889,44 @@ function EditableCell({
569
889
  );
570
890
  }
571
891
  function EditablePageGrid({
572
- blocks,
892
+ blocks: saved,
573
893
  onChange,
574
894
  renderBlock,
895
+ actionsOf,
575
896
  labels,
576
897
  testId = "page"
577
898
  }) {
578
899
  const l = { ...DEFAULT_EDITABLE_PAGE_GRID_LABELS, ...labels };
579
900
  const grid = react$1.useRef(null);
901
+ const hintId = react$1.useId();
902
+ const blocks = react$1.useMemo(() => normalizeLayout(saved), [saved]);
580
903
  const [preview, setPreview] = react$1.useState(null);
581
904
  const placeOf = (block) => preview?.blocks.find((b) => b.id === block.id)?.layout ?? block.layout;
582
- const target = preview?.moving ? preview.blocks.find((b) => b.id === preview.id) : void 0;
905
+ const target = preview?.blocks.find((b) => b.id === preview.id);
906
+ const slotRows = preview ? Math.max(...preview.blocks.map((b) => b.layout.y + b.layout.h)) / SLOT_ROWS + 1 : 0;
907
+ const cells = Array.from({ length: slotRows * SLOTS_ACROSS }, (_, i) => ({
908
+ x: i % SLOTS_ACROSS * SLOT_COLUMNS,
909
+ y: Math.floor(i / SLOTS_ACROSS) * SLOT_ROWS,
910
+ w: SLOT_COLUMNS,
911
+ h: SLOT_ROWS
912
+ }));
583
913
  return /* @__PURE__ */ jsxRuntime.jsxs(PageGrid, { testId: `${testId}-grid`, gridRef: grid, children: [
914
+ /* @__PURE__ */ jsxRuntime.jsx("p", { id: hintId, className: "sr-only", children: l.arrange }),
915
+ cells.map((cell) => /* @__PURE__ */ jsxRuntime.jsx(
916
+ PageCell,
917
+ {
918
+ layout: cell,
919
+ className: "pointer-events-none hidden rounded-xl border border-dashed border-border bg-muted/20 md:block",
920
+ "aria-hidden": true,
921
+ testId: `${testId}-slot`
922
+ },
923
+ `${cell.x}-${cell.y}`
924
+ )),
584
925
  target && /* @__PURE__ */ jsxRuntime.jsx(
585
926
  PageCell,
586
927
  {
587
928
  layout: target.layout,
588
- className: "rounded-xl border-2 border-dashed border-primary/30 bg-primary/5",
929
+ className: "pointer-events-none hidden rounded-xl border-2 border-primary/50 bg-primary/10 md:block",
589
930
  "aria-hidden": true,
590
931
  testId: `${testId}-drop-target`
591
932
  }
@@ -603,7 +944,9 @@ function EditablePageGrid({
603
944
  onPreview: setPreview,
604
945
  onCommit: onChange,
605
946
  renderBlock,
947
+ actionsOf,
606
948
  l,
949
+ hintId,
607
950
  testId
608
951
  },
609
952
  block.id
@@ -861,6 +1204,35 @@ function TableViewBlock({
861
1204
  }
862
1205
  );
863
1206
  }
1207
+ function LiveBlockCard({
1208
+ actions,
1209
+ className,
1210
+ testId,
1211
+ children
1212
+ }) {
1213
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1214
+ ui.Card,
1215
+ {
1216
+ variant: "elevated",
1217
+ className: ui.cn(
1218
+ "@container flex h-full min-w-0 flex-col gap-1 overflow-auto rounded-xl p-4",
1219
+ className
1220
+ ),
1221
+ "data-testid": testId,
1222
+ children: [
1223
+ actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 justify-end gap-1", children: actions }),
1224
+ children
1225
+ ]
1226
+ }
1227
+ );
1228
+ }
1229
+ function WithNewFileMenu({ children }) {
1230
+ const [open, setOpen] = react$1.useState(false);
1231
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1232
+ children(() => setOpen(true)),
1233
+ /* @__PURE__ */ jsxRuntime.jsx(chunk74RUAGVD_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
1234
+ ] });
1235
+ }
864
1236
  function PageBlockView({
865
1237
  block,
866
1238
  actions,
@@ -874,11 +1246,12 @@ function PageBlockView({
874
1246
  case "chart":
875
1247
  case "metric":
876
1248
  return /* @__PURE__ */ jsxRuntime.jsx(
877
- chunk4ZR4O5SP_cjs.DashboardPanel,
1249
+ chunkGK3U3FWY_cjs.DashboardPanel,
878
1250
  {
879
1251
  panel: react.panelOfBlock(block),
880
1252
  actions,
881
1253
  labels: panelLabels,
1254
+ fit: true,
882
1255
  className: ui.cn("h-full", className),
883
1256
  testId
884
1257
  }
@@ -888,11 +1261,18 @@ function PageBlockView({
888
1261
  ui.Card,
889
1262
  {
890
1263
  variant: "elevated",
891
- className: ui.cn("relative h-full overflow-auto rounded-xl p-4", className),
1264
+ className: ui.cn("flex h-full flex-col overflow-hidden rounded-xl", className),
892
1265
  "data-testid": testId,
893
1266
  children: [
894
- actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-2 top-2 flex gap-1", children: actions }),
895
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "prose prose-sm max-w-none text-foreground dark:prose-invert", children: /* @__PURE__ */ jsxRuntime.jsx(ui.MarkdownRenderer, { children: block.config.text }) })
1267
+ /* @__PURE__ */ jsxRuntime.jsx(
1268
+ "div",
1269
+ {
1270
+ className: "flex h-9 shrink-0 items-center justify-end gap-1 px-2",
1271
+ "data-slot": "block-header",
1272
+ children: actions
1273
+ }
1274
+ ),
1275
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "prose prose-sm min-h-0 max-w-none flex-1 overflow-auto px-4 pb-4 text-foreground dark:prose-invert", children: /* @__PURE__ */ jsxRuntime.jsx(ui.MarkdownRenderer, { children: block.config.text }) })
896
1276
  ]
897
1277
  }
898
1278
  );
@@ -929,6 +1309,28 @@ function PageBlockView({
929
1309
  testId
930
1310
  }
931
1311
  ) });
1312
+ case "list":
1313
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: block.config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
1314
+ chunk74RUAGVD_cjs.ConnectedListBlock,
1315
+ {
1316
+ config: block.config,
1317
+ onCreateNew,
1318
+ testId: testId && `${testId}-list`
1319
+ }
1320
+ ) }) : /* @__PURE__ */ jsxRuntime.jsx(chunk74RUAGVD_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
1321
+ case "carousel":
1322
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunk74RUAGVD_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
1323
+ case "agenda":
1324
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
1325
+ chunk74RUAGVD_cjs.ConnectedAgendaBlock,
1326
+ {
1327
+ config: block.config,
1328
+ className: "border-0 p-0",
1329
+ testId: testId && `${testId}-agenda`
1330
+ }
1331
+ ) });
1332
+ case "start":
1333
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunk74RUAGVD_cjs.ConnectedStartBlock, { onCreateNew }) }) });
932
1334
  }
933
1335
  }
934
1336
  function NewPageButton({
@@ -1063,6 +1465,8 @@ function PageView({
1063
1465
  onEdit,
1064
1466
  onShare,
1065
1467
  onDelete,
1468
+ onCopy,
1469
+ onMove,
1066
1470
  children,
1067
1471
  testId
1068
1472
  }) {
@@ -1097,7 +1501,7 @@ function PageView({
1097
1501
  " ",
1098
1502
  l.edit
1099
1503
  ] }),
1100
- canDelete && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
1504
+ (canDelete || onCopy) && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
1101
1505
  /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1102
1506
  ui.Button,
1103
1507
  {
@@ -1108,19 +1512,32 @@ function PageView({
1108
1512
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "size-4" })
1109
1513
  }
1110
1514
  ) }),
1111
- /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
1112
- ui.DropdownMenuItem,
1113
- {
1114
- onSelect: onDelete,
1115
- className: "text-destructive focus:text-destructive",
1116
- "data-testid": `${testId}-delete`,
1117
- children: [
1118
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-4" }),
1119
- " ",
1120
- l.delete
1121
- ]
1122
- }
1123
- ) })
1515
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { align: "end", children: [
1516
+ onCopy && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onCopy, "data-testid": `${testId}-copy-to`, children: [
1517
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { className: "size-4" }),
1518
+ " ",
1519
+ l.copyToWorkspace
1520
+ ] }),
1521
+ onCopy && onMove && canDelete && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onMove, "data-testid": `${testId}-move-to`, children: [
1522
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRightLeft, { className: "size-4" }),
1523
+ " ",
1524
+ l.moveToWorkspace
1525
+ ] }),
1526
+ onCopy && canDelete && /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuSeparator, {}),
1527
+ canDelete && /* @__PURE__ */ jsxRuntime.jsxs(
1528
+ ui.DropdownMenuItem,
1529
+ {
1530
+ onSelect: onDelete,
1531
+ className: "text-destructive focus:text-destructive",
1532
+ "data-testid": `${testId}-delete`,
1533
+ children: [
1534
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-4" }),
1535
+ " ",
1536
+ l.delete
1537
+ ]
1538
+ }
1539
+ )
1540
+ ] })
1124
1541
  ] })
1125
1542
  ] })
1126
1543
  }
@@ -1129,6 +1546,188 @@ function PageView({
1129
1546
  children
1130
1547
  ] });
1131
1548
  }
1549
+ var DEFAULT_PAGE_TRANSFER_LABELS = {
1550
+ title: (mode, title) => `${mode === "move" ? "Move" : "Copy"} \u201C${title}\u201D to a workspace`,
1551
+ description: (mode) => mode === "move" ? "The page goes to the workspace you pick, private to you, and is deleted here." : "A copy goes to the workspace you pick, private to you. This page stays as it is.",
1552
+ documents: "Documents on this page",
1553
+ documentsHelp: (documents) => `It shows ${documents === 1 ? "a document" : `${documents} documents`} of this workspace.`,
1554
+ documentsLink: "Leave them here \u2014 the copy keeps showing them to whoever can open them in this workspace",
1555
+ documentsInclude: "Copy them too \u2014 the copy shows the copies",
1556
+ viewsStay: (views) => `Its ${views === 1 ? "table view stays" : `${views} table views stay`} here: there, ${views === 1 ? "its block reads" : "their blocks read"} \u201Cnot available\u201D to anyone who cannot open ${views === 1 ? "it" : "them"} here.`,
1557
+ notRemovable: "You may not delete this page here, so it would be copied and stay here too.",
1558
+ cancel: "Cancel",
1559
+ submit: (mode) => mode === "move" ? "Move" : "Copy",
1560
+ starting: "Starting\u2026",
1561
+ progress: (mode, target) => `${mode === "move" ? "Moving" : "Copying"} to ${target}`,
1562
+ phase: {
1563
+ copy: "Copying",
1564
+ link: "Linking",
1565
+ remove: "Removing from this workspace",
1566
+ done: "Done"
1567
+ },
1568
+ done: (mode, target) => `${mode === "move" ? "Moved" : "Copied"} to ${target}.`,
1569
+ kept: (target) => `Copied to ${target}. It also stays here:`,
1570
+ failed: (mode, target) => `The page could not be ${mode === "move" ? "moved" : "copied"} to ${target}.`,
1571
+ open: "Open",
1572
+ close: "Close",
1573
+ startFailed: "The transfer could not start"
1574
+ };
1575
+ function PageTransferDialog(props) {
1576
+ if (!props.page) return null;
1577
+ return /* @__PURE__ */ jsxRuntime.jsx(OpenPageTransferDialog, { ...props, page: props.page });
1578
+ }
1579
+ function OpenPageTransferDialog({
1580
+ page,
1581
+ mode,
1582
+ onClose,
1583
+ onOpenCopy,
1584
+ labels,
1585
+ testId = "page-transfer"
1586
+ }) {
1587
+ const l = { ...DEFAULT_PAGE_TRANSFER_LABELS, ...labels };
1588
+ const { notify } = chunk46LX6EQT_cjs.useBlocksEnvironment();
1589
+ const { options, nameOf } = chunk74RUAGVD_cjs.useTransferTargets();
1590
+ const trackTransfer = chunk74RUAGVD_cjs.useExportStore((state) => state.trackTransfer);
1591
+ const [targetId, setTargetId] = react$1.useState(null);
1592
+ const [references, setReferences] = react$1.useState("link");
1593
+ const [jobId, setJobId] = react$1.useState(null);
1594
+ const [opening, setOpening] = react$1.useState(false);
1595
+ const scope = react$1.useMemo(() => react.pageTransferScope(page.id, references), [page.id, references]);
1596
+ const { data: plan } = react.usePlanWorkspaceTransfer(scope, mode, { enabled: !jobId });
1597
+ const start = react.useStartWorkspaceTransfer();
1598
+ const cancel = react.useCancelWorkspaceTransfer();
1599
+ const switchToPages = react.useSwitchToWorkspacePages();
1600
+ const { data: job } = react.useWorkspaceTransfer(jobId);
1601
+ const finished = !!jobId && react.isTransferFinished(job);
1602
+ const { data: items } = react.useWorkspaceTransferItems(jobId, { enabled: finished });
1603
+ const target = nameOf(job?.target_workspace_ext_id ?? targetId);
1604
+ const documents = page.documentIds.length;
1605
+ const views = page.viewIds.length;
1606
+ const copyId = react.transferredId(items, page.id);
1607
+ const pageItem = items?.find((i) => i.source_ext_id === page.id);
1608
+ const submit = async () => {
1609
+ if (!targetId) return;
1610
+ try {
1611
+ const started = await start.mutateAsync({
1612
+ scope,
1613
+ mode,
1614
+ targetWorkspaceId: targetId,
1615
+ // What the person asked for arrives: a same-titled page there is kept, the copy renamed "(2)".
1616
+ onConflict: "keep_both"
1617
+ });
1618
+ setJobId(started.external_id);
1619
+ trackTransfer(started.external_id);
1620
+ } catch (error) {
1621
+ const detail = error?.detail;
1622
+ notify(typeof detail === "string" ? detail : l.startFailed, "error");
1623
+ }
1624
+ };
1625
+ const openCopy = async () => {
1626
+ const workspaceId = job?.target_workspace_ext_id;
1627
+ if (!copyId || !workspaceId) return;
1628
+ setOpening(true);
1629
+ try {
1630
+ if (await switchToPages({ id: workspaceId, name: target })) onOpenCopy(copyId);
1631
+ onClose();
1632
+ } finally {
1633
+ setOpening(false);
1634
+ }
1635
+ };
1636
+ let body;
1637
+ let footer;
1638
+ if (!jobId) {
1639
+ body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1640
+ /* @__PURE__ */ jsxRuntime.jsx(
1641
+ chunkJCFXS336_cjs.ExportWorkspacePicker,
1642
+ {
1643
+ workspaces: options,
1644
+ selectedId: targetId,
1645
+ onSelect: setTargetId,
1646
+ testId: (id) => `${testId}-workspace-${id}`
1647
+ }
1648
+ ),
1649
+ documents > 0 && /* @__PURE__ */ jsxRuntime.jsx(
1650
+ chunkJCFXS336_cjs.TransferReferencesChooser,
1651
+ {
1652
+ value: references,
1653
+ onChange: setReferences,
1654
+ labels: {
1655
+ references: l.documents,
1656
+ referencesHelp: l.documentsHelp(documents),
1657
+ referencesInclude: l.documentsInclude,
1658
+ referencesLink: l.documentsLink
1659
+ }
1660
+ }
1661
+ ),
1662
+ views > 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pt-2 text-sm text-muted-foreground", "data-testid": `${testId}-views`, children: l.viewsStay(views) }),
1663
+ mode === "move" && !!plan?.not_removable && /* @__PURE__ */ jsxRuntime.jsxs(
1664
+ "p",
1665
+ {
1666
+ className: "flex items-start gap-2 pt-2 text-sm",
1667
+ "data-testid": `${testId}-not-removable`,
1668
+ children: [
1669
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "mt-0.5 size-4 shrink-0 text-yellow-text" }),
1670
+ l.notRemovable
1671
+ ]
1672
+ }
1673
+ )
1674
+ ] });
1675
+ footer = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1676
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, "data-testid": `${testId}-cancel`, children: l.cancel }),
1677
+ /* @__PURE__ */ jsxRuntime.jsx(
1678
+ ui.Button,
1679
+ {
1680
+ onClick: () => void submit(),
1681
+ disabled: !targetId || start.isPending,
1682
+ "data-testid": `${testId}-submit`,
1683
+ children: start.isPending ? l.starting : l.submit(mode)
1684
+ }
1685
+ )
1686
+ ] });
1687
+ } else if (!finished || !items) {
1688
+ body = job ? /* @__PURE__ */ jsxRuntime.jsx(
1689
+ chunkJCFXS336_cjs.TransferProgressView,
1690
+ {
1691
+ title: l.progress(mode, target),
1692
+ processed: job.processed ?? 0,
1693
+ total: job.total ?? 0,
1694
+ phaseLabel: l.phase[job.phase] ?? job.phase,
1695
+ onHide: finished ? void 0 : onClose,
1696
+ onCancel: finished ? void 0 : () => cancel.mutate(job.external_id),
1697
+ isCancelling: cancel.isPending
1698
+ }
1699
+ ) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
1700
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
1701
+ " ",
1702
+ l.progress(mode, target)
1703
+ ] });
1704
+ } else {
1705
+ const kept = mode === "move" && pageItem?.status === "kept";
1706
+ const failed = !copyId;
1707
+ const Icon = failed ? lucideReact.XCircle : kept ? lucideReact.AlertTriangle : lucideReact.CheckCircle2;
1708
+ const tone = failed ? "text-red-text" : kept ? "text-yellow-text" : "text-green-text";
1709
+ const detail = failed ? pageItem?.message ?? job?.error : pageItem?.message;
1710
+ body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 pt-2", "data-testid": `${testId}-result`, children: [
1711
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: `mt-0.5 size-5 shrink-0 ${tone}` }),
1712
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 space-y-1 text-sm", children: [
1713
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", children: failed ? l.failed(mode, target) : kept ? l.kept(target) : l.done(mode, target) }),
1714
+ detail && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "break-words text-muted-foreground", children: detail })
1715
+ ] })
1716
+ ] });
1717
+ footer = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1718
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, "data-testid": `${testId}-close`, children: l.close }),
1719
+ copyId && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: () => void openCopy(), disabled: opening, "data-testid": `${testId}-open`, children: l.open })
1720
+ ] });
1721
+ }
1722
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { className: "max-h-[90dvh] max-w-lg overflow-y-auto", "data-testid": testId, children: [
1723
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { children: [
1724
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: l.title(mode, page.spec.title) }),
1725
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: l.description(mode) })
1726
+ ] }),
1727
+ body,
1728
+ footer && /* @__PURE__ */ jsxRuntime.jsx(ui.DialogFooter, { children: footer })
1729
+ ] }) });
1730
+ }
1132
1731
 
1133
1732
  // src/connection/pages/labels.ts
1134
1733
  var DEFAULT_PAGES_PAGE_LABELS = {
@@ -1150,6 +1749,8 @@ var DEFAULT_PAGES_PAGE_LABELS = {
1150
1749
  back: "All pages",
1151
1750
  edit: "Edit",
1152
1751
  more: "More page actions",
1752
+ copyToWorkspace: "Copy to workspace\u2026",
1753
+ moveToWorkspace: "Move to workspace\u2026",
1153
1754
  delete: "Delete",
1154
1755
  confirmDelete: (title) => `Delete the page \u201C${title}\u201D? Its blocks go with it.`,
1155
1756
  deleteFailed: "The page could not be deleted",
@@ -1166,7 +1767,11 @@ var DEFAULT_PAGES_PAGE_LABELS = {
1166
1767
  text: "Text",
1167
1768
  table: "Table",
1168
1769
  document: "Document",
1169
- gallery: "Gallery"
1770
+ gallery: "Gallery",
1771
+ list: "Recent list",
1772
+ carousel: "Carousel",
1773
+ agenda: "Agenda",
1774
+ start: "Start"
1170
1775
  },
1171
1776
  editBlock: "Edit the block",
1172
1777
  removeBlock: "Remove the block",
@@ -1191,21 +1796,53 @@ var KIND_ICONS = {
1191
1796
  text: lucideReact.FileText,
1192
1797
  table: lucideReact.Table2,
1193
1798
  document: lucideReact.FileImage,
1194
- gallery: lucideReact.Images
1799
+ gallery: lucideReact.Images,
1800
+ list: lucideReact.ListOrdered,
1801
+ carousel: lucideReact.GalleryHorizontal,
1802
+ agenda: lucideReact.CalendarClock,
1803
+ start: lucideReact.Rocket
1195
1804
  };
1805
+ var ADDABLE_KINDS = [
1806
+ "chart",
1807
+ "metric",
1808
+ "text",
1809
+ "table",
1810
+ "document",
1811
+ "gallery",
1812
+ "list",
1813
+ "carousel",
1814
+ "agenda",
1815
+ "start"
1816
+ ];
1196
1817
  function newBlock(kind) {
1197
- const layout = { x: 0, y: 0, w: kind === "metric" ? 3 : 12, h: react.DEFAULT_BLOCK_HEIGHT[kind] };
1818
+ const layout = defaultLayout(kind);
1198
1819
  if (kind === "chart" || kind === "metric") {
1199
- const panel = chunkKRQCUVH7_cjs.newPanel();
1820
+ const panel = chunkYSAUOJA7_cjs.newPanel();
1200
1821
  return {
1201
1822
  ...react.blockOfPanel({ ...panel, chart: kind === "metric" ? { type: "metric" } : panel.chart }),
1202
1823
  layout
1203
1824
  };
1204
1825
  }
1205
- if (kind === "text") return { id: chunkKRQCUVH7_cjs.newPanelId(), kind, layout, config: { text: "" } };
1206
- if (kind === "document") return { id: chunkKRQCUVH7_cjs.newPanelId(), kind, layout, config: { document: "" } };
1207
- if (kind === "gallery") return { id: chunkKRQCUVH7_cjs.newPanelId(), kind, layout, config: { documents: [] } };
1208
- return { id: chunkKRQCUVH7_cjs.newPanelId(), kind, layout, config: { view: "" } };
1826
+ if (kind === "text") return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config: { text: "" } };
1827
+ if (kind === "document") return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config: { document: "" } };
1828
+ if (kind === "gallery") return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config: { documents: [] } };
1829
+ if (kind === "list") {
1830
+ const config = { source: "documents", limit: react.LIVE_BLOCK_LIMITS.listRows.default };
1831
+ return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config };
1832
+ }
1833
+ if (kind === "carousel") {
1834
+ const config = { source: "skills", limit: react.LIVE_BLOCK_LIMITS.carouselItems.default };
1835
+ return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config };
1836
+ }
1837
+ if (kind === "agenda") {
1838
+ const config = {
1839
+ days: react.LIVE_BLOCK_LIMITS.agendaDays.default,
1840
+ limit: react.LIVE_BLOCK_LIMITS.agendaEvents.default
1841
+ };
1842
+ return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config };
1843
+ }
1844
+ if (kind === "start") return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config: {} };
1845
+ return { id: chunkYSAUOJA7_cjs.newPanelId(), kind, layout, config: { view: "" } };
1209
1846
  }
1210
1847
  var errorText = (error) => error instanceof Error ? error.message : String(error);
1211
1848
  function ConnectedPagesPage({
@@ -1219,6 +1856,7 @@ function ConnectedPagesPage({
1219
1856
  gridLabels,
1220
1857
  tableLabels,
1221
1858
  pickerLabels,
1859
+ transferLabels,
1222
1860
  className,
1223
1861
  testId = "pages"
1224
1862
  }) {
@@ -1227,7 +1865,7 @@ function ConnectedPagesPage({
1227
1865
  const arbi = react.useArbi();
1228
1866
  const me = arbi.isLoggedIn ? arbi.user.identity()?.externalId ?? null : null;
1229
1867
  const workflowsOn = react.useFeature("workflows");
1230
- const templates = siteTemplates ?? chunkKRQCUVH7_cjs.templatesFor(chunkKRQCUVH7_cjs.DASHBOARD_TEMPLATES, { workflows: workflowsOn });
1868
+ const templates = siteTemplates ?? chunkYSAUOJA7_cjs.templatesFor(PAGE_TEMPLATES, { workflows: workflowsOn });
1231
1869
  const canEditShared = react.useCanEditShared();
1232
1870
  const isOwner = react.useIsWorkspaceOwner();
1233
1871
  const pages = react.usePages();
@@ -1247,6 +1885,7 @@ function ConnectedPagesPage({
1247
1885
  openIdRef.current = openId;
1248
1886
  }, [openId]);
1249
1887
  const [editing, setEditing] = react$1.useState(null);
1888
+ const [transfer, setTransfer] = react$1.useState(null);
1250
1889
  const open = react$1.useMemo(
1251
1890
  () => pages.data?.find((p) => p.id === openId && !p.unreadable),
1252
1891
  [pages.data, openId]
@@ -1269,14 +1908,26 @@ function ConnectedPagesPage({
1269
1908
  version: 1,
1270
1909
  title: chartRequest.name,
1271
1910
  panels: [
1272
- { ...chunkKRQCUVH7_cjs.newPanel(), title: l.rows, source, chart: { type: "metric" }, width: 3 },
1273
- { ...chunkKRQCUVH7_cjs.newPanel(), title: chartRequest.name, source, chart: { type: "table" }, width: 12 }
1911
+ { ...chunkYSAUOJA7_cjs.newPanel(), title: l.rows, source, chart: { type: "metric" }, width: 3 },
1912
+ { ...chunkYSAUOJA7_cjs.newPanel(), title: chartRequest.name, source, chart: { type: "table" }, width: 12 }
1274
1913
  ]
1275
1914
  });
1276
1915
  setDraft({ spec, base: spec, shared: false });
1277
1916
  }, [chartRequest]);
1278
1917
  const canEdit = (p) => p.shared ? canEditShared : p.legacy || p.createdBy === null || p.createdBy === me;
1279
1918
  const canDelete = (p) => p.shared ? isOwner : canEdit(p);
1919
+ const canArrange = (p) => canEdit(p) && !p.legacy;
1920
+ const [arranged, setArranged] = react$1.useState(null);
1921
+ const arrange = async (p, blocks) => {
1922
+ setArranged({ id: p.id, blocks });
1923
+ try {
1924
+ await save.mutateAsync({ id: p.id, spec: { ...p.spec, blocks } });
1925
+ } catch (error) {
1926
+ notify(`${l.saveFailed}: ${errorText(error)}`, "error");
1927
+ } finally {
1928
+ setArranged((a) => a?.blocks === blocks ? null : a);
1929
+ }
1930
+ };
1280
1931
  const startEditing = (p) => setDraft({ id: p.id, spec: p.spec, base: p.spec, shared: p.shared });
1281
1932
  const createBlank = () => {
1282
1933
  const spec = { version: 1, title: l.untitled, blocks: [] };
@@ -1287,7 +1938,7 @@ function ConnectedPagesPage({
1287
1938
  setCreating(true);
1288
1939
  const openWhenStarted = openIdRef.current;
1289
1940
  try {
1290
- const result = await save.mutateAsync({ spec: react.pageFromDashboard(template) });
1941
+ const result = await save.mutateAsync({ spec: pageOfTemplate(template) });
1291
1942
  if (openIdRef.current === openWhenStarted) setOpenId(result.id);
1292
1943
  notify(l.saved, "success");
1293
1944
  } catch (error) {
@@ -1397,42 +2048,41 @@ function ConnectedPagesPage({
1397
2048
  onChange: setBlocks,
1398
2049
  labels: gridLabels,
1399
2050
  testId,
1400
- renderBlock: (block, grip) => /* @__PURE__ */ jsxRuntime.jsx(
2051
+ renderBlock: (block) => /* @__PURE__ */ jsxRuntime.jsx(
1401
2052
  PageBlockView,
1402
2053
  {
1403
2054
  block,
1404
2055
  panelLabels,
1405
2056
  tableLabels,
1406
- testId: `${testId}-block-${block.id}`,
1407
- actions: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1408
- grip,
1409
- /* @__PURE__ */ jsxRuntime.jsx(
1410
- ui.Button,
1411
- {
1412
- variant: "ghost",
1413
- size: "icon",
1414
- className: "size-7",
1415
- "aria-label": l.editBlock,
1416
- onClick: () => setEditing({ block, isNew: false }),
1417
- "data-testid": `${testId}-edit-block-${block.id}`,
1418
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "size-3.5" })
1419
- }
1420
- ),
1421
- /* @__PURE__ */ jsxRuntime.jsx(
1422
- ui.Button,
1423
- {
1424
- variant: "ghost",
1425
- size: "icon",
1426
- className: "size-7",
1427
- "aria-label": l.removeBlock,
1428
- onClick: () => setBlocks(compactLayout(blocks.filter((b) => b.id !== block.id))),
1429
- "data-testid": `${testId}-remove-block-${block.id}`,
1430
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-3.5" })
1431
- }
1432
- )
1433
- ] })
2057
+ testId: `${testId}-block-${block.id}`
1434
2058
  }
1435
- )
2059
+ ),
2060
+ actionsOf: (block) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2061
+ /* @__PURE__ */ jsxRuntime.jsx(
2062
+ ui.Button,
2063
+ {
2064
+ variant: "ghost",
2065
+ size: "icon",
2066
+ className: "size-7",
2067
+ "aria-label": l.editBlock,
2068
+ onClick: () => setEditing({ block, isNew: false }),
2069
+ "data-testid": `${testId}-edit-block-${block.id}`,
2070
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "size-3.5" })
2071
+ }
2072
+ ),
2073
+ /* @__PURE__ */ jsxRuntime.jsx(
2074
+ ui.Button,
2075
+ {
2076
+ variant: "ghost",
2077
+ size: "icon",
2078
+ className: "size-7",
2079
+ "aria-label": l.removeBlock,
2080
+ onClick: () => setBlocks(compactLayout(blocks.filter((b) => b.id !== block.id))),
2081
+ "data-testid": `${testId}-remove-block-${block.id}`,
2082
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "size-3.5" })
2083
+ }
2084
+ )
2085
+ ] })
1436
2086
  }
1437
2087
  ) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.noBlocks }),
1438
2088
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
@@ -1441,7 +2091,7 @@ function ConnectedPagesPage({
1441
2091
  " ",
1442
2092
  l.addBlock
1443
2093
  ] }) }),
1444
- /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuContent, { align: "start", children: ["chart", "metric", "text", "table", "document", "gallery"].map((kind) => {
2094
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuContent, { align: "start", children: ADDABLE_KINDS.map((kind) => {
1445
2095
  const Icon = KIND_ICONS[kind];
1446
2096
  return /* @__PURE__ */ jsxRuntime.jsxs(
1447
2097
  ui.DropdownMenuItem,
@@ -1492,16 +2142,46 @@ function ConnectedPagesPage({
1492
2142
  onEdit: () => startEditing(open),
1493
2143
  onShare: () => void sharePage(open),
1494
2144
  onDelete: () => void deletePage(open),
2145
+ onCopy: open.legacy ? void 0 : () => setTransfer({ page: open, mode: "copy" }),
2146
+ onMove: open.legacy ? void 0 : () => setTransfer({ page: open, mode: "move" }),
1495
2147
  testId,
1496
- children: open.spec.blocks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(PageGrid, { testId: `${testId}-grid`, children: inReadingOrder(open.spec.blocks).map((block) => /* @__PURE__ */ jsxRuntime.jsx(PageCell, { layout: block.layout, testId: `${testId}-cell-${block.id}`, children: /* @__PURE__ */ jsxRuntime.jsx(
1497
- PageBlockView,
2148
+ children: open.spec.blocks.length > 0 && (canArrange(open) ? (
2149
+ // Who may change the page arranges it as it is read: a drop saves at once.
2150
+ /* @__PURE__ */ jsxRuntime.jsx(
2151
+ EditablePageGrid,
2152
+ {
2153
+ blocks: arranged?.id === open.id ? arranged.blocks : open.spec.blocks,
2154
+ onChange: (blocks) => void arrange(open, blocks),
2155
+ labels: gridLabels,
2156
+ testId,
2157
+ renderBlock: (block) => /* @__PURE__ */ jsxRuntime.jsx(
2158
+ PageBlockView,
2159
+ {
2160
+ block,
2161
+ panelLabels,
2162
+ tableLabels,
2163
+ testId: `${testId}-block-${block.id}`
2164
+ }
2165
+ )
2166
+ }
2167
+ )
2168
+ ) : /* @__PURE__ */ jsxRuntime.jsx(PageGrid, { testId: `${testId}-grid`, children: inReadingOrder(normalizeLayout(open.spec.blocks)).map((block) => /* @__PURE__ */ jsxRuntime.jsx(
2169
+ PageCell,
1498
2170
  {
1499
- block,
1500
- panelLabels,
1501
- tableLabels,
1502
- testId: `${testId}-block-${block.id}`
1503
- }
1504
- ) }, block.id)) })
2171
+ layout: block.layout,
2172
+ testId: `${testId}-cell-${block.id}`,
2173
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2174
+ PageBlockView,
2175
+ {
2176
+ block,
2177
+ panelLabels,
2178
+ tableLabels,
2179
+ testId: `${testId}-block-${block.id}`
2180
+ }
2181
+ )
2182
+ },
2183
+ block.id
2184
+ )) }))
1505
2185
  }
1506
2186
  );
1507
2187
  } else {
@@ -1528,12 +2208,25 @@ function ConnectedPagesPage({
1528
2208
  }
1529
2209
  );
1530
2210
  }
1531
- return /* @__PURE__ */ jsxRuntime.jsx(
2211
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1532
2212
  "div",
1533
2213
  {
1534
2214
  className: ui.cn("h-full min-h-0 w-full overflow-y-auto p-4 sm:p-6", className),
1535
2215
  "data-testid": testId,
1536
- children: content
2216
+ children: [
2217
+ content,
2218
+ /* @__PURE__ */ jsxRuntime.jsx(
2219
+ PageTransferDialog,
2220
+ {
2221
+ page: transfer?.page ?? null,
2222
+ mode: transfer?.mode ?? "copy",
2223
+ onClose: () => setTransfer(null),
2224
+ onOpenCopy: setOpenId,
2225
+ labels: transferLabels,
2226
+ testId: `${testId}-transfer`
2227
+ }
2228
+ )
2229
+ ]
1537
2230
  }
1538
2231
  );
1539
2232
  }
@@ -1541,10 +2234,13 @@ function ConnectedPagesPage({
1541
2234
  exports.BlockEditor = BlockEditor;
1542
2235
  exports.ConnectedPagesPage = ConnectedPagesPage;
1543
2236
  exports.DEFAULT_BLOCK_EDITOR_LABELS = DEFAULT_BLOCK_EDITOR_LABELS;
2237
+ exports.DEFAULT_BLOCK_SLOTS = DEFAULT_BLOCK_SLOTS;
1544
2238
  exports.DEFAULT_DOCUMENTS_PICKER_LABELS = DEFAULT_DOCUMENTS_PICKER_LABELS;
1545
2239
  exports.DEFAULT_DOCUMENT_BLOCK_LABELS = DEFAULT_DOCUMENT_BLOCK_LABELS;
1546
2240
  exports.DEFAULT_EDITABLE_PAGE_GRID_LABELS = DEFAULT_EDITABLE_PAGE_GRID_LABELS;
2241
+ exports.DEFAULT_LIVE_BLOCK_EDITOR_LABELS = DEFAULT_LIVE_BLOCK_EDITOR_LABELS;
1547
2242
  exports.DEFAULT_PAGES_PAGE_LABELS = DEFAULT_PAGES_PAGE_LABELS;
2243
+ exports.DEFAULT_PAGE_TRANSFER_LABELS = DEFAULT_PAGE_TRANSFER_LABELS;
1548
2244
  exports.DEFAULT_TABLE_VIEW_BLOCK_LABELS = DEFAULT_TABLE_VIEW_BLOCK_LABELS;
1549
2245
  exports.DEFAULT_VIEW_PICKER_LABELS = DEFAULT_VIEW_PICKER_LABELS;
1550
2246
  exports.DocumentBlockView = DocumentBlockView;
@@ -1552,17 +2248,30 @@ exports.DocumentReadView = DocumentReadView;
1552
2248
  exports.DocumentsPicker = DocumentsPicker;
1553
2249
  exports.EditablePageGrid = EditablePageGrid;
1554
2250
  exports.GalleryBlockView = GalleryBlockView;
1555
- exports.MIN_BLOCK_SIZE = MIN_BLOCK_SIZE;
2251
+ exports.LiveBlockEditor = LiveBlockEditor;
2252
+ exports.MAX_BLOCK_SLOTS = MAX_BLOCK_SLOTS;
2253
+ exports.NO_DRAG = NO_DRAG;
1556
2254
  exports.PAGE_ROW_HEIGHT = PAGE_ROW_HEIGHT;
2255
+ exports.PAGE_TEMPLATES = PAGE_TEMPLATES;
1557
2256
  exports.PageBlockView = PageBlockView;
1558
2257
  exports.PageCell = PageCell;
1559
2258
  exports.PageGrid = PageGrid;
2259
+ exports.PageTransferDialog = PageTransferDialog;
2260
+ exports.SLOTS_ACROSS = SLOTS_ACROSS;
2261
+ exports.SLOT_COLUMNS = SLOT_COLUMNS;
2262
+ exports.SLOT_ROWS = SLOT_ROWS;
1560
2263
  exports.TableViewBlock = TableViewBlock;
1561
2264
  exports.ViewPicker = ViewPicker;
1562
2265
  exports.appendBlock = appendBlock;
1563
2266
  exports.compactLayout = compactLayout;
2267
+ exports.defaultLayout = defaultLayout;
1564
2268
  exports.inReadingOrder = inReadingOrder;
1565
2269
  exports.moveBlock = moveBlock;
2270
+ exports.normalizeLayout = normalizeLayout;
2271
+ exports.pageOfTemplate = pageOfTemplate;
1566
2272
  exports.resizeBlock = resizeBlock;
2273
+ exports.snapLayout = snapLayout;
2274
+ exports.stepMove = stepMove;
2275
+ exports.stepSize = stepSize;
1567
2276
  //# sourceMappingURL=index.cjs.map
1568
2277
  //# sourceMappingURL=index.cjs.map