@riverbankcms/sdk 0.148.0 → 0.150.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 +1 -1
- package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-BIJucTRd.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +96 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4804 -4161
- package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
- package/dist/_dts/api/src/billing.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
- package/dist/_dts/api/src/footerSettings.d.ts +3 -3
- package/dist/_dts/api/src/index.d.ts +4 -4
- package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
- package/dist/_dts/api/src/navigation.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/siteSettings.d.ts +2 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +2 -1
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +94 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +6 -6
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +3 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +7 -7
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/patch/index.d.ts +30 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +326 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
- package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
- package/dist/_dts/theme-core/src/schema.d.ts +330 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
- package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-CYHOufsI.mjs} +33 -124
- package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
- package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
- package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-cQm5mjqs.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-BVPJE5RQ.mjs} +15 -11
- package/dist/client/bookings.mjs +2860 -1222
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-3vgnY7LC.mjs} +2 -2
- package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-BGK4oOjm.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-GsBLUNJD.mjs} +3 -3
- package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
- package/dist/client/client.mjs +3324 -2053
- package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
- package/dist/client/{context-eW97E945.mjs → context-D_8s12Fp.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-DeJQbQ9T.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-B7yxGIhX.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-BoXfSFgZ.mjs} +1455 -1184
- package/dist/client/{form-BvpfbQaT.mjs → form-CNQOWhJo.mjs} +5 -5
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-DahaBJGQ.mjs} +3 -3
- package/dist/client/hooks.mjs +283 -193
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BoDjqYlW.mjs} +4 -4
- package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
- package/dist/client/{pricing-BES87mrR.mjs → pricing-DXEh2Lhh.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-D7cPa-00.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D1XMap66.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DiIeBopB.mjs} +913 -322
- package/dist/client/rendering/client.mjs +3913 -2260
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3302 -2013
- package/dist/client/result-DRW7JWXz.mjs +30 -0
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
- package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
- package/dist/client/{shop-CJkuySJ3.mjs → shop-CYT5P-S5.mjs} +13 -14
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DFGhYrf2.mjs} +52 -6
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-2p8uQk1V.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-Cvvzk0Oo.mjs} +1 -1
- package/dist/server/components.mjs +4041 -3704
- package/dist/server/config-validation.mjs +345 -255
- package/dist/server/config.mjs +345 -255
- package/dist/server/data.mjs +283 -193
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +788 -469
- package/dist/server/page-converter.mjs +245 -121
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4018 -3690
- package/dist/server/rendering.mjs +4044 -3707
- package/dist/server/routing.mjs +314 -190
- package/dist/server/server.mjs +290 -218
- package/dist/server/theme-bridge.mjs +1122 -310
- package/dist/server/theme.mjs +126 -116
- package/dist/spinner-CDo6AkDz.mjs +658 -0
- package/dist/styles/index.css +75 -212
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
- package/dist/_dts/billing/src/config/env.d.ts +0 -29
- package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
- package/dist/client/urlParams-D71VXFGx.mjs +0 -47
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
1
|
import { z } from "zod";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import * as fs from "fs/promises";
|
|
5
5
|
import * as path from "path";
|
|
@@ -5060,6 +5060,18 @@ function brandNonEmptyString(value, label) {
|
|
|
5060
5060
|
if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
|
|
5061
5061
|
return value;
|
|
5062
5062
|
}
|
|
5063
|
+
/**
|
|
5064
|
+
* What a block's own section background field admits, read from its manifest.
|
|
5065
|
+
* A site style's surface rule may paint a gradient or a photo; a block whose
|
|
5066
|
+
* `_sectionStyles.background` refuses that paint would be dropped at render
|
|
5067
|
+
* admission, so the runtime compiler paints the surface's colour equivalent
|
|
5068
|
+
* instead (see `compileSectionBackground`).
|
|
5069
|
+
*/
|
|
5070
|
+
const sectionBackgroundPaintValues = [
|
|
5071
|
+
"color",
|
|
5072
|
+
"gradient",
|
|
5073
|
+
"image"
|
|
5074
|
+
];
|
|
5063
5075
|
const plainFrame = { kind: "plain" };
|
|
5064
5076
|
function panelFrame(treatment) {
|
|
5065
5077
|
return {
|
|
@@ -5144,6 +5156,7 @@ function defineBlockDesignCapability(capability) {
|
|
|
5144
5156
|
...capability,
|
|
5145
5157
|
kind: "designed",
|
|
5146
5158
|
looks: capability.looks ?? "not-applicable",
|
|
5159
|
+
sectionBackgroundPaints: admittedSectionBackgroundPaints(capability.sectionBackgroundPaints),
|
|
5147
5160
|
sectionHeights: capability.sectionHeights ?? ["default"],
|
|
5148
5161
|
imageSurfaceTreatments: capability.imageSurfaceTreatments ?? ["none"],
|
|
5149
5162
|
imageSurfaceMotions: capability.imageSurfaceMotions ?? ["static"],
|
|
@@ -5156,6 +5169,10 @@ function defineBlockDesignCapability(capability) {
|
|
|
5156
5169
|
...capability.accordionIconSets ? { accordionIconSets: capability.accordionIconSets } : {}
|
|
5157
5170
|
};
|
|
5158
5171
|
}
|
|
5172
|
+
/** Absent means the block admits every section background paint. */
|
|
5173
|
+
function admittedSectionBackgroundPaints(paints) {
|
|
5174
|
+
return paints ?? sectionBackgroundPaintValues;
|
|
5175
|
+
}
|
|
5159
5176
|
//#endregion
|
|
5160
5177
|
//#region ../theme-core/src/site-styles/logoBranding.ts
|
|
5161
5178
|
const logoTextConfidenceValues = [
|
|
@@ -5434,12 +5451,22 @@ const mediaPresentationSchema = commonSchema.extend({
|
|
|
5434
5451
|
const boxBackgroundSchema = z.discriminatedUnion("type", [
|
|
5435
5452
|
commonSchema.extend({
|
|
5436
5453
|
type: z.literal("color"),
|
|
5437
|
-
color: tokenOrCssColorValueSchema.nullable().optional()
|
|
5454
|
+
color: tokenOrCssColorValueSchema.nullable().optional(),
|
|
5455
|
+
/**
|
|
5456
|
+
* Compiler-owned. The scrim a site-style colour surface lays over media
|
|
5457
|
+
* that replaces it (a Look's band meeting an authored photo), sized so the
|
|
5458
|
+
* surface's foreground stays legible over any pixel. A colour background
|
|
5459
|
+
* never draws it itself; `resolveSectionBackground` moves it onto the
|
|
5460
|
+
* merged media background as its overlay.
|
|
5461
|
+
*/
|
|
5462
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
5438
5463
|
}),
|
|
5439
5464
|
commonSchema.extend({
|
|
5440
5465
|
type: z.literal("gradient"),
|
|
5441
5466
|
gradient: z.string().nullable().optional(),
|
|
5442
|
-
gradientPresetId: z.string().min(1).nullable().optional()
|
|
5467
|
+
gradientPresetId: z.string().min(1).nullable().optional(),
|
|
5468
|
+
/** Compiler-owned; see the colour branch. */
|
|
5469
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
5443
5470
|
}),
|
|
5444
5471
|
mediaPresentationSchema.extend({
|
|
5445
5472
|
type: z.literal("image"),
|
|
@@ -6237,6 +6264,17 @@ function defineBlockAppearancePreset(preset) {
|
|
|
6237
6264
|
* (`defineBlockAppearancePreset` defaults it to `none`) — the block's own
|
|
6238
6265
|
* composition still governs how its items look. The per-Look rationale for the card-bearing ones lives
|
|
6239
6266
|
* in `.project/plans/1297-card-role-contract-site-styles-own-card-surfaces/mapping-table.md`.
|
|
6267
|
+
*
|
|
6268
|
+
* A Look asking for the `alternative` or `open` role is offered only where the
|
|
6269
|
+
* site style defines that role (`siteStyleSupportsLookDesign`), so two Looks
|
|
6270
|
+
* that differ only in role are distinct wherever both are offered.
|
|
6271
|
+
*
|
|
6272
|
+
* Retiring a Look is removing its entry. A stored pin to a retired id reads as
|
|
6273
|
+
* an unsupported pin in the page design editor model and renders the block's
|
|
6274
|
+
* auto Look, the same path an unavailable Look takes. Duplicates retired in
|
|
6275
|
+
* the 2026-09 Look audit: `feature-cards-soft-panels`,
|
|
6276
|
+
* `feature-cards-photo-tiles`, `feature-cards-editorial-pathways`,
|
|
6277
|
+
* `testimonials-default-cards`.
|
|
6240
6278
|
*/
|
|
6241
6279
|
const brandScrimOptionGroups = [{
|
|
6242
6280
|
id: "image-surface-treatment",
|
|
@@ -6621,16 +6659,6 @@ defineBlockAppearancePreset({
|
|
|
6621
6659
|
treatment: "framed-programme"
|
|
6622
6660
|
}
|
|
6623
6661
|
}
|
|
6624
|
-
}), defineBlockAppearancePreset({
|
|
6625
|
-
id: "feature-cards-soft-panels",
|
|
6626
|
-
target: "feature-cards",
|
|
6627
|
-
label: "Soft tinted panels",
|
|
6628
|
-
blockKinds: ["block.feature-cards"],
|
|
6629
|
-
design: {
|
|
6630
|
-
sectionSurface: "base",
|
|
6631
|
-
contentFrame: plainFrame,
|
|
6632
|
-
cardRole: "alternative"
|
|
6633
|
-
}
|
|
6634
6662
|
}), defineBlockAppearancePreset({
|
|
6635
6663
|
id: "feature-cards-editorial-diptych",
|
|
6636
6664
|
target: "feature-cards",
|
|
@@ -6642,27 +6670,6 @@ defineBlockAppearancePreset({
|
|
|
6642
6670
|
contentFrame: plainFrame,
|
|
6643
6671
|
cardRole: "default"
|
|
6644
6672
|
}
|
|
6645
|
-
}), defineBlockAppearancePreset({
|
|
6646
|
-
id: "feature-cards-editorial-pathways",
|
|
6647
|
-
target: "feature-cards",
|
|
6648
|
-
label: "Editorial pathways",
|
|
6649
|
-
blockKinds: ["block.feature-cards"],
|
|
6650
|
-
constraints: { layoutVariantKeys: ["editorial-pathways"] },
|
|
6651
|
-
design: {
|
|
6652
|
-
sectionSurface: "base",
|
|
6653
|
-
contentFrame: plainFrame,
|
|
6654
|
-
cardRole: "default"
|
|
6655
|
-
}
|
|
6656
|
-
}), defineBlockAppearancePreset({
|
|
6657
|
-
id: "feature-cards-photo-tiles",
|
|
6658
|
-
target: "feature-cards",
|
|
6659
|
-
label: "Photo tiles",
|
|
6660
|
-
blockKinds: ["block.feature-cards"],
|
|
6661
|
-
design: {
|
|
6662
|
-
sectionSurface: "base",
|
|
6663
|
-
contentFrame: plainFrame,
|
|
6664
|
-
cardRole: "default"
|
|
6665
|
-
}
|
|
6666
6673
|
}), defineBlockAppearancePreset({
|
|
6667
6674
|
id: "events-lined-panel",
|
|
6668
6675
|
target: "events",
|
|
@@ -6751,16 +6758,6 @@ defineBlockAppearancePreset({
|
|
|
6751
6758
|
contentFrame: panelFrame("raised"),
|
|
6752
6759
|
cardRole: "default"
|
|
6753
6760
|
}
|
|
6754
|
-
}), defineBlockAppearancePreset({
|
|
6755
|
-
id: "testimonials-default-cards",
|
|
6756
|
-
target: "testimonials",
|
|
6757
|
-
label: "Default cards",
|
|
6758
|
-
blockKinds: ["block.testimonials"],
|
|
6759
|
-
design: {
|
|
6760
|
-
sectionSurface: "base",
|
|
6761
|
-
contentFrame: plainFrame,
|
|
6762
|
-
cardRole: "default"
|
|
6763
|
-
}
|
|
6764
6761
|
}), defineBlockAppearancePreset({
|
|
6765
6762
|
id: "testimonials-statement-cards",
|
|
6766
6763
|
target: "testimonials",
|
|
@@ -10215,9 +10212,7 @@ const curatedSiteStyles = [
|
|
|
10215
10212
|
recommendedAppearancePresetIds: [
|
|
10216
10213
|
"hero-split-editorial",
|
|
10217
10214
|
"intro-portrait-bio",
|
|
10218
|
-
"feature-cards-
|
|
10219
|
-
"feature-cards-editorial-columns",
|
|
10220
|
-
"feature-cards-photo-tiles",
|
|
10215
|
+
"feature-cards-bold-colors",
|
|
10221
10216
|
"testimonials-non-carded",
|
|
10222
10217
|
"faq-contained-help",
|
|
10223
10218
|
"contact-form-panel"
|
|
@@ -10861,8 +10856,7 @@ const curatedSiteStyles = [
|
|
|
10861
10856
|
"intro-portrait-bio",
|
|
10862
10857
|
"feature-cards-editorial-columns",
|
|
10863
10858
|
"feature-cards-editorial-diptych",
|
|
10864
|
-
"feature-cards-
|
|
10865
|
-
"feature-cards-soft-panels",
|
|
10859
|
+
"feature-cards-bold-colors",
|
|
10866
10860
|
"events-lined-panel",
|
|
10867
10861
|
"testimonials-non-carded",
|
|
10868
10862
|
"faq-base-accordion",
|
|
@@ -11644,6 +11638,16 @@ function isRecord$8(value) {
|
|
|
11644
11638
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11645
11639
|
}
|
|
11646
11640
|
//#endregion
|
|
11641
|
+
//#region ../core/src/booking-payment-options.ts
|
|
11642
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
11643
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
11644
|
+
if (kinds.length === 0) return err("no_options");
|
|
11645
|
+
const uniqueKinds = new Set(kinds);
|
|
11646
|
+
if (uniqueKinds.size !== kinds.length) return err("duplicate_kind");
|
|
11647
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err("incompatible_collection_options");
|
|
11648
|
+
return ok(void 0);
|
|
11649
|
+
}
|
|
11650
|
+
//#endregion
|
|
11647
11651
|
//#region ../core/src/booking-time-zone.ts
|
|
11648
11652
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
11649
11653
|
const timeZoneValidityCache = /* @__PURE__ */ new Map();
|
|
@@ -13196,6 +13200,34 @@ function withLookCapability(declaration) {
|
|
|
13196
13200
|
}
|
|
13197
13201
|
};
|
|
13198
13202
|
}
|
|
13203
|
+
/**
|
|
13204
|
+
* The section background paints a block's own `_sectionStyles.background`
|
|
13205
|
+
* field admits, read from its manifest so the design capability cannot drift
|
|
13206
|
+
* from what render admission accepts. A block without the field admits none.
|
|
13207
|
+
*/
|
|
13208
|
+
function sectionBackgroundPaintsOfFields(fields) {
|
|
13209
|
+
const sectionStyles = fields.find((field) => field.id === "_sectionStyles");
|
|
13210
|
+
if (!sectionStyles || sectionStyles.type !== "modal") return [];
|
|
13211
|
+
const background = sectionStyles.schema.fields.find((field) => field.id === "background");
|
|
13212
|
+
if (!background || background.type !== "tabGroup") return [];
|
|
13213
|
+
const tabIds = new Set(background.tabs.map((tab) => tab.id));
|
|
13214
|
+
return [
|
|
13215
|
+
"color",
|
|
13216
|
+
"gradient",
|
|
13217
|
+
"image"
|
|
13218
|
+
].filter((paint) => tabIds.has(paint));
|
|
13219
|
+
}
|
|
13220
|
+
/** Pins a designed capability's section background paints to the block's manifest. */
|
|
13221
|
+
function withManifestSectionBackgroundPaints(declaration, fields) {
|
|
13222
|
+
if (declaration.kind !== "capability") return declaration;
|
|
13223
|
+
return {
|
|
13224
|
+
kind: "capability",
|
|
13225
|
+
capability: {
|
|
13226
|
+
...declaration.capability,
|
|
13227
|
+
sectionBackgroundPaints: sectionBackgroundPaintsOfFields(fields)
|
|
13228
|
+
}
|
|
13229
|
+
};
|
|
13230
|
+
}
|
|
13199
13231
|
function declareNoBlockDesignCapability(reason) {
|
|
13200
13232
|
return {
|
|
13201
13233
|
kind: "none",
|
|
@@ -19963,6 +19995,20 @@ const footerEngagement = stack({
|
|
|
19963
19995
|
...footerSpamProtectionBinding
|
|
19964
19996
|
}), [], when("module.engagement.kind", { equals: "mailing-list" }))
|
|
19965
19997
|
], when("module.kind", { equals: "engagement" }));
|
|
19998
|
+
const platformAttribution = el("div", {
|
|
19999
|
+
className: "rb-caption",
|
|
20000
|
+
"data-site-attribution": "macadamia"
|
|
20001
|
+
}, [
|
|
20002
|
+
text({ as: "span" }, bind("module.lead")),
|
|
20003
|
+
text({
|
|
20004
|
+
as: "span",
|
|
20005
|
+
value: " "
|
|
20006
|
+
}),
|
|
20007
|
+
link({
|
|
20008
|
+
href: { $bind: { from: "module.link.href" } },
|
|
20009
|
+
className: "footer-nav-link rb-caption transition-theme-standard"
|
|
20010
|
+
}, [text({ as: "span" }, bind("module.link.label"))])
|
|
20011
|
+
], when("module.kind", { equals: "attribution" }));
|
|
19966
20012
|
const footerGroup = stack({
|
|
19967
20013
|
gap: "md",
|
|
19968
20014
|
align: "stretch",
|
|
@@ -19992,6 +20038,7 @@ const footerGroup = stack({
|
|
|
19992
20038
|
hours,
|
|
19993
20039
|
socials,
|
|
19994
20040
|
footerEngagement,
|
|
20041
|
+
platformAttribution,
|
|
19995
20042
|
stack({ className: "rb-w-full" }, [authoredCopy], when("module.kind", { equals: "supporting-text" })),
|
|
19996
20043
|
stack({ className: "rb-w-full rb-lg-col-span-3" }, [authoredCopy], when("module.kind", { equals: "legal" }))
|
|
19997
20044
|
], repeat("group.modules", "module"))], repeat("region.groups", "group"));
|
|
@@ -22000,68 +22047,115 @@ function createRichTextDocFromMarkdown(markdown) {
|
|
|
22000
22047
|
};
|
|
22001
22048
|
}
|
|
22002
22049
|
//#endregion
|
|
22003
|
-
//#region ../
|
|
22004
|
-
const
|
|
22005
|
-
const
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
intervalUnit: z.enum([
|
|
22012
|
-
"day",
|
|
22013
|
-
"week",
|
|
22014
|
-
"month"
|
|
22015
|
-
])
|
|
22016
|
-
}),
|
|
22017
|
-
z.object({
|
|
22018
|
-
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
22019
|
-
depositAmountCents: z.number().int().min(0),
|
|
22020
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
22021
|
-
instalmentCount: z.number().int().positive(),
|
|
22022
|
-
intervalCount: z.number().int().positive(),
|
|
22023
|
-
intervalUnit: z.enum([
|
|
22024
|
-
"day",
|
|
22025
|
-
"week",
|
|
22026
|
-
"month"
|
|
22027
|
-
])
|
|
22028
|
-
}),
|
|
22029
|
-
z.object({
|
|
22030
|
-
kind: z.literal("equal_scheduled_instalments"),
|
|
22031
|
-
instalmentCount: z.number().int().positive(),
|
|
22032
|
-
intervalCount: z.number().int().positive(),
|
|
22033
|
-
intervalUnit: z.enum([
|
|
22034
|
-
"day",
|
|
22035
|
-
"week",
|
|
22036
|
-
"month"
|
|
22037
|
-
])
|
|
22038
|
-
})
|
|
22050
|
+
//#region ../core/src/booking-payment-schemas.ts
|
|
22051
|
+
const stripObject = (shape) => z.object(shape);
|
|
22052
|
+
const strictObject = (shape) => z.strictObject(shape);
|
|
22053
|
+
const depositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
22054
|
+
const intervalUnitSchema = z.enum([
|
|
22055
|
+
"day",
|
|
22056
|
+
"week",
|
|
22057
|
+
"month"
|
|
22039
22058
|
]);
|
|
22040
|
-
const
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
|
|
22064
|
-
|
|
22059
|
+
const nonNegativeIntegerSchema = z.number().int().nonnegative();
|
|
22060
|
+
const positiveIntegerSchema = z.number().int().positive();
|
|
22061
|
+
function createInstalmentPlanSchema(object) {
|
|
22062
|
+
return z.discriminatedUnion("kind", [
|
|
22063
|
+
object({
|
|
22064
|
+
kind: z.literal("deposit_plus_one_remainder"),
|
|
22065
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
22066
|
+
depositRefundability: depositRefundPolicySchema,
|
|
22067
|
+
remainderDueCount: positiveIntegerSchema,
|
|
22068
|
+
intervalUnit: intervalUnitSchema
|
|
22069
|
+
}),
|
|
22070
|
+
object({
|
|
22071
|
+
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
22072
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
22073
|
+
depositRefundability: depositRefundPolicySchema,
|
|
22074
|
+
instalmentCount: positiveIntegerSchema,
|
|
22075
|
+
intervalCount: positiveIntegerSchema,
|
|
22076
|
+
intervalUnit: intervalUnitSchema
|
|
22077
|
+
}),
|
|
22078
|
+
object({
|
|
22079
|
+
kind: z.literal("equal_scheduled_instalments"),
|
|
22080
|
+
instalmentCount: positiveIntegerSchema,
|
|
22081
|
+
intervalCount: positiveIntegerSchema,
|
|
22082
|
+
intervalUnit: intervalUnitSchema
|
|
22083
|
+
})
|
|
22084
|
+
]);
|
|
22085
|
+
}
|
|
22086
|
+
function createFlexibleBalanceSchemas(object) {
|
|
22087
|
+
const dueDateRule = z.discriminatedUnion("kind", [object({
|
|
22088
|
+
kind: z.literal("relative_to_start_date"),
|
|
22089
|
+
daysBeforeStart: positiveIntegerSchema
|
|
22090
|
+
}), object({
|
|
22091
|
+
kind: z.literal("fixed_calendar_date"),
|
|
22092
|
+
dueAt: z.string().datetime()
|
|
22093
|
+
})]);
|
|
22094
|
+
return {
|
|
22095
|
+
dueDateRule,
|
|
22096
|
+
config: object({
|
|
22097
|
+
upfrontAmountCents: nonNegativeIntegerSchema,
|
|
22098
|
+
dueDateRule,
|
|
22099
|
+
depositRefundability: depositRefundPolicySchema
|
|
22100
|
+
})
|
|
22101
|
+
};
|
|
22102
|
+
}
|
|
22103
|
+
const paymentOptionKindsMessages = {
|
|
22104
|
+
no_options: "Choose at least one way for customers to pay.",
|
|
22105
|
+
duplicate_kind: "Choose each payment option only once.",
|
|
22106
|
+
incompatible_collection_options: "Offer instalments or a deposit with the rest paid later, but not both."
|
|
22107
|
+
};
|
|
22108
|
+
function buildBookingPaymentOptionSchemas(object) {
|
|
22109
|
+
const instalmentPlan = createInstalmentPlanSchema(object);
|
|
22110
|
+
const flexibleBalance = createFlexibleBalanceSchemas(object);
|
|
22111
|
+
const paymentCollectionOption = z.discriminatedUnion("kind", [
|
|
22112
|
+
object({ kind: z.literal("upfront") }),
|
|
22113
|
+
object({ kind: z.literal("deferred_manual") }),
|
|
22114
|
+
object({
|
|
22115
|
+
kind: z.literal("instalment_plan"),
|
|
22116
|
+
plan: instalmentPlan
|
|
22117
|
+
}),
|
|
22118
|
+
object({
|
|
22119
|
+
kind: z.literal("flexible_balance"),
|
|
22120
|
+
config: flexibleBalance.config
|
|
22121
|
+
})
|
|
22122
|
+
]);
|
|
22123
|
+
const paymentTerms = object({ allowedOptions: z.array(paymentCollectionOption) }).superRefine(({ allowedOptions }, ctx) => {
|
|
22124
|
+
const result = validateBookingPaymentOptionKinds(allowedOptions.map(({ kind }) => kind));
|
|
22125
|
+
if (!result.ok) ctx.addIssue({
|
|
22126
|
+
code: "custom",
|
|
22127
|
+
path: ["allowedOptions"],
|
|
22128
|
+
message: paymentOptionKindsMessages[result.error]
|
|
22129
|
+
});
|
|
22130
|
+
});
|
|
22131
|
+
const paymentOptionsChoice = z.discriminatedUnion("source", [z.strictObject({ source: z.literal("default") }), z.strictObject({
|
|
22132
|
+
source: z.literal("custom"),
|
|
22133
|
+
paymentTerms
|
|
22134
|
+
})]);
|
|
22135
|
+
return {
|
|
22136
|
+
depositRefundPolicy: depositRefundPolicySchema,
|
|
22137
|
+
instalmentPlan,
|
|
22138
|
+
flexibleBalanceDueDateRule: flexibleBalance.dueDateRule,
|
|
22139
|
+
flexibleBalanceConfig: flexibleBalance.config,
|
|
22140
|
+
paymentCollectionOption,
|
|
22141
|
+
paymentTerms,
|
|
22142
|
+
paymentOptionsChoice
|
|
22143
|
+
};
|
|
22144
|
+
}
|
|
22145
|
+
function createBookingPaymentOptionSchemas(mode) {
|
|
22146
|
+
return mode === "strict" ? buildBookingPaymentOptionSchemas(strictObject) : buildBookingPaymentOptionSchemas(stripObject);
|
|
22147
|
+
}
|
|
22148
|
+
const bookingPaymentOptionSchemas = createBookingPaymentOptionSchemas("strip");
|
|
22149
|
+
bookingPaymentOptionSchemas.depositRefundPolicy;
|
|
22150
|
+
bookingPaymentOptionSchemas.instalmentPlan;
|
|
22151
|
+
bookingPaymentOptionSchemas.flexibleBalanceDueDateRule;
|
|
22152
|
+
bookingPaymentOptionSchemas.flexibleBalanceConfig;
|
|
22153
|
+
bookingPaymentOptionSchemas.paymentCollectionOption;
|
|
22154
|
+
const bookingPaymentTermsSchema = bookingPaymentOptionSchemas.paymentTerms;
|
|
22155
|
+
bookingPaymentOptionSchemas.paymentOptionsChoice;
|
|
22156
|
+
//#endregion
|
|
22157
|
+
//#region ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
|
|
22158
|
+
const blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
|
|
22065
22159
|
//#endregion
|
|
22066
22160
|
//#region ../blocks/src/system/blocks/shared/bookingConsent.ts
|
|
22067
22161
|
const blockBookingConsentSchema = z.object({
|
|
@@ -22663,7 +22757,7 @@ const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassP
|
|
|
22663
22757
|
/**
|
|
22664
22758
|
* Public membership product for shop display
|
|
22665
22759
|
*/
|
|
22666
|
-
const
|
|
22760
|
+
const publicMembershipProductFields = {
|
|
22667
22761
|
id: z.string(),
|
|
22668
22762
|
name: z.string(),
|
|
22669
22763
|
description: z.string().nullable(),
|
|
@@ -22672,7 +22766,16 @@ const publicMembershipProductSchema = z.object({
|
|
|
22672
22766
|
billingInterval: z.enum(["month", "year"]),
|
|
22673
22767
|
eligibleCategoryIds: z.array(z.string()),
|
|
22674
22768
|
eligibleCategoryNames: z.array(z.string())
|
|
22769
|
+
};
|
|
22770
|
+
const purchasablePublicMembershipProductSchema = z.object({
|
|
22771
|
+
...publicMembershipProductFields,
|
|
22772
|
+
purchaseAvailability: z.literal("purchasable")
|
|
22675
22773
|
});
|
|
22774
|
+
const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
22775
|
+
...publicMembershipProductFields,
|
|
22776
|
+
purchaseAvailability: z.literal("display_only"),
|
|
22777
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
22778
|
+
})]);
|
|
22676
22779
|
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
22677
22780
|
//#endregion
|
|
22678
22781
|
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
@@ -22872,14 +22975,18 @@ const calendarTabViewsSchema = z.enum([
|
|
|
22872
22975
|
* @param needsPaymentStep - Whether user must complete payment method selection
|
|
22873
22976
|
* @returns Array of wizard steps to display
|
|
22874
22977
|
*/
|
|
22875
|
-
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
22978
|
+
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep, paymentActive = false) {
|
|
22876
22979
|
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : [
|
|
22877
22980
|
"select-event",
|
|
22878
22981
|
"select-tickets",
|
|
22879
22982
|
"enter-details"
|
|
22880
22983
|
];
|
|
22881
22984
|
if (!needsPaymentStep) return baseSteps;
|
|
22882
|
-
return [
|
|
22985
|
+
return paymentActive ? [
|
|
22986
|
+
...baseSteps,
|
|
22987
|
+
"select-payment",
|
|
22988
|
+
"payment"
|
|
22989
|
+
] : [...baseSteps, "select-payment"];
|
|
22883
22990
|
}
|
|
22884
22991
|
//#endregion
|
|
22885
22992
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
@@ -22998,6 +23105,7 @@ const EVENT_REGISTRATION_SHELL_STEP_LABELS = [
|
|
|
22998
23105
|
"Date",
|
|
22999
23106
|
"Tickets",
|
|
23000
23107
|
"Details",
|
|
23108
|
+
"Payment options",
|
|
23001
23109
|
"Payment"
|
|
23002
23110
|
];
|
|
23003
23111
|
const eventRegistrationPublicEventSchema = z.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
@@ -23140,12 +23248,13 @@ function shellLabelForRegistrationStep(step, events) {
|
|
|
23140
23248
|
switch (step) {
|
|
23141
23249
|
case "select-event": return isDateSelection(events) ? "Date" : "Event";
|
|
23142
23250
|
case "select-tickets": return "Tickets";
|
|
23251
|
+
case "fully-booked":
|
|
23143
23252
|
case "enter-details": return "Details";
|
|
23144
|
-
case "select-payment": return "Payment";
|
|
23253
|
+
case "select-payment": return "Payment options";
|
|
23254
|
+
case "payment": return "Payment";
|
|
23145
23255
|
case "error":
|
|
23146
23256
|
case "success":
|
|
23147
23257
|
case "submitting":
|
|
23148
|
-
case "redirecting":
|
|
23149
23258
|
case "verifying-payment":
|
|
23150
23259
|
case "verifying-timeout":
|
|
23151
23260
|
case "payment-status":
|
|
@@ -23157,7 +23266,7 @@ function isDateSelection(events) {
|
|
|
23157
23266
|
return Boolean(events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId));
|
|
23158
23267
|
}
|
|
23159
23268
|
function buildEventRegistrationShellBodyText(stepLabels) {
|
|
23160
|
-
if (stepLabels.includes("Payment")) return "Preparing tickets, details, and payment options.";
|
|
23269
|
+
if (stepLabels.includes("Payment options")) return "Preparing tickets, details, and payment options.";
|
|
23161
23270
|
if (stepLabels[0] === "Tickets") return "Preparing tickets and booking details.";
|
|
23162
23271
|
return "Preparing dates, tickets, and booking details.";
|
|
23163
23272
|
}
|
|
@@ -25107,7 +25216,8 @@ const eventCalendarLayout = [styledSection({
|
|
|
25107
25216
|
fallback: false
|
|
25108
25217
|
} },
|
|
25109
25218
|
banded: { $bind: {
|
|
25110
|
-
from: "content
|
|
25219
|
+
from: "content",
|
|
25220
|
+
transforms: [{ id: "events.calendarBanded" }],
|
|
25111
25221
|
fallback: false
|
|
25112
25222
|
} }
|
|
25113
25223
|
}))]
|
|
@@ -28442,7 +28552,7 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
28442
28552
|
product: pass
|
|
28443
28553
|
} : {
|
|
28444
28554
|
kind: "unavailable",
|
|
28445
|
-
label: "Online purchasing
|
|
28555
|
+
label: "Online purchasing is unavailable."
|
|
28446
28556
|
}
|
|
28447
28557
|
};
|
|
28448
28558
|
});
|
|
@@ -28452,7 +28562,14 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
28452
28562
|
description: options.showDescriptions ? membership.description : null,
|
|
28453
28563
|
priceLabel: formatCommercePrice(membership.price, membership.currency),
|
|
28454
28564
|
intervalLabel: formatInterval(membership.billingInterval),
|
|
28455
|
-
|
|
28565
|
+
action: membership.purchaseAvailability === "purchasable" ? {
|
|
28566
|
+
kind: "purchase",
|
|
28567
|
+
label: options.membershipActionLabel,
|
|
28568
|
+
product: membership
|
|
28569
|
+
} : {
|
|
28570
|
+
kind: "unavailable",
|
|
28571
|
+
label: "Online purchasing is unavailable."
|
|
28572
|
+
}
|
|
28456
28573
|
}));
|
|
28457
28574
|
return {
|
|
28458
28575
|
kind: "passes-memberships",
|
|
@@ -28672,7 +28789,14 @@ const membershipCardDisplaySchema = z.object({
|
|
|
28672
28789
|
description: z.string().nullable(),
|
|
28673
28790
|
priceLabel: z.string(),
|
|
28674
28791
|
intervalLabel: z.string(),
|
|
28675
|
-
|
|
28792
|
+
action: z.discriminatedUnion("kind", [z.object({
|
|
28793
|
+
kind: z.literal("purchase"),
|
|
28794
|
+
label: z.string(),
|
|
28795
|
+
product: purchasablePublicMembershipProductSchema
|
|
28796
|
+
}), z.object({
|
|
28797
|
+
kind: z.literal("unavailable"),
|
|
28798
|
+
label: z.string()
|
|
28799
|
+
})])
|
|
28676
28800
|
});
|
|
28677
28801
|
const passesMembershipsDisplaySchema = z.object({
|
|
28678
28802
|
kind: z.literal("passes-memberships"),
|
|
@@ -31310,7 +31434,7 @@ function withDesignCapability(blockKind, definition, designCapability, designMet
|
|
|
31310
31434
|
if (definition.manifest.name !== blockKind) throw new Error(`System block kind mismatch: expected ${blockKind}, received ${definition.manifest.name}.`);
|
|
31311
31435
|
return {
|
|
31312
31436
|
...definition,
|
|
31313
|
-
designCapability,
|
|
31437
|
+
designCapability: withManifestSectionBackgroundPaints(designCapability, definition.manifest.fields),
|
|
31314
31438
|
designMetadata,
|
|
31315
31439
|
manifest: {
|
|
31316
31440
|
...definition.manifest,
|
package/dist/server/prebuild.mjs
CHANGED