@riverbankcms/sdk 0.139.0 → 0.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-Q-fy9GYw.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-LYGzgk85.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-CoPYI5Jq.mjs} +90 -50
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-D8LePX8x.mjs} +2731 -1303
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
- 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 +8 -4
- 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 +17 -31
- package/dist/_dts/api/src/domainConnection.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +93 -64
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +25 -0
- package/dist/_dts/api/src/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +6 -7
- 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/launchReadiness.d.ts +1 -0
- package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +2 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
- 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/sharedTypes.d.ts +3 -29
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +10 -29
- package/dist/_dts/api/src/siteOnboarding.d.ts +9 -9
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +20 -7
- package/dist/_dts/api/src/types.d.ts +77 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/billing/src/plans/types.d.ts +3 -0
- package/dist/_dts/billing/src/site-arrangements.d.ts +23 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +7 -0
- 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/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +122 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/eventSelection.d.ts +11 -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/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +7 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +27 -1
- 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/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 +42 -186
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -93
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +48 -1
- 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/hooks.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.state.d.ts +5 -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/useDiscountCodeUi.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +9 -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 +14 -7
- 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/useSettledCommerceView.d.ts +37 -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 -6
- 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 +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +11 -101
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
- 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/eventCalendar.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
- 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 +27 -1
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +296 -606
- 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 +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +27 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +17 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +0 -6
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +4 -4
- 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 +54 -12
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- 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/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/typography/generateTypographyCss.d.ts +2 -2
- 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-CZvTDtsK.mjs → BookingConsentAgreement-xJeYNdnb.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-DdT6uzl9.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-Cp28uYuM.mjs} +12 -16
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-CD6AJsMr.mjs} +4 -17
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-DBsAi9-e.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6dwbOKYR.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-CZE9_qPQ.mjs} +7 -7
- package/dist/client/bookings.mjs +500 -233
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-7VHGQARz.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-Qg_mvQhh.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D84rpgdr.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +2315 -1017
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Ctp3T0Wr.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-DJKFcI_N.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-CK31z3vs.mjs} +12 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-DiXd-ewn.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-CTRgt2DK.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-Dy9vi_j_.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-CnalYMr2.mjs} +618 -177
- package/dist/client/{form-CBKXN5In.mjs → form-eUiMveTT.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-Dy9kQpB1.mjs} +2 -2
- package/dist/client/hooks.mjs +692 -212
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-DalCmWU0.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-SDDPvhS0.mjs} +150 -94
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-OcMz4SnX.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-BQrgHElM.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-OnPn_UJj.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-zBdsnS-N.mjs} +168 -32
- package/dist/client/rendering/client.mjs +1355 -519
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2294 -953
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-BNM4Ob2Y.mjs} +28 -11
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Bv1fPTwQ.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-D4KNGaW8.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-2N5EV0Rc.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-DvJGdHTV.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-BBBvGDHQ.mjs} +19 -13
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +4 -8
- package/dist/preview-next/keepAlive.mjs +119 -64
- package/dist/preview-next/middleware.mjs +119 -64
- package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
- package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-Defnbfzw.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-CZXO3Sb0.mjs} +1 -1
- package/dist/server/components.mjs +1170 -384
- package/dist/server/config-validation.mjs +560 -105
- package/dist/server/config.mjs +564 -109
- package/dist/server/data.mjs +688 -212
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1429 -662
- package/dist/server/page-converter.mjs +372 -99
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1624 -817
- package/dist/server/rendering.mjs +1200 -391
- package/dist/server/routing.mjs +767 -247
- package/dist/server/server.mjs +715 -276
- package/dist/server/theme-bridge.mjs +475 -110
- package/dist/server/theme.mjs +9 -3
- package/dist/styles/index.css +265 -45
- package/package.json +1 -1
- 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
|
@@ -3,7 +3,7 @@ import type { PublicEvent, ButtonVariant, EventLayout, ColumnOption, WeekStart,
|
|
|
3
3
|
import type { CardRole } from "../../../../../../theme-core/src/cards/index";
|
|
4
4
|
import { type CalendarViewLoadState } from "../../hooks/useCalendarEvents";
|
|
5
5
|
import type { EventCombinedInteractiveIslandProps } from "./EventCombined.interactive";
|
|
6
|
-
import type { EventCollectionHydration } from
|
|
6
|
+
import type { EventCollectionHydration } from "./shared/eventCollectionContract";
|
|
7
7
|
import { type CalendarDate, type CalendarViewport } from "./shared";
|
|
8
8
|
import { type EventListPaginationAction, type EventPageSize } from "./shared/listOptions";
|
|
9
9
|
import { type CalendarViewToggleOption } from "./shared/calendarViewOptions";
|
|
@@ -25,6 +25,7 @@ export type EventCombinedClientProps = Readonly<{
|
|
|
25
25
|
eventSurface?: EventSurfaceScope | null;
|
|
26
26
|
filterEventPresets?: string | null;
|
|
27
27
|
scheduleScope?: EventScheduleScope | null;
|
|
28
|
+
seriesIds?: string | null;
|
|
28
29
|
filterCategoryIds?: string | null;
|
|
29
30
|
filterStaffMemberId?: string | null;
|
|
30
31
|
filterVenueId?: string | null;
|
|
@@ -36,8 +37,8 @@ export type EventCombinedClientProps = Readonly<{
|
|
|
36
37
|
buttonText?: string;
|
|
37
38
|
emptyMessage?: string;
|
|
38
39
|
className?: string;
|
|
39
|
-
calendarContext: EventCollectionHydration[
|
|
40
|
-
calendarWindow?: EventCollectionHydration[
|
|
40
|
+
calendarContext: EventCollectionHydration["calendarContext"];
|
|
41
|
+
calendarWindow?: EventCollectionHydration["calendarWindow"];
|
|
41
42
|
}>;
|
|
42
43
|
export type EventCombinedIslandClientProps = EventCombinedInteractiveIslandProps;
|
|
43
44
|
type EventCombinedCalendarTabProps = Readonly<{
|
|
@@ -42,6 +42,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
42
42
|
eventSurface?: import("../../..").EventSurfaceScope | null;
|
|
43
43
|
filterEventPresets?: readonly string[] | string | null;
|
|
44
44
|
scheduleScope?: import("../../..").EventScheduleScope | null;
|
|
45
|
+
seriesIds?: readonly string[] | string | null;
|
|
45
46
|
filterCategoryIds?: readonly string[] | string | null;
|
|
46
47
|
filterStaffMemberId?: string | null;
|
|
47
48
|
filterVenueId?: string | null;
|
|
@@ -98,6 +99,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
98
99
|
eventSurface?: import("../../..").EventSurfaceScope | null;
|
|
99
100
|
filterEventPresets?: readonly string[] | string | null;
|
|
100
101
|
scheduleScope?: import("../../..").EventScheduleScope | null;
|
|
102
|
+
seriesIds?: readonly string[] | string | null;
|
|
101
103
|
filterCategoryIds?: readonly string[] | string | null;
|
|
102
104
|
filterStaffMemberId?: string | null;
|
|
103
105
|
filterVenueId?: string | null;
|
|
@@ -133,6 +135,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
133
135
|
eventSurface?: import("../../..").EventSurfaceScope | null;
|
|
134
136
|
filterEventPresets?: readonly string[] | string | null;
|
|
135
137
|
scheduleScope?: import("../../..").EventScheduleScope | null;
|
|
138
|
+
seriesIds?: readonly string[] | string | null;
|
|
136
139
|
filterCategoryIds?: readonly string[] | string | null;
|
|
137
140
|
filterStaffMemberId?: string | null;
|
|
138
141
|
filterVenueId?: string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { EventCollectionSourceProps } from "./shared/eventCollectionContract";
|
|
1
2
|
import { type CardRole } from "../../../../../../theme-core/src/cards/index";
|
|
2
3
|
import type { ButtonVariant, CardOrientation, ColumnOption, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent } from "../../../blocks/events/shared/types";
|
|
3
4
|
import { type InteractiveIslandProps } from "../../../../contracts/islands";
|
|
4
5
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./shared/listOptions";
|
|
5
|
-
export type EventListingSourceProps = Readonly<{
|
|
6
|
+
export type EventListingSourceProps = Pick<EventCollectionSourceProps, "showFilters" | "showCategoryFilter" | "showVenueFilter" | "showStaffFilter" | "eventSurface" | "filterEventPresets" | "scheduleScope" | "seriesIds" | "filterCategoryIds" | "filterStaffMemberId" | "filterVenueId"> & Readonly<{
|
|
6
7
|
events?: PublicEvent[] | null;
|
|
7
8
|
siteId: string;
|
|
8
9
|
apiBaseUrl?: string;
|
|
@@ -21,16 +22,6 @@ export type EventListingSourceProps = Readonly<{
|
|
|
21
22
|
showCapacity?: boolean;
|
|
22
23
|
emptyMessage?: string;
|
|
23
24
|
className?: string;
|
|
24
|
-
showFilters?: boolean | null;
|
|
25
|
-
showCategoryFilter?: FilterAutoShow;
|
|
26
|
-
showVenueFilter?: boolean | null;
|
|
27
|
-
showStaffFilter?: boolean | null;
|
|
28
|
-
eventSurface?: EventSurfaceScope | null;
|
|
29
|
-
filterEventPresets?: readonly string[] | string | null;
|
|
30
|
-
scheduleScope?: EventScheduleScope | null;
|
|
31
|
-
filterCategoryIds?: readonly string[] | string | null;
|
|
32
|
-
filterStaffMemberId?: string | null;
|
|
33
|
-
filterVenueId?: string | null;
|
|
34
25
|
}>;
|
|
35
26
|
export type EventListingDisplay = Readonly<{
|
|
36
27
|
kind: "event-listing";
|
|
@@ -61,6 +52,7 @@ export type EventListingHydration = Readonly<{
|
|
|
61
52
|
eventSurface: EventSurfaceScope;
|
|
62
53
|
filterEventPresets: string | null;
|
|
63
54
|
scheduleScope: EventScheduleScope;
|
|
55
|
+
seriesIds?: string | null;
|
|
64
56
|
filterCategoryIds?: string | null;
|
|
65
57
|
filterStaffMemberId?: string | null;
|
|
66
58
|
filterVenueId?: string | null;
|
|
@@ -74,36 +66,7 @@ type EventListingIslandMeta = Readonly<{
|
|
|
74
66
|
export type EventListingInteractiveIslandProps = InteractiveIslandProps<EventListingIslandMeta, "event-listing", typeof eventListingBlockRuntime>;
|
|
75
67
|
export declare const eventListingBlockRuntime: Readonly<{
|
|
76
68
|
kind: "progressive";
|
|
77
|
-
buildRender: (source: Readonly<{
|
|
78
|
-
events?: PublicEvent[] | null;
|
|
79
|
-
siteId: string;
|
|
80
|
-
apiBaseUrl?: string;
|
|
81
|
-
stage?: "preview" | "published";
|
|
82
|
-
layout?: EventLayout;
|
|
83
|
-
columns?: ColumnOption;
|
|
84
|
-
eventsPerPage?: string;
|
|
85
|
-
paginationMode?: EventListPaginationMode;
|
|
86
|
-
seeAllUrl?: string;
|
|
87
|
-
loadMoreText?: string;
|
|
88
|
-
cardRole?: CardRole;
|
|
89
|
-
buttonVariant?: ButtonVariant;
|
|
90
|
-
buttonText?: string;
|
|
91
|
-
showVenue?: boolean;
|
|
92
|
-
showMap?: boolean;
|
|
93
|
-
showCapacity?: boolean;
|
|
94
|
-
emptyMessage?: string;
|
|
95
|
-
className?: string;
|
|
96
|
-
showFilters?: boolean | null;
|
|
97
|
-
showCategoryFilter?: FilterAutoShow;
|
|
98
|
-
showVenueFilter?: boolean | null;
|
|
99
|
-
showStaffFilter?: boolean | null;
|
|
100
|
-
eventSurface?: EventSurfaceScope | null;
|
|
101
|
-
filterEventPresets?: readonly string[] | string | null;
|
|
102
|
-
scheduleScope?: EventScheduleScope | null;
|
|
103
|
-
filterCategoryIds?: readonly string[] | string | null;
|
|
104
|
-
filterStaffMemberId?: string | null;
|
|
105
|
-
filterVenueId?: string | null;
|
|
106
|
-
}>) => Readonly<{
|
|
69
|
+
buildRender: (source: EventListingSourceProps) => Readonly<{
|
|
107
70
|
display: Readonly<{
|
|
108
71
|
kind: "event-listing";
|
|
109
72
|
state: "loading" | "empty" | "ready";
|
|
@@ -133,6 +96,7 @@ export declare const eventListingBlockRuntime: Readonly<{
|
|
|
133
96
|
eventSurface: EventSurfaceScope;
|
|
134
97
|
filterEventPresets: string | null;
|
|
135
98
|
scheduleScope: EventScheduleScope;
|
|
99
|
+
seriesIds?: string | null;
|
|
136
100
|
filterCategoryIds?: string | null;
|
|
137
101
|
filterStaffMemberId?: string | null;
|
|
138
102
|
filterVenueId?: string | null;
|
|
@@ -141,66 +105,8 @@ export declare const eventListingBlockRuntime: Readonly<{
|
|
|
141
105
|
}>;
|
|
142
106
|
contracts: Readonly<{
|
|
143
107
|
source: Readonly<{
|
|
144
|
-
encode: (value:
|
|
145
|
-
|
|
146
|
-
siteId: string;
|
|
147
|
-
apiBaseUrl?: string;
|
|
148
|
-
stage?: "preview" | "published";
|
|
149
|
-
layout?: EventLayout;
|
|
150
|
-
columns?: ColumnOption;
|
|
151
|
-
eventsPerPage?: string;
|
|
152
|
-
paginationMode?: EventListPaginationMode;
|
|
153
|
-
seeAllUrl?: string;
|
|
154
|
-
loadMoreText?: string;
|
|
155
|
-
cardRole?: CardRole;
|
|
156
|
-
buttonVariant?: ButtonVariant;
|
|
157
|
-
buttonText?: string;
|
|
158
|
-
showVenue?: boolean;
|
|
159
|
-
showMap?: boolean;
|
|
160
|
-
showCapacity?: boolean;
|
|
161
|
-
emptyMessage?: string;
|
|
162
|
-
className?: string;
|
|
163
|
-
showFilters?: boolean | null;
|
|
164
|
-
showCategoryFilter?: FilterAutoShow;
|
|
165
|
-
showVenueFilter?: boolean | null;
|
|
166
|
-
showStaffFilter?: boolean | null;
|
|
167
|
-
eventSurface?: EventSurfaceScope | null;
|
|
168
|
-
filterEventPresets?: readonly string[] | string | null;
|
|
169
|
-
scheduleScope?: EventScheduleScope | null;
|
|
170
|
-
filterCategoryIds?: readonly string[] | string | null;
|
|
171
|
-
filterStaffMemberId?: string | null;
|
|
172
|
-
filterVenueId?: string | null;
|
|
173
|
-
}>) => unknown;
|
|
174
|
-
decode: (input: unknown) => import("../../../../contracts").DecodeResult<Readonly<{
|
|
175
|
-
events?: PublicEvent[] | null;
|
|
176
|
-
siteId: string;
|
|
177
|
-
apiBaseUrl?: string;
|
|
178
|
-
stage?: "preview" | "published";
|
|
179
|
-
layout?: EventLayout;
|
|
180
|
-
columns?: ColumnOption;
|
|
181
|
-
eventsPerPage?: string;
|
|
182
|
-
paginationMode?: EventListPaginationMode;
|
|
183
|
-
seeAllUrl?: string;
|
|
184
|
-
loadMoreText?: string;
|
|
185
|
-
cardRole?: CardRole;
|
|
186
|
-
buttonVariant?: ButtonVariant;
|
|
187
|
-
buttonText?: string;
|
|
188
|
-
showVenue?: boolean;
|
|
189
|
-
showMap?: boolean;
|
|
190
|
-
showCapacity?: boolean;
|
|
191
|
-
emptyMessage?: string;
|
|
192
|
-
className?: string;
|
|
193
|
-
showFilters?: boolean | null;
|
|
194
|
-
showCategoryFilter?: FilterAutoShow;
|
|
195
|
-
showVenueFilter?: boolean | null;
|
|
196
|
-
showStaffFilter?: boolean | null;
|
|
197
|
-
eventSurface?: EventSurfaceScope | null;
|
|
198
|
-
filterEventPresets?: readonly string[] | string | null;
|
|
199
|
-
scheduleScope?: EventScheduleScope | null;
|
|
200
|
-
filterCategoryIds?: readonly string[] | string | null;
|
|
201
|
-
filterStaffMemberId?: string | null;
|
|
202
|
-
filterVenueId?: string | null;
|
|
203
|
-
}>>;
|
|
108
|
+
encode: (value: EventListingSourceProps) => unknown;
|
|
109
|
+
decode: (input: unknown) => import("../../../../contracts").DecodeResult<EventListingSourceProps>;
|
|
204
110
|
}>;
|
|
205
111
|
render: Readonly<{
|
|
206
112
|
encode: (value: Readonly<{
|
|
@@ -233,6 +139,7 @@ export declare const eventListingBlockRuntime: Readonly<{
|
|
|
233
139
|
eventSurface: EventSurfaceScope;
|
|
234
140
|
filterEventPresets: string | null;
|
|
235
141
|
scheduleScope: EventScheduleScope;
|
|
142
|
+
seriesIds?: string | null;
|
|
236
143
|
filterCategoryIds?: string | null;
|
|
237
144
|
filterStaffMemberId?: string | null;
|
|
238
145
|
filterVenueId?: string | null;
|
|
@@ -269,6 +176,7 @@ export declare const eventListingBlockRuntime: Readonly<{
|
|
|
269
176
|
eventSurface: EventSurfaceScope;
|
|
270
177
|
filterEventPresets: string | null;
|
|
271
178
|
scheduleScope: EventScheduleScope;
|
|
179
|
+
seriesIds?: string | null;
|
|
272
180
|
filterCategoryIds?: string | null;
|
|
273
181
|
filterStaffMemberId?: string | null;
|
|
274
182
|
filterVenueId?: string | null;
|
|
@@ -317,6 +225,7 @@ export declare const eventListingInteractiveIslandPropsCodec: Readonly<{
|
|
|
317
225
|
eventSurface: EventSurfaceScope;
|
|
318
226
|
filterEventPresets: string | null;
|
|
319
227
|
scheduleScope: EventScheduleScope;
|
|
228
|
+
seriesIds?: string | null;
|
|
320
229
|
filterCategoryIds?: string | null;
|
|
321
230
|
filterStaffMemberId?: string | null;
|
|
322
231
|
filterVenueId?: string | null;
|
|
@@ -362,6 +271,7 @@ export declare const eventListingInteractiveIslandPropsCodec: Readonly<{
|
|
|
362
271
|
eventSurface: EventSurfaceScope;
|
|
363
272
|
filterEventPresets: string | null;
|
|
364
273
|
scheduleScope: EventScheduleScope;
|
|
274
|
+
seriesIds?: string | null;
|
|
365
275
|
filterCategoryIds?: string | null;
|
|
366
276
|
filterStaffMemberId?: string | null;
|
|
367
277
|
filterVenueId?: string | null;
|
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type CalendarWindowPage } from
|
|
2
|
+
import { type CalendarWindowPage } from "../../../../blocks/events/shared/calendarWindow";
|
|
3
3
|
import { type CardRole } from "../../../../../../../theme-core/src/cards/index";
|
|
4
4
|
import { type BookingTimeZone } from "../../../../../../../core/src/index";
|
|
5
|
-
import type { CalendarDate } from
|
|
5
|
+
import type { CalendarDate } from "../../../../../../../calendar/src/index";
|
|
6
6
|
import type { ButtonVariant, CalendarTabViews, CalendarView, ColumnOption, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../../blocks/events/shared/types";
|
|
7
7
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./listOptions";
|
|
8
8
|
import type { EventListingDisplay } from "../EventListing.interactive";
|
|
@@ -28,6 +28,7 @@ export type EventCollectionSourceProps = Readonly<{
|
|
|
28
28
|
eventSurface?: EventSurfaceScope | null;
|
|
29
29
|
filterEventPresets?: readonly string[] | string | null;
|
|
30
30
|
scheduleScope?: EventScheduleScope | null;
|
|
31
|
+
seriesIds?: readonly string[] | string | null;
|
|
31
32
|
filterCategoryIds?: readonly string[] | string | null;
|
|
32
33
|
filterStaffMemberId?: string | null;
|
|
33
34
|
filterVenueId?: string | null;
|
|
@@ -57,6 +58,7 @@ export type EventCollectionDisplay = Readonly<{
|
|
|
57
58
|
eventSurface: EventSurfaceScope;
|
|
58
59
|
filterEventPresets: string | null;
|
|
59
60
|
scheduleScope: EventScheduleScope;
|
|
61
|
+
seriesIds?: string | null;
|
|
60
62
|
filterCategoryIds: string | null;
|
|
61
63
|
filterStaffMemberId: string | null;
|
|
62
64
|
filterVenueId: string | null;
|
|
@@ -102,6 +104,7 @@ export declare const eventCollectionFilterSourceSchemaShape: {
|
|
|
102
104
|
recurring: "recurring";
|
|
103
105
|
oneOff: "oneOff";
|
|
104
106
|
}>>>;
|
|
107
|
+
readonly seriesIds: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
105
108
|
readonly filterCategoryIds: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
106
109
|
readonly filterStaffMemberId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
110
|
readonly filterVenueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -147,6 +150,7 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
147
150
|
recurring: "recurring";
|
|
148
151
|
oneOff: "oneOff";
|
|
149
152
|
}>>>;
|
|
153
|
+
readonly seriesIds: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
150
154
|
readonly filterCategoryIds: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
151
155
|
readonly filterStaffMemberId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
156
|
readonly filterVenueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2162,6 +2166,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2162
2166
|
recurring: "recurring";
|
|
2163
2167
|
oneOff: "oneOff";
|
|
2164
2168
|
}>;
|
|
2169
|
+
readonly seriesIds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2165
2170
|
readonly filterCategoryIds: z.ZodNullable<z.ZodString>;
|
|
2166
2171
|
readonly filterStaffMemberId: z.ZodNullable<z.ZodString>;
|
|
2167
2172
|
readonly filterVenueId: z.ZodNullable<z.ZodString>;
|
|
@@ -27,6 +27,7 @@ export declare function resolveEventListPaginationAction(input: {
|
|
|
27
27
|
defaultLabel?: string;
|
|
28
28
|
}): EventListPaginationAction;
|
|
29
29
|
export type EventRuntimeFilters = Readonly<{
|
|
30
|
+
seriesIds?: string;
|
|
30
31
|
categoryIds?: string;
|
|
31
32
|
staffMemberId?: string;
|
|
32
33
|
venueId?: string;
|
|
@@ -36,6 +37,7 @@ export type EventRuntimeFilters = Readonly<{
|
|
|
36
37
|
}>;
|
|
37
38
|
export type EventRuntimeFiltersDraft = Writable<EventRuntimeFilters>;
|
|
38
39
|
export type EventRuntimeFilterInput = Readonly<{
|
|
40
|
+
seriesIds?: string | null;
|
|
39
41
|
eventSurface?: EventSurfaceScope | null;
|
|
40
42
|
filterEventPresets?: string | null;
|
|
41
43
|
scheduleScope?: EventScheduleScope | null;
|
|
@@ -7,6 +7,7 @@ export type NewsletterFormDisplay = Readonly<{
|
|
|
7
7
|
availability: 'ready' | 'unavailable';
|
|
8
8
|
className: string | null;
|
|
9
9
|
buttonLabel: string;
|
|
10
|
+
successMessage: string;
|
|
10
11
|
buttonVariant: NewsletterButtonVariant;
|
|
11
12
|
privacyNote: string | null;
|
|
12
13
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -51,6 +52,7 @@ export declare const newsletterFormBlockRuntime: Readonly<{
|
|
|
51
52
|
availability: "ready" | "unavailable";
|
|
52
53
|
className: string | null;
|
|
53
54
|
buttonLabel: string;
|
|
55
|
+
successMessage: string;
|
|
54
56
|
buttonVariant: NewsletterButtonVariant;
|
|
55
57
|
privacyNote: string | null;
|
|
56
58
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -79,6 +81,7 @@ export declare const newsletterFormBlockRuntime: Readonly<{
|
|
|
79
81
|
availability: "ready" | "unavailable";
|
|
80
82
|
className: string | null;
|
|
81
83
|
buttonLabel: string;
|
|
84
|
+
successMessage: string;
|
|
82
85
|
buttonVariant: NewsletterButtonVariant;
|
|
83
86
|
privacyNote: string | null;
|
|
84
87
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -101,6 +104,7 @@ export declare const newsletterFormBlockRuntime: Readonly<{
|
|
|
101
104
|
availability: "ready" | "unavailable";
|
|
102
105
|
className: string | null;
|
|
103
106
|
buttonLabel: string;
|
|
107
|
+
successMessage: string;
|
|
104
108
|
buttonVariant: NewsletterButtonVariant;
|
|
105
109
|
privacyNote: string | null;
|
|
106
110
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -135,6 +139,7 @@ export declare const newsletterFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
135
139
|
availability: "ready" | "unavailable";
|
|
136
140
|
className: string | null;
|
|
137
141
|
buttonLabel: string;
|
|
142
|
+
successMessage: string;
|
|
138
143
|
buttonVariant: NewsletterButtonVariant;
|
|
139
144
|
privacyNote: string | null;
|
|
140
145
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -165,6 +170,7 @@ export declare const newsletterFormInteractiveIslandPropsCodec: Readonly<{
|
|
|
165
170
|
availability: "ready" | "unavailable";
|
|
166
171
|
className: string | null;
|
|
167
172
|
buttonLabel: string;
|
|
173
|
+
successMessage: string;
|
|
168
174
|
buttonVariant: NewsletterButtonVariant;
|
|
169
175
|
privacyNote: string | null;
|
|
170
176
|
fields: readonly NewsletterFieldDef[];
|
|
@@ -8,10 +8,6 @@ export { BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES, DiscountCodeDisclosure, } from
|
|
|
8
8
|
export type { DiscountCodeDisclosureProps, DiscountCodeDisclosureSurface, } from './DiscountCodeDisclosure';
|
|
9
9
|
export { ActionRow } from './ActionRow';
|
|
10
10
|
export type { ActionRowProps } from './ActionRow';
|
|
11
|
-
export { BookingOptionCompactRow } from './BookingOptionCompactRow';
|
|
12
|
-
export type { BookingOptionCompactRowAction, BookingOptionCompactRowProps, BookingOptionCompactRowViewModel, BookingOptionMetaItem, } from './BookingOptionCompactRow';
|
|
13
|
-
export { BookingOptionList } from './BookingOptionList';
|
|
14
|
-
export type { BookingOptionGroupViewModel, BookingOptionListProps, } from './BookingOptionList';
|
|
15
11
|
export { FieldValidationMessage, getFieldValidationControlProps, } from './FieldValidationMessage';
|
|
16
12
|
export type { FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, } from './FieldValidationMessage';
|
|
17
13
|
export { FeedbackMessage } from './FeedbackMessage';
|
|
@@ -24,8 +20,8 @@ export { ModalShell } from './ModalShell';
|
|
|
24
20
|
export type { ModalShellProps } from './ModalShell';
|
|
25
21
|
export { TabBarFragment } from './TabBarFragment';
|
|
26
22
|
export { TerminalPanel } from './TerminalPanel';
|
|
27
|
-
export type { TerminalPanelProps, TerminalPanelTitleElement } from './TerminalPanel';
|
|
23
|
+
export type { TerminalPanelProps, TerminalPanelTitleElement, } from './TerminalPanel';
|
|
28
24
|
export { StepIndicator } from './StepIndicator';
|
|
29
|
-
export type { StepIndicatorBaseProps, StepIndicatorProps } from './StepIndicator';
|
|
25
|
+
export type { StepIndicatorBaseProps, StepIndicatorProps, } from './StepIndicator';
|
|
30
26
|
export { RB_OPTION_CARD_CLASSES, SelectableOptionCard, } from './SelectableOptionCard';
|
|
31
27
|
export type { SelectableOptionCardProps } from './SelectableOptionCard';
|
|
@@ -8,5 +8,5 @@ export { DEFAULT_CURRENCY } from './types';
|
|
|
8
8
|
export { BOOK_TARGET_PARAMS, buildCheckoutReturnUrls, resolveDedicatedBookingHref, resolveDedicatedBookingPath, resolveDedicatedBookingTarget, formatPrice, scrollToBlock, consumeSearchParam, consumeSearchParams, validateFormData, getStepNumber, } from './utils';
|
|
9
9
|
export type { DedicatedBookingTarget, UniversalBookingRouteTarget, } from './utils';
|
|
10
10
|
export { createBodyThemePortalRoot } from './utils';
|
|
11
|
-
export { ActionRow,
|
|
12
|
-
export type { ActionRowProps, SelectableOptionCardProps,
|
|
11
|
+
export { ActionRow, CheckIcon, ClockIcon, CrossIcon, BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES, DiscountCodeDisclosure, FieldValidationMessage, FeedbackMessage, getFieldValidationControlProps, MembershipHero, ModalShell, RB_OPTION_CARD_CLASSES, SelectableOptionCard, StateIcon, StepIndicator, TerminalPanel, } from './components';
|
|
12
|
+
export type { ActionRowProps, SelectableOptionCardProps, DiscountCodeDisclosureProps, DiscountCodeDisclosureSurface, FieldValidationControlInput, FieldValidationControlProps, FieldValidationMessageProps, FeedbackLiveMode, FeedbackMessageProps, FeedbackTone, ModalShellProps, StepIndicatorBaseProps, StepIndicatorProps, TerminalPanelProps, TerminalPanelTitleElement, } from './components';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useBlockApi } from "../api";
|
|
2
2
|
import type { ResolveWaitlistClaimResponse } from "../api/types";
|
|
3
3
|
export declare function getWaitlistClaimTokenFromUrl(): string | null;
|
|
4
|
+
export declare function getWaitlistClaimEntryIdFromUrl(): string | null;
|
|
4
5
|
export type UseWaitlistClaimResult = {
|
|
5
6
|
token: string | null;
|
|
7
|
+
entryId: string | null;
|
|
6
8
|
claim: ResolveWaitlistClaimResponse | null;
|
|
7
9
|
error: string | null;
|
|
8
10
|
loginMessage: string | null;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type TransformDefinition } from './core';
|
|
3
|
+
declare const selectionParamSchema: z.ZodObject<{
|
|
4
|
+
key: z.ZodEnum<{
|
|
5
|
+
scheduleScope: "scheduleScope";
|
|
6
|
+
eventSurface: "eventSurface";
|
|
7
|
+
seriesIds: "seriesIds";
|
|
8
|
+
filterEventPresets: "filterEventPresets";
|
|
9
|
+
filterCategoryIds: "filterCategoryIds";
|
|
10
|
+
filterStaffMemberId: "filterStaffMemberId";
|
|
11
|
+
filterVenueId: "filterVenueId";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const eventCalendarSelectionParam: TransformDefinition<z.infer<typeof selectionParamSchema>>;
|
|
3
15
|
declare const readJobSchema: z.ZodObject<{
|
|
4
16
|
job: z.ZodEnum<{
|
|
5
17
|
calendar: "calendar";
|
|
@@ -6,6 +6,10 @@ export type BookingInstalmentScheduleRow = Readonly<{
|
|
|
6
6
|
dueAt: string;
|
|
7
7
|
amountCents: number;
|
|
8
8
|
}>;
|
|
9
|
+
export declare function resolveBookingInitialInstalmentAmountCents(input: Readonly<{
|
|
10
|
+
totalAmountCents: number;
|
|
11
|
+
plan: BookingInstalmentPlanConfig;
|
|
12
|
+
}>): number;
|
|
9
13
|
export declare function buildBookingInstalmentSchedule(input: Readonly<{
|
|
10
14
|
anchorAt: string;
|
|
11
15
|
totalAmountCents: number;
|
|
@@ -8,6 +8,10 @@ export declare const eventRegistrationErrors: {
|
|
|
8
8
|
readonly message: "We’re checking your booking and payment. Please don’t try to book again yet. If you’ve already paid, you don’t need to pay again.";
|
|
9
9
|
readonly action: "payment-status";
|
|
10
10
|
};
|
|
11
|
+
readonly paymentProviderUnavailable: {
|
|
12
|
+
readonly message: "We couldn’t reach the payment provider. Please try again in a minute.";
|
|
13
|
+
readonly action: "retry";
|
|
14
|
+
};
|
|
11
15
|
readonly paymentPageUnavailable: {
|
|
12
16
|
readonly message: "We couldn’t open the payment page. Please refresh this page and try again. If this keeps happening, contact the organiser for help.";
|
|
13
17
|
readonly action: "retry";
|
|
@@ -26,8 +26,17 @@ export declare const DATED_OFFERING_ORDER_ITEM_ENGINE_METADATA_KEYS: {
|
|
|
26
26
|
readonly courseId: "courseId";
|
|
27
27
|
readonly customerId: "customerId";
|
|
28
28
|
readonly eventSeriesId: "eventSeriesId";
|
|
29
|
-
readonly
|
|
29
|
+
readonly settlementKind: "datedOfferingEngineSettlementKind";
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* How a shared whole-series registration order item was settled.
|
|
33
|
+
*
|
|
34
|
+
* A checkout item is the one that consumed a capacity hold and carries its
|
|
35
|
+
* ids; a non-cash item names its settlement outright, because there is no hold
|
|
36
|
+
* to identify it by. The registration itself is `event_series_registration_id`
|
|
37
|
+
* on the row.
|
|
38
|
+
*/
|
|
39
|
+
export type DatedOfferingOrderItemSettlementKind = 'non_cash_registration';
|
|
31
40
|
export type DatedOfferingOrderItemEngineMetadata = Readonly<{
|
|
32
41
|
datedOfferingEngineContractVersion: 'shared_v1';
|
|
33
42
|
datedOfferingEngineRouteKind: 'shared_whole_series_registration';
|
|
@@ -39,10 +48,24 @@ export type DatedOfferingOrderItemEngineMetadata = Readonly<{
|
|
|
39
48
|
export type DatedOfferingNonCashOrderItemEngineMetadata = Readonly<{
|
|
40
49
|
datedOfferingEngineContractVersion: 'shared_v1';
|
|
41
50
|
datedOfferingEngineRouteKind: 'shared_whole_series_registration';
|
|
42
|
-
|
|
51
|
+
datedOfferingEngineSettlementKind: DatedOfferingOrderItemSettlementKind;
|
|
43
52
|
customerId: CustomerId;
|
|
44
53
|
eventSeriesId: EventSeriesId;
|
|
45
54
|
}>;
|
|
55
|
+
/**
|
|
56
|
+
* What each arm forbids the other from carrying.
|
|
57
|
+
*
|
|
58
|
+
* Both arms share the same version and route literals, so without these a
|
|
59
|
+
* hybrid carrying hold identity *and* a settlement kind satisfies the union —
|
|
60
|
+
* exactly the object both parsers below reject.
|
|
61
|
+
*/
|
|
62
|
+
type NoDatedOfferingSettlementKind = Readonly<{
|
|
63
|
+
datedOfferingEngineSettlementKind?: never;
|
|
64
|
+
}>;
|
|
65
|
+
type NoDatedOfferingCapacityHold = Readonly<{
|
|
66
|
+
datedOfferingCapacityHoldId?: never;
|
|
67
|
+
datedOfferingCapacityHoldAuditRef?: never;
|
|
68
|
+
}>;
|
|
46
69
|
export type DatedOfferingOrderItemEngineMetadataParseError = Readonly<{
|
|
47
70
|
kind: 'invalid_engine_contract';
|
|
48
71
|
}> | Readonly<{
|
|
@@ -66,11 +89,11 @@ export type DatedOfferingMetadataRefParseError = Readonly<{
|
|
|
66
89
|
kind: 'invalid_uuid';
|
|
67
90
|
}>;
|
|
68
91
|
type LegacyDatedOfferingOrderItemEngineMetadata = Readonly<{
|
|
69
|
-
[TKey in keyof DatedOfferingOrderItemEngineMetadata]?: never;
|
|
92
|
+
[TKey in keyof DatedOfferingOrderItemEngineMetadata | keyof DatedOfferingNonCashOrderItemEngineMetadata]?: never;
|
|
70
93
|
}>;
|
|
71
94
|
export type EventSeriesRegistrationEngineMetadata = (LegacyDatedOfferingOrderItemEngineMetadata & Readonly<{
|
|
72
95
|
courseId: RetiredCourseId;
|
|
73
|
-
}>) | DatedOfferingOrderItemEngineMetadata | DatedOfferingNonCashOrderItemEngineMetadata;
|
|
96
|
+
}>) | (DatedOfferingOrderItemEngineMetadata & NoDatedOfferingSettlementKind) | (DatedOfferingNonCashOrderItemEngineMetadata & NoDatedOfferingCapacityHold);
|
|
74
97
|
export type EventTicketOrderItemMetadata = CheckoutLineMetadata & StripeBookingCommissionOrderItemMetadata & BookableOrderItemPricingMetadata & Readonly<{
|
|
75
98
|
eventSeriesId: string;
|
|
76
99
|
occurrenceId: OccurrenceId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ContentEntrySnapshot, type ContentTypeSchema, type ToolbarState } from '../../../content-model/src/index';
|
|
2
|
-
import type { EditorBlockId } from '../../../core/src/index';
|
|
2
|
+
import type { EditorBlockId, MailingListProviderScope } from '../../../core/src/index';
|
|
3
3
|
import type { BlockItem } from '../../../editor-blocks/src/block-editor/types';
|
|
4
4
|
import { type ReactNode } from 'react';
|
|
5
5
|
import { type PublishOptions } from '../hooks/useEntryActions';
|
|
@@ -90,6 +90,7 @@ type BaseInternalProps = {
|
|
|
90
90
|
onEntryUpdated?: (response: unknown) => void;
|
|
91
91
|
historyShortcutsEnabled?: boolean;
|
|
92
92
|
resolveBlockManifest?: ResolveBlockManifest;
|
|
93
|
+
getExpectedMailingListProviderScope?: () => MailingListProviderScope | null;
|
|
93
94
|
};
|
|
94
95
|
type EditorOwnerServiceProps = Readonly<{
|
|
95
96
|
owner: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MailingListProviderScope } from '../../../core/src/index';
|
|
1
2
|
import type { ApiClient } from '../services';
|
|
2
3
|
import type { EditorUiStoreInstance } from '../ui/editorUiStore';
|
|
3
4
|
export type BlockAutosaveOptions = {
|
|
@@ -10,6 +11,7 @@ export type BlockAutosaveOptions = {
|
|
|
10
11
|
/** Whether this entry has a route (pages have blocks, content entries don't) */
|
|
11
12
|
hasRoute: boolean;
|
|
12
13
|
owner: BlockAutosaveOwner;
|
|
14
|
+
getExpectedMailingListProviderScope?: () => MailingListProviderScope | null;
|
|
13
15
|
};
|
|
14
16
|
export type BlockAutosaveOwner = Readonly<{
|
|
15
17
|
kind: 'contentEntry';
|
|
@@ -32,4 +34,4 @@ export declare function planBlockSaveRevisionForOwner(owner: BlockAutosaveOwner,
|
|
|
32
34
|
*
|
|
33
35
|
* Only enabled for pages (hasRoute=true), as content entries don't have blocks.
|
|
34
36
|
*/
|
|
35
|
-
export declare function useBlockAutosave({ uiStore, apiClient, siteId, hasRoute, owner, }: BlockAutosaveOptions): import("./useSimpleAutosave").AutosaveHandle;
|
|
37
|
+
export declare function useBlockAutosave({ uiStore, apiClient, siteId, hasRoute, owner, getExpectedMailingListProviderScope, }: BlockAutosaveOptions): import("./useSimpleAutosave").AutosaveHandle;
|
|
@@ -33,6 +33,9 @@ export declare function useFooterComposerState({ apiClient, canEdit, initialTarg
|
|
|
33
33
|
engagementOptions: Readonly<{
|
|
34
34
|
forms: readonly import("../../api/src/footerSettings").FooterFormSummary[];
|
|
35
35
|
mailingList: import("../../core/src/index").MailingListRuntimeContext;
|
|
36
|
+
expectedMailingListProviderScope: import("../../core/src/index").MailingListProviderScope | null;
|
|
37
|
+
confirmation: import("../../core/src/index").ConfiguredMailingListProvider["confirmation"] | null;
|
|
38
|
+
canManageMailingListSetup: boolean;
|
|
36
39
|
}> | null;
|
|
37
40
|
load: () => Promise<void>;
|
|
38
41
|
loadError: string | null;
|
|
@@ -60,7 +60,6 @@ export type BookingSessionId = Brand<string, 'BookingSessionId'>;
|
|
|
60
60
|
export type DatedOfferingCapacityHoldId = Brand<string, 'DatedOfferingCapacityHoldId'>;
|
|
61
61
|
export type DatedOfferingCapacityHoldAuditRef = Brand<string, 'DatedOfferingCapacityHoldAuditRef'>;
|
|
62
62
|
export type DatedOfferingRevocationAuditEventId = Brand<string, 'DatedOfferingRevocationAuditEventId'>;
|
|
63
|
-
export type DatedOfferingNonCashProjectionClaimToken = Brand<string, 'DatedOfferingNonCashProjectionClaimToken'>;
|
|
64
63
|
export type DatedOfferingWaitlistCapacityEffectId = Brand<string, 'DatedOfferingWaitlistCapacityEffectId'>;
|
|
65
64
|
export type DatedOfferingWaitlistCapacityEffectClaimToken = Brand<string, 'DatedOfferingWaitlistCapacityEffectClaimToken'>;
|
|
66
65
|
export type DatedOfferingRunCancellationOperationId = Brand<string, 'DatedOfferingRunCancellationOperationId'>;
|
|
@@ -99,7 +98,6 @@ export type EventRegistrationCommandId = Brand<string, 'EventRegistrationCommand
|
|
|
99
98
|
* is meant.
|
|
100
99
|
*/
|
|
101
100
|
export type EventRegistrationCommandRowId = Brand<string, 'EventRegistrationCommandRowId'>;
|
|
102
|
-
export type EventRegistrationProjectionClaimToken = Brand<string, 'EventRegistrationProjectionClaimToken'>;
|
|
103
101
|
export type CustomerPassId = Brand<string, 'CustomerPassId'>;
|
|
104
102
|
export type CustomerMembershipId = Brand<string, 'CustomerMembershipId'>;
|
|
105
103
|
export type AppointmentId = Brand<string, 'AppointmentId'>;
|
|
@@ -146,7 +144,6 @@ export type ParticipantId = Brand<string, 'ParticipantId'>;
|
|
|
146
144
|
export type ParticipantParticipationId = Brand<string, 'ParticipantParticipationId'>;
|
|
147
145
|
export type ParticipantRosterAssertionJobId = Brand<string, 'ParticipantRosterAssertionJobId'>;
|
|
148
146
|
export type ParticipantBookingQuestionsTaskId = Brand<string, 'ParticipantBookingQuestionsTaskId'>;
|
|
149
|
-
export type EventAttendeeGuestId = Brand<string, 'EventAttendeeGuestId'>;
|
|
150
147
|
export type PersonRecordId = Brand<string, 'PersonRecordId'>;
|
|
151
148
|
export type EncounterRecordId = Brand<string, 'EncounterRecordId'>;
|
|
152
149
|
export type RecordEntryId = Brand<string, 'RecordEntryId'>;
|
|
@@ -212,7 +209,6 @@ export declare const unsafeAsBookingSessionId: (id: string) => BookingSessionId;
|
|
|
212
209
|
export declare const unsafeAsDatedOfferingCapacityHoldId: (value: string) => DatedOfferingCapacityHoldId;
|
|
213
210
|
export declare const unsafeAsDatedOfferingCapacityHoldAuditRef: (value: string) => DatedOfferingCapacityHoldAuditRef;
|
|
214
211
|
export declare const unsafeAsDatedOfferingRevocationAuditEventId: (value: string) => DatedOfferingRevocationAuditEventId;
|
|
215
|
-
export declare const unsafeAsDatedOfferingNonCashProjectionClaimToken: (value: string) => DatedOfferingNonCashProjectionClaimToken;
|
|
216
212
|
export declare const unsafeAsDatedOfferingWaitlistCapacityEffectId: (value: string) => DatedOfferingWaitlistCapacityEffectId;
|
|
217
213
|
export declare const unsafeAsDatedOfferingWaitlistCapacityEffectClaimToken: (value: string) => DatedOfferingWaitlistCapacityEffectClaimToken;
|
|
218
214
|
export declare const unsafeAsDatedOfferingRunCancellationOperationId: (value: string) => DatedOfferingRunCancellationOperationId;
|
|
@@ -236,7 +232,6 @@ export declare const unsafeAsCheckoutLineId: (id: string) => CheckoutLineId;
|
|
|
236
232
|
export declare const unsafeAsAttendeeId: (id: string) => AttendeeId;
|
|
237
233
|
export declare const unsafeAsEventRegistrationCommandId: (id: string) => EventRegistrationCommandId;
|
|
238
234
|
export declare const unsafeAsEventRegistrationCommandRowId: (id: string) => EventRegistrationCommandRowId;
|
|
239
|
-
export declare const unsafeAsEventRegistrationProjectionClaimToken: (id: string) => EventRegistrationProjectionClaimToken;
|
|
240
235
|
export declare const unsafeAsCustomerPassId: (id: string) => CustomerPassId;
|
|
241
236
|
export declare const unsafeAsCustomerMembershipId: (id: string) => CustomerMembershipId;
|
|
242
237
|
export declare const unsafeAsAppointmentId: (id: string) => AppointmentId;
|
|
@@ -282,7 +277,6 @@ export declare const unsafeAsParticipantId: (id: string) => ParticipantId;
|
|
|
282
277
|
export declare const unsafeAsParticipantParticipationId: (id: string) => ParticipantParticipationId;
|
|
283
278
|
export declare const unsafeAsParticipantRosterAssertionJobId: (id: string) => ParticipantRosterAssertionJobId;
|
|
284
279
|
export declare const unsafeAsParticipantBookingQuestionsTaskId: (id: string) => ParticipantBookingQuestionsTaskId;
|
|
285
|
-
export declare const unsafeAsEventAttendeeGuestId: (id: string) => EventAttendeeGuestId;
|
|
286
280
|
export declare const unsafeAsPersonRecordId: (id: string) => PersonRecordId;
|
|
287
281
|
export declare const unsafeAsEncounterRecordId: (id: string) => EncounterRecordId;
|
|
288
282
|
export declare const unsafeAsRecordEntryId: (id: string) => RecordEntryId;
|
|
@@ -318,11 +312,9 @@ export declare const parseAppointmentReservationRunId: (value: unknown) => Resul
|
|
|
318
312
|
export declare const parseAttendeeId: (value: unknown) => Result<AttendeeId, BrandedIdParseError>;
|
|
319
313
|
export declare const parseEventRegistrationCommandId: (value: unknown) => Result<EventRegistrationCommandId, BrandedIdParseError>;
|
|
320
314
|
export declare const parseEventRegistrationCommandRowId: (value: unknown) => Result<EventRegistrationCommandRowId, BrandedIdParseError>;
|
|
321
|
-
export declare const parseEventRegistrationProjectionClaimToken: (value: unknown) => Result<EventRegistrationProjectionClaimToken, BrandedIdParseError>;
|
|
322
315
|
export declare const parseDatedOfferingCapacityHoldId: (value: unknown) => Result<DatedOfferingCapacityHoldId, BrandedIdParseError>;
|
|
323
316
|
export declare const parseDatedOfferingCapacityHoldAuditRef: (value: unknown) => Result<DatedOfferingCapacityHoldAuditRef, BrandedIdParseError>;
|
|
324
317
|
export declare const parseDatedOfferingRevocationAuditEventId: (value: unknown) => Result<DatedOfferingRevocationAuditEventId, BrandedIdParseError>;
|
|
325
|
-
export declare const parseDatedOfferingNonCashProjectionClaimToken: (value: unknown) => Result<DatedOfferingNonCashProjectionClaimToken, BrandedIdParseError>;
|
|
326
318
|
export declare const parseDatedOfferingWaitlistCapacityEffectId: (value: unknown) => Result<DatedOfferingWaitlistCapacityEffectId, BrandedIdParseError>;
|
|
327
319
|
export declare const parseDatedOfferingWaitlistCapacityEffectClaimToken: (value: unknown) => Result<DatedOfferingWaitlistCapacityEffectClaimToken, BrandedIdParseError>;
|
|
328
320
|
export declare const parseDatedOfferingRunCancellationOperationId: (value: unknown) => Result<DatedOfferingRunCancellationOperationId, BrandedIdParseError>;
|
|
@@ -35,6 +35,7 @@ export * from './participants';
|
|
|
35
35
|
export * from './participant-identity';
|
|
36
36
|
export * from './public-url-validation';
|
|
37
37
|
export * from './public-profile';
|
|
38
|
+
export * from './public-experience';
|
|
38
39
|
export * from './rich-text';
|
|
39
40
|
export * from './footer-composition';
|
|
40
41
|
export * from './footer-navigation-layout';
|
|
@@ -6,7 +6,7 @@ export type MailingListSetupParseError = Readonly<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export type MailingListGlobalFormParseError = Readonly<{
|
|
8
8
|
tag: 'invalid_mailing_list_global_form';
|
|
9
|
-
field: 'shape' | 'fields' | 'includeOptionalPhone' | 'buttonLabel' | 'privacyNote';
|
|
9
|
+
field: 'shape' | 'fields' | 'includeOptionalPhone' | 'buttonLabel' | 'successMessage' | 'privacyNote';
|
|
10
10
|
}>;
|
|
11
11
|
export declare function parseMailingListGlobalForm(value: unknown): Result<MailingListGlobalForm, MailingListGlobalFormParseError>;
|
|
12
12
|
export declare function parseMailingListSiteSetup(value: unknown): Result<MailingListSiteSetup, MailingListSetupParseError>;
|