@riverbankcms/sdk 0.182.0 → 0.184.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +83 -4
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  10. package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
  11. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
  12. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
  13. package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  14. package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
  15. package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +126 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  87. package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  95. package/dist/client/client.mjs +460 -119
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  106. package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
  112. package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
  113. package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +51 -35
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
  123. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  124. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  125. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  126. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  127. package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
  128. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
  129. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
  130. package/dist/client/rendering/client.mjs +32 -28
  131. package/dist/client/rendering/islands.mjs +1 -1
  132. package/dist/client/rendering.mjs +5 -5
  133. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
  134. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  135. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  136. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  137. package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
  138. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
  139. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  140. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
  141. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
  142. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  143. package/dist/client/spam-protection.mjs +1 -1
  144. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  145. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
  146. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  147. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
  148. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  149. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
  150. package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
  151. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
  152. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  153. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  154. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  155. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
  156. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
  157. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
  158. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
  160. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
  161. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
  162. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
  163. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
  164. package/dist/preview-next/client/runtime.mjs +3 -3
  165. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  166. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
  167. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
  168. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
  169. package/dist/preview-next/container-responsive.css +469 -2
  170. package/dist/preview-next/editor-chrome.css +23 -2
  171. package/dist/preview-next/keepAlive.mjs +1 -1
  172. package/dist/preview-next/middleware.mjs +1 -1
  173. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
  174. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  175. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
  176. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
  177. package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
  178. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
  179. package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
  180. package/dist/server/config-validation.mjs +1 -1
  181. package/dist/server/config.mjs +2 -2
  182. package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
  183. package/dist/server/data/resolveBlockData.mjs +1 -1
  184. package/dist/server/index.mjs +4 -4
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  187. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +9 -9
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +18 -5
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
  199. package/dist/server/portal.mjs +3 -3
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -10
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  210. package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
  211. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  212. package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
  215. package/dist/server/theme-bridge.mjs +5 -4
  216. package/dist/server/theme.mjs +2 -2
  217. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
  218. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
  219. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  220. package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
  221. package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
  222. package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
  223. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  224. package/dist/styles/index.css +2987 -168
  225. package/package.json +1 -1
  226. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  227. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  228. package/dist/client/types-BEaKfam_.mjs +0 -778
  229. package/dist/server/customCss-C9kgPHvr.mjs +0 -247
  230. package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
  231. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { $t as mapDrawingSchema, Gt as normalizeLocationAddressText, mn as toScheduledBookingDateTime, nn as formatDate, pn as formatBookingCompactEnglishTime, xn as parseLocalScheduleTime } from "./src-CmXh3JWs.mjs";
3
- import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Io as RichText, Oo as getEventAvailabilityStatus, Ts as parseInlineTextFromUnknown, Wo as formatEventClockLabel, Xo as formatEventTimeRange, es as resolveEventTimeZone, js as resolveDateRuntimeContext, mo as eventDestinationBookingLink, vo as resolveEventPageLink, wo as formatEventRemainingPlaces, ws as isInlineTextEmpty } from "./wizardSteps-B952ify5.mjs";
4
- import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
2
+ import { $t as mapDrawingSchema, Gt as normalizeLocationAddressText, mn as toScheduledBookingDateTime, nn as formatDate, pn as formatBookingCompactEnglishTime, xn as parseLocalScheduleTime } from "./src-Do_s2lqH.mjs";
3
+ import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Es as parseInlineTextFromUnknown, Io as RichText, Ms as resolveDateRuntimeContext, Oo as getEventAvailabilityStatus, Ts as isInlineTextEmpty, Wo as formatEventClockLabel, Xo as formatEventTimeRange, es as resolveEventTimeZone, mo as eventDestinationBookingLink, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
4
+ import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
5
5
  import { h as assertNever } from "./bookingCalendar--aWnqFDn.mjs";
6
- import { U as textColorStyle } from "./accessibleSurfaces-BogaGutk.mjs";
7
- import { S as parseThemeButtonVariantId, n as ThemedButton, r as ThemedButtonLink, t as ThemedAuthoredButton, x as clsx } from "./ThemedButton-PFOhXktM.mjs";
6
+ import { U as textColorStyle } from "./accessibleSurfaces-CqroimVQ.mjs";
7
+ import { O as clsx, k as parseThemeButtonVariantId, n as ThemedButton, r as ThemedButtonLink, t as ThemedAuthoredButton } from "./ThemedButton-C4rCsPCt.mjs";
8
8
  import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-uwCpbHXG.mjs";
9
9
  import { t as getAtPath } from "./src-Al4ooTl_.mjs";
10
- import { t as coerceRichTextDoc } from "./richText-coerce-Bnng7JFA.mjs";
11
- import { m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
10
+ import { t as coerceRichTextDoc } from "./richText-coerce-Jt9hDHdh.mjs";
11
+ import { m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
12
12
  import "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  //#region ../core/src/locationLinks.ts
@@ -122,7 +122,8 @@ function renderMark(mark, key, child) {
122
122
  /**
123
123
  * `compact` (event details) is one plain Google Maps text link under the venue;
124
124
  * `block` (the map block) leads with a secondary directions button and keeps
125
- * the same Google Maps text link beside it.
125
+ * the same Google Maps text link beside it. Look layouts mark the row as the
126
+ * `actions` slot, so a skin dresses it like every other button row.
126
127
  */
127
128
  function LocationMapActions(props) {
128
129
  const links = locationMapLinks(props);
@@ -130,6 +131,7 @@ function LocationMapActions(props) {
130
131
  const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
131
132
  if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
132
133
  className: "rb-location-map-actions",
134
+ "data-slot": props.lookLayout ? "actions" : void 0,
133
135
  children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
134
136
  href: links.directions,
135
137
  target: "_blank",
@@ -436,6 +438,7 @@ function LocationMapPlace(props) {
436
438
  }) : null,
437
439
  props.showDirections ? /* @__PURE__ */ jsx(LocationMapActions, {
438
440
  layout: "block",
441
+ lookLayout: props.lookLayout,
439
442
  location: props.location,
440
443
  addressText: props.addressText,
441
444
  directionsLabel: props.directionsLabel,
@@ -1,4 +1,6 @@
1
1
  "use client";
2
+ import { mr as isEmailAddress } from "./wizardSteps-B3gsXNnb.mjs";
3
+ import { useEffect, useState } from "react";
2
4
  //#region ../blocks/src/system/runtime/shared/utils/urlParams.ts
3
5
  /**
4
6
  * URL param helpers for client-side "return from redirect" flows.
@@ -45,4 +47,45 @@ function consumeSearchParams(paramNames) {
45
47
  return values;
46
48
  }
47
49
  //#endregion
48
- export { consumeSearchParams as n, consumeSearchParam as t };
50
+ //#region ../blocks/src/system/runtime/hooks/useAutomaticDiscountPreview.ts
51
+ /** A shop quote belongs to the whole basket and buyer, rather than any item's availability hint. */
52
+ function useAutomaticDiscountPreview(input) {
53
+ const [revision, setRevision] = useState(0);
54
+ const key = JSON.stringify([
55
+ input.email.trim().toLowerCase(),
56
+ input.lines,
57
+ revision
58
+ ]);
59
+ const [loaded, setLoaded] = useState(null);
60
+ useEffect(() => {
61
+ const lifetime = { current: true };
62
+ if (input.lines.length > 0 && isEmailAddress(input.email.trim())) requestAutomaticQuote(input).then((quote) => {
63
+ if (lifetime.current) setLoaded({
64
+ key,
65
+ quote
66
+ });
67
+ });
68
+ return () => {
69
+ lifetime.current = false;
70
+ };
71
+ }, [input.api, key]);
72
+ const quote = loaded?.key === key ? loaded.quote : null;
73
+ return {
74
+ discount: quote?.type === "applied" ? quote : null,
75
+ quotedAutomaticDiscountCode: quote?.type === "applied" ? quote.code : void 0,
76
+ refresh: () => setRevision((value) => value + 1)
77
+ };
78
+ }
79
+ async function requestAutomaticQuote(input) {
80
+ try {
81
+ const result = await input.api.applyDiscountCode({
82
+ customerEmail: input.email.trim(),
83
+ lines: input.lines
84
+ });
85
+ return result.type === "applied" || result.type === "priced" ? result : null;
86
+ } catch {
87
+ return null;
88
+ }
89
+ }
90
+ //#endregion
91
+ export { consumeSearchParam as n, consumeSearchParams as r, useAutomaticDiscountPreview as t };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { Fn as unsafeAsAppointmentResourceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, _n as formatLocalScheduleDate, bn as parseBookingLocalDate, cn as formatTime$1, hn as addLocalScheduleDays, nn as formatDate$1, t as assertNever, yn as getLocalScheduleDate } from "./src-CmXh3JWs.mjs";
3
- import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
2
+ import { Fn as unsafeAsAppointmentResourceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, _n as formatLocalScheduleDate, bn as parseBookingLocalDate, cn as formatTime$1, hn as addLocalScheduleDays, nn as formatDate$1, t as assertNever, yn as getLocalScheduleDate } from "./src-Do_s2lqH.mjs";
3
+ import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
4
4
  import { useCallback, useEffect, useReducer, useRef } from "react";
5
5
  //#region ../blocks/src/utils/date-formatting.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { _ as getAutoAppliedDiscountPreview, g as discountAvailabilityHasDiscounts, h as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-8kwNF9HN.mjs";
2
+ import { _ as getAutoAppliedDiscountPreview, g as discountAvailabilityHasDiscounts, h as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
3
3
  import { useEffect, useReducer, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
@@ -93,10 +93,12 @@ function discountCodeUiReducer(state, event) {
93
93
  //#endregion
94
94
  //#region ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.ts
95
95
  function useStandaloneDiscountAvailability(api, context, scopeKey, subtotalCents) {
96
+ const [revision, setRevision] = useState(0);
96
97
  const key = JSON.stringify([
97
98
  scopeKey,
98
99
  context,
99
- subtotalCents
100
+ subtotalCents,
101
+ revision
100
102
  ]);
101
103
  const [loaded, setLoaded] = useState(null);
102
104
  useEffect(() => {
@@ -120,6 +122,7 @@ function useStandaloneDiscountAvailability(api, context, scopeKey, subtotalCents
120
122
  };
121
123
  }, [api, key]);
122
124
  return {
125
+ refresh: () => setRevision((value) => value + 1),
123
126
  response: context && loaded?.key === key ? loaded.response : null,
124
127
  loading: context !== null && loaded?.key !== key
125
128
  };
@@ -177,6 +180,7 @@ function useDiscountCodeUi(options) {
177
180
  ]);
178
181
  return {
179
182
  ...state,
183
+ refresh: standalone.refresh,
180
184
  setDiscountUiOpen: (isOpen) => dispatch({
181
185
  type: "discount-ui-open-changed",
182
186
  isOpen
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { At as normalizeCsvIds, Bt as eventPageOperationQuery, Gt as toEventPaginationLoadError, Ht as getEventIdentity, Kt as toError, Mt as normalizeOptionalId, Ut as getEventPaginationView, Vt as eventPaginationLoadReducer, Wt as planEventPageOperation, jt as normalizeCsvString, kt as getEventRuntimeFiltersKey, zt as createInitialEventPaginationLoadState } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { t as assertNever } from "./src-CmXh3JWs.mjs";
4
- import { no as getBlockApiReadStage } from "./wizardSteps-B952ify5.mjs";
5
- import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
6
- import { i as listLookSlot, n as listItemPresentation } from "./noop-jesvJXEE.mjs";
7
- import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
8
- import { r as EventItem } from "./EventItem-Bb0ppG2N.mjs";
9
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DsqvuulZ.mjs";
2
+ import { At as getEventRuntimeFiltersKey, Bt as createInitialEventPaginationLoadState, Gt as planEventPageOperation, Ht as eventPaginationLoadReducer, Kt as toEventPaginationLoadError, Mt as normalizeCsvString, Nt as normalizeOptionalId, Ut as getEventIdentity, Vt as eventPageOperationQuery, Wt as getEventPaginationView, jt as normalizeCsvIds, qt as toError } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { t as assertNever } from "./src-Do_s2lqH.mjs";
4
+ import { no as getBlockApiReadStage } from "./wizardSteps-B3gsXNnb.mjs";
5
+ import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
6
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
7
+ import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
8
+ import { r as EventItem } from "./EventItem-KGKkK19N.mjs";
9
+ import { a as filterOffersChoice, c as EventCompactRow, l as EventCard, o as hasUpcomingEvents, r as categoryMenuShows, s as EmptyState, t as EventListingFrameView } from "./EventListing.view-Dy36vWHi.mjs";
10
10
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
@@ -137,7 +137,7 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
137
137
  showVenueFilter
138
138
  ]);
139
139
  const categoriesForSelect = useMemo(() => {
140
- const available = filters.categories.filter((c) => c.upcomingCount > 0);
140
+ const available = filters.categories.filter(hasUpcomingEvents);
141
141
  if (allowedCategoryIds.length === 0) return available;
142
142
  return available.filter((c) => allowedCategorySet.has(c.id));
143
143
  }, [
@@ -146,12 +146,12 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
146
146
  allowedCategorySet
147
147
  ]);
148
148
  const venuesForSelect = useMemo(() => {
149
- const available = filters.venues.filter((v) => v.upcomingCount > 0);
149
+ const available = filters.venues.filter(hasUpcomingEvents);
150
150
  if (!fixedVenueId) return available;
151
151
  return available.filter((v) => v.id === fixedVenueId);
152
152
  }, [filters.venues, fixedVenueId]);
153
153
  const staffMembersForSelect = useMemo(() => {
154
- const available = filters.staffMembers.filter((staffMember) => staffMember.upcomingCount > 0);
154
+ const available = filters.staffMembers.filter(hasUpcomingEvents);
155
155
  if (!fixedStaffMemberId) return available;
156
156
  return available.filter((staffMember) => staffMember.id === fixedStaffMemberId);
157
157
  }, [filters.staffMembers, fixedStaffMemberId]);
@@ -187,20 +187,18 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
187
187
  staffMembersForSelect
188
188
  ]);
189
189
  const shouldShowCategoryFilter = (() => {
190
- if (showCategoryFilter === "never") return false;
191
190
  if (allowedCategoryIds.length > 0 && allowedCategoryIds.length <= 1) return false;
192
- if (showCategoryFilter === "always") return categoriesForSelect.length > 0;
193
- return categoriesForSelect.length > 1;
191
+ return categoryMenuShows(showCategoryFilter, categoriesForSelect.length);
194
192
  })();
195
193
  const shouldShowVenueFilter = (() => {
196
194
  if (!showVenueFilter) return false;
197
195
  if (fixedVenueId) return false;
198
- return venuesForSelect.length > 0;
196
+ return filterOffersChoice(venuesForSelect.length);
199
197
  })();
200
198
  const shouldShowStaffFilter = (() => {
201
199
  if (!showStaffFilter) return false;
202
200
  if (fixedStaffMemberId) return false;
203
- return staffMembersForSelect.length > 1;
201
+ return filterOffersChoice(staffMembersForSelect.length);
204
202
  })();
205
203
  const setSelectedCategory = useCallback((id) => {
206
204
  setSelectedCategoryId(id);
@@ -1,10 +1,15 @@
1
1
  "use client";
2
- import { ei as membershipCardListContent, ni as passCardListContent, ti as membershipClassesLabel } from "./wizardSteps-B952ify5.mjs";
3
- import { i as listLookSlot } from "./noop-jesvJXEE.mjs";
4
- import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
5
- import { r as EventItem, t as CardListCollection } from "./EventItem-Bb0ppG2N.mjs";
2
+ import { ei as membershipCardListContent, ni as passCardListContent, ti as membershipClassesLabel } from "./wizardSteps-B3gsXNnb.mjs";
3
+ import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
4
+ import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
5
+ import { r as EventItem, t as CardListCollection } from "./EventItem-KGKkK19N.mjs";
6
6
  import React from "react";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ //#region ../blocks/src/system/runtime/editorParts.ts
9
+ const unmarked = {};
10
+ /** Visitors' pages, and any renderer the editor doesn't drive. */
11
+ const noEditorParts = () => unmarked;
12
+ //#endregion
8
13
  //#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
9
14
  function VariantSelectView(props) {
10
15
  const { options, selectedVariantId, disabled = false, onChange } = props;
@@ -253,9 +258,10 @@ function MembershipCardView(props) {
253
258
  });
254
259
  }
255
260
  function PassesMembershipsSectionView(props) {
256
- const { display, beforeContent, passCards, membershipCards } = props;
261
+ const { display, beforeContent, passCards, membershipCards, part = noEditorParts } = props;
257
262
  if (props.presentation?.lookSlots) return /* @__PURE__ */ jsx(ShopCardListSections, {
258
263
  ...props,
264
+ part,
259
265
  presentation: props.presentation
260
266
  });
261
267
  const productsClass = `shop__products shop__products--${display.layout}`;
@@ -275,6 +281,7 @@ function PassesMembershipsSectionView(props) {
275
281
  className: "shop__section shop__section--passes",
276
282
  children: [/* @__PURE__ */ jsx("h3", {
277
283
  className: "shop__section-heading",
284
+ ...part("passesHeading"),
278
285
  children: display.passesHeading
279
286
  }), /* @__PURE__ */ jsx("div", {
280
287
  className: productsClass,
@@ -285,6 +292,7 @@ function PassesMembershipsSectionView(props) {
285
292
  className: "shop__section shop__section--memberships",
286
293
  children: [/* @__PURE__ */ jsx("h3", {
287
294
  className: "shop__section-heading",
295
+ ...part("membershipsHeading"),
288
296
  children: display.membershipsHeading
289
297
  }), /* @__PURE__ */ jsx("div", {
290
298
  className: productsClass,
@@ -352,13 +360,15 @@ function CheckoutShellView(props) {
352
360
  });
353
361
  }
354
362
  function ShopCardListSections(props) {
355
- const { display, presentation } = props;
363
+ const { display, presentation, part } = props;
356
364
  const groups = [{
357
365
  heading: display.passesHeading,
366
+ headingPart: part("passesHeading"),
358
367
  items: display.passes,
359
368
  cards: props.passCards
360
369
  }, {
361
370
  heading: display.membershipsHeading,
371
+ headingPart: part("membershipsHeading"),
362
372
  items: display.memberships,
363
373
  cards: props.membershipCards
364
374
  }];
@@ -373,6 +383,7 @@ function ShopCardListSections(props) {
373
383
  ...listLookSlot(presentation, "group"),
374
384
  children: [/* @__PURE__ */ jsx("h3", {
375
385
  ...listLookSlot(presentation, "group-label"),
386
+ ...group.headingPart,
376
387
  children: group.heading
377
388
  }), /* @__PURE__ */ jsx(ShopCardListCollection, {
378
389
  presentation,
@@ -399,16 +410,20 @@ function ShopCardListCollection(props) {
399
410
  }))
400
411
  });
401
412
  }
402
- function ShopPurchaseAction({ presentation, ...props }) {
403
- if (presentation?.itemActionStyle !== "link") return /* @__PURE__ */ jsx(ThemedButton, { ...props });
413
+ function ShopPurchaseAction({ presentation, editorPart, ...props }) {
414
+ if (presentation?.itemActionStyle !== "link") return /* @__PURE__ */ jsx(ThemedButton, {
415
+ ...props,
416
+ ...editorPart
417
+ });
404
418
  return /* @__PURE__ */ jsx("button", {
405
419
  type: "button",
406
420
  className: "rb-item-text-link",
407
421
  onClick: props.onClick,
408
422
  disabled: props.disabled,
409
423
  "aria-disabled": props["aria-disabled"],
424
+ ...editorPart,
410
425
  children: props.label
411
426
  });
412
427
  }
413
428
  //#endregion
414
- export { PassPurchaseUnavailable as a, ProductDetailView as c, ShopPurchaseAction as d, VariantSelectView as f, PassCardView as i, ProductGalleryFrameView as l, CheckoutShellView as n, PassesMembershipsSectionView as o, MembershipCardView as r, ProductCardView as s, CartShellView as t, ProductListSectionView as u };
429
+ export { PassPurchaseUnavailable as a, ProductDetailView as c, ShopPurchaseAction as d, VariantSelectView as f, PassCardView as i, ProductGalleryFrameView as l, CheckoutShellView as n, PassesMembershipsSectionView as o, noEditorParts as p, MembershipCardView as r, ProductCardView as s, CartShellView as t, ProductListSectionView as u };