@riverbankcms/sdk 0.170.0 → 0.171.1

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 (221) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
  10. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
  11. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
  12. package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
  13. package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
  14. package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
  16. package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
  56. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
  57. package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/{Page-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-DRJy4eU3.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-BnyVRqdU.mjs} +73 -26
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
  94. package/dist/client/client.mjs +656 -220
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-CP9l112u.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-ChgDe9Da.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
  132. package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
  146. package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
  147. package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/editor-base.css +14 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
  171. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
  172. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
  173. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
  174. package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
  175. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  176. package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
  177. package/dist/server/config-template-validation.mjs +30 -4
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -34
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/index.mjs +3 -3
  182. package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
  183. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
  184. package/dist/server/manifest.mjs +1 -1
  185. package/dist/server/next.mjs +8 -6
  186. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
  187. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
  188. package/dist/server/page-converter.mjs +3 -3
  189. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  190. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
  191. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
  192. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
  193. package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
  194. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
  195. package/dist/server/prebuild.mjs +1 -1
  196. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
  197. package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
  198. package/dist/server/rendering/components/pageShared.mjs +1 -1
  199. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  200. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  201. package/dist/server/rendering/server.mjs +3 -3
  202. package/dist/server/rendering.mjs +7 -7
  203. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
  204. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
  205. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  206. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  207. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/theme-bridge.mjs +2 -2
  210. package/dist/server/theme.mjs +2 -1
  211. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  212. package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
  213. package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
  214. package/dist/styles/index.css +408 -10
  215. package/package.json +1 -1
  216. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  217. package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
  218. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  219. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  220. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  221. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $d as truncateInlineText, Aa as resolveMediaStorageUrl, Am as DialogContent, Ar as getBlockDefinition, B_ as generateUuidV4, C as selectedImageFromMediaValue, Ca as computeMediaTransformStyle, Ch as cva, Cm as DialogDescription$1, Dd as RichTextDocSchema, Dh as useComposedRefs, Ef as getCuratedSiteStyle, Em as DialogTitle$1, F as nextLookTilePin, Ff as getGradientPreset, Gd as inlineTextToPlainText, Gm as __read, Gn as rankBackgroundImagePoolItems, Hd as inlineTextAccentTones, Hm as __awaiter, In as backgroundColorTokens, Jd as normalizeInlineTextMarks, Jm as __spreadArrays, Km as __rest, Ma as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Mm as DialogOverlay, Nf as gradientToCss, Nm as DialogPortal, Oa as resolveImageUrlWithContext, Oh as cn$2, Pm as DialogTitle, Qd as replaceInlineTextRange, Rn as defaultBackgroundOverrideForMode, S_ as mediaIdentifierSchema, Sh as useControlReadiness, Sm as DialogContent$1, Tm as DialogHeader, Ud as inlineTextEqual, Um as __extends, Vm as __assign, Wd as inlineTextHighlightTones, Wm as __generator, Xd as plainTextToInlineText, Xp as unwrapResponse, Zd as removeInlineTextMarkFromRange, _h as composeEventHandlers, am as SelectTrigger, ay as unsafeAsMediaAssetId, b_ as resolveManagedMediaReference, ba as getRichTextImageSize, bh as Button, bm as Dialog, c_ as isRotationDimensionSwap, cm as usePrevious, d_ as parseAspectRatioValue, f_ as resolveMediaTransformForAspect, gh as createContextScope, im as SelectItem, jm as DialogDescription, k as usePreviewRenderBackgrounds, k_ as asLayoutVariantKey, kd as richTextVariantCapabilities, km as DialogClose, l_ as normalizeRightAngle, m_ as getImageUrl, mh as useControllableState, nm as Select, og as surfaceForegroundValue, oh as useSize, om as SelectValue, op as assertNever$1, oy as unsafeAsPositiveByteCount, p_ as getDirectImageUrlForMediaAsset, qd as normalizeInlineText, qm as __spreadArray, rm as SelectContent, ry as assertNever, u_ as formatAspectRatioToken, vh as Primitive, w as selectedImageFromRenderableAsset, zd as applyInlineTextMarkToRange, zm as usePortalContainer, zt as getDashboardBaseUrl } from "./previewAssistantSlot-CSs9S8wr.mjs";
4
- import { B as ImageUp, C as Palette, F as Link$1, Gt as err, J as FileSpreadsheet, K as File, Kt as ok, L as Italic$1, M as LoaderCircle, N as List, P as ListOrdered, R as Info, St as Archive, W as Highlighter, X as FileHeadphone, Y as FilePlay, Z as FileArchive, a as Upload, b as Pencil, c as Trash2, ft as ChevronRight, ht as Check, n as X, nt as Crop, pt as ChevronLeft, q as FileText, y as Plus, yt as Bold$1, z as Image } from "./lucide-react-DbC1o6_9.mjs";
5
- import { $ as useMediaEditorOptional, D as usePreviewCompiledThemeOptional, Q as useMediaEditor, Yt as Input, cn as classifyKnownMimeType, d as CustomizeBackgroundColorPicker, et as useApiMediaUploader, tt as TransferError, zt as readThemeScopeContext } from "./SiteChromeCustomizeButton-CcZ_ERvZ.mjs";
6
- import { A as TooltipTrigger, D as Tooltip, F as DropdownMenuTrigger, M as DropdownMenuContent, N as DropdownMenuItem, O as TooltipContent, c as arrangementBackgroundControlFor, j as DropdownMenu, k as TooltipProvider, l as arrangementBlockControlsFor } from "./useBlockCustomizeControls-WOs8Atje.mjs";
3
+ import { $d as inlineTextToPlainText, $t as useEditorUiStore, Am as DialogPortal, Bm as __extends, C as selectedImageFromMediaValue, Ca as getRichTextImageSize, D_ as asLayoutVariantKey, Dm as DialogContent, Ea as computeMediaTransformStyle, Em as DialogClose, F as nextLookTilePin, Fa as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, Fd as RichTextDocSchema, Gf as getGradientPreset, Gm as __spreadArrays, Gn as rankBackgroundImagePoolItems, Hm as __read, If as getCuratedSiteStyle, Im as usePortalContainer, In as backgroundColorTokens, Ld as richTextVariantCapabilities, M as lookPositionLabel, N as lookTilePosition, N_ as authoredValuesEqual, Na as resolveMediaStorageUrl, Nr as getBlockDefinition, Om as DialogDescription, Qd as inlineTextHighlightTones, Rm as __assign, Rn as defaultBackgroundOverrideForMode, Sm as DialogTitle$1, Th as cn$2, Tv as unsafeAsEditorBlockId, Uf as gradientToCss, Um as __rest, V_ as generateUuidV4, Vm as __generator, Wm as __spreadArray, Xd as inlineTextAccentTones, Zd as inlineTextEqual, __ as resolveManagedMediaReference, _h as Button, a_ as isRotationDimensionSwap, af as removeInlineTextMarkFromRange, am as selectedCanvasBlockId, b as pageDesignLookPosition, bh as cva, c_ as parseAspectRatioValue, cy as unsafeAsMediaAssetId, d_ as getImageUrl, dh as useControllableState, en as useEditorUiStoreInstance, gm as Dialog, hh as Primitive, i as usePreviewSidebarNavigation, if as plainTextToInlineText, im as unwrapResponse, iy as assertNever, ja as resolveImageUrlWithContext, jm as DialogTitle, k as usePreviewRenderBackgrounds, km as DialogOverlay, l_ as resolveMediaTransformForAspect, ly as unsafeAsPositiveByteCount, mh as composeEventHandlers, mp as assertNever$1, nf as normalizeInlineTextMarks, o as usePreviewPageDesignEditorState, o_ as normalizeRightAngle, of as replaceInlineTextRange, ph as createContextScope, pm as Callout, qd as applyInlineTextMarkToRange, rg as surfaceForegroundValue, rh as useSize, s_ as formatAspectRatioToken, sf as truncateInlineText, tf as normalizeInlineText, u_ as getDirectImageUrlForMediaAsset, vm as DialogContent$1, w as selectedImageFromRenderableAsset, wh as useComposedRefs, wm as overlayScrimClass, xm as DialogHeader, y as cyclePageDesignBlockLook, y_ as mediaIdentifierSchema, yh as useControlReadiness, ym as DialogDescription$1, zm as __awaiter, zt as getDashboardBaseUrl } from "./previewAssistantSlot-3FZrzbK8.mjs";
4
+ import { A as LoaderCircle, F as Italic$1, G as FileText, Gt as ok, H as Highlighter, I as Info, J as FileHeadphone, K as FileSpreadsheet, L as Image, M as ListOrdered, N as Link$1, R as ImageUp, S as Palette, W as File, Wt as err, Y as FileArchive, _t as Bold$1, a as Upload, c as Trash2, dt as ChevronLeft, et as Crop, j as List, n as X, pt as Check, q as FilePlay, s as TriangleAlert, ut as ChevronRight, v as Plus, xt as Archive, y as Pencil } from "./lucide-react-X0DjcFij.mjs";
5
+ import { $ as useMediaEditor, $t as SelectItem, Bt as readThemeScopeContext, D as usePreviewCompiledThemeOptional, F as siteColourCss, Qt as SelectContent, Sn as classifyKnownMimeType, Zt as Select, d as CustomizeBackgroundColorPicker, en as SelectTrigger, et as useMediaEditorOptional, i as PreviewChromeFloatingControl, l as planBlockToolbarPlacement, ln as useFieldDescribedBy, nn as usePrevious, nt as TransferError, o as readThemeCustomProperties, on as Input, qt as CHOSEN_OPTION_CLASS, s as measureSiteTopChromeClearance, tn as SelectValue, tt as useApiMediaUploader } from "./SiteChromeCustomizeButton-eU-zMftO.mjs";
6
+ import { A as TooltipProvider, B as DropdownMenuTrigger, F as DropdownMenuItem, M as Badge, N as DropdownMenu, O as Tooltip, P as DropdownMenuContent, c as useBlockNeedsSetup, i as NEEDS_SETUP_LABEL, j as TooltipTrigger, k as TooltipContent, l as arrangementBackgroundControlFor, o as needsSetupMessage, r as useBlockCustomizeControls, t as useOpenBlockForSetup, u as arrangementBlockControlsFor } from "./useOpenBlockForSetup-BNG9P9sM.mjs";
7
7
  import * as React$1 from "react";
8
8
  import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -170,6 +170,53 @@ const footerModeSchema = z.enum([
170
170
  "none"
171
171
  ]);
172
172
  //#endregion
173
+ //#region ../ui/src/surface.tsx
174
+ const surfaceVariants = cva("text-card-foreground", {
175
+ variants: {
176
+ variant: {
177
+ default: "bg-muted",
178
+ background: "bg-background",
179
+ /**
180
+ * The dark band (Macadamia's ink). `surface-inverse` remaps the
181
+ * button, focus and muted-text tokens inside it, so shared controls
182
+ * read light-on-dark without per-use overrides. Don't nest light
183
+ * surfaces inside it: they'd inherit the remapped tokens.
184
+ */
185
+ inverse: "surface-inverse bg-inverse text-inverse-foreground"
186
+ },
187
+ radius: {
188
+ sm: "rounded-sm",
189
+ xl: "rounded-xl",
190
+ lg: "rounded-lg",
191
+ md: "rounded-md",
192
+ none: "rounded-none",
193
+ flushMobile: "rounded-none md:rounded-xl"
194
+ },
195
+ padding: {
196
+ none: "",
197
+ sm: "p-3",
198
+ md: "p-4",
199
+ lg: "p-6"
200
+ }
201
+ },
202
+ defaultVariants: {
203
+ variant: "default",
204
+ radius: "xl",
205
+ padding: "none"
206
+ }
207
+ });
208
+ function Surface({ className, variant, radius, padding, ...props }) {
209
+ return /* @__PURE__ */ jsx("div", {
210
+ "data-slot": "surface",
211
+ className: cn$2(surfaceVariants({
212
+ variant,
213
+ radius,
214
+ padding
215
+ }), className),
216
+ ...props
217
+ });
218
+ }
219
+ //#endregion
173
220
  //#region ../ui/src/scrollable-dialog-shell.tsx
174
221
  function ScrollableDialogShell({ header, footer, children, mobileFullscreen = false, desktopMaxWidth = "sm:max-w-3xl", desktopHeight = "sm:h-[80vh]", maxWidth = "max-w-3xl", height = "h-[80vh]", disableMotion = false, showCloseButton = true, className, headerClassName, bodyClassName, footerClassName, wrapContent, ...props }) {
175
222
  const portalContainer = usePortalContainer();
@@ -208,7 +255,7 @@ function ScrollableDialogShell({ header, footer, children, mobileFullscreen = fa
208
255
  container: portalContainer,
209
256
  children: [/* @__PURE__ */ jsx(DialogOverlay, {
210
257
  "data-slot": "dialog-overlay",
211
- className: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50"
258
+ className: overlayScrimClass
212
259
  }), /* @__PURE__ */ jsx(DialogContent, {
213
260
  "data-slot": "scrollable-dialog-shell",
214
261
  className: cn$2("bg-background", !disableMotion && "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", mobileFullscreen ? cn$2("fixed inset-0 left-0 top-0 z-50 translate-x-0 translate-y-0", "h-svh w-full max-w-full rounded-none border-0 shadow-lg", !disableMotion && "duration-200", "sm:inset-auto sm:top-[50%] sm:left-[50%] sm:w-full sm:max-w-[calc(100%-2rem)] sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded-lg sm:border", desktopMaxWidth, desktopHeight) : cn$2("fixed top-[50%] left-[50%] z-50 translate-x-[-50%] translate-y-[-50%]", "w-full max-w-[calc(100%-2rem)] rounded-lg border shadow-lg", !disableMotion && "duration-200", maxWidth, height), "flex flex-col", className),
@@ -254,108 +301,13 @@ function ScrollableDialogContent({ title, description, footer, children, mobileF
254
301
  });
255
302
  }
256
303
  //#endregion
257
- //#region ../ui/src/badge.tsx
258
- const badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
259
- variants: {
260
- variant: {
261
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
262
- secondary: "border-secondary/30 bg-secondary/10 text-secondary-foreground hover:bg-secondary/15",
263
- destructive: "border-destructive/30 bg-destructive/10 text-destructive hover:bg-destructive/15",
264
- success: "border-success/30 bg-success/10 text-success hover:bg-success/15",
265
- warning: "border-warning/30 bg-warning/10 text-warning-foreground hover:bg-warning/15",
266
- outline: "border-border/60 text-foreground"
267
- },
268
- /**
269
- * A status shown as a coloured dot before its label, with the tone
270
- * carried by the dot rather than a fill. `true` draws it as a bordered
271
- * pill (a page's status); `bare` drops the pill and sits in a line of
272
- * text at the surrounding size (an event workspace's status row).
273
- */
274
- dot: {
275
- true: "gap-1.5 rounded-full bg-background pl-2 pr-2.5 font-medium before:size-2 before:shrink-0 before:rounded-full before:bg-current before:content-['']",
276
- bare: "gap-1.5 rounded-none border-0 bg-transparent p-0 text-[length:inherit] font-medium shadow-none before:size-2 before:shrink-0 before:rounded-full before:bg-current before:content-[''] hover:bg-transparent",
277
- false: ""
278
- }
279
- },
280
- compoundVariants: [
281
- {
282
- dot: true,
283
- variant: "default",
284
- className: "border-primary text-foreground shadow-none before:bg-primary hover:bg-background"
285
- },
286
- {
287
- dot: true,
288
- variant: "secondary",
289
- className: "border-secondary/60 text-foreground before:bg-secondary/70 hover:bg-background"
290
- },
291
- {
292
- dot: true,
293
- variant: "destructive",
294
- className: "border-destructive/50 hover:bg-background"
295
- },
296
- {
297
- dot: true,
298
- variant: "success",
299
- className: "border-success/70 hover:bg-background"
300
- },
301
- {
302
- dot: true,
303
- variant: "warning",
304
- className: "border-warning/60 text-foreground before:bg-warning hover:bg-background"
305
- },
306
- {
307
- dot: true,
308
- variant: "outline",
309
- className: "border-border before:bg-border"
310
- },
311
- {
312
- dot: "bare",
313
- variant: "default",
314
- className: "text-foreground before:bg-primary"
315
- },
316
- {
317
- dot: "bare",
318
- variant: "success",
319
- className: "text-foreground before:bg-success"
320
- },
321
- {
322
- dot: "bare",
323
- variant: "warning",
324
- className: "text-warning-foreground before:bg-warning"
325
- },
326
- {
327
- dot: "bare",
328
- variant: "destructive",
329
- className: "text-destructive before:bg-destructive"
330
- },
331
- {
332
- dot: "bare",
333
- variant: "outline",
334
- className: "text-muted-foreground before:bg-muted-foreground/50"
335
- }
336
- ],
337
- defaultVariants: {
338
- variant: "default",
339
- dot: false
340
- }
341
- });
342
- function Badge({ className, variant, dot, ...props }) {
343
- return /* @__PURE__ */ jsx("div", {
344
- className: cn$2(badgeVariants({
345
- variant,
346
- dot
347
- }), className),
348
- ...props
349
- });
350
- }
351
- //#endregion
352
304
  //#region ../ui/src/segmented-control.tsx
353
305
  const SEGMENT_SIZE_CLASS = {
354
306
  sm: "min-h-7 px-3 text-xs",
355
307
  default: "min-h-9 px-4 text-[length:var(--control-font-size)]"
356
308
  };
357
309
  /**
358
- * A pale track with the chosen option raised on it as a pill. The options
310
+ * A pale track with the chosen option filled green as a pill. The options
359
311
  * share the track's width equally when the caller makes it wider (`w-full`).
360
312
  */
361
313
  function SegmentedControl({ options, value, onValueChange, size = "default", className, ...aria }) {
@@ -370,7 +322,7 @@ function SegmentedControl({ options, value, onValueChange, size = "default", cla
370
322
  disabled: opt.disabled,
371
323
  onClick: () => onValueChange(opt.value),
372
324
  "aria-pressed": isActive,
373
- className: cn$2("inline-flex flex-1 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-[var(--button-radius)] font-[var(--control-font-weight)] tracking-[var(--control-letter-spacing)] transition-[color,background-color,box-shadow]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0", SEGMENT_SIZE_CLASS[size], isActive ? "bg-field-background text-foreground shadow-[0_1px_2px_rgba(0,0,0,0.08),0_0_0_1px_var(--border)]" : "text-muted-foreground hover:text-foreground"),
325
+ className: cn$2("inline-flex flex-1 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-[var(--button-radius)] font-[var(--control-font-weight)] tracking-[var(--control-letter-spacing)] transition-[color,background-color,box-shadow]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0", SEGMENT_SIZE_CLASS[size], isActive ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"),
374
326
  children: opt.label
375
327
  }, opt.value);
376
328
  })
@@ -526,12 +478,14 @@ function getState(checked) {
526
478
  }
527
479
  //#endregion
528
480
  //#region ../ui/src/switch.tsx
529
- const Switch = React$1.forwardRef(({ className, disabled, ...props }, ref) => {
481
+ const Switch = React$1.forwardRef(({ className, disabled, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
530
482
  const readiness = useControlReadiness(disabled);
483
+ const describedBy = useFieldDescribedBy(props.id, ariaDescribedBy);
531
484
  return /* @__PURE__ */ jsx(Switch$1, {
532
485
  ref,
533
- className: cn$2("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className),
486
+ className: cn$2("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-[color:color-mix(in_srgb,var(--muted-foreground)_40%,var(--background))]", className),
534
487
  ...props,
488
+ "aria-describedby": describedBy,
535
489
  ...readiness,
536
490
  children: /* @__PURE__ */ jsx(SwitchThumb, { className: cn$2("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
537
491
  });
@@ -565,12 +519,14 @@ function progressPercentage(value, max) {
565
519
  }
566
520
  //#endregion
567
521
  //#region ../ui/src/editor-canvas-chrome.tsx
522
+ const WHITE_EDGE_INSIDE = "shadow-[inset_0_0_0_1px_rgb(255_255_255/0.9)]";
523
+ const WHITE_EDGE_AROUND = "shadow-[0_0_0_1px_rgb(255_255_255/0.9)]";
568
524
  /** An outline drawn as its own layer, so the item's own borders, shadows and outlines stay as they are. Place it inside a positioned element. */
569
525
  function EditorSelectionFrame() {
570
526
  return /* @__PURE__ */ jsx("div", {
571
527
  "aria-hidden": "true",
572
528
  "data-preview-block-selection-frame": "",
573
- className: "pointer-events-none absolute inset-0 z-10 border-2 border-sky-500"
529
+ className: `pointer-events-none absolute inset-0 z-10 border-[3px] border-sky-500 ${WHITE_EDGE_INSIDE}`
574
530
  });
575
531
  }
576
532
  const INSERTION_PILL_STYLE = {
@@ -586,9 +542,9 @@ function EditorInsertionMarker({ edge, label = "New block goes here", ref }) {
586
542
  ref,
587
543
  "aria-hidden": "true",
588
544
  "data-preview-insertion-marker": edge,
589
- className: `pointer-events-none absolute inset-x-0 z-30 h-[3px] bg-sky-500 ${edge === "top" ? "-top-px" : "-bottom-px"}`,
545
+ className: `pointer-events-none absolute inset-x-0 z-30 h-[3px] bg-sky-500 ${WHITE_EDGE_AROUND} ${edge === "top" ? "-top-px" : "-bottom-px"}`,
590
546
  children: /* @__PURE__ */ jsxs("span", {
591
- className: "absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2 items-center whitespace-nowrap rounded-full bg-sky-500 font-sans font-semibold text-white shadow-md",
547
+ className: "absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2 items-center whitespace-nowrap rounded-full bg-sky-500 font-sans font-semibold text-white shadow-md ring-1 ring-white/90",
592
548
  style: INSERTION_PILL_STYLE,
593
549
  children: [/* @__PURE__ */ jsx(Plus, {
594
550
  "aria-hidden": "true",
@@ -610,20 +566,29 @@ function EditorCanvasChipRow({ label, children }) {
610
566
  children
611
567
  });
612
568
  }
613
- /** A light chip naming the selected item; pressing it opens the item. */
614
- function EditorCanvasNameChip({ name, onOpen }) {
615
- return /* @__PURE__ */ jsxs("button", {
569
+ const darkChip = "flex items-center overflow-hidden rounded-full bg-black/80 font-sans text-xs text-white shadow";
570
+ const darkChipButton = "grid h-7 w-7 shrink-0 place-items-center hover:bg-black";
571
+ /** A black chip that does one thing when pressed, such as opening the item it sits on. */
572
+ function EditorCanvasChip({ children, label, onPress }) {
573
+ return /* @__PURE__ */ jsx("button", {
616
574
  type: "button",
617
- className: "flex h-7 shrink-0 items-center rounded-full bg-background/95 px-3 text-xs font-medium text-foreground shadow hover:bg-background",
575
+ "aria-label": label,
576
+ className: `${darkChip} h-7 shrink-0 px-3 font-medium hover:bg-black`,
618
577
  onClick: (event) => {
578
+ event.preventDefault();
619
579
  event.stopPropagation();
620
- onOpen();
580
+ onPress();
621
581
  },
582
+ children
583
+ });
584
+ }
585
+ /** The chip naming the selected item; pressing it opens the item. */
586
+ function EditorCanvasNameChip({ name, onOpen }) {
587
+ return /* @__PURE__ */ jsxs(EditorCanvasChip, {
588
+ onPress: onOpen,
622
589
  children: [name, " ›"]
623
590
  });
624
591
  }
625
- const darkChip = "flex items-center overflow-hidden rounded-full bg-black/80 text-xs text-white shadow";
626
- const darkChipButton = "grid h-7 w-7 shrink-0 place-items-center hover:bg-black";
627
592
  /** A dark chip with a lead-in label and a choice of options, one of them current. */
628
593
  function EditorCanvasChoiceChip({ label, leadIn, options, current, onChoose }) {
629
594
  return /* @__PURE__ */ jsxs("div", {
@@ -804,6 +769,18 @@ const LIGHT_TEXT = {
804
769
  };
805
770
  const UNKNOWN_SURFACE_CANDIDATES = [LIGHT_TOOLBAR_SURFACE, DARK_TOOLBAR_SURFACE];
806
771
  const MIN_SAMPLE_CONTRAST = 3;
772
+ const DARK_PHOTO_STAND_IN = {
773
+ r: 38,
774
+ g: 38,
775
+ b: 38,
776
+ a: 1
777
+ };
778
+ const LIGHT_PHOTO_STAND_IN = {
779
+ r: 232,
780
+ g: 232,
781
+ b: 232,
782
+ a: 1
783
+ };
807
784
  function defaultInlineTextPresentationContext(tone) {
808
785
  const surface = fallbackSurfaceForToolbarTone(tone);
809
786
  const selectedTextRgba = tone === "dark" ? LIGHT_TEXT : DARK_TEXT;
@@ -819,7 +796,7 @@ function readInlineTextPresentationContext(editable, toolbarTone) {
819
796
  const computed = window.getComputedStyle(editable);
820
797
  const selectedTextRgba = parseCssColor(computed.color) ?? fallbackTextColorForTone(toolbarTone);
821
798
  return {
822
- surface: readInlineTextSurface(editable, toolbarTone),
799
+ surface: readInlineTextSurface(editable, toolbarTone, selectedTextRgba),
823
800
  selectedTextColor: colorToCss(selectedTextRgba),
824
801
  selectedTextRgba,
825
802
  accentTextRgbaByTone: readAccentTextRgbaByTone(editable, selectedTextRgba),
@@ -875,7 +852,7 @@ function previewTypography(typography) {
875
852
  };
876
853
  }
877
854
  function previewSurfaceForText(textRgba, surface) {
878
- if (surface.kind === "block-solid" || surface.kind === "image-overlay") return surface;
855
+ if (surface.kind !== "theme-fallback" && surface.kind !== "toolbar-fallback") return surface;
879
856
  if (contrastRatio(textRgba, surface.rgba) >= MIN_SAMPLE_CONTRAST) return surface;
880
857
  return [surface.rgba, ...UNKNOWN_SURFACE_CANDIDATES].map((candidate) => ({
881
858
  color: colorToCss(candidate),
@@ -889,40 +866,35 @@ function defaultAccentTextRgbaByTone(fallback) {
889
866
  function readAccentTextRgbaByTone(editable, fallback) {
890
867
  return Object.fromEntries(inlineTextAccentTones.map((tone) => [tone, resolveCssColor(editable, accentColorValue(tone), "color") ?? fallback]));
891
868
  }
892
- function readInlineTextSurface(editable, toolbarTone) {
869
+ function readInlineTextSurface(editable, toolbarTone, textRgba) {
893
870
  const fallback = readThemeFallbackSurface(editable) ?? fallbackSurfaceForToolbarTone(toolbarTone);
894
871
  const block = editable.closest("[data-block]") ?? editable.closest(".rb-section");
895
872
  if (!block) return fallback;
873
+ if (block.querySelector(".background-image")) return readPhotoSurface(block, textRgba);
896
874
  const styleLayer = block.querySelector(".background-style");
875
+ const solid = (styleLayer ? readVisibleBackgroundColor(styleLayer, { includeElementOpacity: true }) : null) ?? readVisibleBackgroundColor(block, { includeElementOpacity: true });
876
+ return solid ? {
877
+ kind: "block-solid",
878
+ color: colorToCss(solid),
879
+ rgba: solid
880
+ } : fallback;
881
+ }
882
+ /** The ground over a photo: its overlay, if it has one, over a stand-in for the photo. */
883
+ function readPhotoSurface(block, textRgba) {
884
+ const photo = relativeLuminance(textRgba) > .5 ? DARK_PHOTO_STAND_IN : LIGHT_PHOTO_STAND_IN;
897
885
  const overlay = block.querySelector(".background-overlay");
898
- const hasImage = Boolean(block.querySelector(".background-image"));
899
886
  const overlayColor = overlay ? readVisibleBackgroundColor(overlay) : null;
900
- if (hasImage && overlay && overlayColor) {
901
- const opacity = readOpacity(overlay);
902
- const composited = opacity < 1 || overlayColor.a < 1 ? compositeColors(overlayColor, fallback.rgba, opacity) : overlayColor;
903
- return {
904
- kind: "image-overlay",
905
- color: colorToCss(composited),
906
- rgba: composited
907
- };
908
- }
909
- if (!hasImage && styleLayer) {
910
- const styleLayerColor = readVisibleBackgroundColor(styleLayer, { includeElementOpacity: true });
911
- if (styleLayerColor) return {
912
- kind: "block-solid",
913
- color: colorToCss(styleLayerColor),
914
- rgba: styleLayerColor
915
- };
916
- }
917
- if (!hasImage) {
918
- const blockColor = readVisibleBackgroundColor(block, { includeElementOpacity: true });
919
- if (blockColor) return {
920
- kind: "block-solid",
921
- color: colorToCss(blockColor),
922
- rgba: blockColor
923
- };
924
- }
925
- return fallback;
887
+ if (!overlay || !overlayColor) return {
888
+ kind: "image",
889
+ color: colorToCss(photo),
890
+ rgba: photo
891
+ };
892
+ const composited = compositeColors(overlayColor, photo, readOpacity(overlay));
893
+ return {
894
+ kind: "image-overlay",
895
+ color: colorToCss(composited),
896
+ rgba: composited
897
+ };
926
898
  }
927
899
  function readThemeFallbackSurface(root) {
928
900
  const themeScope = readThemeScopeContext(root).visualScope?.element ?? root;
@@ -1090,152 +1062,193 @@ function srgbToLinear(channel) {
1090
1062
  }
1091
1063
  //#endregion
1092
1064
  //#region ../editor/src/inline/FloatingToolbar.tsx
1093
- function FloatingToolbar({ ownerId, selection, selectedText, tone, presentationContext, openMenu, setOpenMenu, onToggleStrong, onToggleEmphasis, onApplyAccent, onRemoveAccent, onApplyHighlight, onRemoveHighlight }) {
1094
- const { style, placement } = toolbarPlacement(selection.rect, openMenu !== null);
1095
- const clampedSelectedText = selectedText.trim().length > 0 ? selectedText.trim() : "Selected text";
1096
- const plainPreview = buildPlainTonePreview(presentationContext);
1097
- const accentPreviews = inlineTextAccentTones.map((toneOption) => ({
1098
- toneOption,
1099
- preview: buildAccentTonePreview(toneOption, presentationContext)
1100
- })).filter(({ preview }) => !inlineTextTonePreviewLooksSame(preview, plainPreview));
1101
- return /* @__PURE__ */ jsxs("div", {
1065
+ const ACCENT_NAMES = {
1066
+ accent: "Accent colour",
1067
+ brand: "Brand colour",
1068
+ contrast: "Body text colour"
1069
+ };
1070
+ const HIGHLIGHT_NAMES = {
1071
+ soft: "Light shading",
1072
+ accent: "Accent colour",
1073
+ brand: "Brand colour"
1074
+ };
1075
+ const MENU_LABELS = {
1076
+ accent: "Text colour",
1077
+ highlight: "Highlight"
1078
+ };
1079
+ function FloatingToolbar({ ownerId, selection, selectedText, presentationContext, openMenu, setOpenMenu, onToggleStrong, onToggleEmphasis, onApplyAccent, onRemoveAccent, onApplyHighlight, onRemoveHighlight }) {
1080
+ const ref = useRef(null);
1081
+ const size = useMeasuredSize(ref, `${openMenu ?? "none"}:${selectedText}`);
1082
+ const { style, placement } = toolbarPlacement(selection.rect, size);
1083
+ const words = selectedText.trim().length > 0 ? selectedText.trim() : "Selected text";
1084
+ const options = openMenu === "accent" ? accentOptions(presentationContext, onApplyAccent, onRemoveAccent) : openMenu === "highlight" ? highlightOptions(presentationContext, onApplyHighlight, onRemoveHighlight) : [];
1085
+ return /* @__PURE__ */ jsx("div", {
1086
+ ref,
1102
1087
  "data-rb-inline-text-owner": ownerId,
1103
1088
  "data-rb-inline-text-toolbar": true,
1104
- "data-tone": tone,
1105
1089
  "data-placement": placement,
1106
- className: "rb-inline-text-toolbar",
1090
+ className: "builder-dashboard-chrome-theme fixed z-[80] bg-transparent text-left font-sans text-sm font-normal not-italic normal-case leading-normal",
1107
1091
  style,
1108
1092
  onMouseDown: (event) => {
1109
1093
  event.preventDefault();
1110
1094
  },
1095
+ children: /* @__PURE__ */ jsxs(Surface, {
1096
+ variant: "inverse",
1097
+ radius: "lg",
1098
+ className: cn$2("flex p-1 shadow-lg", placement === "above" ? "flex-col-reverse" : "flex-col"),
1099
+ children: [/* @__PURE__ */ jsx(ToolbarButtons, {
1100
+ openMenu,
1101
+ setOpenMenu,
1102
+ onToggleStrong,
1103
+ onToggleEmphasis
1104
+ }), openMenu ? /* @__PURE__ */ jsx(ToneMenu, {
1105
+ label: MENU_LABELS[openMenu],
1106
+ options,
1107
+ words,
1108
+ placement
1109
+ }) : null]
1110
+ })
1111
+ });
1112
+ }
1113
+ function ToolbarButtons({ openMenu, setOpenMenu, onToggleStrong, onToggleEmphasis }) {
1114
+ const menuButton = (menu, icon) => /* @__PURE__ */ jsx(Button, {
1115
+ type: "button",
1116
+ size: "icon",
1117
+ variant: openMenu === menu ? "secondary" : "ghost",
1118
+ "aria-label": MENU_LABELS[menu],
1119
+ title: MENU_LABELS[menu],
1120
+ "aria-expanded": openMenu === menu,
1121
+ "aria-haspopup": "menu",
1122
+ onClick: () => setOpenMenu(openMenu === menu ? null : menu),
1123
+ children: icon
1124
+ });
1125
+ return /* @__PURE__ */ jsxs("div", {
1126
+ className: "flex gap-0.5",
1111
1127
  children: [
1112
- /* @__PURE__ */ jsx("button", {
1128
+ /* @__PURE__ */ jsx(Button, {
1113
1129
  type: "button",
1130
+ size: "icon",
1131
+ variant: "ghost",
1114
1132
  "aria-label": "Bold",
1115
1133
  title: "Bold",
1116
1134
  onClick: onToggleStrong,
1117
- children: /* @__PURE__ */ jsx(Bold$1, {
1118
- "aria-hidden": true,
1119
- size: 16
1120
- })
1135
+ children: /* @__PURE__ */ jsx(Bold$1, { "aria-hidden": true })
1121
1136
  }),
1122
- /* @__PURE__ */ jsx("button", {
1137
+ /* @__PURE__ */ jsx(Button, {
1123
1138
  type: "button",
1139
+ size: "icon",
1140
+ variant: "ghost",
1124
1141
  "aria-label": "Italic",
1125
1142
  title: "Italic",
1126
1143
  onClick: onToggleEmphasis,
1127
- children: /* @__PURE__ */ jsx(Italic$1, {
1128
- "aria-hidden": true,
1129
- size: 16
1130
- })
1131
- }),
1132
- /* @__PURE__ */ jsx("button", {
1133
- type: "button",
1134
- "aria-label": "Accent color",
1135
- title: "Accent color",
1136
- "data-open": openMenu === "accent" ? "true" : void 0,
1137
- onClick: () => setOpenMenu(openMenu === "accent" ? null : "accent"),
1138
- children: /* @__PURE__ */ jsx(Palette, {
1139
- "aria-hidden": true,
1140
- size: 16
1141
- })
1144
+ children: /* @__PURE__ */ jsx(Italic$1, { "aria-hidden": true })
1142
1145
  }),
1143
- /* @__PURE__ */ jsx("button", {
1144
- type: "button",
1145
- "aria-label": "Highlight background",
1146
- title: "Highlight background",
1147
- "data-open": openMenu === "highlight" ? "true" : void 0,
1148
- onClick: () => setOpenMenu(openMenu === "highlight" ? null : "highlight"),
1149
- children: /* @__PURE__ */ jsx(Highlighter, {
1150
- "aria-hidden": true,
1151
- size: 16
1152
- })
1153
- }),
1154
- openMenu === "accent" ? /* @__PURE__ */ jsxs(ToneMenu, {
1155
- label: "Accent color",
1156
- children: [accentPreviews.map(({ toneOption, preview }) => /* @__PURE__ */ jsx("button", {
1157
- type: "button",
1158
- "aria-label": `Apply ${toneOption} accent color`,
1159
- title: `Apply ${toneOption} accent color`,
1160
- onClick: () => onApplyAccent(toneOption),
1161
- children: /* @__PURE__ */ jsx(TonePreview, {
1162
- preview,
1163
- selectedText: clampedSelectedText
1164
- })
1165
- }, toneOption)), /* @__PURE__ */ jsx("button", {
1166
- type: "button",
1167
- "aria-label": "Use plain text color",
1168
- title: "Use plain text color",
1169
- onClick: onRemoveAccent,
1170
- children: /* @__PURE__ */ jsx(TonePreview, {
1171
- preview: plainPreview,
1172
- selectedText: clampedSelectedText
1173
- })
1174
- })]
1175
- }) : null,
1176
- openMenu === "highlight" ? /* @__PURE__ */ jsxs(ToneMenu, {
1177
- label: "Highlight background",
1178
- children: [inlineTextHighlightTones.map((toneOption) => /* @__PURE__ */ jsx("button", {
1179
- type: "button",
1180
- "aria-label": `Apply ${toneOption} highlight background`,
1181
- title: `Apply ${toneOption} highlight background`,
1182
- onClick: () => onApplyHighlight(toneOption),
1183
- children: /* @__PURE__ */ jsx(TonePreview, {
1184
- preview: buildHighlightTonePreview(toneOption, presentationContext),
1185
- selectedText: clampedSelectedText
1186
- })
1187
- }, toneOption)), /* @__PURE__ */ jsx("button", {
1188
- type: "button",
1189
- "aria-label": "Remove highlight background",
1190
- title: "Remove highlight background",
1191
- onClick: onRemoveHighlight,
1192
- children: /* @__PURE__ */ jsx(TonePreview, {
1193
- preview: plainPreview,
1194
- selectedText: clampedSelectedText
1195
- })
1196
- })]
1197
- }) : null
1146
+ menuButton("accent", /* @__PURE__ */ jsx(Palette, { "aria-hidden": true })),
1147
+ menuButton("highlight", /* @__PURE__ */ jsx(Highlighter, { "aria-hidden": true }))
1198
1148
  ]
1199
1149
  });
1200
1150
  }
1201
- function TonePreview({ preview, selectedText }) {
1151
+ function accentOptions(context, onApply, onRemove) {
1152
+ const plain = buildPlainTonePreview(context);
1153
+ return [...inlineTextAccentTones.map((tone) => ({
1154
+ key: tone,
1155
+ name: ACCENT_NAMES[tone],
1156
+ preview: buildAccentTonePreview(tone, context),
1157
+ onChoose: () => onApply(tone)
1158
+ })).filter(({ preview }) => !inlineTextTonePreviewLooksSame(preview, plain)), {
1159
+ key: "plain",
1160
+ name: "Plain text",
1161
+ preview: plain,
1162
+ onChoose: onRemove
1163
+ }];
1164
+ }
1165
+ function highlightOptions(context, onApply, onRemove) {
1166
+ return [...inlineTextHighlightTones.map((tone) => ({
1167
+ key: tone,
1168
+ name: HIGHLIGHT_NAMES[tone],
1169
+ preview: buildHighlightTonePreview(tone, context),
1170
+ onChoose: () => onApply(tone)
1171
+ })), {
1172
+ key: "plain",
1173
+ name: "No highlight",
1174
+ preview: buildPlainTonePreview(context),
1175
+ onChoose: onRemove
1176
+ }];
1177
+ }
1178
+ function ToneMenu({ label, options, words, placement }) {
1179
+ return /* @__PURE__ */ jsx("div", {
1180
+ role: "menu",
1181
+ "aria-label": label,
1182
+ className: cn$2("grid gap-0.5 border-current/15", placement === "above" ? "mb-1 border-b pb-1" : "mt-1 border-t pt-1"),
1183
+ children: options.map((option) => /* @__PURE__ */ jsxs(Button, {
1184
+ type: "button",
1185
+ role: "menuitem",
1186
+ variant: "ghost",
1187
+ "aria-label": option.name,
1188
+ className: "h-auto w-full justify-start gap-3 px-1.5 py-1",
1189
+ onClick: option.onChoose,
1190
+ children: [/* @__PURE__ */ jsx(TonePreview, {
1191
+ preview: option.preview,
1192
+ words
1193
+ }), /* @__PURE__ */ jsx("span", {
1194
+ className: "shrink-0",
1195
+ children: option.name
1196
+ })]
1197
+ }, option.key))
1198
+ });
1199
+ }
1200
+ /** The selected words as they'd look in this colour, on the ground they sit on. */
1201
+ function TonePreview({ preview, words }) {
1202
1202
  return /* @__PURE__ */ jsx("span", {
1203
- className: "rb-inline-text-toolbar-preview",
1204
- "data-low-contrast": preview.lowContrast ? "true" : void 0,
1203
+ "aria-hidden": "true",
1204
+ className: cn$2("flex min-h-7 min-w-0 max-w-[12rem] items-center overflow-hidden rounded-sm px-2 py-0.5", preview.lowContrast && "ring-1 ring-inverse-foreground/50"),
1205
1205
  style: preview.surfaceStyle,
1206
1206
  children: /* @__PURE__ */ jsx("span", {
1207
- className: "rb-inline-text-toolbar-preview-text",
1207
+ className: "truncate",
1208
1208
  style: preview.textStyle,
1209
- children: selectedText
1209
+ children: words
1210
1210
  })
1211
1211
  });
1212
1212
  }
1213
- function ToneMenu({ label, children }) {
1214
- return /* @__PURE__ */ jsx("div", {
1215
- className: "rb-inline-text-toolbar-menu",
1216
- role: "menu",
1217
- "aria-label": label,
1218
- children
1219
- });
1213
+ const EDGE = 12;
1214
+ const GAP = 8;
1215
+ const FIRST_GUESS = {
1216
+ width: 180,
1217
+ height: 50
1218
+ };
1219
+ /** The toolbar's drawn size, read again whenever its contents change, so it can be kept on screen. */
1220
+ function useMeasuredSize(ref, contentKey) {
1221
+ const [size, setSize] = useState(FIRST_GUESS);
1222
+ useLayoutEffect(() => {
1223
+ const box = ref.current?.getBoundingClientRect();
1224
+ if (!box || box.width === 0) return;
1225
+ if (Math.abs(box.width - size.width) > .5 || Math.abs(box.height - size.height) > .5) setSize({
1226
+ width: box.width,
1227
+ height: box.height
1228
+ });
1229
+ }, [
1230
+ ref,
1231
+ contentKey,
1232
+ size
1233
+ ]);
1234
+ return size;
1220
1235
  }
1221
- function toolbarPlacement(rect, hasOpenMenu) {
1222
- const toolbarWidth = hasOpenMenu ? 340 : 188;
1223
- const left = Math.min(Math.max(12, rect.left + rect.width / 2 - toolbarWidth / 2), Math.max(12, window.innerWidth - toolbarWidth - 12));
1224
- const aboveTop = rect.top - 48;
1225
- if (aboveTop < 12) return {
1236
+ /** Above the words when the bar and any open menu fit there, otherwise below. */
1237
+ function toolbarPlacement(rect, size) {
1238
+ const left = Math.min(Math.max(EDGE, rect.left + rect.width / 2 - size.width / 2), Math.max(EDGE, window.innerWidth - size.width - EDGE));
1239
+ if (rect.top - GAP - size.height < EDGE) return {
1226
1240
  placement: "below",
1227
1241
  style: {
1228
1242
  left,
1229
- top: rect.bottom + 10,
1230
- width: toolbarWidth
1243
+ top: rect.bottom + GAP
1231
1244
  }
1232
1245
  };
1233
1246
  return {
1234
1247
  placement: "above",
1235
1248
  style: {
1236
1249
  left,
1237
- top: aboveTop,
1238
- width: toolbarWidth
1250
+ top: rect.top - GAP,
1251
+ transform: "translateY(-100%)"
1239
1252
  }
1240
1253
  };
1241
1254
  }
@@ -1249,7 +1262,7 @@ function InlineTextEditorStyles() {
1249
1262
 
1250
1263
  [data-rb-inline-text-editor]:hover,
1251
1264
  [data-rb-inline-text-editor]:focus-visible {
1252
- outline: 1px dashed rgba(148, 163, 184, 0.76);
1265
+ outline: 1px dashed rgb(14, 165, 233);
1253
1266
  outline-offset: 2px;
1254
1267
  }
1255
1268
 
@@ -1264,102 +1277,6 @@ function InlineTextEditorStyles() {
1264
1277
  letter-spacing: inherit;
1265
1278
  text-transform: inherit;
1266
1279
  }
1267
-
1268
- .rb-inline-text-toolbar {
1269
- align-items: center;
1270
- background: rgba(15, 23, 42, 0.94);
1271
- border: 1px solid rgba(255, 255, 255, 0.14);
1272
- border-radius: 8px;
1273
- box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
1274
- color: white;
1275
- display: flex;
1276
- gap: 3px;
1277
- justify-content: center;
1278
- padding: 5px;
1279
- position: fixed;
1280
- z-index: 80;
1281
- }
1282
-
1283
- .rb-inline-text-toolbar[data-tone="light"] {
1284
- background: rgba(255, 255, 255, 0.98);
1285
- border-color: rgba(15, 23, 42, 0.14);
1286
- color: rgb(15, 23, 42);
1287
- }
1288
-
1289
- .rb-inline-text-toolbar > button,
1290
- .rb-inline-text-toolbar-menu > button {
1291
- align-items: center;
1292
- background: transparent;
1293
- border: 0;
1294
- border-radius: 6px;
1295
- color: inherit;
1296
- cursor: pointer;
1297
- display: inline-flex;
1298
- font: inherit;
1299
- justify-content: center;
1300
- min-height: 30px;
1301
- min-width: 30px;
1302
- padding: 5px 7px;
1303
- }
1304
-
1305
- .rb-inline-text-toolbar > button:hover,
1306
- .rb-inline-text-toolbar > button[data-open="true"],
1307
- .rb-inline-text-toolbar-menu > button:hover {
1308
- background: rgba(148, 163, 184, 0.22);
1309
- }
1310
-
1311
- .rb-inline-text-toolbar-menu {
1312
- background: inherit;
1313
- border: inherit;
1314
- border-radius: 8px;
1315
- box-shadow: inherit;
1316
- display: grid;
1317
- gap: 2px;
1318
- left: 0;
1319
- min-width: 100%;
1320
- padding: 5px;
1321
- position: absolute;
1322
- top: calc(100% + 6px);
1323
- }
1324
-
1325
- .rb-inline-text-toolbar[data-placement="below"] .rb-inline-text-toolbar-menu {
1326
- bottom: calc(100% + 6px);
1327
- top: auto;
1328
- }
1329
-
1330
- .rb-inline-text-toolbar-menu > button {
1331
- justify-content: flex-start;
1332
- width: 100%;
1333
- overflow: hidden;
1334
- text-align: left;
1335
- white-space: nowrap;
1336
- }
1337
-
1338
- .rb-inline-text-toolbar-preview {
1339
- align-items: center;
1340
- border: 1px solid rgba(148, 163, 184, 0.32);
1341
- border-radius: 5px;
1342
- display: inline-flex;
1343
- max-width: 100%;
1344
- width: 100%;
1345
- min-height: 28px;
1346
- overflow: hidden;
1347
- padding: 3px 7px;
1348
- }
1349
-
1350
- .rb-inline-text-toolbar-preview[data-low-contrast="true"] {
1351
- box-shadow:
1352
- inset 0 0 0 1px rgba(255, 255, 255, 0.52),
1353
- 0 0 0 1px rgba(15, 23, 42, 0.26);
1354
- }
1355
-
1356
- .rb-inline-text-toolbar-preview-text {
1357
- display: inline;
1358
- max-width: 100%;
1359
- overflow: hidden;
1360
- text-overflow: ellipsis;
1361
- white-space: nowrap;
1362
- }
1363
1280
  ` });
1364
1281
  }
1365
1282
  //#endregion
@@ -1598,7 +1515,6 @@ function InlineTextEditor({ value, onChange, as: Comp = "span", id, className, s
1598
1515
  ownerId,
1599
1516
  selection,
1600
1517
  selectedText: plainText.slice(selection.start, selection.end),
1601
- tone: toolbarTone,
1602
1518
  presentationContext,
1603
1519
  openMenu,
1604
1520
  setOpenMenu,
@@ -22205,7 +22121,7 @@ function RichTextToolbar({ editor, buttons, onPickImage, linkItems, onRequestLin
22205
22121
  "data-rb-document-toolbar": richTextDocumentOwner(editor),
22206
22122
  onMouseEnter: () => setIsHovered(true),
22207
22123
  onMouseLeave: () => setIsHovered(false),
22208
- className: cn$1("flex w-full items-center overflow-x-auto px-2.5 py-1.5 text-sm", tone === "light" ? "bg-transparent text-foreground" : "bg-slate-900 text-slate-50 border-b border-white/10"),
22124
+ className: cn$1("flex w-full flex-wrap items-center gap-y-1 px-2.5 py-1.5 text-sm", tone === "light" ? "bg-transparent text-foreground" : "bg-slate-900 text-slate-50 border-b border-white/10"),
22209
22125
  children: /* @__PURE__ */ jsx(TooltipProvider, {
22210
22126
  delayDuration: 200,
22211
22127
  children: buttons.map(renderButton)
@@ -30448,11 +30364,6 @@ function useRichTextImageProjection(fallbackSiteId) {
30448
30364
  function useSiteColourVariables() {
30449
30365
  return usePreviewCompiledThemeOptional()?.colourVariables ?? null;
30450
30366
  }
30451
- /** A token's colour as CSS: the site's value when known, otherwise the variable in scope. */
30452
- function siteColourCss(variables, token) {
30453
- const channels = variables?.[`--tb-${token}`];
30454
- return channels ? `rgb(${channels})` : `rgb(var(--tb-${token}))`;
30455
- }
30456
30367
  //#endregion
30457
30368
  //#region ../preview-next/src/client/blocks/BlockBackgroundChooser.tsx
30458
30369
  function BackgroundChooser({ editingSlot, capability, current, imagePoolStatus, onChoose }) {
@@ -30538,7 +30449,7 @@ function GradientPresetCard({ gradientId, selected, onClick }) {
30538
30449
  type: "button",
30539
30450
  "aria-label": `Choose ${preset.name}, ${kindLabel}`,
30540
30451
  "aria-pressed": selected,
30541
- className: `overflow-hidden rounded-md border text-left text-xs transition hover:border-muted-foreground ${selected ? "border-foreground ring-1 ring-foreground" : "bg-background"}`,
30452
+ className: cn$2("overflow-hidden rounded-md border text-left text-xs transition hover:border-muted-foreground", selected ? CHOSEN_OPTION_CLASS : "bg-background"),
30542
30453
  onClick,
30543
30454
  children: [/* @__PURE__ */ jsx("span", {
30544
30455
  "aria-hidden": "true",
@@ -30640,7 +30551,7 @@ function MediaLibraryButton({ onOpen }) {
30640
30551
  function ImagePoolButton({ item, selected, thumbnailUrl, onClick }) {
30641
30552
  return /* @__PURE__ */ jsx("button", {
30642
30553
  type: "button",
30643
- className: `w-full rounded-md border px-2 py-1 text-left text-xs hover:bg-muted ${selected ? "border-foreground" : "bg-background"}`,
30554
+ className: cn$2("w-full rounded-md border px-2 py-1 text-left text-xs hover:bg-muted", selected ? CHOSEN_OPTION_CLASS : "bg-background"),
30644
30555
  onClick,
30645
30556
  children: /* @__PURE__ */ jsxs("span", {
30646
30557
  className: "flex min-w-0 items-center gap-2",
@@ -31196,4 +31107,394 @@ function arrangementLookNote(look, styleName) {
31196
31107
  }
31197
31108
  }
31198
31109
  //#endregion
31199
- export { EditorCanvasNameChip as A, useRichTextEditor as C, decideDocumentReplacement as D, InlineTextEditor as E, ScrollableDialogContent as F, ScrollableDialogShell as I, emitMediaCropDebug as L, EditorSelectionFrame as M, Switch as N, resolveSdkFooterMode as O, Badge as P, resolveVideoSelectionIntentForMediaField as R, insertOrReplaceRichTextImage as S, parseRichTextDoc as T, MediaEditor as _, LookCyclePill as a, RichTextEditorSurface as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, getUnresolvedRichTextImageWarnings as g, useRichTextImageProjection as h, ArrangementOptionsBody as i, EditorInsertionMarker as j, EditorCanvasChipRow as k, BackgroundPreviewSwatch as l, useSiteColourVariables as m, ArrangementLookPill as n, lookIsAutomatic as o, siteColourCss as p, ArrangementModeSwitchPill as r, useArrangementToolbar as s, ArrangementLookNote as t, formatTokenLabel as u, MediaPickerMiniDialog as v, EMPTY_DOC as w, getRichTextImagePositionFromTarget as x, MediaPickerMini as y, isSvgMimeType as z };
31110
+ //#region ../preview-next/src/client/blocks/useBlockSelection.ts
31111
+ const PHONE_VIEWPORT_QUERY = "(max-width: 639px)";
31112
+ /**
31113
+ * Click to select: a click anywhere in the block selects it, so its controls
31114
+ * stay put instead of only showing on hover. A click on an empty placeholder
31115
+ * also opens the side panel on the field that fills it.
31116
+ *
31117
+ * A page section on a full event page is selected the same way, but its
31118
+ * template places it, so it's selected as a page section rather than as one
31119
+ * of the editor's own blocks.
31120
+ */
31121
+ function useBlockSelection(input) {
31122
+ const probeRef = useRef(null);
31123
+ const selection = usePreviewSidebarNavigation();
31124
+ const selectBlock = input.kind === "pageSection" ? selection.selectPageSection : selection.selectBlock;
31125
+ const onOpenFieldRef = useRef(input.onOpenField);
31126
+ onOpenFieldRef.current = input.onOpenField;
31127
+ const phone = useMediaQuery(PHONE_VIEWPORT_QUERY);
31128
+ const [blockElement, setBlockElement] = useState(null);
31129
+ useEffect(() => {
31130
+ const block = probeRef.current?.closest("[data-block-id]") ?? null;
31131
+ setBlockElement(block);
31132
+ if (!block || !selectBlock) return;
31133
+ const handleClick = (event) => {
31134
+ selectBlock(input.blockId);
31135
+ const fieldPath = (event.target instanceof Element ? event.target.closest("[data-placeholder-field]") : null)?.dataset.placeholderField;
31136
+ if (fieldPath) onOpenFieldRef.current(fieldPath);
31137
+ };
31138
+ block.addEventListener("click", handleClick);
31139
+ return () => block.removeEventListener("click", handleClick);
31140
+ }, [input.blockId, selectBlock]);
31141
+ const selectedId = selectedCanvasBlockId(selection.navigation);
31142
+ return {
31143
+ probeRef,
31144
+ selected: selectedId === input.blockId,
31145
+ blockElement,
31146
+ selectedElsewhere: selectedId !== null && selectedId !== input.blockId,
31147
+ phone
31148
+ };
31149
+ }
31150
+ function useMediaQuery(query) {
31151
+ const [matches, setMatches] = useState(false);
31152
+ useEffect(() => {
31153
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
31154
+ const list = window.matchMedia(query);
31155
+ const update = () => setMatches(list.matches);
31156
+ update();
31157
+ list.addEventListener("change", update);
31158
+ return () => list.removeEventListener("change", update);
31159
+ }, [query]);
31160
+ return matches;
31161
+ }
31162
+ //#endregion
31163
+ //#region ../preview-next/src/client/blocks/BlockReadinessNote.tsx
31164
+ /**
31165
+ * The canvas note on a block that isn't set up yet: only editors see it, and
31166
+ * it sits inside the block so it moves with it.
31167
+ */
31168
+ function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
31169
+ if (!needs || !element) return null;
31170
+ return createPortal(/* @__PURE__ */ jsx("div", {
31171
+ className: "builder-dashboard-chrome-theme absolute left-4 top-4 z-20 max-w-[22rem] overflow-hidden rounded-md text-left font-sans shadow-md",
31172
+ children: /* @__PURE__ */ jsxs(Callout, {
31173
+ tone: "warning",
31174
+ role: "note",
31175
+ "aria-label": `${blockName}: ${NEEDS_SETUP_LABEL}`,
31176
+ "data-preview-readiness-note": "",
31177
+ className: "flex gap-2.5 p-3 leading-snug",
31178
+ children: [/* @__PURE__ */ jsx(TriangleAlert, {
31179
+ className: "mt-0.5 size-4 shrink-0 text-warning",
31180
+ "aria-hidden": "true"
31181
+ }), /* @__PURE__ */ jsxs("div", {
31182
+ className: "min-w-0 space-y-1.5 text-sm",
31183
+ children: [
31184
+ /* @__PURE__ */ jsxs("p", {
31185
+ className: "font-semibold",
31186
+ children: [
31187
+ blockName,
31188
+ " ",
31189
+ /* @__PURE__ */ jsxs("span", {
31190
+ className: "font-normal text-muted-foreground",
31191
+ children: ["· ", NEEDS_SETUP_LABEL]
31192
+ })
31193
+ ]
31194
+ }),
31195
+ /* @__PURE__ */ jsx("p", { children: needsSetupMessage(needs) }),
31196
+ /* @__PURE__ */ jsx("p", {
31197
+ className: "text-xs text-muted-foreground",
31198
+ children: "You're seeing this because you're editing."
31199
+ }),
31200
+ /* @__PURE__ */ jsx(Button, {
31201
+ type: "button",
31202
+ size: "sm",
31203
+ onClick: onSetUp,
31204
+ children: "Set this up"
31205
+ })
31206
+ ]
31207
+ })]
31208
+ })
31209
+ }), element);
31210
+ }
31211
+ //#endregion
31212
+ //#region ../preview-next/src/client/blocks/insertionEdge.ts
31213
+ /**
31214
+ * A new block at `position` goes above the block now at that index; one at the
31215
+ * end goes below the last block. Every other block shows nothing.
31216
+ */
31217
+ function insertionEdgeFor(input) {
31218
+ const { index, count, position } = input;
31219
+ if (position === null || index < 0) return null;
31220
+ if (position === index) return "top";
31221
+ return position >= count && index === count - 1 ? "bottom" : null;
31222
+ }
31223
+ //#endregion
31224
+ //#region ../preview-next/src/client/blocks/InsertionMarker.tsx
31225
+ /**
31226
+ * The edge this block shows the marker on, if the sidebar is adding a block
31227
+ * next to it in the collection that's mounted. Each block subscribes for
31228
+ * itself, so moving the marker only re-renders the blocks it moves between.
31229
+ */
31230
+ function useInsertionEdge(blockId) {
31231
+ return useEditorUiStore((state) => {
31232
+ const view = state.sidebarNavigation.view;
31233
+ if (view.kind !== "addBlock" && view.kind !== "chooseLook") return null;
31234
+ if (!authoredValuesEqual(view.anchor.owner, state.structure.getOwner())) return null;
31235
+ const blocks = state.structure.getList();
31236
+ return insertionEdgeFor({
31237
+ index: blocks.findIndex((block) => String(block.id) === blockId),
31238
+ count: blocks.length,
31239
+ position: view.anchor.position
31240
+ });
31241
+ });
31242
+ }
31243
+ /**
31244
+ * While the sidebar is adding a block, the canvas shows where it'll go: a
31245
+ * line on the edge of the block it goes next to, brought into view.
31246
+ */
31247
+ function InsertionMarker({ blockId, element }) {
31248
+ const edge = useInsertionEdge(blockId);
31249
+ const ref = useRef(null);
31250
+ useEffect(() => {
31251
+ const marker = ref.current;
31252
+ if (edge && marker) return revealWhenShown(marker);
31253
+ }, [edge, element]);
31254
+ if (!edge || !element) return null;
31255
+ return createPortal(/* @__PURE__ */ jsx(EditorInsertionMarker, {
31256
+ ref,
31257
+ edge
31258
+ }), element);
31259
+ }
31260
+ /**
31261
+ * Scrolls the marker into view once it can be seen. On phones the canvas is a
31262
+ * hidden tab while the sidebar adds a block, so this waits for that tab.
31263
+ */
31264
+ function revealWhenShown(marker) {
31265
+ const reveal = () => marker.scrollIntoView({
31266
+ block: "center",
31267
+ behavior: "smooth"
31268
+ });
31269
+ if (typeof ResizeObserver === "undefined") {
31270
+ reveal();
31271
+ return () => {};
31272
+ }
31273
+ const observer = new ResizeObserver(() => {
31274
+ if (marker.getClientRects().length === 0) return;
31275
+ reveal();
31276
+ observer.disconnect();
31277
+ });
31278
+ observer.observe(marker);
31279
+ return () => observer.disconnect();
31280
+ }
31281
+ //#endregion
31282
+ //#region ../preview-next/src/client/blocks/BlockToolbar.tsx
31283
+ function BlockToolbar(input) {
31284
+ const { selection, controls, toolbar, open, openField, cycleSdk, cycleRecipe } = useBlockToolbar(input);
31285
+ const needs = useBlockNeedsSetup(input.blockId);
31286
+ const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
31287
+ const row = /* @__PURE__ */ jsxs(EditorCanvasChipRow, {
31288
+ label: `${name} controls`,
31289
+ children: [
31290
+ /* @__PURE__ */ jsx(EditorCanvasNameChip, {
31291
+ name,
31292
+ onOpen: open
31293
+ }),
31294
+ toolbar?.controls.mode ? /* @__PURE__ */ jsx(ArrangementModeSwitchPill, {
31295
+ blockLabel: name,
31296
+ mode: toolbar.controls.mode,
31297
+ onChoose: toolbar.chooseMode
31298
+ }) : null,
31299
+ /* @__PURE__ */ jsx(ToolbarLook, {
31300
+ controls,
31301
+ toolbar,
31302
+ onCycleSdk: cycleSdk,
31303
+ onCycleRecipe: cycleRecipe
31304
+ })
31305
+ ]
31306
+ });
31307
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
31308
+ /* @__PURE__ */ jsx("span", {
31309
+ ref: selection.probeRef,
31310
+ "aria-hidden": "true"
31311
+ }),
31312
+ /* @__PURE__ */ jsx(BlockSelectionFrame, {
31313
+ selected: selection.selected,
31314
+ element: selection.blockElement
31315
+ }),
31316
+ /* @__PURE__ */ jsx(BlockReadinessNote, {
31317
+ needs,
31318
+ element: selection.blockElement,
31319
+ blockName: name,
31320
+ onSetUp: () => needs?.repair.kind === "field" ? openField(needs.repair.path) : open()
31321
+ }),
31322
+ /* @__PURE__ */ jsx(InsertionMarker, {
31323
+ blockId: input.blockId,
31324
+ element: selection.blockElement
31325
+ }),
31326
+ /* @__PURE__ */ jsx(ToolbarPlacement, {
31327
+ blockId: input.blockId,
31328
+ placement: currentBlockToolbarPlacement,
31329
+ selected: selection.selected,
31330
+ phone: selection.phone,
31331
+ children: row
31332
+ })
31333
+ ] });
31334
+ }
31335
+ /** A separate frame preserves the site's own borders, shadows and outlines. */
31336
+ function BlockSelectionFrame({ selected, element }) {
31337
+ return selected && element ? createPortal(/* @__PURE__ */ jsx(EditorSelectionFrame, {}), element) : null;
31338
+ }
31339
+ function useBlockToolbar(input) {
31340
+ const uiStore = useEditorUiStoreInstance();
31341
+ const editorBlockId = useMemo(() => unsafeAsEditorBlockId(input.blockId), [input.blockId]);
31342
+ const values = useEditorUiStore((state) => state.drafts.getCurrentValues(editorBlockId)) ?? input.content;
31343
+ const opener = useOpenBlockForSetup();
31344
+ const open = () => opener.open(editorBlockId);
31345
+ const openField = (fieldPath) => opener.openField(editorBlockId, fieldPath);
31346
+ const selection = useBlockSelection({
31347
+ blockId: editorBlockId,
31348
+ onOpenField: openField
31349
+ });
31350
+ const controls = useBlockCustomizeControls({
31351
+ blockId: editorBlockId,
31352
+ blockKind: input.blockKind,
31353
+ content: values,
31354
+ uiStore,
31355
+ theme: input.theme
31356
+ });
31357
+ const { state, applyAction } = usePreviewPageDesignEditorState();
31358
+ const toolbar = useArrangementToolbar({
31359
+ designBlock: controls.designBlock,
31360
+ content: values,
31361
+ pageDesignState: state,
31362
+ selected: selection.selected,
31363
+ save: (action) => {
31364
+ applyAction(action, { runtimeContent: values });
31365
+ },
31366
+ chooseBackground: open,
31367
+ openField
31368
+ });
31369
+ const cycleSdk = (direction) => cycleSdkLook(controls, direction);
31370
+ const cycleRecipe = (direction) => {
31371
+ if (!controls.designBlock) return;
31372
+ const action = cyclePageDesignBlockLook(controls.designBlock, direction);
31373
+ if (action) applyAction(action, { runtimeContent: values });
31374
+ };
31375
+ return {
31376
+ selection,
31377
+ controls,
31378
+ toolbar,
31379
+ open,
31380
+ openField,
31381
+ cycleSdk,
31382
+ cycleRecipe
31383
+ };
31384
+ }
31385
+ function cycleSdkLook(controls, direction) {
31386
+ const item = controls.lookSource.kind === "sdk" ? controls.lookSource.item : null;
31387
+ if (item?.field.type !== "select" || !controls.backend) return;
31388
+ const options = item.field.options;
31389
+ const current = options.findIndex((option) => option.value === (controls.backend?.getValue(item.path) ?? item.field.defaultValue));
31390
+ const next = options[(Math.max(0, current) + (direction === "next" ? 1 : options.length - 1)) % options.length];
31391
+ if (next) controls.backend.setValue(item.path, next.value);
31392
+ }
31393
+ /** The Look pill shows only while its arrows have somewhere to go. */
31394
+ function ToolbarLook({ controls, toolbar, onCycleSdk, onCycleRecipe }) {
31395
+ if (controls.lookSource.kind === "sdk") {
31396
+ const field = cyclableSdkLookField(controls.lookSource.item);
31397
+ return field && controls.lookSource.item ? /* @__PURE__ */ jsx(SdkToolbarLook, {
31398
+ field,
31399
+ value: controls.backend?.getValue(controls.lookSource.item.path),
31400
+ onCycle: onCycleSdk
31401
+ }) : null;
31402
+ }
31403
+ if (toolbar?.controls.look) return toolbar.controls.tiles.length > 1 ? /* @__PURE__ */ jsx(ArrangementLookPill, {
31404
+ look: toolbar.controls.look,
31405
+ position: lookTilePosition(toolbar.controls.tiles),
31406
+ onCycle: toolbar.cycleLook
31407
+ }) : null;
31408
+ if (!controls.designBlock) return null;
31409
+ const preset = pageDesignLookPosition(controls.designBlock);
31410
+ return preset.canCycle ? /* @__PURE__ */ jsx(LookCyclePill, {
31411
+ lookName: preset.lookName,
31412
+ position: preset.position,
31413
+ onCycle: onCycleRecipe
31414
+ }) : null;
31415
+ }
31416
+ function cyclableSdkLookField(item) {
31417
+ return item?.field.type === "select" && item.field.options.length > 1 ? item.field : null;
31418
+ }
31419
+ function ToolbarPlacement({ blockId, placement, selected, phone, children }) {
31420
+ if (phone && selected && typeof document !== "undefined") return createPortal(/* @__PURE__ */ jsx("div", {
31421
+ "data-preview-block-dock": "",
31422
+ className: "builder-dashboard-chrome-theme fixed inset-x-2 bottom-[calc(var(--builder-editor-chrome-offset,0px)+0.5rem)] rounded-xl border bg-background/95 p-2 text-foreground shadow-xl [body:has([data-state=inactive]_[data-preview-scroll-viewport])_&]:hidden",
31423
+ style: {
31424
+ ...readThemeCustomProperties(document.querySelector(`[data-block-id="${blockId}"]`) ?? document.documentElement),
31425
+ zIndex: 30
31426
+ },
31427
+ children
31428
+ }), document.body);
31429
+ return /* @__PURE__ */ jsx(PreviewChromeFloatingControl, {
31430
+ anchorSelector: `[data-block-id="${blockId}"]`,
31431
+ placement,
31432
+ selected,
31433
+ stayInsideAnchor: true,
31434
+ fallbackClassName: "absolute right-4 top-2",
31435
+ children
31436
+ });
31437
+ }
31438
+ /** The floating chrome owner reads geometry; content rendering never subscribes to it. */
31439
+ function currentBlockToolbarPlacement() {
31440
+ return planBlockToolbarPlacement({ headerClearance: measureSiteTopChromeClearance() });
31441
+ }
31442
+ function SdkToolbarLook({ field, value, onCycle }) {
31443
+ const index = field.options.findIndex((option) => option.value === (value ?? field.defaultValue));
31444
+ return /* @__PURE__ */ jsx(LookCyclePill, {
31445
+ lookName: field.options[index]?.label ?? "Choose a Look",
31446
+ position: lookPositionLabel(index, field.options.length),
31447
+ onCycle
31448
+ });
31449
+ }
31450
+ //#endregion
31451
+ //#region ../preview-next/src/client/blocks/PageSectionToolbar.tsx
31452
+ const PAGE_SECTION_BLOCK_PREFIX = "page-section-";
31453
+ /** The section a page-section block shows, from the id full event pages give it; null for any other block. */
31454
+ function pageSectionIdFromBlockId(blockId) {
31455
+ return blockId.startsWith(PAGE_SECTION_BLOCK_PREFIX) ? blockId.slice(13) || null : null;
31456
+ }
31457
+ /** The heading a section block shows, which is the section's name. */
31458
+ function sectionName(content) {
31459
+ return (typeof content.title === "string" ? content.title : typeof content.heading === "string" ? content.heading : "").trim() || "Page section";
31460
+ }
31461
+ /**
31462
+ * A page section on a full event page (#1703 B4b). It can be selected, and
31463
+ * its chip opens the section's look in the sidebar. Nothing else here: the
31464
+ * section is moved, removed and filled in from the dashboard.
31465
+ */
31466
+ function PageSectionToolbar({ blockId, content }) {
31467
+ const editorBlockId = unsafeAsEditorBlockId(blockId);
31468
+ const { openPageSection } = usePreviewSidebarNavigation();
31469
+ const selection = useBlockSelection({
31470
+ blockId: editorBlockId,
31471
+ onOpenField: () => void 0,
31472
+ kind: "pageSection"
31473
+ });
31474
+ const name = sectionName(content);
31475
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
31476
+ /* @__PURE__ */ jsx("span", {
31477
+ ref: selection.probeRef,
31478
+ "aria-hidden": "true"
31479
+ }),
31480
+ /* @__PURE__ */ jsx(BlockSelectionFrame, {
31481
+ selected: selection.selected,
31482
+ element: selection.blockElement
31483
+ }),
31484
+ /* @__PURE__ */ jsx(ToolbarPlacement, {
31485
+ blockId,
31486
+ placement: currentBlockToolbarPlacement,
31487
+ selected: selection.selected,
31488
+ phone: selection.phone,
31489
+ children: /* @__PURE__ */ jsx(EditorCanvasChipRow, {
31490
+ label: `${name} controls`,
31491
+ children: /* @__PURE__ */ jsx(EditorCanvasNameChip, {
31492
+ name,
31493
+ onOpen: () => openPageSection(editorBlockId)
31494
+ })
31495
+ })
31496
+ })
31497
+ ] });
31498
+ }
31499
+ //#endregion
31500
+ export { ScrollableDialogContent as A, EMPTY_DOC as C, resolveSdkFooterMode as D, decideDocumentReplacement as E, resolveVideoSelectionIntentForMediaField as F, isSvgMimeType as I, Surface as M, surfaceVariants as N, EditorCanvasChip as O, emitMediaCropDebug as P, useRichTextEditor as S, InlineTextEditor as T, MediaPickerMiniDialog as _, ArrangementOptionsBody as a, getRichTextImagePositionFromTarget as b, BackgroundChooser as c, gradientLabel as d, readBackgroundColorPaletteSnapshot as f, MediaEditor as g, getUnresolvedRichTextImageWarnings as h, ArrangementLookNote as i, ScrollableDialogShell as j, Switch as k, BackgroundPreviewSwatch as l, useRichTextImageProjection as m, pageSectionIdFromBlockId as n, lookIsAutomatic as o, useSiteColourVariables as p, BlockToolbar as r, useArrangementToolbar as s, PageSectionToolbar as t, formatTokenLabel as u, MediaPickerMini as v, parseRichTextDoc as w, insertOrReplaceRichTextImage as x, RichTextEditorSurface as y };