@riverbankcms/sdk 0.183.0 → 0.184.0

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 (222) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  9. package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
  10. package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
  11. package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
  12. package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  13. package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
  14. package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
  54. package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
  55. package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
  56. package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
  57. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
  77. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  78. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
  79. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  80. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
  81. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
  82. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
  83. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
  84. package/dist/client/bookings.mjs +4 -4
  85. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  86. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  87. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  88. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  89. package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
  90. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
  91. package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
  92. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  94. package/dist/client/client.mjs +23 -35
  95. package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
  96. package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
  97. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  99. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
  100. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  101. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  102. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  103. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  104. package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
  105. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
  106. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +7 -7
  108. package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
  109. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
  110. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
  111. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
  112. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  113. package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
  114. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
  115. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
  116. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  117. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  118. package/dist/client/portal/client.mjs +27 -15
  119. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
  120. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  121. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  122. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  123. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  124. package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
  125. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
  126. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
  127. package/dist/client/rendering/client.mjs +28 -27
  128. package/dist/client/rendering/islands.mjs +1 -1
  129. package/dist/client/rendering.mjs +4 -4
  130. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
  131. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  132. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  133. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  134. package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
  135. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
  136. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  137. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
  138. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
  139. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  140. package/dist/client/spam-protection.mjs +1 -1
  141. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
  142. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  143. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
  144. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  145. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
  146. package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
  153. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
  154. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
  155. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
  156. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  157. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
  159. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  162. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
  163. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
  164. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
  165. package/dist/preview-next/container-responsive.css +150 -3
  166. package/dist/preview-next/keepAlive.mjs +1 -1
  167. package/dist/preview-next/middleware.mjs +1 -1
  168. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
  169. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  170. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
  171. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
  172. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
  173. package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
  174. package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
  181. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  182. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  183. package/dist/server/manifest.mjs +2 -2
  184. package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
  185. package/dist/server/navigation.mjs +1 -1
  186. package/dist/server/next.mjs +9 -9
  187. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  188. package/dist/server/page-converter.mjs +17 -4
  189. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
  190. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
  191. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
  192. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  193. package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
  194. package/dist/server/portal.mjs +3 -3
  195. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
  198. package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
  199. package/dist/server/rendering/components/pageShared.mjs +1 -1
  200. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  201. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  202. package/dist/server/rendering/server.mjs +4 -4
  203. package/dist/server/rendering.mjs +9 -9
  204. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  205. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
  206. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  207. package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
  210. package/dist/server/theme-bridge.mjs +5 -4
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
  213. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
  214. package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
  215. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
  216. package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
  217. package/dist/styles/index.css +495 -50
  218. package/package.json +1 -1
  219. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  220. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  221. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  222. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { n as __exportAll } from "./rolldown-runtime-CE6sIgz8.mjs";
3
- import { $c as Anchor, $l as buttonStyleSelectionKey, $n as readSliderFieldUiConfig, $o as concretePaletteFromTheme, $t as BlockApiProvider, $u as parseBrevoListId, A as usePreviewRenderReadiness, Ad as parseUtcIsoDateTimeString, Al as canWriteLinkedEntry, As as isInternalResolvedLinkValue, Au as asAppearancePresetId, Bd as expectParsedBrandedId, Bl as resolveRepeaterGridSpanFieldId, Bn as toEditorBlockItem, Bs as resolveRepeaterGridAcceptedSpans, Bt as reorderBlocks, Bu as mailingListProviderName, Cc as Dialog, Cd as unsafeAsEditorBlockId, Ci as writeEventSelectionChips, Cn as useSidebarView, Co as inlineTextToPlainText, Cs as sectionTransitionFamilyForBoundaryOptionId, Ct as LeaseDiscardedNoticeView, Da as storedShopShow, Dc as DialogOverlay, Dd as formatTime, Di as computeMediaTransformStyle, Dl as useShallow, Ds as appearancePresets, Dt as sendPageCommand, Du as asRecord, Ea as shopSwitchesFor, Ec as DialogDescription, Ed as formatDateTime, El as cn, En as unfinishedBlockCopy, Eu as mediaIdentifierSchema, Fd as parseMediaAssetId, Fs as findFirstAvailableRepeaterGridPlacement, Ft as deleteBlock, Fu as generateUuidV4, G as buildFooterRuntimeViewModel, Gn as initialBlockDraftValues, Gt as updateFooterComposition, Gu as resolveFooterSections, Hi as buildResolveImageUrlContext, Hl as siteOptionSources, Hn as deriveEditorValuePublicationState, Hs as resolveRepeaterGridColumnsForBreakpoint, Ht as withSlotCompositionHash, Hu as normalizeLegacyFooterContentToV1, I as selectedLookTile, Is as flowRepeaterGridItems, It as deleteSlotBlock, Iu as slugify$1, J as resolveFooterEngagementPreview, Ji as inferLegacyOfferingsPreviewGroupOrder, Jl as buttonStyleSelectionParameterValue, Jn as createManifestValidation, Jt as NewsletterFormClient, Ju as planFooterLayout, K as footerLayoutSelection, Kl as unavailableSiteFacts, Kn as createManifestDefaultValues, Kt as footerCreditLine, Ku as setFooterSectionSelected, Lc as usePortalContainer, Ll as isAcceptedRepeaterGridSpan, Lo as DEFAULT_THEME_RESPONSIVE_MODE, Lr as getAtPath, Ls as isRepeaterGridLayoutInvalid, Lt as isSurfaceSlotBlockTarget, Ma as unavailableReadinessFacts, Mc as Root$2, Md as resolveBookingBusinessTimeZone, Mi as resolveMediaSlot, Ml as canEditorWrite, Mo as parseFieldDefinition, Ms as buildRepeaterGridDropTargets, Mt as toRoutableLinkPayload, N as lookTilePosition, Nc as Trigger$1, Nd as resolveBookingTimeZoneId, Ni as resolveMediaSlotContract, No as sanitizeHref, Ns as planRepeaterGridSpanChange, Nt as createBlock, O as usePreviewJoinOutcome, Oc as DialogPortal, Od as parseBookingLocalDate, Oi as resolveImageSourceSetWithContext, Oo as plainTextToInlineText, Ot as missingReceiptError, P as lookTilesFor, Pd as assertNever$1, Po as buildThemeRuntime, Ps as projectRepeaterGridLayout, Pt as createSlotBlock, Pu as authoredValuesEqual, Qc as Portal$1, Qi as planOfferingPreviewCardSelection, Ql as updateButtonStyleSelectionChoice, Qn as readNumberFieldUiConfig, Qo as getHeaderStyle, Rc as ReactRemoveScroll, Rl as resolveRepeaterGridColumnFieldId, Rr as siblingPath$2, Rs as normalizeRepeaterGridSpan, Rt as listEntryPageContentSlots, Ru as assessMailingListTargeting, S as setPageDesignBlockBackground, Sc as overlayScrimClass, Sd as editorBlockCollectionOwnersEqual, Si as toggleEventType, Sl as createSlot, Ss as sectionTransitionFamilies, Ta as shopEditorNote, Tc as DialogContent, Td as formatDate, Tl as useComposedRefs, Tt as reloadPage, Tu as PUBLIC_FILE_FIELD_KINDS, Ul as unknownBlockFacts, Us as resolveBlockTitle, Ut as blocksKeys, Uu as parseFooterCompositionV1, V as usePreviewAuth, Vn as withoutServerVersions, Vs as resolveRepeaterGridBreakpointForWidth, Vt as reorderSlotBlocks, Vu as deriveFooterEditorOverview, Wt as publishContentEntry, X as useFooterAuthoringOptional, Xa as BLOCK_BUTTON_ROLE_OPTIONS, Xi as normalizeOfferingsPreviewGroupOrder, Xl as resolveButtonStyleSelection, Xn as getRepeaterItemDefault, Xt as useImageResolveContextOptional, Xu as DEFAULT_MAILING_LIST_TARGETING, Y as FooterComposerProvider, Yi as isOfferingsPreviewSourceKey, Yl as findButtonStyleRecipe, Yn as getFieldDefault, Yu as parseMailingListPlacementTargeting, Z as useFooterComposerState, Za as isBlockButtonRole, Zc as Presence, Zl as updateButtonStyleHoverPreference, Zn as normalizeFieldForCanonicalValidation, Zo as getHeaderLayout, Zs as OPERATION_ID_HEADER, Zt as FormNodeClient, Zu as mailingListTargetingChoiceIds, _c as DialogDescription$1, _d as valueStatus, _i as EVENT_SELECTION_SCOPE_OPTIONS, _n as resolvePageRouteSlug, _u as getDirectImageUrlForMediaAsset, aa as FEATURE_CARD_GENERATED_ICON_SIZE_PX, ac as isBlockView, ad as parsePublicProfile, ai as getBlockDefinition, al as useId$1, at as parseFooterEngagementDraft, bc as DialogTitle$1, bd as createEditorReorderBlocksCommand, bi as chooseScheduleScope, bn as useEditorUiStore, bs as getGradientPreset, bu as runtimeMediaSchema, ca as parseFeatureCardGeneratedIconSizePx, cl as DismissableLayer, cn as ApiRequestError, cr as planBackgroundTransition, cs as offeredSiteStyles, ct as useEntryEditorController, d as cycleSiteChromeSelectionId, da as toFeatureCardIconSuggestionInputs, dc as CalloutDescription, dl as createCollection, do as getBlockIconSemanticId, dt as useServerRefresh, du as paletteValueKey, ea as resolveOfferingsPreviewGroupOrderEntries, ed as parseMailchimpAudienceId, el as Arrow$1, es as concretePaletteToTheme, et as footerHeaderStatus, fc as CalloutTitle, fl as useControllableState, fo as getGeneratedBlockIconStyleState, fs as findCuratedPalette, ft as useSessionJournal, fu as isRotationDimensionSwap, gc as DialogContent$1, gd as syncStateOf, gl as Primitive, gn as deriveRouteMetadataPresentation, go as parseSiteIconStyleGuideVersionId, gu as resolveMediaTransformForAspect, hc as DialogClose$1, hd as pristineValueSync, hl as composeEventHandlers, hn as routeLifecycleContext, ho as parseGeneratedIconSetId, hu as parseAspectRatioValue, i as usePreviewSidebarNavigation, ia as themeRuntimeScopeProps, ic as isAddingBlockView, id as knownSocialPlatforms, il as useSize, in as getDashboardUrl, ir as imagePoolForOverride, it as footerEngagementEventFields, jc as Content, jd as toUtcIsoDateTimeString, jl as readLinkedEntryLease, jn as lifecycleOutcomeMessage, js as planLayoutGridColumnEdit, jt as footerMenuNavigationFacts, ka as admitReadinessFacts, kc as DialogTitle, kd as parseLocalScheduleTime, ki as resolveImageUrlWithContext, kl as isEdited, ku as isBodyFontFamily, la as resolveFeatureCardGeneratedIconSizePx, lo as isRichTextDoc, lr as rankBackgroundImagePoolItems, ls as palettesForSiteStyle, lt as DONE, mc as Dialog$1, md as knownRevision, mi as buildNewsletterFormInteractiveIslandProps, ml as createContextScope, mo as parseGeneratedIconAssetId, n as usePreviewAssistantSlot, na as buildThemeDataAttrs, nc as extractApiEnvelopeErrorDetails, nd as parseNewsletterListId, nl as Root2$1, nn as pageDocumentDesignBlockSources, nt as footerPartKey, o as usePreviewPageDesignEditorState, oa as createFeatureCardIconKey, od as publicProfileWeekdays, ol as FocusScope, oo as admitLayoutGridForPlan, or as parseBackgroundOverrideFromContent, os as getCuratedSiteStyle, pc as Spinner, pd as displayedValues, po as parseBlockIconValue, ps as buildFontPreviewUrl, pt as useSessionJournalControls, q as resolveFooterEngagementAuthoringState, qc as hideOthers, ql as buttonStyleHoverPreferenceValue, qn as createManifestFormAdapter, qu as unsafeAsFooterModuleId, rc as unwrapResponse, rd as knownSocialPlatformLabels, rl as createPopperScope, rr as enabledBackgroundModes, rs as defaultPolicyPageFlowPresetId, rt as readFooterEngagementDraft, s as usePreviewPageDesignRenderState, sa as getFeatureCardIconCompletion, sc as sidebarReturnView, sd as publishedContactDetails, si as listBlockDescriptors, sl as useFocusGuards, so as deriveFieldValidationPlan, st as useEntryController, td as parseMailchimpInterestId, tl as Content$1, tn as buildPageDesignEditorReadModelForBlocks, tr as canCycleBackgroundOverrideValue, tt as footerEngagementStarted, u as useSiteChromeCustomizeOptional, ua as suggestSemanticIconForFeatureCard, uc as Callout, ul as useDirection, ur as resolveBackgroundCapability, ut as runHeldLifecycle, v as useLiveFooterRuntime, vc as DialogFooter, vd as createEditorInsertBlockCommand, vi as EVENT_SELECTION_TYPE_OPTIONS, vl as Button$1, vn as resolveContentTitle, vo as coerceInlineTextWithFallback, vs as gradientToCss, wa as buildFormInteractiveIslandProps, wc as DialogClose, wd as unsafeAsEditorBlockValues, wn as recoveryConflictCopy, ws as sectionTransitionVariantForBoundaryOptionId, wt as LeaseNoticeButtons, x as pageDesignLookTiles, xc as DialogTrigger, xd as editorBlockCollectionOwnerKey, xi as readEventSelectionChips, xl as cva, xn as useEditorUiStoreInstance, xs as defaultSectionTransitionVariantForFamily, yc as DialogHeader, yd as createEditorRemoveBlockCommand, yi as chooseAllEvents, yl as buttonVariants, yn as planLeaseNotice, ys as GRADIENT_PRESETS, yu as mediaSchema, zd as parseSiteId, zl as resolveRepeaterGridRowFieldId, zr as withValueAtPath, zs as planRepeaterGridStartNewRow, zt as listPageSurfaceContentSlots, zu as resolveMailingListDefaultDestination } from "./previewAssistantSlot-CqH91EwA.mjs";
4
- import { E as Maximize2, H as GripVertical, I as Image, Kt as lowerFirstLetter, L as ImageUp, N as Link2, O as Lock, Q as EllipsisVertical, R as ImagePlus, S as Palette, St as ArrowDown, W as FileText, X as EyeOff, Xt as ok, Yt as err, b as PanelTop, bt as ArrowRight, c as Trash2, ct as CircleAlert, d as SlidersHorizontal, dt as ChevronLeft, et as Crop, f as Settings, ft as ChevronDown, g as RotateCcw, gt as Box$1, i as Video, m as Rows3, mt as Calendar$1, n as X$1, nt as Clock, pt as Check, rt as Clock3, s as TriangleAlert, t as lucide_react_exports, tt as Copy, u as Sparkles, ut as ChevronRight, v as Plus, vt as ArrowUp, x as PanelBottom, xt as ArrowLeft, y as Pencil, yt as ArrowUpRight, z as ImageOff } from "./lucide-react-eAi3tDAr.mjs";
5
- import { $ as FieldFrame, At as FIELD_SURFACE_CLASS, B as useSiteOptionWidgetContext, Bt as classifyKnownMimeType, Ct as usePrevious$1, D as SiteFontFaceStyles, Dt as NativeSelect, Et as FieldTrigger, Ft as TabsTrigger, H as useMediaEditor, It as Content$2, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as List, Mt as Tabs, Nt as TabsContent, Ot as Input, Pt as TabsList, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Root2$2, St as SelectValue, Tt as SearchInput, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as Textarea, at as ThemeScopeCore, bt as SelectItem, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, ht as ChoiceTileGroup, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, k as useRememberSiteFonts, kt as FIELD_FOCUS_WITHIN_CLASS, m as CustomizeBackgroundControlRows, mt as CHOSEN_OPTION_CLASS, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, vt as Select$1, wt as clamp, xt as SelectTrigger, yt as SelectContent, z as SiteOptionWidgetProvider, zt as Trigger$2 } from "./siteStyleAccess-C6eOP6QW.mjs";
6
- import { Z as hexColorSchema, c as isKnownIconName, dt as VARIANT_ROLES, et as paletteColorEntries, i as ThemedButtonSpecimen, it as paletteTokenNameSchema, l as isIconPickerPreset, o as getIconComponent, s as getIconPickerOptionsForPreset, u as resolveIconPickerPreset } from "./ThemedButton-ORNN4x-3.mjs";
7
- import { A as Switch, C as insertOrReplaceRichTextImage, D as InlineTextEditor, F as Surface, I as surfaceVariants, L as emitMediaCropDebug, M as SegmentedControl, N as ScrollableDialogContent, P as ScrollableDialogShell, R as resolveVideoSelectionIntentForMediaField, S as getRichTextImagePositionFromTarget, T as EMPTY_DOC, _ as getUnresolvedRichTextImageWarnings, a as ArrangementOptionsBody, b as MediaPickerMini, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as useRichTextImageProjection, h as arrangementLookNameFor, i as ArrangementLookNote, j as ContentSpinner, k as resolveSdkFooterMode, l as BackgroundPreviewSwatch, m as arrangementBlockControlsFor, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as useSiteColourVariables, s as useArrangementToolbar, u as formatTokenLabel, v as MediaEditor, w as useRichTextEditor, x as RichTextEditorSurface, y as MediaPickerMiniDialog, z as isSvgMimeType } from "./PageSectionToolbar-D8srnz9R.mjs";
3
+ import { $c as Dialog, $d as unsafeAsEditorBlockId, $n as readNumberFieldUiConfig, $s as transitionIntentForTreatment, A as usePreviewSectionPaints, Aa as admitReadinessFacts, Ac as extractApiEnvelopeErrorDetails, Ad as parseMailchimpAudienceId, Al as Arrow$1, Bc as Callout, Bl as useDirection, Bt as listPageSurfaceContentSlots, Bu as expandPalette, Cd as unsafeAsFooterModuleId, Ci as writeEventSelectionChips, Cl as hideOthers, Cu as buttonStyleHoverPreferenceValue, Da as shopSwitchesFor, Dd as mailingListTargetingChoiceIds, Di as computeMediaTransformStyle, Dl as Presence, Dn as unfinishedBlockCopy, Ds as getHeaderStyle, Du as updateButtonStyleHoverPreference, Ea as shopEditorNote, Ed as DEFAULT_MAILING_LIST_TARGETING, Es as getHeaderLayout, Et as reloadPage, Eu as resolveButtonStyleSelection, F as lookTilesFor, Fd as parsePublicProfile, Fl as useId$1, Fo as buildThemeRuntime, Fs as getCuratedSiteStyle, Ft as createSlotBlock, Gc as DialogClose$1, Gd as pristineValueSync, Gl as composeEventHandlers, Go as boundaryBackPaints, Gs as buildFontPreviewUrl, Gt as publishContentEntry, Gu as parseAspectRatioValue, H as usePreviewAuth, Hc as CalloutTitle, Hi as buildResolveImageUrlContext, Hl as useControllableState, Hn as withoutServerVersions, Hs as GRADIENT_PRESETS, Ht as reorderSlotBlocks, Hu as isRotationDimensionSwap, Ic as sidebarBlockTargetForId, Id as publicProfileWeekdays, Il as FocusScope, It as deleteBlock, J as resolveFooterEngagementAuthoringState, Jc as DialogFooter, Jd as createEditorInsertBlockCommand, Ji as inferLegacyOfferingsPreviewGroupOrder, Jl as Button$1, Jn as createManifestFormAdapter, Jo as groundSwatchPaint, K as buildFooterRuntimeViewModel, Kc as DialogContent$1, Kd as syncStateOf, Kl as Primitive, Kn as initialBlockDraftValues, Ko as changedSectionTreatment, Kt as updateFooterComposition, Ku as resolveMediaTransformForAspect, L as selectedLookTile, Lc as sidebarReturnView, Ld as publishedContactDetails, Ll as useFocusGuards, Lr as getAtPath, Ls as offeredSiteStyles, Lt as deleteSlotBlock, Mc as isAddingBlockView, Md as parseNewsletterListId, Mi as resolveMediaSlot, Ml as Root2$1, Mn as lifecycleOutcomeMessage, Ms as defaultPolicyPageFlowPresetId, Mt as footerMenuNavigationFacts, Na as unavailableReadinessFacts, Nc as isBlockView, Nd as knownSocialPlatformLabels, Ni as resolveMediaSlotContract, Nl as createPopperScope, No as parseFieldDefinition, Nt as toRoutableLinkPayload, O as usePreviewJoinOutcome, Oa as storedShopShow, Oi as resolveImageSourceSetWithContext, Ol as Portal$1, Os as concretePaletteFromTheme, Ot as sendPageCommand, Ou as updateButtonStyleSelectionChoice, P as lookTilePosition, Pc as isSidebarDrillInView, Pd as knownSocialPlatforms, Pl as useSize, Po as sanitizeHref, Pt as createBlock, Q as useFooterComposerState, Qa as isBlockButtonRole, Qc as overlayScrimClass, Qd as editorBlockCollectionOwnersEqual, Qi as planOfferingPreviewCardSelection, Ql as createSlot, Qn as normalizeFieldForCanonicalValidation, Qt as FormNodeClient, Rl as DismissableLayer, Rr as siblingPath$2, Rs as palettesForSiteStyle, Rt as isSurfaceSlotBlockTarget, S as setPageDesignBlockBackground, Sd as setFooterSectionSelected, Si as toggleEventType, Sn as useEditorUiStoreInstance, Ss as siteStyleEdges, Su as unavailableSiteFacts, Ta as giftingEditorNote, Tc as OPERATION_ID_HEADER, Td as parseMailingListPlacementTargeting, Tn as recoveryConflictCopy, Tt as LeaseNoticeButtons, Tu as findButtonStyleRecipe, Uc as Spinner, Ud as displayedValues, Un as deriveEditorValuePublicationState, Uo as defaultEdgeTuning, Us as getGradientPreset, Ut as withSlotCompositionHash, Vc as CalloutDescription, Vl as createCollection, Vn as toEditorBlockItem, Vs as gradientToCss, Vt as reorderBlocks, Vu as paletteValueKey, Wc as Dialog$1, Wd as knownRevision, Wl as createContextScope, Wo as edgePath, Ws as findCuratedPalette, Wt as blocksKeys, X as FooterComposerProvider, Xc as DialogTitle$1, Xd as createEditorReorderBlocksCommand, Xi as normalizeOfferingsPreviewGroupOrder, Xn as getFieldDefault, Xu as runtimeMediaSchema, Y as resolveFooterEngagementPreview, Yc as DialogHeader, Yd as createEditorRemoveBlockCommand, Yi as isOfferingsPreviewSourceKey, Yl as buttonVariants, Yn as createManifestValidation, Yo as moreColours, Yt as NewsletterFormClient, Yu as mediaSchema, Z as useFooterAuthoringOptional, Za as BLOCK_BUTTON_ROLE_OPTIONS, Zc as DialogTrigger, Zd as editorBlockCollectionOwnerKey, Zl as cva, Zn as getRepeaterItemDefault, Zo as sectionBackgroundSummary, Zt as useImageResolveContextOptional, _d as deriveFooterEditorOverview, _i as EVENT_SELECTION_SCOPE_OPTIONS, _n as deriveRouteMetadataPresentation, _o as parseSiteIconStyleGuideVersionId, aa as FEATURE_CARD_GENERATED_ICON_SIZE_PX, ac as buildRepeaterGridDropTargets, ad as isBodyFontFamily, af as parseLocalScheduleTime, ai as getBlockDefinition, al as DialogTitle, an as getDashboardUrl, ar as imagePoolForOverride, as as sectionBreakFamilyLabel, at as footerEngagementEventFields, au as isEdited, bi as chooseScheduleScope, bn as planLeaseNotice, ca as parseFeatureCardGeneratedIconSizePx, cc as findFirstAvailableRepeaterGridPlacement, cf as resolveBookingBusinessTimeZone, cl as Root$2, co as deriveFieldValidationPlan, cr as planBackgroundTransition, cs as shownColourPresets, ct as useEntryController, cu as canEditorWrite, d as cycleSiteChromeSelectionId, da as toFeatureCardIconSuggestionInputs, dc as normalizeRepeaterGridSpan, dd as generateUuidV4, df as parseMediaAssetId, dt as runHeldLifecycle, ea as resolveOfferingsPreviewGroupOrderEntries, ec as appearancePresets, ef as unsafeAsEditorBlockValues, el as DialogClose, en as BlockApiProvider, er as readSliderFieldUiConfig, es as sectionTreatmentsUnavailable, fc as planRepeaterGridStartNewRow, fd as slugify$1, fo as getBlockIconSemanticId, ft as useServerRefresh, gc as resolveBlockTitle, gd as mailingListProviderName, gf as expectParsedBrandedId, gn as routeLifecycleContext, go as parseGeneratedIconSetId, gu as resolveRepeaterGridSpanFieldId, hc as resolveRepeaterGridColumnsForBreakpoint, hd as resolveMailingListDefaultDestination, hf as parseSiteId, ho as parseGeneratedIconAssetId, hu as resolveRepeaterGridRowFieldId, i as usePreviewSidebarNavigation, ia as themeRuntimeScopeProps, ic as planLayoutGridColumnEdit, if as parseBookingLocalDate, il as DialogPortal, ir as enabledBackgroundModes, is as changeSectionBreak, it as readFooterEngagementDraft, j as usePreviewSectionTreatmentCheck, jc as unwrapResponse, jd as parseMailchimpInterestId, jl as Content$1, k as usePreviewRenderReadiness, kd as parseBrevoListId, ki as resolveImageUrlWithContext, kl as Anchor, ko as plainTextToInlineText, ks as concretePaletteToTheme, kt as missingReceiptError, ku as buttonStyleSelectionKey, la as resolveFeatureCardGeneratedIconSizePx, lc as flowRepeaterGridItems, lf as resolveBookingTimeZoneId, ll as Trigger$1, ln as ApiRequestError, lr as rankBackgroundImagePoolItems, ls as shownSectionBreak, lt as useEntryEditorController, mc as resolveRepeaterGridBreakpointForWidth, md as assessMailingListTargeting, mi as buildNewsletterFormInteractiveIslandProps, ml as ReactRemoveScroll, mo as parseBlockIconValue, mt as useSessionJournalControls, mu as resolveRepeaterGridColumnFieldId, n as usePreviewAssistantSlot, na as buildThemeDataAttrs, nd as mediaIdentifierSchema, nf as formatDateTime, nl as DialogDescription, nn as buildPageDesignEditorReadModelForBlocks, nr as canCycleBackgroundOverrideValue, ns as toneSetting, nt as footerEngagementStarted, nu as cn, o as usePreviewPageDesignEditorState, oa as createFeatureCardIconKey, oc as planRepeaterGridSpanChange, od as asAppearancePresetId, of as parseUtcIsoDateTimeString, or as parseBackgroundOverrideFromContent, os as sectionBreakName, ot as parseFooterEngagementDraft, ou as canWriteLinkedEntry, pc as resolveRepeaterGridAcceptedSpans, pl as usePortalContainer, po as getGeneratedBlockIconStyleState, pt as useSessionJournal, pu as isAcceptedRepeaterGridSpan, q as footerLayoutSelection, qc as DialogDescription$1, qd as valueStatus, qn as createManifestDefaultValues, qo as groundAccessibleLabel, qt as footerCreditLine, qu as getDirectImageUrlForMediaAsset, rc as isInternalResolvedLinkValue, rd as asRecord, rf as formatTime, rl as DialogOverlay, rn as pageDocumentDesignBlockSources, rs as treatmentMenus, rt as footerPartKey, ru as useShallow, s as usePreviewPageDesignRenderState, sa as getFeatureCardIconCompletion, sc as projectRepeaterGridLayout, sf as toUtcIsoDateTimeString, si as listBlockDescriptors, sl as Content, so as admitLayoutGridForPlan, ss as sectionBreakPickSaves, su as readLinkedEntryLease, td as PUBLIC_FILE_FIELD_KINDS, tf as formatDate, tl as DialogContent, ts as textureSetting, tt as footerHeaderStatus, tu as useComposedRefs, u as useSiteChromeCustomizeOptional, ua as suggestSemanticIconForFeatureCard, uc as isRepeaterGridLayoutInvalid, ud as authoredValuesEqual, uf as assertNever$1, uo as isRichTextDoc, ur as resolveBackgroundCapability, ut as DONE, v as useLiveFooterRuntime, vd as normalizeLegacyFooterContentToV1, vi as EVENT_SELECTION_TYPE_OPTIONS, vn as resolvePageRouteSlug, vu as siteOptionSources, wa as buildFormInteractiveIslandProps, wd as planFooterLayout, wn as useSidebarView, wo as inlineTextToPlainText, wt as LeaseDiscardedNoticeView, wu as buttonStyleSelectionParameterValue, x as pageDesignLookTiles, xd as resolveFooterSections, xi as readEventSelectionChips, xn as useEditorUiStore, yd as parseFooterCompositionV1, yi as chooseAllEvents, yn as resolveContentTitle, yo as coerceInlineTextWithFallback, yu as unknownBlockFacts, zo as DEFAULT_THEME_RESPONSIVE_MODE, zr as withValueAtPath, zt as listEntryPageContentSlots } from "./previewAssistantSlot-DrUoRNu9.mjs";
4
+ import { A as Lock, B as ImagePlus, C as Palette, Ct as ArrowLeft, F as Link2, Jt as lowerFirstLetter, K as FileText, O as Maximize2, Q as EyeOff, Qt as ok, R as Image, S as PanelBottom, St as ArrowRight, V as ImageOff, W as GripVertical, Zt as err, _ as RotateCcw, a as Video, at as Clock3, b as Pencil, bt as ArrowUp, c as TriangleAlert, d as Sparkles, et as EllipsisVertical, f as SlidersHorizontal, ft as ChevronRight, gt as Calendar$1, h as Rows3, ht as Check, i as WavesHorizontal, it as Clock, l as Trash2, mt as ChevronDown, n as X$1, nt as Crop, p as Settings, pt as ChevronLeft, rt as Copy, t as lucide_react_exports, ut as CircleAlert, vt as Box$1, w as PaintBucket, wt as ArrowDown, x as PanelTop, xt as ArrowUpRight, y as Plus, z as ImageUp } from "./lucide-react-B4c6U3ZU.mjs";
5
+ import { $ as FieldFrame, At as Input, B as useSiteOptionWidgetContext, Bt as Root2$2, Ct as SelectTrigger, D as SiteFontFaceStyles, Dt as SearchInput, E as usePreviewCompiledThemeOptional, Et as clamp, Ft as TabsContent, H as useMediaEditor, Ht as classifyKnownMimeType, It as TabsList, J as SelectField, K as BlockContextProvider, L as siteColourCss, Lt as TabsTrigger, Mt as FIELD_SURFACE_CLASS, Ot as FieldTrigger, Pt as Tabs, Q as unmapValueFromSelect, R as locationWidgetOverrides, Rt as Content$2, St as SelectItem, Tt as usePrevious$1, Vt as Trigger$2, X as mapCurrentValueForSelect, Y as hasEmptyOption, Z as mapOptionValueForSelect, _t as RadioGroupItem, at as ThemeScopeCore, bt as Select$1, c as resolvePreviewSidebarChromeModel, d as dashboardLogoSettingsHref, et as FieldLabelText, f as HeaderMenuControls, gt as RadioGroup, ht as ChoiceTileGroup, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, jt as FIELD_FOCUS_WITHIN_CLASS, k as useRememberSiteFonts, kt as NativeSelect, m as CustomizeBackgroundControlRows, mt as CHOSEN_OPTION_CLASS, nt as useField, o as resolvePreviewEditorGuidanceModel, p as isHeaderMenuSurfaceState, q as useBlockContext, r as buildPreviewDashboardSetupUrl, rt as useLinkedInlineTextField, t as canInspectSiteStyle, tt as hintWithCharacterLimit, u as SiteChromeSurfaceControls, wt as SelectValue, xt as SelectContent, yt as Textarea, z as SiteOptionWidgetProvider, zt as List } from "./siteStyleAccess-B3PwHw2z.mjs";
6
+ import { at as hexColorSchema, c as isKnownIconName, ct as paletteColorEntries, ft as paletteTokenNameSchema, i as ThemedButtonSpecimen, l as isIconPickerPreset, mt as parseThemeColorToken, o as getIconComponent, s as getIconPickerOptionsForPreset, u as resolveIconPickerPreset, yt as VARIANT_ROLES } from "./ThemedButton-CRgbU75r.mjs";
7
+ import { A as Switch, B as resolveVideoSelectionIntentForMediaField, C as useRichTextEditor, E as InlineTextEditor, F as EditorNavRow, I as EditorViewHeader, L as Surface, M as SegmentedControl, N as ScrollableDialogContent, O as resolveSdkFooterMode, P as ScrollableDialogShell, R as surfaceVariants, S as insertOrReplaceRichTextImage, V as isSvgMimeType, _ as MediaEditor, a as ArrangementOptionsBody, b as RichTextEditorSurface, c as BackgroundChooser, d as gradientLabel, f as readBackgroundColorPaletteSnapshot, g as getUnresolvedRichTextImageWarnings, h as useRichTextImageProjection, i as ArrangementLookNote, j as ContentSpinner, k as PreviewTileGroup, l as BackgroundPreviewSwatch, m as arrangementLookNameFor, n as pageSectionIdFromBlockId, o as lookIsAutomatic, p as arrangementBlockControlsFor, s as useArrangementToolbar, u as formatTokenLabel, v as MediaPickerMiniDialog, w as EMPTY_DOC, x as getRichTextImagePositionFromTarget, y as MediaPickerMini, z as emitMediaCropDebug } from "./PageSectionToolbar-Dv4CW0AQ.mjs";
8
8
  import { n as TZDate } from "./src-lX6heoDA.mjs";
9
- import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CIdAg-Tm.mjs";
10
- import { a as publicationLabel, n as useEditorWriteState, o as EditorHistoryButtons, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-BhPg4e-r.mjs";
11
- import { $ as hasVisibilityConditions, B as getColumns, C as closeGroupView, D as sameOpenView, E as resolveOpenView, F as revealStepKey, G as shouldHideLabel, H as groupFieldsByRow, I as revealStepsAmong, J as resolvePromotedFields, K as shownTab, L as getRepeaterItemFieldGroups, M as layoutManifestForm, N as manifestFieldSectionOptions, O as visibilityOverrides, P as placedFields, Q as getWidgetKey, R as getRepeaterItemFields, S as useSdkConfig, T as openViewForDestination, U as layoutGroupFields, V as getValidColSpan, W as modalGroupFields, X as evaluateVisibility, Y as collectVisibleWhenWatchPaths, Z as withVisibilityValues, _ as createStoreBackend, _t as DropdownMenuTrigger, at as Tooltip, b as createFieldObservation, ct as TooltipTrigger, d as setupEditingContext, dt as DropdownMenuContent, et as isNonEmptyValue, f as useBlockEditingPlan, ft as DropdownMenuItem, g as useDisplayLabelResolvers, gt as DropdownMenuSeparator, h as useEditorSiteFacts, i as NEEDS_SETUP_LABEL, it as READINESS_REASON_COPY, j as arrangementLookResolution, k as deriveBlockValidationManifest, l as needsSetupOf, lt as Badge, m as EditorSiteFactsProvider, n as resolveBlockManifest, nt as mergeBlockDescriptors, o as blockNoticeLabel, ot as TooltipContent, p as useEditorPlanEnvironment, q as derivedSettingsSummary, r as useBlockCustomizeControls, rt as HIDDEN_REASON_COPY, st as TooltipProvider, tt as getBlockManifestFromSdkConfig, u as useBlockNotice, ut as DropdownMenu, v as isObjectRecord, w as deriveBlockEditingPlan, x as SdkConfigProvider, y as isRecord$1, z as buildChildPath } from "./useOpenBlockForSetup-BaWUF9D7.mjs";
9
+ import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-DuRUwUrK.mjs";
10
+ import { a as publicationLabel, n as useEditorWriteState, o as EditorHistoryButtons, s as Separator, t as useAutosaveStatus } from "./useAutosaveStatus-DrdQ4ier.mjs";
11
+ import { $ as hasVisibilityConditions, B as getColumns, C as closeGroupView, D as sameOpenView, E as resolveOpenView, F as revealStepKey, G as shouldHideLabel, H as groupFieldsByRow, I as revealStepsAmong, J as resolvePromotedFields, K as shownTab, L as getRepeaterItemFieldGroups, M as layoutManifestForm, N as manifestFieldSectionOptions, O as visibilityOverrides, P as placedFields, Q as getWidgetKey, R as getRepeaterItemFields, S as useSdkConfig, T as openViewForDestination, U as layoutGroupFields, V as getValidColSpan, W as modalGroupFields, X as evaluateVisibility, Y as collectVisibleWhenWatchPaths, Z as withVisibilityValues, _ as createStoreBackend, _t as DropdownMenuTrigger, at as Tooltip, b as createFieldObservation, ct as TooltipTrigger, d as setupEditingContext, dt as DropdownMenuContent, et as isNonEmptyValue, f as useBlockEditingPlan, ft as DropdownMenuItem, g as useDisplayLabelResolvers, gt as DropdownMenuSeparator, h as useEditorSiteFacts, i as NEEDS_SETUP_LABEL, it as READINESS_REASON_COPY, j as arrangementLookResolution, k as deriveBlockValidationManifest, l as needsSetupOf, lt as Badge, m as EditorSiteFactsProvider, n as resolveBlockManifest, nt as mergeBlockDescriptors, o as blockNoticeLabel, ot as TooltipContent, p as useEditorPlanEnvironment, q as derivedSettingsSummary, r as useBlockCustomizeControls, rt as HIDDEN_REASON_COPY, st as TooltipProvider, tt as getBlockManifestFromSdkConfig, u as useBlockNotice, ut as DropdownMenu, v as isObjectRecord, w as deriveBlockEditingPlan, x as SdkConfigProvider, y as isRecord$1, z as buildChildPath } from "./useOpenBlockForSetup-kuGRKaRL.mjs";
12
12
  import * as React$1 from "react";
13
13
  import React, { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
14
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -847,7 +847,7 @@ function EditorOutlineInsertPoint({ label, onSelect }) {
847
847
  }
848
848
  //#endregion
849
849
  //#region ../ui/src/tabbed-scrollable-dialog.tsx
850
- function TabbedScrollableDialogContent({ title, tabs, value, onValueChange, description, footer, mobileFullscreen, desktopMaxWidth, desktopHeight, maxWidth, height, disableMotion, showCloseButton, className, headerClassName, bodyClassName, footerClassName, ["aria-describedby"]: ariaDescribedBy, ...props }) {
850
+ function TabbedScrollableDialogContent({ title, tabs, value, onValueChange, description, footer, desktopMaxWidth, desktopHeight, maxWidth, height, disableMotion, showCloseButton, className, headerClassName, bodyClassName, footerClassName, ["aria-describedby"]: ariaDescribedBy, ...props }) {
851
851
  const descriptionId = React$1.useId();
852
852
  return /* @__PURE__ */ jsx(ScrollableDialogShell, {
853
853
  "data-slot": "tabbed-scrollable-dialog-content",
@@ -881,7 +881,6 @@ function TabbedScrollableDialogContent({ title, tabs, value, onValueChange, desc
881
881
  onValueChange: (next) => onValueChange(next),
882
882
  children: content
883
883
  }),
884
- mobileFullscreen,
885
884
  desktopMaxWidth,
886
885
  desktopHeight,
887
886
  maxWidth,
@@ -4923,86 +4922,6 @@ function useAsyncPickerOptions({ enabled, loadOptions, clearOnDisable = true, in
4923
4922
  };
4924
4923
  }
4925
4924
  //#endregion
4926
- //#region ../ui/src/editor-view-header.tsx
4927
- /**
4928
- * The top of every sidebar view: an optional way back, the view's icon and
4929
- * name, a line saying what it is, and the view's own actions.
4930
- */
4931
- function EditorViewHeader({ back, icon, title, subtitle, actions, children, bareIcon = false, wrapTitle = false, backClassName }) {
4932
- return /* @__PURE__ */ jsxs("header", {
4933
- className: "shrink-0 border-b bg-editor-chrome-surface px-4 pb-3 pt-3.5",
4934
- "data-testid": "preview-sidebar-view-header",
4935
- children: [
4936
- back ? /* @__PURE__ */ jsxs("button", {
4937
- type: "button",
4938
- onClick: back.onBack,
4939
- className: `mb-1.5 inline-flex max-w-full items-center gap-1 rounded-md text-[13px] font-medium text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${backClassName ?? ""}`,
4940
- "data-testid": "preview-sidebar-back",
4941
- children: [/* @__PURE__ */ jsx(ChevronLeft, {
4942
- className: "h-3.5 w-3.5 shrink-0",
4943
- "aria-hidden": "true"
4944
- }), /* @__PURE__ */ jsx("span", {
4945
- className: "truncate",
4946
- children: back.label
4947
- })]
4948
- }) : null,
4949
- /* @__PURE__ */ jsxs("div", {
4950
- className: "flex items-start gap-2.5",
4951
- children: [
4952
- /* @__PURE__ */ jsx("span", {
4953
- className: `flex h-[34px] w-[34px] shrink-0 items-center justify-center text-foreground ${bareIcon ? "" : "rounded-[10px] bg-muted [&_svg]:h-4 [&_svg]:w-4"}`,
4954
- "aria-hidden": "true",
4955
- children: icon
4956
- }),
4957
- /* @__PURE__ */ jsxs("div", {
4958
- className: "flex min-h-[34px] min-w-0 flex-1 flex-col justify-center",
4959
- children: [/* @__PURE__ */ jsx("div", {
4960
- role: "heading",
4961
- "aria-level": 2,
4962
- className: `${wrapTitle ? "break-words" : "truncate"} text-base font-bold leading-5 tracking-[-0.005em]`,
4963
- children: title
4964
- }), subtitle ? /* @__PURE__ */ jsx("div", {
4965
- className: "mt-0.5 text-[12.5px] text-muted-foreground",
4966
- children: subtitle
4967
- }) : null]
4968
- }),
4969
- actions ? /* @__PURE__ */ jsx("div", {
4970
- className: "ml-auto flex shrink-0 items-center gap-0.5",
4971
- children: actions
4972
- }) : null
4973
- ]
4974
- }),
4975
- children
4976
- ]
4977
- });
4978
- }
4979
- /** A row on the page view that opens another view, such as Site style or Page settings. */
4980
- function EditorNavRow({ icon, title, description, onSelect, testId }) {
4981
- return /* @__PURE__ */ jsxs("button", {
4982
- type: "button",
4983
- onClick: onSelect,
4984
- "data-testid": testId,
4985
- className: "flex w-full items-center gap-3 rounded-xl border bg-card px-3.5 py-3 text-left transition-colors hover:border-foreground/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&>svg:first-child]:h-[18px] [&>svg:first-child]:w-[18px]",
4986
- children: [
4987
- icon,
4988
- /* @__PURE__ */ jsxs("span", {
4989
- className: "min-w-0 flex-1",
4990
- children: [/* @__PURE__ */ jsx("span", {
4991
- className: "block text-sm font-semibold",
4992
- children: title
4993
- }), /* @__PURE__ */ jsx("span", {
4994
- className: "block truncate text-[12.5px] text-muted-foreground",
4995
- children: description
4996
- })]
4997
- }),
4998
- /* @__PURE__ */ jsx(ChevronRight, {
4999
- className: "h-4 w-4 shrink-0 text-muted-foreground",
5000
- "aria-hidden": "true"
5001
- })
5002
- ]
5003
- });
5004
- }
5005
- //#endregion
5006
4925
  //#region ../ui/src/editor-group-view-header.tsx
5007
4926
  const HISTORY_LABELS = {
5008
4927
  undo: "Undo last change",
@@ -5206,6 +5125,34 @@ function SegmentedChoice({ id, label, describedBy, options, value, onChange, cla
5206
5125
  });
5207
5126
  }
5208
5127
  //#endregion
5128
+ //#region ../ui/src/choice-chip-group.tsx
5129
+ const CHIP_CLASS = ["rounded-full border border-border bg-background px-2.5 py-1 text-[13px] font-semibold leading-5 text-foreground transition-colors hover:bg-muted", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"].join(" ");
5130
+ /**
5131
+ * A single choice between short names, drawn as rounded chips that wrap onto
5132
+ * more lines when they don't fit, such as a section break's family. The
5133
+ * chosen chip carries CHOSEN_OPTION_CLASS, the editor's one marker for
5134
+ * "chosen". It's a radio group: Tab reaches the chosen chip and the arrow
5135
+ * keys move between chips.
5136
+ */
5137
+ function ChoiceChipGroup({ label, options, value, onValueChange, describedBy, className }) {
5138
+ return /* @__PURE__ */ jsx(RadioGroup, {
5139
+ "aria-label": label,
5140
+ "aria-describedby": describedBy,
5141
+ value: value ?? "",
5142
+ onValueChange: (next) => {
5143
+ const chosen = options.find((option) => option.value === next);
5144
+ if (chosen) onValueChange(chosen.value);
5145
+ },
5146
+ className: cn("flex flex-wrap gap-1.5", className),
5147
+ children: options.map((option) => /* @__PURE__ */ jsx(RadioGroupItem, {
5148
+ value: option.value,
5149
+ disabled: option.disabled,
5150
+ className: cn(CHIP_CLASS, option.value === value && "border-primary bg-primary/5 ring-1 ring-primary hover:bg-primary/10"),
5151
+ children: option.label
5152
+ }, option.value))
5153
+ });
5154
+ }
5155
+ //#endregion
5209
5156
  //#region ../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@19.3.1/node_modules/@dnd-kit/utilities/dist/utilities.esm.js
5210
5157
  function useCombinedRefs() {
5211
5158
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
@@ -8286,6 +8233,72 @@ function useEditorSortableItem(id, disabled = false) {
8286
8233
  handleProps
8287
8234
  };
8288
8235
  }
8236
+ //#endregion
8237
+ //#region ../theme-core/src/site-styles/sectionBreakPreview.ts
8238
+ const WIDTH = 1440;
8239
+ function paletteToken(name) {
8240
+ const token = parseThemeColorToken(name);
8241
+ if (!token) throw new Error(`Unknown palette token: ${name}`);
8242
+ return token;
8243
+ }
8244
+ /**
8245
+ * The colour tiles draw every option on one pair from the palette, far
8246
+ * enough apart that fading and stepping look different (on two pale grounds
8247
+ * they'd look the same). The summary drawing and the canvas show the real join.
8248
+ */
8249
+ const sectionBreakTileColours = {
8250
+ above: paletteToken("background"),
8251
+ here: paletteToken("secondary")
8252
+ };
8253
+ /** Stands in for a section that shows a photo or other media rather than a colour. */
8254
+ const sectionBreakMediaStandIn = paletteToken("border");
8255
+ /** A section's top or foot paint (a palette token or a hex), or null when it isn't a flat colour. */
8256
+ function boundaryColourFromPaint(paint) {
8257
+ if (!paint) return null;
8258
+ const token = parseThemeColorToken(paint);
8259
+ if (token) return token;
8260
+ const hex = hexColorSchema.safeParse(paint);
8261
+ return hex.success ? hex.data : null;
8262
+ }
8263
+ function sectionBreakPreview(input) {
8264
+ const { edge, above, here } = input;
8265
+ const intent = edge.family === "none" ? null : transitionIntentForTreatment(edge);
8266
+ if (!intent || edge.family === "none") return {
8267
+ kind: "flat",
8268
+ width: WIDTH,
8269
+ height: 144,
8270
+ above,
8271
+ here
8272
+ };
8273
+ const tuning = input.edges.supported.find((support) => support.family === edge.family)?.tuning ?? defaultEdgeTuning;
8274
+ const shape = edgePath(edge.family, edge.variant, tuning, input.seed, "wide");
8275
+ const height = shape.viewHeight * 1.5;
8276
+ if (shape.kind === "fade") return {
8277
+ kind: "fade",
8278
+ width: WIDTH,
8279
+ height,
8280
+ above,
8281
+ here
8282
+ };
8283
+ const local = shape.kind === "angle" ? `M0 ${shape.polygon.startTopPercent * shape.viewHeight / 100}L${WIDTH} ${shape.polygon.endTopPercent * shape.viewHeight / 100}V${shape.viewHeight}H0Z` : shape.path;
8284
+ const backPaints = boundaryBackPaints(intent, edge, { colour: here }, { colour: above }, input.palette);
8285
+ const step = shape.viewHeight * .18;
8286
+ return {
8287
+ kind: "shape",
8288
+ width: WIDTH,
8289
+ height,
8290
+ above,
8291
+ here,
8292
+ path: local,
8293
+ edgeHeight: shape.viewHeight,
8294
+ backs: backPaints.map((paint, index) => ({
8295
+ colour: paint.colour,
8296
+ opacity: (backPaints.length - index) / (backPaints.length + 1),
8297
+ lift: step * (index + 1),
8298
+ mirrored: index % 2 === 0
8299
+ })).reverse()
8300
+ };
8301
+ }
8289
8302
  z.number().int().nonnegative().brand();
8290
8303
  const automaticPageDocumentIntent = {
8291
8304
  schemaVersion: 2,
@@ -10245,9 +10258,15 @@ function getErrorMessage$1(error) {
10245
10258
  }
10246
10259
  //#endregion
10247
10260
  //#region ../block-form/src/backend/rhf-backend.ts
10248
- /** RHF owns mutable values (including Dates); detach only the changed field snapshot. */
10261
+ /**
10262
+ * RHF owns mutable values (including Dates); detach only the changed field snapshot.
10263
+ * The copy is what's compared: a value can hold objects that never deep-equal their
10264
+ * own copy, such as ProseMirror's prototype-free node attrs in a rich text document,
10265
+ * and comparing the live value would hand React a new snapshot on every read.
10266
+ */
10249
10267
  function captureMutableFieldValue(value, previous) {
10250
- return deepEqual(value, previous) ? previous : structuredClone(value);
10268
+ const detached = structuredClone(value);
10269
+ return deepEqual(detached, previous) ? previous : detached;
10251
10270
  }
10252
10271
  function isUnknownArray$1(value) {
10253
10272
  return Array.isArray(value);
@@ -22134,6 +22153,12 @@ const SETUP_NOTICE_COPY = {
22134
22153
  action: "Create a pass",
22135
22154
  path: "bookings/products"
22136
22155
  },
22156
+ giftCardsAndVouchers: {
22157
+ title: "You’ve no gift cards or vouchers on offer yet",
22158
+ body: "Visitors won’t see this block until you offer a gift card or a voucher. You can add it now and it’ll appear when you do.",
22159
+ action: "Set up gift cards and vouchers",
22160
+ path: "bookings/gift-cards-vouchers/offers"
22161
+ },
22137
22162
  mailingLists: {
22138
22163
  title: "Your mailing list isn’t set up yet",
22139
22164
  body: "Visitors won’t see this sign-up until it is. You can add it now and it’ll appear once your mailing list is ready.",
@@ -23121,10 +23146,13 @@ function BlockSourceLine({ source, siteId, dashboardBaseUrl = "", getValue = ()
23121
23146
  * that has one writes it beside its own decision, so the line says what the
23122
23147
  * page does. Nothing is said while the facts are unavailable.
23123
23148
  */
23124
- const factsNotes = { "block.shop": (read, facts) => facts.catalogue.kind === "Loaded" ? shopEditorNote({
23125
- showPasses: read("showPasses"),
23126
- showMemberships: read("showMemberships")
23127
- }, facts.catalogue.value) : null };
23149
+ const factsNotes = {
23150
+ "block.shop": (read, facts) => facts.catalogue.kind === "Loaded" ? shopEditorNote({
23151
+ showPasses: read("showPasses"),
23152
+ showMemberships: read("showMemberships")
23153
+ }, facts.catalogue.value) : null,
23154
+ "block.gifting": (_read, facts) => facts.gifting.kind === "Loaded" ? giftingEditorNote(facts.gifting.value) : null
23155
+ };
23128
23156
  function blockFactsNote(blockKind, read, facts) {
23129
23157
  return factsNotes[blockKind]?.(read, facts) ?? null;
23130
23158
  }
@@ -28237,7 +28265,7 @@ function DestinationChoices({ initialCustom, defaultName, assessment, onChange,
28237
28265
  className: legendClass,
28238
28266
  children: "Signup destination"
28239
28267
  }),
28240
- /* @__PURE__ */ jsx(Choice$1, {
28268
+ /* @__PURE__ */ jsx(Choice, {
28241
28269
  checked: targeting?.mode === "default",
28242
28270
  label: "Use site default",
28243
28271
  disabled: defaultName === null,
@@ -28245,7 +28273,7 @@ function DestinationChoices({ initialCustom, defaultName, assessment, onChange,
28245
28273
  name: `${name}-mode`,
28246
28274
  onChange: () => onChange(DEFAULT_MAILING_LIST_TARGETING)
28247
28275
  }),
28248
- /* @__PURE__ */ jsx(Choice$1, {
28276
+ /* @__PURE__ */ jsx(Choice, {
28249
28277
  checked: assessment !== null && "value" in assessment && assessment.value.mode === "custom",
28250
28278
  label: "Customise this signup",
28251
28279
  disabled: initialCustom === null,
@@ -28360,7 +28388,7 @@ function SelectionModeChoices({ matched, setValue, name }) {
28360
28388
  className: legendClass,
28361
28389
  children: matched.provider === "native" ? "Who joins through this form?" : `How are ${choiceNoun(matched.provider)} chosen?`
28362
28390
  }),
28363
- matched.provider === "native" ? /* @__PURE__ */ jsx(Choice$1, {
28391
+ matched.provider === "native" ? /* @__PURE__ */ jsx(Choice, {
28364
28392
  checked: matched.targeting.selection.tag === "general",
28365
28393
  label: "General mailing list",
28366
28394
  description: "People join your general mailing list without choosing a topic.",
@@ -28370,7 +28398,7 @@ function SelectionModeChoices({ matched, setValue, name }) {
28370
28398
  if (general.tag === "changed") setValue(general.targeting);
28371
28399
  }
28372
28400
  }) : null,
28373
- /* @__PURE__ */ jsx(Choice$1, {
28401
+ /* @__PURE__ */ jsx(Choice, {
28374
28402
  checked: matched.targeting.selection.tag === "fixed",
28375
28403
  label: "I choose",
28376
28404
  disabled: fixed.tag === "refused",
@@ -28380,7 +28408,7 @@ function SelectionModeChoices({ matched, setValue, name }) {
28380
28408
  if (fixed.tag === "changed") setValue(fixed.targeting);
28381
28409
  }
28382
28410
  }),
28383
- /* @__PURE__ */ jsx(Choice$1, {
28411
+ /* @__PURE__ */ jsx(Choice, {
28384
28412
  checked: matched.targeting.selection.tag === "visitor_choice",
28385
28413
  label: "Let visitors choose",
28386
28414
  disabled: visitor.tag === "refused",
@@ -28490,7 +28518,7 @@ function Checkboxes({ options, selected, onToggle, onChange, unavailableIds }) {
28490
28518
  ]
28491
28519
  });
28492
28520
  }
28493
- function Choice$1({ checked, disabled, label, description, name, onChange }) {
28521
+ function Choice({ checked, disabled, label, description, name, onChange }) {
28494
28522
  return /* @__PURE__ */ jsxs("label", {
28495
28523
  className: "flex items-start gap-2 text-sm",
28496
28524
  children: [/* @__PURE__ */ jsx("input", {
@@ -34081,6 +34109,16 @@ function newBlockLookTiles(model, blockKind, content = {}) {
34081
34109
  })?.tiles ?? pageDesignLookTiles(block);
34082
34110
  }
34083
34111
  //#endregion
34112
+ //#region ../preview-next/src/client/preview/siteColourVariables.ts
34113
+ /**
34114
+ * The colour variables the site canvas paints with, for preview controls that
34115
+ * sit outside it (the sidebar, popovers) and show the site's colours. They
34116
+ * follow the theme the preview shows, so a palette change is reflected too.
34117
+ */
34118
+ function useSiteColourVariables() {
34119
+ return usePreviewCompiledThemeOptional()?.colourVariables ?? null;
34120
+ }
34121
+ //#endregion
34084
34122
  //#region ../preview-next/src/client/preview/sidebar/AddBlockView.tsx
34085
34123
  /**
34086
34124
  * "Add a block" in the sidebar: the block list, then, for a block that asks
@@ -37078,6 +37116,273 @@ function useLoadBackgroundImages(supportsImages, context) {
37078
37116
  ]);
37079
37117
  }
37080
37118
  //#endregion
37119
+ //#region ../preview-next/src/client/preview/usePreviewPalette.ts
37120
+ /** The site's palette as hex, shades included, which the sidebar's drawings of the site are painted from. */
37121
+ function usePreviewPalette() {
37122
+ const theme = usePreviewCompiledThemeOptional()?.theme ?? null;
37123
+ return useMemo(() => theme ? expandPalette(theme.palette) : {}, [theme]);
37124
+ }
37125
+ //#endregion
37126
+ //#region ../preview-next/src/client/preview/sectionBackground/GroundSwatch.tsx
37127
+ /**
37128
+ * A section ground drawn small, with its colour change and texture painted
37129
+ * stronger than on the page so they still show at this size.
37130
+ */
37131
+ function GroundSwatch({ paint, finishes, palette, className }) {
37132
+ const drawn = groundSwatchPaint(paint, finishes ?? void 0, palette);
37133
+ return /* @__PURE__ */ jsx("span", {
37134
+ "aria-hidden": "true",
37135
+ "data-ground-swatch": "",
37136
+ className: cn("relative block overflow-hidden", className),
37137
+ style: { background: drawn?.background ?? palette[paint.base] ?? "transparent" },
37138
+ children: drawn?.texture ? /* @__PURE__ */ jsx("span", {
37139
+ className: "pointer-events-none absolute inset-0",
37140
+ style: {
37141
+ backgroundImage: drawn.texture.image,
37142
+ opacity: drawn.texture.opacity,
37143
+ mixBlendMode: drawn.texture.blend
37144
+ }
37145
+ }) : null
37146
+ });
37147
+ }
37148
+ /** A flat palette colour for More colours. */
37149
+ function ColourSwatch({ hex }) {
37150
+ return /* @__PURE__ */ jsx("span", {
37151
+ "aria-hidden": "true",
37152
+ className: "block h-full w-full",
37153
+ style: { background: hex }
37154
+ });
37155
+ }
37156
+ /** One even row up to seven colours; eight sit as two rows of four. */
37157
+ function swatchColumns(count) {
37158
+ if (count === 6 || count === 7) return count;
37159
+ return count === 8 ? 4 : 5;
37160
+ }
37161
+ //#endregion
37162
+ //#region ../preview-next/src/client/preview/sectionBackground/sectionBackgroundState.ts
37163
+ /**
37164
+ * Everything the Look section's Background controls and the Background view
37165
+ * show, from the editor's control, the site's palette and what the canvas
37166
+ * painted (which ground the style picked, and whether a finish was dropped).
37167
+ */
37168
+ function sectionBackgroundState(control, palette, painted, readable) {
37169
+ const ground = shownGround(control, painted);
37170
+ const base = shownBase(control, ground);
37171
+ const treatmentsUnavailable = sectionTreatmentsUnavailable(control.colour);
37172
+ const menus = treatmentsUnavailable ? null : sectionMenus(control, {
37173
+ base,
37174
+ ground,
37175
+ palette,
37176
+ dropped: painted?.finishDropped ?? false,
37177
+ readable
37178
+ });
37179
+ return {
37180
+ control,
37181
+ chosenSwatch: ground?.name ?? null,
37182
+ base,
37183
+ menus,
37184
+ treatmentsUnavailable,
37185
+ colours: control.keepsPhoto ? null : moreColours(palette, (token) => control.colourTokens.some((candidate) => candidate === token)),
37186
+ summary: sectionBackgroundSummary(control.colour, menus ?? noMenus),
37187
+ paint: {
37188
+ base,
37189
+ ...menus ? shownFinish(menus) : {}
37190
+ }
37191
+ };
37192
+ }
37193
+ function sectionMenus(control, shown) {
37194
+ if (!control.finishes) return null;
37195
+ return treatmentMenus({
37196
+ finishes: control.finishes,
37197
+ base: shown.base,
37198
+ groundFinish: shown.ground ? finishOf(shown.ground.paint) : {},
37199
+ fadeTokens: control.grounds.map((entry) => entry.token),
37200
+ treatment: control.treatment,
37201
+ dropped: shown.dropped,
37202
+ palette: shown.palette,
37203
+ readable: shown.readable
37204
+ });
37205
+ }
37206
+ function sectionBackgroundShown(control, palette, painted, check) {
37207
+ if (check?.kind === "beside-side-column") return { kind: "beside-side-column" };
37208
+ if (control.kind === "held-by-photo") return control;
37209
+ return {
37210
+ kind: "grounds",
37211
+ state: sectionBackgroundState(control, palette, painted, check?.readable)
37212
+ };
37213
+ }
37214
+ /** The recommended background the section shows: the owner's, or the style's pick as the canvas painted it. */
37215
+ function shownGround(control, painted) {
37216
+ if (control.colour.kind === "colour" || control.colour.kind === "gradient") return null;
37217
+ const name = control.colour.kind === "ground" ? control.colour.name : painted?.groundName ?? null;
37218
+ return control.grounds.find((entry) => entry.name === name) ?? null;
37219
+ }
37220
+ /** The section's colour as a palette token: the owner's colour, or the shown ground's. */
37221
+ function shownBase(control, ground) {
37222
+ if (control.colour.kind === "colour") return control.colour.token;
37223
+ return ground?.token ?? "background";
37224
+ }
37225
+ const noMenu = {
37226
+ options: [],
37227
+ selected: "auto",
37228
+ turnedOff: false,
37229
+ kept: null
37230
+ };
37231
+ const noMenus = {
37232
+ texture: noMenu,
37233
+ tone: noMenu
37234
+ };
37235
+ /** The texture and colour change the page shows, from each menu's selection unless it's turned off. */
37236
+ function shownFinish(menus) {
37237
+ const finish = (menu) => menu.turnedOff ? null : menu.options.find((option) => option.key === menu.selected)?.finish ?? null;
37238
+ return {
37239
+ ...finish(menus.texture),
37240
+ ...finish(menus.tone)
37241
+ };
37242
+ }
37243
+ function finishOf({ texture, tone }) {
37244
+ return {
37245
+ ...texture ? { texture } : {},
37246
+ ...tone ? { tone } : {}
37247
+ };
37248
+ }
37249
+ //#endregion
37250
+ //#region ../preview-next/src/client/preview/sectionBackground/SectionBackgroundControls.tsx
37251
+ /** The section's background as the sidebar shows it, from its control, the palette and what the canvas painted. */
37252
+ function useSectionBackgroundShown(blockId, control) {
37253
+ const palette = usePreviewPalette();
37254
+ const painted = usePreviewSectionPaints().get(String(blockId)) ?? null;
37255
+ const check = usePreviewSectionTreatmentCheck(String(blockId));
37256
+ return control ? sectionBackgroundShown(control, palette, painted, check) : null;
37257
+ }
37258
+ /**
37259
+ * Background in a section's Look: the style's recommended backgrounds as
37260
+ * swatches drawn in their own paint, where the background comes from, and
37261
+ * the "Texture and colours" row into the Background view.
37262
+ */
37263
+ function SectionBackgroundControls({ blockId, control, actions }) {
37264
+ const shown = useSectionBackgroundShown(blockId, control);
37265
+ if (shown?.kind === "beside-side-column") return /* @__PURE__ */ jsx(NotUsedBesideSideColumn, {});
37266
+ if (shown?.kind !== "grounds") return /* @__PURE__ */ jsx(HeldByPhoto, {});
37267
+ const { state } = shown;
37268
+ return /* @__PURE__ */ jsxs("div", {
37269
+ className: "space-y-3",
37270
+ "data-section-background": "",
37271
+ children: [
37272
+ /* @__PURE__ */ jsx("div", {
37273
+ className: "text-sm font-semibold leading-5 text-foreground",
37274
+ children: "Background"
37275
+ }),
37276
+ /* @__PURE__ */ jsx(RecommendedSwatches, {
37277
+ state,
37278
+ onChoose: actions.chooseGround
37279
+ }),
37280
+ /* @__PURE__ */ jsx(BackgroundSourceLine, {
37281
+ state,
37282
+ onUseDefault: () => actions.chooseGround(null)
37283
+ }),
37284
+ state.menus || state.colours ? /* @__PURE__ */ jsx(TextureAndColoursRow, {
37285
+ blockId,
37286
+ state
37287
+ }) : null
37288
+ ]
37289
+ });
37290
+ }
37291
+ function NotUsedBesideSideColumn() {
37292
+ return /* @__PURE__ */ jsxs("div", {
37293
+ className: "space-y-1",
37294
+ "data-section-background": "beside-side-column",
37295
+ children: [/* @__PURE__ */ jsx("div", {
37296
+ className: "text-sm font-semibold leading-5 text-foreground",
37297
+ children: "Background"
37298
+ }), /* @__PURE__ */ jsx("p", {
37299
+ className: "text-[12.5px] leading-snug text-muted-foreground",
37300
+ children: "On a page with a side column, every section sits on the page background, so section backgrounds aren’t used here. Anything you’ve chosen comes back if you remove the side column."
37301
+ })]
37302
+ });
37303
+ }
37304
+ function HeldByPhoto() {
37305
+ return /* @__PURE__ */ jsxs("div", {
37306
+ className: "flex min-h-8 items-center justify-between gap-3",
37307
+ children: [/* @__PURE__ */ jsx("span", {
37308
+ className: "text-sm font-semibold leading-5 text-foreground",
37309
+ children: "Background"
37310
+ }), /* @__PURE__ */ jsx("span", {
37311
+ className: "text-right text-xs text-muted-foreground",
37312
+ children: "Uses the section’s photo"
37313
+ })]
37314
+ });
37315
+ }
37316
+ function RecommendedSwatches({ state, onChoose }) {
37317
+ const palette = usePreviewPalette();
37318
+ const { grounds, finishes } = state.control;
37319
+ return /* @__PURE__ */ jsx(PreviewTileGroup, {
37320
+ label: "Recommended backgrounds",
37321
+ size: "swatch",
37322
+ columns: swatchColumns(grounds.length),
37323
+ value: state.chosenSwatch,
37324
+ onValueChange: onChoose,
37325
+ options: grounds.map((ground) => ({
37326
+ value: ground.name,
37327
+ label: groundAccessibleLabel(ground.paint, palette),
37328
+ preview: /* @__PURE__ */ jsx(GroundSwatch, {
37329
+ paint: ground.paint,
37330
+ finishes,
37331
+ palette,
37332
+ className: "h-full w-full"
37333
+ })
37334
+ }))
37335
+ });
37336
+ }
37337
+ /** "Your site style picks this background." or "Chosen for this section. Use default background". */
37338
+ function BackgroundSourceLine({ state, onUseDefault }) {
37339
+ const colour = state.control.colour;
37340
+ if (colour.kind === "style") return /* @__PURE__ */ jsxs("p", {
37341
+ className: "text-[12.5px] leading-snug text-muted-foreground",
37342
+ "data-background-source": "site-style-default",
37343
+ children: ["Your site style picks this background.", colour.keptGround ? " Your choice is kept and comes back if you switch style again." : ""]
37344
+ });
37345
+ return /* @__PURE__ */ jsxs("p", {
37346
+ className: "text-[12.5px] leading-snug text-muted-foreground",
37347
+ "data-background-source": "user-chosen",
37348
+ children: [
37349
+ "Chosen for this section.",
37350
+ " ",
37351
+ /* @__PURE__ */ jsx(Button$1, {
37352
+ variant: "link",
37353
+ size: "sm",
37354
+ className: "h-auto p-0 text-[12.5px]",
37355
+ onClick: onUseDefault,
37356
+ children: "Use default background"
37357
+ })
37358
+ ]
37359
+ });
37360
+ }
37361
+ function TextureAndColoursRow({ blockId, state }) {
37362
+ const store = useEditorUiStoreInstance();
37363
+ const palette = usePreviewPalette();
37364
+ const open = () => {
37365
+ const target = sidebarBlockTargetForId(store.getState().getSnapshot(), blockId);
37366
+ if (target) store.getState().openSidebarView({
37367
+ kind: "blockBackground",
37368
+ target
37369
+ });
37370
+ };
37371
+ return /* @__PURE__ */ jsx(EditorNavRow, {
37372
+ icon: /* @__PURE__ */ jsx(GroundSwatch, {
37373
+ paint: state.paint,
37374
+ finishes: state.control.finishes,
37375
+ palette,
37376
+ className: "size-7 shrink-0 rounded-[5px] border border-border"
37377
+ }),
37378
+ title: "Texture and colours",
37379
+ description: state.summary,
37380
+ onSelect: open,
37381
+ wrapDescription: true,
37382
+ testId: "section-background-details"
37383
+ });
37384
+ }
37385
+ //#endregion
37081
37386
  //#region ../preview-next/src/client/preview/SelectedBlockLookControls.tsx
37082
37387
  /** The Look section's state and actions, shared by the Look card and the options shown after the Photo field. */
37083
37388
  function useSelectedBlockLook(props) {
@@ -37112,8 +37417,8 @@ function SelectedBlockLookControls({ look, ...props }) {
37112
37417
  ]
37113
37418
  });
37114
37419
  }
37115
- /** An arrangement Look's knobs and Background row. Nothing on an older style. */
37116
- function SelectedBlockLookOptions({ look }) {
37420
+ /** An arrangement Look's knobs and Background. Nothing on an older style. */
37421
+ function SelectedBlockLookOptions({ look, blockId }) {
37117
37422
  const siteColours = useSiteColourVariables();
37118
37423
  const { toolbar } = look;
37119
37424
  if (!toolbar) return null;
@@ -37123,9 +37428,12 @@ function SelectedBlockLookOptions({ look }) {
37123
37428
  children: /* @__PURE__ */ jsx(ArrangementOptionsBody, {
37124
37429
  controls: toolbar.controls,
37125
37430
  styleName: toolbar.styleName,
37126
- background: toolbar.background,
37431
+ background: toolbar.background ? /* @__PURE__ */ jsx(SectionBackgroundControls, {
37432
+ blockId,
37433
+ control: toolbar.background,
37434
+ actions: toolbar
37435
+ }) : null,
37127
37436
  onChooseKnob: toolbar.chooseKnob,
37128
- onChooseSurface: toolbar.chooseSurface,
37129
37437
  onEditHeadline: toolbar.editHeadline
37130
37438
  })
37131
37439
  });
@@ -37160,7 +37468,7 @@ function SelectedBlockModeControl(props) {
37160
37468
  });
37161
37469
  }
37162
37470
  function useLookSectionActions({ blockId, content, designBlock }) {
37163
- const { state, applyAction, backgroundImagePool = [] } = usePreviewPageDesignEditorState();
37471
+ const { state, applyAction } = usePreviewPageDesignEditorState();
37164
37472
  const uiStore = useEditorUiStoreInstance();
37165
37473
  const save = (action) => {
37166
37474
  applyAction(action, { runtimeContent: content });
@@ -37171,16 +37479,6 @@ function useLookSectionActions({ blockId, content, designBlock }) {
37171
37479
  pageDesignState: state,
37172
37480
  selected: true,
37173
37481
  save,
37174
- chooseBackground: (override) => {
37175
- if (!designBlock) return;
37176
- const action = setPageDesignBlockBackground({
37177
- block: designBlock,
37178
- override,
37179
- currentContent: content,
37180
- imagePool: backgroundImagePool
37181
- });
37182
- if (action) save(action);
37183
- },
37184
37482
  openField: (fieldPath) => uiStore.getState().requestFocus({
37185
37483
  kind: "field",
37186
37484
  blockId,
@@ -37290,7 +37588,96 @@ function BlockLookCard({ card, colours, changing, onChange }) {
37290
37588
  }
37291
37589
  const lookChangeButtonClass = "shrink-0 rounded-full border border-border bg-background px-3 py-1 text-xs font-medium text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
37292
37590
  //#endregion
37293
- //#region ../preview-next/src/client/preview/sectionBreakCopy.ts
37591
+ //#region ../preview-next/src/client/preview/sectionBreak/SectionBreakDrawing.tsx
37592
+ /** A section break drawn in the site's colours, as the page draws it: the section above, any back layers, then this section. */
37593
+ function SectionBreakDrawing({ edge, above, here, edges, palette, seed, className }) {
37594
+ const id = `section-break-${useId().replace(/[^a-zA-Z0-9_-]/g, "")}`;
37595
+ const variables = useSiteColourVariables();
37596
+ const drawing = sectionBreakPreview({
37597
+ edge,
37598
+ above,
37599
+ here,
37600
+ edges,
37601
+ palette,
37602
+ seed
37603
+ });
37604
+ const paint = (colour) => colourCss(colour, variables);
37605
+ const box = `0 0 ${drawing.width} ${drawing.height}`;
37606
+ switch (drawing.kind) {
37607
+ case "flat": return /* @__PURE__ */ jsxs("svg", {
37608
+ viewBox: box,
37609
+ preserveAspectRatio: "none",
37610
+ "aria-hidden": "true",
37611
+ className,
37612
+ children: [/* @__PURE__ */ jsx("rect", {
37613
+ width: drawing.width,
37614
+ height: drawing.height / 2,
37615
+ fill: paint(drawing.above)
37616
+ }), /* @__PURE__ */ jsx("rect", {
37617
+ y: drawing.height / 2,
37618
+ width: drawing.width,
37619
+ height: drawing.height / 2,
37620
+ fill: paint(drawing.here)
37621
+ })]
37622
+ });
37623
+ case "fade": return /* @__PURE__ */ jsxs("svg", {
37624
+ viewBox: box,
37625
+ preserveAspectRatio: "none",
37626
+ "aria-hidden": "true",
37627
+ className,
37628
+ children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
37629
+ id,
37630
+ x1: "0",
37631
+ y1: "0",
37632
+ x2: "0",
37633
+ y2: "1",
37634
+ children: [/* @__PURE__ */ jsx("stop", {
37635
+ offset: "0.15",
37636
+ stopColor: paint(drawing.above)
37637
+ }), /* @__PURE__ */ jsx("stop", {
37638
+ offset: "0.85",
37639
+ stopColor: paint(drawing.here)
37640
+ })]
37641
+ }) }), /* @__PURE__ */ jsx("rect", {
37642
+ width: drawing.width,
37643
+ height: drawing.height,
37644
+ fill: `url(#${id})`
37645
+ })]
37646
+ });
37647
+ case "shape": {
37648
+ const top = drawing.height - drawing.edgeHeight;
37649
+ return /* @__PURE__ */ jsxs("svg", {
37650
+ viewBox: box,
37651
+ preserveAspectRatio: "none",
37652
+ "aria-hidden": "true",
37653
+ className,
37654
+ children: [
37655
+ /* @__PURE__ */ jsx("rect", {
37656
+ width: drawing.width,
37657
+ height: drawing.height,
37658
+ fill: paint(drawing.above)
37659
+ }),
37660
+ drawing.backs.map((back, index) => /* @__PURE__ */ jsx("path", {
37661
+ d: drawing.path,
37662
+ fill: paint(back.colour),
37663
+ opacity: back.opacity,
37664
+ transform: `translate(${back.mirrored ? drawing.width : 0} ${top - back.lift})${back.mirrored ? " scale(-1 1)" : ""}`
37665
+ }, index)),
37666
+ /* @__PURE__ */ jsx("path", {
37667
+ d: drawing.path,
37668
+ fill: paint(drawing.here),
37669
+ transform: `translate(0 ${top})`
37670
+ })
37671
+ ]
37672
+ });
37673
+ }
37674
+ }
37675
+ }
37676
+ function colourCss(colour, variables) {
37677
+ return colour.startsWith("#") ? colour : siteColourCss(variables, colour);
37678
+ }
37679
+ //#endregion
37680
+ //#region ../preview-next/src/client/preview/sectionBreak/sectionBreakCopy.ts
37294
37681
  function sectionBreakSource(boundary) {
37295
37682
  const choice = boundary.breakChoice;
37296
37683
  switch (choice.kind) {
@@ -37299,6 +37686,33 @@ function sectionBreakSource(boundary) {
37299
37686
  }
37300
37687
  return assertNever$1(choice, "Unhandled boundary break choice");
37301
37688
  }
37689
+ /** "Wave, gentle · chosen here": the Look section's summary of the break above. */
37690
+ function sectionBreakSummary(shown, source) {
37691
+ const name = sectionBreakName(shown);
37692
+ switch (source) {
37693
+ case "user-pinned": return `${name} · chosen here`;
37694
+ case "unavailable": return `${name} · picked by your site style`;
37695
+ case "site-style-default":
37696
+ case "page-flow-default": return name;
37697
+ }
37698
+ return assertNever$1(source, "Unhandled section break source");
37699
+ }
37700
+ /** "Your site style doesn't use this break, so the page shows a ridge instead." */
37701
+ function sectionBreakFallbackText(shown) {
37702
+ const name = sectionBreakFamilyLabel(shown.family);
37703
+ return `Your site style doesn’t use this break, so the page shows ${shown.family === "none" ? "no break" : `${/^[aeiou]/i.test(name) ? "an" : "a"} ${name.toLowerCase()}`} instead.`;
37704
+ }
37705
+ const SECTION_BREAK_LAYER_LABELS = {
37706
+ 1: "One layer",
37707
+ 2: "Two layers",
37708
+ 3: "Three layers"
37709
+ };
37710
+ const SECTION_BREAK_COLOUR_LABELS = {
37711
+ fade: "Fade between colours",
37712
+ blend: "Steps of both colours",
37713
+ accent: "Accent colour layers",
37714
+ main: "Main colour layers"
37715
+ };
37302
37716
  /** Approved copy (issue 1422) for a join the renderer didn't draw. */
37303
37717
  const NOT_SHOWN_COPY = {
37304
37718
  "same-paint": "This break won't show here, because both sections have the same background color. It'll appear if you give one of them a different background.",
@@ -37307,73 +37721,15 @@ const NOT_SHOWN_COPY = {
37307
37721
  "flush-panel": "This break won't show here, because one of these sections has an image that runs right to its edge. It'll appear if you pick a different look for that section.",
37308
37722
  field: "This break won't show here, because one of these sections is drawn as a rounded panel set in from the page edge. It'll appear if you give that section a different background."
37309
37723
  };
37310
- /** Notes under the choices: a saved break that's gone, and a break the page won't draw. */
37311
- function sectionBreakNotes(source, outcome) {
37312
- return [...source === "unavailable" ? [{
37313
- kind: "saved-break-unavailable",
37314
- text: "The break saved here isn't available for these sections any more, so the default is showing instead."
37315
- }] : [], ...outcome?.kind === "not-shown" ? [{
37724
+ /** A note under the choices when the page won't draw the break. */
37725
+ function sectionBreakNotShownNote(outcome) {
37726
+ return outcome?.kind === "not-shown" ? {
37316
37727
  kind: `not-shown:${outcome.reason}`,
37317
37728
  text: NOT_SHOWN_COPY[outcome.reason]
37318
- }] : []];
37729
+ } : null;
37319
37730
  }
37320
37731
  //#endregion
37321
- //#region ../preview-next/src/client/preview/SectionBreakAbove.tsx
37322
- /**
37323
- * "Section break above" in a block's Look: the break between this section and
37324
- * the one before it. Only shown where there's a choice to make.
37325
- */
37326
- function SectionBreakAbove({ blockId, sdkConfig }) {
37327
- const { applyAction } = usePreviewPageDesignEditorState();
37328
- const boundary = useBreakAbove(blockId);
37329
- const outcome = usePreviewJoinOutcome(boundary?.previousBlockId ?? "", blockId);
37330
- const names = useJoinedSectionNames(boundary?.previousBlockId ?? null, blockId, sdkConfig ?? null);
37331
- if (!boundary) return null;
37332
- const save = (action) => {
37333
- applyAction(action).catch((error) => console.error("Section break change failed", error));
37334
- };
37335
- const choose = (boundaryOptionId) => save({
37336
- kind: "set-boundary",
37337
- previousBlockId: boundary.previousBlockId,
37338
- nextBlockId: boundary.nextBlockId,
37339
- boundaryOptionId
37340
- });
37341
- const useDefault = () => save({
37342
- kind: "reset-boundary",
37343
- previousBlockId: boundary.previousBlockId,
37344
- nextBlockId: boundary.nextBlockId
37345
- });
37346
- const source = sectionBreakSource(boundary);
37347
- return /* @__PURE__ */ jsxs("div", {
37348
- className: "space-y-2.5",
37349
- "data-section-break-above": "",
37350
- "data-boundary-break-source": source,
37351
- children: [
37352
- /* @__PURE__ */ jsx("div", {
37353
- className: "text-sm font-semibold",
37354
- children: "Section break above"
37355
- }),
37356
- /* @__PURE__ */ jsx(BreakDiagram, {
37357
- above: names.above,
37358
- here: names.here,
37359
- breakLabel: breakLabel(boundary)
37360
- }),
37361
- /* @__PURE__ */ jsx(BreakChoices, {
37362
- boundary,
37363
- onChoose: choose
37364
- }),
37365
- /* @__PURE__ */ jsx(SourceLine, {
37366
- source,
37367
- onUseDefault: useDefault
37368
- }),
37369
- sectionBreakNotes(source, outcome).map((note) => /* @__PURE__ */ jsx("p", {
37370
- "data-boundary-status": note.kind,
37371
- className: "text-[12.5px] leading-snug text-muted-foreground",
37372
- children: note.text
37373
- }, note.kind))
37374
- ]
37375
- });
37376
- }
37732
+ //#region ../preview-next/src/client/preview/sectionBreak/useSectionBreak.ts
37377
37733
  /** The break above a block, when there's more than one to choose from. */
37378
37734
  function useBreakAbove(blockId) {
37379
37735
  const { state } = usePreviewPageDesignEditorState();
@@ -37381,6 +37737,49 @@ function useBreakAbove(blockId) {
37381
37737
  const boundary = state.editorModel.boundaries.find((candidate) => candidate.nextBlockId === blockId) ?? null;
37382
37738
  return boundary && boundary.availableBreaks.length > 1 ? boundary : null;
37383
37739
  }
37740
+ /** Everything the "Section break above" row and the "Section break" view read and do. */
37741
+ function useSectionBreak(blockId, sdkConfig) {
37742
+ const { state, applyAction } = usePreviewPageDesignEditorState();
37743
+ const boundary = useBreakAbove(blockId);
37744
+ const names = useJoinedSectionNames(boundary?.previousBlockId ?? null, blockId, sdkConfig);
37745
+ const paints = usePreviewSectionPaints();
37746
+ const palette = usePreviewPalette();
37747
+ if (!boundary || state.kind !== "loaded") return null;
37748
+ const pair = {
37749
+ previousBlockId: boundary.previousBlockId,
37750
+ nextBlockId: boundary.nextBlockId
37751
+ };
37752
+ const run = (action) => {
37753
+ applyAction(action).catch((error) => console.error("Section break change failed", error));
37754
+ };
37755
+ return {
37756
+ boundary,
37757
+ shown: shownSectionBreak(boundary),
37758
+ source: sectionBreakSource(boundary),
37759
+ names,
37760
+ colours: {
37761
+ above: boundaryColourFromPaint(paints.get(boundary.previousBlockId)?.foot),
37762
+ here: boundaryColourFromPaint(paints.get(boundary.nextBlockId)?.top)
37763
+ },
37764
+ palette,
37765
+ edges: siteStyleEdges(state.editorModel.siteStyleId),
37766
+ save: (edge) => {
37767
+ if (sectionBreakPickSaves(boundary, edge)) run({
37768
+ kind: "set-boundary",
37769
+ ...pair,
37770
+ edge
37771
+ });
37772
+ },
37773
+ useDefault: () => run({
37774
+ kind: "reset-boundary",
37775
+ ...pair
37776
+ })
37777
+ };
37778
+ }
37779
+ /** Whether the canvas draws the break, from the renderer's own outcome for this join. */
37780
+ function useSectionBreakOutcome(boundary) {
37781
+ return usePreviewJoinOutcome(boundary.previousBlockId, boundary.nextBlockId);
37782
+ }
37384
37783
  function useJoinedSectionNames(aboveId, hereId, sdkConfig) {
37385
37784
  const blocks = useEditorUiStore((state) => state.structure.getList());
37386
37785
  const nameOf = (id) => {
@@ -37392,107 +37791,51 @@ function useJoinedSectionNames(aboveId, hereId, sdkConfig) {
37392
37791
  here: nameOf(hereId)
37393
37792
  };
37394
37793
  }
37395
- /** Where the break sits: between the section above and this one. */
37396
- function BreakDiagram({ above, here, breakLabel }) {
37397
- return /* @__PURE__ */ jsxs("div", {
37398
- "aria-hidden": "true",
37399
- className: "overflow-hidden rounded-lg border border-border text-[12px] leading-tight",
37400
- children: [
37401
- /* @__PURE__ */ jsx(DiagramRow, {
37402
- name: above ?? "The section above",
37403
- role: "the section above",
37404
- className: "bg-muted/60 text-muted-foreground"
37405
- }),
37406
- /* @__PURE__ */ jsxs("div", {
37407
- className: "flex items-center gap-1.5 border-y border-dashed border-primary/50 px-2.5 py-1 font-semibold text-primary",
37408
- children: [/* @__PURE__ */ jsx("span", { className: "h-px w-3 bg-current" }), breakLabel]
37794
+ //#endregion
37795
+ //#region ../preview-next/src/client/preview/SectionBreakAbove.tsx
37796
+ /**
37797
+ * "Section break above" in a block's Look: a read-only summary of the break
37798
+ * between this section and the one before it, drawn in the page's colours.
37799
+ * It opens the "Section break" view, where the break is chosen. Only shown
37800
+ * where there's a choice to make.
37801
+ */
37802
+ function SectionBreakAbove({ blockId, sdkConfig }) {
37803
+ const store = useEditorUiStoreInstance();
37804
+ const sectionBreak = useSectionBreak(blockId, sdkConfig ?? null);
37805
+ if (!sectionBreak) return null;
37806
+ const { boundary, shown, source, colours } = sectionBreak;
37807
+ const open = () => {
37808
+ const target = sidebarBlockTargetForId(store.getState().getSnapshot(), blockId);
37809
+ if (target) store.getState().openSidebarView({
37810
+ kind: "blockSectionBreak",
37811
+ target
37812
+ });
37813
+ };
37814
+ return /* @__PURE__ */ jsx("div", {
37815
+ "data-section-break-above": "",
37816
+ "data-boundary-break-source": source,
37817
+ children: /* @__PURE__ */ jsx(EditorNavRow, {
37818
+ icon: /* @__PURE__ */ jsx("span", {
37819
+ "aria-hidden": "true",
37820
+ className: "block h-7 w-11 shrink-0 overflow-hidden rounded-[5px] border border-border",
37821
+ children: /* @__PURE__ */ jsx(SectionBreakDrawing, {
37822
+ edge: shown,
37823
+ above: colours.above ?? sectionBreakMediaStandIn,
37824
+ here: colours.here ?? sectionBreakMediaStandIn,
37825
+ edges: sectionBreak.edges,
37826
+ palette: sectionBreak.palette,
37827
+ seed: boundary.boundaryId,
37828
+ className: "block h-full w-full"
37829
+ })
37409
37830
  }),
37410
- /* @__PURE__ */ jsx(DiagramRow, {
37411
- name: here ?? "This section",
37412
- role: "this section",
37413
- className: "font-medium"
37414
- })
37415
- ]
37416
- });
37417
- }
37418
- function DiagramRow({ name, role, className }) {
37419
- return /* @__PURE__ */ jsxs("div", {
37420
- className: cn("flex min-w-0 gap-1 px-2.5 py-1.5", className),
37421
- children: [/* @__PURE__ */ jsx("span", {
37422
- className: "truncate",
37423
- children: name
37424
- }), /* @__PURE__ */ jsxs("span", {
37425
- className: "shrink-0 font-normal text-muted-foreground",
37426
- children: ["· ", role]
37427
- })]
37428
- });
37429
- }
37430
- function BreakChoices({ boundary, onChoose }) {
37431
- const current = boundary.breakChoice.effectiveValue;
37432
- const family = sectionTransitionFamilyForBoundaryOptionId(current) ?? sectionTransitionFamilies[0];
37433
- const variant = sectionTransitionVariantForBoundaryOptionId(current);
37434
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
37435
- role: "radiogroup",
37436
- "aria-label": "Section break",
37437
- className: "grid grid-cols-3 gap-[3px] rounded-2xl border bg-muted/60 p-[3px]",
37438
- children: sectionTransitionFamilies.map((candidate) => /* @__PURE__ */ jsx(Choice, {
37439
- label: candidate.label,
37440
- chosen: candidate.id === family.id,
37441
- onChoose: () => onChoose(defaultSectionTransitionVariantForFamily(candidate.id).boundaryOption.id)
37442
- }, candidate.id))
37443
- }), family.variants.length > 1 ? /* @__PURE__ */ jsxs("div", {
37444
- className: "space-y-1.5",
37445
- children: [/* @__PURE__ */ jsxs("div", {
37446
- className: "text-[12.5px] font-medium text-muted-foreground",
37447
- children: [family.label, " style"]
37448
- }), /* @__PURE__ */ jsx("div", {
37449
- role: "radiogroup",
37450
- "aria-label": `${family.label} style`,
37451
- className: "flex flex-wrap gap-1.5",
37452
- children: family.variants.map((candidate) => /* @__PURE__ */ jsx(Choice, {
37453
- label: candidate.label,
37454
- chip: true,
37455
- chosen: candidate.boundaryOption.id === variant?.boundaryOption.id,
37456
- onChoose: () => onChoose(candidate.boundaryOption.id)
37457
- }, candidate.boundaryOption.id))
37458
- })]
37459
- }) : null] });
37460
- }
37461
- function Choice({ label, chosen, chip = false, onChoose }) {
37462
- return /* @__PURE__ */ jsx("button", {
37463
- type: "button",
37464
- role: "radio",
37465
- "aria-checked": chosen,
37466
- onClick: onChoose,
37467
- className: cn("truncate rounded-full text-[13px] font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", chip ? "border px-2.5 py-1" : "px-1.5 py-1.5", chosen ? chip ? CHOSEN_OPTION_CLASS : "bg-primary text-primary-foreground" : chip ? "border-border hover:bg-muted" : "text-foreground hover:bg-background/70"),
37468
- children: label
37831
+ title: "Section break above",
37832
+ description: sectionBreakSummary(shown, source),
37833
+ onSelect: open,
37834
+ wrapDescription: true,
37835
+ testId: "section-break-summary"
37836
+ })
37469
37837
  });
37470
37838
  }
37471
- function SourceLine({ source, onUseDefault }) {
37472
- switch (source) {
37473
- case "site-style-default": return /* @__PURE__ */ jsx("p", {
37474
- className: "text-[12.5px] text-muted-foreground",
37475
- children: "Your site style picks this break."
37476
- });
37477
- case "page-flow-default": return /* @__PURE__ */ jsx("p", {
37478
- className: "text-[12.5px] text-muted-foreground",
37479
- children: "Your page flow picks this break."
37480
- });
37481
- case "user-pinned":
37482
- case "unavailable": return /* @__PURE__ */ jsxs("p", {
37483
- className: "text-[12.5px] text-muted-foreground",
37484
- children: [source === "user-pinned" ? "Chosen for this section. " : null, /* @__PURE__ */ jsx("button", {
37485
- type: "button",
37486
- onClick: onUseDefault,
37487
- className: "font-semibold text-foreground underline underline-offset-2",
37488
- children: "Use default break"
37489
- })]
37490
- });
37491
- }
37492
- }
37493
- function breakLabel(boundary) {
37494
- return boundary.availableBreaks.find((candidate) => candidate.id === boundary.breakChoice.effectiveValue)?.label ?? "No break";
37495
- }
37496
37839
  //#endregion
37497
37840
  //#region ../preview-next/src/client/preview/SelectedBlockCustomizePanel.tsx
37498
37841
  const EMPTY_BLOCK_VALUES = {};
@@ -37601,7 +37944,10 @@ function lookSlots({ look, blockId, blockKind, content, designBlock, modeLabel:
37601
37944
  content,
37602
37945
  designBlock
37603
37946
  }),
37604
- lookOptions: /* @__PURE__ */ jsx(SelectedBlockLookOptions, { look }),
37947
+ lookOptions: /* @__PURE__ */ jsx(SelectedBlockLookOptions, {
37948
+ look,
37949
+ blockId
37950
+ }),
37605
37951
  changeLook: /* @__PURE__ */ jsx(ChangeLookLink, { formRef }),
37606
37952
  mode: offersModeChoice(designBlock, content) ? /* @__PURE__ */ jsx(SelectedBlockModeControl, {
37607
37953
  blockId,
@@ -37633,7 +37979,7 @@ function SelectedBlockCustomizeFields({ block, target, uiStoreForBlockEditor, th
37633
37979
  designBlock
37634
37980
  });
37635
37981
  const notice = useBlockNotice(String(blockId));
37636
- const lookFooter = useSectionBreakFooter(String(blockId), sdkConfig);
37982
+ const lookFooter = useSectionBreakFooter(blockId, sdkConfig);
37637
37983
  const focus = useBlockFocusRequest(uiStoreForBlockEditor, blockId);
37638
37984
  if (!plan || !manifest) return /* @__PURE__ */ jsx("div", {
37639
37985
  className: "rounded-md border border-dashed px-3 py-4 text-sm text-muted-foreground",
@@ -37676,6 +38022,7 @@ function useSectionBreakFooter(blockId, sdkConfig) {
37676
38022
  sdkConfig
37677
38023
  }) : void 0;
37678
38024
  }
38025
+ /** The block's current local draft, which the sidebar's controls read. */
37679
38026
  function useBlockCurrentValues(store, blockId, fallback) {
37680
38027
  return useSyncExternalStore(store.subscribe, () => readBlockCurrentValues(store, blockId, fallback), () => fallback);
37681
38028
  }
@@ -38091,6 +38438,16 @@ function useHeaderModel(view, sdkConfig, pageSectionLabel) {
38091
38438
  icon: /* @__PURE__ */ jsx(BlockKindIcon, {}),
38092
38439
  title: "Block"
38093
38440
  };
38441
+ case "blockSectionBreak": return {
38442
+ icon: /* @__PURE__ */ jsx(WavesHorizontal, {}),
38443
+ title: "Section break",
38444
+ subtitle: "Where this section meets the one above"
38445
+ };
38446
+ case "blockBackground": return {
38447
+ icon: /* @__PURE__ */ jsx(PaintBucket, {}),
38448
+ title: "Background",
38449
+ subtitle: "Texture, colour change and more colours"
38450
+ };
38094
38451
  case "pageSection": return {
38095
38452
  icon: /* @__PURE__ */ jsx(Rows3, {}),
38096
38453
  title: pageSectionLabel ?? "Page section",
@@ -38201,7 +38558,9 @@ function useReturnViewName(sdkConfig) {
38201
38558
  switch (view.kind) {
38202
38559
  case "block":
38203
38560
  case "blockLook":
38204
- case "blockGroup": {
38561
+ case "blockGroup":
38562
+ case "blockSectionBreak":
38563
+ case "blockBackground": {
38205
38564
  const block = blocks.list.find((candidate) => candidate.id === view.target.blockId);
38206
38565
  if (!block) return page.title;
38207
38566
  return resolveBlockTitle(resolveBlockManifest(block.kind, sdkConfig), block.content, block.kind).displayTitle;
@@ -38225,6 +38584,450 @@ function LinkedEntrySubtitle({ entryId, typeLabel }) {
38225
38584
  return /* @__PURE__ */ jsx(Fragment$1, { children: [typeLabel, linkedEntryStatusLabel(publication)].filter(Boolean).join(" · ") });
38226
38585
  }
38227
38586
  //#endregion
38587
+ //#region ../preview-next/src/client/preview/sidebar/useDrillInEscape.ts
38588
+ /**
38589
+ * Escape goes back out of a drill-in view (a section's break), so nobody
38590
+ * depends on spotting the back link. A dialog or menu that handles Escape
38591
+ * first marks it handled, and that press is left alone.
38592
+ */
38593
+ function useDrillInEscape(view, store) {
38594
+ const drilledIn = isSidebarDrillInView(view);
38595
+ useEffect(() => {
38596
+ if (!drilledIn) return;
38597
+ const onKeyDown = (event) => {
38598
+ if (event.key !== "Escape" || event.defaultPrevented || isEditingText(event.target)) return;
38599
+ store.getState().sidebarBack();
38600
+ };
38601
+ document.addEventListener("keydown", onKeyDown);
38602
+ return () => document.removeEventListener("keydown", onKeyDown);
38603
+ }, [drilledIn, store]);
38604
+ }
38605
+ /** Escape inside a text field or the canvas's inline editor belongs to that editor (it clears its selection on keyup). */
38606
+ function isEditingText(target) {
38607
+ if (!(target instanceof HTMLElement)) return false;
38608
+ return target.isContentEditable || target.closest("input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], [role=\"textbox\"]") !== null;
38609
+ }
38610
+ //#endregion
38611
+ //#region ../preview-next/src/client/preview/sectionBreak/SectionBreakDiagram.tsx
38612
+ /** Where the break sits: between the section above and this one. */
38613
+ function SectionBreakDiagram({ above, here, breakLabel }) {
38614
+ return /* @__PURE__ */ jsxs("div", {
38615
+ "aria-hidden": "true",
38616
+ className: "overflow-hidden rounded-lg border border-border text-[12px] leading-tight",
38617
+ children: [
38618
+ /* @__PURE__ */ jsx(DiagramRow, {
38619
+ name: above ?? "The section above",
38620
+ role: "the section above",
38621
+ className: "bg-muted/60 text-muted-foreground"
38622
+ }),
38623
+ /* @__PURE__ */ jsxs("div", {
38624
+ className: "flex items-center gap-1.5 border-y border-dashed border-primary/50 px-2.5 py-1 font-semibold text-primary",
38625
+ children: [/* @__PURE__ */ jsx("span", { className: "h-px w-3 bg-current" }), breakLabel]
38626
+ }),
38627
+ /* @__PURE__ */ jsx(DiagramRow, {
38628
+ name: here ?? "This section",
38629
+ role: "this section",
38630
+ className: "font-medium"
38631
+ })
38632
+ ]
38633
+ });
38634
+ }
38635
+ function DiagramRow({ name, role, className }) {
38636
+ return /* @__PURE__ */ jsxs("div", {
38637
+ className: cn("flex min-w-0 gap-1 px-2.5 py-1.5", className),
38638
+ children: [/* @__PURE__ */ jsx("span", {
38639
+ className: "truncate",
38640
+ children: name
38641
+ }), /* @__PURE__ */ jsxs("span", {
38642
+ className: "shrink-0 font-normal text-muted-foreground",
38643
+ children: ["· ", role]
38644
+ })]
38645
+ });
38646
+ }
38647
+ //#endregion
38648
+ //#region ../preview-next/src/client/preview/sectionBreak/SectionBreakView.tsx
38649
+ /**
38650
+ * The "Section break" view: where the section meets the one above, the
38651
+ * break's family and style, its layers and their colours, and where the
38652
+ * choice comes from. Every change is made by `changeSectionBreak` from the
38653
+ * break the page shows now, so it only ever asks for what the style offers.
38654
+ */
38655
+ function SectionBreakView({ blockId, sdkConfig }) {
38656
+ const sectionBreak = useSectionBreak(blockId, sdkConfig);
38657
+ if (!sectionBreak) return /* @__PURE__ */ jsx("p", {
38658
+ className: "text-[12.5px] text-muted-foreground",
38659
+ children: "This section has no section above it, so there’s no break to choose."
38660
+ });
38661
+ return /* @__PURE__ */ jsx(SectionBreakControls, { sectionBreak });
38662
+ }
38663
+ function SectionBreakControls({ sectionBreak }) {
38664
+ const { boundary, shown, source, names } = sectionBreak;
38665
+ const note = sectionBreakNotShownNote(useSectionBreakOutcome(boundary));
38666
+ const family = boundary.breakOffer.find((entry) => entry.family === shown.family) ?? null;
38667
+ const change = (next) => {
38668
+ const edge = changeSectionBreak(boundary.breakOffer, shown, next);
38669
+ if (edge) sectionBreak.save(edge);
38670
+ };
38671
+ return /* @__PURE__ */ jsxs("div", {
38672
+ className: "space-y-2.5",
38673
+ "data-section-break-view": "",
38674
+ "data-boundary-break-source": source,
38675
+ children: [
38676
+ /* @__PURE__ */ jsx(SectionBreakDiagram, {
38677
+ above: names.above,
38678
+ here: names.here,
38679
+ breakLabel: sectionBreakName(shown)
38680
+ }),
38681
+ /* @__PURE__ */ jsx(ChoiceChipGroup, {
38682
+ label: "Section break",
38683
+ value: shown.family,
38684
+ options: boundary.breakOffer.map((entry) => ({
38685
+ value: entry.family,
38686
+ label: entry.label
38687
+ })),
38688
+ onValueChange: (next) => change({
38689
+ kind: "family",
38690
+ family: next
38691
+ })
38692
+ }),
38693
+ family && family.variants.length > 1 ? /* @__PURE__ */ jsx(Labelled$1, {
38694
+ label: `${family.label} style`,
38695
+ children: /* @__PURE__ */ jsx(ChoiceChipGroup, {
38696
+ label: `${family.label} style`,
38697
+ value: shown.variant ?? null,
38698
+ options: family.variants.map((entry) => ({
38699
+ value: entry.variant,
38700
+ label: entry.label
38701
+ })),
38702
+ onValueChange: (variant) => change({
38703
+ kind: "variant",
38704
+ variant
38705
+ })
38706
+ })
38707
+ }) : null,
38708
+ family ? /* @__PURE__ */ jsx(LayersAndColours, {
38709
+ family,
38710
+ sectionBreak,
38711
+ onChange: change
38712
+ }) : null,
38713
+ /* @__PURE__ */ jsx(SourceLine, {
38714
+ source,
38715
+ sectionBreak
38716
+ }),
38717
+ note ? /* @__PURE__ */ jsx("p", {
38718
+ "data-boundary-status": note.kind,
38719
+ className: "text-[12.5px] leading-snug text-muted-foreground",
38720
+ children: note.text
38721
+ }) : null
38722
+ ]
38723
+ });
38724
+ }
38725
+ /** Layers when the family offers more than one; colours only once there's a layer behind to colour. */
38726
+ function LayersAndColours({ family, sectionBreak, onChange }) {
38727
+ const { shown, palette, edges } = sectionBreak;
38728
+ const presets = shownColourPresets(family, palette);
38729
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [family.layers.length > 1 ? /* @__PURE__ */ jsx(Labelled$1, {
38730
+ label: "Layers",
38731
+ className: "pt-1",
38732
+ children: /* @__PURE__ */ jsx(SegmentedControl, {
38733
+ size: "sm",
38734
+ "aria-label": "Layers",
38735
+ className: "w-full",
38736
+ value: String(shown.layers),
38737
+ options: family.layers.map((layers) => ({
38738
+ value: String(layers),
38739
+ label: SECTION_BREAK_LAYER_LABELS[layers]
38740
+ })),
38741
+ onValueChange: (value) => {
38742
+ const layers = family.layers.find((candidate) => String(candidate) === value);
38743
+ if (layers) onChange({
38744
+ kind: "layers",
38745
+ layers
38746
+ });
38747
+ }
38748
+ })
38749
+ }) : null, shown.layers > 1 && presets.length > 1 ? /* @__PURE__ */ jsx(Labelled$1, {
38750
+ label: "Colours",
38751
+ className: "pt-1",
38752
+ children: /* @__PURE__ */ jsx(PreviewTileGroup, {
38753
+ label: "Colours",
38754
+ size: "wide",
38755
+ columns: 2,
38756
+ value: shown.colourPreset,
38757
+ onValueChange: (colourPreset) => onChange({
38758
+ kind: "colourPreset",
38759
+ colourPreset
38760
+ }),
38761
+ options: presets.map((colourPreset) => ({
38762
+ value: colourPreset,
38763
+ label: SECTION_BREAK_COLOUR_LABELS[colourPreset],
38764
+ preview: /* @__PURE__ */ jsx(SectionBreakDrawing, {
38765
+ edge: {
38766
+ ...shown,
38767
+ colourPreset
38768
+ },
38769
+ above: sectionBreakTileColours.above,
38770
+ here: sectionBreakTileColours.here,
38771
+ edges,
38772
+ palette,
38773
+ seed: "colour-tile"
38774
+ })
38775
+ }))
38776
+ })
38777
+ }) : null] });
38778
+ }
38779
+ function Labelled$1({ label, className, children }) {
38780
+ return /* @__PURE__ */ jsxs("div", {
38781
+ className: cn("space-y-1.5", className),
38782
+ children: [/* @__PURE__ */ jsx("div", {
38783
+ "aria-hidden": "true",
38784
+ className: "text-[12.5px] font-medium text-muted-foreground",
38785
+ children: label
38786
+ }), children]
38787
+ });
38788
+ }
38789
+ function SourceLine({ source, sectionBreak }) {
38790
+ switch (source) {
38791
+ case "site-style-default": return /* @__PURE__ */ jsx("p", {
38792
+ className: "text-[12.5px] text-muted-foreground",
38793
+ children: "Your site style picks this break."
38794
+ });
38795
+ case "page-flow-default": return /* @__PURE__ */ jsx("p", {
38796
+ className: "text-[12.5px] text-muted-foreground",
38797
+ children: "Your page flow picks this break."
38798
+ });
38799
+ case "user-pinned":
38800
+ case "unavailable": return /* @__PURE__ */ jsxs("p", {
38801
+ className: "text-[12.5px] leading-snug text-muted-foreground",
38802
+ "data-boundary-status": source === "unavailable" ? "saved-break-unavailable" : void 0,
38803
+ children: [source === "user-pinned" ? "Chosen for this section. " : `${sectionBreakFallbackText(sectionBreak.shown)} `, /* @__PURE__ */ jsx(Button$1, {
38804
+ variant: "link",
38805
+ size: "sm",
38806
+ className: "h-auto p-0 text-[12.5px]",
38807
+ onClick: sectionBreak.useDefault,
38808
+ children: "Use default break"
38809
+ })]
38810
+ });
38811
+ }
38812
+ }
38813
+ //#endregion
38814
+ //#region ../preview-next/src/client/preview/sectionBackground/BackgroundView.tsx
38815
+ const EMPTY_CONTENT = {};
38816
+ /**
38817
+ * The "Background" view, drilled into from a section's Look: Texture and
38818
+ * Colour change, then More colours (the palette and its shades). Changes go
38819
+ * through the same Look actions as the swatches in the Look section.
38820
+ */
38821
+ function BackgroundView({ blockId, blockItems, uiStore }) {
38822
+ const toolbar = useBackgroundToolbar(blockId, blockItems, uiStore);
38823
+ const shown = useSectionBackgroundShown(blockId, toolbar?.background ?? null);
38824
+ const state = shown?.kind === "grounds" ? shown.state : null;
38825
+ if (!toolbar || !state) return /* @__PURE__ */ jsx("p", {
38826
+ className: "text-[12.5px] text-muted-foreground",
38827
+ children: "This section’s background can’t be changed here."
38828
+ });
38829
+ return /* @__PURE__ */ jsx(BackgroundDetails, {
38830
+ state,
38831
+ toolbar
38832
+ });
38833
+ }
38834
+ /** The selected section's Look toolbar, from its draft content and the page design. */
38835
+ function useBackgroundToolbar(blockId, blockItems, uiStore) {
38836
+ const block = blockItems.find((candidate) => candidate.id === blockId) ?? null;
38837
+ const content = useBlockCurrentValues(uiStore, blockId, block?.content ?? EMPTY_CONTENT);
38838
+ const { state: pageDesign } = usePreviewPageDesignEditorState();
38839
+ const designBlock = pageDesign.kind === "loaded" ? pageDesign.editorModel.blocks.find((candidate) => String(candidate.blockId) === String(blockId)) ?? null : null;
38840
+ return useSelectedBlockLook({
38841
+ blockId,
38842
+ blockKind: block?.kind ?? "",
38843
+ content,
38844
+ designBlock
38845
+ }).toolbar;
38846
+ }
38847
+ function BackgroundDetails({ state, toolbar }) {
38848
+ const { menus, colours } = state;
38849
+ const stored = state.control.treatment;
38850
+ return /* @__PURE__ */ jsxs("div", {
38851
+ className: "space-y-5",
38852
+ "data-section-background-view": "",
38853
+ children: [
38854
+ state.treatmentsUnavailable ? /* @__PURE__ */ jsx("p", {
38855
+ className: "text-[12.5px] leading-snug text-muted-foreground",
38856
+ "data-treatments-unavailable": state.treatmentsUnavailable,
38857
+ children: TREATMENTS_UNAVAILABLE_NOTES[state.treatmentsUnavailable]
38858
+ }) : null,
38859
+ menus ? /* @__PURE__ */ jsxs("div", {
38860
+ className: "space-y-3",
38861
+ children: [/* @__PURE__ */ jsx(TreatmentMenuRow, {
38862
+ label: "Texture",
38863
+ menu: menus.texture,
38864
+ state,
38865
+ onChoose: (key) => {
38866
+ const texture = textureSetting(key);
38867
+ if (texture) toolbar.chooseTreatment(changedSectionTreatment(stored, { texture }));
38868
+ }
38869
+ }), /* @__PURE__ */ jsx(TreatmentMenuRow, {
38870
+ label: "Colour change",
38871
+ menu: menus.tone,
38872
+ state,
38873
+ onChoose: (key) => {
38874
+ const tone = toneSetting(menus.tone, key);
38875
+ if (tone) toolbar.chooseTreatment(changedSectionTreatment(stored, { tone }));
38876
+ }
38877
+ })]
38878
+ }) : null,
38879
+ colours ? /* @__PURE__ */ jsx("div", {
38880
+ className: menus ? "border-t border-border pt-4" : void 0,
38881
+ children: /* @__PURE__ */ jsx(MoreColoursChoice, {
38882
+ colours,
38883
+ chosen: state.control.colour.kind === "colour" ? state.control.colour.token : null,
38884
+ onChoose: toolbar.chooseColour
38885
+ })
38886
+ }) : null
38887
+ ]
38888
+ });
38889
+ }
38890
+ const TREATMENTS_UNAVAILABLE_NOTES = { gradient: "Texture and colour change don’t work on a gradient background. Pick a colour to use them." };
38891
+ /** The trigger names the choice; each item's drawing stays in the open menu. */
38892
+ const menuTriggerClass = "w-full [&>[data-slot=select-value]]:min-w-0 [&_[data-ground-swatch]]:hidden [&_[data-option-unavailable]]:hidden";
38893
+ /**
38894
+ * A menu with its label above it: "Style default (darker at the bottom)"
38895
+ * doesn't fit beside a label in the sidebar. When the page turned the choice
38896
+ * off on this colour, the trigger reads "None" and says why underneath.
38897
+ */
38898
+ function TreatmentMenuRow({ label, menu, state, onChoose }) {
38899
+ const id = useId();
38900
+ const palette = usePreviewPalette();
38901
+ return /* @__PURE__ */ jsxs("div", {
38902
+ className: "space-y-1.5",
38903
+ "data-treatment-menu": label,
38904
+ "data-turned-off": menu.turnedOff ? "" : void 0,
38905
+ children: [
38906
+ /* @__PURE__ */ jsx("label", {
38907
+ id: `${id}-label`,
38908
+ className: "block text-sm font-semibold leading-5 text-foreground",
38909
+ children: label
38910
+ }),
38911
+ /* @__PURE__ */ jsxs(Select$1, {
38912
+ value: menu.selected,
38913
+ onValueChange: (key) => {
38914
+ if (key !== menu.selected) onChoose(key);
38915
+ },
38916
+ children: [/* @__PURE__ */ jsx(SelectTrigger, {
38917
+ size: "sm",
38918
+ "aria-labelledby": `${id}-label`,
38919
+ "aria-describedby": menu.turnedOff ? `${id}-off` : void 0,
38920
+ className: menuTriggerClass,
38921
+ children: menu.turnedOff ? /* @__PURE__ */ jsx("span", {
38922
+ className: "text-muted-foreground",
38923
+ children: "None"
38924
+ }) : /* @__PURE__ */ jsx(SelectValue, {})
38925
+ }), /* @__PURE__ */ jsx(SelectContent, {
38926
+ align: "end",
38927
+ children: menu.options.map((option) => /* @__PURE__ */ jsxs(SelectItem, {
38928
+ value: option.key,
38929
+ disabled: option.unavailable !== void 0 && option.key !== menu.selected,
38930
+ children: [/* @__PURE__ */ jsx(GroundSwatch, {
38931
+ paint: {
38932
+ base: state.base,
38933
+ ...option.finish
38934
+ },
38935
+ finishes: state.control.finishes,
38936
+ palette,
38937
+ className: "size-7 shrink-0 rounded-[5px] border border-border"
38938
+ }), /* @__PURE__ */ jsxs("span", {
38939
+ className: "flex min-w-0 flex-col",
38940
+ children: [/* @__PURE__ */ jsx("span", {
38941
+ className: "truncate",
38942
+ children: option.label
38943
+ }), option.unavailable ? /* @__PURE__ */ jsx("span", {
38944
+ "data-option-unavailable": "",
38945
+ className: "text-xs text-muted-foreground",
38946
+ children: option.unavailable
38947
+ }) : null]
38948
+ })]
38949
+ }, option.key))
38950
+ })]
38951
+ }),
38952
+ menu.kept ? /* @__PURE__ */ jsxs("p", {
38953
+ className: "text-[12.5px] leading-snug text-muted-foreground",
38954
+ "data-kept-choice": "",
38955
+ children: [
38956
+ menu.kept,
38957
+ " isn’t offered by this style, so you’re seeing the style default. It comes back if you switch style again.",
38958
+ " ",
38959
+ /* @__PURE__ */ jsxs("button", {
38960
+ type: "button",
38961
+ onClick: () => onChoose(menu.selected),
38962
+ className: "font-semibold text-foreground underline underline-offset-2",
38963
+ children: ["Forget ", menu.kept.toLowerCase()]
38964
+ })
38965
+ ]
38966
+ }) : null,
38967
+ menu.turnedOff ? /* @__PURE__ */ jsx("p", {
38968
+ id: `${id}-off`,
38969
+ className: "text-[12.5px] leading-snug text-muted-foreground",
38970
+ children: "That would make the text hard to read on this colour, so it’s turned off here."
38971
+ }) : null
38972
+ ]
38973
+ });
38974
+ }
38975
+ /** The palette's colours, then a row of shades for each of the main colours. */
38976
+ function MoreColoursChoice({ colours, chosen, onChoose }) {
38977
+ return /* @__PURE__ */ jsxs("div", {
38978
+ className: "space-y-3",
38979
+ children: [
38980
+ /* @__PURE__ */ jsx("div", {
38981
+ className: "text-sm font-semibold leading-5 text-foreground",
38982
+ children: "More colours"
38983
+ }),
38984
+ /* @__PURE__ */ jsx(Labelled, {
38985
+ label: "Your colours",
38986
+ children: /* @__PURE__ */ jsx(PreviewTileGroup, {
38987
+ label: "Your colours",
38988
+ size: "swatch",
38989
+ columns: swatchColumns(colours.yours.length),
38990
+ value: chosen,
38991
+ onValueChange: onChoose,
38992
+ options: colours.yours.map((swatch) => ({
38993
+ value: swatch.token,
38994
+ label: swatch.label,
38995
+ preview: /* @__PURE__ */ jsx(ColourSwatch, { hex: swatch.hex })
38996
+ }))
38997
+ })
38998
+ }),
38999
+ colours.shades.length > 0 ? /* @__PURE__ */ jsx(Labelled, {
39000
+ label: "Shades",
39001
+ children: /* @__PURE__ */ jsx("div", {
39002
+ className: "space-y-1.5",
39003
+ children: colours.shades.map((row) => /* @__PURE__ */ jsx(PreviewTileGroup, {
39004
+ label: row.label,
39005
+ size: "swatch",
39006
+ columns: 5,
39007
+ value: chosen,
39008
+ onValueChange: onChoose,
39009
+ options: row.swatches.map((swatch) => ({
39010
+ value: swatch.token,
39011
+ label: swatch.label,
39012
+ preview: /* @__PURE__ */ jsx(ColourSwatch, { hex: swatch.hex })
39013
+ }))
39014
+ }, row.label))
39015
+ })
39016
+ }) : null
39017
+ ]
39018
+ });
39019
+ }
39020
+ function Labelled({ label, children }) {
39021
+ return /* @__PURE__ */ jsxs("div", {
39022
+ className: "space-y-1.5",
39023
+ children: [/* @__PURE__ */ jsx("p", {
39024
+ "aria-hidden": "true",
39025
+ className: "text-xs font-medium text-muted-foreground",
39026
+ children: label
39027
+ }), children]
39028
+ });
39029
+ }
39030
+ //#endregion
38228
39031
  //#region ../preview-next/src/client/preview/sidebar/SearchResultPreview.tsx
38229
39032
  /**
38230
39033
  * Roughly how the page appears as a search result, from its current details:
@@ -38406,6 +39209,7 @@ function PreviewEditorSidebar(props) {
38406
39209
  surfaceId
38407
39210
  ]);
38408
39211
  const panelRef = useRef(null);
39212
+ useDrillInEscape(view, uiStore);
38409
39213
  useEffect(() => {
38410
39214
  const panel = panelRef.current;
38411
39215
  if (!requestId || !panel || uiStore.getState().focusRequest || panel.contains(document.activeElement)) return;
@@ -38521,6 +39325,15 @@ function SidebarTaskView({ props, view, requestId, uiStoreForBlockEditor, linked
38521
39325
  sdkConfig: props.sdkConfig
38522
39326
  })
38523
39327
  });
39328
+ case "blockSectionBreak": return /* @__PURE__ */ jsx(SectionBreakView, {
39329
+ blockId: view.target.blockId,
39330
+ sdkConfig: props.sdkConfig ?? null
39331
+ });
39332
+ case "blockBackground": return /* @__PURE__ */ jsx(BackgroundView, {
39333
+ blockId: view.target.blockId,
39334
+ blockItems: controller.blocks.list,
39335
+ uiStore: uiStoreForBlockEditor
39336
+ });
38524
39337
  case "pageSection": return /* @__PURE__ */ jsx(SidebarPageSection, {
38525
39338
  props,
38526
39339
  blockId: view.blockId,