@riverbankcms/sdk 0.88.0 → 0.90.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 +27 -4
- package/dist/{PreviewEditorSidebar-EVRS3C7T.mjs → PreviewEditorSidebar-KVXNF3VW.mjs} +3 -3
- package/dist/{PreviewEditorUI-54WD4IGE.mjs → PreviewEditorUI-J3JN5Z7T.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-UBL6MSNP.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +216 -0
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -2
- package/dist/_dts/api/src/bookings.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +7 -6
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -5
- package/dist/_dts/api/src/request.d.ts +21 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteMembers.d.ts +6 -1
- package/dist/_dts/api/src/types.d.ts +4 -2
- package/dist/_dts/api/src/url.d.ts +6 -3
- package/dist/_dts/block-form/src/utils/visibleWhen.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +5 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +9 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +7 -11
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +8 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
- package/dist/_dts/blocks/src/system/icons/cta.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +72 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +18 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/loadStateError.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.state.d.ts +55 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.d.ts +4 -27
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.state.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.state.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/calendarViewOptions.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +35 -0
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/sdkBlocks.d.ts +21 -0
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +61 -0
- package/dist/_dts/core/src/branded.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/money-input.d.ts +18 -0
- package/dist/_dts/core/src/site-route-target.d.ts +40 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +209 -2
- package/dist/_dts/media-core/src/fileDomain.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
- package/dist/_dts/media-editor/src/fieldUi.d.ts +6 -0
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +12 -5
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -55
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +160 -0
- package/dist/_dts/sdk/src/client/types.d.ts +26 -1
- package/dist/_dts/sdk/src/components.d.ts +1 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -1
- package/dist/_dts/sdk/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/next/types.d.ts +8 -11
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-theme-scope.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -6
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +26 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +18 -0
- package/dist/_dts/theme-core/src/ResponsiveScope.d.ts +12 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/cards/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -21
- package/dist/_dts/theme-core/src/schema.d.ts +18 -18
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/themeRuntime.d.ts +11 -0
- package/dist/{chunk-ER4UIW4X.mjs → chunk-AEOYWPE4.mjs} +91 -55
- package/dist/{chunk-O4LVYUVH.mjs → chunk-BOQXMCSP.mjs} +147 -101
- package/dist/{chunk-HVOBXA3Y.mjs → chunk-GSPFFUVB.mjs} +2 -2
- package/dist/{chunk-7KOO7RPP.mjs → chunk-PMBB6MQ7.mjs} +2273 -1113
- package/dist/{chunk-K3JWH6HE.mjs → chunk-RQ3XZ4SJ.mjs} +9 -1
- package/dist/{chunk-YDMBIIS5.mjs → chunk-UG7I7S7W.mjs} +1 -1
- package/dist/cli/index.mjs +1564 -546
- package/dist/cli/init-docs/content/cli-reference.md +6 -1
- package/dist/cli/init-docs/content/content-management.md +27 -0
- package/dist/client/{accordion-PT5CGW5N.mjs → accordion-GXQNWQ6O.mjs} +2 -2
- package/dist/client/{bookingForm-2HLRTEYS.mjs → bookingForm-STLUJ36H.mjs} +206 -335
- package/dist/client/bookings.mjs +821 -413
- package/dist/client/{carousel-Z2LKYSWA.mjs → carousel-CVRN6EPP.mjs} +4 -3
- package/dist/client/{cart-ND5IK4A6.mjs → cart-IYIBA5CL.mjs} +8 -8
- package/dist/client/{checkout-EYUSGAY7.mjs → checkout-O3BGM4GS.mjs} +8 -8
- package/dist/client/chunk-4RTFGHZN.mjs +433 -0
- package/dist/client/{chunk-DIRW2LNG.mjs → chunk-6DPXDOIL.mjs} +336 -225
- package/dist/client/chunk-6N7YRNYU.mjs +183 -0
- package/dist/client/{chunk-O5JNI3E4.mjs → chunk-7DH35FGA.mjs} +2 -2
- package/dist/client/{chunk-S4G65LGR.mjs → chunk-D3ETC2SU.mjs} +1 -1
- package/dist/client/{chunk-BAWHZ5GM.mjs → chunk-DAS5CIER.mjs} +460 -157
- package/dist/client/{chunk-6DVPO44G.mjs → chunk-FHU6PFPM.mjs} +1 -1
- package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
- package/dist/client/{chunk-BL66UWGD.mjs → chunk-MFPKS6QS.mjs} +13 -16
- package/dist/client/{chunk-X7GVFB7Y.mjs → chunk-NBFRJ5NB.mjs} +157 -5
- package/dist/client/{chunk-WCVK4MBJ.mjs → chunk-VFHZLZAC.mjs} +1 -1
- package/dist/client/{chunk-GOFO7HRH.mjs → chunk-WHZQDPBZ.mjs} +19 -1
- package/dist/client/{chunk-MHBEWDT7.mjs → chunk-Z62JYS5O.mjs} +122 -50
- package/dist/client/client.mjs +5979 -5198
- package/dist/client/{courseRegistration-H3AZBUEG.mjs → courseRegistration-2D3ACMJR.mjs} +20 -58
- package/dist/client/{eventCalendar-FPKJGLGS.mjs → eventCalendar-QY4UZUFF.mjs} +11 -11
- package/dist/client/{eventCombined-QCGIZBUY.mjs → eventCombined-RRCDKJC2.mjs} +11 -11
- package/dist/client/{eventDetails-HIT3BJWU.mjs → eventDetails-YO335BUT.mjs} +11 -11
- package/dist/client/{eventListing-R4HNWJDN.mjs → eventListing-PXA6GFQ3.mjs} +11 -11
- package/dist/client/{eventRegistration-Q7BYY5HF.mjs → eventRegistration-2ZHEDDXO.mjs} +11 -11
- package/dist/client/{form-NI6YOG6S.mjs → form-ZS6KX4U2.mjs} +7 -7
- package/dist/client/{headerSection-SDYGII36.mjs → headerSection-QK5SLIIB.mjs} +3 -3
- package/dist/client/hooks.mjs +1102 -1029
- package/dist/client/{locationMap-BDETEUQD.mjs → locationMap-GFNIUD2X.mjs} +3 -3
- package/dist/client/{newsletterForm-EKYIU67X.mjs → newsletterForm-PGLTTCUG.mjs} +61 -25
- package/dist/client/{productDetail-5UTGNN76.mjs → productDetail-OPBE5ZPI.mjs} +8 -8
- package/dist/client/{productList-7YA5KXZQ.mjs → productList-NI72Q62Z.mjs} +8 -8
- package/dist/client/rendering/client.mjs +4390 -4245
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3327 -3181
- package/dist/client/{shop-AIMUMZYC.mjs → shop-3ZQPEWYI.mjs} +8 -8
- package/dist/client/spam-protection.mjs +4 -5
- package/dist/preview-next/before-render.mjs +20 -2
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +18 -0
- package/dist/{sdk-runtime-NW472WNT.mjs → sdk-runtime-FSHXCWDS.mjs} +6 -6
- package/dist/server/components.mjs +2580 -2783
- package/dist/server/config-validation.mjs +1334 -1261
- package/dist/server/config.mjs +1334 -1261
- package/dist/server/data.mjs +1102 -1029
- package/dist/server/index.mjs +1097 -476
- package/dist/server/navigation.mjs +20 -30
- package/dist/server/next.mjs +3282 -2847
- package/dist/server/page-converter.mjs +1009 -946
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2580 -2783
- package/dist/server/rendering.mjs +2586 -2789
- package/dist/server/routing.mjs +1440 -1053
- package/dist/server/server.mjs +1886 -1153
- package/dist/server/theme-bridge.mjs +34 -5
- package/dist/styles/index.css +26 -0
- package/package.json +3 -2
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +0 -8
- package/dist/client/chunk-H4MHEXYS.mjs +0 -184
- package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
- /package/dist/client/{chunk-LI2C6M5O.mjs → chunk-25W2EQUN.mjs} +0 -0
|
@@ -24,6 +24,7 @@ export * from '../../theme-core/src/footer/mode';
|
|
|
24
24
|
export * from '../../theme-core/src/ThemeScope';
|
|
25
25
|
export * from '../../theme-core/src/ThemeFontLoader';
|
|
26
26
|
export * from '../../theme-core/src/ThemeScopeCore';
|
|
27
|
+
export * from '../../theme-core/src/ResponsiveScope';
|
|
27
28
|
export * from '../../theme-core/src/themeScopeUtils';
|
|
28
29
|
export * from '../../theme-core/src/fonts/index';
|
|
29
30
|
export * from '../../theme-core/src/runtime/buildThemeRuntime';
|
|
@@ -69,7 +70,7 @@ export { defineFrameCapability, flushPanelFrame, panelFrame, plainFrame, resolve
|
|
|
69
70
|
export type { ContentFrameIntent, FlushFrameTreatment, FlushPanelFrameIntent, FrameBleedEdge, FrameCapability, FrameDecisionFor, FrameKind, PanelFrameIntent, PanelFrameTreatment, PlainFrameIntent, ResolvedFlushPanelFrame, ResolvedFrameStyles, ResolvedPanelFrame, ResolvedPlainFrame, SectionPaddingX, FrameSurfaceOwner, } from './system/frame/frameStyles';
|
|
70
71
|
export { resolveBackground, SectionBackground, type BackgroundInput, type ResolvedBackground, type SectionBackgroundProps, } from './system/helpers';
|
|
71
72
|
export type { SectionStylesContent } from './system/fields/boxStyles';
|
|
72
|
-
export { eventCalendarDisplayModeValues, eventCalendarListLayoutAppliesToDisplayMode, eventCalendarListLayoutCompatibleDisplayModeValues, eventCalendarListLayoutOptions, eventCalendarListLayoutValues, getPreviewContext, isEventCalendarDisplayMode, isEventCalendarListLayout, isEventContentType, type EventCalendarDisplayMode, type EventCalendarListLayout, type PreviewContext, } from './system/constants/events';
|
|
73
|
+
export { eventCalendarDisplayModeValues, eventCalendarDefaultViewValues, eventCalendarListLayoutAppliesToDisplayMode, eventCalendarListLayoutCompatibleDisplayModeValues, eventCalendarListLayoutOptions, eventCalendarListLayoutValues, getPreviewContext, isEventCalendarDefaultView, isEventCalendarDisplayMode, isEventCalendarListLayout, isEventContentType, type EventCalendarDefaultView, type EventCalendarDisplayMode, type EventCalendarListLayout, type PreviewContext, } from './system/constants/events';
|
|
73
74
|
export { eventCalendarListLayoutFacet, defineCustomizeFacet, isSystemCustomizeFacetId, isSystemCustomizeFacetValue, parseSystemCustomizeFacetSelection, systemCustomizeFacetApplyContentPatch, systemCustomizeFacetAppliesToLayoutVariant, systemCustomizeFacetCurrentValue, systemCustomizeFacetDefinitionForBlock, systemCustomizeFacetDefinitionForId, systemCustomizeFacetDefinitions, systemCustomizeFacetDefinitionsForBlock, systemCustomizeFacetIds, systemCustomizeFacetLabelForValue, systemCustomizeFacetNextValue, systemCustomizeFacetRollbackContentPatch, systemCustomizeFacetValues, type EventCalendarListLayoutCustomizeFacetTarget, type CustomizeFacetContent, type CustomizeFacetCycleDirection, type CustomizeFacetDefinition, type CustomizeFacetTarget, type CustomizeFacetValueOption, type ParseSystemCustomizeFacetSelectionResult, type SystemCustomizeFacetBlockKind, type SystemCustomizeFacetDefinition, type SystemCustomizeFacetHistorySelection, type SystemCustomizeFacetId, type SystemCustomizeFacetSelection, type SystemCustomizeFacetTransition, type SystemCustomizeFacetValue, } from './system/customize/facets';
|
|
74
75
|
export { BACKGROUND_MODES, DEFAULT_BACKGROUND_OVERRIDE, applyBackgroundOverrideContentPatch, backgroundModeForOverride, defaultBackgroundOverrideForMode, enabledBackgroundModes, isGradientPresetId, parseBackgroundOverride, parseGradientPresetId, planBackgroundTransition, rankBackgroundImagePoolItems, serializeBackgroundOverride, type BackgroundCapability, type BackgroundCustomizeContent, type BackgroundImagePoolItem, type BackgroundImagePoolSource, type BackgroundMode, type BackgroundModeCycleDirection, type BackgroundOverride, type BackgroundPersistenceSideEffect, type BackgroundTransitionAction, type BackgroundTransitionBlockedReason, type BackgroundTransitionPlan, type GradientPresetId, type LegacyBackgroundReason, type ParsedBackgroundOverride, } from './system/customize/backgrounds';
|
|
75
76
|
export { transformSdkBlockToManifest, transformSdkBlockToDefinition, } from './sdkBlockTransform';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EventCategoryId, VenueId } from '../../../../../core/src/index';
|
|
2
2
|
import type { SystemBlockDefinition } from '../../registry';
|
|
3
3
|
import { type SectionStylesContent } from '../../fields/boxStyles';
|
|
4
|
-
import type { DisplayMode, EventLayout, ColumnOption, WeekStart, FilterAutoShow, CalendarTabViews, ButtonVariant, EventBlockKind, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './shared/types';
|
|
4
|
+
import type { DisplayMode, EventLayout, ColumnOption, WeekStart, FilterAutoShow, CalendarTabViews, CalendarView, ButtonVariant, EventBlockKind, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './shared/types';
|
|
5
5
|
import { eventCalendarBlockRuntime } from '../../runtime/nodes/events/EventCalendar.interactive';
|
|
6
6
|
export declare function normalizeEventCalendarContent(content: unknown): EventCalendarContent;
|
|
7
7
|
export declare const eventCalendarManifest: import("../..").DefinedBlockManifest<{
|
|
@@ -13,9 +13,7 @@ export declare const eventCalendarManifest: import("../..").DefinedBlockManifest
|
|
|
13
13
|
readonly options: readonly [{
|
|
14
14
|
readonly value: "combined";
|
|
15
15
|
}, {
|
|
16
|
-
readonly value: "
|
|
17
|
-
}, {
|
|
18
|
-
readonly value: "week";
|
|
16
|
+
readonly value: "calendar";
|
|
19
17
|
}, {
|
|
20
18
|
readonly value: "timetable";
|
|
21
19
|
}, {
|
|
@@ -29,11 +27,20 @@ export declare const eventCalendarManifest: import("../..").DefinedBlockManifest
|
|
|
29
27
|
readonly options: {
|
|
30
28
|
value: "compact" | "grid" | "stack";
|
|
31
29
|
}[];
|
|
30
|
+
}, {
|
|
31
|
+
readonly id: "defaultCalendarView";
|
|
32
|
+
readonly type: "select";
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly multiple: false;
|
|
35
|
+
readonly options: readonly [{
|
|
36
|
+
readonly value: "month";
|
|
37
|
+
}, {
|
|
38
|
+
readonly value: "week";
|
|
39
|
+
}];
|
|
32
40
|
}];
|
|
33
41
|
readonly variants: {
|
|
34
42
|
readonly combined: import("../..").NodeDefinition;
|
|
35
|
-
readonly
|
|
36
|
-
readonly week: import("../..").NodeDefinition;
|
|
43
|
+
readonly calendar: import("../..").NodeDefinition;
|
|
37
44
|
readonly timetable: import("../..").NodeDefinition;
|
|
38
45
|
readonly list: import("../..").NodeDefinition;
|
|
39
46
|
};
|
|
@@ -54,6 +61,7 @@ export type EventCalendarContent = {
|
|
|
54
61
|
loadMoreText?: string | null;
|
|
55
62
|
startOfWeek?: WeekStart | null;
|
|
56
63
|
calendarTabViews?: CalendarTabViews | null;
|
|
64
|
+
defaultCalendarView?: CalendarView | null;
|
|
57
65
|
showFilters?: boolean | null;
|
|
58
66
|
showCategoryFilter?: FilterAutoShow | null;
|
|
59
67
|
showVenueFilter?: boolean | null;
|
|
@@ -7,7 +7,7 @@ import type { RichTextDoc } from '../../../manifest/richTextSchema';
|
|
|
7
7
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
8
8
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
9
9
|
import type { CoursePricing } from '../../courses/shared/types';
|
|
10
|
-
import type { eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
10
|
+
import type { eventCalendarDefaultViewValues, eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
11
11
|
import type { EventBlockKind, EventScheduleScope, EventSurfacePreset, EventSurfaceScope } from './filtering';
|
|
12
12
|
import type { CardVariantRole, LegacyCardVariantRoleAlias } from '../../../../../../theme-core/src/cards/index';
|
|
13
13
|
/**
|
|
@@ -176,7 +176,7 @@ export type ColumnOption = "2" | "3" | "4";
|
|
|
176
176
|
/**
|
|
177
177
|
* Calendar view options
|
|
178
178
|
*/
|
|
179
|
-
export type CalendarView =
|
|
179
|
+
export type CalendarView = (typeof eventCalendarDefaultViewValues)[number];
|
|
180
180
|
/**
|
|
181
181
|
* Week start day options
|
|
182
182
|
*/
|
|
@@ -184,9 +184,9 @@ export type WeekStart = "sunday" | "monday";
|
|
|
184
184
|
/**
|
|
185
185
|
* Display mode options for the enhanced event-calendar block
|
|
186
186
|
* - combined: Tabbed view with List + Calendar tabs (default)
|
|
187
|
-
* -
|
|
188
|
-
* - week: Week calendar only
|
|
187
|
+
* - calendar: Standalone calendar view
|
|
189
188
|
* - list: List of events only (with load-more pagination)
|
|
189
|
+
* - timetable: Weekly timetable for recurring class schedules
|
|
190
190
|
*/
|
|
191
191
|
export type DisplayMode = (typeof eventCalendarDisplayModeValues)[number];
|
|
192
192
|
/**
|
|
@@ -11,7 +11,6 @@ declare const classicLayout: NodeDefinition;
|
|
|
11
11
|
declare const microLayout: NodeDefinition;
|
|
12
12
|
declare const splitLayout: NodeDefinition;
|
|
13
13
|
declare const splitReverseLayout: NodeDefinition;
|
|
14
|
-
declare const splitEditorialLayout: NodeDefinition;
|
|
15
14
|
type HeroConfig = Omit<BlockConfig, "additionalFields" | "defaultVariant" | "fragments" | "includeContainerStyles" | "promotedFields" | "variants"> & {
|
|
16
15
|
readonly includeContainerStyles: true;
|
|
17
16
|
readonly promotedFields: readonly ["_sectionStyles.background.image"];
|
|
@@ -41,7 +40,6 @@ type HeroConfig = Omit<BlockConfig, "additionalFields" | "defaultVariant" | "fra
|
|
|
41
40
|
readonly micro: typeof microLayout;
|
|
42
41
|
readonly split: typeof splitLayout;
|
|
43
42
|
readonly splitReverse: typeof splitReverseLayout;
|
|
44
|
-
readonly splitEditorial: typeof splitEditorialLayout;
|
|
45
43
|
};
|
|
46
44
|
readonly defaultVariant: "classic";
|
|
47
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../registry";
|
|
2
2
|
import { type SectionStylesContent } from "../fields/boxStyles";
|
|
3
|
-
import { publicMembershipProductSchema, publicPassProductSchema, type PublicMembershipProduct, type PublicPassProduct } from "./shop.shared";
|
|
3
|
+
import { publicMembershipProductSchema, publicPassProductSchema, publicMembershipProductCollectionSchema, publicPassProductCollectionSchema, type PublicMembershipProductCollection, type PublicMembershipProduct, type PublicPassProductCollection, type PublicPassProduct } from "./shop.shared";
|
|
4
4
|
import { shopBlockRuntime } from "../runtime/nodes/shop.interactive";
|
|
5
5
|
/**
|
|
6
6
|
* Passes & Memberships Block
|
|
@@ -29795,6 +29795,6 @@ export type ShopContent = {
|
|
|
29795
29795
|
emptyStateText?: string | null;
|
|
29796
29796
|
_sectionStyles?: SectionStylesContent;
|
|
29797
29797
|
};
|
|
29798
|
-
export { publicMembershipProductSchema, publicPassProductSchema, };
|
|
29799
|
-
export type { PublicMembershipProduct, PublicPassProduct, };
|
|
29798
|
+
export { publicMembershipProductCollectionSchema, publicMembershipProductSchema, publicPassProductCollectionSchema, publicPassProductSchema, };
|
|
29799
|
+
export type { PublicMembershipProductCollection, PublicMembershipProduct, PublicPassProductCollection, PublicPassProduct, };
|
|
29800
29800
|
export declare const shopBlockDefinition: SystemBlockDefinition<ShopContent, typeof shopBlockRuntime>;
|
|
@@ -19,6 +19,10 @@ export declare const publicPassProductSchema: z.ZodObject<{
|
|
|
19
19
|
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type PublicPassProduct = z.infer<typeof publicPassProductSchema>;
|
|
22
|
+
export type PublicPassProductCollection = Readonly<{
|
|
23
|
+
passes: readonly PublicPassProduct[];
|
|
24
|
+
}>;
|
|
25
|
+
export declare const publicPassProductCollectionSchema: z.ZodType<PublicPassProductCollection>;
|
|
22
26
|
/**
|
|
23
27
|
* Public membership product for shop display
|
|
24
28
|
*/
|
|
@@ -36,3 +40,7 @@ export declare const publicMembershipProductSchema: z.ZodObject<{
|
|
|
36
40
|
eligibleCategoryNames: z.ZodArray<z.ZodString>;
|
|
37
41
|
}, z.core.$strip>;
|
|
38
42
|
export type PublicMembershipProduct = z.infer<typeof publicMembershipProductSchema>;
|
|
43
|
+
export type PublicMembershipProductCollection = Readonly<{
|
|
44
|
+
memberships: readonly PublicMembershipProduct[];
|
|
45
|
+
}>;
|
|
46
|
+
export declare const publicMembershipProductCollectionSchema: z.ZodType<PublicMembershipProductCollection>;
|
|
@@ -25,8 +25,10 @@ export type EventContentTypeSlug = (typeof EVENT_CONTENT_TYPE_SLUGS)[number];
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const EVENT_CATEGORY_BADGE_TOKENS: readonly ["primary", "secondary", "accent"];
|
|
27
27
|
export type EventCategoryBadgeToken = (typeof EVENT_CATEGORY_BADGE_TOKENS)[number];
|
|
28
|
-
export declare const eventCalendarDisplayModeValues: readonly ["combined", "
|
|
28
|
+
export declare const eventCalendarDisplayModeValues: readonly ["combined", "calendar", "list", "timetable"];
|
|
29
29
|
export type EventCalendarDisplayMode = (typeof eventCalendarDisplayModeValues)[number];
|
|
30
|
+
export declare const eventCalendarDefaultViewValues: readonly ["month", "week"];
|
|
31
|
+
export type EventCalendarDefaultView = (typeof eventCalendarDefaultViewValues)[number];
|
|
30
32
|
export declare const eventCalendarListLayoutValues: readonly ["stack", "grid", "compact"];
|
|
31
33
|
export type EventCalendarListLayout = (typeof eventCalendarListLayoutValues)[number];
|
|
32
34
|
export declare const eventCalendarListLayoutOptions: readonly [{
|
|
@@ -41,6 +43,7 @@ export declare const eventCalendarListLayoutOptions: readonly [{
|
|
|
41
43
|
}];
|
|
42
44
|
export declare const eventCalendarListLayoutCompatibleDisplayModeValues: readonly ["combined", "list"];
|
|
43
45
|
export declare function isEventCalendarDisplayMode(value: unknown): value is EventCalendarDisplayMode;
|
|
46
|
+
export declare function isEventCalendarDefaultView(value: unknown): value is EventCalendarDefaultView;
|
|
44
47
|
export declare function isEventCalendarListLayout(value: unknown): value is EventCalendarListLayout;
|
|
45
48
|
export declare function eventCalendarListLayoutAppliesToDisplayMode(displayMode: EventCalendarDisplayMode): boolean;
|
|
46
49
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type IconComponent } from './svg';
|
|
2
2
|
/**
|
|
3
3
|
* Curated icon set for CTA/button icons.
|
|
4
4
|
*
|
|
@@ -11,7 +11,7 @@ export type CtaIconOption = {
|
|
|
11
11
|
id: CtaIconName;
|
|
12
12
|
label: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const CTA_ICON_COMPONENTS: Record<CtaIconName,
|
|
14
|
+
export declare const CTA_ICON_COMPONENTS: Record<CtaIconName, IconComponent>;
|
|
15
15
|
export declare function isCtaIconName(value: unknown): value is CtaIconName;
|
|
16
16
|
export declare const CTA_ICON_OPTIONS: CtaIconOption[];
|
|
17
|
-
export declare function getCtaIconComponent(name: unknown):
|
|
17
|
+
export declare function getCtaIconComponent(name: unknown): IconComponent | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { LucideIcon } from 'lucide-react';
|
|
2
1
|
import { type CtaIconName } from './cta';
|
|
3
2
|
import { type SemanticIconId } from './semantic';
|
|
4
3
|
import { type IconPickerPreset } from './presets';
|
|
4
|
+
import type { IconComponent } from './svg';
|
|
5
5
|
export type IconName = CtaIconName | SemanticIconId;
|
|
6
6
|
export type IconIdForPreset<Preset extends IconPickerPreset> = Preset extends 'cta' ? CtaIconName : Preset extends 'feature' ? SemanticIconId : never;
|
|
7
7
|
export type IconPickerOption<Preset extends IconPickerPreset = IconPickerPreset> = {
|
|
@@ -15,4 +15,4 @@ export declare function getIconPickerOptionsForPreset(preset: 'feature'): readon
|
|
|
15
15
|
export declare function getIconPickerOptionsForPreset(preset: IconPickerPreset): readonly IconPickerOption[];
|
|
16
16
|
export declare function getIconPickerOptionsForUnknownPreset(value: unknown): readonly IconPickerOption[];
|
|
17
17
|
export declare function isKnownIconName(value: unknown): value is IconName;
|
|
18
|
-
export declare function getIconComponent(name: unknown):
|
|
18
|
+
export declare function getIconComponent(name: unknown): IconComponent | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type IconComponent } from './svg';
|
|
2
2
|
import type { IconPickerPreset } from './presets';
|
|
3
3
|
export declare const ICON_DOMAINS: readonly ["wellbeing", "coaching", "community", "education", "commerce", "events", "services", "hospitality", "creative", "technology"];
|
|
4
4
|
export type IconDomain = (typeof ICON_DOMAINS)[number];
|
|
@@ -14,7 +14,7 @@ export type SemanticIconDefinition = {
|
|
|
14
14
|
tone: readonly IconTone[];
|
|
15
15
|
presets: readonly IconPickerPreset[];
|
|
16
16
|
};
|
|
17
|
-
export declare const SEMANTIC_ICON_COMPONENTS: Record<SemanticIconId,
|
|
17
|
+
export declare const SEMANTIC_ICON_COMPONENTS: Record<SemanticIconId, IconComponent>;
|
|
18
18
|
export declare const SEMANTIC_ICON_DEFINITIONS: readonly [{
|
|
19
19
|
readonly id: "protection-trust";
|
|
20
20
|
readonly label: "Protection and trust";
|
|
@@ -236,4 +236,4 @@ export declare const SEMANTIC_ICON_DEFINITIONS: readonly [{
|
|
|
236
236
|
export type SemanticIconOption = Pick<SemanticIconDefinition, 'id' | 'label'>;
|
|
237
237
|
export declare const SEMANTIC_ICON_OPTIONS: SemanticIconOption[];
|
|
238
238
|
export declare function isSemanticIconId(value: unknown): value is SemanticIconId;
|
|
239
|
-
export declare function getSemanticIconComponent(name: unknown):
|
|
239
|
+
export declare function getSemanticIconComponent(name: unknown): IconComponent | null;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* RSC-safe icon primitives for public block rendering.
|
|
5
|
+
*
|
|
6
|
+
* Keep these icons hand-authored in this package. Do not re-import Lucide here:
|
|
7
|
+
* this module is reachable from SDK server exports and must remain safe to
|
|
8
|
+
* evaluate in Next App Router React Server Components.
|
|
9
|
+
*/
|
|
10
|
+
export type IconSvgProps = Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> & {
|
|
11
|
+
size?: number | string;
|
|
12
|
+
strokeWidth?: number | string;
|
|
13
|
+
title?: string;
|
|
14
|
+
};
|
|
15
|
+
export type IconComponent = React.ComponentType<IconSvgProps>;
|
|
16
|
+
export declare const ArrowDownIcon: IconComponent;
|
|
17
|
+
export declare const ArrowLeftIcon: IconComponent;
|
|
18
|
+
export declare const ArrowRightIcon: IconComponent;
|
|
19
|
+
export declare const AwardIcon: IconComponent;
|
|
20
|
+
export declare const BadgeCheckIcon: IconComponent;
|
|
21
|
+
export declare const BookOpenIcon: IconComponent;
|
|
22
|
+
export declare const BrainIcon: IconComponent;
|
|
23
|
+
export declare const BriefcaseBusinessIcon: IconComponent;
|
|
24
|
+
export declare const CalendarIcon: IconComponent;
|
|
25
|
+
export declare const CalendarDaysIcon: IconComponent;
|
|
26
|
+
export declare const CheckIcon: IconComponent;
|
|
27
|
+
export declare const ChevronDownIcon: IconComponent;
|
|
28
|
+
export declare const ChevronLeftIcon: IconComponent;
|
|
29
|
+
export declare const ChevronRightIcon: IconComponent;
|
|
30
|
+
export declare const ChevronUpIcon: IconComponent;
|
|
31
|
+
export declare const CircleMinusIcon: IconComponent;
|
|
32
|
+
export declare const CirclePlusIcon: IconComponent;
|
|
33
|
+
export declare const ClockIcon: IconComponent;
|
|
34
|
+
export declare const CompassIcon: IconComponent;
|
|
35
|
+
export declare const DownloadIcon: IconComponent;
|
|
36
|
+
export declare const ExternalLinkIcon: IconComponent;
|
|
37
|
+
export declare const FileArchiveIcon: IconComponent;
|
|
38
|
+
export declare const FileAudioIcon: IconComponent;
|
|
39
|
+
export declare const FileSpreadsheetIcon: IconComponent;
|
|
40
|
+
export declare const FileTextIcon: IconComponent;
|
|
41
|
+
export declare const Flower2Icon: IconComponent;
|
|
42
|
+
export declare const GlobeIcon: IconComponent;
|
|
43
|
+
export declare const GraduationCapIcon: IconComponent;
|
|
44
|
+
export declare const HandHeartIcon: IconComponent;
|
|
45
|
+
export declare const HeartIcon: IconComponent;
|
|
46
|
+
export declare const HeartHandshakeIcon: IconComponent;
|
|
47
|
+
export declare const HomeIcon: IconComponent;
|
|
48
|
+
export declare const InfoIcon: IconComponent;
|
|
49
|
+
export declare const LeafIcon: IconComponent;
|
|
50
|
+
export declare const LightbulbIcon: IconComponent;
|
|
51
|
+
export declare const LockIcon: IconComponent;
|
|
52
|
+
export declare const MailIcon: IconComponent;
|
|
53
|
+
export declare const MapPinIcon: IconComponent;
|
|
54
|
+
export declare const MessageCircleIcon: IconComponent;
|
|
55
|
+
export declare const MinusIcon: IconComponent;
|
|
56
|
+
export declare const PackageIcon: IconComponent;
|
|
57
|
+
export declare const PhoneIcon: IconComponent;
|
|
58
|
+
export declare const PlayIcon: IconComponent;
|
|
59
|
+
export declare const PlusIcon: IconComponent;
|
|
60
|
+
export declare const ShieldIcon: IconComponent;
|
|
61
|
+
export declare const ShoppingBagIcon: IconComponent;
|
|
62
|
+
export declare const ShoppingCartIcon: IconComponent;
|
|
63
|
+
export declare const SmileIcon: IconComponent;
|
|
64
|
+
export declare const SparklesIcon: IconComponent;
|
|
65
|
+
export declare const SproutIcon: IconComponent;
|
|
66
|
+
export declare const StarIcon: IconComponent;
|
|
67
|
+
export declare const TargetIcon: IconComponent;
|
|
68
|
+
export declare const UploadIcon: IconComponent;
|
|
69
|
+
export declare const UserRoundCheckIcon: IconComponent;
|
|
70
|
+
export declare const UsersIcon: IconComponent;
|
|
71
|
+
export declare const WrenchIcon: IconComponent;
|
|
72
|
+
export declare const XIcon: IconComponent;
|
|
@@ -43,7 +43,9 @@ export type FieldVisibleWhenPredicate = {
|
|
|
43
43
|
maxItems?: number;
|
|
44
44
|
};
|
|
45
45
|
export type FieldVisibleWhen = FieldVisibleWhenPredicate | {
|
|
46
|
-
allOf:
|
|
46
|
+
allOf: FieldVisibleWhen[];
|
|
47
|
+
} | {
|
|
48
|
+
anyOf: FieldVisibleWhen[];
|
|
47
49
|
};
|
|
48
50
|
declare const uiSchema: z.ZodObject<{
|
|
49
51
|
widget: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -44,6 +44,7 @@ export type { BlockApiClient } from './client';
|
|
|
44
44
|
export { BlockApiProvider, useBlockApi, useBlockApiOptional } from './context';
|
|
45
45
|
export type { BlockApiProviderProps } from './context';
|
|
46
46
|
export type { BlockApiConfig, BlockApiAuth, ApiKeyAuth, BearerAuth, NoAuth, ApiResponse, ApiSuccessResponse, ApiErrorResponse, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, FormField, BookingSubmitRequest, BookingSubmitResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, TimeSlot, AvailableDatesRequest, AvailableDatesResponse, BookingService, BookingServicesRequest, BookingServicesResponse, BookingServiceResponse, BookingResource, BookingResourcesRequest, BookingResourcesResponse, PublicEvent, PublicEventsRequest, PublicEventsResponse, EventVenue, PricingType, AccessRestriction, EventFilterCategory, EventFilterStaffMember, EventFilterVenue, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, PaymentMethod, EligibilityCheckRequest, EligibilityCheckResponse, EligiblePass, EligibleMembership, AvailablePass, AvailableMembership, CoursePaymentMethod, CourseEnrollRequest, CourseEnrollResponse, CourseEnrollSuccessResponse, CourseWaitlistResponse, CourseCheckoutRequest, CourseCheckoutResponse, DiscountContext, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyLine, DiscountApplyRequest, DiscountApplyRejectedReason, DiscountApplyResponse, ShopCheckoutRequest, ShopCheckoutResponse, ShopDuplicateMembershipWarning, CustomerProfile, CustomerOrder, CustomerOrderInstalmentPlan, CustomerOrderInstalmentPlanStatus, CustomerOrderInstalmentRow, CustomerOrderInstalmentStatus, CustomerOrderPaymentState, EnabledModules, PortalMeResponse, PortalMeUpdateRequest, CustomerPass, CustomerPassCreditHistoryEntry, CustomerMembership, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, AppointmentBookingQuestionsTaskDetail, BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BookingQuestionsField, BookingQuestionsFieldOption, BookingQuestionsSection, BeforeYouComeTaskSummary, CustomerCourseEnrollment, EventGuest, PortalCredit, PortalCreditSummary, PortalCreditTransaction, PortalCreditResponse, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProduct, PortalDigitalProductFile, PortalDigitalProductsResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalAppointmentBookingQuestionsResponse, PortalCreateAppointmentBookingQuestionsUploadUrlRequest, PortalCreateAppointmentBookingQuestionsUploadUrlResponse, PortalFinalizeAppointmentBookingQuestionsUploadRequest, PortalFinalizeAppointmentBookingQuestionsUploadResponse, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateAppointmentBookingQuestionsResponse, PortalEventBookingQuestionsResponse, PortalCreateEventBookingQuestionsUploadUrlRequest, PortalCreateEventBookingQuestionsUploadUrlResponse, PortalFinalizeEventBookingQuestionsUploadRequest, PortalFinalizeEventBookingQuestionsUploadResponse, PortalUpdateEventBookingQuestionsRequest, PortalUpdateEventBookingQuestionsResponse, PortalCourseBookingQuestionsResponse, PortalCreateCourseBookingQuestionsUploadUrlRequest, PortalCreateCourseBookingQuestionsUploadUrlResponse, PortalFinalizeCourseBookingQuestionsUploadRequest, PortalFinalizeCourseBookingQuestionsUploadResponse, PortalUpdateCourseBookingQuestionsRequest, PortalUpdateCourseBookingQuestionsResponse, UpdateEventGuestsRequest, EventGuestsResponse, PortalCancelCourseEnrollmentRequest, PortalCancelCourseEnrollmentResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalCancelEventRegistrationRequest, PortalRefundInfo, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, } from './types';
|
|
47
|
+
export { discountAvailabilityAllowsManualEntry, discountAvailabilityHasDiscounts, getAutoAppliedDiscountPreview, } from './types';
|
|
47
48
|
export type { BookingQuestionsDocumentAnswerValue } from '../../../portal/types';
|
|
48
49
|
export { deriveCreditProductLabels, getCreditProductCreditUnit, getCreditProductTypeLabel, getPortalCreditProductCreditNoun, } from './creditProducts';
|
|
49
50
|
export type { CreditProductCreditUnit, CreditProductLabelStyle, CreditProductSource, CreditProductUseCase, DerivedCreditProductLabels, EnabledCreditProductModules, } from './creditProducts';
|
|
@@ -208,6 +208,7 @@ export interface AvailableDatesResponse {
|
|
|
208
208
|
}
|
|
209
209
|
export interface BookingService {
|
|
210
210
|
id: string;
|
|
211
|
+
siteId: string;
|
|
211
212
|
title: string;
|
|
212
213
|
description?: string;
|
|
213
214
|
durationMinutes?: number;
|
|
@@ -613,11 +614,23 @@ export interface AutoAppliedDiscountPreview {
|
|
|
613
614
|
discountAmountCents: number | null;
|
|
614
615
|
computedAmountCents: number;
|
|
615
616
|
}
|
|
616
|
-
export
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
export type DiscountsAvailableResponse = Readonly<{
|
|
618
|
+
type: "none";
|
|
619
|
+
}> | Readonly<{
|
|
620
|
+
type: "manual";
|
|
621
|
+
manualCodeEntryAllowed: true;
|
|
622
|
+
}> | Readonly<{
|
|
623
|
+
type: "auto";
|
|
624
|
+
manualCodeEntryAllowed: false;
|
|
625
|
+
autoAppliedDiscount: AutoAppliedDiscountPreview;
|
|
626
|
+
}> | Readonly<{
|
|
627
|
+
type: "auto_and_manual";
|
|
628
|
+
manualCodeEntryAllowed: true;
|
|
629
|
+
autoAppliedDiscount: AutoAppliedDiscountPreview;
|
|
630
|
+
}>;
|
|
631
|
+
export declare function discountAvailabilityHasDiscounts(availability: DiscountsAvailableResponse): boolean;
|
|
632
|
+
export declare function discountAvailabilityAllowsManualEntry(availability: DiscountsAvailableResponse): boolean;
|
|
633
|
+
export declare function getAutoAppliedDiscountPreview(availability: DiscountsAvailableResponse): AutoAppliedDiscountPreview | null;
|
|
621
634
|
export interface DiscountApplyLine {
|
|
622
635
|
context: DiscountContext;
|
|
623
636
|
subtotalCents: number;
|
|
@@ -656,6 +656,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
656
656
|
loadMoreText?: string;
|
|
657
657
|
startOfWeek?: import("../..").WeekStart;
|
|
658
658
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
659
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
659
660
|
showFilters?: boolean | null;
|
|
660
661
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
661
662
|
showVenueFilter?: boolean | null;
|
|
@@ -686,6 +687,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
686
687
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
687
688
|
startOfWeek: import("../..").WeekStart;
|
|
688
689
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
690
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
689
691
|
showFilters: boolean;
|
|
690
692
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
691
693
|
showVenueFilter: boolean;
|
|
@@ -733,6 +735,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
733
735
|
loadMoreText?: string;
|
|
734
736
|
startOfWeek?: import("../..").WeekStart;
|
|
735
737
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
738
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
736
739
|
showFilters?: boolean | null;
|
|
737
740
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
738
741
|
showVenueFilter?: boolean | null;
|
|
@@ -769,6 +772,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
769
772
|
loadMoreText?: string;
|
|
770
773
|
startOfWeek?: import("../..").WeekStart;
|
|
771
774
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
775
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
772
776
|
showFilters?: boolean | null;
|
|
773
777
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
774
778
|
showVenueFilter?: boolean | null;
|
|
@@ -802,6 +806,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
802
806
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
803
807
|
startOfWeek: import("../..").WeekStart;
|
|
804
808
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
809
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
805
810
|
showFilters: boolean;
|
|
806
811
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
807
812
|
showVenueFilter: boolean;
|
|
@@ -842,6 +847,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
842
847
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
843
848
|
startOfWeek: import("../..").WeekStart;
|
|
844
849
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
850
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
845
851
|
showFilters: boolean;
|
|
846
852
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
847
853
|
showVenueFilter: boolean;
|
|
@@ -895,6 +901,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
895
901
|
loadMoreText?: string;
|
|
896
902
|
startOfWeek?: import("../..").WeekStart;
|
|
897
903
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
904
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
898
905
|
showFilters?: boolean | null;
|
|
899
906
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
900
907
|
showVenueFilter?: boolean | null;
|
|
@@ -925,6 +932,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
925
932
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
926
933
|
startOfWeek: import("../..").WeekStart;
|
|
927
934
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
935
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
928
936
|
showFilters: boolean;
|
|
929
937
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
930
938
|
showVenueFilter: boolean;
|
|
@@ -972,6 +980,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
972
980
|
loadMoreText?: string;
|
|
973
981
|
startOfWeek?: import("../..").WeekStart;
|
|
974
982
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
983
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
975
984
|
showFilters?: boolean | null;
|
|
976
985
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
977
986
|
showVenueFilter?: boolean | null;
|
|
@@ -1008,6 +1017,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1008
1017
|
loadMoreText?: string;
|
|
1009
1018
|
startOfWeek?: import("../..").WeekStart;
|
|
1010
1019
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
1020
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
1011
1021
|
showFilters?: boolean | null;
|
|
1012
1022
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
1013
1023
|
showVenueFilter?: boolean | null;
|
|
@@ -1041,6 +1051,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1041
1051
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
1042
1052
|
startOfWeek: import("../..").WeekStart;
|
|
1043
1053
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
1054
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
1044
1055
|
showFilters: boolean;
|
|
1045
1056
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
1046
1057
|
showVenueFilter: boolean;
|
|
@@ -1081,6 +1092,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1081
1092
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
1082
1093
|
startOfWeek: import("../..").WeekStart;
|
|
1083
1094
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
1095
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
1084
1096
|
showFilters: boolean;
|
|
1085
1097
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
1086
1098
|
showVenueFilter: boolean;
|
|
@@ -2357,6 +2369,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2357
2369
|
spamProtectionEnabled?: boolean;
|
|
2358
2370
|
stage?: "preview" | "published";
|
|
2359
2371
|
supportEmail?: string;
|
|
2372
|
+
sitePasses?: Readonly<{
|
|
2373
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2374
|
+
}> | null;
|
|
2375
|
+
siteMemberships?: Readonly<{
|
|
2376
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2377
|
+
}> | null;
|
|
2360
2378
|
}>) => Readonly<{
|
|
2361
2379
|
display: Readonly<{
|
|
2362
2380
|
kind: "event-registration";
|
|
@@ -2395,6 +2413,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2395
2413
|
spamProtectionEnabled?: boolean;
|
|
2396
2414
|
stage?: "preview" | "published";
|
|
2397
2415
|
supportEmail?: string;
|
|
2416
|
+
sitePasses?: Readonly<{
|
|
2417
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2418
|
+
}> | null;
|
|
2419
|
+
siteMemberships?: Readonly<{
|
|
2420
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2421
|
+
}> | null;
|
|
2398
2422
|
}>) => unknown;
|
|
2399
2423
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
2400
2424
|
siteId?: string;
|
|
@@ -2420,6 +2444,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2420
2444
|
spamProtectionEnabled?: boolean;
|
|
2421
2445
|
stage?: "preview" | "published";
|
|
2422
2446
|
supportEmail?: string;
|
|
2447
|
+
sitePasses?: Readonly<{
|
|
2448
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2449
|
+
}> | null;
|
|
2450
|
+
siteMemberships?: Readonly<{
|
|
2451
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2452
|
+
}> | null;
|
|
2423
2453
|
}>>;
|
|
2424
2454
|
}>;
|
|
2425
2455
|
render: Readonly<{
|
|
@@ -2479,6 +2509,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2479
2509
|
spamProtectionEnabled?: boolean;
|
|
2480
2510
|
stage?: "preview" | "published";
|
|
2481
2511
|
supportEmail?: string;
|
|
2512
|
+
sitePasses?: Readonly<{
|
|
2513
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2514
|
+
}> | null;
|
|
2515
|
+
siteMemberships?: Readonly<{
|
|
2516
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2517
|
+
}> | null;
|
|
2482
2518
|
}>) => Readonly<{
|
|
2483
2519
|
display: Readonly<{
|
|
2484
2520
|
kind: "event-registration";
|
|
@@ -2517,6 +2553,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2517
2553
|
spamProtectionEnabled?: boolean;
|
|
2518
2554
|
stage?: "preview" | "published";
|
|
2519
2555
|
supportEmail?: string;
|
|
2556
|
+
sitePasses?: Readonly<{
|
|
2557
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2558
|
+
}> | null;
|
|
2559
|
+
siteMemberships?: Readonly<{
|
|
2560
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2561
|
+
}> | null;
|
|
2520
2562
|
}>) => unknown;
|
|
2521
2563
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
2522
2564
|
siteId?: string;
|
|
@@ -2542,6 +2584,12 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2542
2584
|
spamProtectionEnabled?: boolean;
|
|
2543
2585
|
stage?: "preview" | "published";
|
|
2544
2586
|
supportEmail?: string;
|
|
2587
|
+
sitePasses?: Readonly<{
|
|
2588
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
2589
|
+
}> | null;
|
|
2590
|
+
siteMemberships?: Readonly<{
|
|
2591
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2592
|
+
}> | null;
|
|
2545
2593
|
}>>;
|
|
2546
2594
|
}>;
|
|
2547
2595
|
render: Readonly<{
|
|
@@ -2870,12 +2918,8 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2870
2918
|
showCost?: boolean;
|
|
2871
2919
|
showAcceptedPasses?: boolean;
|
|
2872
2920
|
showAcceptedMemberships?: boolean;
|
|
2873
|
-
sitePasses?:
|
|
2874
|
-
|
|
2875
|
-
}> | null;
|
|
2876
|
-
siteMemberships?: Readonly<{
|
|
2877
|
-
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
2878
|
-
}> | null;
|
|
2921
|
+
sitePasses?: import("../..").PublicPassProductCollection | null;
|
|
2922
|
+
siteMemberships?: import("../..").PublicMembershipProductCollection | null;
|
|
2879
2923
|
autoApplyDiscount?: import("../..").EventAutoApplyDiscountPreview | null;
|
|
2880
2924
|
className?: string | null;
|
|
2881
2925
|
nowIso?: string;
|
|
@@ -2916,6 +2960,7 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2916
2960
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
2917
2961
|
startOfWeek: import("../..").WeekStart;
|
|
2918
2962
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
2963
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
2919
2964
|
showFilters: boolean;
|
|
2920
2965
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
2921
2966
|
showVenueFilter: boolean;
|