@riverbankcms/sdk 0.147.0 → 0.149.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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DtpB3_sS.mjs → PreviewEditorSidebar-DBKln68M.mjs} +301 -205
- package/dist/{PreviewEditorUI-DxTLgaHo.mjs → PreviewEditorUI-DpRX4Mum.mjs} +68 -63
- package/dist/{PreviewQueryProvider-Dd4dxOiU.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DMMNCngt.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +1247 -541
- package/dist/{SiteChromeCustomizeContext-DQXZXiqS.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +209720 -204978
- package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -33
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +0 -3
- package/dist/_dts/api/src/accessAdmin.d.ts +0 -4
- package/dist/_dts/api/src/accountApi.d.ts +1 -1
- package/dist/_dts/api/src/admin.d.ts +22 -22
- package/dist/_dts/api/src/aiPatch.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -0
- package/dist/_dts/api/src/analytics.d.ts +2 -2
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +2 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/auth.d.ts +10 -10
- package/dist/_dts/api/src/availability.d.ts +6 -6
- package/dist/_dts/api/src/billing.d.ts +42 -15
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +15 -6
- package/dist/_dts/api/src/blocks.d.ts +15 -14
- package/dist/_dts/api/src/blocksKeys.d.ts +2 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -50
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +9 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +16 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/bookings.d.ts +7 -7
- package/dist/_dts/api/src/calendar.d.ts +9 -9
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +7 -8
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/content-editor.d.ts +2 -2
- package/dist/_dts/api/src/contentEntries.d.ts +17 -48
- package/dist/_dts/api/src/contentRuntime.d.ts +51 -37
- package/dist/_dts/api/src/contentTypes.d.ts +11 -11
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +6 -6
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/documentLifecycle.d.ts +67 -0
- package/dist/_dts/api/src/domains.d.ts +16 -16
- package/dist/_dts/api/src/editLeaseEndpoints.d.ts +72 -0
- package/dist/_dts/api/src/emailSettings.d.ts +4 -4
- package/dist/_dts/api/src/endpoints.d.ts +135 -51
- package/dist/_dts/api/src/eventEmailTemplates.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +29 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +0 -8
- package/dist/_dts/api/src/eventPageWords.d.ts +7 -12
- package/dist/_dts/api/src/footerSettings.d.ts +6 -6
- package/dist/_dts/api/src/index.d.ts +8 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +5 -5
- package/dist/_dts/api/src/pageSurfaceEditorEndpoints.d.ts +55 -0
- package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +28 -7
- package/dist/_dts/api/src/pages.d.ts +7 -7
- package/dist/_dts/api/src/performance.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +1 -1
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +4 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +6 -29
- package/dist/_dts/api/src/redirects.d.ts +3 -3
- package/dist/_dts/api/src/request.d.ts +11 -2
- package/dist/_dts/api/src/resources.d.ts +4 -4
- package/dist/_dts/api/src/routes.d.ts +8 -3
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -2
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +21 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -28
- package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/sdkEventOccurrenceRequestContracts.d.ts +43 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +4 -2
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +9 -2
- package/dist/_dts/api/src/seo.d.ts +4 -4
- package/dist/_dts/api/src/services.d.ts +4 -4
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +15 -8
- package/dist/_dts/api/src/siteMembers.d.ts +10 -10
- package/dist/_dts/api/src/siteOnboarding.d.ts +14 -0
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -12
- package/dist/_dts/api/src/siteRuntimeEntry.d.ts +31 -0
- package/dist/_dts/billing/src/checkout/platform.d.ts +77 -0
- package/dist/_dts/billing/src/components/index.d.ts +25 -40
- package/dist/_dts/billing/src/membership/index.d.ts +1 -3
- package/dist/_dts/billing/src/plans/entitlements.d.ts +80 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +16 -16
- package/dist/_dts/billing/src/plans/standing.d.ts +9 -2
- package/dist/_dts/billing/src/plans/types.d.ts +5 -15
- package/dist/_dts/billing/src/site-arrangements.d.ts +2 -2
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +2 -4
- package/dist/_dts/billing/src/subscriptions/store.d.ts +17 -11
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +6 -7
- package/dist/_dts/block-form/src/backend/types.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +3 -1
- package/dist/_dts/blocks/src/client/events.d.ts +3 -0
- 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 +54 -14
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +4 -13
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -8
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +28 -28
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +7 -2
- 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/runtime/api/client.d.ts +2 -2
- 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 +4 -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 +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/components/booking/SuccessMessage.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +72 -12
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +36 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/usePolling.d.ts +7 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.checkout-return-context.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +17 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-actions.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.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/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +4 -1
- 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/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +37 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +16 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardPresentations.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +29 -29
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +54 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoBookingPortalAccess.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/DemoPortalSignInLink.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoBookingPassStorage.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +29 -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/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/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -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 +3 -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/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -7
- package/dist/_dts/content-editor/src/controller/EditLeaseController.d.ts +39 -0
- package/dist/_dts/content-editor/src/controller/EditorWriteGate.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +25 -61
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseBanner.d.ts +7 -0
- package/dist/_dts/content-editor/src/controller/LinkedEntryLeaseControllers.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/deriveEditorUnpublishedState.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/documentValueBaseline.d.ts +25 -0
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/controller/editLeaseLossSignal.d.ts +6 -0
- package/dist/_dts/content-editor/src/controller/editLeaseNotice.d.ts +28 -0
- package/dist/_dts/content-editor/src/controller/editorClientId.d.ts +2 -0
- package/dist/_dts/content-editor/src/controller/editorEditability.d.ts +38 -0
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/normalizedMetadataBaseline.d.ts +29 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceDocumentBaselines.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/pageSurfaceLifecycle.d.ts +11 -0
- package/dist/_dts/content-editor/src/controller/planDocumentBaselineRefresh.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/readDocumentLeaseBaselines.d.ts +19 -0
- package/dist/_dts/content-editor/src/controller/refreshDocumentLeaseBaseline.d.ts +12 -0
- package/dist/_dts/content-editor/src/controller/refreshLinkedEntry.d.ts +17 -0
- package/dist/_dts/content-editor/src/controller/replayRestoredEditorEffects.d.ts +2 -3
- package/dist/_dts/content-editor/src/controller/routeWrites.d.ts +26 -0
- package/dist/_dts/content-editor/src/controller/useAutosaveTriggers.d.ts +16 -17
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +6 -2
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useEntryValueAutosaves.d.ts +21 -0
- package/dist/_dts/content-editor/src/controller/useInitialEditorUiStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/controller/useServerBaselineReconciliation.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/blockDraftLifecycle.d.ts +8 -47
- package/dist/_dts/content-editor/src/hooks/editLeaseMachine.d.ts +120 -0
- package/dist/_dts/content-editor/src/hooks/publishability.d.ts +6 -10
- package/dist/_dts/content-editor/src/hooks/useAutosaveStatus.d.ts +3 -0
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +5 -15
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +7 -5
- package/dist/_dts/content-editor/src/hooks/useEditLease.d.ts +28 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +25 -39
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +17 -19
- package/dist/_dts/content-editor/src/hooks/useLinkedEntryAutosave.d.ts +5 -8
- package/dist/_dts/content-editor/src/hooks/useValueAutosave.d.ts +64 -0
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +0 -7
- package/dist/_dts/content-editor/src/index.d.ts +26 -7
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/content-editor/src/linkedEntries/domain.d.ts +12 -0
- package/dist/_dts/content-editor/src/linkedEntries/owner.d.ts +9 -0
- package/dist/_dts/content-editor/src/liveDrafts/draftProjection.d.ts +66 -0
- package/dist/_dts/content-editor/src/liveDrafts/linkedSaveHandovers.d.ts +37 -0
- package/dist/_dts/content-editor/src/liveDrafts/remoteDraftOverlay.d.ts +113 -0
- package/dist/_dts/content-editor/src/liveDrafts/useLiveDrafts.d.ts +32 -0
- package/dist/_dts/content-editor/src/liveDrafts/useRetentionTicks.d.ts +7 -0
- package/dist/_dts/content-editor/src/primitives/shared/activePreviewField.d.ts +6 -0
- package/dist/_dts/content-editor/src/primitives/shared/storeBinding.d.ts +1 -0
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +96 -19
- package/dist/_dts/content-editor/src/services/editorApiClient.d.ts +13 -0
- package/dist/_dts/content-editor/src/services/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/services/pageSurfaceEditorServices.d.ts +23 -0
- package/dist/_dts/content-editor/src/sync/flushValues.d.ts +13 -0
- package/dist/_dts/content-editor/src/sync/lifecycleFailure.d.ts +51 -0
- package/dist/_dts/content-editor/src/sync/runLifecycle.d.ts +64 -0
- package/dist/_dts/content-editor/src/sync/schedulerValues.d.ts +27 -0
- package/dist/_dts/content-editor/src/sync/sendPlanning.d.ts +104 -0
- package/dist/_dts/content-editor/src/sync/valueSync.d.ts +114 -0
- package/dist/_dts/content-editor/src/ui/blockCollection.d.ts +8 -0
- package/dist/_dts/content-editor/src/ui/documentLifecycle.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/editorLeaseUiState.d.ts +7 -0
- package/dist/_dts/content-editor/src/ui/editorRefresh.d.ts +82 -0
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +102 -127
- package/dist/_dts/content-editor/src/ui/editorTransactionState.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +126 -72
- package/dist/_dts/content-editor/src/ui/editorValueSnapshot.d.ts +18 -0
- package/dist/_dts/content-editor/src/ui/serverBlockAdmission.d.ts +26 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +16 -27
- package/dist/_dts/content-editor/src/ui/stores/blockVersionsStore.d.ts +24 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedEntryLeaseStore.d.ts +54 -0
- package/dist/_dts/content-editor/src/ui/stores/linkedSaveHandoversStore.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/stores/remoteDraftsStore.d.ts +10 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +63 -3
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +2 -2
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +4 -4
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +4 -4
- package/dist/_dts/content-model/src/definitions/shared.d.ts +11 -2
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/serializeAllowedBlocks.d.ts +2 -0
- package/dist/_dts/content-model/src/metadataConfig.d.ts +10 -38
- package/dist/_dts/content-model/src/templates/defaults.d.ts +0 -1
- package/dist/_dts/content-model/src/types.d.ts +0 -1
- package/dist/_dts/core/src/block-content-identity.d.ts +49 -1
- 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 +15 -0
- package/dist/_dts/core/src/currency-format.d.ts +8 -2
- package/dist/_dts/core/src/demo-lifecycle-status.d.ts +2 -2
- package/dist/_dts/core/src/demo-warm-pool-target.d.ts +8 -0
- package/dist/_dts/core/src/edit-lease.d.ts +60 -0
- package/dist/_dts/core/src/editor-state.d.ts +38 -13
- package/dist/_dts/core/src/editor-value-sync.d.ts +79 -0
- package/dist/_dts/core/src/html-entities.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +7 -0
- package/dist/_dts/core/src/uuid.d.ts +7 -5
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +456 -189
- package/dist/_dts/editor/src/EditorProvider.d.ts +5 -0
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +14 -0
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +1 -0
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +0 -1
- package/dist/_dts/editor/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +10 -9
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardFrame.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/applyExtendedFieldDefaults.d.ts +3 -4
- package/dist/_dts/editor-blocks/src/block-editor/blockDraftBaselineSeed.d.ts +4 -8
- package/dist/_dts/editor-blocks/src/block-editor/editorBlockItem.d.ts +23 -0
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +2 -7
- package/dist/_dts/editor-blocks/src/block-editor/hooks/applyBlockStructureChange.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +14 -5
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +21 -19
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -10
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +8 -16
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +6 -16
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +37 -9
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +3 -2
- package/dist/_dts/media-core/src/fileStorage.d.ts +4 -0
- 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/context.d.ts +1 -1
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -2
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/media-editor/src/provider.d.ts +3 -2
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +8 -3
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +6 -3
- package/dist/_dts/preview-next/src/client/blocks/linkedEntryRenderOverlay.d.ts +22 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/entryFieldRebinding.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/blocks/renderPrecedence.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/blocks/useLinkedSaveHandoverRetention.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAccessBanners.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +23 -14
- package/dist/_dts/preview-next/src/client/preview/PreviewLeaseEditingMode.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeAutosave.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/sdkConfig.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/usePreviewCustomizeWorkflowState.d.ts +4 -0
- 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/realtime/src/client.d.ts +3 -0
- package/dist/_dts/realtime/src/draftChannel.d.ts +91 -0
- package/dist/_dts/realtime/src/drafts.d.ts +210 -0
- package/dist/_dts/realtime/src/index.d.ts +3 -0
- package/dist/_dts/realtime/src/leaseChangeSubscriptions.d.ts +8 -0
- package/dist/_dts/realtime/src/types.d.ts +113 -0
- package/dist/_dts/realtime/src/useDraftChannel.d.ts +34 -0
- package/dist/_dts/realtime/src/useSiteRealtimeReload.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -55
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -0
- 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/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- 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-1n4Ch_u_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +504 -163
- package/dist/client/DemoBookingPortalAccess-BFGB1Fay.mjs +344 -0
- package/dist/client/{EventCombined.client-C0pgma9y.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-4fhLOvHP.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DScC4F3w.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-B5ZUsYhe.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-DoVIV1Ao.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-CoT5g7zo.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-BWxB46xD.mjs → bookingForm-CjZgHNvv.mjs} +216 -63
- package/dist/client/bookings.mjs +1187 -692
- package/dist/client/{carousel-DtNYWFd3.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-z4qZih1Y.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-DpL7euFH.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/{checkoutUrls-BEfR7kVu.mjs → checkoutUrls-CXhko2Rv.mjs} +1 -1
- package/dist/client/client.mjs +2711 -1684
- package/dist/client/{context-C8TinPJc.mjs → context-DFmaZa-Q.mjs} +4 -3
- package/dist/client/{dates-vwwxTeB0.mjs → dates-BBep1JnF.mjs} +56 -11
- package/dist/client/{eventCalendar-DIbHfJXO.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-DoGMJ6cg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-BjN9v6a1.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-DajjWgOv.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-DMq9gMA-.mjs → eventRegistration-O6ZxHfOb.mjs} +422 -570
- package/dist/client/{form-Qf6qTbos.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-D7qJrqFX.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +414 -182
- package/dist/client/{locationMap-CCF9-t_0.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{media-CwBGetqC.mjs → media-Cl38iOMI.mjs} +10 -3
- package/dist/client/{newsletterForm-DzCLSP4S.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-Cgxv2KLC.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-ru9w5GHx.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-zaapKSl-.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-CwvvNOHx.mjs → propsDecoder-DZd6RJeA.mjs} +244 -94
- package/dist/client/rendering/client.mjs +2656 -1705
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +3430 -2352
- package/dist/client/{routeIslandApiConfig-BwVFo0Y4.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-mktkXvbV.mjs → shop-4F2jLQPI.mjs} +131 -85
- package/dist/client/{shop-commerce-De7gEnkA.mjs → shop-commerce-BbfCJjB3.mjs} +25 -13
- package/dist/client/{shop-commerce-store-B3MCxIBW.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-TqExh235.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-n_OjkIjX.mjs → useEventFilters-COYyL3m7.mjs} +32 -17
- package/dist/preview-next/before-render.mjs +207 -105
- 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 +341 -165
- package/dist/preview-next/middleware.mjs +207 -105
- package/dist/{previewAuthStore-C_EHQ5XA.mjs → previewAuthStore-BBmV7UsW.mjs} +243 -112
- package/dist/{sdk-runtime-BIkJg5y1.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-C9qDP95Z.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +1839 -1475
- package/dist/server/config-validation.mjs +381 -166
- package/dist/server/config.mjs +381 -166
- package/dist/server/data.mjs +381 -166
- package/dist/server/index.mjs +214 -110
- package/dist/server/next.mjs +663 -351
- package/dist/server/page-converter.mjs +198 -79
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1536 -1169
- package/dist/server/rendering.mjs +2432 -2068
- package/dist/server/routing.mjs +456 -173
- package/dist/server/server.mjs +447 -267
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/billing/src/plans/display.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +0 -3
- 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/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +0 -4
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +0 -16
- package/dist/_dts/content-editor/src/controller/driver.d.ts +0 -14
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +0 -7
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +0 -29
- package/dist/_dts/content-editor/src/hooks/autosaveScopePlanning.d.ts +0 -26
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +0 -64
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +0 -48
- package/dist/_dts/content-editor/src/types.d.ts +0 -44
- package/dist/client/DiscountCodeDisclosure-CKJtz0mY.mjs +0 -137
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as textColorStyle } from "./colorStyles-j5U9v5JA.mjs";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { n as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DZd6RJeA.mjs";
|
|
3
|
+
import { n as ThemedButtonLink } from "./ThemedButton-CKV1Jh2m.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
5
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
5
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-CFLPkP0K.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../core/src/location.ts
|
|
@@ -12,11 +12,18 @@ function isReservedPathSegment(value) {
|
|
|
12
12
|
function isUnsafePathSegment(segment) {
|
|
13
13
|
return segment.trim().length === 0 || segment !== segment.trim() || isReservedPathSegment(segment) || containsUnsafePathSegmentCharacter(segment);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../media-core/src/fileStorage.ts
|
|
17
|
+
const FILE_STORAGE_BUCKETS = {
|
|
16
18
|
publicSite: unsafeAsStorageBucketName("media"),
|
|
17
19
|
privateSite: unsafeAsStorageBucketName("site-files-private"),
|
|
18
|
-
temporary: unsafeAsStorageBucketName("temp-uploads")
|
|
19
|
-
|
|
20
|
+
temporary: unsafeAsStorageBucketName("temp-uploads"),
|
|
21
|
+
siteAssets: unsafeAsStorageBucketName("site-assets"),
|
|
22
|
+
siteFonts: unsafeAsStorageBucketName("site-fonts"),
|
|
23
|
+
bookingRequirementDocuments: unsafeAsStorageBucketName("booking-requirement-documents")
|
|
24
|
+
};
|
|
25
|
+
FILE_STORAGE_BUCKETS.publicSite, FILE_STORAGE_BUCKETS.siteAssets, FILE_STORAGE_BUCKETS.siteFonts;
|
|
26
|
+
FILE_STORAGE_BUCKETS.publicSite, FILE_STORAGE_BUCKETS.privateSite, FILE_STORAGE_BUCKETS.temporary, FILE_STORAGE_BUCKETS.siteAssets, FILE_STORAGE_BUCKETS.siteFonts, FILE_STORAGE_BUCKETS.bookingRequirementDocuments;
|
|
20
27
|
function parseStoragePath(value) {
|
|
21
28
|
return joinStoragePathSegments(value.split("/"));
|
|
22
29
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { O as clsx } from "./colorStyles-j5U9v5JA.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-
|
|
3
|
+
import { $t as parseMailingListVisitorSelection, Tn as assertNever$1, Wt as assertNever, g as newsletterBlockSubmissionMessage, h as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, t as defineIslandPropsDecoder } from "./propsDecoder-DZd6RJeA.mjs";
|
|
4
|
+
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-DFmaZa-Q.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
-
import { t as ThemedButton } from "./ThemedButton-
|
|
6
|
+
import { t as ThemedButton } from "./ThemedButton-CKV1Jh2m.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
8
8
|
import { i as getFieldValidationControlProps, r as FieldValidationMessage, t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-DZSHZrm6.mjs";
|
|
9
9
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gn as formatEventPricing, hn as formatBookingPriceDisplay, yn as publicEventPricingDisplay } from "./propsDecoder-DZd6RJeA.mjs";
|
|
2
2
|
//#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
|
|
3
3
|
/**
|
|
4
4
|
* Compute remaining spots for an event from `availableSpots` with a fallback
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
3
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DZd6RJeA.mjs";
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-BbfCJjB3.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-DlONJt0T.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
3
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DZd6RJeA.mjs";
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-BbfCJjB3.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-DlONJt0T.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -27,6 +27,19 @@ const CURRENCY_LOCALE_BY_CODE = {
|
|
|
27
27
|
function resolveCurrencyLocale(currencyCode, override) {
|
|
28
28
|
return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
|
|
29
29
|
}
|
|
30
|
+
function fractionDigitsFor(decimals, exactFormatter) {
|
|
31
|
+
switch (decimals) {
|
|
32
|
+
case "exact": return {};
|
|
33
|
+
case "auto": return {
|
|
34
|
+
minimumFractionDigits: 0,
|
|
35
|
+
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
36
|
+
};
|
|
37
|
+
case "whole": return {
|
|
38
|
+
minimumFractionDigits: 0,
|
|
39
|
+
maximumFractionDigits: 0
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
30
43
|
/**
|
|
31
44
|
* The single currency-amount formatter for the product: minor units in,
|
|
32
45
|
* localized string out.
|
|
@@ -37,6 +50,13 @@ function resolveCurrencyLocale(currencyCode, override) {
|
|
|
37
50
|
* own `Intl.NumberFormat`.
|
|
38
51
|
*/
|
|
39
52
|
function formatCurrencyAmount(amountCents, currency, options) {
|
|
53
|
+
return formatCurrencyMajorUnits(amountCents / 100, currency, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
|
|
57
|
+
* such as a registrar price. Prefer minor units everywhere else.
|
|
58
|
+
*/
|
|
59
|
+
function formatCurrencyMajorUnits(amount, currency, options) {
|
|
40
60
|
const currencyCode = currency.toUpperCase();
|
|
41
61
|
const locale = resolveCurrencyLocale(currencyCode, options?.locale);
|
|
42
62
|
try {
|
|
@@ -44,17 +64,13 @@ function formatCurrencyAmount(amountCents, currency, options) {
|
|
|
44
64
|
style: "currency",
|
|
45
65
|
currency: currencyCode
|
|
46
66
|
});
|
|
47
|
-
const fractionDigits = options?.decimals === "auto" ? {
|
|
48
|
-
minimumFractionDigits: 0,
|
|
49
|
-
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
50
|
-
} : {};
|
|
51
67
|
return new Intl.NumberFormat(locale, {
|
|
52
68
|
style: "currency",
|
|
53
69
|
currency: currencyCode,
|
|
54
|
-
...
|
|
55
|
-
}).format(
|
|
70
|
+
...fractionDigitsFor(options?.decimals ?? "exact", exactFormatter)
|
|
71
|
+
}).format(amount);
|
|
56
72
|
} catch {
|
|
57
|
-
return `${
|
|
73
|
+
return `${amount.toFixed(2)} ${currencyCode}`;
|
|
58
74
|
}
|
|
59
75
|
}
|
|
60
76
|
//#endregion
|
|
@@ -341,6 +357,16 @@ function isRecord$9(value) {
|
|
|
341
357
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
342
358
|
}
|
|
343
359
|
//#endregion
|
|
360
|
+
//#region ../core/src/booking-payment-options.ts
|
|
361
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
362
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
363
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
364
|
+
const uniqueKinds = new Set(kinds);
|
|
365
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
366
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
367
|
+
return ok$1(void 0);
|
|
368
|
+
}
|
|
369
|
+
//#endregion
|
|
344
370
|
//#region ../core/src/booking-time-zone.ts
|
|
345
371
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
346
372
|
const timeZoneValidityCache = /* @__PURE__ */ new Map();
|
|
@@ -1566,7 +1592,7 @@ function resolveAppointmentCheckoutVerificationState(input) {
|
|
|
1566
1592
|
tag: "timeout",
|
|
1567
1593
|
sessionId: input.config.sessionId,
|
|
1568
1594
|
appointmentId,
|
|
1569
|
-
message: "
|
|
1595
|
+
message: "We’re still confirming your payment. This can take a minute – you can check again, and you won’t be charged twice."
|
|
1570
1596
|
};
|
|
1571
1597
|
if (input.pollingStatus === "failed") {
|
|
1572
1598
|
if (paymentStatus === "refunded") return {
|
|
@@ -1630,7 +1656,7 @@ function deriveBookingFormViewState(input) {
|
|
|
1630
1656
|
message: input.verificationState.message
|
|
1631
1657
|
};
|
|
1632
1658
|
case "timeout": return {
|
|
1633
|
-
kind: "
|
|
1659
|
+
kind: "timeout",
|
|
1634
1660
|
message: input.verificationState.message
|
|
1635
1661
|
};
|
|
1636
1662
|
case "confirmed": return {
|
|
@@ -1801,19 +1827,17 @@ function getBookingServicePaymentSelectionMode(service) {
|
|
|
1801
1827
|
if (service?.paymentTermsAvailability?.kind === "pending_stripe_setup") return "pending_stripe_setup";
|
|
1802
1828
|
const allowedKinds = service?.paymentTerms?.allowedOptions.map((option) => option.kind) ?? [];
|
|
1803
1829
|
if (allowedKinds.length === 0) return "implicit_upfront";
|
|
1804
|
-
if (allowedKinds.
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1830
|
+
if (!validateBookingPaymentOptionKinds(allowedKinds).ok) return "unsupported";
|
|
1831
|
+
if (allowedKinds.length > 1) return "choice_required";
|
|
1832
|
+
const onlyKind = allowedKinds[0];
|
|
1833
|
+
switch (onlyKind) {
|
|
1834
|
+
case "upfront": return "implicit_upfront";
|
|
1835
|
+
case "deferred_manual": return "implicit_deferred_manual";
|
|
1836
|
+
case "instalment_plan": return "implicit_instalment_plan";
|
|
1837
|
+
case "flexible_balance": return "implicit_flexible_balance";
|
|
1838
|
+
case void 0: return "unsupported";
|
|
1839
|
+
default: return assertNever$1(onlyKind);
|
|
1814
1840
|
}
|
|
1815
|
-
if (allowedKinds.length === 2 && allowedKinds.includes("upfront") && (allowedKinds.includes("deferred_manual") || allowedKinds.includes("instalment_plan") || allowedKinds.includes("flexible_balance"))) return "choice_required";
|
|
1816
|
-
return "unsupported";
|
|
1817
1841
|
}
|
|
1818
1842
|
function resolveDefaultBookingServiceId(formConfig, services) {
|
|
1819
1843
|
const configuredServiceId = toTrimmedString(formConfig?.settings?.serviceId);
|
|
@@ -1988,8 +2012,54 @@ function formatBookingSubmissionPreparationError(error) {
|
|
|
1988
2012
|
default: return assertNever$1(error);
|
|
1989
2013
|
}
|
|
1990
2014
|
}
|
|
1991
|
-
|
|
1992
|
-
|
|
2015
|
+
const DEFAULT_BOOKING_SUCCESS_COPY = {
|
|
2016
|
+
message: "Your booking has been confirmed.",
|
|
2017
|
+
defaultEmailSentence: "Check your email for details."
|
|
2018
|
+
};
|
|
2019
|
+
const DEFAULT_BOOKING_SUCCESS_MESSAGE = "Your booking has been confirmed. Check your email for details.";
|
|
2020
|
+
const DEFAULT_REGISTRATION_SUCCESS_COPY = {
|
|
2021
|
+
message: "Thank you for registering!",
|
|
2022
|
+
defaultEmailSentence: "Check your email for confirmation details."
|
|
2023
|
+
};
|
|
2024
|
+
const DEFAULT_REGISTRATION_SUCCESS_MESSAGE = "Thank you for registering! Check your email for confirmation details.";
|
|
2025
|
+
const DEFAULT_REGISTRATION_EMAIL_SENTENCE = "Check your email for confirmation details.";
|
|
2026
|
+
function getBookingSuccessCopy(successMessage) {
|
|
2027
|
+
const customMessage = successMessage?.trim();
|
|
2028
|
+
return customMessage && customMessage !== DEFAULT_BOOKING_SUCCESS_MESSAGE ? { message: customMessage } : DEFAULT_BOOKING_SUCCESS_COPY;
|
|
2029
|
+
}
|
|
2030
|
+
function getRegistrationSuccessCopy(result, fallback) {
|
|
2031
|
+
const isWaitlist = result?.status === "waitlist";
|
|
2032
|
+
const isInfo = result?.variant === "info";
|
|
2033
|
+
const includesEmailSentence = !isWaitlist && !isInfo;
|
|
2034
|
+
const responseMessage = result?.message;
|
|
2035
|
+
const trimmedResponseMessage = responseMessage?.trim();
|
|
2036
|
+
if ((isWaitlist || isInfo) && trimmedResponseMessage) {
|
|
2037
|
+
const emailFollowupMessage = result?.emailFollowupMessage;
|
|
2038
|
+
return {
|
|
2039
|
+
message: responseMessage ?? "",
|
|
2040
|
+
...emailFollowupMessage?.trim() ? { defaultEmailSentence: emailFollowupMessage } : {}
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
if (trimmedResponseMessage === DEFAULT_REGISTRATION_SUCCESS_MESSAGE) return includesEmailSentence ? DEFAULT_REGISTRATION_SUCCESS_COPY : { message: DEFAULT_REGISTRATION_SUCCESS_COPY.message };
|
|
2044
|
+
if (trimmedResponseMessage) return includesEmailSentence ? registrationCopyWithEmail(trimmedResponseMessage) : { message: trimmedResponseMessage };
|
|
2045
|
+
const fallbackMessage = fallback?.trim();
|
|
2046
|
+
if (fallbackMessage && fallbackMessage !== DEFAULT_REGISTRATION_SUCCESS_MESSAGE) return { message: fallbackMessage };
|
|
2047
|
+
return includesEmailSentence ? DEFAULT_REGISTRATION_SUCCESS_COPY : { message: DEFAULT_REGISTRATION_SUCCESS_COPY.message };
|
|
2048
|
+
}
|
|
2049
|
+
function registrationCopyWithEmail(message) {
|
|
2050
|
+
return {
|
|
2051
|
+
message,
|
|
2052
|
+
defaultEmailSentence: DEFAULT_REGISTRATION_EMAIL_SENTENCE
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2055
|
+
function getShopSuccessCopy(outcome) {
|
|
2056
|
+
switch (outcome) {
|
|
2057
|
+
case "success": return {
|
|
2058
|
+
message: "",
|
|
2059
|
+
defaultEmailSentence: "Check your email for confirmation."
|
|
2060
|
+
};
|
|
2061
|
+
case "cancelled": return { message: "You can try again whenever you’re ready." };
|
|
2062
|
+
}
|
|
1993
2063
|
}
|
|
1994
2064
|
//#endregion
|
|
1995
2065
|
//#region ../blocks/src/system/runtime/nodes/booking-form.service-categories.ts
|
|
@@ -2084,68 +2154,115 @@ const bookingSourceFormSchema = z.object({
|
|
|
2084
2154
|
updatedAt: z.string()
|
|
2085
2155
|
});
|
|
2086
2156
|
//#endregion
|
|
2087
|
-
//#region ../
|
|
2088
|
-
const
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
intervalUnit: z.enum([
|
|
2096
|
-
"day",
|
|
2097
|
-
"week",
|
|
2098
|
-
"month"
|
|
2099
|
-
])
|
|
2100
|
-
}),
|
|
2101
|
-
z.object({
|
|
2102
|
-
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
2103
|
-
depositAmountCents: z.number().int().min(0),
|
|
2104
|
-
depositRefundability: bookingDepositRefundPolicySchema,
|
|
2105
|
-
instalmentCount: z.number().int().positive(),
|
|
2106
|
-
intervalCount: z.number().int().positive(),
|
|
2107
|
-
intervalUnit: z.enum([
|
|
2108
|
-
"day",
|
|
2109
|
-
"week",
|
|
2110
|
-
"month"
|
|
2111
|
-
])
|
|
2112
|
-
}),
|
|
2113
|
-
z.object({
|
|
2114
|
-
kind: z.literal("equal_scheduled_instalments"),
|
|
2115
|
-
instalmentCount: z.number().int().positive(),
|
|
2116
|
-
intervalCount: z.number().int().positive(),
|
|
2117
|
-
intervalUnit: z.enum([
|
|
2118
|
-
"day",
|
|
2119
|
-
"week",
|
|
2120
|
-
"month"
|
|
2121
|
-
])
|
|
2122
|
-
})
|
|
2123
|
-
]);
|
|
2124
|
-
const bookingFlexibleBalanceDueDateRuleSchema = z.union([z.object({
|
|
2125
|
-
kind: z.literal("relative_to_start_date"),
|
|
2126
|
-
daysBeforeStart: z.number().int().positive()
|
|
2127
|
-
}), z.object({
|
|
2128
|
-
kind: z.literal("fixed_calendar_date"),
|
|
2129
|
-
dueAt: z.string().datetime()
|
|
2130
|
-
})]);
|
|
2131
|
-
const bookingFlexibleBalanceConfigSchema = z.object({
|
|
2132
|
-
upfrontAmountCents: z.number().int().min(0),
|
|
2133
|
-
dueDateRule: bookingFlexibleBalanceDueDateRuleSchema,
|
|
2134
|
-
depositRefundability: bookingDepositRefundPolicySchema
|
|
2135
|
-
});
|
|
2136
|
-
const blockBookingPaymentCollectionOptionSchema = z.union([
|
|
2137
|
-
z.object({ kind: z.literal("upfront") }),
|
|
2138
|
-
z.object({ kind: z.literal("deferred_manual") }),
|
|
2139
|
-
z.object({
|
|
2140
|
-
kind: z.literal("instalment_plan"),
|
|
2141
|
-
plan: bookingInstalmentPlanSchema
|
|
2142
|
-
}),
|
|
2143
|
-
z.object({
|
|
2144
|
-
kind: z.literal("flexible_balance"),
|
|
2145
|
-
config: bookingFlexibleBalanceConfigSchema
|
|
2146
|
-
})
|
|
2157
|
+
//#region ../core/src/booking-payment-schemas.ts
|
|
2158
|
+
const stripObject = (shape) => z.object(shape);
|
|
2159
|
+
const strictObject = (shape) => z.strictObject(shape);
|
|
2160
|
+
const depositRefundPolicySchema = z.enum(["refundable", "non_refundable"]);
|
|
2161
|
+
const intervalUnitSchema = z.enum([
|
|
2162
|
+
"day",
|
|
2163
|
+
"week",
|
|
2164
|
+
"month"
|
|
2147
2165
|
]);
|
|
2148
|
-
const
|
|
2166
|
+
const nonNegativeIntegerSchema = z.number().int().nonnegative();
|
|
2167
|
+
const positiveIntegerSchema = z.number().int().positive();
|
|
2168
|
+
function createInstalmentPlanSchema(object) {
|
|
2169
|
+
return z.discriminatedUnion("kind", [
|
|
2170
|
+
object({
|
|
2171
|
+
kind: z.literal("deposit_plus_one_remainder"),
|
|
2172
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
2173
|
+
depositRefundability: depositRefundPolicySchema,
|
|
2174
|
+
remainderDueCount: positiveIntegerSchema,
|
|
2175
|
+
intervalUnit: intervalUnitSchema
|
|
2176
|
+
}),
|
|
2177
|
+
object({
|
|
2178
|
+
kind: z.literal("deposit_plus_scheduled_instalments"),
|
|
2179
|
+
depositAmountCents: nonNegativeIntegerSchema,
|
|
2180
|
+
depositRefundability: depositRefundPolicySchema,
|
|
2181
|
+
instalmentCount: positiveIntegerSchema,
|
|
2182
|
+
intervalCount: positiveIntegerSchema,
|
|
2183
|
+
intervalUnit: intervalUnitSchema
|
|
2184
|
+
}),
|
|
2185
|
+
object({
|
|
2186
|
+
kind: z.literal("equal_scheduled_instalments"),
|
|
2187
|
+
instalmentCount: positiveIntegerSchema,
|
|
2188
|
+
intervalCount: positiveIntegerSchema,
|
|
2189
|
+
intervalUnit: intervalUnitSchema
|
|
2190
|
+
})
|
|
2191
|
+
]);
|
|
2192
|
+
}
|
|
2193
|
+
function createFlexibleBalanceSchemas(object) {
|
|
2194
|
+
const dueDateRule = z.discriminatedUnion("kind", [object({
|
|
2195
|
+
kind: z.literal("relative_to_start_date"),
|
|
2196
|
+
daysBeforeStart: positiveIntegerSchema
|
|
2197
|
+
}), object({
|
|
2198
|
+
kind: z.literal("fixed_calendar_date"),
|
|
2199
|
+
dueAt: z.string().datetime()
|
|
2200
|
+
})]);
|
|
2201
|
+
return {
|
|
2202
|
+
dueDateRule,
|
|
2203
|
+
config: object({
|
|
2204
|
+
upfrontAmountCents: nonNegativeIntegerSchema,
|
|
2205
|
+
dueDateRule,
|
|
2206
|
+
depositRefundability: depositRefundPolicySchema
|
|
2207
|
+
})
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
const paymentOptionKindsMessages = {
|
|
2211
|
+
no_options: "Choose at least one way for customers to pay.",
|
|
2212
|
+
duplicate_kind: "Choose each payment option only once.",
|
|
2213
|
+
incompatible_collection_options: "Offer instalments or a deposit with the rest paid later, but not both."
|
|
2214
|
+
};
|
|
2215
|
+
function buildBookingPaymentOptionSchemas(object) {
|
|
2216
|
+
const instalmentPlan = createInstalmentPlanSchema(object);
|
|
2217
|
+
const flexibleBalance = createFlexibleBalanceSchemas(object);
|
|
2218
|
+
const paymentCollectionOption = z.discriminatedUnion("kind", [
|
|
2219
|
+
object({ kind: z.literal("upfront") }),
|
|
2220
|
+
object({ kind: z.literal("deferred_manual") }),
|
|
2221
|
+
object({
|
|
2222
|
+
kind: z.literal("instalment_plan"),
|
|
2223
|
+
plan: instalmentPlan
|
|
2224
|
+
}),
|
|
2225
|
+
object({
|
|
2226
|
+
kind: z.literal("flexible_balance"),
|
|
2227
|
+
config: flexibleBalance.config
|
|
2228
|
+
})
|
|
2229
|
+
]);
|
|
2230
|
+
const paymentTerms = object({ allowedOptions: z.array(paymentCollectionOption) }).superRefine(({ allowedOptions }, ctx) => {
|
|
2231
|
+
const result = validateBookingPaymentOptionKinds(allowedOptions.map(({ kind }) => kind));
|
|
2232
|
+
if (!result.ok) ctx.addIssue({
|
|
2233
|
+
code: "custom",
|
|
2234
|
+
path: ["allowedOptions"],
|
|
2235
|
+
message: paymentOptionKindsMessages[result.error]
|
|
2236
|
+
});
|
|
2237
|
+
});
|
|
2238
|
+
const paymentOptionsChoice = z.discriminatedUnion("source", [z.strictObject({ source: z.literal("default") }), z.strictObject({
|
|
2239
|
+
source: z.literal("custom"),
|
|
2240
|
+
paymentTerms
|
|
2241
|
+
})]);
|
|
2242
|
+
return {
|
|
2243
|
+
depositRefundPolicy: depositRefundPolicySchema,
|
|
2244
|
+
instalmentPlan,
|
|
2245
|
+
flexibleBalanceDueDateRule: flexibleBalance.dueDateRule,
|
|
2246
|
+
flexibleBalanceConfig: flexibleBalance.config,
|
|
2247
|
+
paymentCollectionOption,
|
|
2248
|
+
paymentTerms,
|
|
2249
|
+
paymentOptionsChoice
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2252
|
+
function createBookingPaymentOptionSchemas(mode) {
|
|
2253
|
+
return mode === "strict" ? buildBookingPaymentOptionSchemas(strictObject) : buildBookingPaymentOptionSchemas(stripObject);
|
|
2254
|
+
}
|
|
2255
|
+
const bookingPaymentOptionSchemas = createBookingPaymentOptionSchemas("strip");
|
|
2256
|
+
bookingPaymentOptionSchemas.depositRefundPolicy;
|
|
2257
|
+
bookingPaymentOptionSchemas.instalmentPlan;
|
|
2258
|
+
bookingPaymentOptionSchemas.flexibleBalanceDueDateRule;
|
|
2259
|
+
bookingPaymentOptionSchemas.flexibleBalanceConfig;
|
|
2260
|
+
bookingPaymentOptionSchemas.paymentCollectionOption;
|
|
2261
|
+
const bookingPaymentTermsSchema = bookingPaymentOptionSchemas.paymentTerms;
|
|
2262
|
+
bookingPaymentOptionSchemas.paymentOptionsChoice;
|
|
2263
|
+
//#endregion
|
|
2264
|
+
//#region ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
|
|
2265
|
+
const blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
|
|
2149
2266
|
//#endregion
|
|
2150
2267
|
//#region ../blocks/src/system/runtime/nodes/booking-form.interactive.ts
|
|
2151
2268
|
const blockBookingPaymentTermsAvailabilitySchema = z.union([z.object({
|
|
@@ -2199,6 +2316,7 @@ const bookingMailingListContextSchema = z.unknown().transform((value) => {
|
|
|
2199
2316
|
return parsed.ok ? parsed.value : void 0;
|
|
2200
2317
|
});
|
|
2201
2318
|
const bookingSourceSchema = z.object({
|
|
2319
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
2202
2320
|
mailingList: bookingMailingListContextSchema.optional(),
|
|
2203
2321
|
siteName: z.string().optional(),
|
|
2204
2322
|
siteId: z.string().optional(),
|
|
@@ -2229,6 +2347,7 @@ const bookingDisplaySchema = z.object({
|
|
|
2229
2347
|
message: z.string().nullable()
|
|
2230
2348
|
});
|
|
2231
2349
|
const bookingHydrationSchema = z.object({
|
|
2350
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
2232
2351
|
mailingList: bookingMailingListContextSchema.optional(),
|
|
2233
2352
|
siteName: z.string().optional(),
|
|
2234
2353
|
formId: z.string().nullable(),
|
|
@@ -2278,6 +2397,7 @@ const bookingFormInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
|
2278
2397
|
return {
|
|
2279
2398
|
display: buildBookingFormDisplay(source, form),
|
|
2280
2399
|
hydration: {
|
|
2400
|
+
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
2281
2401
|
mailingList: source.mailingList,
|
|
2282
2402
|
siteName: source.siteName,
|
|
2283
2403
|
formId: form?.id ?? source.formId ?? null,
|
|
@@ -6957,7 +7077,6 @@ const publicEventBaseSchema = z.object({
|
|
|
6957
7077
|
description: z.string().nullable(),
|
|
6958
7078
|
content: z.object({ body: RichTextDocSchema.nullable().optional() }).optional(),
|
|
6959
7079
|
presentation: z.object({
|
|
6960
|
-
cardTitleOverride: z.string().nullable().optional(),
|
|
6961
7080
|
summary: z.string().nullable().optional(),
|
|
6962
7081
|
image: mediaSchema.nullable().optional()
|
|
6963
7082
|
}).optional(),
|
|
@@ -6990,6 +7109,7 @@ const publicEventBaseSchema = z.object({
|
|
|
6990
7109
|
"archived"
|
|
6991
7110
|
]).optional(),
|
|
6992
7111
|
timeZone: z.string(),
|
|
7112
|
+
siteTimeZone: z.string().optional(),
|
|
6993
7113
|
pricing: publicEventPricingSchema,
|
|
6994
7114
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
6995
7115
|
cancellationPolicy: z.object({ refunds: z.object({
|
|
@@ -8062,7 +8182,7 @@ const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassP
|
|
|
8062
8182
|
/**
|
|
8063
8183
|
* Public membership product for shop display
|
|
8064
8184
|
*/
|
|
8065
|
-
const
|
|
8185
|
+
const publicMembershipProductFields = {
|
|
8066
8186
|
id: z.string(),
|
|
8067
8187
|
name: z.string(),
|
|
8068
8188
|
description: z.string().nullable(),
|
|
@@ -8071,7 +8191,16 @@ const publicMembershipProductSchema = z.object({
|
|
|
8071
8191
|
billingInterval: z.enum(["month", "year"]),
|
|
8072
8192
|
eligibleCategoryIds: z.array(z.string()),
|
|
8073
8193
|
eligibleCategoryNames: z.array(z.string())
|
|
8194
|
+
};
|
|
8195
|
+
const purchasablePublicMembershipProductSchema = z.object({
|
|
8196
|
+
...publicMembershipProductFields,
|
|
8197
|
+
purchaseAvailability: z.literal("purchasable")
|
|
8074
8198
|
});
|
|
8199
|
+
const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
8200
|
+
...publicMembershipProductFields,
|
|
8201
|
+
purchaseAvailability: z.literal("display_only"),
|
|
8202
|
+
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
8203
|
+
})]);
|
|
8075
8204
|
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
8076
8205
|
//#endregion
|
|
8077
8206
|
//#region ../blocks/src/system/node/schema.ts
|
|
@@ -11100,6 +11229,7 @@ const EVENT_REGISTRATION_SHELL_STEP_LABELS = [
|
|
|
11100
11229
|
];
|
|
11101
11230
|
const eventRegistrationPublicEventSchema = z.preprocess(normalizeEventRegistrationEventInput, publicEventSchema);
|
|
11102
11231
|
const eventRegistrationHydrationSchemaShape = {
|
|
11232
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
11103
11233
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
11104
11234
|
subject: eventRegistrationPageSurfaceSubjectSchema.nullable().optional(),
|
|
11105
11235
|
maxTickets: z.string().optional(),
|
|
@@ -11281,6 +11411,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
11281
11411
|
...eventSource,
|
|
11282
11412
|
events: [...scopedSourceEvents]
|
|
11283
11413
|
} : eventSource,
|
|
11414
|
+
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
11284
11415
|
maxTickets: source.maxTickets ?? void 0,
|
|
11285
11416
|
showVenue: source.showVenue,
|
|
11286
11417
|
showCapacity: source.showCapacity,
|
|
@@ -12273,7 +12404,7 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
12273
12404
|
product: pass
|
|
12274
12405
|
} : {
|
|
12275
12406
|
kind: "unavailable",
|
|
12276
|
-
label: "Online purchasing
|
|
12407
|
+
label: "Online purchasing is unavailable."
|
|
12277
12408
|
}
|
|
12278
12409
|
};
|
|
12279
12410
|
});
|
|
@@ -12283,7 +12414,14 @@ function buildPassesMembershipsDisplay(options) {
|
|
|
12283
12414
|
description: options.showDescriptions ? membership.description : null,
|
|
12284
12415
|
priceLabel: formatCommercePrice(membership.price, membership.currency),
|
|
12285
12416
|
intervalLabel: formatInterval(membership.billingInterval),
|
|
12286
|
-
|
|
12417
|
+
action: membership.purchaseAvailability === "purchasable" ? {
|
|
12418
|
+
kind: "purchase",
|
|
12419
|
+
label: options.membershipActionLabel,
|
|
12420
|
+
product: membership
|
|
12421
|
+
} : {
|
|
12422
|
+
kind: "unavailable",
|
|
12423
|
+
label: "Online purchasing is unavailable."
|
|
12424
|
+
}
|
|
12287
12425
|
}));
|
|
12288
12426
|
return {
|
|
12289
12427
|
kind: "passes-memberships",
|
|
@@ -12435,6 +12573,7 @@ const shopSourceSchema = z.object({
|
|
|
12435
12573
|
memberships: z.array(publicMembershipProductSchema).nullable().optional(),
|
|
12436
12574
|
products: z.array(publicProductSchema).nullable().optional(),
|
|
12437
12575
|
siteId: z.string().optional(),
|
|
12576
|
+
demoEmailSuppressed: z.boolean().optional(),
|
|
12438
12577
|
apiBaseUrl: z.string().optional(),
|
|
12439
12578
|
readAuthority: browserReadAuthoritySchema.optional(),
|
|
12440
12579
|
stage: previewStageSchema.optional()
|
|
@@ -12502,7 +12641,14 @@ const membershipCardDisplaySchema = z.object({
|
|
|
12502
12641
|
description: z.string().nullable(),
|
|
12503
12642
|
priceLabel: z.string(),
|
|
12504
12643
|
intervalLabel: z.string(),
|
|
12505
|
-
|
|
12644
|
+
action: z.discriminatedUnion("kind", [z.object({
|
|
12645
|
+
kind: z.literal("purchase"),
|
|
12646
|
+
label: z.string(),
|
|
12647
|
+
product: purchasablePublicMembershipProductSchema
|
|
12648
|
+
}), z.object({
|
|
12649
|
+
kind: z.literal("unavailable"),
|
|
12650
|
+
label: z.string()
|
|
12651
|
+
})])
|
|
12506
12652
|
});
|
|
12507
12653
|
const passesMembershipsDisplaySchema = z.object({
|
|
12508
12654
|
kind: z.literal("passes-memberships"),
|
|
@@ -12554,7 +12700,8 @@ const checkoutDisplaySchema = z.object({
|
|
|
12554
12700
|
const passesMembershipsHydrationSchema = z.object({
|
|
12555
12701
|
memberships: z.array(publicMembershipProductSchema),
|
|
12556
12702
|
passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
|
|
12557
|
-
buttonVariant: blockButtonRoleSchema
|
|
12703
|
+
buttonVariant: blockButtonRoleSchema,
|
|
12704
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
12558
12705
|
});
|
|
12559
12706
|
const productListHydrationSchema = z.object({
|
|
12560
12707
|
products: z.array(publicProductSchema),
|
|
@@ -12576,7 +12723,8 @@ const cartHydrationSchema = z.object({
|
|
|
12576
12723
|
});
|
|
12577
12724
|
const checkoutHydrationSchema = z.object({
|
|
12578
12725
|
emptyStateText: z.string(),
|
|
12579
|
-
submitButtonText: z.string()
|
|
12726
|
+
submitButtonText: z.string(),
|
|
12727
|
+
demoEmailSuppressed: z.boolean().optional()
|
|
12580
12728
|
});
|
|
12581
12729
|
const passesMembershipsRenderSchema = z.object({
|
|
12582
12730
|
display: passesMembershipsDisplaySchema,
|
|
@@ -12644,7 +12792,8 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
12644
12792
|
hydration: {
|
|
12645
12793
|
memberships: source.showMemberships === false ? [] : source.memberships ?? [],
|
|
12646
12794
|
passPurchaseMode,
|
|
12647
|
-
buttonVariant: source.buttonVariant ?? "primary"
|
|
12795
|
+
buttonVariant: source.buttonVariant ?? "primary",
|
|
12796
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
12648
12797
|
}
|
|
12649
12798
|
};
|
|
12650
12799
|
}
|
|
@@ -12737,7 +12886,8 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
12737
12886
|
}),
|
|
12738
12887
|
hydration: {
|
|
12739
12888
|
emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
|
|
12740
|
-
submitButtonText: source.submitButtonText ?? "Checkout"
|
|
12889
|
+
submitButtonText: source.submitButtonText ?? "Checkout",
|
|
12890
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
12741
12891
|
}
|
|
12742
12892
|
})
|
|
12743
12893
|
});
|
|
@@ -12835,4 +12985,4 @@ function defineIslandPropsDecoder(kind) {
|
|
|
12835
12985
|
};
|
|
12836
12986
|
}
|
|
12837
12987
|
//#endregion
|
|
12838
|
-
export { getContainerClass as $,
|
|
12988
|
+
export { getContainerClass as $, parseMailingListVisitorSelection as $t, buildEventCalendarListingRender as A, isBookingServiceSlidingAmountInRange as At, calendarWindowBounds as B, BOOKING_FORM_DATA_RESERVED_KEYS as Bt, resolveDiscountContext as C, formatCurrencyAmount as Cn, formatBookingSubmissionPreparationError as Ct, WIZARD_STEPS as D, getBookingSuccessCopy as Dt, toRegistrationRequestSubject as E, getBookingServiceSlidingScale as Et, resolveSpacing as F, resolveBookingSiteId as Ft, createHostedBlockApiConfig as G, clearWorkflowFeedback as Gt, calendarWindowPageSchema as H, RichTextDocSchema as Ht, calendarMonthDate as I, resolveDefaultBookingServiceId as It, getEventRuntimeFiltersKey as J, okWith as Jt, getBlockApiReadStage as K, err as Kt, calendarMonthKey as L, toSelectedCollectionOptionKind as Lt, resolveEventRegistrationScopedEvents as M, prepareBookingSubmission as Mt, SEMANTIC_SPACING_VALUES as N, resolveAppointmentCheckoutVerificationState as Nt, getStepNumber as O, getRegistrationSuccessCopy as Ot, isSemanticSpacing as P, resolveBookingPaymentStep as Pt, getCardOrientation as Q, resolveWholeSeriesBookingPhase as Qt, calendarPageResponseError as R, projectSelectedAppointmentConsentIntoForm as Rt, findPreSelectedEvent as S, publicEventPricingType as Sn, formatBookingCentsAsCurrencyInput as St, resolveRegistrationTarget as T, assertNever$2 as Tn, getBookingServicePaymentSelectionMode as Tt, planCalendarMonthRanges as U, isRecord$5 as Ut, calendarWindowMonths as V, isBookingRequirementConsentFieldId as Vt, resolveCalendarReadProfile as W, assertNever$1 as Wt, normalizeCsvString as X, reportWorkflowSuccess as Xt, normalizeCsvIds as Y, reportWorkflowError as Yt, normalizeOptionalId as Z, CANCELLED_SESSION_STATUS as Zt, buildEventRegistrationDisplayFromScopedEvents as _, isPublicEventPricingOptionDisplayable as _n, themeButtonSizeClassName as _t, buildProductDetailDisplay as a, formatBookingInstant as an, getDayOfWeek as at, toWholeSeriesRegistrationEvents as b, publicEventPricingOptions as bn, logger as bt, EMPTY_COMMERCE_CART_STATE as c, getBookingLocalDateKey as cn, isSameCalendarDay as ct, deriveCommerceCheckoutState as d, resolveBookingTimeZoneId as dn, resolveRuntimeEventDestination as dt, resolveBookingSignupOffer as en, MONTH_NAMES as et, parseStoredCommerceCartState as f, toBookingTimeZone as fn, groupPublicEventsByRun as ft, newsletterBlockSubmissionMessage as g, formatEventPricing as gn, resolveTokenOrCssColorValue as gt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as h, formatBookingPriceDisplay as hn, resolveOnColorForThemeToken as ht, buildProductCardDisplay as i, formatBookingDateTime as in, formatDateKey as it, staticHeaderChromeRuntime as j, parseBookingCurrencyInputToCents as jt, getWizardStepsForContext as k, getShopSuccessCopy as kt, buildPassCartItem as l, getLocalScheduleDate as ln, isToday as lt, reduceCommerceCart as m, toScheduledBookingDateTime as mn, isCssColorLiteral as mt, getShopDisplayForItems as n, formatBookingDate as nn, addMonths as nt, formatCommercePrice as o, formatBookingTime as on, getOrderedDayNames as ot, productItemKey as p, toScheduledBookingDateRange as pn, boxBackgroundSchema as pt, buildEventRuntimeFilters as q, ok as qt, buildCartDisplay as r, formatBookingDateParts as rn, buildCalendarViewport as rt, formatInterval as s, formatLocalScheduleDate as sn, getWeekCalendarDays as st, defineIslandPropsDecoder as t, addLocalScheduleDays as tn, addDays as tt, buildProductCartItem as u, parseBookingLocalDate as un, shiftCalendarAnchorDate as ut, getRegistrationStartAt as v, publicEventPricingCurrency as vn, themeButtonVariantClassNames as vt, resolveEventRequiresPayment as w, parseCurrencyCode as wn, getBookingRedirectStateFromLocation as wt, findEventByOccurrenceId as x, publicEventPricingStrategy as xn, deriveBookingFormViewState as xt, toRegistrationEvents as y, publicEventPricingDisplay as yn, normalizeCardRole as yt, calendarQueryKey as z, resolveSelectedAppointmentConsent as zt };
|