@riverbankcms/sdk 0.159.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.
- package/README.md +4 -4
- package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-BOK-YHVJ.d.ts → client-uMMuPq9V.d.ts} +1 -1
- package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-nyU8q02J.d.ts} +2 -2
- package/dist/_dts/{index-DzUdUaJ-.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-CcaG6O13.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DMOfW1A7.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-BZ4fb2zz.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-Ci1PEk82.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-D0bNcPWK.d.ts} +6907 -6762
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +12 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CI9dYWJ8.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-D8czmbQF.d.ts} +15911 -17318
- package/dist/_dts/{types--oWXIfyz.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-CMFIZGUI.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +77 -96
- package/dist/client/{LeafletStaticMap-dlapZ6mi.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-Dqpv9Ggi.mjs → Page-7PkzO04N.mjs} +1941 -2069
- package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-C8ef0vnT.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BpH6jkUO.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-DV78Td13.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-BJVb2RpL.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-BRgBWthI.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-D8ucLsvX.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BHIHxNuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-BXndwsET.mjs} +14 -14
- package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DjNLfy2Z.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-Cj0By6ot.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-DRN1JePj.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-CuCvQdvp.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-B9srHHzZ.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-M8FTSgm2.mjs → noop-B610YKEx.mjs} +10 -3
- package/dist/client/portal/client.mjs +4559 -114
- package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-BSRlnwBW.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BAm4RPNJ.mjs} +819 -855
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-CnIJfdZA.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-DmDd-igg.mjs} +15 -15
- package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-5SnnDHz3.mjs} +368 -35
- package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-BgPql2yH2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-D1R3Lk05.mjs → view-CseyBW07.mjs} +6 -5
- package/dist/client/{wizardSteps-C0TsNqJc.mjs → wizardSteps-zgq10lN1.mjs} +162 -30
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1281 -171
- package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +856 -2171
- package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +115951 -110090
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-z2daXp-2.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-Cv-osXoU.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-DxRC724a.mjs → overrides-Bz_A6sB9.mjs} +651 -542
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-BaG8Qpaa.mjs → registry-eFjKtEhF.mjs} +2049 -1451
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-ruoyXb_0.mjs} +2 -2
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-BtHE2S_D.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-CNCdL6id.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D09jPdue.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
- package/dist/server/loadPage-jade28Xh.mjs +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as RiverbankSiteConfig } from "./types-
|
|
3
|
-
import { _ as RiverbankClient } from "./types-
|
|
4
|
-
import { E as BlockOverrideRegistrations, J as DataLoaderOverrides, Z as DataLoaderSearchParams, a as SdkRenderingMode, r as SdkOverrideOnlyRendering, s as SdkThemeRuntime } from "./Page-
|
|
5
|
-
import { i as LoadContentResult } from "./loadContent-
|
|
6
|
-
import { t as Metadata } from "./generatePageMetadata-
|
|
7
|
-
import { c as RiverbankContentLoadError } from "./resolvePageContent-
|
|
1
|
+
import { t as Theme } from "./schema-D0bNcPWK.js";
|
|
2
|
+
import { u as RiverbankSiteConfig } from "./types-Dm-KW7nj.js";
|
|
3
|
+
import { _ as RiverbankClient } from "./types-CFrYuXYP.js";
|
|
4
|
+
import { E as BlockOverrideRegistrations, J as DataLoaderOverrides, Z as DataLoaderSearchParams, a as SdkRenderingMode, r as SdkOverrideOnlyRendering, s as SdkThemeRuntime } from "./Page-C0ENVLCF.js";
|
|
5
|
+
import { i as LoadContentResult } from "./loadContent-CYLmzvLq.js";
|
|
6
|
+
import { t as Metadata } from "./generatePageMetadata-nyU8q02J.js";
|
|
7
|
+
import { c as RiverbankContentLoadError } from "./resolvePageContent-DqnxChOs.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
|
|
10
10
|
//#region .cache/declarations/sdk/src/next/content-load-failure.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { s as SdkSiteLayoutConfig } from "./types-D8czmbQF.js";
|
|
2
|
+
import { H as SystemBlockKind, r as ContentConfig, x as FieldDefinition } from "./content-types-D6nXGqdQ.js";
|
|
3
|
+
import { c as NodeDefinition } from "./index-nVoi_74l.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/config/types.d.ts
|
|
6
6
|
/**
|
|
@@ -33,7 +33,7 @@ interface SdkThemeConfig {
|
|
|
33
33
|
*/
|
|
34
34
|
palette: SdkThemePalette;
|
|
35
35
|
}
|
|
36
|
-
type BlockCategory = 'marketing' | 'content' | 'blog' | 'media' | 'layout' | 'interactive';
|
|
36
|
+
type BlockCategory = 'text-and-images' | 'photos' | 'people' | 'events-and-bookings' | 'shop' | 'forms-and-sign-ups' | 'marketing' | 'content' | 'blog' | 'media' | 'layout' | 'interactive';
|
|
37
37
|
/**
|
|
38
38
|
* Supported CMS endpoints for SDK custom block data loaders.
|
|
39
39
|
*
|
|
@@ -60,14 +60,6 @@ interface SdkConfigLoader {
|
|
|
60
60
|
mode?: 'server' | 'client';
|
|
61
61
|
when?: LoaderWhenValue;
|
|
62
62
|
}
|
|
63
|
-
interface PreviewCustomizeManifestCuration {
|
|
64
|
-
/**
|
|
65
|
-
* Field IDs to consider for Preview Customize quick controls, in priority
|
|
66
|
-
* order. When `previewCustomize` is omitted, fields stay in the full
|
|
67
|
-
* Customize panel.
|
|
68
|
-
*/
|
|
69
|
-
quickFieldPriority: string[];
|
|
70
|
-
}
|
|
71
63
|
interface SdkCustomBlock {
|
|
72
64
|
id: `custom.${string}`;
|
|
73
65
|
title: string;
|
|
@@ -86,7 +78,8 @@ interface SdkCustomBlock {
|
|
|
86
78
|
description?: string;
|
|
87
79
|
icon?: string;
|
|
88
80
|
}>;
|
|
89
|
-
|
|
81
|
+
promotedFields?: string[];
|
|
82
|
+
lookField?: string;
|
|
90
83
|
}
|
|
91
84
|
/**
|
|
92
85
|
* Allowed spacing values in section styles.
|
|
@@ -237,6 +230,8 @@ type BlockFieldOptionsMap = Record<string, Record<string, BlockFieldConfig>>;
|
|
|
237
230
|
* ```
|
|
238
231
|
*/
|
|
239
232
|
interface BlockFieldExtension {
|
|
233
|
+
lookField?: string;
|
|
234
|
+
promotedFields?: string[];
|
|
240
235
|
/**
|
|
241
236
|
* Additional fields to append to the block's form.
|
|
242
237
|
* Uses the same field definition format as block manifests.
|
|
@@ -351,6 +346,8 @@ interface DeployConfig {
|
|
|
351
346
|
* ```
|
|
352
347
|
*/
|
|
353
348
|
interface RiverbankSiteConfig {
|
|
349
|
+
/** Built-in kinds offered in the editor. Omit to allow all built-ins. */
|
|
350
|
+
builtInBlocks?: readonly SystemBlockKind[];
|
|
354
351
|
/** Site UUID from the dashboard - identifies which site this config belongs to */
|
|
355
352
|
siteId: string;
|
|
356
353
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-
|
|
1
|
+
import { f as NavigationAuthoringLinkInput, p as NavigationConfigItemInput } from "./types-D8czmbQF.js";
|
|
2
|
+
import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-D6nXGqdQ.js";
|
|
3
|
+
import { u as BindingTransformName } from "./index-nVoi_74l.js";
|
|
4
|
+
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-Dm-KW7nj.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/content-validation.d.ts
|
package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs}
RENAMED
|
@@ -75,23 +75,23 @@ function isSafeHttpsUrl(value) {
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/rendering/islands/hydrateBlocksIslands.ts
|
|
77
77
|
const defaultEnhancerLoaders = {
|
|
78
|
-
accordion: () => import("./accordion-
|
|
79
|
-
headerSection: () => import("./headerSection-
|
|
80
|
-
carousel: () => import("./carousel-
|
|
81
|
-
form: () => import("./form-
|
|
82
|
-
"booking-form": () => import("./bookingForm-
|
|
83
|
-
"event-registration": () => import("./eventRegistration-
|
|
84
|
-
"event-details": () => import("./eventDetails-
|
|
85
|
-
"location-map": () => import("./locationMap-
|
|
86
|
-
"event-listing": () => import("./eventListing-
|
|
87
|
-
"event-calendar": () => import("./eventCalendar-
|
|
88
|
-
"event-combined": () => import("./eventCombined-
|
|
89
|
-
"product-list": () => import("./productList-
|
|
90
|
-
"product-detail": () => import("./productDetail-
|
|
91
|
-
"cart": () => import("./cart-
|
|
92
|
-
"checkout": () => import("./checkout-
|
|
93
|
-
shop: () => import("./shop-
|
|
94
|
-
"newsletter-form": () => import("./newsletterForm-
|
|
78
|
+
accordion: () => import("./accordion-2m27DsIk.mjs"),
|
|
79
|
+
headerSection: () => import("./headerSection-BHUEXsaI.mjs"),
|
|
80
|
+
carousel: () => import("./carousel-D7nj9I0y.mjs"),
|
|
81
|
+
form: () => import("./form-C-B5O_ko.mjs"),
|
|
82
|
+
"booking-form": () => import("./bookingForm-bcdXQjmw.mjs"),
|
|
83
|
+
"event-registration": () => import("./eventRegistration-VhrvCs4l.mjs"),
|
|
84
|
+
"event-details": () => import("./eventDetails-FFAknE4w.mjs"),
|
|
85
|
+
"location-map": () => import("./locationMap-QnKJi-nZ.mjs"),
|
|
86
|
+
"event-listing": () => import("./eventListing-CGK6urk3.mjs"),
|
|
87
|
+
"event-calendar": () => import("./eventCalendar-HyoOt1Qz.mjs"),
|
|
88
|
+
"event-combined": () => import("./eventCombined-sdG5oEaH.mjs"),
|
|
89
|
+
"product-list": () => import("./productList-BKN4D-1z.mjs"),
|
|
90
|
+
"product-detail": () => import("./productDetail-B8bBiogP.mjs"),
|
|
91
|
+
"cart": () => import("./cart-PN6yCw1H.mjs"),
|
|
92
|
+
"checkout": () => import("./checkout-CsTwXVSb.mjs"),
|
|
93
|
+
shop: () => import("./shop-DZNC0VKk.mjs"),
|
|
94
|
+
"newsletter-form": () => import("./newsletterForm-tEaYelzx.mjs")
|
|
95
95
|
};
|
|
96
96
|
const DEFAULT_MAX_RETRIES = 2;
|
|
97
97
|
const RETRY_DELAYS_MS = [250, 1e3];
|
package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
+
import { Kt as RichText } from "./wizardSteps-zgq10lN1.mjs";
|
|
4
4
|
import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
5
5
|
import { useCallback, useEffect, useId, useReducer, useRef } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, v as isToday } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
3
|
+
import { i as ThemedButtonLink } from "./ThemedButton-C22C9cCF.mjs";
|
|
4
4
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
5
|
-
import { An as isEventFull, bn as resolveEventTimeZone, cn as eventDateOptions, vn as formatTime, wn as formatEventRemainingPlaces, yn as groupEventsByDate } from "./wizardSteps-
|
|
6
|
-
import { tt as formatDate } from "./noop-
|
|
7
|
-
import {
|
|
8
|
-
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-
|
|
9
|
-
import { i as formatEventTeacherLine } from "./EventItem-
|
|
5
|
+
import { An as isEventFull, bn as resolveEventTimeZone, cn as eventDateOptions, vn as formatTime, wn as formatEventRemainingPlaces, yn as groupEventsByDate } from "./wizardSteps-zgq10lN1.mjs";
|
|
6
|
+
import { tt as formatDate } from "./noop-B610YKEx.mjs";
|
|
7
|
+
import { Xt as formatEventPrice } from "./shop.interactive-5SnnDHz3.mjs";
|
|
8
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-CUXhX_D7.mjs";
|
|
9
|
+
import { i as formatEventTeacherLine } from "./EventItem-CXhnT9pF.mjs";
|
|
10
10
|
import "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { C as clsx } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
|
package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-B610YKEx.mjs";
|
|
5
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Bhm6RAUL.mjs";
|
|
6
6
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
8
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
9
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
8
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BLAvalAa.mjs";
|
|
9
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
10
10
|
import React, { useCallback, useEffect, useId, useMemo, useReducer } from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region ../core/src/site-terms.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { i as ThemedButtonLink } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
4
|
-
import { hn as formatEventHourLabel, yn as groupEventsByDate } from "./wizardSteps-
|
|
5
|
-
import { g as resolveCalendarReadProfile } from "./noop-
|
|
6
|
-
import { Et as buildEventCalendarListingRender,
|
|
7
|
-
import { i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
8
|
-
import { a as MonthLookView, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-
|
|
9
|
-
import { i as useEventCollectionFilters } from "./useEventPagination-
|
|
10
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
11
|
-
import { a as CalendarDayCell, c as EventModalProvider, i as useHydrationReady, l as useEventModal, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useCalendarToday } from "./EventCombined.client-
|
|
3
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
4
|
+
import { hn as formatEventHourLabel, yn as groupEventsByDate } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { g as resolveCalendarReadProfile } from "./noop-B610YKEx.mjs";
|
|
6
|
+
import { Et as buildEventCalendarListingRender, Pt as buildEventRuntimeFilters, Yt as buildEventListWeek } from "./shop.interactive-5SnnDHz3.mjs";
|
|
7
|
+
import { i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CHSi9b3E.mjs";
|
|
8
|
+
import { a as MonthLookView, i as buildWeekBoardViewProps, n as WeekBoardView, o as CalendarRecurringWeek, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-C19rcHEw.mjs";
|
|
9
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-DW6MCirb.mjs";
|
|
10
|
+
import { n as EventListingController } from "./EventListing.client-DPO6SZbx.mjs";
|
|
11
|
+
import { a as CalendarDayCell, c as EventModalProvider, i as useHydrationReady, l as useEventModal, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useCalendarToday } from "./EventCombined.client-DluBxVVu.mjs";
|
|
12
12
|
import React, { useEffect, useMemo, useState } from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookClient.tsx
|
|
@@ -173,6 +173,7 @@ function hourToTickPercent(hour, hours) {
|
|
|
173
173
|
//#region ../blocks/src/system/runtime/nodes/events/EventCalendar.client.tsx
|
|
174
174
|
const EventCalendarClient = ({ render }) => {
|
|
175
175
|
const { display } = render;
|
|
176
|
+
if (display.displayMode === "week") return /* @__PURE__ */ jsx(CalendarRecurringWeek, { display });
|
|
176
177
|
if (display.displayMode === "combined") return /* @__PURE__ */ jsx(EventCalendarCombinedClient, { render });
|
|
177
178
|
if (display.displayMode === "list") {
|
|
178
179
|
if (display.listBy === "week") return /* @__PURE__ */ jsx(EventCalendarWeekListClient, { render });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
4
|
-
import { Gt as getBlockApiReadStage, an as buildCalendarViewport, cn as eventDateOptions, on as eventCalendarWeekStart, vn as formatTime, yn as groupEventsByDate } from "./wizardSteps-
|
|
5
|
-
import { c as calendarMonthKey, d as calendarWindowBounds, f as calendarWindowMonths$1, h as planCalendarMonthRanges, ht as getLocalScheduleDate, l as calendarPageResponseError, s as calendarMonthDate, tt as formatDate, u as calendarQueryKey } from "./noop-
|
|
6
|
-
import {
|
|
7
|
-
import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, r as AgendaEventCard, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
3
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
4
|
+
import { Gt as getBlockApiReadStage, an as buildCalendarViewport, cn as eventDateOptions, on as eventCalendarWeekStart, vn as formatTime, yn as groupEventsByDate } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { c as calendarMonthKey, d as calendarWindowBounds, f as calendarWindowMonths$1, h as planCalendarMonthRanges, ht as getLocalScheduleDate, l as calendarPageResponseError, s as calendarMonthDate, tt as formatDate, u as calendarQueryKey } from "./noop-B610YKEx.mjs";
|
|
6
|
+
import { Ft as getEventRuntimeFiltersKey, Mt as eventListingBlockRuntime, Pt as buildEventRuntimeFilters } from "./shop.interactive-5SnnDHz3.mjs";
|
|
7
|
+
import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, r as AgendaEventCard, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CHSi9b3E.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
9
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
10
|
-
import { t as TabBarFragment } from "./TabBarFragment-
|
|
11
|
-
import { n as useBlockApi } from "./context-
|
|
12
|
-
import { a as toError, i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-
|
|
10
|
+
import { t as TabBarFragment } from "./TabBarFragment-BHd8GN8y.mjs";
|
|
11
|
+
import { n as useBlockApi } from "./context-BLAvalAa.mjs";
|
|
12
|
+
import { a as toError, i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-DW6MCirb.mjs";
|
|
13
13
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { r as ThemedButton, u as SpinnerNode, w as checkBrowserStripeKey } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
3
|
-
import { Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, cn as eventDateOptions, pn as formatEventCompactDateRail, wn as formatEventRemainingPlaces } from "./wizardSteps-
|
|
4
|
-
import {
|
|
5
|
-
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-
|
|
2
|
+
import { i as ThemedButtonLink } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, cn as eventDateOptions, pn as formatEventCompactDateRail, wn as formatEventRemainingPlaces } from "./wizardSteps-zgq10lN1.mjs";
|
|
4
|
+
import { Ht as CardListLeadDate, Ut as resolveCardListSchedule, Vt as CardListContentPart, Wt as selectCardListPresentation, Xt as formatEventPrice } from "./shop.interactive-5SnnDHz3.mjs";
|
|
5
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-CUXhX_D7.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
@@ -42,6 +42,7 @@ const eventItemParts = {
|
|
|
42
42
|
"action"
|
|
43
43
|
],
|
|
44
44
|
grid: [
|
|
45
|
+
"image",
|
|
45
46
|
"date",
|
|
46
47
|
"title",
|
|
47
48
|
"meta",
|
|
@@ -68,7 +69,11 @@ function eventItemFacts(props) {
|
|
|
68
69
|
date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
|
|
69
70
|
time: formatEventTimeRange(props.event, options),
|
|
70
71
|
price: formatEventPrice(props.event),
|
|
71
|
-
meta:
|
|
72
|
+
meta: [
|
|
73
|
+
...(props.parts ?? eventItemParts[props.arrangement]).includes("time") ? [] : [formatEventTimeRange(props.event, options)],
|
|
74
|
+
formatEventTeacherLine(props.event),
|
|
75
|
+
props.showVenue !== false ? props.event.venue?.name : null
|
|
76
|
+
].filter(Boolean).join(" · "),
|
|
72
77
|
places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
|
|
73
78
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
74
79
|
description: props.event.presentation?.summary ?? props.event.description
|
|
@@ -84,7 +89,7 @@ function EventItem(props) {
|
|
|
84
89
|
return "item" in props ? renderCardItem(props) : renderCalendarItem(props);
|
|
85
90
|
}
|
|
86
91
|
function renderCalendarItem(props) {
|
|
87
|
-
const parts = props.parts ?? eventItemParts[props.arrangement];
|
|
92
|
+
const parts = (props.parts ?? eventItemParts[props.arrangement]).filter((part) => part !== "image" || props.showPhotos !== false);
|
|
88
93
|
const facts = eventItemFacts(props);
|
|
89
94
|
const Tag = props.as ?? eventItemTag(props.arrangement);
|
|
90
95
|
const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
|
package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Pr as listLookSlot } from "./wizardSteps-
|
|
2
|
+
import { Pr as listLookSlot } from "./wizardSteps-zgq10lN1.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { Pt as buildEventRuntimeFilters } from "./shop.interactive-5SnnDHz3.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-V-dtoDlD.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-DW6MCirb.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { An as
|
|
3
|
-
import { Mr as listItemPresentation, Pr as listLookSlot, _n as formatEventTimeRange, cn as eventDateOptions, dn as formatDate, gn as formatEventNextDateFact, ln as eventLocalDateKey, pn as formatEventCompactDateRail, qt as ImagePresets, wn as formatEventRemainingPlaces } from "./wizardSteps-
|
|
4
|
-
import {
|
|
5
|
-
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-
|
|
6
|
-
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-
|
|
2
|
+
import { An as isCssColorLiteral, Ft as boxBackgroundSchema, Hn as getTextColorForBackground, It as runtimeBoxBackgroundSchema, Nn as resolveTokenOrCssColorValue, Pt as boxBackgroundOverlaySchema, h as ClockIcon, i as ThemedButtonLink, jn as resolveOnColorForThemeToken, qt as normalizeCardRole } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { Mr as listItemPresentation, Pr as listLookSlot, _n as formatEventTimeRange, cn as eventDateOptions, dn as formatDate, gn as formatEventNextDateFact, ln as eventLocalDateKey, pn as formatEventCompactDateRail, qt as ImagePresets, wn as formatEventRemainingPlaces } from "./wizardSteps-zgq10lN1.mjs";
|
|
4
|
+
import { Gt as MediaNodeServer, Xt as formatEventPrice } from "./shop.interactive-5SnnDHz3.mjs";
|
|
5
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-CUXhX_D7.mjs";
|
|
6
|
+
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-CXhnT9pF.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
@@ -747,7 +747,7 @@ const EventCompactRow = (props) => props.lookSlots === void 0 ? /* @__PURE__ */
|
|
|
747
747
|
buttonText: props.buttonText ?? "Book",
|
|
748
748
|
as: "article"
|
|
749
749
|
});
|
|
750
|
-
const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
750
|
+
const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, showVenue = true }) => {
|
|
751
751
|
event.timeZone;
|
|
752
752
|
const dateRail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
753
753
|
const formattedTime = formatEventTimeRange(event, eventDateOptions(event));
|
|
@@ -788,7 +788,7 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText })
|
|
|
788
788
|
}), /* @__PURE__ */ jsxs("div", {
|
|
789
789
|
className: "event-compact-row-meta",
|
|
790
790
|
children: [
|
|
791
|
-
event.venue && /* @__PURE__ */ jsxs("span", {
|
|
791
|
+
showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
|
|
792
792
|
className: "event-compact-row-venue",
|
|
793
793
|
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
|
|
794
794
|
}),
|
package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs}
RENAMED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { st as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
2
|
+
import { E as parseEventRegistrationErrorReason, T as eventRegistrationErrors } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, Dr as resolveEventRegistrationScopedEvents, E as resolveRegistrationTicketContinuation, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Ki as publicEventPricingStrategy, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Pi as resolveBookingSignupOffer, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { st as inferSiteDateLocale, yt as resolveBookingBusinessTimeZone } from "./noop-B610YKEx.mjs";
|
|
6
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
7
|
+
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
8
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DK2w_i0a.mjs";
|
|
9
|
+
import { r as usePolling } from "./BookingMailingListNote-C00sLLdL.mjs";
|
|
9
10
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
11
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
11
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BLAvalAa.mjs";
|
|
12
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-CMgfL7YJ.mjs";
|
|
13
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
13
14
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
15
|
import { z } from "zod";
|
|
15
16
|
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
//#region ../core/src/uuid.ts
|
|
17
|
-
function generateUuidV4(cryptoSource = globalThis.crypto) {
|
|
18
|
-
if (typeof cryptoSource.randomUUID === "function") return cryptoSource.randomUUID();
|
|
19
|
-
const bytes = cryptoSource.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
20
|
-
bytes[6] = (bytes[6] ?? 0) & 15 | 64;
|
|
21
|
-
bytes[8] = (bytes[8] ?? 0) & 63 | 128;
|
|
22
|
-
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0"));
|
|
23
|
-
return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
17
|
//#region ../blocks/src/system/runtime/shared/utils/portalLogout.ts
|
|
27
18
|
/**
|
|
28
19
|
* Portal Logout Utility
|
|
@@ -164,7 +155,8 @@ function eligibilityLookupReducer(state, action) {
|
|
|
164
155
|
case "reset": return initialEligibilityLookupState;
|
|
165
156
|
case "loading-started": return {
|
|
166
157
|
tag: "loading",
|
|
167
|
-
eligibility:
|
|
158
|
+
eligibility: null,
|
|
159
|
+
previousEligibility: state.tag === "loading" ? state.previousEligibility : state.eligibility,
|
|
168
160
|
settledRequestKey: state.settledRequestKey,
|
|
169
161
|
error: null
|
|
170
162
|
};
|
|
@@ -177,7 +169,7 @@ function eligibilityLookupReducer(state, action) {
|
|
|
177
169
|
case "failed": return {
|
|
178
170
|
tag: "failed",
|
|
179
171
|
eligibility: null,
|
|
180
|
-
settledRequestKey:
|
|
172
|
+
settledRequestKey: action.requestKey,
|
|
181
173
|
error: action.message
|
|
182
174
|
};
|
|
183
175
|
default: return assertNever(action);
|
|
@@ -272,90 +264,79 @@ function usePortalAuthWithDeps(deps) {
|
|
|
272
264
|
function useEligibility(params) {
|
|
273
265
|
return useEligibilityWithDeps(params, eventRegistrationHooksDeps);
|
|
274
266
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
267
|
+
/** One request for the current selection; disabled/incomplete selections do not fetch. */
|
|
268
|
+
function eligibilityRequest(params) {
|
|
269
|
+
const selections = normalizeTicketSelectionLines(params.ticketSelections);
|
|
270
|
+
if (!params.enabled || !params.subject || selections.length === 0) return null;
|
|
271
|
+
return {
|
|
272
|
+
subject: toRegistrationRequestSubject(params.subject, params.attendanceMode),
|
|
273
|
+
selections: selections.map(({ pricingOptionId, quantity }) => ({
|
|
274
|
+
pricingOptionId,
|
|
275
|
+
quantity
|
|
276
|
+
})),
|
|
277
|
+
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/** One effective union owns readiness, including the pre-fetch debounce window. */
|
|
281
|
+
function effectiveEligibilityState(state, requestKey, active) {
|
|
282
|
+
if (!active) return initialEligibilityLookupState;
|
|
283
|
+
if (state.tag === "loading" || state.settledRequestKey === requestKey) return state;
|
|
284
|
+
return eligibilityLookupReducer(state, { type: "loading-started" });
|
|
285
|
+
}
|
|
286
|
+
/** Fetches a quote; a disposed request can never settle the next selection. */
|
|
287
|
+
async function loadEligibility(input) {
|
|
288
|
+
input.dispatch({ type: "loading-started" });
|
|
289
|
+
try {
|
|
290
|
+
const result = await input.api.getRegistrationOptions(input.request);
|
|
291
|
+
if (!input.isCurrent()) return;
|
|
292
|
+
input.dispatch({
|
|
293
|
+
type: "resolved",
|
|
294
|
+
eligibility: transformRegistrationOptionsResponse(result),
|
|
295
|
+
requestKey: input.requestKey
|
|
296
|
+
});
|
|
297
|
+
} catch {
|
|
298
|
+
if (!input.isCurrent()) return;
|
|
299
|
+
input.dispatch({
|
|
300
|
+
type: "failed",
|
|
301
|
+
requestKey: input.requestKey,
|
|
302
|
+
message: "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help."
|
|
303
|
+
});
|
|
304
|
+
}
|
|
284
305
|
}
|
|
285
306
|
function useEligibilityWithDeps(params, deps) {
|
|
286
307
|
const api = deps.useBlockApi();
|
|
287
|
-
const
|
|
288
|
-
const requestKey =
|
|
289
|
-
|
|
290
|
-
|
|
308
|
+
const request = eligibilityRequest(params);
|
|
309
|
+
const requestKey = JSON.stringify({
|
|
310
|
+
refreshKey: params.refreshKey ?? 0,
|
|
311
|
+
request
|
|
291
312
|
});
|
|
292
313
|
const [state, dispatch] = useReducer(eligibilityLookupReducer, initialEligibilityLookupState);
|
|
293
|
-
const requestIdRef = useRef(0);
|
|
294
314
|
useEffect(() => {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (!
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
const requestId = requestIdRef.current + 1;
|
|
309
|
-
requestIdRef.current = requestId;
|
|
310
|
-
dispatch({ type: "loading-started" });
|
|
311
|
-
try {
|
|
312
|
-
const subject = toRegistrationRequestSubject(params.subject, params.attendanceMode);
|
|
313
|
-
const result = await api.getRegistrationOptions({
|
|
314
|
-
subject,
|
|
315
|
-
selections: ticketSelections.map((selection) => ({
|
|
316
|
-
pricingOptionId: selection.pricingOptionId,
|
|
317
|
-
quantity: selection.quantity
|
|
318
|
-
})),
|
|
319
|
-
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0
|
|
320
|
-
});
|
|
321
|
-
if (cancelled || requestIdRef.current !== requestId) return;
|
|
322
|
-
dispatch({
|
|
323
|
-
type: "resolved",
|
|
324
|
-
eligibility: transformRegistrationOptionsResponse(result),
|
|
325
|
-
requestKey
|
|
326
|
-
});
|
|
327
|
-
} catch {
|
|
328
|
-
if (cancelled || requestIdRef.current !== requestId) return;
|
|
329
|
-
dispatch({
|
|
330
|
-
type: "failed",
|
|
331
|
-
message: "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help."
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
const timeoutId = window.setTimeout(() => void fetchEligibility(), REGISTRATION_OPTIONS_DEBOUNCE_MS);
|
|
315
|
+
const lifetime = { current: true };
|
|
316
|
+
const timeoutId = window.setTimeout(() => {
|
|
317
|
+
if (!request) return dispatch({ type: "reset" });
|
|
318
|
+
loadEligibility({
|
|
319
|
+
api,
|
|
320
|
+
request,
|
|
321
|
+
requestKey,
|
|
322
|
+
dispatch,
|
|
323
|
+
isCurrent: () => lifetime.current
|
|
324
|
+
});
|
|
325
|
+
}, REGISTRATION_OPTIONS_DEBOUNCE_MS);
|
|
336
326
|
return () => {
|
|
337
|
-
|
|
327
|
+
lifetime.current = false;
|
|
338
328
|
window.clearTimeout(timeoutId);
|
|
339
329
|
};
|
|
340
|
-
}, [
|
|
341
|
-
|
|
342
|
-
params.enabled,
|
|
343
|
-
params.refreshKey,
|
|
344
|
-
params.subject?.kind,
|
|
345
|
-
params.subject?.kind === "occurrence" ? params.subject.occurrenceId : params.subject?.eventSeriesId,
|
|
346
|
-
params.attendanceMode,
|
|
347
|
-
ticketSelectionsKey,
|
|
348
|
-
params.selectedSlidingAmount
|
|
349
|
-
]);
|
|
350
|
-
const creditState = registrationOptionsCreditState(state, params.subjectEmail);
|
|
330
|
+
}, [api, requestKey]);
|
|
331
|
+
const effectiveState = effectiveEligibilityState(state, requestKey, request !== null);
|
|
351
332
|
return {
|
|
352
|
-
state,
|
|
353
|
-
eligibility:
|
|
354
|
-
settledRequestKey:
|
|
333
|
+
state: effectiveState,
|
|
334
|
+
eligibility: effectiveState.tag === "loading" ? effectiveState.previousEligibility : effectiveState.eligibility,
|
|
335
|
+
settledRequestKey: effectiveState.settledRequestKey,
|
|
355
336
|
requestKey,
|
|
356
|
-
isLoading:
|
|
357
|
-
error:
|
|
358
|
-
creditState
|
|
337
|
+
isLoading: effectiveState.tag === "loading",
|
|
338
|
+
error: effectiveState.error,
|
|
339
|
+
creditState: registrationOptionsCreditState(effectiveState, params.subjectEmail)
|
|
359
340
|
};
|
|
360
341
|
}
|
|
361
342
|
function registrationOptionsCreditState(state, subjectEmail) {
|
|
@@ -2436,7 +2417,7 @@ function resolveWizardPaymentView(input) {
|
|
|
2436
2417
|
}
|
|
2437
2418
|
//#endregion
|
|
2438
2419
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
2439
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
2420
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-BiJrMtfp.mjs"));
|
|
2440
2421
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
2441
2422
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
2442
2423
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as isRecord } from "./noop-
|
|
2
|
+
import { $ as isRecord } from "./noop-B610YKEx.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/shared/LeafletStaticMap.tsx
|