@riverbankcms/sdk 0.170.0 → 0.171.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 (219) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/{Page-PW4Ojv9r.mjs → Page-DH2sm4Cf.mjs} +2696 -2426
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
  94. package/dist/client/client.mjs +640 -218
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  132. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  146. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  147. package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/keepAlive.mjs +1 -1
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
  170. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  171. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
  172. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  173. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  174. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  175. package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
  176. package/dist/server/config-template-validation.mjs +30 -4
  177. package/dist/server/config-validation.mjs +1 -1
  178. package/dist/server/config.mjs +3 -34
  179. package/dist/server/data/resolveBlockData.mjs +1 -1
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  182. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.mjs} +2 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/next.mjs +8 -6
  185. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  186. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  187. package/dist/server/page-converter.mjs +3 -3
  188. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  189. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
  190. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  191. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
  192. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  193. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  196. package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
  197. package/dist/server/rendering/components/pageShared.mjs +1 -1
  198. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  199. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  200. package/dist/server/rendering/server.mjs +3 -3
  201. package/dist/server/rendering.mjs +7 -7
  202. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  203. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  204. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  205. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  206. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  207. package/dist/server/server.mjs +3 -3
  208. package/dist/server/theme-bridge.mjs +2 -2
  209. package/dist/server/theme.mjs +2 -1
  210. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  211. package/dist/server/{validation-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
  212. package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
  213. package/dist/styles/index.css +408 -10
  214. package/package.json +1 -1
  215. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  216. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  217. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  218. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  219. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -1,10 +1,11 @@
1
- import { Et as parseThemeColorToken, G as oklabToOklch, K as oklabToSrgb, L as contrastRatio, N as getTextColorForBackground, W as hexToRgb, X as srgbToOklab, Y as rgbToHex, q as oklchToHexGamut } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
2
- import { $n as formattingTransforms, $r as lookCarouselRegionTransform, Bi as resolveLookSurfacePresentation, Bn as contentTransforms, Bt as weekColumnDays, Ca as assertNever, Cn as isEventFull, F as combinedLookSchema, G as resolveCalendarReadProfile, Gi as arrangementAppearancePresets, Gr as parseRuntimeBackgroundContent, Gt as eventCalendarWeekStart, Hi as heroPhotoPaintsGround, J as CardListContentPart, Ji as readStoredMode, Jn as chromeLogoTransforms, Jr as resolveBackgroundColorValue, Kn as mediaTransforms, Kr as resolveSectionSurfaceForeground, Kt as eventDateOptions, Ni as augmentManifest, Oa as cardListFamilyBlocks, Pi as isObjectRecord, Po as arrangementSlotNames, Pt as ThemedButtonLink, Q as MediaNodeServer, Qi as deriveSiteStyleBlockPolicy, Qn as uiTransforms, Qr as getAnchorClasses, Qt as formatEventDateParts, Rt as buildEventListWeek, Sa as resolveEffectiveKnobs, Sn as getEventAvailabilityStatus, So as resolveBookingBusinessTimeZone, Ur as parseBackgroundContent, Ut as formatEventPriceDisplay, Vt as formatEventPrice, Wn as readRuntimeNow, Wr as parseBackgroundOverlay, X as resolveCardListSchedule, Xi as resolveModeArrangement, Xr as standardImageShapeOptions, Y as CardListLeadDate, Yi as resolveEffectiveArrangement, Yn as layoutTransforms, Z as selectCardListPresentation, Za as orderedLiveRunSessions, Zi as resolvePublishedLook, Zn as resolveHeroTitleLength, Zr as BACKGROUND_POSITION_PRESET_VALUES, Zt as formatEventCompactDateRail, _a as parseCanonicalRuntimeBackground, _o as compareLocalScheduleDates, _r as standardAspectRatioOptions, _t as eventCalendarListGroupingDecision, ba as stripStaleTransitionStyleGroup, bn as formatTotalCapacity, bo as parseBookingLocalDate, br as heroTitleSizeOptions, cn as formatDateKey, da as sectionShapeHook, do as formatDate, dr as listItemPresentation, ei as lookLeadSlotTransform, et as ImagePresets, fa as boundaryRuntimeMetricsForDecorativeTransition, fo as formatDateRange, ft as resolveEventSelection, ga as deriveSectionGround, gi as ClockIcon, gn as formatBookingSchedulePresentation, ha as applyLookPhotoTreatment, hn as resolveRuntimeEventDestination, ii as createTransformRegistry, in as resolveEventTimeZone, ka as cardListKnobBlocks, la as sectionShapeForGround, mn as isToday, ni as lookSkinSlotTransform, nn as formatTime, nt as computeMediaTransformStyle, po as formatDateTimeRange, pr as listLookSlot, qi as arrangementManifestFromVariants, qn as headerRuntimeTransforms, qr as resolveSurfaceForegroundStyles, qt as eventLocalDateKey, ri as asPartialObject, t as getBlockDefinition, ti as lookQuoteLimitTransform, tn as formatEventTimeRange, tr as eventCalendarListLayoutCompatibleDisplayModeValues, ua as sectionShapeFromContent, va as resolveSectionBackground, vn as canJoinEventWaitlistOnAnyMode, vt as eventCalendarListLayoutOptions, wo as toUtcIsoDateTimeString, xa as themeV2CompilerOwnedFieldNames, ya as sectionSurfaceBase, yn as formatEventRemainingPlaces, yo as getLocalScheduleDate, yt as resolveEventCalendarReadPlan, zi as lookPresentationOnPalette, zr as boxStylesTransforms } from "./registry-Djrj9gWy.mjs";
3
- import { B as resolveConcreteColorHex, E as resolveOnColorForThemeToken, O as resolveTokenOrCssColorValue, T as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-D0q5tLSW.mjs";
4
- import { I as asLayoutVariantKey, P as asDesignBlockId, R as asSiteStyleId, z as makeBoundaryId } from "./headerVariant-8O5MvxIU.mjs";
1
+ import { Et as parseThemeColorToken, G as oklabToOklch, K as oklabToSrgb, L as contrastRatio, N as getTextColorForBackground, W as hexToRgb, X as srgbToOklab, Y as rgbToHex, q as oklchToHexGamut } from "./resolveButtonColourStates-DVISOQD9.mjs";
2
+ import { $ as MediaNodeServer, $a as deriveSectionGround, $n as mediaTransforms, $r as parseBackgroundContent, Ar as BACKGROUND_POSITION_PRESET_VALUES, Ba as sectionShapeHook, Cn as canJoinEventWaitlistOnAnyMode, Cs as resolvePricingOptionsPriceDisplay, Dn as getEventAvailabilityStatus, Dr as standardImageShapeOptions, Hi as augmentManifest, I as combinedLookSchema, Ji as lookPresentationOnPalette, Jt as eventCalendarWeekStart, K as resolveCalendarReadProfile, Kt as formatEventPriceDisplay, Lt as ThemedButtonLink, Mr as heroTitleSizeOptions, On as isEventFull, Os as parseGradientPresetId, Q as selectCardListPresentation, Qa as applyLookPhotoTreatment, Ra as sectionShapeForGround, Ss as resolveExactOrFreePriceDisplay, St as resolveEventCalendarReadPlan, Ta as getGradientPreset, Ti as ClockIcon, Tn as formatTotalCapacity, Ua as boundaryRuntimeMetricsForDecorativeTransition, Ui as isObjectRecord, Uo as orderedLiveRunSessions, Ut as weekColumnDays, Vt as buildEventListWeek, Wt as formatEventPrice, X as CardListLeadDate, Xt as eventLocalDateKey, Y as CardListContentPart, Yi as resolveLookSurfacePresentation, Yr as boxStylesTransforms, Yt as eventDateOptions, Z as resolveCardListSchedule, Zi as heroPhotoPaintsGround, Zn as readRuntimeNow, _s as formatBookingPriceDisplay, an as formatEventTimeRange, ar as uiTransforms, as as formatDateTimeRange, bn as formatBookingSchedulePresentation, br as listLookSlot, bt as eventCalendarListGroupingDecision, ca as arrangementManifestFromVariants, cn as resolveEventTimeZone, co as assertNever, cr as eventCalendarListLayoutCompatibleDisplayModeValues, da as resolveModeArrangement, di as lookQuoteLimitTransform, ds as getLocalScheduleDate, dt as EventQuickFacts, ei as parseBackgroundOverlay, en as formatEventCompactDateRail, eo as parseCanonicalRuntimeBackground, er as headerRuntimeTransforms, fa as resolvePublishedLook, fi as lookSkinSlotTransform, fn as formatDateKey, fs as parseBookingLocalDate, gs as toUtcIsoDateTimeString, ii as resolveBackgroundColorValue, in as formatEventRunDates, io as themeV2CompilerOwnedFieldNames, ir as resolveHeroTitleLength, is as formatDateRange, jn as closedRunCopy, jr as getAnchorClasses, ks as arrangementSlotNames, la as readStoredMode, li as lookCarouselRegionTransform, ls as compareLocalScheduleDates, ma as deriveSiteStyleBlockPolicy, mi as createTransformRegistry, ms as resolveBookingBusinessTimeZone, mt as resolveEventSelection, ni as resolveSectionSurfaceForeground, no as sectionSurfaceBase, nr as layoutTransforms, on as formatTime, oo as resolveEffectiveKnobs, or as formattingTransforms, pi as asPartialObject, qn as contentTransforms, ri as resolveSurfaceForegroundStyles, ro as stripStaleTransitionStyleGroup, rs as formatDate, rt as computeMediaTransformStyle, t as getBlockDefinition, ta as arrangementAppearancePresets, ti as parseRuntimeBackgroundContent, tn as formatEventDateParts, to as resolveSectionBackground, tr as chromeLogoTransforms, tt as ImagePresets, ua as resolveEffectiveArrangement, ui as lookLeadSlotTransform, vn as isToday, vo as cardListFamilyBlocks, vr as listItemPresentation, wa as gradientToCss, wn as formatEventRemainingPlaces, wr as standardAspectRatioOptions, xt as eventCalendarListLayoutOptions, yn as resolveRuntimeEventDestination, yo as cardListKnobBlocks, za as sectionShapeFromContent } from "./registry-BogXzcOD.mjs";
3
+ import { A as resolveOnColorForThemeToken, M as resolveTokenOrCssColorValue, W as resolveConcreteColorHex, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-BuPNCWAK.mjs";
4
+ import { I as asSiteStyleId, L as makeBoundaryId, P as asLayoutVariantKey, j as asDesignBlockId } from "./schema-C92Q8y0-.mjs";
5
5
  import { o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
6
6
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
7
- import { a as isRecord$1 } from "./richTextSchema-DQ2NBP0n.mjs";
7
+ import { o as isRecord$1 } from "./richTextSchema-QLaQrbII.mjs";
8
+ import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
8
9
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
9
10
  import React from "react";
10
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -146,28 +147,6 @@ function cloneThemeTokens(source) {
146
147
  return JSON.parse(JSON.stringify(source));
147
148
  }
148
149
  //#endregion
149
- //#region ../site-contracts/src/identity/gradientPresets.ts
150
- const gradientPresetIdValues = [
151
- "primary-secondary",
152
- "primary-accent",
153
- "secondary-accent",
154
- "primary-light-dark",
155
- "primary-dark-light",
156
- "secondary-light-dark",
157
- "accent-light-dark",
158
- "background-surface",
159
- "neutral-fade",
160
- "primary-glow",
161
- "accent-glow",
162
- "primary-secondary-accent"
163
- ];
164
- const gradientPresetIdSet = new Set(gradientPresetIdValues);
165
- function parseGradientPresetId(value) {
166
- if (typeof value !== "string") return null;
167
- const normalized = value.trim();
168
- return gradientPresetIdSet.has(normalized) ? normalized : null;
169
- }
170
- //#endregion
171
150
  //#region ../core/src/duration.ts
172
151
  const UNIT_LABELS_SINGULAR = {
173
152
  minutes: "minute",
@@ -687,227 +666,6 @@ function requireThemeColorToken(value) {
687
666
  return token;
688
667
  }
689
668
  //#endregion
690
- //#region ../theme-core/src/gradients/presets.ts
691
- /**
692
- * Curated gradient presets based on theme palette
693
- */
694
- const gradientPresetData = {
695
- "primary-secondary": {
696
- name: "Primary to Secondary",
697
- description: "Blend your primary and secondary brand colors",
698
- type: "linear",
699
- angle: 135,
700
- stops: [{
701
- color: "primary-500",
702
- position: 0
703
- }, {
704
- color: "secondary-500",
705
- position: 100
706
- }]
707
- },
708
- "primary-accent": {
709
- name: "Primary to Accent",
710
- description: "Energetic gradient from primary to accent",
711
- type: "linear",
712
- angle: 135,
713
- stops: [{
714
- color: "primary-500",
715
- position: 0
716
- }, {
717
- color: "accent-500",
718
- position: 100
719
- }]
720
- },
721
- "secondary-accent": {
722
- name: "Secondary to Accent",
723
- description: "Vibrant secondary to accent blend",
724
- type: "linear",
725
- angle: 135,
726
- stops: [{
727
- color: "secondary-500",
728
- position: 0
729
- }, {
730
- color: "accent-500",
731
- position: 100
732
- }]
733
- },
734
- "primary-light-dark": {
735
- name: "Primary Light to Dark",
736
- description: "Subtle primary color fade",
737
- type: "linear",
738
- angle: 180,
739
- stops: [{
740
- color: "primary-500",
741
- position: 0
742
- }, {
743
- color: "primary-900",
744
- position: 100
745
- }]
746
- },
747
- "primary-dark-light": {
748
- name: "Primary Dark to Light",
749
- description: "Reverse primary fade",
750
- type: "linear",
751
- angle: 180,
752
- stops: [{
753
- color: "primary-900",
754
- position: 0
755
- }, {
756
- color: "primary-50",
757
- position: 100
758
- }]
759
- },
760
- "secondary-light-dark": {
761
- name: "Secondary Light to Dark",
762
- description: "Subtle secondary color fade",
763
- type: "linear",
764
- angle: 180,
765
- stops: [{
766
- color: "secondary-500",
767
- position: 0
768
- }, {
769
- color: "secondary-900",
770
- position: 100
771
- }]
772
- },
773
- "accent-light-dark": {
774
- name: "Accent Light to Dark",
775
- description: "Accent color depth fade",
776
- type: "linear",
777
- angle: 180,
778
- stops: [{
779
- color: "accent-500",
780
- position: 0
781
- }, {
782
- color: "accent-900",
783
- position: 100
784
- }]
785
- },
786
- "background-surface": {
787
- name: "Background to Surface",
788
- description: "Subtle depth using base colors",
789
- type: "linear",
790
- angle: 180,
791
- stops: [{
792
- color: "background",
793
- position: 0
794
- }, {
795
- color: "surface",
796
- position: 100
797
- }]
798
- },
799
- "neutral-fade": {
800
- name: "Neutral Gradient",
801
- description: "Elegant neutral color fade",
802
- type: "linear",
803
- angle: 180,
804
- stops: [{
805
- color: "neutral-900",
806
- position: 0
807
- }, {
808
- color: "neutral-50",
809
- position: 100
810
- }]
811
- },
812
- "primary-glow": {
813
- name: "Primary glow",
814
- description: "A soft top-centred glow using your primary palette",
815
- type: "radial",
816
- shape: "ellipse",
817
- position: "top center",
818
- stops: [{
819
- color: "primary-900",
820
- position: 0
821
- }, {
822
- color: "primary-950",
823
- position: 100
824
- }],
825
- foreground: {
826
- textColor: "onPrimary900",
827
- headingColor: "onPrimary900",
828
- linkColor: "onPrimary900",
829
- supportingColor: "onPrimary900"
830
- }
831
- },
832
- "accent-glow": {
833
- name: "Accent glow",
834
- description: "A soft top-centred glow using your accent palette",
835
- type: "radial",
836
- shape: "ellipse",
837
- position: "top center",
838
- stops: [{
839
- color: "accent-900",
840
- position: 0
841
- }, {
842
- color: "accent-950",
843
- position: 100
844
- }],
845
- foreground: {
846
- textColor: "onAccent900",
847
- headingColor: "onAccent900",
848
- linkColor: "onAccent900",
849
- supportingColor: "onAccent900"
850
- }
851
- },
852
- "primary-secondary-accent": {
853
- name: "Brand Trio",
854
- description: "All three brand colors in harmony",
855
- type: "linear",
856
- angle: 135,
857
- stops: [
858
- {
859
- color: "primary-500",
860
- position: 0
861
- },
862
- {
863
- color: "secondary-500",
864
- position: 50
865
- },
866
- {
867
- color: "accent-500",
868
- position: 100
869
- }
870
- ]
871
- }
872
- };
873
- const presetData = (id) => gradientPresetData[id];
874
- /**
875
- * Curated library of gradient presets.
876
- * All gradients use theme color tokens, so they adapt to the site's palette.
877
- */
878
- const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
879
- id,
880
- ...presetData(id)
881
- }));
882
- const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
883
- function getGradientPreset(id) {
884
- return gradientPresetById[id];
885
- }
886
- //#endregion
887
- //#region ../theme-core/src/gradients/utils.ts
888
- /**
889
- * Convert a GradientConfig to a CSS gradient string
890
- *
891
- * @param config - The gradient configuration using theme tokens
892
- * @param tokens - Map of theme color tokens to hex values
893
- * @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
894
- */
895
- function gradientToCss(config, tokens) {
896
- const stops = config.stops.map((stop) => {
897
- return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
898
- }).join(", ");
899
- const type = config.type ?? "linear";
900
- if (type === "radial") {
901
- const position = config.position ?? "center";
902
- return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
903
- }
904
- if (type === "conic") {
905
- const position = config.position ?? "center";
906
- return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
907
- }
908
- return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
909
- }
910
- //#endregion
911
669
  //#region ../theme-core/src/site-styles/sectionPhoto.ts
912
670
  /** The photo a section keeps, wherever its background `type` points. */
913
671
  function storedSectionPhoto(content) {
@@ -962,9 +720,9 @@ function resolveArrangementContentLook(runtime, mode, content, audience) {
962
720
  }
963
721
  /** Section paint is decided here, after the effective Look, at its admitted render position. */
964
722
  function resolveRuntimeSection(input) {
965
- const rhythm = input.runtime && input.look ? input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
723
+ const rhythm = input.runtime && input.look ? input.placement === "column" ? null : input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
966
724
  const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
967
- const background = resolveSectionBackground(parseCanonicalRuntimeBackground(input.content), null, rhythm, photo);
725
+ const background = input.placement === "column" ? resolveSectionBackground({ kind: "none" }, null, null) : resolveSectionBackground(parseCanonicalRuntimeBackground(input.content), null, rhythm, photo);
968
726
  return {
969
727
  background,
970
728
  ground: deriveSectionGround(background, input.palette),
@@ -1438,13 +1196,16 @@ function renderEventItemContentPart({ part, props, facts }) {
1438
1196
  })
1439
1197
  ]
1440
1198
  });
1441
- case "title": return /* @__PURE__ */ jsx("h3", {
1199
+ case "title": return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("h3", {
1442
1200
  ...listLookSlot(props, "item-title"),
1443
1201
  children: /* @__PURE__ */ jsx("a", {
1444
1202
  ...facts.link,
1445
1203
  children: props.event.title
1446
1204
  })
1447
- });
1205
+ }), /* @__PURE__ */ jsx(EventQuickFacts, {
1206
+ facts: props.event.facts,
1207
+ context: "card"
1208
+ })] });
1448
1209
  case "time": return /* @__PURE__ */ jsxs("p", {
1449
1210
  ...listLookSlot(props, "time"),
1450
1211
  children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
@@ -1774,17 +1535,11 @@ function presentEditorBlock(block) {
1774
1535
  }
1775
1536
  function createPresentationPageReader() {
1776
1537
  const readBlock = memoizePresentationBlock(presentPublicBlock);
1777
- return (page) => page ? {
1778
- ...page,
1779
- blocks: page.blocks.map(readBlock)
1780
- } : null;
1538
+ return (page) => page ? mapOutlineBlocks(page, readBlock) : null;
1781
1539
  }
1782
1540
  function createEditorPresentationPageReader() {
1783
1541
  const readBlock = memoizePresentationBlock(presentEditorBlock);
1784
- return (page) => page ? {
1785
- ...page,
1786
- blocks: page.blocks.map(readBlock)
1787
- } : null;
1542
+ return (page) => page ? mapOutlineBlocks(page, readBlock) : null;
1788
1543
  }
1789
1544
  function memoizePresentationBlock(present) {
1790
1545
  const blocks = /* @__PURE__ */ new WeakMap();
@@ -2165,6 +1920,7 @@ function cardProjectionBase(event, buttonText, context) {
2165
1920
  id: event.occurrenceId || event.id,
2166
1921
  title: event.title,
2167
1922
  titleLink: resolveEventLinkProps(event),
1923
+ quickFacts: event.facts,
2168
1924
  text: event.presentation?.summary ?? event.description,
2169
1925
  media: event.presentation?.image,
2170
1926
  facts: offeringFacts(event, places?.label, offering),
@@ -2195,7 +1951,7 @@ function offeringSchedule(event, now) {
2195
1951
  return {
2196
1952
  numeral: run?.kind === "scheduled" ? {
2197
1953
  value: run.sessionCount,
2198
- label: "sessions"
1954
+ label: run.sessionCount === 1 ? "session" : "sessions"
2199
1955
  } : null,
2200
1956
  schedule: scheduleLine(summary, event, now)
2201
1957
  };
@@ -2283,7 +2039,7 @@ function eventHeaderContent(selection, show) {
2283
2039
  const event = selection.selected;
2284
2040
  const item = eventCardListContent(event, { kind: "event-details" });
2285
2041
  const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
2286
- const { date, timeRange } = formatEventDateParts({
2042
+ const { timeRange } = formatEventDateParts({
2287
2043
  startsAt: event.startsAt,
2288
2044
  endsAt: event.endsAt,
2289
2045
  ...eventDateOptions(event)
@@ -2292,10 +2048,7 @@ function eventHeaderContent(selection, show) {
2292
2048
  ...item,
2293
2049
  titleLink: void 0,
2294
2050
  facts: [
2295
- {
2296
- label: selection.mode === "next" ? "Next date" : "Date",
2297
- value: date
2298
- },
2051
+ headerDateFact(selection),
2299
2052
  {
2300
2053
  label: "Time",
2301
2054
  value: timeRange
@@ -2309,10 +2062,36 @@ function eventHeaderContent(selection, show) {
2309
2062
  action: headerAction(selection, item.action)
2310
2063
  };
2311
2064
  }
2065
+ /** A course run is described by its whole span, not by whichever session was selected. */
2066
+ function headerDateFact(selection) {
2067
+ const event = selection.selected;
2068
+ if (selection.kind === "wholeSeries") {
2069
+ const sessions = orderedLiveRunSessions(selection.sessions);
2070
+ const first = sessions[0];
2071
+ const last = sessions.at(-1);
2072
+ if (first && last && first !== last) return {
2073
+ label: "Dates",
2074
+ value: formatEventRunDates(first, last, eventDateOptions({
2075
+ ...event,
2076
+ timeZone: first.timeZone
2077
+ }))
2078
+ };
2079
+ }
2080
+ const { date } = formatEventDateParts({
2081
+ startsAt: event.startsAt,
2082
+ endsAt: event.endsAt,
2083
+ ...eventDateOptions(event)
2084
+ });
2085
+ return {
2086
+ label: selection.mode === "next" ? "Next date" : "Date",
2087
+ value: date
2088
+ };
2089
+ }
2090
+ /** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
2312
2091
  function headerAction(selection, action) {
2313
2092
  if (action.external) return action;
2314
2093
  if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
2315
- if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: "Registration closed" };
2094
+ if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
2316
2095
  if (!action.href) return action;
2317
2096
  return {
2318
2097
  ...action,
@@ -2352,6 +2131,7 @@ function EventHeader({ selection, presentation, showCost, showCapacity }) {
2352
2131
  ...listLookSlot(presentation, "headline"),
2353
2132
  children: item.title
2354
2133
  }),
2134
+ /* @__PURE__ */ jsx(EventQuickFacts, { facts: presentation.quickFacts }),
2355
2135
  item.text ? /* @__PURE__ */ jsx("p", {
2356
2136
  ...listLookSlot(presentation, "lede"),
2357
2137
  children: item.text
@@ -2838,6 +2618,17 @@ function childFields(field) {
2838
2618
  return [];
2839
2619
  }
2840
2620
  //#endregion
2621
+ //#region ../blocks/src/system/transforms/registry/eventRegistrationPageKind.ts
2622
+ const eventRegistrationPageReadAdmission = {
2623
+ id: "events.registrationPageReadAdmission",
2624
+ kind: "formatter",
2625
+ summary: "Read booking-page runs on their own page; retain full-page subject admission",
2626
+ run(value, _options, context) {
2627
+ if (context.data?.pageKind === "bookingPage") return "own-page";
2628
+ return asPartialObject(asPartialObject(value)?.subject)?.detailAdmission === "own-page" ? "own-page" : void 0;
2629
+ }
2630
+ };
2631
+ //#endregion
2841
2632
  //#region ../blocks/src/system/transforms/registry/offeringsPreview.ts
2842
2633
  /** Reuse the existing occurrence read for the date strip and card date rows. */
2843
2634
  const offeringsPreviewDatesReadEnabled = {
@@ -3170,6 +2961,194 @@ function sectionFallbackBackground(token) {
3170
2961
  color: token
3171
2962
  };
3172
2963
  }
2964
+ //#endregion
2965
+ //#region ../blocks/src/contracts/booking-policy.ts
2966
+ function describePublicRefundPolicy(refunds) {
2967
+ const refundDestination = refunds.method === "site_credit" ? "as credit to use with this business" : "to your original payment method";
2968
+ if (refunds.mode === "cutoff" && refunds.cutoffHours === 0) return `Cancel before the booking starts for a full refund ${refundDestination}.`;
2969
+ switch (refunds.mode) {
2970
+ case "always": return `Cancel before the booking starts for a full refund ${refundDestination}.`;
2971
+ case "never": return "Bookings are non-refundable.";
2972
+ case "cutoff": return `Cancel up to ${formatCutoff(refunds.cutoffHours)} before it starts for a full refund ${refundDestination}.`;
2973
+ }
2974
+ }
2975
+ function formatCutoff(cutoffHours) {
2976
+ const hours = Math.max(0, Math.round(cutoffHours));
2977
+ if (hours % 24 === 0) {
2978
+ const days = hours / 24;
2979
+ return `${days} ${days === 1 ? "day" : "days"}`;
2980
+ }
2981
+ return `${hours} ${hours === 1 ? "hour" : "hours"}`;
2982
+ }
2983
+ //#endregion
2984
+ //#region ../blocks/src/system/blocks/appointments/presentation.ts
2985
+ const publicVenueSchema = z.object({
2986
+ name: z.string(),
2987
+ area: z.string().nullable()
2988
+ });
2989
+ const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
2990
+ z.object({ mode: z.literal("online") }),
2991
+ z.object({
2992
+ mode: z.literal("in_person"),
2993
+ venue: publicVenueSchema.nullable()
2994
+ }),
2995
+ z.object({
2996
+ mode: z.literal("either"),
2997
+ venue: publicVenueSchema.nullable()
2998
+ })
2999
+ ]);
3000
+ const publicPricingOptionSchema = z.object({
3001
+ priceAmount: z.number().finite(),
3002
+ isActive: z.boolean(),
3003
+ saleStartsAt: z.string().nullable(),
3004
+ saleEndsAt: z.string().nullable()
3005
+ });
3006
+ const publicAppointmentPricingSchema = z.object({
3007
+ pricingStrategy: z.enum([
3008
+ "free",
3009
+ "single",
3010
+ "tiered",
3011
+ "sliding_scale"
3012
+ ]),
3013
+ currency: z.string().min(1),
3014
+ singlePriceAmount: z.number().nullable(),
3015
+ slidingMinAmount: z.number().nullable(),
3016
+ slidingMaxAmount: z.number().nullable(),
3017
+ options: z.array(publicPricingOptionSchema).readonly()
3018
+ });
3019
+ function formatAppointmentDuration(durationMinutes) {
3020
+ return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
3021
+ }
3022
+ function formatAppointmentLocation(location) {
3023
+ switch (location.mode) {
3024
+ case "online": return "Online";
3025
+ case "in_person": return formatVenue(location.venue);
3026
+ case "either": {
3027
+ const venue = formatVenue(location.venue);
3028
+ return venue ? `${venue} or online` : "In person or online";
3029
+ }
3030
+ default: return assertNever$1(location);
3031
+ }
3032
+ }
3033
+ function formatVenue(venue) {
3034
+ if (!venue) return null;
3035
+ return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
3036
+ }
3037
+ function formatAppointmentPrice(service) {
3038
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
3039
+ const pricing = service.pricing;
3040
+ if (pricing) {
3041
+ const display = appointmentPricingDisplay(pricing);
3042
+ return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
3043
+ }
3044
+ return formatAmountOrFree(service.priceAmount, service.priceCurrency);
3045
+ }
3046
+ function formatAmountOrFree(amount, currency) {
3047
+ if (amount === null || currency === null) return null;
3048
+ if (amount === 0) return "Free";
3049
+ return formatBookingPriceDisplay({
3050
+ kind: "exact",
3051
+ amount,
3052
+ currency
3053
+ }, { decimals: "auto" });
3054
+ }
3055
+ function appointmentPricingDisplay(pricing) {
3056
+ switch (pricing.pricingStrategy) {
3057
+ case "free": return {
3058
+ kind: "free",
3059
+ currency: pricing.currency
3060
+ };
3061
+ case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
3062
+ case "tiered": return resolvePricingOptionsPriceDisplay({
3063
+ options: pricing.options,
3064
+ currency: pricing.currency,
3065
+ purpose: "available_now"
3066
+ });
3067
+ case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
3068
+ kind: "unavailable",
3069
+ currency: pricing.currency
3070
+ } : {
3071
+ kind: "range",
3072
+ minAmount: pricing.slidingMinAmount,
3073
+ maxAmount: pricing.slidingMaxAmount,
3074
+ currency: pricing.currency
3075
+ };
3076
+ default: return assertNever$1(pricing.pricingStrategy);
3077
+ }
3078
+ }
3079
+ //#endregion
3080
+ //#region ../blocks/src/system/blocks/appointments/serviceDetailsFacts.ts
3081
+ /** Only the facts the details view uses, read from the public service payload. */
3082
+ const serviceDetailsSourceSchema = z.object({
3083
+ durationMinutes: z.number().int().positive(),
3084
+ pricing: publicAppointmentPricingSchema.optional(),
3085
+ priceAmount: z.number().nullable(),
3086
+ priceCurrency: z.string().nullable(),
3087
+ onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
3088
+ location: publicAppointmentLocationSchema,
3089
+ cancellationPolicy: z.object({ refunds: z.object({
3090
+ mode: z.enum([
3091
+ "always",
3092
+ "never",
3093
+ "cutoff"
3094
+ ]),
3095
+ cutoffHours: z.number(),
3096
+ method: z.enum(["original_payment_method", "site_credit"])
3097
+ }) }),
3098
+ practitioners: z.array(z.object({
3099
+ name: z.string(),
3100
+ roleLabel: z.string().nullable().optional()
3101
+ })).optional()
3102
+ });
3103
+ /**
3104
+ * The block reads services the way `getPublicBookingServices` returns them:
3105
+ * the catalogue `{ services }` or a bare list. A code-owned page hands over the
3106
+ * same shape, so both kinds of page show the same facts.
3107
+ */
3108
+ const serviceDetailsDataSchema = z.union([z.array(z.unknown()), z.object({ services: z.array(z.unknown()) }).transform((catalogue) => catalogue.services)]);
3109
+ function serviceDetailsFacts(service) {
3110
+ const price = formatAppointmentPrice(service);
3111
+ const location = formatAppointmentLocation(service.location);
3112
+ const practitioners = service.practitioners ?? [];
3113
+ return [
3114
+ {
3115
+ label: "How long",
3116
+ value: formatAppointmentDuration(service.durationMinutes)
3117
+ },
3118
+ ...price ? [{
3119
+ label: "Price",
3120
+ value: price
3121
+ }] : [],
3122
+ ...location ? [{
3123
+ label: "Where",
3124
+ value: location
3125
+ }] : [],
3126
+ {
3127
+ label: "Cancelling",
3128
+ value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
3129
+ },
3130
+ ...practitioners.length ? [{
3131
+ label: practitioners.length === 1 ? "Practitioner" : "Practitioners",
3132
+ value: practitioners.map((person) => person.roleLabel ? `${person.name}, ${person.roleLabel}` : person.name).join("; ")
3133
+ }] : []
3134
+ ];
3135
+ }
3136
+ /** No facts when the read is missing, failed or doesn't hold exactly one service. */
3137
+ function readServiceDetailsFacts(data) {
3138
+ const services = serviceDetailsDataSchema.safeParse(data);
3139
+ if (!services.success || services.data.length !== 1) return [];
3140
+ const service = serviceDetailsSourceSchema.safeParse(services.data[0]);
3141
+ return service.success ? serviceDetailsFacts(service.data) : [];
3142
+ }
3143
+ //#endregion
3144
+ //#region ../blocks/src/system/transforms/registry/serviceDetails.ts
3145
+ /** The service details block lists these; none means the block has nothing to show. */
3146
+ const serviceDetailsFactsTransform = {
3147
+ id: "appointments.serviceDetailsFacts",
3148
+ kind: "collection",
3149
+ summary: "Read the facts shown for one appointment service",
3150
+ run: (value) => readServiceDetailsFacts(value)
3151
+ };
3173
3152
  const eventCalendarSelectionParam = {
3174
3153
  id: "events.calendarSelectionParam",
3175
3154
  kind: "formatter",
@@ -3216,6 +3195,7 @@ const eventCalendarReadEnabled = {
3216
3195
  //#endregion
3217
3196
  //#region ../blocks/src/system/transforms/registry/index.ts
3218
3197
  const builtinTransformDefinitions = [
3198
+ eventRegistrationPageReadAdmission,
3219
3199
  offeringsPreviewDatesReadEnabled,
3220
3200
  lookLeadSlotTransform,
3221
3201
  lookQuoteLimitTransform,
@@ -3259,7 +3239,8 @@ const builtinTransformDefinitions = [
3259
3239
  ...boxStylesTransforms,
3260
3240
  ...contentTransforms,
3261
3241
  ...headerRuntimeTransforms,
3262
- mapDrawingStyleTransform
3242
+ mapDrawingStyleTransform,
3243
+ serviceDetailsFactsTransform
3263
3244
  ];
3264
3245
  const defaultTransforms = createTransformRegistry(builtinTransformDefinitions);
3265
3246
  //#endregion
@@ -3768,6 +3749,16 @@ function pairKey(previousBlockId, nextBlockId) {
3768
3749
  }
3769
3750
  //#endregion
3770
3751
  //#region ../blocks/src/pageRenderPlan.ts
3752
+ /**
3753
+ * Decides, once per page render, which blocks can render and what happens to
3754
+ * the ones that cannot.
3755
+ *
3756
+ * Pure. Effects — logging in particular — belong at the call site, because this
3757
+ * runs inside a `useMemo` whose recomputation React makes no promises about.
3758
+ */
3759
+ function buildPageRenderPlan(input) {
3760
+ return planPageRender(input).plan;
3761
+ }
3771
3762
  /** Owner-local derived reuse; shared settings and admitted rhythm position remain inputs. */
3772
3763
  function createPageRenderPlanReader() {
3773
3764
  const memo = { current: null };
@@ -3779,24 +3770,50 @@ function createPageRenderPlanReader() {
3779
3770
  function planPageRender(input, previous = null) {
3780
3771
  const resolveTarget = createRenderTargetResolver(input);
3781
3772
  const reusable = previous && samePlanSettings(previous.input, input) ? previous : null;
3782
- const planned = input.page.blocks.map((block) => [block, reusable?.outcomes.get(block) ?? planPageBlock(block, input, resolveTarget)]);
3783
- const outcomes = planned.map(([, outcome]) => outcome);
3784
- const rhythmic = outcomes.flatMap((outcome) => outcome.kind === "admitted" ? [outcome.entry] : []).map((entry, position) => {
3785
- const cached = reusable?.rhythm.get(entry);
3786
- return [entry, {
3787
- position,
3788
- entry: cached?.position === position ? cached.entry : applyArrangementRhythm(entry, position)
3789
- }];
3790
- });
3791
3773
  const hidden = new Set(input.hiddenBlockIds);
3792
- const visibleEntries = rhythmic.map(([, value]) => value.entry).filter((entry) => !entry.block.id || !hidden.has(entry.block.id));
3774
+ const admittedRegions = outlineRegions(input.page).map(({ region, blocks }) => {
3775
+ const planned = blocks.map((block) => {
3776
+ const cached = reusable?.outcomes.get(block);
3777
+ return [block, cached && (cached.kind !== "admitted" || cached.entry.region === region) ? cached : planPageBlock(block, input, resolveTarget, region)];
3778
+ });
3779
+ return {
3780
+ region,
3781
+ planned,
3782
+ entries: planned.flatMap(([, outcome]) => outcome.kind === "admitted" ? [outcome.entry] : [])
3783
+ };
3784
+ });
3785
+ const shown = (entry) => !entry.block.id || !hidden.has(entry.block.id);
3786
+ const placement = admittedRegions.some(({ region, entries }) => region === "aside" && entries.some(shown)) ? "column" : "page-wide";
3787
+ const regionPlans = admittedRegions.map(({ region, planned, entries }) => {
3788
+ const rhythmic = entries.map((entry, position) => {
3789
+ const cached = reusable?.rhythm.get(entry);
3790
+ return [entry, {
3791
+ position,
3792
+ placement,
3793
+ entry: cached?.position === position && cached.placement === placement ? cached.entry : applyArrangementRhythm(entry, position, placement)
3794
+ }];
3795
+ });
3796
+ return {
3797
+ region,
3798
+ planned,
3799
+ rhythmic,
3800
+ entries: rhythmic.map(([, value]) => value.entry).filter(shown)
3801
+ };
3802
+ });
3803
+ const regions = {
3804
+ main: regionPlans[0]?.entries ?? [],
3805
+ aside: regionPlans[1]?.entries ?? []
3806
+ };
3807
+ const planned = regionPlans.flatMap(({ planned }) => planned);
3808
+ const rhythmic = regionPlans.flatMap(({ rhythmic }) => rhythmic);
3793
3809
  const plan = {
3794
- entries: visibleEntries,
3795
- omitted: outcomes.flatMap((outcome) => outcome.kind === "omitted" ? [outcome.omission] : []),
3810
+ regions,
3811
+ entries: [...regions.main, ...regions.aside],
3812
+ omitted: planned.flatMap(([, outcome]) => outcome.kind === "omitted" ? [outcome.omission] : []),
3796
3813
  runtimeJoins: retargetJoinsAcrossOmissions({
3797
3814
  joins: input.runtimeJoins ?? [],
3798
3815
  originalBlocks: input.page.blocks,
3799
- survivingBlocks: new Set(visibleEntries.map((entry) => entry.block))
3816
+ survivingBlocks: new Set(regions.main.map((entry) => entry.block))
3800
3817
  })
3801
3818
  };
3802
3819
  return {
@@ -3814,10 +3831,11 @@ function samePlanSettings(previous, current) {
3814
3831
  * case changes meaning: admission first, then definition/override resolution,
3815
3832
  * then the layout requirement.
3816
3833
  */
3817
- function planBlock(block, renderableContent, resolveTarget, audience, siteStyleId) {
3834
+ function planBlock(block, renderableContent, resolveTarget, audience, siteStyleId, region) {
3818
3835
  const common = {
3819
3836
  block,
3820
- renderableContent
3837
+ renderableContent,
3838
+ region
3821
3839
  };
3822
3840
  if (block.presentationAdmission.kind === "invalid") return {
3823
3841
  ...common,
@@ -4089,7 +4107,7 @@ function arrangementContentHooks(effective, mode, length, facts, values, photoCo
4089
4107
  ...Object.fromEntries(Object.entries(values).map(([key, value]) => [`data-knob-${key === "titleSize" ? "headline" : key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}`, value]))
4090
4108
  };
4091
4109
  }
4092
- function applyArrangementRhythm(entry, position) {
4110
+ function applyArrangementRhythm(entry, position, placement) {
4093
4111
  const runtime = arrangementRuntime(entry.renderableContent);
4094
4112
  const look = effectiveLookFromContent(entry.renderableContent);
4095
4113
  if (!runtime || !look) return entry;
@@ -4099,6 +4117,7 @@ function applyArrangementRhythm(entry, position) {
4099
4117
  runtime,
4100
4118
  look,
4101
4119
  position,
4120
+ placement,
4102
4121
  blockKind: entry.block.kind,
4103
4122
  arrangementKey: entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0,
4104
4123
  palette: runtime.surfaceContext.palette
@@ -4148,8 +4167,8 @@ function applyResolvedArrangementBackground(content, resolved) {
4148
4167
  }
4149
4168
  };
4150
4169
  }
4151
- function planPageBlock(block, input, resolveTarget) {
4152
- const outcome = planBlock(block, getRenderableContent(block, input.previewStage), resolveTarget, input.audience, input.siteStyleId ?? null);
4170
+ function planPageBlock(block, input, resolveTarget, region) {
4171
+ const outcome = planBlock(block, getRenderableContent(block, input.previewStage), resolveTarget, input.audience, input.siteStyleId ?? null, region);
4153
4172
  if (outcome.kind !== "diagnostic") return {
4154
4173
  kind: "admitted",
4155
4174
  entry: outcome
@@ -4258,4 +4277,4 @@ function plannedSlotParents(entry, look) {
4258
4277
  return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement);
4259
4278
  }
4260
4279
  //#endregion
4261
- export { CalendarIcon as A, selectBlockContent as B, createEditorPresentationPageReader as C, CardListItems as D, CardListCollection as E, formatEventDuration as F, defaultThemeTokens as H, resolveEventCardBooking as I, resolveEventCta as L, buildMonthDay as M, resolveMonthSelectedDay as N, EventItem as O, formatEventTeacherLine as P, resolveEventLinkProps as R, EventListingFrameView as S, EmptyState as T, buildThemeTokens as V, EVENT_REGISTRATION_ANCHOR_ID as _, renderedJoinLayout as a, derivePreviewRunSchedule as b, coerceLinkedContentEntriesPayload as c, defaultTransforms as d, resolveAuthoredLinkHref as f, EventHeader as g, resolveRouteTarget as h, joinSlotKey as i, MapPinIcon as j, eventCategoryBadge as k, resolveLinkedEntryInlineFieldEligibility as l, resolvePageRouteTarget as m, planArrangementContent as n, retargetJoinsAcrossOmissions as o, resolveEntryRouteTarget as p, composePageJoins as r, buildLinkedContentEditTarget as s, createPageRenderPlanReader as t, builtinTransformDefinitions as u, eventCardListContent as v, createPresentationPageReader as w, MonthLookView as x, deriveEventScheduleSummary as y, parseStoredVariant as z };
4280
+ export { createEditorPresentationPageReader as A, resolveMonthSelectedDay as B, EventHeader as C, derivePreviewRunSchedule as D, deriveEventScheduleSummary as E, EventItem as F, resolveEventLinkProps as G, formatEventDuration as H, eventCategoryBadge as I, resolveRuntimeSection as J, parseStoredVariant as K, CalendarIcon as L, EmptyState as M, CardListCollection as N, MonthLookView as O, CardListItems as P, MapPinIcon as R, systemCustomizeFacetDefinitionsForBlock as S, eventCardListContent as T, resolveEventCardBooking as U, formatEventTeacherLine as V, resolveEventCta as W, defaultThemeTokens as X, buildThemeTokens as Y, publicAppointmentPricingSchema as _, joinSlotKey as a, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, builtinTransformDefinitions as d, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, createPresentationPageReader as j, EventListingFrameView as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, renderedJoinLayout as o, formatAppointmentDuration as p, selectBlockContent as q, planArrangementContent as r, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, buildMonthDay as z };