@riverbankcms/sdk 0.138.0 → 0.140.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 +12 -16
- package/dist/{PreviewEditorSidebar-BVPur_CU.mjs → PreviewEditorSidebar-CUyTzd5z.mjs} +4 -4
- package/dist/{PreviewEditorUI-DLhWX8oh.mjs → PreviewEditorUI-Agkw4v5i.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BguJY1SW.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Tda6qw4z.mjs → SdkPreviewModeRuntime-DdbeAdS8.mjs} +62 -28
- package/dist/{SiteChromeCustomizeContext-BHFgMjde.mjs → SiteChromeCustomizeContext-CqGOz-Kv.mjs} +8467 -5616
- package/dist/_dts/ai/src/contracts/proposals.d.ts +264 -495
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +221 -242
- package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
- package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/authSubmission.d.ts +46 -0
- package/dist/_dts/api/src/billing.d.ts +18 -7
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
- package/dist/_dts/api/src/blocks.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
- package/dist/_dts/api/src/communications.d.ts +0 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +16 -4
- package/dist/_dts/api/src/endpoints.d.ts +275 -167
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerSettings.d.ts +10 -10
- package/dist/_dts/api/src/index.d.ts +11 -10
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/mailchimpIntegration.d.ts +2 -59
- package/dist/_dts/api/src/mailingListIntegration.d.ts +123 -0
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/locations.d.ts +1 -0
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/navigation.d.ts +1 -26
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +109 -2
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +185 -0
- package/dist/_dts/api/src/privacyPolicy.d.ts +74 -2
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +14 -6
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +9 -49
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/publicReadEndpointDefinitions.d.ts +73 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/schemas/site-api-keys.d.ts +1 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +5 -32
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +46 -46
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +9 -34
- package/dist/_dts/api/src/siteOnboarding.d.ts +84 -228
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +3 -13
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +38 -6
- package/dist/_dts/api/src/types.d.ts +78 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +17 -7
- package/dist/_dts/billing/src/plans/display.d.ts +15 -0
- package/dist/_dts/billing/src/plans/registry.d.ts +2 -0
- package/dist/_dts/billing/src/plans/standing.d.ts +19 -0
- package/dist/_dts/billing/src/plans/types.d.ts +4 -7
- package/dist/_dts/billing/src/site-arrangements.d.ts +14 -3
- package/dist/_dts/billing/src/subscriptions/evidence.d.ts +12 -0
- package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +31 -0
- package/dist/_dts/billing/src/subscriptions/store.d.ts +23 -5
- package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -15
- package/dist/_dts/blocks/src/client.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +48 -20
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +9 -0
- package/dist/_dts/blocks/src/pageRenderingMode.d.ts +12 -6
- package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
- package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +11 -0
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +39 -66
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +39 -114
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +18 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/fields.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +7 -13
- package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/index.d.ts +4 -4
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +2 -1
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +2 -74
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +33 -100
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +5 -15
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +78 -30
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +39 -15
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarToday.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +94 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +28 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/bookability.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/duration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/location.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/quickDates.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayCell.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayHeaders.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventQuickDates.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/useHydrationReady.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +62 -33
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +14 -31
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +32 -16
- package/dist/_dts/commerce/src/purchase/stripeCommissionMetadata.d.ts +34 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerEngagementDraft.d.ts +6 -24
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +4 -2
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/footer-engagement.d.ts +2 -6
- package/dist/_dts/core/src/index.d.ts +10 -1
- package/dist/_dts/core/src/mailing-list-identifiers.d.ts +21 -0
- package/dist/_dts/core/src/mailing-list-runtime.d.ts +42 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +14 -0
- package/dist/_dts/core/src/mailing-list-setup.d.ts +142 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +224 -0
- package/dist/_dts/core/src/mailing-list-targeting-parser.d.ts +12 -0
- package/dist/_dts/core/src/mailing-list-targeting.d.ts +93 -0
- package/dist/_dts/core/src/navigation-locations.d.ts +28 -0
- package/dist/_dts/core/src/participants.d.ts +2 -29
- package/dist/_dts/core/src/public-experience.d.ts +4 -0
- package/dist/_dts/core/src/public-profile.d.ts +35 -1
- package/dist/_dts/core/src/public-read-cache-contract.d.ts +45 -0
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +797 -954
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +14 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/index.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
- package/dist/_dts/sdk/src/client/publicAppointmentReadOperations.d.ts +12 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +2 -1
- package/dist/_dts/sdk/src/client/publicLoaderCacheAccess.d.ts +11 -4
- package/dist/_dts/sdk/src/config/content-types.d.ts +3 -13
- package/dist/_dts/sdk/src/config/content-validation.d.ts +5 -8
- package/dist/_dts/sdk/src/constants.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -31
- package/dist/_dts/sdk/src/navigation/index.d.ts +11 -29
- package/dist/_dts/sdk/src/next/index.d.ts +4 -4
- package/dist/_dts/sdk/src/prebuild/types.d.ts +1 -5
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +44 -33
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +5 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +3 -20
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +4 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +8 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +41 -0
- package/dist/_dts/theme-core/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntime.d.ts +0 -1
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
- package/dist/_dts/theme-core/src/schema.d.ts +84 -84
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/tokens/tokens.d.ts +7 -0
- package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
- package/dist/_dts/ui/src/pending-button.d.ts +10 -0
- package/dist/client/{BookingConsentAgreement-DQUik1Mx.mjs → BookingConsentAgreement-CuKa82V4.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-CU67Q4vH.mjs → DiscountCodeDisclosure-BbYieKWB.mjs} +1 -1
- package/dist/client/{EventCombined.client-a02TXUgg.mjs → EventCombined.client-LTfR1Aby.mjs} +444 -200
- package/dist/client/{EventListing.client-99qx7jFl.mjs → EventListing.client-DUHpYSuo.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CWzcq73L.mjs → LeafletStaticMap-CHRupL6m.mjs} +1 -1
- package/dist/client/{accordion-D1nb3-Oj.mjs → accordion-6HiIFxNL.mjs} +1 -1
- package/dist/client/{bookingForm-BGrmLhaO.mjs → bookingForm-Dlmid43H.mjs} +7 -7
- package/dist/client/bookings.mjs +368 -142
- package/dist/client/{carousel-DSmOx3ad.mjs → carousel-DmkZRRq_.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-COWeOIUk.mjs → cart-CIC24330.mjs} +3 -3
- package/dist/client/{checkout-CeysaIJK.mjs → checkout-D1Zw9imo.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +5017 -2258
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DBzX85Xc.mjs → context-Cy1OayHx.mjs} +9 -21
- package/dist/client/{dates-DCYhZBlW.mjs → dates-aDcfoLHr.mjs} +21 -3
- package/dist/client/{eventCalendar-BgsN73Ul.mjs → eventCalendar-FQxMPAjf.mjs} +81 -79
- package/dist/client/{eventCombined-DcZQAMQP.mjs → eventCombined-Dr3ac6Hb.mjs} +3 -3
- package/dist/client/{eventDetails-BWwGJ54l.mjs → eventDetails-D-AzUHFQ.mjs} +4 -4
- package/dist/client/{eventListing-DqYqV8vp.mjs → eventListing-B3XxBf3i.mjs} +3 -3
- package/dist/client/{eventRegistration-DQGDgu_e.mjs → eventRegistration-I6EaokFD.mjs} +543 -155
- package/dist/client/{form-ClfpasVT.mjs → form-BbWckVWY.mjs} +3 -3
- package/dist/client/{headerSection-BuOMe98N.mjs → headerSection-C9qU4Y7x.mjs} +2 -2
- package/dist/client/hooks.mjs +1685 -716
- package/dist/client/{locationMap-CEqu_sfa.mjs → locationMap-CLCShvlG.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/newsletterForm-Briukxzi.mjs +444 -0
- package/dist/client/{pricing-xj7MPZlK.mjs → pricing-Copadu-2.mjs} +1 -1
- package/dist/client/{productDetail-vxqTt5Xj.mjs → productDetail-oujlRd-r.mjs} +3 -3
- package/dist/client/{productList-OTdZu8sb.mjs → productList-BRiIRUcd.mjs} +3 -3
- package/dist/client/{propsDecoder-CY9gGEF7.mjs → propsDecoder-CB2KS_ko.mjs} +706 -160
- package/dist/client/rendering/client.mjs +3161 -1226
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +4864 -1914
- package/dist/client/{scrollToBlock--BFV6kl-.mjs → scrollToBlock-B1IS1_ua.mjs} +1 -1
- package/dist/client/{shop-CP4YbDL9.mjs → shop-Vn6yNFED.mjs} +6 -6
- package/dist/client/{shop-commerce-APs4XBXE.mjs → shop-commerce-BVTqipYp.mjs} +7 -7
- package/dist/client/{shop-commerce-store-CAVLxLFr.mjs → shop-commerce-store-BVnJVy7v.mjs} +1 -1
- package/dist/client/{shopShared-BnSRrwXI.mjs → shopShared-COIeK77T.mjs} +4 -4
- package/dist/client/{useEventFilters-1a1by4c8.mjs → useEventFilters-DzIUcS9n.mjs} +58 -11
- package/dist/preview-next/before-render.mjs +357 -175
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +357 -175
- package/dist/preview-next/middleware.mjs +357 -175
- package/dist/{previewAuthStore-BkEgnYPP.mjs → previewAuthStore-Gjb6r6vz.mjs} +357 -175
- package/dist/{sdk-runtime-DwGfsT0S.mjs → sdk-runtime-CnCLvZRv.mjs} +2 -2
- package/dist/{separator-BeqDLneQ.mjs → separator-DKDRJ1oH.mjs} +1 -1
- package/dist/server/components.mjs +3389 -1251
- package/dist/server/config-validation.mjs +2737 -1784
- package/dist/server/config.mjs +2742 -1788
- package/dist/server/data.mjs +1586 -615
- package/dist/server/index.mjs +496 -352
- package/dist/server/navigation.mjs +16 -47
- package/dist/server/next.mjs +3978 -2007
- package/dist/server/page-converter.mjs +1109 -553
- package/dist/server/prebuild.mjs +2 -3
- package/dist/server/rendering/server.mjs +4101 -1951
- package/dist/server/rendering.mjs +3416 -1259
- package/dist/server/routing.mjs +1869 -786
- package/dist/server/server.mjs +3260 -2482
- package/dist/server/theme-bridge.mjs +725 -124
- package/dist/server/theme.mjs +8 -2
- package/dist/styles/index.css +526 -68
- package/package.json +1 -1
- package/dist/_dts/api/src/navigation/identity.d.ts +0 -59
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +0 -291
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
- package/dist/_dts/core/src/newsletter-signup-destination.d.ts +0 -38
- package/dist/client/newsletterForm-IbrHjMxy.mjs +0 -322
|
@@ -47,7 +47,9 @@ const unsafeAsPassId = (id) => id;
|
|
|
47
47
|
const unsafeAsCustomerPassId = (id) => id;
|
|
48
48
|
const unsafeAsAppointmentServiceId = (id) => id;
|
|
49
49
|
const unsafeAsAppointmentResourceId = (id) => id;
|
|
50
|
+
const unsafeAsContentVersionId = (id) => id;
|
|
50
51
|
const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
|
|
52
|
+
const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
|
|
51
53
|
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
52
54
|
//#endregion
|
|
53
55
|
//#region ../media-core/src/transformRect.ts
|
|
@@ -532,4 +534,4 @@ function mergeStyles(...styles) {
|
|
|
532
534
|
return Object.keys(merged).length ? merged : void 0;
|
|
533
535
|
}
|
|
534
536
|
//#endregion
|
|
535
|
-
export {
|
|
537
|
+
export { unsafeAsPassId as C, ok as D, err as E, clsx as O, unsafeAsMediaAssetId as S, unsafeAsStoragePath as T, parseEventSeriesId as _, paletteColorEntries as a, unsafeAsCustomerPassId as b, themeColorTokenSchema as c, hexToRgb as d, isExplicitRectCrop as f, parseEventOfferingId as g, parseContentVersionId as h, textColorStyle as i, parseColorTokenParts as l, resolveMediaTransformForAspect as m, mergeStyles as n, paletteColorsFromEntries as o, parseAspectRatioValue as p, rgbColorValue as r, parseThemeColorToken as s, backgroundColorStyle as t, relativeLuminance as u, unsafeAsAppointmentResourceId as v, unsafeAsStorageBucketName as w, unsafeAsFormId as x, unsafeAsAppointmentServiceId as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { R as calendarWindowPageSchema } from "./propsDecoder-CB2KS_ko.mjs";
|
|
3
3
|
import { createContext, useContext, useMemo } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/api/deduplication.ts
|
|
@@ -592,6 +592,9 @@ function isApiSuccessResponse(json) {
|
|
|
592
592
|
* });
|
|
593
593
|
* ```
|
|
594
594
|
*/
|
|
595
|
+
function publicEventsQuery(params) {
|
|
596
|
+
return { ...params ?? {} };
|
|
597
|
+
}
|
|
595
598
|
function createBlockApi(config) {
|
|
596
599
|
const { baseUrl, auth, authOverrides, siteId, isPreview } = config;
|
|
597
600
|
const dedup = createDeduplicationCache({ ttl: 100 });
|
|
@@ -744,23 +747,7 @@ function createBlockApi(config) {
|
|
|
744
747
|
const path = buildPath(EVENTS.list.path, { siteId: sid });
|
|
745
748
|
return request(EVENTS.list, {
|
|
746
749
|
path,
|
|
747
|
-
query:
|
|
748
|
-
from: params?.from,
|
|
749
|
-
to: params?.to,
|
|
750
|
-
afterStartsAt: params?.afterStartsAt,
|
|
751
|
-
afterId: params?.afterId,
|
|
752
|
-
limit: params?.limit,
|
|
753
|
-
stage: params?.stage,
|
|
754
|
-
eventSurface: params?.eventSurface,
|
|
755
|
-
eventPresets: params?.eventPresets,
|
|
756
|
-
scheduleScope: params?.scheduleScope,
|
|
757
|
-
categoryIds: params?.categoryIds,
|
|
758
|
-
venueId: params?.venueId,
|
|
759
|
-
staffMemberId: params?.staffMemberId,
|
|
760
|
-
seriesId: params?.seriesId,
|
|
761
|
-
includeOccurrenceId: params?.includeOccurrenceId,
|
|
762
|
-
detailLevel: params?.detailLevel
|
|
763
|
-
}
|
|
750
|
+
query: publicEventsQuery(params)
|
|
764
751
|
});
|
|
765
752
|
},
|
|
766
753
|
async getEventFilters(params) {
|
|
@@ -824,7 +811,7 @@ function createBlockApi(config) {
|
|
|
824
811
|
const path = buildPath(WHOLE_SERIES.waitlistClaimResolve.path, { siteId: sid });
|
|
825
812
|
return request(WHOLE_SERIES.waitlistClaimResolve, {
|
|
826
813
|
path,
|
|
827
|
-
body:
|
|
814
|
+
body: data
|
|
828
815
|
});
|
|
829
816
|
},
|
|
830
817
|
async getDiscountsAvailable(data) {
|
|
@@ -913,8 +900,9 @@ function createBlockApi(config) {
|
|
|
913
900
|
name: data.name,
|
|
914
901
|
company: data.company,
|
|
915
902
|
phone: data.phone,
|
|
916
|
-
|
|
917
|
-
|
|
903
|
+
sourceRef: data.sourceRef,
|
|
904
|
+
setupRevision: data.setupRevision,
|
|
905
|
+
visitorSelection: data.visitorSelection,
|
|
918
906
|
meta: data.meta
|
|
919
907
|
}
|
|
920
908
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as canJoinEventWaitlistOnAnyMode, p as isEventFull } from "./pricing-
|
|
1
|
+
import { Gt as formatBookingDate, Kt as formatBookingDateParts, Yt as formatBookingTime, at as resolveRuntimeEventDestination, mn as assertNever, nn as toScheduledBookingDateRange, rn as toScheduledBookingDateTime, tn as toBookingTimeZone } from "./propsDecoder-CB2KS_ko.mjs";
|
|
2
|
+
import { a as canJoinEventWaitlistOnAnyMode, p as isEventFull } from "./pricing-Copadu-2.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
4
4
|
/**
|
|
5
5
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -173,6 +173,10 @@ function groupItemsByDate(items, accessors) {
|
|
|
173
173
|
* timestamps become strings or date buckets. Calendar-grid primitives are
|
|
174
174
|
* re-exported from @riverbankcms/calendar so block code has one import.
|
|
175
175
|
*/
|
|
176
|
+
/** Use the event timezone when present, otherwise the calendar/site timezone. */
|
|
177
|
+
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
178
|
+
return event.timeZone || calendarTimeZone;
|
|
179
|
+
}
|
|
176
180
|
/**
|
|
177
181
|
* Format date for display.
|
|
178
182
|
* Returns: "Monday, January 15, 2025"
|
|
@@ -247,6 +251,20 @@ function formatEventCompactDateRail(isoTimestamp, options) {
|
|
|
247
251
|
};
|
|
248
252
|
}
|
|
249
253
|
/**
|
|
254
|
+
* Format the next occurrence for the image-free catalogue card treatment.
|
|
255
|
+
*
|
|
256
|
+
* The compact rail already owns this short, booking-local date vocabulary;
|
|
257
|
+
* keep the fact panel on the same date and timezone rules as event rows.
|
|
258
|
+
*/
|
|
259
|
+
function formatEventNextDateFact(event) {
|
|
260
|
+
const rail = formatEventCompactDateRail(event.startsAt, { timeZone: event.timeZone });
|
|
261
|
+
return {
|
|
262
|
+
dateTime: event.startsAt,
|
|
263
|
+
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
264
|
+
label: rail.label
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
250
268
|
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
251
269
|
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
252
270
|
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
@@ -261,4 +279,4 @@ function groupEventsByDate(events, calendarTimeZone) {
|
|
|
261
279
|
return map;
|
|
262
280
|
}
|
|
263
281
|
//#endregion
|
|
264
|
-
export {
|
|
282
|
+
export { formatTime as a, getLocalDateKey as c, resolveEventLinkProps as d, formatEventNextDateFact as i, getLocalMinuteOfDay as l, formatEventCompactDateRail as n, groupEventsByDate as o, formatEventDateParts as r, resolveEventTimeZone as s, formatDate as t, resolveEventCta as u };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
import { o as EventFilters, s as formatEventTeacherLine, t as useEventFilters } from "./useEventFilters-
|
|
5
|
-
import { d as getEventAvailabilityStatus, o as formatEventRemainingPlaces, p as isEventFull } from "./pricing-
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as
|
|
2
|
+
import { O as clsx } from "./colorStyles-3013aRAY.mjs";
|
|
3
|
+
import { $ as getDayOfWeek, B as resolveCalendarReadProfile, D as buildEventCalendarListingRender, J as MONTH_NAMES, Q as formatDateKey, V as buildEventRuntimeFilters, Y as addDays, dt as themeButtonClassName, et as getOrderedDayNames, nt as isSameCalendarDay, rt as isToday, t as defineIslandPropsDecoder, tt as getWeekCalendarDays } from "./propsDecoder-CB2KS_ko.mjs";
|
|
4
|
+
import { o as EventFilters, s as formatEventTeacherLine, t as useEventFilters } from "./useEventFilters-DzIUcS9n.mjs";
|
|
5
|
+
import { d as getEventAvailabilityStatus, o as formatEventRemainingPlaces, p as isEventFull } from "./pricing-Copadu-2.mjs";
|
|
6
|
+
import { a as formatTime, c as getLocalDateKey, d as resolveEventLinkProps, l as getLocalMinuteOfDay, o as groupEventsByDate, s as resolveEventTimeZone } from "./dates-aDcfoLHr.mjs";
|
|
7
|
+
import { a as WeekAgendaView, c as CalendarDayCell, d as useCalendarEvents, i as useHydrationReady, l as EventModalProvider, o as CalendarNavigationChevron, r as EventModals, s as CalendarDayHeaders, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-LTfR1Aby.mjs";
|
|
8
|
+
import { t as BlockApiProvider } from "./context-Cy1OayHx.mjs";
|
|
8
9
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
9
10
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
10
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
11
|
-
import { a as CalendarDayCell, c as useCalendarEvents, i as WeekAgendaView, o as EventModalProvider, r as EventModals, s as useEventModal, t as EventCombinedClient } from "./EventCombined.client-a02TXUgg.mjs";
|
|
11
|
+
import { n as EventListingController } from "./EventListing.client-DUHpYSuo.mjs";
|
|
12
12
|
import { useEffect, useId, useMemo, useState } from "react";
|
|
13
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
//#region ../calendar/src/lane-packing.ts
|
|
15
15
|
/**
|
|
16
16
|
* Assign lanes to a list of intervals.
|
|
@@ -322,24 +322,6 @@ function parseDateKey(dateKey) {
|
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
//#endregion
|
|
325
|
-
//#region ../blocks/src/system/runtime/nodes/events/shared/CalendarNavigationChevron.tsx
|
|
326
|
-
function CalendarNavigationChevron({ direction }) {
|
|
327
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
328
|
-
width: "20",
|
|
329
|
-
height: "20",
|
|
330
|
-
fill: "none",
|
|
331
|
-
stroke: "currentColor",
|
|
332
|
-
strokeWidth: 2,
|
|
333
|
-
viewBox: "0 0 24 24",
|
|
334
|
-
"aria-hidden": "true",
|
|
335
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
336
|
-
strokeLinecap: "round",
|
|
337
|
-
strokeLinejoin: "round",
|
|
338
|
-
d: direction === "previous" ? "M15 19l-7-7 7-7" : "M9 5l7 7-7 7"
|
|
339
|
-
})
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
//#endregion
|
|
343
325
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekBoardView.tsx
|
|
344
326
|
function buildWeekBoardNavigationState(viewport, today) {
|
|
345
327
|
return {
|
|
@@ -392,8 +374,8 @@ const LEGEND_ITEMS = [
|
|
|
392
374
|
* Format an event's start–end as a compact range, merging the shared meridiem.
|
|
393
375
|
* "6:00 PM" + "7:00 PM" -> "6:00 – 7:00 PM"; "9:30 AM" + "10:15 AM" -> "9:30 – 10:15 AM".
|
|
394
376
|
*/
|
|
395
|
-
function formatCompactTimeRange(event) {
|
|
396
|
-
const timeZone = event
|
|
377
|
+
function formatCompactTimeRange(event, calendarTimeZone) {
|
|
378
|
+
const timeZone = resolveEventTimeZone(event, calendarTimeZone);
|
|
397
379
|
const start = formatTime(event.startsAt, { timeZone });
|
|
398
380
|
const end = formatTime(event.endsAt, { timeZone });
|
|
399
381
|
const startMeridiem = start.slice(-2);
|
|
@@ -401,7 +383,7 @@ function formatCompactTimeRange(event) {
|
|
|
401
383
|
if ((startMeridiem === "AM" || startMeridiem === "PM") && startMeridiem === endMeridiem) return `${start.slice(0, -3).trim()} – ${end}`;
|
|
402
384
|
return `${start} – ${end}`;
|
|
403
385
|
}
|
|
404
|
-
const WeekBoardCard = ({ event, showCapacity }) => {
|
|
386
|
+
const WeekBoardCard = ({ event, showCapacity, calendarTimeZone }) => {
|
|
405
387
|
const linkProps = resolveEventLinkProps(event);
|
|
406
388
|
const { status, label } = getEventAvailabilityStatus(event);
|
|
407
389
|
const pill = showCapacity ? label : null;
|
|
@@ -416,7 +398,7 @@ const WeekBoardCard = ({ event, showCapacity }) => {
|
|
|
416
398
|
}),
|
|
417
399
|
/* @__PURE__ */ jsx("span", {
|
|
418
400
|
className: "event-week-board-card-time",
|
|
419
|
-
children: formatCompactTimeRange(event)
|
|
401
|
+
children: formatCompactTimeRange(event, calendarTimeZone)
|
|
420
402
|
}),
|
|
421
403
|
pill ? /* @__PURE__ */ jsx("span", {
|
|
422
404
|
className: "event-week-board-card-pill",
|
|
@@ -493,7 +475,7 @@ const WeekBoardLoadError = ({ navigation, buttonClassName }) => {
|
|
|
493
475
|
})]
|
|
494
476
|
});
|
|
495
477
|
};
|
|
496
|
-
const WeekBoardGrid = ({ days, eventsByDate, showCapacity, today: currentDate }) => /* @__PURE__ */ jsx("div", {
|
|
478
|
+
const WeekBoardGrid = ({ days, eventsByDate, showCapacity, calendarTimeZone, today: currentDate }) => /* @__PURE__ */ jsx("div", {
|
|
497
479
|
className: "event-week-board-grid",
|
|
498
480
|
children: days.map((date) => {
|
|
499
481
|
const dateKey = formatDateKey(date);
|
|
@@ -514,7 +496,8 @@ const WeekBoardGrid = ({ days, eventsByDate, showCapacity, today: currentDate })
|
|
|
514
496
|
className: "event-week-board-day-body",
|
|
515
497
|
children: dayEvents.map((event) => /* @__PURE__ */ jsx(WeekBoardCard, {
|
|
516
498
|
event,
|
|
517
|
-
showCapacity
|
|
499
|
+
showCapacity,
|
|
500
|
+
calendarTimeZone
|
|
518
501
|
}, event.occurrenceId || event.id))
|
|
519
502
|
})]
|
|
520
503
|
}, dateKey);
|
|
@@ -588,6 +571,7 @@ const WeekBoardView = ({ days, events, navigation, showCapacity, emptyMessage =
|
|
|
588
571
|
days,
|
|
589
572
|
eventsByDate,
|
|
590
573
|
showCapacity,
|
|
574
|
+
calendarTimeZone,
|
|
591
575
|
today
|
|
592
576
|
}),
|
|
593
577
|
/* @__PURE__ */ jsx(WeekBoardFooter, {
|
|
@@ -622,6 +606,7 @@ const FULL_DAY_NAMES = [
|
|
|
622
606
|
"Saturday"
|
|
623
607
|
];
|
|
624
608
|
function buildTimetableModel(input) {
|
|
609
|
+
const calendarTimeZone = input.calendarTimeZone;
|
|
625
610
|
const generic = buildTimetableModel$1({
|
|
626
611
|
items: input.events,
|
|
627
612
|
viewDate: input.viewDate,
|
|
@@ -630,7 +615,7 @@ function buildTimetableModel(input) {
|
|
|
630
615
|
getId: (event) => event.id,
|
|
631
616
|
getStartsAt: (event) => event.startsAt,
|
|
632
617
|
getEndsAt: (event) => event.endsAt,
|
|
633
|
-
getTimeZone: (event) => event
|
|
618
|
+
getTimeZone: (event) => resolveEventTimeZone(event, calendarTimeZone),
|
|
634
619
|
getColor: (event) => event.eventCategory?.color ?? null,
|
|
635
620
|
getOrderKey: (event) => `${event.title}\u0000${event.id}`
|
|
636
621
|
});
|
|
@@ -646,11 +631,11 @@ function buildTimetableModel(input) {
|
|
|
646
631
|
label: formatDayLabel(day.date),
|
|
647
632
|
shortLabel: formatShortDayLabel(day.date),
|
|
648
633
|
isToday: day.isToday,
|
|
649
|
-
events: day.cells.map(toEventCell)
|
|
634
|
+
events: day.cells.map((cell) => toEventCell(cell, calendarTimeZone))
|
|
650
635
|
}))
|
|
651
636
|
};
|
|
652
637
|
}
|
|
653
|
-
function toEventCell(cell) {
|
|
638
|
+
function toEventCell(cell, calendarTimeZone) {
|
|
654
639
|
const event = cell.item;
|
|
655
640
|
const capacity = formatTimetableCapacity(event);
|
|
656
641
|
return {
|
|
@@ -662,7 +647,7 @@ function toEventCell(cell) {
|
|
|
662
647
|
laneIndex: cell.laneIndex,
|
|
663
648
|
laneCount: cell.laneCount,
|
|
664
649
|
categoryColor: cell.color ?? DEFAULT_EVENT_CELL_COLOR,
|
|
665
|
-
timeLabel: formatEventTimeRange(event),
|
|
650
|
+
timeLabel: formatEventTimeRange(event, calendarTimeZone),
|
|
666
651
|
teacherLine: formatEventTeacherLine(event),
|
|
667
652
|
capacityLabel: capacity.label,
|
|
668
653
|
isFull: capacity.isFull
|
|
@@ -674,8 +659,8 @@ function formatTimetableCapacity(event) {
|
|
|
674
659
|
isFull: isEventFull(event)
|
|
675
660
|
};
|
|
676
661
|
}
|
|
677
|
-
function formatEventTimeRange(event) {
|
|
678
|
-
const timeZone = event
|
|
662
|
+
function formatEventTimeRange(event, calendarTimeZone) {
|
|
663
|
+
const timeZone = resolveEventTimeZone(event, calendarTimeZone);
|
|
679
664
|
return `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
|
|
680
665
|
}
|
|
681
666
|
function formatDayLabel(date) {
|
|
@@ -686,14 +671,16 @@ function formatShortDayLabel(date) {
|
|
|
686
671
|
}
|
|
687
672
|
//#endregion
|
|
688
673
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
689
|
-
const WeekTimetableView = ({ viewDate, events, startOfWeek, today, showCapacity, emptyMessage = "No classes scheduled" }) => {
|
|
674
|
+
const WeekTimetableView = ({ viewDate, events, startOfWeek, today, showCapacity, calendarTimeZone, emptyMessage = "No classes scheduled" }) => {
|
|
690
675
|
const { openEventModal } = useEventModal();
|
|
691
676
|
const model = useMemo(() => buildTimetableModel({
|
|
692
677
|
events,
|
|
693
678
|
viewDate,
|
|
694
679
|
startOfWeek,
|
|
695
|
-
today
|
|
680
|
+
today,
|
|
681
|
+
calendarTimeZone
|
|
696
682
|
}), [
|
|
683
|
+
calendarTimeZone,
|
|
697
684
|
events,
|
|
698
685
|
startOfWeek,
|
|
699
686
|
today,
|
|
@@ -874,7 +861,7 @@ const EventCalendarWeekBoardClient = ({ render }) => {
|
|
|
874
861
|
display.filterVenueId,
|
|
875
862
|
display.scheduleScope
|
|
876
863
|
]);
|
|
877
|
-
const { events, viewport, loadState, goToPrevious, goToNext, goToToday, retryCurrentView } = useCalendarEvents({
|
|
864
|
+
const { events, today, viewport, loadState, goToPrevious, goToNext, goToToday, retryCurrentView } = useCalendarEvents({
|
|
878
865
|
readProfile: resolveCalendarReadProfile({ variant: display.displayMode }),
|
|
879
866
|
siteId: hydration.siteId,
|
|
880
867
|
view: "week",
|
|
@@ -891,7 +878,7 @@ const EventCalendarWeekBoardClient = ({ render }) => {
|
|
|
891
878
|
} : loadState;
|
|
892
879
|
const navigation = {
|
|
893
880
|
kind: "interactive",
|
|
894
|
-
...buildWeekBoardNavigationState(viewport,
|
|
881
|
+
...buildWeekBoardNavigationState(viewport, today),
|
|
895
882
|
loadState: weekBoardLoadState,
|
|
896
883
|
onPrevious: goToPrevious,
|
|
897
884
|
onNext: goToNext,
|
|
@@ -900,13 +887,13 @@ const EventCalendarWeekBoardClient = ({ render }) => {
|
|
|
900
887
|
return /* @__PURE__ */ jsx(WeekBoardView, { ...buildWeekBoardViewProps({
|
|
901
888
|
...display,
|
|
902
889
|
calendarTimeZone: hydration.calendarContext.timeZone,
|
|
903
|
-
today
|
|
890
|
+
today
|
|
904
891
|
}, viewport.days, navigation, events) });
|
|
905
892
|
};
|
|
906
893
|
const EventCalendarTimetableClient = ({ render }) => {
|
|
907
894
|
const { display, hydration } = render;
|
|
908
895
|
const { filtersNode, listFilters } = useEventCalendarFilterState(display);
|
|
909
|
-
const { events, viewDate, viewport, loadState, retryCurrentView, goToPrevious, goToNext, goToToday } = useCalendarEvents({
|
|
896
|
+
const { events, today, viewDate, viewport, loadState, retryCurrentView, goToPrevious, goToNext, goToToday } = useCalendarEvents({
|
|
910
897
|
readProfile: resolveCalendarReadProfile({ variant: display.displayMode }),
|
|
911
898
|
siteId: hydration.siteId,
|
|
912
899
|
view: "week",
|
|
@@ -934,20 +921,23 @@ const EventCalendarTimetableClient = ({ render }) => {
|
|
|
934
921
|
startOfWeek: display.startOfWeek,
|
|
935
922
|
emptyMessage: display.emptyMessage,
|
|
936
923
|
showCapacity: display.showCapacity,
|
|
937
|
-
|
|
924
|
+
calendarTimeZone: hydration.calendarContext.timeZone,
|
|
925
|
+
today
|
|
938
926
|
})
|
|
939
927
|
}), /* @__PURE__ */ jsx(EventModals, {
|
|
940
928
|
cardRole: display.cardRole,
|
|
941
929
|
buttonVariant: display.buttonVariant,
|
|
942
930
|
buttonText: display.buttonText,
|
|
943
|
-
showCapacity: display.showCapacity
|
|
931
|
+
showCapacity: display.showCapacity,
|
|
932
|
+
calendarTimeZone: hydration.calendarContext.timeZone
|
|
944
933
|
})] });
|
|
945
934
|
};
|
|
946
935
|
const EventCalendarGridClient = ({ render }) => {
|
|
947
936
|
const { display, hydration } = render;
|
|
937
|
+
const hydrationReady = useHydrationReady();
|
|
948
938
|
const calendarView = display.defaultCalendarView;
|
|
949
939
|
const { filtersNode, listFilters } = useEventCalendarFilterState(display);
|
|
950
|
-
const { events, viewDate, viewport, loadState, retryCurrentView, goToPrevious, goToNext, goToToday } = useCalendarEvents({
|
|
940
|
+
const { events, today, viewDate, viewport, loadState, retryCurrentView, goToPrevious, goToNext, goToToday } = useCalendarEvents({
|
|
951
941
|
readProfile: resolveCalendarReadProfile({ variant: display.displayMode }),
|
|
952
942
|
siteId: hydration.siteId,
|
|
953
943
|
view: calendarView,
|
|
@@ -960,7 +950,7 @@ const EventCalendarGridClient = ({ render }) => {
|
|
|
960
950
|
});
|
|
961
951
|
const eventsByDate = useMemo(() => groupEventsByDate(events, hydration.calendarContext.timeZone), [events, hydration.calendarContext.timeZone]);
|
|
962
952
|
const dayNames = useMemo(() => getOrderedDayNames(display.startOfWeek), [display.startOfWeek]);
|
|
963
|
-
return /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */
|
|
953
|
+
return /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */ jsx(EventCalendarChrome, {
|
|
964
954
|
display,
|
|
965
955
|
calendarView,
|
|
966
956
|
loadState,
|
|
@@ -970,44 +960,56 @@ const EventCalendarGridClient = ({ render }) => {
|
|
|
970
960
|
onNext: goToNext,
|
|
971
961
|
onPrevious: goToPrevious,
|
|
972
962
|
onToday: goToToday,
|
|
973
|
-
children:
|
|
974
|
-
|
|
963
|
+
children: /* @__PURE__ */ jsx(EventCalendarGridContent, {
|
|
964
|
+
display,
|
|
975
965
|
events,
|
|
976
|
-
|
|
977
|
-
|
|
966
|
+
eventsByDate,
|
|
967
|
+
loadState,
|
|
968
|
+
dayNames,
|
|
969
|
+
viewDate,
|
|
970
|
+
viewport,
|
|
978
971
|
calendarTimeZone: hydration.calendarContext.timeZone,
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
983
|
-
className: "event-calendar-day-headers",
|
|
984
|
-
children: dayNames.map((day) => /* @__PURE__ */ jsx("div", {
|
|
985
|
-
className: "event-calendar-day-header",
|
|
986
|
-
children: day
|
|
987
|
-
}, day))
|
|
988
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
989
|
-
className: "event-calendar-grid",
|
|
990
|
-
children: viewport.days.map((date) => {
|
|
991
|
-
const dateKey = formatDateKey(date);
|
|
992
|
-
return /* @__PURE__ */ jsx(CalendarDayCell, {
|
|
993
|
-
date,
|
|
994
|
-
events: eventsByDate.get(dateKey) || [],
|
|
995
|
-
isCurrentMonth: date.month === viewDate.month,
|
|
996
|
-
today: hydration.calendarContext.initialToday
|
|
997
|
-
}, dateKey);
|
|
998
|
-
})
|
|
999
|
-
})]
|
|
1000
|
-
}), viewport.kind === "month" && events.length === 0 && loadState.kind === "idle" ? /* @__PURE__ */ jsx("p", {
|
|
1001
|
-
className: "event-calendar-empty",
|
|
1002
|
-
children: display.emptyMessage
|
|
1003
|
-
}) : null]
|
|
972
|
+
hydrationReady,
|
|
973
|
+
today
|
|
974
|
+
})
|
|
1004
975
|
}), /* @__PURE__ */ jsx(EventModals, {
|
|
1005
976
|
cardRole: display.cardRole,
|
|
1006
977
|
buttonVariant: display.buttonVariant,
|
|
1007
978
|
buttonText: display.buttonText,
|
|
1008
|
-
showCapacity: display.showCapacity
|
|
979
|
+
showCapacity: display.showCapacity,
|
|
980
|
+
calendarTimeZone: hydration.calendarContext.timeZone
|
|
1009
981
|
})] });
|
|
1010
982
|
};
|
|
983
|
+
const EventCalendarGridContent = ({ display, events, eventsByDate, loadState, dayNames, viewDate, viewport, calendarTimeZone, hydrationReady, today }) => /* @__PURE__ */ jsxs(Fragment, { children: [viewport.kind === "week" ? /* @__PURE__ */ jsx(WeekAgendaView, {
|
|
984
|
+
days: viewport.days,
|
|
985
|
+
events,
|
|
986
|
+
emptyMessage: display.emptyMessage,
|
|
987
|
+
showCapacity: display.showCapacity,
|
|
988
|
+
showVenue: display.showVenue,
|
|
989
|
+
showEmptyState: hydrationReady && loadState.kind === "idle",
|
|
990
|
+
buttonVariant: display.buttonVariant,
|
|
991
|
+
buttonText: display.buttonText,
|
|
992
|
+
calendarTimeZone,
|
|
993
|
+
today
|
|
994
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
995
|
+
className: "event-calendar-container",
|
|
996
|
+
children: [/* @__PURE__ */ jsx(CalendarDayHeaders, { dayNames }), /* @__PURE__ */ jsx("div", {
|
|
997
|
+
className: "event-calendar-grid",
|
|
998
|
+
children: viewport.days.map((date) => {
|
|
999
|
+
const dateKey = formatDateKey(date);
|
|
1000
|
+
return /* @__PURE__ */ jsx(CalendarDayCell, {
|
|
1001
|
+
date,
|
|
1002
|
+
events: eventsByDate.get(dateKey) ?? [],
|
|
1003
|
+
isCurrentMonth: date.month === viewDate.month,
|
|
1004
|
+
calendarTimeZone,
|
|
1005
|
+
today
|
|
1006
|
+
}, dateKey);
|
|
1007
|
+
})
|
|
1008
|
+
})]
|
|
1009
|
+
}), viewport.kind === "month" && events.length === 0 && hydrationReady && loadState.kind === "idle" ? /* @__PURE__ */ jsx("p", {
|
|
1010
|
+
className: "event-calendar-empty",
|
|
1011
|
+
children: display.emptyMessage
|
|
1012
|
+
}) : null] });
|
|
1011
1013
|
function useEventCalendarFilterState(display) {
|
|
1012
1014
|
const filtersIdBase = useId();
|
|
1013
1015
|
const filterState = useEventFilters({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import {
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CB2KS_ko.mjs";
|
|
2
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-LTfR1Aby.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Cy1OayHx.mjs";
|
|
3
4
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
4
5
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
5
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-a02TXUgg.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as formatTotalCapacity, n as formatEventPriceAmount, t as formatEventPrice } from "./pricing-
|
|
3
|
-
import {
|
|
1
|
+
import { Ht as resolveWholeSeriesBookingPhase, Vt as CANCELLED_SESSION_STATUS, Zt as getBookingLocalDateKey, cn as publicEventPricingDisplay, dn as publicEventPricingType, fn as formatCurrencyAmount, in as formatBookingPriceDisplay, k as resolveEventRegistrationScopedEvents, on as isPublicEventPricingOptionDisplayable, rn as toScheduledBookingDateTime, sn as publicEventPricingCurrency, t as defineIslandPropsDecoder, tn as toBookingTimeZone } from "./propsDecoder-CB2KS_ko.mjs";
|
|
2
|
+
import { l as formatTotalCapacity, n as formatEventPriceAmount, t as formatEventPrice } from "./pricing-Copadu-2.mjs";
|
|
3
|
+
import { d as resolveEventLinkProps, r as formatEventDateParts } from "./dates-aDcfoLHr.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-CHRupL6m.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CB2KS_ko.mjs";
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Cy1OayHx.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
4
4
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
5
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
5
|
+
import { t as EventListingClient } from "./EventListing.client-DUHpYSuo.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|