@riverbankcms/sdk 0.183.0 → 0.185.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 (236) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  9. package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
  10. package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
  11. package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  12. package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
  13. package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
  14. package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.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-CMNev0gz.d.ts} +19 -8
  55. package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
  56. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
  57. package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
  68. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  77. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
  78. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
  80. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  81. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
  82. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
  83. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
  84. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  85. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
  86. package/dist/client/bookings.mjs +5 -5
  87. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  88. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  89. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  90. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
  91. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  92. package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
  93. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
  94. package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  95. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  96. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  97. package/dist/client/client.mjs +61 -48
  98. package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
  99. package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
  100. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  101. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  102. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
  103. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
  104. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  105. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  106. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  107. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
  108. package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
  109. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
  110. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
  111. package/dist/client/gifting/client.mjs +8 -8
  112. package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
  113. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
  114. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
  115. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
  116. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  117. package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
  118. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
  119. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
  120. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
  121. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  122. package/dist/client/portal/client.mjs +999 -81
  123. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  124. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
  125. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  126. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  127. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  128. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  129. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
  130. package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
  131. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  132. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
  133. package/dist/client/rendering/client.mjs +28 -27
  134. package/dist/client/rendering/islands.mjs +1 -1
  135. package/dist/client/rendering.mjs +5 -5
  136. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  137. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  138. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  139. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  140. package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
  141. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
  142. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  143. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  144. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
  145. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  146. package/dist/client/spam-protection.mjs +1 -1
  147. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  148. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  149. package/dist/client/src-CXOxpNtj.mjs +3 -0
  150. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
  151. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
  152. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  153. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
  154. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
  155. package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
  156. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
  157. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  158. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  159. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  160. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
  161. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
  162. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
  163. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
  164. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
  165. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  166. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  167. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
  168. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  169. package/dist/preview-next/client/runtime.mjs +3 -3
  170. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  171. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
  172. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  173. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  174. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
  175. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
  176. package/dist/preview-next/container-responsive.css +158 -3
  177. package/dist/preview-next/keepAlive.mjs +1 -1
  178. package/dist/preview-next/middleware.mjs +1 -1
  179. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
  180. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  181. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
  182. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
  183. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
  184. package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
  185. package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
  186. package/dist/server/config-validation.mjs +1 -1
  187. package/dist/server/config.mjs +2 -2
  188. package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
  189. package/dist/server/data/resolveBlockData.mjs +1 -1
  190. package/dist/server/index.mjs +3 -3
  191. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  192. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  193. package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
  194. package/dist/server/manifest.mjs +2 -2
  195. package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  196. package/dist/server/navigation.mjs +1 -1
  197. package/dist/server/next.mjs +9 -9
  198. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  199. package/dist/server/page-converter.mjs +17 -4
  200. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
  201. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
  202. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
  203. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  204. package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
  205. package/dist/server/portal.mjs +3 -3
  206. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  207. package/dist/server/prebuild.mjs +1 -1
  208. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  209. package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
  210. package/dist/server/rendering/components/pageShared.mjs +1 -1
  211. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  212. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  213. package/dist/server/rendering/server.mjs +4 -4
  214. package/dist/server/rendering.mjs +9 -9
  215. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  216. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
  217. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  218. package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
  219. package/dist/server/server.mjs +3 -3
  220. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
  221. package/dist/server/theme-bridge.mjs +5 -4
  222. package/dist/server/theme.mjs +2 -2
  223. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  224. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
  225. package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
  226. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
  227. package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
  228. package/dist/styles/index.css +684 -181
  229. package/package.json +1 -1
  230. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  231. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  232. package/dist/client/src-DqMbCjI1.mjs +0 -3
  233. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
  234. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  235. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  236. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { $r as readinessFactsFromPayload, Cd as unsafeAsEditorBlockId, Cn as useSidebarView, El as cn, Mn as canDiscardDraft, Pu as authoredValuesEqual, Q as useFooterPanelOwnsNotice, Qr as publishReadinessWarning, St as EditorWriteSurface, Us as resolveBlockTitle, V as usePreviewAuth, Wn as editorAuthoredBlockDocument, Zr as PUBLISH_READINESS_COPY, _c as DialogDescription, bc as DialogTitle, bn as useEditorUiStore, ct as useEntryEditorController, dn as useEditor, dt as useServerRefresh, ft as useSessionJournal, gc as DialogContent, ja as pageTemplateFromEntry, ln as PREVIEW_CHROME_Z_INDEX, mc as Dialog, mt as useSessionJournalHistory, n as usePreviewAssistantSlot, pc as Spinner, pd as displayedValues, qs as editorAdmissionIsOpen, rc as unwrapResponse, vc as DialogFooter, vl as Button, xl as cva, xn as useEditorUiStoreInstance, yc as DialogHeader } from "./previewAssistantSlot-CqH91EwA.mjs";
3
- import { Q as EllipsisVertical, S as Palette, Y as Eye, _ as Redo2, ft as ChevronDown, o as Undo2, s as TriangleAlert, y as Pencil } from "./lucide-react-eAi3tDAr.mjs";
4
- import { i as formatEditorStatus, n as useEditorWriteState, o as EditorHistoryButtons, r as decideEditorStatus } from "./useAutosaveStatus-BhPg4e-r.mjs";
5
- import { _t as DropdownMenuTrigger, at as Tooltip, c as needsSetupAsk, ct as TooltipTrigger, dt as DropdownMenuContent, ft as DropdownMenuItem, gt as DropdownMenuSeparator, ht as DropdownMenuRadioItem, lt as Badge, mt as DropdownMenuRadioGroup, n as resolveBlockManifest, ot as TooltipContent, pt as DropdownMenuLabel, t as useOpenBlockForSetup, ut as DropdownMenu } from "./useOpenBlockForSetup-BaWUF9D7.mjs";
6
- import { c as writePreviewThemeCookie, d as FixedBottomSurface, n as usePreviewChromeRoot, o as readPreviewThemeCookie } from "./previewChromeRoot-B3ySEu6p.mjs";
2
+ import { $ as useFooterPanelOwnsNotice, $d as unsafeAsEditorBlockId, $r as readinessFactsFromPayload, Ct as EditorWriteSurface, Gn as editorAuthoredBlockDocument, H as usePreviewAuth, Jc as DialogFooter, Jl as Button, Kc as DialogContent, Ma as pageTemplateFromEntry, Nn as canDiscardDraft, Qr as publishReadinessWarning, Sn as useEditorUiStoreInstance, Uc as Spinner, Ud as displayedValues, Wc as Dialog, Xc as DialogTitle, Yc as DialogHeader, Zl as cva, Zr as PUBLISH_READINESS_COPY, bc as editorAdmissionIsOpen, fn as useEditor, ft as useServerRefresh, gc as resolveBlockTitle, ht as useSessionJournalHistory, jc as unwrapResponse, lt as useEntryEditorController, n as usePreviewAssistantSlot, nu as cn, pt as useSessionJournal, qc as DialogDescription, ud as authoredValuesEqual, un as PREVIEW_CHROME_Z_INDEX, wn as useSidebarView, xn as useEditorUiStore } from "./previewAssistantSlot-DcEwU9l_.mjs";
3
+ import { C as Palette, Z as Eye, b as Pencil, c as TriangleAlert, et as EllipsisVertical, mt as ChevronDown, s as Undo2, v as Redo2 } from "./lucide-react-B4c6U3ZU.mjs";
4
+ import { i as formatEditorStatus, n as useEditorWriteState, o as EditorHistoryButtons, r as decideEditorStatus } from "./useAutosaveStatus-CdFnzKac.mjs";
5
+ import { _t as DropdownMenuTrigger, at as Tooltip, c as needsSetupAsk, ct as TooltipTrigger, dt as DropdownMenuContent, ft as DropdownMenuItem, gt as DropdownMenuSeparator, ht as DropdownMenuRadioItem, lt as Badge, mt as DropdownMenuRadioGroup, n as resolveBlockManifest, ot as TooltipContent, pt as DropdownMenuLabel, t as useOpenBlockForSetup, ut as DropdownMenu } from "./useOpenBlockForSetup-B62h7dhR.mjs";
6
+ import { c as writePreviewThemeCookie, d as FixedBottomSurface, n as usePreviewChromeRoot, o as readPreviewThemeCookie } from "./previewChromeRoot-VqseF0yf.mjs";
7
7
  import * as React$1 from "react";
8
8
  import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -64,6 +64,35 @@ const SplitButton = React$1.forwardRef(({ children, menuItems, menuAriaLabel, gr
64
64
  });
65
65
  SplitButton.displayName = "SplitButton";
66
66
  //#endregion
67
+ //#region ../ui/src/lib/use-delayed-flag.ts
68
+ /**
69
+ * True once `active` has held for `delay` milliseconds.
70
+ *
71
+ * This is what keeps a spinner from flashing on an action that finishes
72
+ * quickly. It lives on its own so that anything drawing its own pending
73
+ * indicator gets the same timing rather than reimplementing it, and so the two
74
+ * cannot drift apart.
75
+ */
76
+ function useDelayedFlag(active, delay) {
77
+ const [visible, setVisible] = useState(active && delay <= 0);
78
+ useEffect(() => {
79
+ if (!active) {
80
+ setVisible(false);
81
+ return;
82
+ }
83
+ if (delay <= 0) {
84
+ setVisible(true);
85
+ return;
86
+ }
87
+ const timer = setTimeout(() => {
88
+ if (typeof window === "undefined") return;
89
+ setVisible(true);
90
+ }, delay);
91
+ return () => clearTimeout(timer);
92
+ }, [active, delay]);
93
+ return visible;
94
+ }
95
+ //#endregion
67
96
  //#region ../editor/src/components/EditingToggle.tsx
68
97
  const FLOATING_STYLE = { zIndex: PREVIEW_CHROME_Z_INDEX };
69
98
  /**
@@ -73,14 +102,26 @@ const EditingToggle = ({ placement = "floating" }) => {
73
102
  const { isEditingMode } = useEditor();
74
103
  return isEditingMode ? /* @__PURE__ */ jsx(ViewAsVisitorButton, { placement }) : /* @__PURE__ */ jsx(EditPageButton, { placement });
75
104
  };
76
- /** Viewing: a labelled way back into editing, since there's no bar to hold it. */
105
+ const OPENING_LABEL = "Getting ready…";
106
+ /** Long enough that an ordinary open never shows it. */
107
+ const SLOW_OPEN_MS = 8e3;
108
+ /**
109
+ * Viewing: a labelled way back into editing, since there's no bar to hold it.
110
+ * Pressed before the editor is ready, it waits here and editing opens by itself.
111
+ */
77
112
  function EditPageButton({ placement }) {
78
- const { isEditingPending, toggleEditingMode } = useEditor();
113
+ const { isEditingPending, setEditingMode } = useEditor();
79
114
  const floating = placement === "floating";
80
- return /* @__PURE__ */ jsxs(Button, {
115
+ const slow = useDelayedFlag(isEditingPending, SLOW_OPEN_MS);
116
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [floating && slow ? /* @__PURE__ */ jsx("p", {
117
+ role: "status",
118
+ className: "fixed bottom-20 right-6 max-w-64 rounded-2xl border border-foreground/15 bg-background px-4 py-3 text-sm shadow-lg",
119
+ style: FLOATING_STYLE,
120
+ children: "This is taking longer than usual. The editor will open by itself when it’s ready."
121
+ }) : null, /* @__PURE__ */ jsxs(Button, {
81
122
  type: "button",
82
123
  variant: "outline",
83
- onClick: toggleEditingMode,
124
+ onClick: () => setEditingMode(true),
84
125
  disabled: isEditingPending,
85
126
  "aria-busy": isEditingPending,
86
127
  className: `${floating ? "fixed bottom-6 right-6" : ""} h-10 cursor-pointer gap-2 rounded-full border-foreground/80 bg-background px-4 font-semibold shadow-lg`,
@@ -88,15 +129,15 @@ function EditPageButton({ placement }) {
88
129
  children: [isEditingPending ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx(Pencil, {
89
130
  className: "h-4 w-4",
90
131
  "aria-hidden": true
91
- }), isEditingPending ? "Switching to edit…" : "Edit page"]
92
- });
132
+ }), isEditingPending ? OPENING_LABEL : "Edit page"]
133
+ })] });
93
134
  }
94
135
  /** Editing: an icon that leaves edit mode, named in its tooltip. */
95
136
  function ViewAsVisitorButton({ placement }) {
96
137
  const { isEditingPending, toggleEditingMode } = useEditor();
97
138
  const [tooltipOpen, setTooltipOpen] = useState(false);
98
139
  const floating = placement === "floating";
99
- const label = isEditingPending ? "Switching to edit…" : "View as a visitor";
140
+ const label = isEditingPending ? OPENING_LABEL : "View as a visitor";
100
141
  return /* @__PURE__ */ jsxs(Tooltip, {
101
142
  open: isEditingPending || tooltipOpen,
102
143
  onOpenChange: setTooltipOpen,
@@ -1009,8 +1050,9 @@ function PreviewEditorChrome({ dashboardBaseUrl = null, inMaintenanceMode = fals
1009
1050
  publish: controller.actions.publish
1010
1051
  });
1011
1052
  const portalTarget = usePreviewChromeRoot();
1053
+ const { isEditingMode } = useEditor();
1012
1054
  if (!portalTarget || !canEdit) return null;
1013
- return createGatedPortal(/* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EditorChrome, {
1055
+ return createGatedPortal(isEditingMode, /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EditorChrome, {
1014
1056
  toolbarOverrides: computedToolbar,
1015
1057
  onPublish: publishGate.requestPublish,
1016
1058
  onDiscard: handleDiscard,
@@ -1046,9 +1088,16 @@ function PublishReadinessPrompt({ gate }) {
1046
1088
  onSetUp: (block) => setUp(unsafeAsEditorBlockId(block.blockId), block.repair)
1047
1089
  });
1048
1090
  }
1049
- /** Editor chrome is portalled out of the sidebar's gate, so it carries its own write surface. */
1050
- function createGatedPortal(chrome, target) {
1051
- return createPortal(/* @__PURE__ */ jsx(EditorWriteSurface, { children: chrome }), target);
1091
+ /**
1092
+ * Editor chrome is portalled out of the sidebar's gate, so it carries its own write surface.
1093
+ * Outside editing the chrome is only the Edit page button, which has to work while the
1094
+ * editor is still opening: pressing it early waits on the button until editing is ready.
1095
+ */
1096
+ function createGatedPortal(editing, chrome, target) {
1097
+ return createPortal(/* @__PURE__ */ jsx(EditorWriteSurface, {
1098
+ gated: editing,
1099
+ children: chrome
1100
+ }), target);
1052
1101
  }
1053
1102
  /** The lifecycle owns failure presentation; only a completed discard refreshes the page. */
1054
1103
  function previewLifecycleHandlers(actions, refresh) {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
3
3
  import { t as PreviewQueryProvider } from "./PreviewQueryProvider-BgIucg_5.mjs";
4
- import { $ as SessionJournalHost, $t as BlockApiProvider, B as renewPreviewSession, Br as LINKED_CONTENT_ENTRY_META_KEY, Ca as planSiteChromePlacement, Cd as unsafeAsEditorBlockId, Cu as indexRenderableMediaAssets, Dn as SIDEBAR_WIDTH, E as PreviewRenderObservationsProvider, El as cn, Et as getEditorClientId, Fn as remoteDraftValues, H as usePreviewToken, Hi as buildResolveImageUrlContext, Hr as getLinkedContentEntryMeta, In as renderSourceFor, Js as editorAdmissionNotice, L as createGuardedPreviewApiClient, Lo as DEFAULT_THEME_RESPONSIVE_MODE, Ml as canEditorWrite, Nn as activeLinkedSaveHandover, Ol as baselineRevisionOf, On as parseStoredSidebarWidth, Pd as assertNever$2, Pn as planLinkedSaveHandoverRetention, Pu as authoredValuesEqual, Qs as API_ENDPOINTS, R as initPreviewAuth, Rn as resolveRenderedValues, Ro as getResponsiveScopeSpec, Sn as useOptionalEditorUiStoreInstance, St as EditorWriteSurface, Su as renderableMediaAssetSchema$1, U as renderSiteChromeBlock, Un as unsafeAsLinkedContentEntryId, Ut as blocksKeys, V as usePreviewAuth, Wu as parseFooterModuleId, Xs as observeEditorAdmission, Ys as editorAdmissionSession, Yt as ImageResolveContextProvider, Zs as OPERATION_ID_HEADER, _ as PreviewFooterProvider, _c as DialogDescription, _t as savedPageSurfaceMetadataReceipt, a as PreviewPageDesignEditorStateProvider, bc as DialogTitle, bn as useEditorUiStore, bt as EditLeaseDiscardedNotice, cn as ApiRequestError, ct as useEntryEditorController, dc as CalloutDescription, dn as useEditor, dt as useServerRefresh, f as PreviewThemeJournalProvider, fd as parseEditLeaseScope, fn as useIsEditingMode, g as previewThemeBase, ga as measureSiteStickyChromeHeightPx, gc as DialogContent, gt as savedContentReceipt, ha as SITE_STICKY_CHROME_HEIGHT_FALLBACK, ht as createEditorApiClientFactory, i as usePreviewSidebarNavigation, ia as themeRuntimeScopeProps, ja as pageTemplateFromEntry, kl as isEdited, ks as assertNever$1, kt as EditorPageTemplateProvider, l as SiteChromeCustomizeProvider, m as usePreviewThemeSourceOptional, ma as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, mc as Dialog, mn as createSnapshotFromPageRecord, na as buildThemeDataAttrs, oc as selectedCanvasBlockId, ot as EntryControllerProvider, p as usePreviewThemeSource, pa as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, pn as createRoutingHelpers, r as PreviewSidebarBootstrap, rc as unwrapResponse, t as PreviewAssistantSlotProvider, uc as Callout, un as EditorProvider, v as useLiveFooterRuntime, va as planSiteOverlayHeaderClearance, vc as DialogFooter, vl as Button, vt as useRetentionTicks, xn as useEditorUiStoreInstance, xt as EditLeaseModal, xu as buildRenderableMediaAssetIndex, ya as siteTopChromeMeasurementTargets, yc as DialogHeader, yt as VIEWING_PARTICIPATION, z as registerPreviewRenewalFetcher } from "./previewAssistantSlot-CqH91EwA.mjs";
5
- import { H as GripVertical } from "./lucide-react-eAi3tDAr.mjs";
6
- import { C as PreviewCompiledThemeProvider, F as mergeResolvedDataContext, Ft as TabsTrigger, Mt as Tabs, Nt as TabsContent, O as SiteFontStorageProvider, Pt as TabsList, T as usePreviewCompiledTheme, V as MediaEditorContextProvider, W as useApiMediaUploader, a as sanitizeDashboardPath, at as ThemeScopeCore, gt as Toaster, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, l as SiteChromeCustomizeButton, n as resolveSiteStyleAccess, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as PreviewChromeLayerProvider, w as PreviewThemeRenderingProvider, x as PREVIEW_SITE_BANNER_ATTRIBUTE } from "./siteStyleAccess-C6eOP6QW.mjs";
7
- import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CIdAg-Tm.mjs";
8
- import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as FixedBottomSurface, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-B3ySEu6p.mjs";
4
+ import { $d as unsafeAsEditorBlockId, $u as indexRenderableMediaAssets, At as EditorPageTemplateProvider, B as registerPreviewRenewalFetcher, Bc as Callout, Bo as getResponsiveScopeSpec, Br as LINKED_CONTENT_ENTRY_META_KEY, Ca as planSiteChromePlacement, Cc as editorAdmissionSession, Cn as useOptionalEditorUiStoreInstance, Ct as EditorWriteSurface, Dt as getEditorClientId, E as PreviewRenderObservationsProvider, Ec as API_ENDPOINTS, Fc as selectedCanvasBlockId, Fn as planLinkedSaveHandoverRetention, H as usePreviewAuth, Hd as parseEditLeaseScope, Hi as buildResolveImageUrlContext, Hr as getLinkedContentEntryMeta, In as remoteDraftValues, Jc as DialogFooter, Jl as Button, Kc as DialogContent, Ln as renderSourceFor, Ma as pageTemplateFromEntry, On as SIDEBAR_WIDTH, Pn as activeLinkedSaveHandover, Qu as renderableMediaAssetSchema$1, R as createGuardedPreviewApiClient, Sc as editorAdmissionNotice, Sn as useEditorUiStoreInstance, St as EditLeaseModal, Tc as OPERATION_ID_HEADER, U as usePreviewToken, V as renewPreviewSession, Vc as CalloutDescription, W as renderSiteChromeBlock, Wc as Dialog, Wn as unsafeAsLinkedContentEntryId, Wt as blocksKeys, Xc as DialogTitle, Xt as ImageResolveContextProvider, Yc as DialogHeader, Zu as buildRenderableMediaAssetIndex, _ as PreviewFooterProvider, _t as savedContentReceipt, a as PreviewPageDesignEditorStateProvider, au as isEdited, bd as parseFooterModuleId, bt as VIEWING_PARTICIPATION, cu as canEditorWrite, dn as EditorProvider, en as BlockApiProvider, et as SessionJournalHost, f as PreviewThemeJournalProvider, fn as useEditor, ft as useServerRefresh, g as previewThemeBase, ga as measureSiteStickyChromeHeightPx, gt as createEditorApiClientFactory, ha as SITE_STICKY_CHROME_HEIGHT_FALLBACK, hn as createSnapshotFromPageRecord, i as usePreviewSidebarNavigation, ia as themeRuntimeScopeProps, iu as baselineRevisionOf, jc as unwrapResponse, kn as parseStoredSidebarWidth, l as SiteChromeCustomizeProvider, ln as ApiRequestError, lt as useEntryEditorController, m as usePreviewThemeSourceOptional, ma as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, mn as createRoutingHelpers, na as buildThemeDataAttrs, nc as assertNever$1, nu as cn, p as usePreviewThemeSource, pa as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, pn as useIsEditingMode, qc as DialogDescription, r as PreviewSidebarBootstrap, st as EntryControllerProvider, t as PreviewAssistantSlotProvider, ud as authoredValuesEqual, uf as assertNever$2, v as useLiveFooterRuntime, va as planSiteOverlayHeaderClearance, vt as savedPageSurfaceMetadataReceipt, wc as observeEditorAdmission, xc as editorAdmissionLoadFailure, xn as useEditorUiStore, xt as EditLeaseDiscardedNotice, ya as siteTopChromeMeasurementTargets, yt as useRetentionTicks, z as initPreviewAuth, zn as resolveRenderedValues, zo as DEFAULT_THEME_RESPONSIVE_MODE } from "./previewAssistantSlot-DcEwU9l_.mjs";
5
+ import { W as GripVertical } from "./lucide-react-B4c6U3ZU.mjs";
6
+ import { C as PreviewCompiledThemeProvider, F as mergeResolvedDataContext, Ft as TabsContent, It as TabsList, Lt as TabsTrigger, O as SiteFontStorageProvider, Pt as Tabs, T as usePreviewCompiledTheme, V as MediaEditorContextProvider, W as useApiMediaUploader, a as sanitizeDashboardPath, at as ThemeScopeCore, i as resolvePreviewDashboardSetupHandoff, it as revealEditorElement, l as SiteChromeCustomizeButton, n as resolveSiteStyleAccess, r as buildPreviewDashboardSetupUrl, s as resolvePreviewSetupBannerModel, t as canInspectSiteStyle, v as PreviewChromeLayerProvider, vt as Toaster, w as PreviewThemeRenderingProvider, x as PREVIEW_SITE_BANNER_ATTRIBUTE } from "./siteStyleAccess-BL1fZnUD.mjs";
7
+ import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-DuRUwUrK.mjs";
8
+ import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as FixedBottomSurface, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, o as readPreviewThemeCookie, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-VqseF0yf.mjs";
9
9
  import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
11
  import { useQueryClient } from "@tanstack/react-query";
@@ -2930,23 +2930,28 @@ function PreviewKeepAliveClient({ baseFetch }) {
2930
2930
  }
2931
2931
  //#endregion
2932
2932
  //#region ../preview-next/src/client/preview/PreviewLeaseEditingMode.tsx
2933
- function projectEditingAvailability({ canEdit, requestedEditingMode, editability }) {
2934
- if (!canEdit || !requestedEditingMode) return "blocked";
2933
+ function projectEditingAvailability({ canEdit, requestedEditingMode, editability, admissionRefused }) {
2934
+ if (!canEdit || !requestedEditingMode || admissionRefused) return "blocked";
2935
2935
  if (canEditorWrite(editability)) return "ready";
2936
2936
  if (editability.kind === "acquiring" || editability.kind === "viewing") return "pending";
2937
2937
  return "blocked";
2938
2938
  }
2939
+ function editorAdmissionRefused(admission) {
2940
+ return admission.kind === "bootstrap" ? admission.failure !== null : admission.refusal !== null;
2941
+ }
2939
2942
  /** Derives preview editing permission from the live auth and lease authorities. */
2940
2943
  function PreviewLeaseEditingMode() {
2941
2944
  const { canEdit } = usePreviewAuth();
2942
2945
  const editability = useEditorUiStore((state) => state.editability);
2946
+ const admissionRefused = useEditorUiStore((state) => editorAdmissionRefused(state.getAdmission()));
2943
2947
  const drawerOpen = useEditorUiStore((state) => state.drawerOpen);
2944
2948
  const setDrawerOpen = useEditorUiStore((state) => state.setDrawerOpen);
2945
2949
  const { requestedEditingMode, setEditingAvailability } = useEditor();
2946
2950
  const availability = projectEditingAvailability({
2947
2951
  canEdit,
2948
2952
  requestedEditingMode,
2949
- editability
2953
+ editability,
2954
+ admissionRefused
2950
2955
  });
2951
2956
  useEffect(() => setEditingAvailability(availability), [availability, setEditingAvailability]);
2952
2957
  useEffect(() => {
@@ -3974,19 +3979,23 @@ function previewLeaseThing(isEntry, pageNodeType) {
3974
3979
  if (pageNodeType === "page_surface") return "this event page";
3975
3980
  return isEntry ? "this entry" : "this page";
3976
3981
  }
3982
+ /** Why editing can't start: a failed load or a refusal, never the ordinary wait while it opens. */
3983
+ function editorAdmissionProblem(admission) {
3984
+ return admission.kind === "bootstrap" ? editorAdmissionLoadFailure(admission) : editorAdmissionNotice(admission);
3985
+ }
3977
3986
  function PreviewAccessBanners({ dashboardBaseUrl, surfaceId, isEntry, pageNodeType }) {
3978
3987
  const { state } = usePreviewAuth();
3979
3988
  const { requestedEditingMode, setEditingMode } = useEditor();
3980
3989
  const showDiscardedNotice = useEditorUiStore((editor) => canEditorWrite(editor.editability) && editor.leaseDiscardedChanges);
3981
3990
  const thing = previewLeaseThing(isEntry, pageNodeType);
3982
- const admissionNotice = useEditorUiStore((editor) => editorAdmissionNotice(editor.getAdmission()));
3991
+ const admissionNotice = useEditorUiStore((editor) => editorAdmissionProblem(editor.getAdmission()));
3983
3992
  const active = state === "ok";
3984
3993
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3985
3994
  /* @__PURE__ */ jsx(PreviewAuthBanner, {
3986
3995
  dashboardBaseUrl,
3987
3996
  surfaceId
3988
3997
  }),
3989
- active && admissionNotice ? /* @__PURE__ */ jsx(FixedBottomSurface, {
3998
+ active && requestedEditingMode && admissionNotice ? /* @__PURE__ */ jsx(FixedBottomSurface, {
3990
3999
  variant: "light",
3991
4000
  width: "centered",
3992
4001
  offsetCssVar: "--builder-editor-chrome-offset",
@@ -4447,11 +4456,12 @@ function resolveShellThemeRoles(props, journalSource) {
4447
4456
  } : null;
4448
4457
  }
4449
4458
  const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
4459
+ const loadPreviewEditorSidebar = () => import("./PreviewEditorSidebar-BaKS6H8F.mjs");
4450
4460
  const PreviewEditorSidebar = React.lazy(async () => {
4451
- return { default: (await import("./PreviewEditorSidebar-DVpk5cqp.mjs")).PreviewEditorSidebar };
4461
+ return { default: (await loadPreviewEditorSidebar()).PreviewEditorSidebar };
4452
4462
  });
4453
4463
  const PreviewEditorUI = React.lazy(async () => {
4454
- return { default: (await import("./PreviewEditorUI-XoTtHSFH.mjs")).PreviewEditorUI };
4464
+ return { default: (await import("./PreviewEditorUI-D6IG119o.mjs")).PreviewEditorUI };
4455
4465
  });
4456
4466
  function renderShellProviders(input) {
4457
4467
  if (!input.themeRoles) return input.content;
@@ -4494,7 +4504,24 @@ function PreviewDocumentContent(input) {
4494
4504
  children: input.children
4495
4505
  }) });
4496
4506
  }
4507
+ /** Warm code only. Sidebar reads and effects still start when React mounts it. */
4508
+ function usePreloadPreviewSidebar() {
4509
+ const { canEdit } = usePreviewAuth();
4510
+ useEffect(() => {
4511
+ if (!canEdit) return;
4512
+ const preload = () => {
4513
+ loadPreviewEditorSidebar().catch(() => {});
4514
+ };
4515
+ if (typeof window.requestIdleCallback === "function") {
4516
+ const task = window.requestIdleCallback(preload);
4517
+ return () => window.cancelIdleCallback(task);
4518
+ }
4519
+ const task = window.setTimeout(preload, 1e3);
4520
+ return () => window.clearTimeout(task);
4521
+ }, [canEdit]);
4522
+ }
4497
4523
  function PreviewShellLayout(props) {
4524
+ usePreloadPreviewSidebar();
4498
4525
  const themeRoles = resolveShellThemeRoles(props, usePreviewThemeSourceOptional());
4499
4526
  if (!isOverrideOnlyPreviewShellLayout(props) && !themeRoles) return /* @__PURE__ */ jsx(PreviewThemeUnavailable, {});
4500
4527
  return isOverrideOnlyPreviewShellLayout(props) || themeRoles ? /* @__PURE__ */ jsx(AvailablePreviewShellLayout, {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { $a as ctaButton, $i as readOfferingsGrouping, $s as publicMapLocationParamsSchema, Aa as hiddenFromVisitors, Al as canWriteLinkedEntry, Ar as buildLoadedOfferingsPreviewListing, Ba as faqHeadingFragment, Cd as unsafeAsEditorBlockId, Co as inlineTextToPlainText, D as PreviewRenderPlanProjection, Do as parseInlineTextFromUnknown, Dr as readBlockComposition, Er as blockLookFromContent, Fa as bookingConsentCarrierSchema, Fn as remoteDraftValues, Fr as logger, Fu as generateUuidV4, Ga as testimonialsCarouselFragment, Gr as resolvePageRouteTarget, Gs as isObjectRecord, H as usePreviewToken, Ha as singleButtonFragment, Hi as buildResolveImageUrlContext, Ia as richTextFragment, In as renderSourceFor, Io as mergeContentWithBlockStyleOverrides, Ir as Text$1, Ja as heroCtaRowFragment, Jr as allOutlineBlocks, Ka as testimonialsHeadingFragment, Ki as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Kr as resolveRouteTarget, Ks as isRecord$1, La as headingFragment, Ln as renderedFieldChanges, Lr as getAtPath, Lu as buildMailingListSignupBlockSourceRef, Mr as buildAppointmentServicesView, Nl as bindingSchema, Oa as projectRecurringSchedule, Or as getDefaultComponentRegistry, Pa as publicEventsArraySchema, Pd as assertNever, Po as buildThemeRuntime, Pr as renderInlineText, Qa as heroCopyFragment, Qt as EditorPartsProvider, Qu as sameMailingListPlacementTargeting, Ra as cardFragment, Rn as resolveRenderedValues, Rr as siblingPath, Sa as resolveDateRuntimeContext, Sr as resolveBlockLayout, T as ObservedJoin, Ti as RichText$1, Tr as arrangementHooksFromContent, Ua as formEmbedFragment, Ui as getCurrentResolveImageUrlContext, Un as unsafeAsLinkedContentEntryId, Ur as defaultTransforms, Va as blogFeaturedPostFragment, Vr as coerceLinkedContentEntriesPayload, Wa as formCopyFragment, Wi as setContextResolveImageUrlContext, Wr as resolveEntryRouteTarget, Xr as mapOutlineRegions, Ya as ctaRowFragment, Yr as mapOutlineBlocks, Yu as parseMailingListPlacementTargeting, Zi as offeringsListingFor, _s as pageGround, ai as getBlockDefinition, ao as validateManifestDraft, au as textColorStyle, bn as useEditorUiStore, cd as NO_BLOCK_VERSIONS, ci as normalizeBlockContent, dd as selectedContentVersionId, di as normalizeLocationMapSource, dn as useEditor, dr as createPageRenderPlanReader, ec as calendarWindowQuerySchema, ei as readinessFactsFromLoaders, eo as layoutSectionGround, eu as parseThemeForPersistence, fi as parseLocationMapLoaderResult, fr as planArrangementContent, gi as publicRouteCandidatesSchema, gr as retargetJoinsAcrossOmissions, hi as offeringsPreviewBlockDefinition, ho as parseGeneratedIconSetId, hr as renderedJoinLayout, io as compileManifestContentContract, ja as pageTemplateFromEntry, jd as toUtcIsoDateTimeString, jr as resolveEventDetailsPresentation, ld as readEditorBlockVersionsFromPlacement, li as LOCATION_MAP_LOADER_KEYS, lu as defaultThemeTokens, mo as parseGeneratedIconAssetId, mr as joinSlotKey, no as defineFragment, oi as hasBlockDefinition, pi as resolveLocationMapLocation, po as parseBlockIconValue, pr as composePageJoins, qa as ctaCopyFragment, qi as groupOfferingRunsByCourse, qr as createEditorPresentationPageReader, qt as clientComponentRegistry, rc as unwrapResponse, ro as runTransforms, s as usePreviewPageDesignRenderState, su as parseSurfaceTree, ta as normalizeEventRegistrationPageSurfaceSubject, ti as selectBlockContent, to as bodyCopyFragment, ud as readPublishedBlockPlacement, ui as describeUnresolvedLocationMapLocation, vo as coerceInlineTextWithFallback, wi as cardListPresentationSchemaShape, wo as isInlineTextEmpty, wr as resolveDefaultBlockTree, xa as readRuntimeNow, xn as useEditorUiStoreInstance, xr as makeDefaultBlockComponent, yo as deriveInlineTextFieldChanges, za as faqAccordionFragment } from "./previewAssistantSlot-CqH91EwA.mjs";
3
- import { Bt as projectPublicLocation, Vt as publicLocationSchema, zt as parseLocationValue } from "./lucide-react-eAi3tDAr.mjs";
4
- import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-C6eOP6QW.mjs";
5
- import { D as InlineTextEditor, E as parseRichTextDoc, O as decideDocumentReplacement, T as EMPTY_DOC, g as useRichTextImageProjection, k as resolveSdkFooterMode, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as useRichTextEditor, x as RichTextEditorSurface } from "./PageSectionToolbar-D8srnz9R.mjs";
6
- import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-VQHsRg2u.mjs";
2
+ import { $a as heroCopyFragment, $d as unsafeAsEditorBlockId, $i as readOfferingsGrouping, $t as EditorPartsProvider, Ar as buildLoadedOfferingsPreviewListing, Au as parseThemeForPersistence, Ba as faqAccordionFragment, Bd as readPublishedBlockPlacement, D as PreviewRenderPlanProjection, Dc as publicMapLocationParamsSchema, Dr as readBlockComposition, Er as blockLookFromContent, Fa as publicEventsArraySchema, Fo as buildThemeRuntime, Fr as logger, Fu as textColorStyle, Ga as formCopyFragment, Gr as resolvePageRouteTarget, Ha as blogFeaturedPostFragment, Hi as buildResolveImageUrlContext, Ho as pageGround, Ia as bookingConsentCarrierSchema, In as remoteDraftValues, Ir as Text$1, Ja as ctaCopyFragment, Jr as allOutlineBlocks, Jt as clientComponentRegistry, Ka as testimonialsCarouselFragment, Ki as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Kr as resolveRouteTarget, La as richTextFragment, Ln as renderSourceFor, Lo as mergeContentWithBlockStyleOverrides, Lr as getAtPath, Lu as parseSurfaceTree, Ma as pageTemplateFromEntry, Mr as buildAppointmentServicesView, Oc as calendarWindowQuerySchema, Od as sameMailingListPlacementTargeting, Oo as parseInlineTextFromUnknown, Or as getDefaultComponentRegistry, Pr as renderInlineText, Ra as headingFragment, Rd as NO_BLOCK_VERSIONS, Rn as renderedFieldChanges, Ro as groundTextureStyle, Rr as siblingPath, Sa as resolveDateRuntimeContext, Sn as useEditorUiStoreInstance, Sr as resolveBlockLayout, T as ObservedJoin, Td as parseMailingListPlacementTargeting, Ti as RichText$1, To as isInlineTextEmpty, Tr as arrangementHooksFromContent, U as usePreviewToken, Ua as singleButtonFragment, Ui as getCurrentResolveImageUrlContext, Ur as defaultTransforms, Va as faqHeadingFragment, Vd as selectedContentVersionId, Vr as coerceLinkedContentEntriesPayload, Wa as formEmbedFragment, Wi as setContextResolveImageUrlContext, Wn as unsafeAsLinkedContentEntryId, Wr as resolveEntryRouteTarget, Xa as ctaRowFragment, Xr as mapOutlineRegions, Ya as heroCtaRowFragment, Yr as mapOutlineBlocks, Zi as offeringsListingFor, ai as getBlockDefinition, ao as compileManifestContentContract, bo as deriveInlineTextFieldChanges, ci as normalizeBlockContent, dd as generateUuidV4, di as normalizeLocationMapSource, dr as createPageRenderPlanReader, ei as readinessFactsFromLoaders, eo as ctaButton, fi as parseLocationMapLoaderResult, fn as useEditor, fr as planArrangementContent, gi as publicRouteCandidatesSchema, go as parseGeneratedIconSetId, gr as retargetJoinsAcrossOmissions, hi as offeringsPreviewBlockDefinition, ho as parseGeneratedIconAssetId, hr as renderedJoinLayout, io as runTransforms, ja as hiddenFromVisitors, jc as unwrapResponse, jr as resolveEventDetailsPresentation, ka as projectRecurringSchedule, li as LOCATION_MAP_LOADER_KEYS, lu as bindingSchema, mo as parseBlockIconValue, mr as joinSlotKey, no as bodyCopyFragment, oi as hasBlockDefinition, oo as validateManifestDraft, ou as canWriteLinkedEntry, pd as buildMailingListSignupBlockSourceRef, pi as resolveLocationMapLocation, pr as composePageJoins, qa as testimonialsHeadingFragment, qi as groupOfferingRunsByCourse, qr as createEditorPresentationPageReader, ro as defineFragment, s as usePreviewPageDesignRenderState, sf as toUtcIsoDateTimeString, ta as normalizeEventRegistrationPageSurfaceSubject, ti as selectBlockContent, to as layoutSectionGround, uf as assertNever, ui as describeUnresolvedLocationMapLocation, vc as isObjectRecord, wi as cardListPresentationSchemaShape, wo as inlineTextToPlainText, wr as resolveDefaultBlockTree, xa as readRuntimeNow, xn as useEditorUiStore, xr as makeDefaultBlockComponent, yc as isRecord$1, yo as coerceInlineTextWithFallback, za as cardFragment, zd as readEditorBlockVersionsFromPlacement, zn as resolveRenderedValues, zu as defaultThemeTokens } from "./previewAssistantSlot-DcEwU9l_.mjs";
3
+ import { Ht as projectPublicLocation, Ut as publicLocationSchema, Vt as parseLocationValue } from "./lucide-react-B4c6U3ZU.mjs";
4
+ import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-BL1fZnUD.mjs";
5
+ import { C as useRichTextEditor, D as decideDocumentReplacement, E as InlineTextEditor, O as resolveSdkFooterMode, T as parseRichTextDoc, b as RichTextEditorSurface, h as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as EMPTY_DOC } from "./PageSectionToolbar-CR99z8BL.mjs";
6
+ import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-CKjkFOZS.mjs";
7
7
  import * as React$1 from "react";
8
8
  import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -972,6 +972,62 @@ function requireThemeResources(resources, blockKind) {
972
972
  return resources;
973
973
  }
974
974
  //#endregion
975
+ //#region ../blocks/src/sectionBoundaryTextures.tsx
976
+ /** A textured join's entire paint stack moves together, preserving colour/alpha order. */
977
+ function sectionOwnsBoundaryPaint(layout) {
978
+ return Boolean(layout.underlay?.texture || layout.paint.front.texture || layout.paint.back.some((paint) => paint.texture));
979
+ }
980
+ function boundaryColourCss(colour) {
981
+ return colour.startsWith("#") ? colour : `rgb(var(--tb-${colour}))`;
982
+ }
983
+ /** Planes share their owner's full height. Only their edge masks extend outside its box. */
984
+ function sectionBoundaryPaint(input) {
985
+ const planes = [edgePlanes(renderedJoinLayout(input.before?.join ?? null), "start"), edgePlanes(renderedJoinLayout(input.after?.join ?? null), "end")].flat();
986
+ return planes.length ? planes : null;
987
+ }
988
+ function edgePlanes(layout, side) {
989
+ if (!layout || !sectionOwnsBoundaryPaint(layout)) return [];
990
+ const underlay = side === "end" && layout.underlay ? [paintPlane(layout, layout.underlay, side, "underlay", -1)] : [];
991
+ return side === (layout.placement === "next" ? "end" : "start") ? [
992
+ ...underlay,
993
+ ...layout.paint.back.map((paint, index) => paintPlane(layout, paint, side, "back", index)).reverse(),
994
+ paintPlane(layout, layout.paint.front, side, "front", -1)
995
+ ] : underlay;
996
+ }
997
+ function planeGeometry(layout, side, underlay, index) {
998
+ const height = underlay ? "var(--boundary-height)" : "var(--boundary-shape-height)";
999
+ const offset = index < 0 ? 0 : (index + 1) * .12;
1000
+ const overhang = `calc(${height} * ${underlay || layout.placement === "centred" ? .5 + offset : 1 + offset})`;
1001
+ return {
1002
+ "--section-edge-height": height,
1003
+ top: side === "start" ? `calc(-1 * ${overhang})` : 0,
1004
+ bottom: side === "end" ? `calc(-1 * ${overhang})` : 0,
1005
+ "--section-texture-y": side === "start" ? overhang : "0px",
1006
+ maskPosition: side === "start" ? "0 0" : "0 100%",
1007
+ WebkitMaskPosition: side === "start" ? "0 0" : "0 100%"
1008
+ };
1009
+ }
1010
+ function backMasks(index) {
1011
+ return index >= 0 && index % 2 === 0 ? Object.fromEntries(["texture-mask", "section-mask"].flatMap((property) => ["wide", "narrow"].map((width) => [`--boundary-${property}-${width}`, `var(--boundary-back-${property}-${width})`]))) : {};
1012
+ }
1013
+ function paintPlane(layout, paint, side, role, index) {
1014
+ const style = {
1015
+ ...layout.geometry,
1016
+ ...backMasks(index),
1017
+ ...planeGeometry(layout, side, role === "underlay", index),
1018
+ ...paint.texture ? groundTextureStyle(paint.texture) : {},
1019
+ backgroundColor: boundaryColourCss(paint.colour),
1020
+ opacity: index < 0 ? 1 : (layout.paint.back.length - index) / (layout.paint.back.length + 1)
1021
+ };
1022
+ return /* @__PURE__ */ jsx("span", {
1023
+ "aria-hidden": "true",
1024
+ "data-section-edge-paint": role,
1025
+ "data-section-edge-side": side,
1026
+ "data-section-edge-fade": role !== "underlay" && layout.geometry["--boundary-shape-background"]?.startsWith("linear-gradient") ? "" : void 0,
1027
+ style
1028
+ }, `${side}:${role}:${index}`);
1029
+ }
1030
+ //#endregion
975
1031
  //#region ../blocks/src/pageRendererBoundaries.tsx
976
1032
  function joinSlotsByPair(slots) {
977
1033
  return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
@@ -988,16 +1044,7 @@ function renderJoinSlot(input) {
988
1044
  const { slot } = input;
989
1045
  if (!slot) return null;
990
1046
  const layout = renderedJoinLayout(slot.join);
991
- const painted = slot.join && layout ? /* @__PURE__ */ jsx("div", {
992
- "aria-hidden": "true",
993
- "data-block-boundary": "",
994
- "data-boundary-id": slot.join.boundaryId,
995
- "data-boundary-previous-block-id": slot.previousBlockId,
996
- "data-boundary-next-block-id": slot.nextBlockId,
997
- "data-boundary-treatment": slot.join.treatment,
998
- "data-boundary-placement": layout.placement,
999
- style: boundaryPaintStyle(layout.paint)
1000
- }, `${input.blockKey}:boundary`) : null;
1047
+ const painted = slot.join && layout ? paintedBoundary(slot, slot.join, layout, input.blockKey) : null;
1001
1048
  const extra = input.renderJoin?.({
1002
1049
  previousBlockId: slot.previousBlockId,
1003
1050
  nextBlockId: slot.nextBlockId,
@@ -1006,18 +1053,65 @@ function renderJoinSlot(input) {
1006
1053
  if (!painted && (extra === null || extra === void 0)) return null;
1007
1054
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
1008
1055
  }
1009
- /**
1010
- * The one render-edge place a theme token becomes CSS.
1011
- */
1012
- function themeTokenCss(token) {
1013
- return `rgb(var(--tb-${token}))`;
1014
- }
1015
- function boundaryPaintStyle(paint) {
1056
+ function boundaryPaintStyle(layout) {
1016
1057
  return {
1017
- "--boundary-shape-paint": themeTokenCss(paint.shape),
1018
- ...paint.band ? { "--boundary-band-paint": themeTokenCss(paint.band) } : {}
1058
+ ...layout.geometry,
1059
+ "--boundary-shape-paint": boundaryColourCss(layout.paint.front.colour),
1060
+ ...layout.underlay ? { "--boundary-band-paint": boundaryColourCss(layout.underlay.colour) } : {}
1019
1061
  };
1020
1062
  }
1063
+ function paintedBoundary(slot, join, layout, key) {
1064
+ return /* @__PURE__ */ jsx("div", {
1065
+ "aria-hidden": "true",
1066
+ "data-block-boundary": "",
1067
+ "data-boundary-geometry": "",
1068
+ "data-boundary-section-owned": sectionOwnsBoundaryPaint(layout) ? "" : void 0,
1069
+ "data-boundary-id": join.boundaryId,
1070
+ "data-boundary-previous-block-id": slot.previousBlockId,
1071
+ "data-boundary-next-block-id": slot.nextBlockId,
1072
+ "data-boundary-treatment": join.treatment,
1073
+ "data-boundary-placement": layout.placement,
1074
+ style: boundaryPaintStyle(layout),
1075
+ children: sectionOwnsBoundaryPaint(layout) ? null : layout.paint.back.map((paint, index) => renderBackLayer(paint, index, layout))
1076
+ }, `${key}:boundary`);
1077
+ }
1078
+ function renderBackLayer(paint, index, layout) {
1079
+ const offset = 12 * (index + 1);
1080
+ const mirror = index % 2 === 0 ? "-1" : "1";
1081
+ const opacity = (layout.paint.back.length - index) / (layout.paint.back.length + 1);
1082
+ return /* @__PURE__ */ jsx("span", {
1083
+ "data-boundary-back": "",
1084
+ style: {
1085
+ ...{
1086
+ previous: {
1087
+ paint: {
1088
+ bottom: 0,
1089
+ transform: `translateY(-${offset}%) scaleX(${mirror})`
1090
+ },
1091
+ texture: { bottom: `calc(var(--boundary-height) * ${offset / 100})` }
1092
+ },
1093
+ next: {
1094
+ paint: {
1095
+ top: 0,
1096
+ transform: `translateY(${offset}%) scaleY(-1) scaleX(${mirror})`
1097
+ },
1098
+ texture: { top: `calc(var(--boundary-height) * ${offset / 100})` }
1099
+ },
1100
+ centred: {
1101
+ paint: {
1102
+ top: 0,
1103
+ transform: `translateY(-${50 + offset}%) scaleX(${mirror})`
1104
+ },
1105
+ texture: { top: `calc(var(--boundary-shape-height) / -2 - var(--boundary-height) * ${offset / 100})` }
1106
+ }
1107
+ }[layout.placement].paint,
1108
+ opacity,
1109
+ "--boundary-shape-paint": boundaryColourCss(paint.colour),
1110
+ "--boundary-shape-background": layout.geometry["--boundary-shape-background"],
1111
+ "--boundary-shape-background-mixed": layout.geometry["--boundary-shape-background-mixed"]
1112
+ }
1113
+ }, index);
1114
+ }
1021
1115
  /**
1022
1116
  * Reserve attributes and variables for a block wrapper, from the joins on
1023
1117
  * either side. A join's `before` reserve sits inside its previous section, so
@@ -1027,16 +1121,19 @@ function boundaryPaintStyle(paint) {
1027
1121
  function blockBoundaryReserves(input) {
1028
1122
  const top = reserveOnSide(input.before, "after");
1029
1123
  const bottom = reserveOnSide(input.after, "before");
1124
+ const edgePaint = sectionBoundaryPaint(input);
1030
1125
  const style = {
1126
+ ...edgePaint ? { position: "relative" } : {},
1031
1127
  ...top ? { "--site-style-boundary-before-reserve": top.length } : {},
1032
1128
  ...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
1033
1129
  };
1034
1130
  return {
1131
+ edgePaint,
1035
1132
  topPlacement: top?.placement,
1036
1133
  bottomPlacement: bottom?.placement,
1037
1134
  seamBefore: seamAttribute(input.before),
1038
1135
  seamAfter: seamAttribute(input.after),
1039
- style: top || bottom ? style : void 0
1136
+ style: Object.keys(style).length ? style : void 0
1040
1137
  };
1041
1138
  }
1042
1139
  function seamAttribute(slot) {
@@ -1632,6 +1729,10 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
1632
1729
  originalBlocks: plan.regions.main.map((planned) => planned.block),
1633
1730
  survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
1634
1731
  }),
1732
+ context: themeResources.kind === "available" ? {
1733
+ siteStyleId: themeResources.config?.siteStyleId,
1734
+ palette: themeResources.tokens.palette
1735
+ } : void 0,
1635
1736
  survivors: survivors.map(({ entry }) => ({
1636
1737
  id: entry.block.id,
1637
1738
  kind: entry.block.kind,
@@ -2128,7 +2229,7 @@ function renderPlanEntry(input) {
2128
2229
  before: joinBefore,
2129
2230
  after: joinAfter
2130
2231
  });
2131
- const blockElement = /* @__PURE__ */ jsx("div", {
2232
+ const blockElement = /* @__PURE__ */ jsxs("div", {
2132
2233
  id: blockAnchorId(block),
2133
2234
  className: wrapperClassName,
2134
2235
  ...arrangementHooksFromContent(renderableContent),
@@ -2148,7 +2249,7 @@ function renderPlanEntry(input) {
2148
2249
  "data-site-style-seam-after": reserves.seamAfter,
2149
2250
  "data-style-group": styleGroup,
2150
2251
  style: reserves.style,
2151
- children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
2252
+ children: [/* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }), reserves.edgePaint]
2152
2253
  }, blockKey);
2153
2254
  if (boundaryElement) return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [blockElement, boundaryElement] }, blockKey);
2154
2255
  return blockElement;
@@ -221,9 +221,16 @@ const PALETTE_TOKEN_NAMES = [
221
221
  "border"
222
222
  ];
223
223
  const paletteTokenNameSchema = z.enum(PALETTE_TOKEN_NAMES);
224
+ /** Fixed solver endpoints, distinct from the palette-local legacy `white`. Not picker options. */
225
+ const absoluteInkColors = {
226
+ absoluteBlack: "#000000",
227
+ absoluteWhite: "#ffffff"
228
+ };
224
229
  const themeColorBaseTokenNames = [
225
230
  ...PALETTE_TOKEN_NAMES,
226
231
  ...blockColorTokenNames,
232
+ "absoluteBlack",
233
+ "absoluteWhite",
227
234
  "white",
228
235
  "neutral",
229
236
  "primaryText",
@@ -252,7 +259,7 @@ function isKnownShadeToken(value) {
252
259
  const match = value.match(/^([a-zA-Z][a-zA-Z0-9]*)(?:-([0-9]{2,3}))$/);
253
260
  if (!match) return false;
254
261
  const [, base, shade] = match;
255
- return Boolean(base && shade && isKnownBaseToken(base) && shadeStepSet.has(shade));
262
+ return Boolean(base && shade && isKnownBaseToken(base) && !(base in absoluteInkColors) && shadeStepSet.has(shade));
256
263
  }
257
264
  function isThemeColorTokenBase(value) {
258
265
  return isKnownBaseToken(value) || isKnownShadeToken(value);
@@ -1932,11 +1939,20 @@ const TargetIcon = createIcon("TargetIcon", /* @__PURE__ */ jsxs(Fragment$1, { c
1932
1939
  r: "1"
1933
1940
  })
1934
1941
  ] }));
1942
+ const TicketIcon = createIcon("TicketIcon", /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("path", { d: "M4 8.5V6h16v2.5a2.5 2.5 0 0 0 0 5V18H4v-4.5a2.5 2.5 0 0 0 0-5Z" }), /* @__PURE__ */ jsx("path", {
1943
+ d: "M14 6v12",
1944
+ strokeDasharray: "2 2"
1945
+ })] }));
1935
1946
  const UploadIcon = createIcon("UploadIcon", /* @__PURE__ */ jsxs(Fragment$1, { children: [
1936
1947
  /* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
1937
1948
  /* @__PURE__ */ jsx("path", { d: "m7 14 5-5 5 5" }),
1938
1949
  /* @__PURE__ */ jsx("path", { d: "M5 3h14" })
1939
1950
  ] }));
1951
+ const UserIcon = createIcon("UserIcon", /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("circle", {
1952
+ cx: "12",
1953
+ cy: "8",
1954
+ r: "3.6"
1955
+ }), /* @__PURE__ */ jsx("path", { d: "M5 20c.8-3.6 3.6-5.6 7-5.6s6.2 2 7 5.6" })] }));
1940
1956
  const UserRoundCheckIcon = createIcon("UserRoundCheckIcon", /* @__PURE__ */ jsxs(Fragment$1, { children: [
1941
1957
  /* @__PURE__ */ jsx("circle", {
1942
1958
  cx: "10",
@@ -2916,4 +2932,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
2916
2932
  });
2917
2933
  }
2918
2934
  //#endregion
2919
- export { normalizePaletteHex as $, buttonShadowLayersValue as A, unsafeAsOpaqueButtonColourToken as B, MinusIcon as C, AFFORDANCE_SUPPRESS_CLASS as D, themeButtonSelector as E, actionVariablePrefix as F, opaqueButtonColourTokenSchema as G, buttonPressOffsetSchema as H, DEFAULT_VARIANT_ALIAS_ID as I, isFreeButtonRadius as J, parseOpaqueButtonColourToken as K, STANDARD_BUTTON_SURFACE_POLICY as L, affordanceIconMaskUrl as M, actionVariableFallback as N, BUTTON_LABEL_CLASS as O, actionVariableName as P, isThemeColorToken as Q, buttonSizeNameSchema as R, FileTextIcon as S, parseThemeButtonVariantId as T, buttonSystemSchema as U, buttonEffectApplicationSchema as V, buttonVisualStatesSchema as W, blockColorTokenNames as X, PALETTE_TOKEN_NAMES as Y, hexColorSchema as Z, ClockIcon as _, ThemedDownloadLink as a, parseColorTokenParts as at, FileAudioIcon as b, isKnownIconName as c, themeColorTokenSchema as ct, SEMANTIC_ICON_DEFINITIONS as d, VARIANT_ROLES as dt, paletteColorEntries as et, isSemanticIconId as f, SpinnerNode as ft, CirclePlusIcon as g, CircleMinusIcon as h, ThemedButtonSpecimen as i, paletteTokenNameSchema as it, partOwnedPseudoElements as j, buttonPartsCss as k, isIconPickerPreset as l, ICON_PICKER_PRESETS as lt, ChevronDownIcon as m, ThemedButton as n, paletteColorsSchema as nt, getIconComponent as o, parseThemeColorToken as ot, ArrowDownIcon as p, clsx as pt, buttonKeyframesSchema as q, ThemedButtonLink as r, paletteModeSchema as rt, getIconPickerOptionsForPreset as s, themeColorShadeSteps as st, ThemedAuthoredButton as t, paletteColorsFromEntries as tt, resolveIconPickerPreset as u, SYSTEM_BLOCK_KINDS as ut, ExternalLinkIcon as v, PlusIcon as w, FileSpreadsheetIcon as x, FileArchiveIcon as y, createStandardButtonSurfacePolicy as z };
2935
+ export { parseOpaqueButtonColourToken as $, UserIcon as A, actionVariableFallback as B, FileTextIcon as C, MinusIcon as D, MapPinIcon as E, BUTTON_LABEL_CLASS as F, buttonSizeNameSchema as G, actionVariablePrefix as H, buttonPartsCss as I, buttonEffectApplicationSchema as J, createStandardButtonSurfacePolicy as K, buttonShadowLayersValue as L, parseThemeButtonVariantId as M, themeButtonSelector as N, PlusIcon as O, AFFORDANCE_SUPPRESS_CLASS as P, opaqueButtonColourTokenSchema as Q, partOwnedPseudoElements as R, FileSpreadsheetIcon as S, InfoIcon as T, DEFAULT_VARIANT_ALIAS_ID as U, actionVariableName as V, STANDARD_BUTTON_SURFACE_POLICY as W, buttonSystemSchema as X, buttonPressOffsetSchema as Y, buttonVisualStatesSchema as Z, CirclePlusIcon as _, ICON_PICKER_PRESETS as _t, ThemedDownloadLink as a, hexColorSchema as at, FileArchiveIcon as b, SpinnerNode as bt, isKnownIconName as c, paletteColorEntries as ct, SEMANTIC_ICON_DEFINITIONS as d, paletteModeSchema as dt, buttonKeyframesSchema as et, isSemanticIconId as f, paletteTokenNameSchema as ft, CircleMinusIcon as g, themeColorTokenSchema as gt, ChevronDownIcon as h, themeColorShadeSteps as ht, ThemedButtonSpecimen as i, blockColorTokenNames as it, UsersIcon as j, TicketIcon as k, isIconPickerPreset as l, paletteColorsFromEntries as lt, CalendarIcon as m, parseThemeColorToken as mt, ThemedButton as n, PALETTE_TOKEN_NAMES as nt, getIconComponent as o, isThemeColorToken as ot, ArrowDownIcon as p, parseColorTokenParts as pt, unsafeAsOpaqueButtonColourToken as q, ThemedButtonLink as r, absoluteInkColors as rt, getIconPickerOptionsForPreset as s, normalizePaletteHex as st, ThemedAuthoredButton as t, isFreeButtonRadius as tt, resolveIconPickerPreset as u, paletteColorsSchema as ut, ClockIcon as v, SYSTEM_BLOCK_KINDS as vt, GlobeIcon as w, FileAudioIcon as x, clsx as xt, ExternalLinkIcon as y, VARIANT_ROLES as yt, affordanceIconMaskUrl as z };
@@ -52022,4 +52022,4 @@ var lucide_react_exports = /* @__PURE__ */ __exportAll({
52022
52022
  useLucideContext: () => useLucideContext
52023
52023
  });
52024
52024
  //#endregion
52025
- export { Crosshair as $, List as A, sameLocationSpatialPair as At, House as B, projectPublicLocation as Bt, Move as C, Archive as Ct, MapPin as D, decideLocationSave as Dt, Maximize2 as E, decideLocationRelationship as Et, Info as F, locationAddressSchema as Ft, FileSpreadsheet as G, hasText as Gt, GripVertical as H, toLocationCoordinates as Ht, Image as I, locationPinSchema as It, FileArchive as J, mapDrawingSchema as Jt, FilePlay as K, lowerFirstLetter as Kt, ImageUp as L, locationValueSchema as Lt, Link as M, stableJsonStringify as Mt, Link2 as N, decideLocationSourcePermission as Nt, Lock as O, editLocationValue as Ot, Italic as P, formatLocationAddress as Pt, EllipsisVertical as Q, ImagePlus as R, normalizeLocationAddressText as Rt, Palette as S, ArrowDown as St, Minus as T, confirmLocationPair as Tt, File as U, asNonEmptyStringOrNull as Ut, Highlighter as V, publicLocationSchema as Vt, FileText as W, capitalize as Wt, EyeOff as X, ok as Xt, Eye as Y, err as Yt, ExternalLink as Z, Redo2 as _, Bold as _t, Upload as a, CirclePlus as at, PanelTop as b, ArrowRight as bt, Trash2 as c, CircleAlert as ct, SlidersHorizontal as d, ChevronLeft as dt, Crop as et, Settings as f, ChevronDown as ft, RotateCcw as g, Box as gt, Route as h, Building2 as ht, Video as i, Circle as it, ListOrdered as j, sameMeaningfulAddress as jt, LocateFixed as k, locationDistanceMetres as kt, Store as l, ChevronUp as lt, Rows3 as m, Calendar as mt, X as n, Clock as nt, Undo2 as o, CircleMinus as ot, Search as p, Check as pt, FileHeadphone as q, trimmedStringOrNull as qt, WifiOff as r, Clock3 as rt, TriangleAlert as s, CircleCheck as st, lucide_react_exports as t, Copy as tt, Sparkles as u, ChevronRight as ut, Plus as v, ArrowUp as vt, Mountain as w, LOCATION_MATCH_THRESHOLDS_METRES as wt, PanelBottom as x, ArrowLeft as xt, Pencil as y, ArrowUpRight as yt, ImageOff as z, parseLocationValue as zt };
52025
+ export { ExternalLink as $, Lock as A, editLocationValue as At, ImagePlus as B, normalizeLocationAddressText as Bt, Palette as C, ArrowLeft as Ct, Minus as D, confirmLocationPair as Dt, Mountain as E, LOCATION_MATCH_THRESHOLDS_METRES as Et, Link2 as F, decideLocationSourcePermission as Ft, File as G, asNonEmptyStringOrNull as Gt, House as H, projectPublicLocation as Ht, Italic as I, formatLocationAddress as It, FilePlay as J, lowerFirstLetter as Jt, FileText as K, capitalize as Kt, Info as L, locationAddressSchema as Lt, List as M, sameLocationSpatialPair as Mt, ListOrdered as N, sameMeaningfulAddress as Nt, Maximize2 as O, decideLocationRelationship as Ot, Link as P, stableJsonStringify as Pt, EyeOff as Q, ok as Qt, Image as R, locationPinSchema as Rt, PanelBottom as S, ArrowRight as St, Move as T, Archive as Tt, Highlighter as U, publicLocationSchema as Ut, ImageOff as V, parseLocationValue as Vt, GripVertical as W, toLocationCoordinates as Wt, FileArchive as X, mapDrawingSchema as Xt, FileHeadphone as Y, trimmedStringOrNull as Yt, Eye as Z, err as Zt, RotateCcw as _, Building2 as _t, Video as a, Clock3 as at, Pencil as b, ArrowUp as bt, TriangleAlert as c, CircleMinus as ct, Sparkles as d, ChevronUp as dt, EllipsisVertical as et, SlidersHorizontal as f, ChevronRight as ft, Route as g, Calendar as gt, Rows3 as h, Check as ht, WavesHorizontal as i, Clock as it, LocateFixed as j, locationDistanceMetres as jt, MapPin as k, decideLocationSave as kt, Trash2 as l, CircleCheck as lt, Search as m, ChevronDown as mt, X as n, Crop as nt, Upload as o, Circle as ot, Settings as p, ChevronLeft as pt, FileSpreadsheet as q, hasText as qt, WifiOff as r, Copy as rt, Undo2 as s, CirclePlus as st, lucide_react_exports as t, Crosshair as tt, Store as u, CircleAlert as ut, Redo2 as v, Box as vt, PaintBucket as w, ArrowDown as wt, PanelTop as x, ArrowUpRight as xt, Plus as y, Bold as yt, ImageUp as z, locationValueSchema as zt };