@riverbankcms/sdk 0.158.0 → 0.160.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 (196) hide show
  1. package/README.md +25 -6
  2. package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
  3. package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
  4. package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
  5. package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
  6. package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
  7. package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
  8. package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
  10. package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
  11. package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
  12. package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
  13. package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
  14. package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
  15. package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
  16. package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
  17. package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
  19. package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
  20. package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
  21. package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
  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 +12 -6
  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/index.d.ts +8 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  40. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  42. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  44. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  45. package/dist/_dts/sdk/src/server.d.ts +5 -5
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
  48. package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
  49. package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
  50. package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
  51. package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
  52. package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
  53. package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
  54. package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
  55. package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
  56. package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
  57. package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
  58. package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
  59. package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
  60. package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
  61. package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
  62. package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
  63. package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
  64. package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
  65. package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
  66. package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
  67. package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
  68. package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
  69. package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
  70. package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
  71. package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
  72. package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
  73. package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
  74. package/dist/client/bookings.mjs +6 -6
  75. package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
  76. package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
  77. package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
  78. package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
  79. package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
  80. package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
  81. package/dist/client/client.mjs +25 -13
  82. package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
  83. package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
  84. package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
  85. package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
  86. package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
  87. package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
  88. package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
  89. package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
  90. package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
  91. package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
  92. package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
  93. package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
  94. package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
  95. package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
  96. package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
  97. package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
  98. package/dist/client/gifting/client.mjs +3 -3
  99. package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
  100. package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
  101. package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
  102. package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
  104. package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
  105. package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
  106. package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
  107. package/dist/client/portal/client.mjs +4562 -174
  108. package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
  109. package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
  110. package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
  111. package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
  112. package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
  113. package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
  114. package/dist/client/rendering/client.mjs +27 -26
  115. package/dist/client/rendering/islands.mjs +1 -1
  116. package/dist/client/rendering.mjs +47 -28
  117. package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
  118. package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
  119. package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
  120. package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
  121. package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
  122. package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
  123. package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
  124. package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
  125. package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
  126. package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
  127. package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
  128. package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
  129. package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
  130. package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
  131. package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
  132. package/dist/client/uuid-BETKW8rS.mjs +12 -0
  133. package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
  134. package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
  135. package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
  136. package/dist/preview-next/before-render.mjs +1 -1
  137. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
  138. package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
  139. package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
  141. package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
  143. package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
  144. package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
  145. package/dist/preview-next/client/runtime.mjs +3 -3
  146. package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
  147. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
  148. package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
  149. package/dist/preview-next/editor-base.css +62 -0
  150. package/dist/preview-next/editor-chrome.css +85 -0
  151. package/dist/preview-next/keepAlive.mjs +1 -1
  152. package/dist/preview-next/middleware.mjs +1 -1
  153. package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
  154. package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
  155. package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
  156. package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
  157. package/dist/server/config-template-validation.mjs +50 -10
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
  161. package/dist/server/index.mjs +2 -2
  162. package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
  163. package/dist/server/loadPage-DUPP51C-.mjs +2 -0
  164. package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
  165. package/dist/server/manifest.mjs +1 -1
  166. package/dist/server/metadata.mjs +2 -2
  167. package/dist/server/next.mjs +13 -12
  168. package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
  169. package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
  170. package/dist/server/page-converter.mjs +8 -10
  171. package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
  172. package/dist/server/prebuild.mjs +1 -1
  173. package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
  174. package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
  175. package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
  176. package/dist/server/rendering/server.mjs +4 -4
  177. package/dist/server/rendering.mjs +7 -7
  178. package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
  179. package/dist/server/routing.mjs +1 -1
  180. package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
  181. package/dist/server/server.mjs +3 -3
  182. package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
  183. package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
  184. package/dist/server/theme-bridge.mjs +1 -1
  185. package/dist/server/theme.mjs +1 -1
  186. package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
  187. package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
  188. package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
  189. package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
  190. package/dist/styles/index.css +78 -0
  191. package/package.json +8 -3
  192. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  193. package/dist/_dts/index-cnymEAZY.d.ts +0 -1
  194. package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
  195. package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
  196. package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
@@ -1,29 +1,30 @@
1
1
  "use client";
2
2
  import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
3
3
  import { T as ok, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
4
- import { Er as runtimeMediaSchema, Gt as cardVariantRoleValues, Qn as backgroundColorStyle, S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, ft as parseThemeButtonVariantId, g as FileArchiveIcon, i as ThemedButtonLink, jn as resolveThemeColorReferenceValue, l as SpinnerNode, n as ThemedAuthoredButton, nr as rgbColorValue, o as getIconComponent, p as CirclePlusIcon, r as ThemedButton, rr as textColorStyle, s as ICON_PICKER_PRESETS, st as ICON_CONFIG, tr as mergeStyles, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-DVBC_pS9.mjs";
4
+ import { $n as backgroundColorStyle, C as clsx, Dr as runtimeMediaSchema, Kt as cardVariantRoleValues, Mn as resolveThemeColorReferenceValue, S as PlusIcon, _ as FileArchiveIcon, a as ThemedDownloadLink, b as FileTextIcon, c as ICON_PICKER_PRESETS, ct as ICON_CONFIG, d as ArrowDownIcon, f as ChevronDownIcon, i as ThemedButtonLink, ir as textColorStyle, l as isSemanticIconId, m as CirclePlusIcon, nr as mergeStyles, p as CircleMinusIcon, r as ThemedButton, rr as rgbColorValue, s as getIconComponent, u as SpinnerNode, v as FileAudioIcon, x as MinusIcon, y as FileSpreadsheetIcon } from "./ThemedButton-C22C9cCF.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
- import { Ar as listLookSlot, Cn as getEventAvailability, Cr as resolveEventRegistrationScopedEvents, Di as resolveWholeSeriesBookingPhase, Ei as orderedLiveRunSessions, En as isEventFull, Gi as resolvePricingOptionsPriceDisplay, Ki as assertNever$1, Kr as compiledRuntimeStyleFieldNames, Li as formatBookingPriceDisplay, Or as listItemPresentation, Si as parseAspectRatioValue, Sr as normalizeEventRegistrationPageSurfaceSubject, Ti as nextLiveRunSessionStartMs, Ut as RichText, Wi as resolveExactOrFreePriceDisplay, _n as resolveRuntimeEventDestination, an as eventDateOptions, dn as formatEventHourLabel, en as resolvePublicMediaUrl, hn as groupEventsByDate, hr as isBlockButtonRole, jn as buildBookingFormInteractiveIslandProps, kn as groupPublicEventsByRun, ln as formatEventCompactDateRail, mn as formatTime, ni as arrangementSlotNames, nn as buildCalendarViewport, pn as formatEventTimeRange, pr as BLOCK_BUTTON_ROLE_OPTIONS, sn as formatCalendarTitle, tn as sanitizeHref, wn as getEventAvailabilityStatus, yn as canJoinEventWaitlistOnAnyMode } from "./wizardSteps-HdyGoIG3.mjs";
7
- import { C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, W as publicEventsArraySchema, X as RichTextDocSchema, p as calendarWindowPageSchema, tt as formatDate, x as eventCalendarListLayoutOptions, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-DMFt3KdC.mjs";
6
+ import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
7
+ import { Ai as orderedLiveRunSessions, An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Ei as parseAspectRatioValue, Er as normalizeEventRegistrationPageSurfaceSubject, Fn as buildBookingFormInteractiveIslandProps, Ji as resolveExactOrFreePriceDisplay, Kt as RichText, Mr as listItemPresentation, Nn as groupPublicEventsByRun, On as getEventAvailabilityStatus, Pr as listLookSlot, Vi as formatBookingPriceDisplay, Xr as compiledRuntimeStyleFieldNames, Yi as resolvePricingOptionsPriceDisplay, _n as formatEventTimeRange, _r as BLOCK_BUTTON_ROLE_OPTIONS, an as buildCalendarViewport, cn as eventDateOptions, hn as formatEventHourLabel, in as sanitizeHref, ji as resolveWholeSeriesBookingPhase, ki as nextLiveRunSessionStartMs, oi as arrangementSlotNames, pn as formatEventCompactDateRail, rn as resolvePublicMediaUrl, un as formatCalendarTitle, vn as formatTime, xn as resolveRuntimeEventDestination, yn as groupEventsByDate, yr as isBlockButtonRole } from "./wizardSteps-zgq10lN1.mjs";
8
+ import { C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, W as publicEventsArraySchema, X as RichTextDocSchema, p as calendarWindowPageSchema, tt as formatDate, x as eventCalendarListLayoutOptions, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-B610YKEx.mjs";
8
9
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { i as normalizeLocationMapProps, o as toLocationMapHydrationProps, t as LocationMapView } from "./location-map.view-RuBCD10O.mjs";
10
- import { B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, Gt as Grid, H as publicGiftingOffersResponseSchema, Ht as MediaNodeServer, I as newsletterBlockSubmissionMessage, It as catalogueEventCardProps, Kt as buildEventListWeek, L as newsletterFormBlockRuntime, Lt as listingEventCardProps, N as publicProductsResponseSchema, Ot as buildEventListingInteractiveIslandProps, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, U as buildFormInteractiveIslandProps, Ut as getCardOrientation, W as formBlockRuntime, Wt as getContainerClass, Y as eventRegistrationBlockRuntime, Yt as formatEventPriceDisplay, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, an as publicPassProductCollectionSchema, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, dt as resolveOfferingsRenderInput, en as staticHeaderChromeRuntime, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as publicMembershipProductCollectionSchema, kt as eventListingBlockRuntime, ln as DEFAULT_MAILING_LIST_TARGETING, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as formatEventPrice, r as buildProductDetailInteractiveIslandProps, rn as splitSiteChromePlacementClasses, rt as buildOfferingsPreviewListing, st as offeringsListingFor, t as buildCartInteractiveIslandProps, ut as resolveOfferingsPreviewRunPath, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-DBMeM8VD.mjs";
11
- import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-BWnUuJce.mjs";
12
- import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-CIcMQRc1.mjs";
13
- import { n as CardListItems, r as EventItem } from "./EventItem-DnCTygqk.mjs";
14
- import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-pAuTDyrP.mjs";
10
+ import { i as normalizeLocationMapProps, o as toLocationMapHydrationProps, t as LocationMapView } from "./location-map.view-Cx4Bl7ij.mjs";
11
+ import { At as recurringScheduleProjectionSchema, B as giftingBlockRuntime, Bt as listingEventCardProps, Dt as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, Gt as MediaNodeServer, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Jt as Grid, Kt as getCardOrientation, L as newsletterFormBlockRuntime, Mt as eventListingBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Qt as formatEventPriceDisplay, St as eventCombinedBlockRuntime, Tt as buildEventCalendarListingDisplay, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Xt as formatEventPrice, Y as eventRegistrationBlockRuntime, Yt as buildEventListWeek, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, bt as buildEventCombinedInteractiveIslandProps, c as checkoutBlockRuntime, cn as publicPassProductCollectionSchema, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, dn as parseMailingListPlacementTargeting, dt as resolveOfferingsRenderInput, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, jt as buildEventListingInteractiveIslandProps, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, on as splitSiteChromePlacementClasses, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, pn as DEFAULT_MAILING_LIST_TARGETING, q as buildEventRegistrationInteractiveIslandProps, qt as getContainerClass, r as buildProductDetailInteractiveIslandProps, rn as staticHeaderChromeRuntime, rt as buildOfferingsPreviewListing, sn as publicMembershipProductCollectionSchema, st as offeringsListingFor, t as buildCartInteractiveIslandProps, un as assessMailingListTargeting, ut as resolveOfferingsPreviewRunPath, wt as buildEventCalendarInteractiveIslandProps, xt as buildEventCombinedListingDisplay, yt as occurrenceContextSchema, z as buildGiftingInteractiveIslandProps, zt as catalogueEventCardProps } from "./shop.interactive-5SnnDHz3.mjs";
12
+ import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-CUXhX_D7.mjs";
13
+ import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-CHSi9b3E.mjs";
14
+ import { n as CardListItems, r as EventItem } from "./EventItem-CXhnT9pF.mjs";
15
+ import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-B-Yi5JZS.mjs";
15
16
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
16
- import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-BPEa6Okm.mjs";
17
+ import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-CseyBW07.mjs";
17
18
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
19
+ import { a as MonthLookView, c as ButtonNode, d as TextNode, i as buildWeekBoardViewProps, l as LinkNode, n as WeekBoardView, o as CalendarRecurringWeek, r as buildWeekBoardNavigationState, s as RecurringSchedule, t as buildTimetableModel, u as RichTextNode } from "./timetableModel-C19rcHEw.mjs";
18
20
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
19
- import { t as coerceRichTextDoc } from "./richText-coerce-DXAmC72p.mjs";
21
+ import { t as coerceRichTextDoc } from "./richText-coerce-Cv-qomNB.mjs";
20
22
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
21
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-hJr_L4QC2.mjs";
22
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-9h97heuQ.mjs";
23
- import { a as MonthLookView, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-D7PwpaBY.mjs";
24
- import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-qEq6X5zP.mjs";
25
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Bs0F3v08.mjs";
26
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-C9I9JBhe.mjs";
23
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CkUn3Y0Y.mjs";
24
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-V-dtoDlD.mjs";
25
+ import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-DiD6euZ8.mjs";
26
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-mttKpgif.mjs";
27
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DKHye4IE.mjs";
27
28
  import React, { forwardRef } from "react";
28
29
  import { z } from "zod";
29
30
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -96,7 +97,7 @@ function createButtonGroup(options = {}) {
96
97
  },
97
98
  {
98
99
  value: "xl",
99
- label: "Extra Large"
100
+ label: "Extra large"
100
101
  }
101
102
  ],
102
103
  required: false,
@@ -158,7 +159,7 @@ function createButtonGroup(options = {}) {
158
159
  const BACKGROUND_POSITION_PRESETS = [
159
160
  {
160
161
  value: "center",
161
- label: "Center"
162
+ label: "Centre"
162
163
  },
163
164
  {
164
165
  value: "top",
@@ -629,7 +630,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
629
630
  id: "spacing",
630
631
  type: "select",
631
632
  label: "Inner spacing",
632
- description: `Padding for the ${contextName}.`,
633
+ description: `Space inside the ${contextName}, around its content.`,
633
634
  required: false,
634
635
  multiple: false,
635
636
  options: [
@@ -643,7 +644,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
643
644
  },
644
645
  {
645
646
  value: "cozy",
646
- label: "Cozy"
647
+ label: "Cosy"
647
648
  },
648
649
  {
649
650
  value: "medium",
@@ -669,7 +670,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
669
670
  id: "enabled",
670
671
  type: "boolean",
671
672
  label: "Show border",
672
- description: "When unset, the card inherits its border from the block/theme defaults.",
673
+ description: "If you don't set this, the card uses your site style's border.",
673
674
  required: false
674
675
  },
675
676
  {
@@ -704,8 +705,8 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
704
705
  {
705
706
  id: "colorToken",
706
707
  type: "text",
707
- label: "Border color token",
708
- description: "Theme token for the border color (e.g. border, primary/30).",
708
+ label: "Border colour",
709
+ description: "A colour name from your site style, such as border or primary.",
709
710
  required: false,
710
711
  multiline: false,
711
712
  defaultValue: "border",
@@ -720,14 +721,14 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
720
721
  id: "raised",
721
722
  type: "boolean",
722
723
  label: "Raised",
723
- description: `Add shadow depth to the ${contextName}.`,
724
+ description: `Adds a soft shadow so the ${contextName} lifts off the page.`,
724
725
  required: false
725
726
  });
726
727
  fields.push({
727
728
  id: "rounded",
728
729
  type: "select",
729
730
  label: "Rounded corners",
730
- description: "Border radius size.",
731
+ description: "How rounded the corners are.",
731
732
  required: false,
732
733
  multiple: false,
733
734
  options: [
@@ -749,15 +750,15 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
749
750
  },
750
751
  {
751
752
  value: "xl",
752
- label: "Extra Large"
753
+ label: "Extra large"
753
754
  },
754
755
  {
755
756
  value: "2xl",
756
- label: "Extra Extra Large"
757
+ label: "Extra extra large"
757
758
  },
758
759
  {
759
760
  value: "full",
760
- label: "Fully Rounded"
761
+ label: "Fully rounded"
761
762
  }
762
763
  ]
763
764
  });
@@ -765,7 +766,7 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
765
766
  id: "fullWidth",
766
767
  type: "boolean",
767
768
  label: "Full width",
768
- description: "Extend content edge-to-edge (removes container max-width and all horizontal padding).",
769
+ description: "Stretches the content right to the edges of the screen.",
769
770
  required: false,
770
771
  defaultValue: false
771
772
  });
@@ -802,7 +803,7 @@ function sectionStylesField(options = {}) {
802
803
  id: "spacing",
803
804
  type: "select",
804
805
  label: "Inner spacing",
805
- description: "Vertical padding for the section.",
806
+ description: "Space above and below the section.",
806
807
  required: false,
807
808
  multiple: false,
808
809
  options: [
@@ -816,7 +817,7 @@ function sectionStylesField(options = {}) {
816
817
  },
817
818
  {
818
819
  value: "cozy",
819
- label: "Cozy"
820
+ label: "Cosy"
820
821
  },
821
822
  {
822
823
  value: "medium",
@@ -907,7 +908,7 @@ const cardStylingFields = [
907
908
  id: "buttonText",
908
909
  type: "text",
909
910
  label: "Button text",
910
- description: "Text for the event action button",
911
+ description: "The text on each event's button.",
911
912
  required: false,
912
913
  multiline: false,
913
914
  defaultValue: "Book",
@@ -922,7 +923,7 @@ const eventDisplayFields = [
922
923
  id: "showVenue",
923
924
  type: "boolean",
924
925
  label: "Show venue",
925
- description: "Display venue name and address",
926
+ description: "Shows the venue's name and address.",
926
927
  required: false,
927
928
  defaultValue: true,
928
929
  ui: { intent: "display" }
@@ -931,7 +932,7 @@ const eventDisplayFields = [
931
932
  id: "showMap",
932
933
  type: "boolean",
933
934
  label: "Show venue map",
934
- description: "Display a map when the event has a venue with location coordinates",
935
+ description: "Shows a map when the event's venue has a location set.",
935
936
  required: false,
936
937
  defaultValue: true,
937
938
  ui: { intent: "display" }
@@ -940,7 +941,7 @@ const eventDisplayFields = [
940
941
  id: "showCapacity",
941
942
  type: "boolean",
942
943
  label: "Show available places",
943
- description: "Display remaining capacity",
944
+ description: "Shows how many places are left.",
944
945
  required: false,
945
946
  defaultValue: true,
946
947
  ui: { intent: "display" }
@@ -952,8 +953,8 @@ const eventDisplayFields = [
952
953
  const emptyStateField = {
953
954
  id: "emptyMessage",
954
955
  type: "text",
955
- label: "Empty state message",
956
- description: "Message when no upcoming events",
956
+ label: "If there's nothing to show",
957
+ description: "What visitors see when there are no upcoming events.",
957
958
  required: false,
958
959
  multiline: false,
959
960
  defaultValue: "No upcoming events scheduled.",
@@ -1284,6 +1285,51 @@ const nodeSchema = z.object({
1284
1285
  const nodeTreeSchema = nodeSchema.array().or(nodeSchema);
1285
1286
  const NodeSchema = nodeSchema;
1286
1287
  const NodeTreeSchema = nodeTreeSchema;
1288
+ const SYSTEM_BLOCK_KINDS = [
1289
+ "block.hero",
1290
+ "block.intro",
1291
+ "block.columns",
1292
+ "block.collection",
1293
+ "block.feature-cards",
1294
+ "block.media-text",
1295
+ "block.cta-full",
1296
+ "block.single-button",
1297
+ "block.body-text",
1298
+ "block.location-map",
1299
+ "block.faq",
1300
+ "block.testimonials",
1301
+ "block.team-members",
1302
+ "block.embed",
1303
+ "block.blog-post",
1304
+ "block.blog-listing",
1305
+ "block.site-header",
1306
+ "block.site-footer",
1307
+ "block.form",
1308
+ "block.contact-newsletter",
1309
+ "block.appointment-booking",
1310
+ "block.appointment-services",
1311
+ "block.weekly-slot-availability",
1312
+ "block.event-registration",
1313
+ ...[
1314
+ "block.event-details",
1315
+ "block.event-spotlight",
1316
+ "block.event-listing",
1317
+ "block.event-calendar",
1318
+ "block.recurring-schedule",
1319
+ "block.offerings-preview"
1320
+ ],
1321
+ "block.shop",
1322
+ "block.product-list",
1323
+ "block.product-detail",
1324
+ "block.cart",
1325
+ "block.checkout",
1326
+ "block.gifting",
1327
+ "block.newsletter-signup",
1328
+ "block.image-gallery",
1329
+ "block.video-grid",
1330
+ "block.audio-player",
1331
+ "block.file-download"
1332
+ ];
1287
1333
  const MIN_COLUMNS = 1;
1288
1334
  const MAX_COLUMNS = 6;
1289
1335
  function normalizeInteger(value) {
@@ -1439,6 +1485,7 @@ function flowRepeaterGridItems(items, columns) {
1439
1485
  }];
1440
1486
  }, []);
1441
1487
  }
1488
+ /** @internal */
1442
1489
  function orderedGridItems(layout) {
1443
1490
  return [...layout.placements].sort((a, b) => a.sourceIndex - b.sourceIndex);
1444
1491
  }
@@ -1480,6 +1527,7 @@ function buildRepeaterGridLayout(input) {
1480
1527
  const overCapacity = maxRows != null && maxRowUsed > maxRows;
1481
1528
  return {
1482
1529
  placementPolicy: input.placementPolicy,
1530
+ sourceItems: input.items.map((item) => ({ ...item })),
1483
1531
  columns,
1484
1532
  maxRows,
1485
1533
  capacityCells,
@@ -1518,6 +1566,8 @@ function findFirstAvailableRepeaterGridPlacement(input) {
1518
1566
  columns
1519
1567
  }).size === 0) ?? null;
1520
1568
  }
1569
+ //#endregion
1570
+ //#region ../blocks/src/system/layout/repeaterGrid.ts
1521
1571
  /** Narrow rendering is a projection only. Never feed these placements into an authoring write. */
1522
1572
  function projectRepeaterGridLayout(layout, columns) {
1523
1573
  if (isRepeaterGridLayoutInvalid(layout)) return projectRepeaterGridLayoutForRendering(layout, columns);
@@ -1628,6 +1678,55 @@ function validateLayoutGridConfiguration(data, ctx) {
1628
1678
  });
1629
1679
  }
1630
1680
  //#endregion
1681
+ //#region ../blocks/src/system/manifest/sdkBlockPresentationSchema.ts
1682
+ const sdkBlockPresentationShape = {
1683
+ variants: z.record(z.string().min(1), NodeSchema).optional(),
1684
+ defaultVariant: z.string().min(1).optional(),
1685
+ variantOptions: z.record(z.string().min(1), z.object({
1686
+ label: z.string().min(1).optional(),
1687
+ description: z.string().min(1).optional(),
1688
+ icon: z.string().min(1).optional()
1689
+ })).optional()
1690
+ };
1691
+ function validateSdkBlockDeclaration(data, ctx) {
1692
+ validateTitleSource(data, ctx);
1693
+ if (data.layout && data.variants) ctx.addIssue({
1694
+ code: z.ZodIssueCode.custom,
1695
+ message: "Custom block must define either `layout` or `variants`, not both",
1696
+ path: ["variants"]
1697
+ });
1698
+ if (data.variants) validateVariantKeys(data, ctx);
1699
+ }
1700
+ function validateTitleSource(data, ctx) {
1701
+ if (!data.titleSource) return;
1702
+ (Array.isArray(data.titleSource) ? data.titleSource : [data.titleSource]).forEach((source, index) => {
1703
+ if (data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === source)) return;
1704
+ ctx.addIssue({
1705
+ code: z.ZodIssueCode.custom,
1706
+ message: `titleSource must reference a valid field ID (got "${source}")`,
1707
+ path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
1708
+ });
1709
+ });
1710
+ }
1711
+ function validateVariantKeys(data, ctx) {
1712
+ const variants = data.variants ?? {};
1713
+ if (Object.keys(variants).length === 0) ctx.addIssue({
1714
+ code: z.ZodIssueCode.custom,
1715
+ message: "`variants` must contain at least one variant key",
1716
+ path: ["variants"]
1717
+ });
1718
+ if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(variants, data.defaultVariant)) ctx.addIssue({
1719
+ code: z.ZodIssueCode.custom,
1720
+ message: "`defaultVariant` must be a key present in `variants`",
1721
+ path: ["defaultVariant"]
1722
+ });
1723
+ Object.keys(data.variantOptions ?? {}).filter((key) => !Object.prototype.hasOwnProperty.call(variants, key)).forEach((key) => ctx.addIssue({
1724
+ code: z.ZodIssueCode.custom,
1725
+ message: "`variantOptions` key must exist in `variants`",
1726
+ path: ["variantOptions", key]
1727
+ }));
1728
+ }
1729
+ //#endregion
1631
1730
  //#region ../blocks/src/system/manifest/schema.ts
1632
1731
  const visibilityLevels = [
1633
1732
  "admin",
@@ -2244,19 +2343,21 @@ const behaviourSchema = z.object({
2244
2343
  paletteHidden: z.boolean().default(false),
2245
2344
  managesOwnWrapper: z.boolean().optional()
2246
2345
  });
2247
- const quickFieldPrioritySchema = z.array(z.string().min(1)).min(1).superRefine((fieldIds, ctx) => {
2248
- const seenFieldIds = /* @__PURE__ */ new Set();
2249
- for (const [index, fieldId] of fieldIds.entries()) {
2250
- if (seenFieldIds.has(fieldId)) ctx.addIssue({
2251
- code: z.ZodIssueCode.custom,
2252
- path: [index],
2253
- message: `Duplicate quick-field priority "${fieldId}"`
2254
- });
2255
- seenFieldIds.add(fieldId);
2256
- }
2257
- });
2258
- const previewCustomizeManifestCurationSchema = z.object({ quickFieldPriority: quickFieldPrioritySchema });
2346
+ const builtInBlockKindsSchema = z.array(z.enum(SYSTEM_BLOCK_KINDS)).readonly();
2347
+ const blockRequiredFeatureSchema = z.enum([
2348
+ "bookings.appointments",
2349
+ "bookings.events",
2350
+ "shop",
2351
+ "newsletter",
2352
+ "analytics"
2353
+ ]);
2259
2354
  const blockCategoryEnum = z.enum([
2355
+ "text-and-images",
2356
+ "photos",
2357
+ "people",
2358
+ "events-and-bookings",
2359
+ "shop",
2360
+ "forms-and-sign-ups",
2260
2361
  "marketing",
2261
2362
  "content",
2262
2363
  "blog",
@@ -2289,7 +2390,6 @@ z.object({
2289
2390
  slots: slotSchema.array().default([]),
2290
2391
  styleTokens: styleTokenSchema.optional(),
2291
2392
  behaviours: behaviourSchema.optional(),
2292
- previewCustomize: previewCustomizeManifestCurationSchema.optional(),
2293
2393
  layout: NodeTreeSchema.optional(),
2294
2394
  /**
2295
2395
  * Optional list of nested field paths that should be surfaced in the main form body
@@ -2298,6 +2398,19 @@ z.object({
2298
2398
  *
2299
2399
  * The original fields remain available in settings for power users.
2300
2400
  */
2401
+ lookField: z.string().min(1).optional(),
2402
+ sourceLine: z.object({
2403
+ text: z.string(),
2404
+ target: z.enum([
2405
+ "testimonials",
2406
+ "team",
2407
+ "mailing-lists"
2408
+ ]),
2409
+ when: z.object({
2410
+ field: z.string(),
2411
+ equals: z.string()
2412
+ }).optional()
2413
+ }).optional(),
2301
2414
  promotedFields: z.array(z.string().min(1)).optional(),
2302
2415
  variantMeaning: z.discriminatedUnion("kind", [z.object({
2303
2416
  kind: z.literal("arrangement"),
@@ -2319,6 +2432,7 @@ z.object({
2319
2432
  }).optional()).optional(),
2320
2433
  category: blockCategoryEnum.optional(),
2321
2434
  contentTypes: z.array(z.string()).optional(),
2435
+ requiredFeatures: z.array(blockRequiredFeatureSchema).optional(),
2322
2436
  /**
2323
2437
  * Explicit content-source classification (inline / entries / mixed). Optional at the
2324
2438
  * schema level for backward compatibility with SDK-defined custom blocks, but every
@@ -2328,141 +2442,139 @@ z.object({
2328
2442
  tags: z.array(z.string()).optional(),
2329
2443
  icon: z.string().optional()
2330
2444
  });
2331
- const inlineTextMarkSchema = z.discriminatedUnion("kind", [
2332
- z.object({ kind: z.literal("strong") }),
2333
- z.object({ kind: z.literal("emphasis") }),
2334
- z.object({
2335
- kind: z.literal("accent"),
2336
- tone: z.enum([
2337
- "accent",
2338
- "brand",
2339
- "contrast"
2340
- ])
2341
- }),
2342
- z.object({
2343
- kind: z.literal("highlight"),
2344
- tone: z.enum([
2345
- "soft",
2346
- "accent",
2347
- "brand"
2348
- ])
2349
- })
2350
- ]);
2351
- const inlineTextRunSchema = z.object({
2352
- text: z.string(),
2353
- marks: z.array(inlineTextMarkSchema).optional()
2354
- });
2355
- z.array(inlineTextRunSchema);
2356
- const MARK_ORDER = {
2357
- strong: 0,
2358
- emphasis: 1,
2359
- accent: 2,
2360
- highlight: 3
2361
- };
2362
- function plainTextToInlineText(value) {
2363
- return normalizeInlineText(value.length > 0 ? [{ text: value }] : []);
2364
- }
2365
- function inlineTextToPlainText(value) {
2366
- return value.map((run) => run.text).join("");
2445
+ /** SDK Looks name a single top-level select owned by this definition. */
2446
+ function validateManifestLookField(data, ctx) {
2447
+ if (!data.lookField) return;
2448
+ if (!data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === data.lookField && "type" in field && field.type === "select" && (!("multiple" in field) || field.multiple !== true))) ctx.addIssue({
2449
+ code: z.ZodIssueCode.custom,
2450
+ path: ["lookField"],
2451
+ message: "lookField must name an existing single select field"
2452
+ });
2367
2453
  }
2368
- function isInlineTextEmpty(value) {
2369
- return inlineTextToPlainText(value).trim().length === 0;
2454
+ const blockSectionDeclarationShape = {
2455
+ promotedFields: z.array(z.string().min(1)).optional(),
2456
+ lookField: z.string().min(1).optional()
2457
+ };
2458
+ //#endregion
2459
+ //#region ../blocks/src/system/readiness.ts
2460
+ const ready = { kind: "Ready" };
2461
+ const unknownReadiness = { kind: "Unknown" };
2462
+ const loadedReadinessFact = (value) => ({
2463
+ kind: "Loaded",
2464
+ value
2465
+ });
2466
+ const unavailableReadinessFact = { kind: "Unavailable" };
2467
+ function needsSetup(reason, repair) {
2468
+ return {
2469
+ kind: "NeedsSetup",
2470
+ reason,
2471
+ repair
2472
+ };
2370
2473
  }
2371
- function coerceInlineTextWithFallback(value, fallbackPlainText) {
2372
- const parsed = parseInlineTextFromUnknown(value);
2373
- if (parsed.ok && !isInlineTextEmpty(parsed.value)) return parsed.value;
2374
- if (fallbackPlainText && fallbackPlainText.length > 0) return plainTextToInlineText(fallbackPlainText);
2375
- return parsed.ok ? parsed.value : [];
2474
+ /** One boundary owns runtime stage checking and the resulting phantom proof. */
2475
+ function admitReadinessFacts(stage, input) {
2476
+ return input.stage === stage ? input.facts : unavailableReadinessFacts();
2376
2477
  }
2377
- function parseInlineTextFromUnknown(value) {
2378
- if (!Array.isArray(value)) return {
2379
- ok: false,
2380
- error: { kind: "not-array" }
2381
- };
2382
- const runs = [];
2383
- for (let index = 0; index < value.length; index += 1) {
2384
- const parsed = inlineTextRunSchema.safeParse(value[index]);
2385
- if (!parsed.success) return {
2386
- ok: false,
2387
- error: {
2388
- kind: "invalid-run",
2389
- index
2390
- }
2391
- };
2392
- runs.push(parsed.data);
2393
- }
2478
+ function unavailableReadinessFacts() {
2394
2479
  return {
2395
- ok: true,
2396
- value: normalizeInlineText(runs)
2480
+ mailingList: unavailableReadinessFact,
2481
+ testimonials: unavailableReadinessFact,
2482
+ team: unavailableReadinessFact,
2483
+ forms: /* @__PURE__ */ new Map(),
2484
+ products: /* @__PURE__ */ new Map(),
2485
+ template: unavailableReadinessFact
2397
2486
  };
2398
2487
  }
2399
- function normalizeInlineText(value) {
2400
- const normalized = [];
2401
- for (const run of value) {
2402
- if (run.text.length === 0) continue;
2403
- const marks = normalizeInlineTextMarks(run.marks ?? []);
2404
- const nextRun = marks.length > 0 ? {
2405
- text: run.text,
2406
- marks
2407
- } : { text: run.text };
2408
- const previous = normalized[normalized.length - 1];
2409
- if (previous && inlineTextMarksEqual(previous.marks ?? [], nextRun.marks ?? [])) {
2410
- normalized[normalized.length - 1] = previous.marks && previous.marks.length > 0 ? {
2411
- text: previous.text + nextRun.text,
2412
- marks: previous.marks
2413
- } : { text: previous.text + nextRun.text };
2414
- continue;
2415
- }
2416
- normalized.push(nextRun);
2488
+ function pageTemplateFromEntry(entry) {
2489
+ return entry?._contentTypeSlug === "product" ? { kind: "product" } : { kind: "page" };
2490
+ }
2491
+ //#endregion
2492
+ //#region ../blocks/src/system/blocks/readiness.ts
2493
+ const newsletterReadiness = {
2494
+ needs: ["mailingList"],
2495
+ assess: (content, facts) => {
2496
+ if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
2497
+ const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
2498
+ if (!targeting.ok) return unknownReadiness;
2499
+ const assessment = assessMailingListTargeting(facts.mailingList.value, targeting.value);
2500
+ return assessment.tag === "available" ? ready : assessment.reason === "setup_missing" ? needsSetup("mailing_setup", {
2501
+ kind: "manage",
2502
+ target: "mailingLists"
2503
+ }) : needsSetup("mailing_destination", {
2504
+ kind: "field",
2505
+ path: "targeting"
2506
+ });
2417
2507
  }
2418
- return normalized;
2419
- }
2420
- function normalizeInlineTextMarks(marks) {
2421
- let strong = null;
2422
- let emphasis = null;
2423
- let accent = null;
2424
- let highlight = null;
2425
- for (const mark of marks) switch (mark.kind) {
2426
- case "strong":
2427
- strong = { kind: "strong" };
2428
- break;
2429
- case "emphasis":
2430
- emphasis = { kind: "emphasis" };
2431
- break;
2432
- case "accent":
2433
- accent = {
2434
- kind: "accent",
2435
- tone: mark.tone
2436
- };
2437
- break;
2438
- case "highlight":
2439
- highlight = {
2440
- kind: "highlight",
2441
- tone: mark.tone
2442
- };
2443
- break;
2508
+ };
2509
+ const formReadiness = {
2510
+ needs: ["forms"],
2511
+ assess: (content, facts) => {
2512
+ const selection = chosenString(content.formSlug);
2513
+ if (!selection) return needsSetup("form_not_chosen", {
2514
+ kind: "field",
2515
+ path: "formSlug"
2516
+ });
2517
+ const form = facts.forms.get(selection);
2518
+ if (!form || form.kind === "Unavailable") return unknownReadiness;
2519
+ return form.value ? ready : needsSetup("form_deleted", {
2520
+ kind: "field",
2521
+ path: "formSlug"
2522
+ });
2444
2523
  }
2445
- return [
2446
- strong,
2447
- emphasis,
2448
- accent,
2449
- highlight
2450
- ].filter((mark) => mark !== null).sort((left, right) => MARK_ORDER[left.kind] - MARK_ORDER[right.kind]);
2451
- }
2452
- function inlineTextMarksEqual(left, right) {
2453
- const normalizedLeft = normalizeInlineTextMarks(left);
2454
- const normalizedRight = normalizeInlineTextMarks(right);
2455
- if (normalizedLeft.length !== normalizedRight.length) return false;
2456
- return normalizedLeft.every((mark, index) => inlineTextMarkEqual(mark, normalizedRight[index]));
2457
- }
2458
- function inlineTextMarkEqual(left, right) {
2459
- if (!right || left.kind !== right.kind) return false;
2460
- switch (left.kind) {
2461
- case "strong":
2462
- case "emphasis": return true;
2463
- case "accent": return right.kind === "accent" && left.tone === right.tone;
2464
- case "highlight": return right.kind === "highlight" && left.tone === right.tone;
2524
+ };
2525
+ const testimonialsReadiness = {
2526
+ needs: ["testimonials"],
2527
+ assess: (_content, facts) => {
2528
+ if (facts.testimonials.kind === "Unavailable") return unknownReadiness;
2529
+ const { count, total } = facts.testimonials.value;
2530
+ if (count > 0) return ready;
2531
+ return needsSetup(total === "unknown" ? "testimonials_empty" : total > 0 ? "testimonials_unpublished" : "testimonials_none", {
2532
+ kind: "manage",
2533
+ target: "testimonials"
2534
+ });
2535
+ }
2536
+ };
2537
+ const teamReadiness = {
2538
+ needs: ["team"],
2539
+ assess: (content, facts) => {
2540
+ if (content.source !== "site_staff") return Array.isArray(content.members) && content.members.length > 0 ? ready : needsSetup("members_empty", {
2541
+ kind: "field",
2542
+ path: "members"
2543
+ });
2544
+ if (facts.team.kind === "Unavailable") return unknownReadiness;
2545
+ return facts.team.value > 0 ? ready : needsSetup("team_empty", {
2546
+ kind: "manage",
2547
+ target: "team"
2548
+ });
2549
+ }
2550
+ };
2551
+ const productReadiness = {
2552
+ needs: ["template", "products"],
2553
+ assess: (content, facts) => {
2554
+ if (facts.template.kind === "Unavailable") return unknownReadiness;
2555
+ if (facts.template.value.kind === "product") return ready;
2556
+ const selection = chosenString(content.productSlug);
2557
+ if (!selection) return needsSetup("product_not_chosen", {
2558
+ kind: "field",
2559
+ path: "productSlug"
2560
+ });
2561
+ const product = facts.products.get(selection);
2562
+ if (!product || product.kind === "Unavailable") return unknownReadiness;
2563
+ return product.value ? ready : needsSetup("product_gone", {
2564
+ kind: "field",
2565
+ path: "productSlug"
2566
+ });
2465
2567
  }
2568
+ };
2569
+ const galleryReadiness = {
2570
+ needs: [],
2571
+ assess: (content) => Array.isArray(content.images) && content.images.length > 0 ? ready : needsSetup("gallery_empty", {
2572
+ kind: "field",
2573
+ path: "images"
2574
+ })
2575
+ };
2576
+ function chosenString(value) {
2577
+ return typeof value === "string" && value.trim() ? value.trim() : null;
2466
2578
  }
2467
2579
  //#endregion
2468
2580
  //#region ../blocks/src/system/manifest/augmentManifest.ts
@@ -2498,7 +2610,7 @@ function createVariantField(manifest) {
2498
2610
  id: "variant",
2499
2611
  type: "select",
2500
2612
  label: "Variant",
2501
- description: "Choose a layout variant for this block",
2613
+ description: "Choose how this block is laid out.",
2502
2614
  ui: { intent: "display" },
2503
2615
  required: false,
2504
2616
  defaultValue: manifest.defaultVariant ?? variantKeys[0],
@@ -2570,7 +2682,7 @@ function parseSiteIconStyleGuideVersionId(value) {
2570
2682
  //#endregion
2571
2683
  //#region ../blocks/src/system/icons/value.ts
2572
2684
  const NO_BLOCK_ICON_VALUE = { kind: "none" };
2573
- function isRecord$1(value) {
2685
+ function isRecord(value) {
2574
2686
  return typeof value === "object" && value !== null && !Array.isArray(value);
2575
2687
  }
2576
2688
  function parseBlockIconValue(value) {
@@ -2578,7 +2690,7 @@ function parseBlockIconValue(value) {
2578
2690
  kind: "semantic",
2579
2691
  iconId: value
2580
2692
  };
2581
- if (!isRecord$1(value)) return NO_BLOCK_ICON_VALUE;
2693
+ if (!isRecord(value)) return NO_BLOCK_ICON_VALUE;
2582
2694
  switch (value.kind) {
2583
2695
  case "none": return NO_BLOCK_ICON_VALUE;
2584
2696
  case "semantic": return isSemanticIconId(value.iconId) ? {
@@ -2651,7 +2763,7 @@ function buildGeneratedBlockIconRenderAssetLookupFromUnknown(value) {
2651
2763
  if (!Array.isArray(value)) return { kind: "invalid_asset_list" };
2652
2764
  const inputs = [];
2653
2765
  for (const [index, item] of value.entries()) {
2654
- if (!isRecord$1(item)) return {
2766
+ if (!isRecord(item)) return {
2655
2767
  kind: "invalid_asset_entry",
2656
2768
  index,
2657
2769
  reason: "not_object"
@@ -3649,7 +3761,7 @@ const formEmbedFragment = defineFragment({
3649
3761
  id: "formSlug",
3650
3762
  type: "reference",
3651
3763
  label: "Form",
3652
- description: "Pick a saved form to render.",
3764
+ description: "Choose which of your forms to show.",
3653
3765
  required: true,
3654
3766
  referenceKind: "form",
3655
3767
  allowManualEntry: false,
@@ -3665,7 +3777,7 @@ const formEmbedFragment = defineFragment({
3665
3777
  id: "successMessage",
3666
3778
  type: "text",
3667
3779
  label: "Success message",
3668
- description: "Shown after successful submit (handled by page or block)."
3780
+ description: "What visitors see after they've sent the form."
3669
3781
  }
3670
3782
  ],
3671
3783
  layout: [form(withApiBindings({
@@ -3733,7 +3845,7 @@ const newsletterFormFragment = defineFragment({
3733
3845
  {
3734
3846
  id: "targeting",
3735
3847
  type: "group",
3736
- label: "Mailing-list targeting",
3848
+ label: "Where sign-ups go",
3737
3849
  description: "Choose what kind of emails people signing up here will receive.",
3738
3850
  defaultValue: { mode: "default" },
3739
3851
  required: true,
@@ -3849,9 +3961,9 @@ function createBlockManifest(config) {
3849
3961
  slots: [],
3850
3962
  styleTokens: config.styleTokens,
3851
3963
  behaviours,
3852
- previewCustomize: config.previewCustomize,
3853
3964
  category: config.category,
3854
3965
  contentTypes: config.contentTypes ? [...config.contentTypes] : void 0,
3966
+ requiredFeatures: config.requiredFeatures ? [...config.requiredFeatures] : void 0,
3855
3967
  contentSource: config.contentSource,
3856
3968
  tags: config.tags ? [...config.tags] : [],
3857
3969
  icon: config.icon ?? "Box",
@@ -3860,6 +3972,8 @@ function createBlockManifest(config) {
3860
3972
  variantMeaning: config.variantMeaning,
3861
3973
  defaultVariant: config.defaultVariant,
3862
3974
  variantOptions: config.variantOptions,
3975
+ lookField: config.lookField,
3976
+ sourceLine: config.sourceLine,
3863
3977
  promotedFields: config.promotedFields ? [...config.promotedFields] : void 0
3864
3978
  });
3865
3979
  }
@@ -3915,7 +4029,14 @@ function blockBehaviours(config) {
3915
4029
  }
3916
4030
  //#endregion
3917
4031
  //#region ../blocks/src/system/blocks/form.tsx
3918
- const formComposition = composeFragments([{ fragment: formCopyFragment }, { fragment: formEmbedFragment }]);
4032
+ const setupFormEmbedFragment = {
4033
+ ...formEmbedFragment,
4034
+ fields: formEmbedFragment.fields.map((field) => field.id === "formSlug" ? {
4035
+ ...field,
4036
+ required: false
4037
+ } : field)
4038
+ };
4039
+ const formComposition = composeFragments([{ fragment: formCopyFragment }, { fragment: setupFormEmbedFragment }]);
3919
4040
  function fragmentLayoutNode(layout) {
3920
4041
  return isNodeDefinitionArray(layout) ? el("div", {}, [...layout]) : layout;
3921
4042
  }
@@ -3964,15 +4085,20 @@ const formLayout = styledSection({
3964
4085
  spacing: "medium",
3965
4086
  background: "surface"
3966
4087
  });
3967
- const dataLoaders = buildFragmentDataLoaders(formComposition);
4088
+ const fragmentDataLoaders = buildFragmentDataLoaders(formComposition);
4089
+ const dataLoaders = Object.fromEntries(Object.entries(fragmentDataLoaders).map(([key, loader]) => [key, key === "form" ? {
4090
+ ...loader,
4091
+ requiredParams: ["formSlug"]
4092
+ } : loader]));
3968
4093
  const formManifest = createBlockManifest({
3969
4094
  variantMeaning: { kind: "arrangement" },
3970
4095
  id: "block.form",
4096
+ promotedFields: ["formSlug"],
3971
4097
  title: "Form",
3972
4098
  titleSource: "title",
3973
- description: "Renders a saved form definition with server-side submit.",
4099
+ description: "Shows one of your forms so visitors can get in touch.",
3974
4100
  includeContainerStyles: true,
3975
- fragments: [{ fragment: formCopyFragment }, { fragment: formEmbedFragment }],
4101
+ fragments: [{ fragment: formCopyFragment }, { fragment: setupFormEmbedFragment }],
3976
4102
  additionalFields: [{
3977
4103
  id: "archFrame",
3978
4104
  type: "boolean",
@@ -4011,7 +4137,7 @@ const formManifest = createBlockManifest({
4011
4137
  animation: false,
4012
4138
  paletteHidden: false
4013
4139
  },
4014
- category: "interactive",
4140
+ category: "forms-and-sign-ups",
4015
4141
  contentSource: { kind: "inline" },
4016
4142
  tags: [
4017
4143
  "form",
@@ -4037,6 +4163,7 @@ const formDataSchema = z.object({
4037
4163
  });
4038
4164
  const formBlockDefinition = {
4039
4165
  manifest: formManifest,
4166
+ readiness: formReadiness,
4040
4167
  dataSchemas: { form: formDataSchema.optional() },
4041
4168
  dataLoaders,
4042
4169
  runtime: formBlockRuntime
@@ -4307,10 +4434,11 @@ const eventRegistrationManifest = createBlockManifest({
4307
4434
  variantMeaning: { kind: "arrangement" },
4308
4435
  id: "block.event-registration",
4309
4436
  version: "1.0.0",
4310
- title: "Event Registration",
4437
+ title: "Event registration",
4311
4438
  titleSource: "heading",
4312
- description: "Multi-step event registration form",
4313
- category: "interactive",
4439
+ description: "The booking form for an event, where people choose their tickets.",
4440
+ category: "events-and-bookings",
4441
+ requiredFeatures: ["bookings.events"],
4314
4442
  contentSource: { kind: "inline" },
4315
4443
  tags: [
4316
4444
  "events",
@@ -4336,7 +4464,7 @@ const eventRegistrationManifest = createBlockManifest({
4336
4464
  id: "heading",
4337
4465
  type: "text",
4338
4466
  label: "Heading",
4339
- description: "Main heading for the registration form",
4467
+ description: "The heading above the booking form.",
4340
4468
  required: false,
4341
4469
  multiline: false,
4342
4470
  defaultValue: ""
@@ -4351,8 +4479,8 @@ const eventRegistrationManifest = createBlockManifest({
4351
4479
  {
4352
4480
  id: "maxTickets",
4353
4481
  type: "select",
4354
- label: "Max tickets per registration",
4355
- description: "Maximum tickets a person can register for",
4482
+ label: "Most tickets per booking",
4483
+ description: "The most tickets one person can book at once.",
4356
4484
  required: false,
4357
4485
  multiple: false,
4358
4486
  defaultValue: "5",
@@ -4384,7 +4512,7 @@ const eventRegistrationManifest = createBlockManifest({
4384
4512
  id: "showVenue",
4385
4513
  type: "boolean",
4386
4514
  label: "Show venue",
4387
- description: "Display venue information",
4515
+ description: "Shows where the event is.",
4388
4516
  required: false,
4389
4517
  defaultValue: true,
4390
4518
  ui: { intent: "display" }
@@ -4393,7 +4521,7 @@ const eventRegistrationManifest = createBlockManifest({
4393
4521
  id: "showCapacity",
4394
4522
  type: "boolean",
4395
4523
  label: "Show available places",
4396
- description: "Display remaining capacity",
4524
+ description: "Shows how many places are left.",
4397
4525
  required: false,
4398
4526
  defaultValue: true,
4399
4527
  ui: { intent: "display" }
@@ -4402,7 +4530,7 @@ const eventRegistrationManifest = createBlockManifest({
4402
4530
  id: "successMessage",
4403
4531
  type: "text",
4404
4532
  label: "Success message",
4405
- description: "Message shown after successful registration",
4533
+ description: "What people see once they've booked.",
4406
4534
  required: false,
4407
4535
  multiline: true,
4408
4536
  maxLength: 500,
@@ -4556,9 +4684,9 @@ const eventListingBlockDefinition = {
4556
4684
  variantMeaning: { kind: "arrangement" },
4557
4685
  id: "block.event-listing",
4558
4686
  version: "1.1.0",
4559
- title: "Event Listing",
4687
+ title: "Event listing",
4560
4688
  titleSource: "heading",
4561
- description: "Paginated list of all upcoming events",
4689
+ description: "All your upcoming events in one list.",
4562
4690
  skipSectionStyles: true,
4563
4691
  additionalFields: [
4564
4692
  ...sectionHeaderFields("All Events"),
@@ -4585,27 +4713,26 @@ const eventListingBlockDefinition = {
4585
4713
  {
4586
4714
  id: "eventsPerPage",
4587
4715
  type: "select",
4588
- label: "Events per page",
4589
- description: "Number of events to load at a time",
4716
+ label: "How many",
4590
4717
  required: false,
4591
4718
  multiple: false,
4592
4719
  defaultValue: "12",
4593
4720
  options: [
4594
4721
  {
4595
4722
  value: "3",
4596
- label: "3 events"
4723
+ label: "Show the first 3"
4597
4724
  },
4598
4725
  {
4599
4726
  value: "6",
4600
- label: "6 events"
4727
+ label: "Show the first 6"
4601
4728
  },
4602
4729
  {
4603
4730
  value: "12",
4604
- label: "12 events"
4731
+ label: "Show the first 12"
4605
4732
  },
4606
4733
  {
4607
4734
  value: "24",
4608
- label: "24 events"
4735
+ label: "Show the first 24"
4609
4736
  }
4610
4737
  ],
4611
4738
  ui: { intent: "display" }
@@ -4614,7 +4741,7 @@ const eventListingBlockDefinition = {
4614
4741
  id: "paginationMode",
4615
4742
  type: "select",
4616
4743
  label: "More events",
4617
- description: "How to access events beyond the initial list",
4744
+ description: "How visitors can see the rest of your events.",
4618
4745
  required: false,
4619
4746
  multiple: false,
4620
4747
  defaultValue: "loadMore",
@@ -4630,7 +4757,7 @@ const eventListingBlockDefinition = {
4630
4757
  {
4631
4758
  id: "seeAllUrl",
4632
4759
  type: "link",
4633
- label: "See all destination",
4760
+ label: "Link to the full list",
4634
4761
  required: false,
4635
4762
  ui: {
4636
4763
  intent: "display",
@@ -4643,8 +4770,8 @@ const eventListingBlockDefinition = {
4643
4770
  {
4644
4771
  id: "loadMoreText",
4645
4772
  type: "text",
4646
- label: "Button text",
4647
- description: "Text for the pagination button or link",
4773
+ label: "More events button text",
4774
+ description: "The text on the button or link that shows more events.",
4648
4775
  required: false,
4649
4776
  multiline: false,
4650
4777
  defaultValue: "Load more events",
@@ -4695,8 +4822,8 @@ const eventListingBlockDefinition = {
4695
4822
  {
4696
4823
  id: "filterEventPresets",
4697
4824
  type: "select",
4698
- label: "Pre-filter by event type",
4699
- description: "Restrict this block to specific event types",
4825
+ label: "Only show these event types",
4826
+ description: "Pick the types of event this block shows.",
4700
4827
  required: false,
4701
4828
  multiple: true,
4702
4829
  defaultValue: [],
@@ -4733,23 +4860,23 @@ const eventListingBlockDefinition = {
4733
4860
  {
4734
4861
  id: "scheduleScope",
4735
4862
  type: "select",
4736
- label: "Schedule cadence",
4737
- description: "Restrict this block by recurrence",
4863
+ label: "Regular or one-off",
4864
+ description: "Show regular events, one-off events or both.",
4738
4865
  required: false,
4739
4866
  multiple: false,
4740
4867
  defaultValue: "any",
4741
4868
  options: [
4742
4869
  {
4743
4870
  value: "any",
4744
- label: "Any cadence"
4871
+ label: "Both"
4745
4872
  },
4746
4873
  {
4747
4874
  value: "recurring",
4748
- label: "Recurring only"
4875
+ label: "Regular events only"
4749
4876
  },
4750
4877
  {
4751
4878
  value: "oneOff",
4752
- label: "One-off only"
4879
+ label: "One-off events only"
4753
4880
  }
4754
4881
  ],
4755
4882
  ui: {
@@ -4800,12 +4927,6 @@ const eventListingBlockDefinition = {
4800
4927
  "all-events"
4801
4928
  ],
4802
4929
  icon: "List",
4803
- previewCustomize: { quickFieldPriority: [
4804
- "layout",
4805
- "columns",
4806
- "eventsPerPage",
4807
- "eventSurface"
4808
- ] },
4809
4930
  layout: [styledSection({
4810
4931
  children: styledContainer({
4811
4932
  rootType: "stack",
@@ -4937,7 +5058,7 @@ const eventSelectionFields = [{
4937
5058
  }, createSiteOptionSelectField({
4938
5059
  id: "selectedEventSeriesIds",
4939
5060
  label: "Selected events",
4940
- description: "Show upcoming dates for these events. Other event filters do not apply.",
5061
+ description: "Shows upcoming dates for just these events. The other filters don't apply.",
4941
5062
  required: false,
4942
5063
  multiple: true,
4943
5064
  defaultValue: [],
@@ -5036,6 +5157,27 @@ const scopeParams = {
5036
5157
  };
5037
5158
  /** Combined renders two jobs; calendar-only variants never pay for the list seed. */
5038
5159
  const eventCalendarDataLoaders = {
5160
+ schedule: {
5161
+ endpoint: "listPublicRecurringSchedule",
5162
+ when: { $bind: {
5163
+ from: "content",
5164
+ transforms: [{
5165
+ id: "events.calendarReadEnabled",
5166
+ options: { job: "schedule" }
5167
+ }]
5168
+ } },
5169
+ params: {
5170
+ siteId: scopeParams.siteId,
5171
+ stage: scopeParams.stage,
5172
+ limit: "100",
5173
+ detailLevel: "listing",
5174
+ readProfile: "compact-list",
5175
+ eventSurface: "custom",
5176
+ eventPresets: "class",
5177
+ scheduleScope: "any"
5178
+ },
5179
+ mode: "server"
5180
+ },
5039
5181
  events: {
5040
5182
  endpoint: "listPublicEvents",
5041
5183
  when: { $bind: {
@@ -5140,153 +5282,190 @@ const eventCalendarLayout = [styledSection({
5140
5282
  gap: "lg",
5141
5283
  ...lookSlot("layout")
5142
5284
  },
5143
- children: [...sectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }), el("event-calendar", withApiBindings({
5144
- readAuthority: { $bind: { from: "$root.readAuthority" } },
5145
- events: { $bind: { from: "data.events" } },
5146
- effectiveListArrangementKey: { $bind: { from: "$root.effectiveListArrangementKey" } },
5147
- calendarWindow: { $bind: { from: "data.calendarWindow" } },
5148
- stage: { $bind: {
5149
- from: "$root.previewStage",
5150
- fallback: "published"
5151
- } },
5152
- variant: { $bind: { from: "content.variant" } },
5153
- displayMode: { $bind: { from: "content.displayMode" } },
5154
- listLayout: { $bind: { from: "content.listLayout" } },
5155
- listBy: { $bind: { from: "content.listBy" } },
5156
- bookingTimeZone: { $bind: { from: "$root.dateContext.timeZone" } },
5157
- monthArrangement: { $bind: { from: "content._lookMonthArrangement" } },
5158
- lookSlots: { $bind: { from: "content._lookSlots" } },
5159
- itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
5160
- panelHeading: { $bind: { from: "content._lookPanelHeading" } },
5161
- itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
5162
- roleSurfaces: { $bind: { from: "content._effectiveLook.roleSurfaces" } },
5163
- itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
5164
- listColumns: { $bind: { from: "content.listColumns" } },
5165
- layout: { $bind: { from: "content.layout" } },
5166
- columns: { $bind: { from: "content.columns" } },
5167
- eventsPerPage: { $bind: { from: "content.eventsPerPage" } },
5168
- paginationMode: { $bind: {
5169
- from: "content.paginationMode",
5170
- fallback: "loadMore"
5171
- } },
5172
- seeAllUrl: { $bind: {
5173
- from: "content.seeAllUrl",
5174
- fallback: "",
5175
- transforms: [{ id: "links.resolve" }]
5176
- } },
5177
- loadMoreText: { $bind: {
5178
- from: "content.loadMoreText",
5179
- fallback: "Load more events"
5180
- } },
5181
- startOfWeek: { $bind: { from: "content.startOfWeek" } },
5182
- calendarTabViews: { $bind: {
5183
- from: "content.calendarTabViews",
5184
- fallback: "both"
5185
- } },
5186
- defaultCalendarView: { $bind: {
5187
- from: "content.defaultCalendarView",
5188
- fallback: "month"
5189
- } },
5190
- seriesIds: { $bind: {
5191
- from: "content",
5192
- transforms: [{
5193
- id: "events.calendarSelectionParam",
5194
- options: { key: "seriesIds" }
5195
- }]
5196
- } },
5197
- showFilters: { $bind: {
5198
- from: "content.showFilters",
5199
- fallback: true
5200
- } },
5201
- showCategoryFilter: { $bind: {
5202
- from: "content.showCategoryFilter",
5203
- fallback: "auto"
5204
- } },
5205
- showVenueFilter: { $bind: {
5206
- from: "content.showVenueFilter",
5207
- fallback: false
5208
- } },
5209
- showStaffFilter: { $bind: {
5210
- from: "content.showStaffFilter",
5211
- fallback: true
5212
- } },
5213
- showCapacity: { $bind: {
5214
- from: "content.showCapacity",
5215
- fallback: true
5216
- } },
5217
- eventSurface: { $bind: {
5218
- from: "content",
5219
- transforms: [{
5220
- id: "events.calendarSelectionParam",
5221
- options: { key: "eventSurface" }
5222
- }]
5223
- } },
5224
- filterEventPresets: { $bind: {
5225
- from: "content",
5226
- transforms: [{
5227
- id: "events.calendarSelectionParam",
5228
- options: { key: "filterEventPresets" }
5229
- }]
5230
- } },
5231
- scheduleScope: { $bind: {
5232
- from: "content",
5233
- transforms: [{
5234
- id: "events.calendarSelectionParam",
5235
- options: { key: "scheduleScope" }
5236
- }]
5237
- } },
5238
- filterCategoryIds: { $bind: {
5239
- from: "content",
5240
- transforms: [{
5241
- id: "events.calendarSelectionParam",
5242
- options: { key: "filterCategoryIds" }
5243
- }]
5244
- } },
5245
- filterStaffMemberId: { $bind: {
5246
- from: "content",
5247
- transforms: [{
5248
- id: "events.calendarSelectionParam",
5249
- options: { key: "filterStaffMemberId" }
5250
- }]
5251
- } },
5252
- filterVenueId: { $bind: {
5253
- from: "content",
5254
- transforms: [{
5255
- id: "events.calendarSelectionParam",
5256
- options: { key: "filterVenueId" }
5257
- }]
5258
- } },
5259
- cardRole: { $bind: {
5260
- from: "content._cardStyles.role",
5261
- fallback: "default"
5262
- } },
5263
- buttonVariant: { $bind: {
5264
- from: "content.buttonVariant",
5265
- fallback: "primary"
5266
- } },
5267
- buttonText: { $bind: {
5268
- from: "content.buttonText",
5269
- fallback: "Book"
5270
- } },
5271
- emptyMessage: { $bind: { from: "content.emptyMessage" } },
5272
- boardTitle: { $bind: { from: "content.boardTitle" } },
5273
- footerNote: { $bind: { from: "content.footerNote" } },
5274
- elevated: { $bind: {
5275
- from: "content.elevated",
5276
- fallback: false
5277
- } },
5278
- banded: { $bind: {
5279
- from: "content",
5280
- transforms: [{ id: "events.calendarBanded" }],
5281
- fallback: false
5282
- } }
5283
- }))]
5285
+ children: [
5286
+ text({
5287
+ as: "p",
5288
+ ...lookSlot("eyebrow")
5289
+ }, bind("content.eyebrow"), when("content.eyebrow")),
5290
+ ...sectionHeaderLayoutNodes({ splitClassName: "event-section-head event-section-head--split" }),
5291
+ el("event-calendar", withApiBindings({
5292
+ readAuthority: { $bind: { from: "$root.readAuthority" } },
5293
+ schedule: { $bind: { from: "data.schedule" } },
5294
+ seeAllButtonVariant: { $bind: {
5295
+ from: "content.seeAllButtonVariant",
5296
+ fallback: "secondary"
5297
+ } },
5298
+ events: { $bind: { from: "data.events" } },
5299
+ effectiveListArrangementKey: { $bind: { from: "$root.effectiveListArrangementKey" } },
5300
+ calendarWindow: { $bind: { from: "data.calendarWindow" } },
5301
+ stage: { $bind: {
5302
+ from: "$root.previewStage",
5303
+ fallback: "published"
5304
+ } },
5305
+ variant: { $bind: { from: "content.variant" } },
5306
+ displayMode: { $bind: { from: "content.displayMode" } },
5307
+ listLayout: { $bind: { from: "content.listLayout" } },
5308
+ listBy: { $bind: { from: "content.listBy" } },
5309
+ bookingTimeZone: { $bind: { from: "$root.dateContext.timeZone" } },
5310
+ dateContext: { $bind: { from: "$root.dateContext" } },
5311
+ monthArrangement: { $bind: { from: "content._lookMonthArrangement" } },
5312
+ lookSlots: { $bind: { from: "content._lookSlots" } },
5313
+ itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
5314
+ showPhotos: { $bind: { from: "content.showPhotos" } },
5315
+ panelHeading: { $bind: { from: "content._lookPanelHeading" } },
5316
+ itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
5317
+ roleSurfaces: { $bind: { from: "content._effectiveLook.roleSurfaces" } },
5318
+ itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
5319
+ listColumns: { $bind: { from: "content.listColumns" } },
5320
+ layout: { $bind: { from: "content.layout" } },
5321
+ columns: { $bind: { from: "content.columns" } },
5322
+ eventsPerPage: { $bind: { from: "content.eventsPerPage" } },
5323
+ paginationMode: { $bind: {
5324
+ from: "content.paginationMode",
5325
+ fallback: "loadMore"
5326
+ } },
5327
+ seeAllUrl: { $bind: {
5328
+ from: "content.seeAllUrl",
5329
+ fallback: "",
5330
+ transforms: [{ id: "links.resolve" }]
5331
+ } },
5332
+ loadMoreText: { $bind: {
5333
+ from: "content.loadMoreText",
5334
+ fallback: "Load more events"
5335
+ } },
5336
+ startOfWeek: { $bind: { from: "content.startOfWeek" } },
5337
+ calendarTabViews: { $bind: {
5338
+ from: "content.calendarTabViews",
5339
+ fallback: "both"
5340
+ } },
5341
+ defaultCalendarView: { $bind: {
5342
+ from: "content.defaultCalendarView",
5343
+ fallback: "month"
5344
+ } },
5345
+ seriesIds: { $bind: {
5346
+ from: "content",
5347
+ transforms: [{
5348
+ id: "events.calendarSelectionParam",
5349
+ options: { key: "seriesIds" }
5350
+ }]
5351
+ } },
5352
+ showFilters: { $bind: {
5353
+ from: "content.showFilters",
5354
+ fallback: true
5355
+ } },
5356
+ showCategoryFilter: { $bind: {
5357
+ from: "content.showCategoryFilter",
5358
+ fallback: "auto"
5359
+ } },
5360
+ showVenueFilter: { $bind: {
5361
+ from: "content.showVenueFilter",
5362
+ fallback: false
5363
+ } },
5364
+ showStaffFilter: { $bind: {
5365
+ from: "content.showStaffFilter",
5366
+ fallback: true
5367
+ } },
5368
+ showVenue: { $bind: {
5369
+ from: "content.showVenue",
5370
+ fallback: true
5371
+ } },
5372
+ showMap: { $bind: {
5373
+ from: "content.showMap",
5374
+ fallback: true
5375
+ } },
5376
+ showCapacity: { $bind: {
5377
+ from: "content.showCapacity",
5378
+ fallback: true
5379
+ } },
5380
+ eventSurface: { $bind: {
5381
+ from: "content",
5382
+ transforms: [{
5383
+ id: "events.calendarSelectionParam",
5384
+ options: { key: "eventSurface" }
5385
+ }]
5386
+ } },
5387
+ filterEventPresets: { $bind: {
5388
+ from: "content",
5389
+ transforms: [{
5390
+ id: "events.calendarSelectionParam",
5391
+ options: { key: "filterEventPresets" }
5392
+ }]
5393
+ } },
5394
+ scheduleScope: { $bind: {
5395
+ from: "content",
5396
+ transforms: [{
5397
+ id: "events.calendarSelectionParam",
5398
+ options: { key: "scheduleScope" }
5399
+ }]
5400
+ } },
5401
+ filterCategoryIds: { $bind: {
5402
+ from: "content",
5403
+ transforms: [{
5404
+ id: "events.calendarSelectionParam",
5405
+ options: { key: "filterCategoryIds" }
5406
+ }]
5407
+ } },
5408
+ filterStaffMemberId: { $bind: {
5409
+ from: "content",
5410
+ transforms: [{
5411
+ id: "events.calendarSelectionParam",
5412
+ options: { key: "filterStaffMemberId" }
5413
+ }]
5414
+ } },
5415
+ filterVenueId: { $bind: {
5416
+ from: "content",
5417
+ transforms: [{
5418
+ id: "events.calendarSelectionParam",
5419
+ options: { key: "filterVenueId" }
5420
+ }]
5421
+ } },
5422
+ cardRole: { $bind: {
5423
+ from: "content._cardStyles.role",
5424
+ fallback: "default"
5425
+ } },
5426
+ buttonVariant: { $bind: {
5427
+ from: "content.buttonVariant",
5428
+ fallback: "primary"
5429
+ } },
5430
+ buttonText: { $bind: {
5431
+ from: "content.buttonText",
5432
+ fallback: "Book"
5433
+ } },
5434
+ emptyMessage: { $bind: { from: "content.emptyMessage" } },
5435
+ boardTitle: { $bind: { from: "content.boardTitle" } },
5436
+ footerNote: { $bind: { from: "content.footerNote" } },
5437
+ elevated: { $bind: {
5438
+ from: "content.elevated",
5439
+ fallback: false
5440
+ } },
5441
+ banded: { $bind: {
5442
+ from: "content",
5443
+ transforms: [{ id: "events.calendarBanded" }],
5444
+ fallback: false
5445
+ } }
5446
+ }))
5447
+ ]
5284
5448
  }),
5285
5449
  baseClass: "",
5286
5450
  spacing: "comfortable"
5287
5451
  })];
5288
5452
  const eventCalendarAdditionalFields = [
5289
5453
  ...cardListKnobFields,
5454
+ ...cardListPhotoNumberFields.filter((field) => field.id === "showPhotos"),
5455
+ ...eventDisplayFields.filter((field) => field.id === "showVenue"),
5456
+ {
5457
+ id: "eyebrow",
5458
+ type: "text",
5459
+ label: "Eyebrow",
5460
+ required: false,
5461
+ multiline: false,
5462
+ maxLength: 80
5463
+ },
5464
+ createButtonVariantField({
5465
+ id: "seeAllButtonVariant",
5466
+ label: "See all button style",
5467
+ defaultValue: "secondary"
5468
+ }),
5290
5469
  ...sectionHeaderFields("Event Calendar"),
5291
5470
  {
5292
5471
  id: "displayMode",
@@ -5299,7 +5478,7 @@ const eventCalendarAdditionalFields = [
5299
5478
  options: [
5300
5479
  {
5301
5480
  value: "combined",
5302
- label: "Combined (List + Calendar tabs)"
5481
+ label: "List and calendar, with tabs"
5303
5482
  },
5304
5483
  {
5305
5484
  value: "calendar",
@@ -5316,6 +5495,10 @@ const eventCalendarAdditionalFields = [
5316
5495
  {
5317
5496
  value: "list",
5318
5497
  label: "List"
5498
+ },
5499
+ {
5500
+ value: "week",
5501
+ label: "Week"
5319
5502
  }
5320
5503
  ],
5321
5504
  ui: {
@@ -5332,7 +5515,7 @@ const eventCalendarAdditionalFields = [
5332
5515
  defaultValue: "upcoming",
5333
5516
  options: [{
5334
5517
  value: "upcoming",
5335
- label: "Upcoming (count)"
5518
+ label: "Upcoming events"
5336
5519
  }, {
5337
5520
  value: "week",
5338
5521
  label: "Week"
@@ -5349,7 +5532,7 @@ const eventCalendarAdditionalFields = [
5349
5532
  id: "listLayout",
5350
5533
  type: "select",
5351
5534
  label: "List layout",
5352
- description: "Layout style for list view",
5535
+ description: "How the list is laid out.",
5353
5536
  required: false,
5354
5537
  multiple: false,
5355
5538
  defaultValue: "stack",
@@ -5401,35 +5584,54 @@ const eventCalendarAdditionalFields = [
5401
5584
  {
5402
5585
  id: "eventsPerPage",
5403
5586
  type: "select",
5404
- label: "Events per page",
5405
- description: "Number of events to load initially",
5587
+ label: "How many",
5406
5588
  required: false,
5407
5589
  multiple: false,
5408
5590
  defaultValue: "12",
5409
5591
  options: [
5592
+ {
5593
+ value: "1",
5594
+ label: "Show just one"
5595
+ },
5596
+ {
5597
+ value: "2",
5598
+ label: "Show the first 2"
5599
+ },
5600
+ {
5601
+ value: "3",
5602
+ label: "Show the first 3"
5603
+ },
5604
+ {
5605
+ value: "4",
5606
+ label: "Show the first 4"
5607
+ },
5608
+ {
5609
+ value: "5",
5610
+ label: "Show the first 5"
5611
+ },
5410
5612
  {
5411
5613
  value: "6",
5412
- label: "6"
5614
+ label: "Show the first 6"
5413
5615
  },
5414
5616
  {
5415
5617
  value: "10",
5416
- label: "10"
5618
+ label: "Show the first 10"
5417
5619
  },
5418
5620
  {
5419
5621
  value: "12",
5420
- label: "12"
5622
+ label: "Show the first 12"
5421
5623
  },
5422
5624
  {
5423
5625
  value: "20",
5424
- label: "20"
5626
+ label: "Show the first 20"
5425
5627
  },
5426
5628
  {
5427
5629
  value: "24",
5428
- label: "24"
5630
+ label: "Show the first 24"
5429
5631
  },
5430
5632
  {
5431
5633
  value: "30",
5432
- label: "30"
5634
+ label: "Show the first 30"
5433
5635
  }
5434
5636
  ],
5435
5637
  ui: {
@@ -5444,17 +5646,24 @@ const eventCalendarAdditionalFields = [
5444
5646
  id: "paginationMode",
5445
5647
  type: "select",
5446
5648
  label: "More events",
5447
- description: "How to access events beyond the initial list",
5649
+ description: "How visitors can see the rest of your events.",
5448
5650
  required: false,
5449
5651
  multiple: false,
5450
5652
  defaultValue: "loadMore",
5451
- options: [{
5452
- value: "loadMore",
5453
- label: "Load more button"
5454
- }, {
5455
- value: "seeAllLink",
5456
- label: "Link to another page"
5457
- }],
5653
+ options: [
5654
+ {
5655
+ value: "none",
5656
+ label: "No link or button"
5657
+ },
5658
+ {
5659
+ value: "loadMore",
5660
+ label: "Load more button"
5661
+ },
5662
+ {
5663
+ value: "seeAllLink",
5664
+ label: "Link to another page"
5665
+ }
5666
+ ],
5458
5667
  ui: {
5459
5668
  intent: "display",
5460
5669
  visibleWhen: {
@@ -5466,25 +5675,27 @@ const eventCalendarAdditionalFields = [
5466
5675
  {
5467
5676
  id: "seeAllUrl",
5468
5677
  type: "link",
5469
- label: "See all destination",
5678
+ label: "Link to the full list",
5470
5679
  required: false,
5471
5680
  ui: {
5472
5681
  intent: "display",
5473
- visibleWhen: {
5682
+ visibleWhen: { anyOf: [{ allOf: [{
5474
5683
  field: "variant",
5475
- oneOf: [
5476
- "combined",
5477
- "list",
5478
- "week-board"
5479
- ]
5480
- }
5684
+ oneOf: ["combined", "list"]
5685
+ }, {
5686
+ field: "paginationMode",
5687
+ equals: "seeAllLink"
5688
+ }] }, {
5689
+ field: "variant",
5690
+ oneOf: ["week-board", "week"]
5691
+ }] }
5481
5692
  }
5482
5693
  },
5483
5694
  {
5484
5695
  id: "loadMoreText",
5485
5696
  type: "text",
5486
- label: "CTA button text",
5487
- description: "Text for the load more button or linked CTA",
5697
+ label: "More events button text",
5698
+ description: "The text on the button or link that shows more events.",
5488
5699
  required: false,
5489
5700
  multiline: false,
5490
5701
  defaultValue: "Load more events",
@@ -5495,7 +5706,8 @@ const eventCalendarAdditionalFields = [
5495
5706
  oneOf: [
5496
5707
  "combined",
5497
5708
  "list",
5498
- "week-board"
5709
+ "week-board",
5710
+ "week"
5499
5711
  ]
5500
5712
  }
5501
5713
  }
@@ -5531,15 +5743,15 @@ const eventCalendarAdditionalFields = [
5531
5743
  {
5532
5744
  id: "calendarTabViews",
5533
5745
  type: "select",
5534
- label: "Calendar tab views",
5535
- description: "Which calendar views to show in the Calendar tab",
5746
+ label: "Calendar views",
5747
+ description: "Which views visitors can switch between in the calendar.",
5536
5748
  required: false,
5537
5749
  multiple: false,
5538
5750
  defaultValue: "both",
5539
5751
  options: [
5540
5752
  {
5541
5753
  value: "both",
5542
- label: "Month + Week toggle"
5754
+ label: "Month and week"
5543
5755
  },
5544
5756
  {
5545
5757
  value: "month",
@@ -5562,7 +5774,7 @@ const eventCalendarAdditionalFields = [
5562
5774
  id: "defaultCalendarView",
5563
5775
  type: "select",
5564
5776
  label: "Calendar view",
5565
- description: "Choose the standalone calendar view, or the first view in combined mode",
5777
+ description: "Which view visitors see first.",
5566
5778
  required: false,
5567
5779
  multiple: false,
5568
5780
  defaultValue: "month",
@@ -5591,7 +5803,7 @@ const eventCalendarAdditionalFields = [
5591
5803
  id: "showFilters",
5592
5804
  type: "boolean",
5593
5805
  label: "Show filters",
5594
- description: "Show category, staff, and venue filters",
5806
+ description: "Lets visitors filter by category, team member or venue.",
5595
5807
  required: false,
5596
5808
  defaultValue: true,
5597
5809
  ui: {
@@ -5612,14 +5824,14 @@ const eventCalendarAdditionalFields = [
5612
5824
  id: "showCategoryFilter",
5613
5825
  type: "select",
5614
5826
  label: "Show category filter",
5615
- description: "When to show the category filter dropdown",
5827
+ description: "When to show the category menu.",
5616
5828
  required: false,
5617
5829
  multiple: false,
5618
5830
  defaultValue: "auto",
5619
5831
  options: [
5620
5832
  {
5621
5833
  value: "auto",
5622
- label: "Auto (when >1 category has events)"
5834
+ label: "When more than one category has events"
5623
5835
  },
5624
5836
  {
5625
5837
  value: "always",
@@ -5651,7 +5863,7 @@ const eventCalendarAdditionalFields = [
5651
5863
  id: "showVenueFilter",
5652
5864
  type: "boolean",
5653
5865
  label: "Show venue filter",
5654
- description: "Show venue filter dropdown",
5866
+ description: "Lets visitors pick a venue.",
5655
5867
  required: false,
5656
5868
  defaultValue: false,
5657
5869
  ui: {
@@ -5674,8 +5886,8 @@ const eventCalendarAdditionalFields = [
5674
5886
  {
5675
5887
  id: "showStaffFilter",
5676
5888
  type: "boolean",
5677
- label: "Show staff filter",
5678
- description: "Show staff filter dropdown",
5889
+ label: "Show team filter",
5890
+ description: "Lets visitors pick someone from your team.",
5679
5891
  required: false,
5680
5892
  defaultValue: true,
5681
5893
  ui: {
@@ -5699,7 +5911,7 @@ const eventCalendarAdditionalFields = [
5699
5911
  id: "showCapacity",
5700
5912
  type: "boolean",
5701
5913
  label: "Show available places",
5702
- description: "Display remaining capacity on event cards and timetable cells",
5914
+ description: "Shows how many places are left on each event.",
5703
5915
  required: false,
5704
5916
  defaultValue: true,
5705
5917
  ui: {
@@ -5725,7 +5937,7 @@ const eventCalendarAdditionalFields = [
5725
5937
  id: "boardTitle",
5726
5938
  type: "text",
5727
5939
  label: "Board title",
5728
- description: "Optional label shown in the board top bar. Left blank by default.",
5940
+ description: "An optional label along the top of the board.",
5729
5941
  required: false,
5730
5942
  multiline: false,
5731
5943
  ui: {
@@ -5740,7 +5952,7 @@ const eventCalendarAdditionalFields = [
5740
5952
  id: "footerNote",
5741
5953
  type: "text",
5742
5954
  label: "Footer note",
5743
- description: "Optional note shown in the board footer. Left blank by default.",
5955
+ description: "An optional note along the bottom of the board.",
5744
5956
  required: false,
5745
5957
  multiline: true,
5746
5958
  ui: {
@@ -5770,7 +5982,7 @@ const eventCalendarAdditionalFields = [
5770
5982
  id: "banded",
5771
5983
  type: "boolean",
5772
5984
  label: "Section band",
5773
- description: "Give the board section a distinct background band.",
5985
+ description: "Puts the board on its own band of colour.",
5774
5986
  required: false,
5775
5987
  defaultValue: false,
5776
5988
  ui: {
@@ -5813,8 +6025,8 @@ const eventCalendarAdditionalFields = [
5813
6025
  {
5814
6026
  id: "filterEventPresets",
5815
6027
  type: "select",
5816
- label: "Pre-filter by event type",
5817
- description: "Restrict this block to specific event types",
6028
+ label: "Only show these event types",
6029
+ description: "Pick the types of event this block shows.",
5818
6030
  required: false,
5819
6031
  multiple: true,
5820
6032
  defaultValue: [],
@@ -5851,23 +6063,23 @@ const eventCalendarAdditionalFields = [
5851
6063
  {
5852
6064
  id: "scheduleScope",
5853
6065
  type: "select",
5854
- label: "Schedule cadence",
5855
- description: "Restrict this block by recurrence",
6066
+ label: "Regular or one-off",
6067
+ description: "Show regular events, one-off events or both.",
5856
6068
  required: false,
5857
6069
  multiple: false,
5858
6070
  defaultValue: "any",
5859
6071
  options: [
5860
6072
  {
5861
6073
  value: "any",
5862
- label: "Any cadence"
6074
+ label: "Both"
5863
6075
  },
5864
6076
  {
5865
6077
  value: "recurring",
5866
- label: "Recurring only"
6078
+ label: "Regular events only"
5867
6079
  },
5868
6080
  {
5869
6081
  value: "oneOff",
5870
- label: "One-off only"
6082
+ label: "One-off events only"
5871
6083
  }
5872
6084
  ],
5873
6085
  ui: {
@@ -5880,8 +6092,8 @@ const eventCalendarAdditionalFields = [
5880
6092
  },
5881
6093
  createSiteOptionSelectField({
5882
6094
  id: "filterCategoryIds",
5883
- label: "Pre-filter by categories",
5884
- description: "Restrict this block to specific event categories",
6095
+ label: "Only show these categories",
6096
+ description: "Pick the categories this block shows.",
5885
6097
  required: false,
5886
6098
  multiple: true,
5887
6099
  defaultValue: [],
@@ -5893,8 +6105,8 @@ const eventCalendarAdditionalFields = [
5893
6105
  }),
5894
6106
  createSiteOptionSelectField({
5895
6107
  id: "filterStaffMemberId",
5896
- label: "Pre-filter by staff member",
5897
- description: "Restrict this block to a single staff member",
6108
+ label: "Only show one team member",
6109
+ description: "Pick someone from your team to show only their events.",
5898
6110
  required: false,
5899
6111
  multiple: false,
5900
6112
  optionSource: "staffMembers",
@@ -5905,8 +6117,8 @@ const eventCalendarAdditionalFields = [
5905
6117
  }),
5906
6118
  createSiteOptionSelectField({
5907
6119
  id: "filterVenueId",
5908
- label: "Pre-filter by venue",
5909
- description: "Restrict this block to a single venue",
6120
+ label: "Only show one venue",
6121
+ description: "Pick a venue to show only the events held there.",
5910
6122
  required: false,
5911
6123
  multiple: false,
5912
6124
  optionSource: "venues",
@@ -5944,6 +6156,7 @@ const eventCalendarAdditionalFields = [
5944
6156
  })
5945
6157
  ];
5946
6158
  const eventCalendarVariants = {
6159
+ week: eventCalendarLayout[0],
5947
6160
  combined: eventCalendarLayout[0],
5948
6161
  calendar: eventCalendarLayout[0],
5949
6162
  timetable: eventCalendarLayout[0],
@@ -5962,7 +6175,8 @@ const eventCalendarContentShape = {
5962
6175
  { value: "calendar" },
5963
6176
  { value: "timetable" },
5964
6177
  { value: "week-board" },
5965
- { value: "list" }
6178
+ { value: "list" },
6179
+ { value: "week" }
5966
6180
  ]
5967
6181
  },
5968
6182
  {
@@ -5983,57 +6197,119 @@ const eventCalendarContentShape = {
5983
6197
  variants: eventCalendarVariants,
5984
6198
  skipSectionStyles: true
5985
6199
  };
5986
- const eventCalendarBlockDefinition = {
5987
- manifest: createBlockManifestWithContentShape({
5988
- id: "block.event-calendar",
5989
- version: "3.6.0",
5990
- title: "Event Calendar",
5991
- titleSource: "heading",
5992
- description: "Display events with calendar, list, or combined views with filtering",
5993
- skipSectionStyles: true,
5994
- additionalFields: eventCalendarAdditionalFields.map(withEventSelectionVisibility),
5995
- styleTokens: {
5996
- background: "surface",
5997
- typography: "body",
5998
- spacing: "md"
5999
- },
6000
- behaviours: {
6001
- supportsThemeSwitching: true,
6002
- inlineEditing: false,
6003
- animation: false,
6004
- paletteHidden: false
6005
- },
6006
- category: "interactive",
6007
- contentSource: { kind: "entries" },
6008
- tags: [
6009
- "events",
6010
- "calendar",
6011
- "month",
6012
- "week",
6013
- "schedule",
6014
- "interactive",
6015
- "list",
6016
- "filter"
6017
- ],
6018
- icon: "CalendarDays",
6019
- previewCustomize: { quickFieldPriority: [
6020
- "listLayout",
6021
- "eventsPerPage",
6022
- "showFilters",
6023
- "eventSurface"
6024
- ] },
6025
- layout: eventCalendarLayout,
6026
- variants: eventCalendarVariants,
6027
- variantMeaning: eventCalendarVariantMeaning,
6028
- defaultVariant: "combined",
6029
- variantOptions: {
6030
- combined: { label: "Combined" },
6031
- calendar: { label: "Calendar" },
6032
- timetable: { label: "Timetable" },
6033
- "week-board": { label: "Week board" },
6034
- list: { label: "List" }
6200
+ /** Week rows use their fixed recurring-series read, without occurrence filters. */
6201
+ function withCalendarModeVisibility(field) {
6202
+ const selected = withEventSelectionVisibility(field);
6203
+ if (field.id === "showVenue") return {
6204
+ ...selected,
6205
+ ui: {
6206
+ ...selected.ui,
6207
+ visibleWhen: {
6208
+ field: "variant",
6209
+ oneOf: [
6210
+ "week",
6211
+ "list",
6212
+ "combined"
6213
+ ]
6214
+ }
6035
6215
  }
6036
- }, eventCalendarContentShape),
6216
+ };
6217
+ if (field.id === "seeAllButtonVariant") return {
6218
+ ...selected,
6219
+ ui: {
6220
+ ...selected.ui,
6221
+ visibleWhen: {
6222
+ field: "variant",
6223
+ equals: "week"
6224
+ }
6225
+ }
6226
+ };
6227
+ if (![
6228
+ "eventSelection",
6229
+ "selectedEventSeriesIds",
6230
+ "eventSurface",
6231
+ "filterEventPresets",
6232
+ "scheduleScope",
6233
+ "filterCategoryIds",
6234
+ "filterStaffMemberId",
6235
+ "filterVenueId"
6236
+ ].includes(field.id)) return selected;
6237
+ return {
6238
+ ...selected,
6239
+ ui: {
6240
+ ...selected.ui,
6241
+ visibleWhen: { allOf: [{
6242
+ field: "variant",
6243
+ notEquals: "week"
6244
+ }, ...selected.ui?.visibleWhen ? [selected.ui.visibleWhen] : []] }
6245
+ }
6246
+ };
6247
+ }
6248
+ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
6249
+ id: "block.event-calendar",
6250
+ promotedFields: [
6251
+ "variant",
6252
+ "listBy",
6253
+ "eventSurface",
6254
+ "filterEventPresets",
6255
+ "scheduleScope",
6256
+ "eventsPerPage",
6257
+ "paginationMode",
6258
+ "seeAllUrl"
6259
+ ],
6260
+ version: "3.6.0",
6261
+ title: "Event calendar",
6262
+ titleSource: "heading",
6263
+ description: "Your classes and events, as a list, a calendar or a weekly timetable.",
6264
+ skipSectionStyles: true,
6265
+ additionalFields: eventCalendarAdditionalFields.map(withCalendarModeVisibility),
6266
+ styleTokens: {
6267
+ background: "surface",
6268
+ typography: "body",
6269
+ spacing: "md"
6270
+ },
6271
+ behaviours: {
6272
+ supportsThemeSwitching: true,
6273
+ inlineEditing: false,
6274
+ animation: false,
6275
+ paletteHidden: false
6276
+ },
6277
+ category: "events-and-bookings",
6278
+ requiredFeatures: ["bookings.events"],
6279
+ contentSource: { kind: "entries" },
6280
+ tags: [
6281
+ "events",
6282
+ "calendar",
6283
+ "month",
6284
+ "week",
6285
+ "schedule",
6286
+ "interactive",
6287
+ "list",
6288
+ "filter"
6289
+ ],
6290
+ icon: "CalendarDays",
6291
+ layout: eventCalendarLayout,
6292
+ variants: eventCalendarVariants,
6293
+ variantMeaning: eventCalendarVariantMeaning,
6294
+ defaultVariant: "combined",
6295
+ variantOptions: {
6296
+ week: { label: "Week" },
6297
+ combined: { label: "Combined" },
6298
+ calendar: { label: "Calendar" },
6299
+ timetable: { label: "Timetable" },
6300
+ "week-board": { label: "Week board" },
6301
+ list: { label: "List" }
6302
+ }
6303
+ }, eventCalendarContentShape);
6304
+ const eventCalendarBlockDefinition = {
6305
+ manifest: {
6306
+ ...generatedEventCalendarManifest,
6307
+ fields: generatedEventCalendarManifest.fields?.map((field) => field.id === "variant" ? {
6308
+ ...field,
6309
+ label: "Show events as",
6310
+ description: void 0
6311
+ } : field)
6312
+ },
6037
6313
  contentNormalizer: {
6038
6314
  fieldIds: [
6039
6315
  "variant",
@@ -6050,6 +6326,7 @@ const eventCalendarBlockDefinition = {
6050
6326
  normalize: normalizeEventCalendarContent
6051
6327
  },
6052
6328
  dataSchemas: {
6329
+ schedule: recurringScheduleProjectionSchema.optional(),
6053
6330
  events: publicEventsArraySchema.optional(),
6054
6331
  calendarWindow: calendarWindowPageSchema.optional()
6055
6332
  },
@@ -6108,10 +6385,11 @@ const shopBlockDefinition = {
6108
6385
  ]
6109
6386
  },
6110
6387
  id: "block.shop",
6388
+ promotedFields: ["showPasses", "showMemberships"],
6111
6389
  version: "1.0.0",
6112
- title: "Passes & Memberships",
6390
+ title: "Passes & memberships",
6113
6391
  titleSource: "passesHeading",
6114
- description: "Display passes and memberships for purchase",
6392
+ description: "Your class passes and memberships, ready for people to buy.",
6115
6393
  skipSectionStyles: true,
6116
6394
  additionalFields: [
6117
6395
  ...cardListKnobFields,
@@ -6132,7 +6410,7 @@ const shopBlockDefinition = {
6132
6410
  id: "showPasses",
6133
6411
  type: "boolean",
6134
6412
  label: "Show passes",
6135
- description: "Display class passes for purchase",
6413
+ description: "Lets visitors buy your class passes.",
6136
6414
  required: false,
6137
6415
  defaultValue: true,
6138
6416
  ui: { intent: "display" }
@@ -6141,7 +6419,7 @@ const shopBlockDefinition = {
6141
6419
  id: "showMemberships",
6142
6420
  type: "boolean",
6143
6421
  label: "Show memberships",
6144
- description: "Display memberships for purchase",
6422
+ description: "Lets visitors buy your memberships.",
6145
6423
  required: false,
6146
6424
  defaultValue: true,
6147
6425
  ui: { intent: "display" }
@@ -6150,7 +6428,7 @@ const shopBlockDefinition = {
6150
6428
  id: "layout",
6151
6429
  type: "select",
6152
6430
  label: "Layout",
6153
- description: "How to display products",
6431
+ description: "How the passes and memberships are laid out.",
6154
6432
  required: false,
6155
6433
  multiple: false,
6156
6434
  defaultValue: "grid",
@@ -6202,7 +6480,7 @@ const shopBlockDefinition = {
6202
6480
  id: "showDescriptions",
6203
6481
  type: "boolean",
6204
6482
  label: "Show descriptions",
6205
- description: "Display product descriptions",
6483
+ description: "Shows the description under each one.",
6206
6484
  required: false,
6207
6485
  defaultValue: true,
6208
6486
  ui: { intent: "display" }
@@ -6211,7 +6489,7 @@ const shopBlockDefinition = {
6211
6489
  id: "showValidityPeriod",
6212
6490
  type: "boolean",
6213
6491
  label: "Show validity period",
6214
- description: "Display pass expiration info (e.g., 'Valid for 30 days')",
6492
+ description: "Shows how long each pass lasts, like 'Valid for 30 days'.",
6215
6493
  required: false,
6216
6494
  defaultValue: true,
6217
6495
  ui: { intent: "display" }
@@ -6220,21 +6498,21 @@ const shopBlockDefinition = {
6220
6498
  id: "showPricePerCredit",
6221
6499
  type: "boolean",
6222
6500
  label: "Show price per credit",
6223
- description: "Display calculated price per credit for passes and packages",
6501
+ description: "Shows what each credit works out at, for passes and packs.",
6224
6502
  required: false,
6225
6503
  defaultValue: true,
6226
6504
  ui: { intent: "display" }
6227
6505
  },
6228
6506
  createButtonVariantField({
6229
- label: "Product action button style",
6230
- description: "Choose the themed button style for pass and membership actions.",
6507
+ label: "Button style",
6508
+ description: "The style of the buy buttons.",
6231
6509
  defaultValue: "primary"
6232
6510
  }),
6233
6511
  {
6234
6512
  id: "passesHeading",
6235
6513
  type: "text",
6236
- label: "Credit products heading",
6237
- description: "Optional heading for passes and packages",
6514
+ label: "Passes heading",
6515
+ description: "An optional heading above your passes.",
6238
6516
  required: false,
6239
6517
  multiline: false,
6240
6518
  defaultValue: "",
@@ -6254,7 +6532,7 @@ const shopBlockDefinition = {
6254
6532
  id: "buyButtonText",
6255
6533
  type: "text",
6256
6534
  label: "Pass button text",
6257
- description: "Text for pass purchase/add-to-cart button",
6535
+ description: "The text on the button to buy a pass.",
6258
6536
  required: false,
6259
6537
  multiline: false,
6260
6538
  defaultValue: "Add to cart",
@@ -6263,8 +6541,8 @@ const shopBlockDefinition = {
6263
6541
  {
6264
6542
  id: "passPurchaseMode",
6265
6543
  type: "select",
6266
- label: "Pass purchase mode",
6267
- description: "Choose whether passes add to the shared cart or launch direct checkout.",
6544
+ label: "When someone buys a pass",
6545
+ description: "Add the pass to their cart, or take them straight to checkout.",
6268
6546
  required: false,
6269
6547
  multiple: false,
6270
6548
  defaultValue: "add_to_cart",
@@ -6290,8 +6568,8 @@ const shopBlockDefinition = {
6290
6568
  {
6291
6569
  id: "emptyStateText",
6292
6570
  type: "text",
6293
- label: "Empty state text",
6294
- description: "Message when no products are available",
6571
+ label: "If there's nothing to show",
6572
+ description: "What visitors see when there's nothing for sale.",
6295
6573
  required: false,
6296
6574
  multiline: false,
6297
6575
  defaultValue: "No products available at this time.",
@@ -6333,6 +6611,7 @@ const shopBlockDefinition = {
6333
6611
  featured: { $bind: { from: "content.featured" } },
6334
6612
  readAuthority: { $bind: { from: "$root.readAuthority" } },
6335
6613
  siteTerms: { $bind: { from: "$root.siteTerms" } },
6614
+ dateContext: { $bind: { from: "$root.dateContext" } },
6336
6615
  demoEmailSuppressed: { $bind: {
6337
6616
  from: "$root.demoEmailSuppressed",
6338
6617
  fallback: false
@@ -6425,9 +6704,9 @@ const productListBlockDefinition = {
6425
6704
  variantMeaning: { kind: "arrangement" },
6426
6705
  id: "block.product-list",
6427
6706
  version: "1.0.0",
6428
- title: "Product List",
6707
+ title: "Product list",
6429
6708
  titleSource: "heading",
6430
- description: "Display catalog products and add them to the cart",
6709
+ description: "Your products, each with a button to add it to the cart.",
6431
6710
  skipSectionStyles: true,
6432
6711
  additionalFields: [
6433
6712
  {
@@ -6508,7 +6787,7 @@ const productListBlockDefinition = {
6508
6787
  {
6509
6788
  id: "emptyStateText",
6510
6789
  type: "text",
6511
- label: "Empty state text",
6790
+ label: "If there's nothing to show",
6512
6791
  multiline: false,
6513
6792
  required: false,
6514
6793
  defaultValue: "No products available right now."
@@ -6529,7 +6808,8 @@ const productListBlockDefinition = {
6529
6808
  animation: false,
6530
6809
  paletteHidden: false
6531
6810
  },
6532
- category: "interactive",
6811
+ category: "shop",
6812
+ requiredFeatures: ["shop"],
6533
6813
  contentSource: { kind: "entries" },
6534
6814
  tags: [
6535
6815
  "shop",
@@ -6602,10 +6882,11 @@ const productDetailBlockDefinition = {
6602
6882
  manifest: createBlockManifest({
6603
6883
  variantMeaning: { kind: "arrangement" },
6604
6884
  id: "block.product-detail",
6885
+ promotedFields: ["productSlug"],
6605
6886
  version: "1.0.0",
6606
- title: "Product Detail",
6887
+ title: "Product detail",
6607
6888
  titleSource: "heading",
6608
- description: "Display a single product with gallery and add-to-cart action",
6889
+ description: "One product with its photos and an add-to-cart button.",
6609
6890
  skipSectionStyles: true,
6610
6891
  additionalFields: [
6611
6892
  {
@@ -6621,7 +6902,7 @@ const productDetailBlockDefinition = {
6621
6902
  type: "text",
6622
6903
  label: "Product slug",
6623
6904
  multiline: false,
6624
- description: "Optional override when this block is not used on a product page.",
6905
+ description: "Only needed if this block isn't on a product page. Use the last part of the product's web address.",
6625
6906
  required: false,
6626
6907
  ui: { intent: "behavior" }
6627
6908
  },
@@ -6636,7 +6917,7 @@ const productDetailBlockDefinition = {
6636
6917
  {
6637
6918
  id: "showBody",
6638
6919
  type: "boolean",
6639
- label: "Show body",
6920
+ label: "Show full description",
6640
6921
  required: false,
6641
6922
  defaultValue: true,
6642
6923
  ui: { intent: "display" }
@@ -6652,7 +6933,7 @@ const productDetailBlockDefinition = {
6652
6933
  {
6653
6934
  id: "emptyStateText",
6654
6935
  type: "text",
6655
- label: "Empty state text",
6936
+ label: "If there's nothing to show",
6656
6937
  multiline: false,
6657
6938
  required: false,
6658
6939
  defaultValue: "Product unavailable."
@@ -6673,7 +6954,8 @@ const productDetailBlockDefinition = {
6673
6954
  animation: false,
6674
6955
  paletteHidden: false
6675
6956
  },
6676
- category: "interactive",
6957
+ category: "shop",
6958
+ requiredFeatures: ["shop"],
6677
6959
  contentSource: { kind: "entries" },
6678
6960
  tags: [
6679
6961
  "shop",
@@ -6712,6 +6994,10 @@ const productDetailBlockDefinition = {
6712
6994
  from: "content.emptyStateText",
6713
6995
  fallback: "Product unavailable."
6714
6996
  } },
6997
+ template: { $bind: {
6998
+ from: "$root.template",
6999
+ fallback: { kind: "page" }
7000
+ } },
6715
7001
  contentEntry: { $bind: {
6716
7002
  from: "$root.contentEntry",
6717
7003
  fallback: null
@@ -6720,6 +7006,7 @@ const productDetailBlockDefinition = {
6720
7006
  }))], { gap: "lg" })
6721
7007
  })]
6722
7008
  }),
7009
+ readiness: productReadiness,
6723
7010
  runtime: productDetailBlockRuntime,
6724
7011
  dataSchemas: { products: publicProductsResponseSchema.optional() },
6725
7012
  dataLoaders: { products: {
@@ -6741,7 +7028,7 @@ const cartBlockDefinition = {
6741
7028
  version: "1.0.0",
6742
7029
  title: "Cart",
6743
7030
  titleSource: "heading",
6744
- description: "Display the shared storefront cart",
7031
+ description: "Shows what a visitor has in their cart.",
6745
7032
  skipSectionStyles: true,
6746
7033
  additionalFields: [
6747
7034
  {
@@ -6755,7 +7042,7 @@ const cartBlockDefinition = {
6755
7042
  {
6756
7043
  id: "emptyStateText",
6757
7044
  type: "text",
6758
- label: "Empty state text",
7045
+ label: "If there's nothing to show",
6759
7046
  multiline: false,
6760
7047
  required: false,
6761
7048
  defaultValue: "Your cart is empty."
@@ -6792,7 +7079,8 @@ const cartBlockDefinition = {
6792
7079
  animation: false,
6793
7080
  paletteHidden: false
6794
7081
  },
6795
- category: "interactive",
7082
+ category: "shop",
7083
+ requiredFeatures: ["shop"],
6796
7084
  contentSource: { kind: "inline" },
6797
7085
  tags: [
6798
7086
  "shop",
@@ -6834,7 +7122,7 @@ const checkoutBlockDefinition = {
6834
7122
  version: "1.0.0",
6835
7123
  title: "Checkout",
6836
7124
  titleSource: "heading",
6837
- description: "Collect customer details and start checkout for the shared cart",
7125
+ description: "Where visitors enter their details and pay for what's in their cart.",
6838
7126
  skipSectionStyles: true,
6839
7127
  additionalFields: [
6840
7128
  {
@@ -6856,7 +7144,7 @@ const checkoutBlockDefinition = {
6856
7144
  {
6857
7145
  id: "emptyStateText",
6858
7146
  type: "text",
6859
- label: "Empty state text",
7147
+ label: "If there's nothing to show",
6860
7148
  multiline: false,
6861
7149
  required: false,
6862
7150
  defaultValue: "Add something to your cart to continue."
@@ -6877,7 +7165,8 @@ const checkoutBlockDefinition = {
6877
7165
  animation: false,
6878
7166
  paletteHidden: false
6879
7167
  },
6880
- category: "interactive",
7168
+ category: "shop",
7169
+ requiredFeatures: ["shop"],
6881
7170
  contentSource: { kind: "inline" },
6882
7171
  tags: [
6883
7172
  "shop",
@@ -6919,7 +7208,7 @@ const giftingBlockDefinition = {
6919
7208
  version: "1.0.0",
6920
7209
  title: "Gift cards & vouchers",
6921
7210
  titleSource: "heading",
6922
- description: "Sell and deliver gift cards and vouchers",
7211
+ description: "Lets people buy gift cards and vouchers for someone else.",
6923
7212
  skipSectionStyles: true,
6924
7213
  additionalFields: [
6925
7214
  {
@@ -6957,7 +7246,7 @@ const giftingBlockDefinition = {
6957
7246
  {
6958
7247
  id: "emptyStateText",
6959
7248
  type: "text",
6960
- label: "Empty state text",
7249
+ label: "If there's nothing to show",
6961
7250
  required: false,
6962
7251
  multiline: false,
6963
7252
  defaultValue: "Nothing is available right now."
@@ -6994,7 +7283,7 @@ const giftingBlockDefinition = {
6994
7283
  animation: false,
6995
7284
  paletteHidden: false
6996
7285
  },
6997
- category: "interactive",
7286
+ category: "shop",
6998
7287
  contentSource: { kind: "entries" },
6999
7288
  tags: [
7000
7289
  "gifting",
@@ -7100,10 +7389,16 @@ const archLayout = styledSection({
7100
7389
  });
7101
7390
  const newsletterSignupManifest = createBlockManifest({
7102
7391
  id: "block.newsletter-signup",
7103
- title: "Newsletter Signup",
7392
+ sourceLine: {
7393
+ text: "",
7394
+ target: "mailing-lists"
7395
+ },
7396
+ promotedFields: ["targeting"],
7397
+ title: "Newsletter signup",
7104
7398
  titleSource: "title",
7105
- description: "Newsletter subscription form with configurable field presets.",
7106
- category: "interactive",
7399
+ description: "Lets people join one of your mailing lists.",
7400
+ category: "forms-and-sign-ups",
7401
+ requiredFeatures: ["newsletter"],
7107
7402
  contentSource: { kind: "inline" },
7108
7403
  fragments: [{
7109
7404
  fragment: newsletterCopyFragment,
@@ -7178,6 +7473,7 @@ function sanitizeNewsletterSignupPublicContent(content) {
7178
7473
  }
7179
7474
  const newsletterSignupBlockDefinition = {
7180
7475
  manifest: newsletterSignupManifest,
7476
+ readiness: newsletterReadiness,
7181
7477
  contentNormalizer: {
7182
7478
  fieldIds: ["targeting"],
7183
7479
  normalize: normalizeMailingListBlockContent
@@ -7258,222 +7554,6 @@ const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
7258
7554
  const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
7259
7555
  const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
7260
7556
  //#endregion
7261
- //#region ../path-utils/src/index.ts
7262
- const PATH_SEPARATOR_REGEX = /\./g;
7263
- const BRACKET_ACCESS_REGEX = /\[([^\]]+)\]/g;
7264
- /**
7265
- * Segments that would traverse or mutate the prototype chain.
7266
- *
7267
- * `setAtPath` creates nested objects along the path, so allowing these
7268
- * segments is a prototype-pollution vector. They are rejected everywhere a
7269
- * path is parsed (string or pre-parsed array form) — fail closed.
7270
- */
7271
- const UNSAFE_PATH_SEGMENTS = /* @__PURE__ */ new Set([
7272
- "__proto__",
7273
- "constructor",
7274
- "prototype"
7275
- ]);
7276
- var UnsafePathSegmentError = class extends Error {
7277
- constructor(segment) {
7278
- super(`Unsafe path segment: "${segment}"`);
7279
- this.name = "UnsafePathSegmentError";
7280
- this.segment = segment;
7281
- }
7282
- };
7283
- function assertSafePathSegments(segments) {
7284
- for (const segment of segments) if (typeof segment === "string" && UNSAFE_PATH_SEGMENTS.has(segment)) throw new UnsafePathSegmentError(segment);
7285
- }
7286
- function isRecord(value) {
7287
- return typeof value === "object" && value !== null && !Array.isArray(value);
7288
- }
7289
- function isPathContainer(value) {
7290
- return Array.isArray(value) || isRecord(value);
7291
- }
7292
- function getContainerValue(container, segment) {
7293
- if (typeof segment === "number") return Array.isArray(container) ? container[segment] : void 0;
7294
- if (segment in container) return Reflect.get(container, segment);
7295
- }
7296
- function parsePath(path) {
7297
- if (Array.isArray(path)) {
7298
- assertSafePathSegments(path);
7299
- return path;
7300
- }
7301
- const segments = [];
7302
- const parts = path.split(PATH_SEPARATOR_REGEX);
7303
- for (const raw of parts) {
7304
- if (!raw) continue;
7305
- const baseMatch = raw.match(/^[^\[]+/);
7306
- if (baseMatch !== null) {
7307
- const base = baseMatch[1] ?? baseMatch[0];
7308
- if (/^\d+$/.test(base)) segments.push(Number(base));
7309
- else segments.push(base);
7310
- }
7311
- const bracketMatches = raw.matchAll(BRACKET_ACCESS_REGEX);
7312
- for (const match of bracketMatches) {
7313
- const token = match[1] ?? "";
7314
- if (token.startsWith("\"") || token.startsWith("'")) segments.push(token.slice(1, -1));
7315
- else if (/^\d+$/.test(token)) segments.push(Number(token));
7316
- else segments.push(token);
7317
- }
7318
- if (baseMatch === null && !raw.includes("[")) segments.push(raw);
7319
- }
7320
- assertSafePathSegments(segments);
7321
- return segments;
7322
- }
7323
- function getAtPath(source, path) {
7324
- return parsePath(path).reduce((current, segment) => {
7325
- if (current === void 0 || current === null) return void 0;
7326
- if (!isPathContainer(current)) return void 0;
7327
- return getContainerValue(current, segment);
7328
- }, source);
7329
- }
7330
- //#endregion
7331
- //#region ../blocks/src/primitives/content/components/Text.tsx
7332
- function Text({ as: Comp = "span", children, className = "", path, style, "data-slot": dataSlot, "data-surface": dataSurface, maxLength: _maxLength }) {
7333
- return /* @__PURE__ */ jsx(Comp, {
7334
- "data-slot": dataSlot,
7335
- "data-surface": dataSurface,
7336
- style: dataSlot === void 0 ? void 0 : style,
7337
- className,
7338
- ...path ? { "data-builder-text": path } : void 0,
7339
- children
7340
- });
7341
- }
7342
- //#endregion
7343
- //#region ../blocks/src/system/runtime/nodes/renderInlineText.tsx
7344
- function renderInlineText(value) {
7345
- return value.map((run, index) => renderRun(run, index));
7346
- }
7347
- function renderRun(run, key) {
7348
- return (run.marks ?? []).reduceRight((child, mark, index) => renderMark(mark, `${String(key)}-${index}`, child), run.text);
7349
- }
7350
- function renderMark(mark, key, child) {
7351
- switch (mark.kind) {
7352
- case "strong": return /* @__PURE__ */ jsx("strong", { children: child }, key);
7353
- case "emphasis": return /* @__PURE__ */ jsx("em", { children: child }, key);
7354
- case "accent": return /* @__PURE__ */ jsx("span", {
7355
- className: `rb-inline-text-accent rb-inline-text-accent-${mark.tone}`,
7356
- children: child
7357
- }, key);
7358
- case "highlight": return /* @__PURE__ */ jsx("span", {
7359
- className: `rb-inline-text-highlight rb-inline-text-highlight-${mark.tone}`,
7360
- children: child
7361
- }, key);
7362
- }
7363
- }
7364
- //#endregion
7365
- //#region ../blocks/src/system/runtime/nodes/basic.tsx
7366
- const TextNode = ({ value, children, blockContent, inlineTextFallbackPath, ...rest }) => {
7367
- const inlineText = parseInlineTextFromUnknown(value);
7368
- if (inlineText.ok && !isInlineTextEmpty(inlineText.value)) return /* @__PURE__ */ jsx(Text, {
7369
- ...rest,
7370
- children: renderInlineText(inlineText.value)
7371
- });
7372
- const fallbackValue = inlineTextFallbackPath ? readStringPath(blockContent, inlineTextFallbackPath) : null;
7373
- return /* @__PURE__ */ jsx(Text, {
7374
- ...rest,
7375
- children: fallbackValue ?? textNodeContent(value) ?? children
7376
- });
7377
- };
7378
- function textNodeContent(value) {
7379
- if (value === null || value === void 0) return null;
7380
- if (typeof value === "string" || typeof value === "number") return value;
7381
- return null;
7382
- }
7383
- function readStringPath(source, path) {
7384
- const value = getAtPath(source, path);
7385
- return typeof value === "string" ? value : null;
7386
- }
7387
- const RichTextNode = ({ value, blockKind, ...rest }) => {
7388
- return /* @__PURE__ */ jsx(RichText, {
7389
- doc: coerceRichTextDoc(value, `block-runtime:${blockKind ?? "unknown"}:${rest.path ?? "richText"}`) ?? void 0,
7390
- ...rest
7391
- });
7392
- };
7393
- function isMissingRequiredLink(linkRequired, resolvedHref) {
7394
- return linkRequired && resolvedHref.length === 0;
7395
- }
7396
- function authoredButtonDecision(props) {
7397
- const content = props.value ?? props.children;
7398
- if (!content) return { kind: "empty" };
7399
- const href = typeof props.href === "string" ? props.href.trim() : "";
7400
- if (isMissingRequiredLink(props.linkRequired ?? false, href)) return { kind: "missing-link" };
7401
- const variant = parseThemeButtonVariantId(props.variantId ?? "primary");
7402
- if (props.variantId && !variant) return { kind: "invalid-variant" };
7403
- return {
7404
- kind: "ready",
7405
- content,
7406
- href,
7407
- variant
7408
- };
7409
- }
7410
- const ButtonNode = (props) => {
7411
- const decision = authoredButtonDecision(props);
7412
- switch (decision.kind) {
7413
- case "empty":
7414
- console.warn("[ButtonNode] No content to render - value and children are both empty");
7415
- return null;
7416
- case "missing-link":
7417
- console.warn("[ButtonNode] Missing href for link-required button");
7418
- return null;
7419
- case "invalid-variant":
7420
- console.error("[ButtonNode] Invalid button variant", { variantId: props.variantId });
7421
- return null;
7422
- case "ready": return /* @__PURE__ */ jsx(AuthoredButtonContent, {
7423
- props,
7424
- decision
7425
- });
7426
- }
7427
- };
7428
- function AuthoredButtonContent({ props, decision }) {
7429
- if (props.actionStyle === "link" && decision.href && !props.disabled) return /* @__PURE__ */ jsx("a", {
7430
- href: decision.href,
7431
- target: props.target,
7432
- rel: props.rel,
7433
- onClick: props.onClick,
7434
- className: `rb-item-text-link btn-${props.size ?? "md"}`,
7435
- "aria-label": props["aria-label"],
7436
- "data-testid": props["data-testid"],
7437
- children: decision.content
7438
- });
7439
- return /* @__PURE__ */ jsx(ThemedAuthoredButton, {
7440
- label: decision.content,
7441
- href: decision.href || void 0,
7442
- target: props.target,
7443
- rel: props.rel,
7444
- variant: decision.variant,
7445
- size: props.size ?? "md",
7446
- disabled: props.disabled,
7447
- type: props.type ?? "button",
7448
- trailingIcon: props.trailingIcon,
7449
- onClick: props.onClick,
7450
- extraClassName: props.className,
7451
- ariaLabel: props["aria-label"],
7452
- dataTestId: props["data-testid"]
7453
- });
7454
- }
7455
- const LinkNode = ({ href, children, className, target, rel, linkRequired = false, ...rest }) => {
7456
- if (!children) return null;
7457
- const resolvedHref = typeof href === "string" ? href.trim() : "";
7458
- if (resolvedHref.length === 0) {
7459
- if (linkRequired && true) console.warn("[LinkNode] Missing href for link-required link");
7460
- if (linkRequired) return null;
7461
- return /* @__PURE__ */ jsx("span", {
7462
- className,
7463
- ...rest,
7464
- children
7465
- });
7466
- }
7467
- return /* @__PURE__ */ jsx("a", {
7468
- href: resolvedHref,
7469
- className,
7470
- target,
7471
- rel,
7472
- ...rest,
7473
- children
7474
- });
7475
- };
7476
- //#endregion
7477
7557
  //#region ../blocks/src/system/runtime/nodes/icon.tsx
7478
7558
  const IconNode = ({ value, title, className, blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, ...rest }) => {
7479
7559
  const parsedValue = parseBlockIconValue(value);
@@ -8755,7 +8835,7 @@ function teamMemberCardContent(member, index, biographySource) {
8755
8835
  }
8756
8836
  function TeamMembersNode(props) {
8757
8837
  const parsed = z.array(teamMemberCardSchema).safeParse(props.source === "site_staff" ? props.siteMembers : props.members);
8758
- if (!parsed.success || parsed.data.length === 0) return null;
8838
+ if (!parsed.success) return null;
8759
8839
  return /* @__PURE__ */ jsx(CardListItems, {
8760
8840
  Carousel: props.Carousel,
8761
8841
  items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource)),
@@ -9030,6 +9110,7 @@ function renderEventListItem(event, source) {
9030
9110
  lookSlots: display.lookSlots,
9031
9111
  itemSurfaces: display.itemSurfaces,
9032
9112
  showCapacity: display.showCapacity,
9113
+ showVenue: display.showVenue,
9033
9114
  buttonVariant: display.buttonVariant,
9034
9115
  buttonText: display.buttonText
9035
9116
  }, event.occurrenceId || event.id);
@@ -9507,7 +9588,7 @@ function FeaturedOfferingSummary({ item }) {
9507
9588
  children: [
9508
9589
  details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
9509
9590
  details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
9510
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }),
9591
+ details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
9511
9592
  details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
9512
9593
  ]
9513
9594
  })]
@@ -9521,7 +9602,7 @@ function featuredSummaryDetails(item) {
9521
9602
  deliveryMode: item.event.deliveryMode
9522
9603
  });
9523
9604
  case "run": {
9524
- const schedule = derivePreviewRunSchedule(item.run.run.sessions);
9605
+ const schedule = derivePreviewRunSchedule(item.run);
9525
9606
  return schedule.kind === "scheduled" ? formatFeaturedSummary(schedule.summary, {
9526
9607
  venue: item.run.representative.venue?.name ?? null,
9527
9608
  siteTimeZone: item.run.representative.siteTimeZone,
@@ -9535,33 +9616,33 @@ function formatFeaturedSummary(summary, place) {
9535
9616
  switch (summary.kind) {
9536
9617
  case "single-occurrence": return detailsFromOccurrences({
9537
9618
  first: summary.occurrence,
9538
- last: null,
9619
+ end: null,
9539
9620
  place
9540
9621
  });
9541
9622
  case "multi-day-span": return detailsFromOccurrences({
9542
9623
  first: summary.occurrence,
9543
- last: summary.occurrence,
9544
- place,
9545
- spanUsesEndDate: true
9546
- });
9547
- case "fixed-recurring-run": return detailsFromOccurrences({
9548
- first: summary.first,
9549
- last: summary.last,
9550
- place,
9551
- recurrence: summary.recurrenceLabel
9624
+ end: {
9625
+ dateTime: summary.occurrence.endsAt,
9626
+ timeZone: summary.occurrence.timeZone
9627
+ },
9628
+ place
9552
9629
  });
9553
- case "irregular-multi-session-run": return detailsFromOccurrences({
9630
+ case "scheduled-run": return detailsFromOccurrences({
9554
9631
  first: summary.first,
9555
- last: summary.last,
9632
+ end: {
9633
+ dateTime: summary.last.startsAt,
9634
+ timeZone: summary.last.timeZone
9635
+ },
9556
9636
  place,
9557
- sessionCount: `${summary.sessionCount} dates`
9637
+ recurrence: summary.authoredSummary ?? void 0,
9638
+ sessionCount: `${summary.sessionCount} date${summary.sessionCount === 1 ? "" : "s"}`
9558
9639
  });
9559
9640
  default: return assertNever$1(summary, "Unhandled offerings preview schedule summary");
9560
9641
  }
9561
9642
  }
9562
9643
  function detailsFromOccurrences(input) {
9563
- const { first, last, place } = input;
9564
- const endDateTime = input.spanUsesEndDate ? first.endsAt : last?.startsAt ?? first.startsAt;
9644
+ const { first, end, place } = input;
9645
+ const endDateTime = end?.dateTime ?? first.startsAt;
9565
9646
  const options = eventDateOptions({
9566
9647
  timeZone: first.timeZone,
9567
9648
  siteTimeZone: place.siteTimeZone,
@@ -9571,13 +9652,15 @@ function detailsFromOccurrences(input) {
9571
9652
  timeZone,
9572
9653
  locale: options.locale
9573
9654
  });
9655
+ const startDate = summaryDate(first.startsAt, first.timeZone);
9656
+ const endDate = end ? summaryDate(end.dateTime, end.timeZone) : null;
9574
9657
  return {
9575
- startDate: summaryDate(first.startsAt, first.timeZone),
9658
+ startDate,
9576
9659
  startDateTime: first.startsAt,
9577
- endDate: last ? summaryDate(endDateTime, last.timeZone) : null,
9660
+ endDate: endDate === startDate ? null : endDate,
9578
9661
  endDateTime,
9579
- timeRange: formatEventTimeRange(first, options),
9580
- recurrence: input.recurrence ?? null,
9662
+ timeRange: input.recurrence?.clock ? null : formatEventTimeRange(first, options),
9663
+ recurrence: input.recurrence?.text ?? null,
9581
9664
  sessionCount: input.sessionCount ?? null,
9582
9665
  venue: place.venue
9583
9666
  };
@@ -9627,8 +9710,13 @@ function renderSingleOfferingCard(item, options) {
9627
9710
  }, item.run.eventSeriesId);
9628
9711
  }
9629
9712
  }
9713
+ /** The authored clock replaces live time only when it was successfully formatted. */
9714
+ function formatRunScheduleTime(schedule, options) {
9715
+ const authored = schedule.summary.kind === "scheduled-run" ? schedule.summary.authoredSummary : null;
9716
+ return [authored?.text, authored?.clock ? null : formatEventTimeRange(schedule.firstSession, options)].filter(Boolean).join(" · ");
9717
+ }
9630
9718
  function WholeSeriesRunCompactRow({ group, path, now }) {
9631
- const schedule = derivePreviewRunSchedule(group.run.sessions);
9719
+ const schedule = derivePreviewRunSchedule(group);
9632
9720
  if (schedule.kind === "no-live-sessions") return /* @__PURE__ */ jsx(RunWithoutLiveDates, {
9633
9721
  group,
9634
9722
  path
@@ -9640,7 +9728,7 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
9640
9728
  deliveryMode: group.representative.deliveryMode
9641
9729
  });
9642
9730
  const dateRail = formatEventCompactDateRail(firstSession.startsAt, options);
9643
- const timeRange = formatEventTimeRange(firstSession, options);
9731
+ const timeRange = formatRunScheduleTime(schedule, options);
9644
9732
  const price = formatEventPriceDisplay(group.representative.pricing);
9645
9733
  const statusLabel = resolveWholeSeriesBookingPhase(group.run, now).kind === "open" ? null : "Registration closed";
9646
9734
  return /* @__PURE__ */ jsxs("article", {
@@ -9714,7 +9802,7 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
9714
9802
  });
9715
9803
  }
9716
9804
  function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText }) {
9717
- const schedule = derivePreviewRunSchedule(group.run.sessions);
9805
+ const schedule = derivePreviewRunSchedule(group);
9718
9806
  if (schedule.kind === "no-live-sessions") return /* @__PURE__ */ jsx(RunWithoutLiveDates, {
9719
9807
  group,
9720
9808
  path
@@ -9726,7 +9814,7 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
9726
9814
  deliveryMode: group.representative.deliveryMode
9727
9815
  });
9728
9816
  const formattedDate = formatEventCompactDateRail(firstSession.startsAt, options).label;
9729
- const timeRange = formatEventTimeRange(firstSession, options);
9817
+ const timeRange = formatRunScheduleTime(schedule, options);
9730
9818
  const price = formatEventPriceDisplay(group.representative.pricing);
9731
9819
  const statusLabel = resolveWholeSeriesBookingPhase(group.run, now).kind === "open" ? null : "Registration closed";
9732
9820
  const description = group.representative.description;
@@ -10016,100 +10104,6 @@ function WeeklySlotAvailabilitySSR(props) {
10016
10104
  return /* @__PURE__ */ jsx(WeeklySlotAvailabilityView, { ...props });
10017
10105
  }
10018
10106
  //#endregion
10019
- //#region ../blocks/src/system/runtime/nodes/events/RecurringSchedule.tsx
10020
- function destinationHref(destination) {
10021
- return destination.kind === "external" ? destination.url : destination.path;
10022
- }
10023
- function bookingLinkProps(booking) {
10024
- return booking.destination.kind === "external" ? {
10025
- href: destinationHref(booking.destination),
10026
- target: "_blank",
10027
- rel: "noopener noreferrer"
10028
- } : { href: destinationHref(booking.destination) };
10029
- }
10030
- function bookingActionContent(input) {
10031
- switch (input.booking.kind) {
10032
- case "available": return /* @__PURE__ */ jsx(ButtonNode, {
10033
- ...bookingLinkProps(input.booking),
10034
- "aria-label": input.accessibleName,
10035
- className: "recurring-schedule-book",
10036
- linkRequired: true,
10037
- variantId: input.buttonVariant,
10038
- size: "sm",
10039
- children: input.buttonText
10040
- });
10041
- case "unavailable": return null;
10042
- default: return assertNever$1(input.booking);
10043
- }
10044
- }
10045
- function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
10046
- const projection = schedule ?? {
10047
- items: [],
10048
- diagnostics: []
10049
- };
10050
- if (projection.items.length === 0) return /* @__PURE__ */ jsx("p", {
10051
- className: "recurring-schedule-empty",
10052
- "data-diagnostic-count": projection.diagnostics.length,
10053
- children: emptyMessage
10054
- });
10055
- const renderRow = (item) => {
10056
- const rowContent = /* @__PURE__ */ jsxs(Fragment, { children: [
10057
- /* @__PURE__ */ jsx("p", {
10058
- className: "recurring-schedule-day",
10059
- children: item.cadence.weekday
10060
- }),
10061
- /* @__PURE__ */ jsxs("p", {
10062
- className: "recurring-schedule-time",
10063
- children: [
10064
- /* @__PURE__ */ jsx("time", {
10065
- dateTime: item.cadence.startTime,
10066
- children: item.cadence.startTime
10067
- }),
10068
- /* @__PURE__ */ jsx("span", {
10069
- "aria-hidden": "true",
10070
- children: "–"
10071
- }),
10072
- /* @__PURE__ */ jsx("time", {
10073
- dateTime: item.cadence.endTime,
10074
- children: item.cadence.endTime
10075
- })
10076
- ]
10077
- }),
10078
- /* @__PURE__ */ jsxs("div", {
10079
- className: "recurring-schedule-details",
10080
- children: [/* @__PURE__ */ jsx("p", {
10081
- className: "recurring-schedule-title",
10082
- children: item.title
10083
- }), showVenue && item.venueName ? /* @__PURE__ */ jsx("p", {
10084
- className: "recurring-schedule-venue",
10085
- children: item.venueName
10086
- }) : null]
10087
- }),
10088
- /* @__PURE__ */ jsx("div", {
10089
- className: "recurring-schedule-action",
10090
- children: bookingActionContent({
10091
- booking: item.booking,
10092
- buttonVariant: buttonVariant ?? "primary",
10093
- buttonText: buttonText ?? "Book",
10094
- accessibleName: `${buttonText ?? "Book"} ${item.title}, ${item.cadence.weekday} at ${item.cadence.startTime}`
10095
- })
10096
- })
10097
- ] });
10098
- return /* @__PURE__ */ jsx("article", {
10099
- className: "recurring-schedule-row",
10100
- role: "listitem",
10101
- "aria-label": `${item.title}, ${item.cadence.weekday} at ${item.cadence.startTime}`,
10102
- children: rowContent
10103
- });
10104
- };
10105
- return /* @__PURE__ */ jsx("div", {
10106
- className: "recurring-schedule",
10107
- "data-diagnostic-count": projection.diagnostics.length,
10108
- role: "list",
10109
- children: projection.items.map((item) => /* @__PURE__ */ jsx(React.Fragment, { children: renderRow(item) }, item.seriesId))
10110
- });
10111
- }
10112
- //#endregion
10113
10107
  //#region ../blocks/src/system/runtime/nodes/shop-commerce.server.tsx
10114
10108
  function renderServerPendingAction(label, soldOut) {
10115
10109
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
@@ -10672,32 +10666,22 @@ function hourToTickPercent(hour, hours) {
10672
10666
  const range = Math.max(1, endHour - startHour);
10673
10667
  return (hour - startHour) / range * 100;
10674
10668
  }
10675
- const EventCalendarSSR = (props) => {
10676
- const islandProps = buildEventCalendarInteractiveIslandProps(props);
10677
- const display = islandProps.render.display;
10678
- const hydration = islandProps.render.hydration;
10679
- let content;
10669
+ function renderEventCalendarMode(display, hydration) {
10680
10670
  switch (display.displayMode) {
10681
- case "combined":
10682
- content = renderCombinedSsr(display, hydration.prefetchedEvents);
10683
- break;
10684
- case "list":
10685
- content = renderListSsr(display, hydration);
10686
- break;
10687
- case "timetable":
10688
- content = renderTimetableSsr(display, hydration);
10689
- break;
10690
- case "week-board":
10691
- content = renderWeekBoardSsr(display, hydration);
10692
- break;
10693
- case "calendar":
10694
- content = renderCalendarSsr(display, hydration);
10695
- break;
10696
- default: content = assertNeverDisplayMode(display.displayMode);
10671
+ case "week": return /* @__PURE__ */ jsx(CalendarRecurringWeek, { display });
10672
+ case "combined": return renderCombinedSsr(display, hydration.prefetchedEvents);
10673
+ case "list": return renderListSsr(display, hydration);
10674
+ case "timetable": return renderTimetableSsr(display, hydration);
10675
+ case "week-board": return renderWeekBoardSsr(display, hydration);
10676
+ case "calendar": return renderCalendarSsr(display, hydration);
10677
+ default: return assertNeverDisplayMode(display.displayMode);
10697
10678
  }
10679
+ }
10680
+ const EventCalendarSSR = (props) => {
10681
+ const islandProps = buildEventCalendarInteractiveIslandProps(props);
10698
10682
  return /* @__PURE__ */ jsxs("div", {
10699
10683
  ...getIslandRootProps("event-calendar", props.blockId),
10700
- children: [/* @__PURE__ */ jsx(IslandPropsScript, { value: islandProps }), content]
10684
+ children: [/* @__PURE__ */ jsx(IslandPropsScript, { value: islandProps }), renderEventCalendarMode(islandProps.render.display, islandProps.render.hydration)]
10701
10685
  });
10702
10686
  };
10703
10687
  //#endregion
@@ -11153,4 +11137,4 @@ const serverComponentRegistry = {
11153
11137
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
11154
11138
  };
11155
11139
  //#endregion
11156
- export { sectionContainer as $, bindingSchema as $t, cardListPresentationBindings as A, coerceInlineTextWithFallback as At, formDataSchema as B, normalizeSelectSource as Bt, eventListingBlockDefinition as C, lookLeadSlotTransform as Ct, cardListSectionAction as D, parseBlockIconValue as Dt, FEATURE_CARD_ICON_TREATMENTS as E, lookSlot as Et, splitPositioningClasses as F, PUBLIC_FILE_FIELD_KINDS as Ft, buildFragmentDataLoaders as G, parseRepeaterGridInteger as Gt, formEmbedFragment as H, parseFieldDefinitions as Ht, desktopOnlyDisplay as I, blockCategoryEnum as It, sectionHeaderFields as J, resolveRepeaterGridColumnFieldId as Jt, composeFragments as K, projectRepeaterGridLayout as Kt, mobileOnlyDisplay as L, createSdkSelectField as Lt, normalizeCardListContent as M, parseInlineTextFromUnknown as Mt, composeHeaderSectionWrapperClassName as N, plainTextToInlineText as Nt, cardListKnobFields as O, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ot, markEditableSurfaceForwarding as P, DEFAULT_MEDIA_FIELD_KINDS as Pt, styledContainer as Q, NodeSchema as Qt, normalizeMailingListBlockContent as R, createSiteOptionSelectField as Rt, eventCalendarBlockDefinition as S, lookCarouselRegionTransform as St, FEATURE_CARD_GENERATED_ICON_SIZE_PX as T, lookSkinSlotTransform as Tt, withApiBindings as U, previewCustomizeManifestCurationSchema as Ut, createBlockManifest as V, parseFieldDefinition as Vt, formCopyFragment as W, buildRepeaterGridLayout as Wt, resolveBackgroundColorValue as X, resolveRepeaterGridRowFieldId as Xt, sectionHeaderLayoutNodes as Y, resolveRepeaterGridColumnsForBreakpoint as Yt, styledSection as Z, resolveRepeaterGridSpanFieldId as Zt, checkoutBlockDefinition as _, section as _t, buildLoadedOfferingsPreviewListing as a, eventDisplayFields as an, carousel as at, productListBlockDefinition as b, videoEmbed as bt, accordionItemPartSlots as c, containerStylesField as cn, form as ct, resolveAccordionIconStyle as d, getAnchorClasses as dn, inline as dt, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as en, backgroundFrame as et, Text as f, createButtonGroup as fn, link as ft, giftingBlockDefinition as g, richText as gt, sanitizeNewsletterSignupPublicContent as h, repeat as ht, WeeklySlotAvailabilityView as i, emptyStateField as in, button as it, cardListSectionActionFields as j, inlineTextToPlainText as jt, cardListPhotoNumberFields as k, augmentManifest as kt, accordionLookAttributes as l, sectionStylesField as ln, headerSection as lt, newsletterSignupBlockDefinition as m, props as mt, runtimeBackedBlockModes as n, cardStylingFields as nn, bind as nt, buildAppointmentServicesView as o, layoutField as on, el as ot, SectionNode as p, createButtonVariantField as pn, media as pt, defineFragment as q, projectRepeaterGridLayoutForRendering as qt, runtimeBackedBlockServerEntries as r, columnsField as rn, bookingForm as rt, HeaderSectionFrame as s, cardStylesField as sn, fileDownload as st, serverComponentRegistry as t, linkSchema as tn, accordionList as tt, accordionIconColorStyle as u, BACKGROUND_POSITION_PRESET_VALUES as un, icon as ut, cartBlockDefinition as v, stack as vt, eventRegistrationBlockDefinition as w, lookQuoteLimitTransform as wt, shopBlockDefinition as x, when as xt, productDetailBlockDefinition as y, text as yt, formBlockDefinition as z, fieldSchema as zt };
11140
+ export { backgroundFrame as $, buildRepeaterGridLayout as $t, cardListSectionActionFields as A, galleryReadiness as At, createBlockManifest as B, blockSectionDeclarationShape as Bt, eventRegistrationBlockDefinition as C, lookQuoteLimitTransform as Ct, cardListKnobFields as D, PUBLIC_DOWNLOAD_MEDIA_TYPES as Dt, cardListSectionAction as E, parseBlockIconValue as Et, desktopOnlyDisplay as F, pageTemplateFromEntry as Ft, composeFragments as G, normalizeSelectSource as Gt, withApiBindings as H, createSdkSelectField as Ht, mobileOnlyDisplay as I, unavailableReadinessFact as It, sectionHeaderLayoutNodes as J, validateManifestLookField as Jt, defineFragment as K, parseFieldDefinition as Kt, normalizeMailingListBlockContent as L, DEFAULT_MEDIA_FIELD_KINDS as Lt, composeHeaderSectionWrapperClassName as M, testimonialsReadiness as Mt, markEditableSurfaceForwarding as N, admitReadinessFacts as Nt, cardListPhotoNumberFields as O, augmentManifest as Ot, splitPositioningClasses as P, loadedReadinessFact as Pt, sectionContainer as Q, projectRepeaterGridLayoutForRendering as Qt, formBlockDefinition as R, PUBLIC_FILE_FIELD_KINDS as Rt, eventListingBlockDefinition as S, lookLeadSlotTransform as St, FEATURE_CARD_ICON_TREATMENTS as T, lookSlot as Tt, formCopyFragment as U, createSiteOptionSelectField as Ut, formEmbedFragment as V, builtInBlockKindsSchema as Vt, buildFragmentDataLoaders as W, fieldSchema as Wt, styledSection as X, validateSdkBlockDeclaration as Xt, resolveBackgroundColorValue as Y, sdkBlockPresentationShape as Yt, styledContainer as Z, projectRepeaterGridLayout as Zt, cartBlockDefinition as _, BACKGROUND_POSITION_PRESET_VALUES as _n, stack as _t, buildLoadedOfferingsPreviewListing as a, NodeSchema as an, el as at, shopBlockDefinition as b, createButtonVariantField as bn, when as bt, accordionItemPartSlots as c, linkSchema as cn, headerSection as ct, resolveAccordionIconStyle as d, emptyStateField as dn, link as dt, parseRepeaterGridInteger as en, accordionList as et, SectionNode as f, eventDisplayFields as fn, media as ft, checkoutBlockDefinition as g, sectionStylesField as gn, section as gt, giftingBlockDefinition as h, containerStylesField as hn, richText as ht, WeeklySlotAvailabilityView as i, resolveRepeaterGridSpanFieldId as in, carousel as it, normalizeCardListContent as j, teamReadiness as jt, cardListPresentationBindings as k, chosenString as kt, accordionLookAttributes as l, cardStylingFields as ln, icon as lt, sanitizeNewsletterSignupPublicContent as m, cardStylesField as mn, repeat as mt, runtimeBackedBlockModes as n, resolveRepeaterGridColumnsForBreakpoint as nn, bookingForm as nt, buildAppointmentServicesView as o, bindingSchema as on, fileDownload as ot, newsletterSignupBlockDefinition as p, layoutField as pn, props as pt, sectionHeaderFields as q, parseFieldDefinitions as qt, runtimeBackedBlockServerEntries as r, resolveRepeaterGridRowFieldId as rn, button as rt, HeaderSectionFrame as s, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as sn, form as st, serverComponentRegistry as t, resolveRepeaterGridColumnFieldId as tn, bind as tt, accordionIconColorStyle as u, columnsField as un, inline as ut, productDetailBlockDefinition as v, getAnchorClasses as vn, text as vt, FEATURE_CARD_GENERATED_ICON_SIZE_PX as w, lookSkinSlotTransform as wt, eventCalendarBlockDefinition as x, lookCarouselRegionTransform as xt, productListBlockDefinition as y, createButtonGroup as yn, videoEmbed as yt, formDataSchema as z, blockCategoryEnum as zt };