@riverbankcms/sdk 0.171.1 → 0.173.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 (220) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-D-6cWDDC.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
  2. package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
  4. package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
  5. package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
  6. package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
  9. package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
  10. package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
  11. package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
  12. package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
  13. package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
  14. package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
  15. package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
  17. package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
  18. package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-CGa6QMgc.d.ts} +2 -2
  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 +6 -6
  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/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +6 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
  53. package/dist/_dts/{types-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
  54. package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
  55. package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
  56. package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
  58. package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
  59. package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
  60. package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
  61. package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
  62. package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
  64. package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
  65. package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
  66. package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
  67. package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
  68. package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
  69. package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
  70. package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
  71. package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
  72. package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
  73. package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
  74. package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
  75. package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
  77. package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
  78. package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
  79. package/dist/client/{accessibleSurfaces-BnyVRqdU.mjs → accessibleSurfaces-D4DhWo9j.mjs} +37 -38
  80. package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
  81. package/dist/client/bookability-SargNwlO.mjs +17 -0
  82. package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
  83. package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
  84. package/dist/client/bookings.mjs +5 -5
  85. package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
  86. package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
  87. package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
  88. package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
  89. package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
  90. package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
  91. package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
  93. package/dist/client/client.mjs +183 -4
  94. package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
  95. package/dist/client/course-CmOuoZHN.mjs +237 -0
  96. package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
  97. package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
  98. package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
  99. package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
  100. package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
  101. package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
  102. package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
  103. package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
  104. package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
  105. package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
  106. package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
  107. package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
  108. package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
  109. package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
  110. package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
  111. package/dist/client/gifting/client.mjs +3 -3
  112. package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
  113. package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
  114. package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
  115. package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
  116. package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
  117. package/dist/client/portal/client.mjs +231 -117
  118. package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
  119. package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
  120. package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
  121. package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
  122. package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
  123. package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
  124. package/dist/client/rendering/client.mjs +27 -27
  125. package/dist/client/rendering/islands.mjs +1 -1
  126. package/dist/client/rendering.mjs +38 -63
  127. package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
  128. package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
  129. package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
  130. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
  131. package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
  132. package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
  133. package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
  134. package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
  135. package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
  136. package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
  137. package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
  138. package/dist/client/spam-protection.mjs +1 -1
  139. package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
  140. package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
  141. package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
  142. package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
  143. package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
  144. package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
  145. package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
  146. package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
  147. package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.mjs} +3 -3
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-DG2rXUmo.mjs} +48 -36
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
  153. package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.mjs} +5 -5
  154. package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
  155. package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
  156. package/dist/preview-next/client/{PreviewShell-9eAon7Z8.mjs → PreviewShell-Bv2HZ7JY.mjs} +313 -64
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
  158. package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
  159. package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
  160. package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
  161. package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-La6MerV_.mjs} +11994 -6013
  162. package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
  163. package/dist/preview-next/client/runtime.mjs +5 -4
  164. package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
  165. package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +20 -8
  167. package/dist/preview-next/container-responsive.css +215 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-CPV30ABr.mjs} +179 -0
  171. package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
  172. package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
  173. package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
  174. package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Dge4sqel.mjs} +109 -20
  175. package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
  176. package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
  177. package/dist/server/config-template-validation.mjs +3 -0
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -3
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
  182. package/dist/server/index.mjs +4 -4
  183. package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
  184. package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
  185. package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
  186. package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
  187. package/dist/server/navigation.mjs +1 -1
  188. package/dist/server/next.mjs +6 -6
  189. package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
  190. package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
  191. package/dist/server/page-converter.mjs +1 -1
  192. package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
  193. package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
  194. package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
  195. package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
  196. package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
  197. package/dist/server/prebuild.mjs +1 -1
  198. package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
  199. package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
  200. package/dist/server/rendering/components/pageShared.mjs +1 -1
  201. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  203. package/dist/server/rendering/server.mjs +3 -3
  204. package/dist/server/rendering.mjs +8 -8
  205. package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
  206. package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
  207. package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
  208. package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
  209. package/dist/server/server.mjs +3 -3
  210. package/dist/server/theme-bridge.mjs +2 -2
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{validation-CvmhnkDr.mjs → validation-EgTtnTcY.mjs} +5 -5
  213. package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
  214. package/dist/styles/index.css +1434 -15
  215. package/package.json +1 -1
  216. package/dist/client/cta-CP9l112u.mjs +0 -121
  217. package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
  218. package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
  219. package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
  220. package/dist/server/rich-text-CRcONdyM.mjs +0 -33
@@ -255,6 +255,7 @@ const SYSTEM_BLOCK_KINDS = [
255
255
  "block.intro",
256
256
  "block.columns",
257
257
  "block.collection",
258
+ "block.class-prices",
258
259
  "block.feature-cards",
259
260
  "block.media-text",
260
261
  "block.cta-full",
@@ -434,6 +435,7 @@ const buttonEffectApplicationSchema = z.discriminatedUnion("effectId", [
434
435
  effectId: z.literal("pop"),
435
436
  options: z.strictObject({ intensity: z.enum([
436
437
  "subtle",
438
+ "gentle",
437
439
  "medium",
438
440
  "dramatic"
439
441
  ]).optional() }).optional()
@@ -584,7 +586,8 @@ const gradientDirectionSchema = z.enum([
584
586
  const buttonColourTreatmentSchema = z.discriminatedUnion("type", [
585
587
  z.strictObject({
586
588
  type: z.literal("solid"),
587
- colorToken: opaqueButtonColourTokenSchema
589
+ colorToken: opaqueButtonColourTokenSchema,
590
+ foregroundToken: opaqueButtonColourTokenSchema.optional()
588
591
  }),
589
592
  z.strictObject({
590
593
  type: z.literal("gradient"),
@@ -709,7 +712,10 @@ const buttonSystemSchema = z.strictObject({
709
712
  variants: z.array(buttonVariantSchema).min(1).max(6),
710
713
  sizes: buttonSizesSchema.optional(),
711
714
  surfacePolicy: buttonSurfacePolicySchema.optional(),
712
- surfaceContexts: z.record(z.string(), z.strictObject({ primary: opaqueButtonColourTokenSchema })).optional()
715
+ surfaceContexts: z.record(z.string(), z.strictObject({
716
+ primary: opaqueButtonColourTokenSchema,
717
+ primaryText: opaqueButtonColourTokenSchema.optional()
718
+ })).optional()
713
719
  }).superRefine((system, ctx) => {
714
720
  const seen = /* @__PURE__ */ new Set();
715
721
  system.variants.forEach((variant, index) => {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ft as formatDate$1, Qt as parseBookingLocalDate, Yt as formatLocalScheduleDate, Zt as getLocalScheduleDate, qt as addLocalScheduleDays, rn as parseUtcIsoDateTimeString, tn as resolveBookingTimeZoneId, zt as formatTime$1 } from "./noop-poI1m2yW.mjs";
2
+ import { Ht as formatTime$1, Qt as formatLocalScheduleDate, Rt as formatDate$1, Xt as addLocalScheduleDays, en as getLocalScheduleDate, in as resolveBookingTimeZoneId, on as parseUtcIsoDateTimeString, tn as parseBookingLocalDate } from "./noop-CN0o0yjH.mjs";
3
3
  import { F as unsafeAsAppointmentResourceId, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
4
- import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
4
+ import { n as useBlockApi } from "./context-D0KCgbOq.mjs";
5
5
  import { useCallback, useEffect, useReducer, useRef } from "react";
6
6
  //#region ../blocks/src/utils/date-formatting.ts
7
7
  /**
@@ -153,10 +153,8 @@ function getAvailableDatesError(state) {
153
153
  return state.tag === "error" ? state.message : null;
154
154
  }
155
155
  function mergeAvailableDates(previous, action) {
156
- const availableDates = action.append ? new Set(previous.availableDates) : /* @__PURE__ */ new Set();
157
- for (const date of action.dates) availableDates.add(date);
158
156
  return {
159
- availableDates,
157
+ availableDates: /* @__PURE__ */ new Set([...action.append ? previous.availableDates : [], ...action.dates]),
160
158
  hasMore: action.hasMore,
161
159
  loadedRange: {
162
160
  start: action.append && previous.loadedRange ? previous.loadedRange.start : action.startDate,
@@ -204,6 +202,19 @@ function availableDatesReducer(state, action) {
204
202
  */
205
203
  const AVAILABILITY_REFRESH_INTERVAL_MS$1 = 3e4;
206
204
  const AVAILABILITY_REFRESH_JITTER_MS$1 = 5e3;
205
+ async function readAvailableDatesRange(api, query) {
206
+ const page = await api.getAvailableDates(query);
207
+ if (!page.nextStartDate || page.nextStartDate > query.endDate || page.nextStartDate <= query.startDate) return page;
208
+ const rest = await readAvailableDatesRange(api, {
209
+ ...query,
210
+ startDate: page.nextStartDate
211
+ });
212
+ return {
213
+ ...rest,
214
+ startDate: page.startDate,
215
+ dates: [...page.dates, ...rest.dates]
216
+ };
217
+ }
207
218
  /**
208
219
  * Fetches dates with availability for a service
209
220
  *
@@ -238,7 +249,7 @@ function useAvailableDates({ serviceId, resourceId, timezone, initialDays = 30 }
238
249
  if (mode === "refresh") dispatch({ type: "refresh-started" });
239
250
  else dispatch({ type: "load-started" });
240
251
  try {
241
- const data = await api.getAvailableDates({
252
+ const data = await readAvailableDatesRange(api, {
242
253
  serviceId,
243
254
  startDate,
244
255
  endDate,
@@ -1,95 +1,7 @@
1
1
  "use client";
2
2
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
4
- import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-DPGZArG9.mjs";
5
- import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
- import * as React$1 from "react";
3
+ import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
7
4
  import { useCallback } from "react";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- //#region ../blocks/src/system/runtime/shared/utils/urlParams.ts
10
- /**
11
- * URL param helpers for client-side "return from redirect" flows.
12
- *
13
- * Used for flows like magic-link login or Stripe checkout return URLs where
14
- * we want to:
15
- * - read a query param once
16
- * - remove it from the URL (so refresh doesn't re-trigger)
17
- * - preserve hash fragments
18
- */
19
- /**
20
- * Consume a query param from the current URL's search string.
21
- *
22
- * Returns the param value (if present) and removes it from the URL via
23
- * history.replaceState, preserving hash.
24
- */
25
- function consumeSearchParam(paramName) {
26
- const url = new URL(window.location.href);
27
- const value = url.searchParams.get(paramName);
28
- if (value === null) return null;
29
- url.searchParams.delete(paramName);
30
- const newUrl = url.pathname + (url.search ? url.search : "") + url.hash;
31
- window.history.replaceState({}, "", newUrl);
32
- return value;
33
- }
34
- /**
35
- * Consume multiple query params from the current URL's search string.
36
- *
37
- * Returns a record of consumed values (missing params are null) and removes
38
- * all provided params from the URL in a single replaceState call.
39
- */
40
- function consumeSearchParams(paramNames) {
41
- const url = new URL(window.location.href);
42
- const values = Object.fromEntries(paramNames.map((name) => [name, url.searchParams.get(name)]));
43
- let changed = false;
44
- for (const name of paramNames) if (url.searchParams.has(name)) {
45
- url.searchParams.delete(name);
46
- changed = true;
47
- }
48
- if (changed) {
49
- const newUrl = url.pathname + (url.search ? url.search : "") + url.hash;
50
- window.history.replaceState({}, "", newUrl);
51
- }
52
- return values;
53
- }
54
- //#endregion
55
- //#region ../blocks/src/system/runtime/nodes/shop-add-feedback.tsx
56
- const DEFAULT_TIMEOUT_MS = 2500;
57
- function useTransientShopAddFeedback(timeoutMs = DEFAULT_TIMEOUT_MS) {
58
- const [activeKey, setActiveKey] = React$1.useState(null);
59
- React$1.useEffect(() => {
60
- if (!activeKey) return;
61
- const timeoutId = window.setTimeout(() => {
62
- setActiveKey((current) => current === activeKey ? null : current);
63
- }, timeoutMs);
64
- return () => window.clearTimeout(timeoutId);
65
- }, [activeKey, timeoutMs]);
66
- return {
67
- activeKey,
68
- markAdded: setActiveKey,
69
- clear: () => setActiveKey(null)
70
- };
71
- }
72
- function ShopAddFeedback(props) {
73
- if (!props.active) return null;
74
- return /* @__PURE__ */ jsxs(FeedbackMessage, {
75
- tone: "success",
76
- className: "rb-caption status-muted",
77
- role: "status",
78
- live: "polite",
79
- children: [
80
- "Added ",
81
- props.itemLabel,
82
- " to cart.",
83
- " ",
84
- /* @__PURE__ */ jsx("a", {
85
- href: "#shop-cart",
86
- children: "View cart"
87
- }),
88
- "."
89
- ]
90
- });
91
- }
92
- //#endregion
93
5
  //#region ../blocks/src/system/runtime/nodes/shop-checkout-form.ts
94
6
  const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
95
7
  function normalizeManualDiscountCode(raw) {
@@ -219,81 +131,6 @@ function checkoutFormForDiscountUiState(form, discountUiState) {
219
131
  };
220
132
  }
221
133
  //#endregion
222
- //#region ../blocks/src/system/runtime/nodes/shop-discount-apply.state.ts
223
- const initialDiscountApplyState = {
224
- isOpen: false,
225
- draftCode: "",
226
- status: { type: "idle" }
227
- };
228
- function discountApplyReducer(state, action) {
229
- switch (action.type) {
230
- case "open": return {
231
- ...state,
232
- isOpen: true
233
- };
234
- case "draftChanged": return {
235
- ...state,
236
- draftCode: action.draftCode,
237
- status: { type: "idle" }
238
- };
239
- case "remove": return initialDiscountApplyState;
240
- case "applyStarted": return {
241
- ...state,
242
- status: { type: "applying" }
243
- };
244
- case "applySucceeded": return {
245
- ...state,
246
- isOpen: true,
247
- draftCode: action.discount.code,
248
- status: {
249
- type: "applied",
250
- discount: action.discount
251
- }
252
- };
253
- case "applyRejected": return {
254
- ...state,
255
- isOpen: true,
256
- status: {
257
- type: "rejected",
258
- reason: action.reason,
259
- message: action.message
260
- }
261
- };
262
- case "resetApplied":
263
- if (state.status.type !== "applied") return state;
264
- return {
265
- ...state,
266
- status: { type: "idle" }
267
- };
268
- default: return assertNever(action);
269
- }
270
- }
271
- function getAppliedDiscountCode(state) {
272
- if (state.status.type !== "applied") return null;
273
- return normalizeManualDiscountCode(state.status.discount.code);
274
- }
275
- function isDiscountApplyInFlight(state) {
276
- return state.status.type === "applying";
277
- }
278
- function getDiscountApplyFeedback(status, formatPrice) {
279
- switch (status.type) {
280
- case "idle":
281
- case "applying": return null;
282
- case "applied": {
283
- const savings = formatPrice(status.discount.discountCents, status.discount.currency);
284
- return {
285
- tone: "success",
286
- message: `${status.discount.publicLabel} applied. You save ${savings}.`
287
- };
288
- }
289
- case "rejected": return {
290
- tone: "error",
291
- message: status.message
292
- };
293
- default: return assertNever(status);
294
- }
295
- }
296
- //#endregion
297
134
  //#region ../blocks/src/system/runtime/nodes/useDiscountApply.ts
298
135
  const DISCOUNT_APPLY_MESSAGES = {
299
136
  emptyCode: "Enter a discount code first.",
@@ -346,8 +183,8 @@ function useDiscountApply(options) {
346
183
  }
347
184
  options.dispatch({
348
185
  type: "applyRejected",
349
- reason: result.reason,
350
- message: result.message
186
+ reason: result.type === "rejected" ? result.reason : "unavailable",
187
+ message: result.type === "rejected" ? result.message : DISCOUNT_APPLY_MESSAGES.unavailable
351
188
  });
352
189
  } catch {
353
190
  options.dispatch({
@@ -359,4 +196,4 @@ function useDiscountApply(options) {
359
196
  }, [options]);
360
197
  }
361
198
  //#endregion
362
- export { initialDiscountApplyState as a, checkoutFormForDiscountUiState as c, planUnifiedCheckoutRequest as d, ShopAddFeedback as f, consumeSearchParams as h, getDiscountApplyFeedback as i, planCartDiscountAvailabilityRequests as l, consumeSearchParam as m, discountApplyReducer as n, isDiscountApplyInFlight as o, useTransientShopAddFeedback as p, getAppliedDiscountCode as r, aggregateCartDiscountUiState as s, useDiscountApply as t, planDirectShopCheckoutRequest as u };
199
+ export { normalizeManualDiscountCode as a, planUnifiedCheckoutRequest as c, checkoutFormForDiscountUiState as i, useDiscountApply as n, planCartDiscountAvailabilityRequests as o, aggregateCartDiscountUiState as r, planDirectShopCheckoutRequest as s, DISCOUNT_APPLY_MESSAGES as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { d as getAutoAppliedDiscountPreview, l as discountAvailabilityAllowsManualEntry, u as discountAvailabilityHasDiscounts } from "./DemoBookingPortalAccess-DPGZArG9.mjs";
2
+ import { d as discountAvailabilityHasDiscounts, f as getAutoAppliedDiscountPreview, u as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Ct as eventPageOperationQuery, Dt as planEventPageOperation, Et as getEventPaginationView, Mt as normalizeCsvIds, Nt as normalizeCsvString, Ot as toEventPaginationLoadError, Pt as normalizeOptionalId, St as createInitialEventPaginationLoadState, Tt as getEventIdentity, jt as getEventRuntimeFiltersKey, kt as toError, wt as eventPaginationLoadReducer } from "./shop.interactive-C0IjiWOs.mjs";
3
- import { Gi as listItemPresentation, Oi as getBlockApiReadStage, qi as listLookSlot } from "./display-ChgDe9Da.mjs";
2
+ import { At as toEventPaginationLoadError, Dt as getEventIdentity, Et as eventPaginationLoadReducer, Ft as normalizeCsvString, It as normalizeOptionalId, Nt as getEventRuntimeFiltersKey, Ot as getEventPaginationView, Pt as normalizeCsvIds, Tt as eventPageOperationQuery, jt as toError, kt as planEventPageOperation, wt as createInitialEventPaginationLoadState } from "./shop.interactive-CXhYl0DW.mjs";
3
+ import { Ha as listItemPresentation, Ta as getBlockApiReadStage, Wa as listLookSlot } from "./display-lL-YRApN.mjs";
4
4
  import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
5
- import { n as useBlockApi } from "./context-Dzjv2CpA.mjs";
6
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
7
- import { r as EventItem } from "./EventItem-DKdZSW_R.mjs";
8
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BVoHnVZA.mjs";
5
+ import { n as useBlockApi } from "./context-D0KCgbOq.mjs";
6
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
7
+ import { r as EventItem } from "./EventItem-Doe4KodB.mjs";
8
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BmfyK7S5.mjs";
9
9
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts