@riverbankcms/sdk 0.89.1 → 0.90.1
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-JDR64FEC.mjs → PreviewEditorSidebar-FNFRVSIM.mjs} +3 -3
- package/dist/{PreviewEditorUI-67TMJMAF.mjs → PreviewEditorUI-3WXJFQXG.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-2UCIMKUB.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/bookingConfig.d.ts +3 -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/event-listing-destination.d.ts +59 -0
- package/dist/_dts/api/src/index.d.ts +10 -5
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +0 -1
- package/dist/_dts/api/src/navigation.d.ts +2 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +18 -6
- 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/settings/permissions.d.ts +273 -0
- package/dist/_dts/api/src/types.d.ts +4 -1
- 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/schemas.d.ts +60 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +16 -5
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +9 -9
- 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/blocks/team-members.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
- 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 +17 -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/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 +7 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +48 -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/calendarViewOptions.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/destination.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +7 -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/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 +7 -0
- package/dist/_dts/core/src/event-pricing.d.ts +12 -2
- package/dist/_dts/core/src/money-input.d.ts +18 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +50 -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/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/next/types.d.ts +8 -11
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +11 -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/islands/types.d.ts +11 -1
- 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/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-F645A5UV.mjs → chunk-BOQXMCSP.mjs} +129 -101
- package/dist/{chunk-7YUAXONX.mjs → chunk-CR2VX432.mjs} +1563 -877
- package/dist/{chunk-HKJQERFR.mjs → chunk-FA6LVZ7C.mjs} +91 -55
- package/dist/{chunk-TGBJWKMP.mjs → chunk-H6TT5ZXI.mjs} +9 -1
- package/dist/{chunk-ZQRBLCW5.mjs → chunk-SYYJZPKU.mjs} +2 -2
- package/dist/{chunk-7N46MZHI.mjs → chunk-UG7I7S7W.mjs} +1 -1
- package/dist/cli/index.mjs +1057 -632
- 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-MUCVNGQ7.mjs → accordion-4K7VGZ3I.mjs} +2 -2
- package/dist/client/{bookingForm-PKD6EFIE.mjs → bookingForm-3QXA3CIS.mjs} +26 -271
- package/dist/client/bookings.mjs +1586 -825
- package/dist/client/{carousel-3TKQSNJC.mjs → carousel-BEJKNGQ7.mjs} +3 -3
- package/dist/client/{cart-6XHSZK23.mjs → cart-44BBM6XG.mjs} +7 -8
- package/dist/client/{checkout-FVSPM6FI.mjs → checkout-THMHEYKF.mjs} +7 -8
- package/dist/client/{chunk-25W2EQUN.mjs → chunk-3H5CLFKT.mjs} +8 -0
- package/dist/client/{chunk-ZJZZA5EP.mjs → chunk-4COPESPO.mjs} +13 -16
- package/dist/client/chunk-5AJIMWKS.mjs +436 -0
- package/dist/client/{chunk-UQFY4AHX.mjs → chunk-B4H6QMPY.mjs} +157 -49
- package/dist/client/{chunk-VGLXACVK.mjs → chunk-DQIRKNZE.mjs} +1 -1
- package/dist/client/{chunk-7DH35FGA.mjs → chunk-EJBHK74Y.mjs} +1 -1
- package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
- package/dist/client/{chunk-CQKKFEQD.mjs → chunk-JV7ZNAOU.mjs} +378 -111
- package/dist/client/{chunk-FHU6PFPM.mjs → chunk-KNTLBQ3N.mjs} +1 -1
- package/dist/client/{chunk-RSQWWUAD.mjs → chunk-PEDNDLPB.mjs} +4 -4
- package/dist/client/{chunk-EY42X22F.mjs → chunk-SLY6UDAS.mjs} +157 -5
- package/dist/client/{chunk-STJ2NCQM.mjs → chunk-WHZQDPBZ.mjs} +19 -1
- package/dist/client/{chunk-ZT5XE7FK.mjs → chunk-ZIAF2DA4.mjs} +1 -1
- package/dist/client/client.mjs +3552 -2898
- package/dist/client/{courseRegistration-ATZSYDHM.mjs → courseRegistration-URX7RCCK.mjs} +20 -58
- package/dist/client/{eventCalendar-6T2UGKKP.mjs → eventCalendar-GTENOQCE.mjs} +10 -11
- package/dist/client/{eventCombined-Q4VANXVF.mjs → eventCombined-EZVB72MF.mjs} +10 -11
- package/dist/client/{eventDetails-DW37E7VW.mjs → eventDetails-CH4BJR5Z.mjs} +10 -11
- package/dist/client/{eventListing-XURTSAUW.mjs → eventListing-4BVOI5HS.mjs} +10 -11
- package/dist/client/{eventRegistration-MRKEVAXW.mjs → eventRegistration-37LPIKIE.mjs} +10 -11
- package/dist/client/{form-WZZFFGMU.mjs → form-FX3Y54YK.mjs} +7 -7
- package/dist/client/{headerSection-EQYVQBLM.mjs → headerSection-UOZZGVYL.mjs} +3 -3
- package/dist/client/hooks.mjs +1169 -1063
- package/dist/client/{locationMap-MFF5VAZR.mjs → locationMap-VSIPKV35.mjs} +3 -3
- package/dist/client/{newsletterForm-JQ77UYIE.mjs → newsletterForm-6FRJKNAF.mjs} +5 -5
- package/dist/client/{productDetail-25LMT3IZ.mjs → productDetail-6AHMLXCO.mjs} +7 -8
- package/dist/client/{productList-5ABEMKUG.mjs → productList-M2CYIZVH.mjs} +7 -8
- package/dist/client/rendering/client.mjs +2912 -2316
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2874 -2230
- package/dist/client/{shop-OMMQZ6YO.mjs → shop-AUOT6GEX.mjs} +7 -8
- package/dist/client/spam-protection.mjs +4 -5
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/{sdk-runtime-WNLBZ3ZH.mjs → sdk-runtime-6GPJNLU6.mjs} +6 -6
- package/dist/server/components.mjs +1856 -1509
- package/dist/server/config-validation.mjs +1394 -1288
- package/dist/server/config.mjs +1394 -1288
- package/dist/server/data.mjs +1169 -1063
- package/dist/server/index.mjs +135 -100
- package/dist/server/navigation.mjs +20 -30
- package/dist/server/next.mjs +1936 -1576
- package/dist/server/page-converter.mjs +1081 -967
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1868 -1521
- package/dist/server/rendering.mjs +1878 -1531
- package/dist/server/routing.mjs +1248 -1089
- package/dist/server/server.mjs +1312 -1171
- package/dist/server/theme-bridge.mjs +8 -5
- package/package.json +3 -3
- package/dist/SdkPreviewModeRuntime-ZBEMRV7N.mjs +0 -8
- package/dist/client/chunk-LQFDYWPJ.mjs +0 -184
- package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
|
@@ -341,6 +341,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
341
341
|
loadMoreText?: string;
|
|
342
342
|
startOfWeek?: import("../..").WeekStart;
|
|
343
343
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
344
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
344
345
|
showFilters?: boolean | null;
|
|
345
346
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
346
347
|
showVenueFilter?: boolean | null;
|
|
@@ -371,6 +372,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
371
372
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
372
373
|
startOfWeek: import("../..").WeekStart;
|
|
373
374
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
375
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
374
376
|
showFilters: boolean;
|
|
375
377
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
376
378
|
showVenueFilter: boolean;
|
|
@@ -418,6 +420,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
418
420
|
loadMoreText?: string;
|
|
419
421
|
startOfWeek?: import("../..").WeekStart;
|
|
420
422
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
423
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
421
424
|
showFilters?: boolean | null;
|
|
422
425
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
423
426
|
showVenueFilter?: boolean | null;
|
|
@@ -454,6 +457,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
454
457
|
loadMoreText?: string;
|
|
455
458
|
startOfWeek?: import("../..").WeekStart;
|
|
456
459
|
calendarTabViews?: import("../..").CalendarTabViews;
|
|
460
|
+
defaultCalendarView?: import("../..").CalendarView;
|
|
457
461
|
showFilters?: boolean | null;
|
|
458
462
|
showCategoryFilter?: import("../..").FilterAutoShow;
|
|
459
463
|
showVenueFilter?: boolean | null;
|
|
@@ -487,6 +491,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
487
491
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
488
492
|
startOfWeek: import("../..").WeekStart;
|
|
489
493
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
494
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
490
495
|
showFilters: boolean;
|
|
491
496
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
492
497
|
showVenueFilter: boolean;
|
|
@@ -527,6 +532,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
527
532
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
528
533
|
startOfWeek: import("../..").WeekStart;
|
|
529
534
|
calendarTabViews: import("../..").CalendarTabViews;
|
|
535
|
+
defaultCalendarView: import("../..").CalendarView;
|
|
530
536
|
showFilters: boolean;
|
|
531
537
|
showCategoryFilter: import("../..").FilterAutoShow;
|
|
532
538
|
showVenueFilter: boolean;
|
|
@@ -1191,6 +1197,12 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1191
1197
|
spamProtectionEnabled?: boolean;
|
|
1192
1198
|
stage?: "preview" | "published";
|
|
1193
1199
|
supportEmail?: string;
|
|
1200
|
+
sitePasses?: Readonly<{
|
|
1201
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
1202
|
+
}> | null;
|
|
1203
|
+
siteMemberships?: Readonly<{
|
|
1204
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1205
|
+
}> | null;
|
|
1194
1206
|
}>) => Readonly<{
|
|
1195
1207
|
display: Readonly<{
|
|
1196
1208
|
kind: "event-registration";
|
|
@@ -1229,6 +1241,12 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1229
1241
|
spamProtectionEnabled?: boolean;
|
|
1230
1242
|
stage?: "preview" | "published";
|
|
1231
1243
|
supportEmail?: string;
|
|
1244
|
+
sitePasses?: Readonly<{
|
|
1245
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
1246
|
+
}> | null;
|
|
1247
|
+
siteMemberships?: Readonly<{
|
|
1248
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1249
|
+
}> | null;
|
|
1232
1250
|
}>) => unknown;
|
|
1233
1251
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
1234
1252
|
siteId?: string;
|
|
@@ -1254,6 +1272,12 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1254
1272
|
spamProtectionEnabled?: boolean;
|
|
1255
1273
|
stage?: "preview" | "published";
|
|
1256
1274
|
supportEmail?: string;
|
|
1275
|
+
sitePasses?: Readonly<{
|
|
1276
|
+
passes: readonly import("../..").PublicPassProduct[];
|
|
1277
|
+
}> | null;
|
|
1278
|
+
siteMemberships?: Readonly<{
|
|
1279
|
+
memberships: readonly import("../..").PublicMembershipProduct[];
|
|
1280
|
+
}> | null;
|
|
1257
1281
|
}>>;
|
|
1258
1282
|
}>;
|
|
1259
1283
|
render: Readonly<{
|
|
@@ -44,9 +44,9 @@ export declare function useCourseRegistrationWizard(props: CourseRegistrationCli
|
|
|
44
44
|
selectedMembershipId: string | null;
|
|
45
45
|
setSelectedMembershipId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
46
46
|
discountUiOpen: boolean;
|
|
47
|
-
setDiscountUiOpen:
|
|
47
|
+
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
48
48
|
discountCode: string;
|
|
49
|
-
setDiscountCode:
|
|
49
|
+
setDiscountCode: (code: string) => void;
|
|
50
50
|
discountsAvailable: boolean;
|
|
51
51
|
manualCodeEntryAllowed: boolean;
|
|
52
52
|
discountsAvailableLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PublicEvent } from '../../../blocks/events/shared/types';
|
|
2
|
-
|
|
2
|
+
export { filterPassesForEvent, filterMembershipsForEvent, } from '../events/shared/eventProductEligibility';
|
|
3
3
|
export type OccurrenceContextLike = {
|
|
4
4
|
id: string;
|
|
5
5
|
seriesId: string;
|
|
@@ -19,19 +19,3 @@ export declare function selectEventDetails(args: {
|
|
|
19
19
|
nowIso: string;
|
|
20
20
|
otherDatesLimit: string | number | null | undefined;
|
|
21
21
|
}): EventDetailsSelection;
|
|
22
|
-
/**
|
|
23
|
-
* Filter site passes to only those that cover the selected event.
|
|
24
|
-
*
|
|
25
|
-
* @param sitePasses - Array of all site passes (may be null/undefined)
|
|
26
|
-
* @param event - The selected event (may be null)
|
|
27
|
-
* @returns Passes that cover the event based on category eligibility
|
|
28
|
-
*/
|
|
29
|
-
export declare function filterPassesForEvent(sitePasses: PublicPassProduct[] | null | undefined, event: PublicEvent | null): PublicPassProduct[];
|
|
30
|
-
/**
|
|
31
|
-
* Filter site memberships to only those that cover the selected event.
|
|
32
|
-
*
|
|
33
|
-
* @param siteMemberships - Array of all site memberships (may be null/undefined)
|
|
34
|
-
* @param event - The selected event (may be null)
|
|
35
|
-
* @returns Memberships that cover the event based on category eligibility
|
|
36
|
-
*/
|
|
37
|
-
export declare function filterMembershipsForEvent(siteMemberships: PublicMembershipProduct[] | null | undefined, event: PublicEvent | null): PublicMembershipProduct[];
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { EventAutoApplyDiscountPreview } from '../../blocks/event-details';
|
|
3
3
|
import type { EventDetailsContentEntry, EventDetailsIslandProps } from '../../../contracts';
|
|
4
4
|
import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
5
|
-
import type {
|
|
5
|
+
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../blocks/shop';
|
|
6
6
|
import { type OccurrenceContextLike } from './event-details/logic';
|
|
7
7
|
export type EventDetailsClientProps = Readonly<{
|
|
8
8
|
occurrenceContext?: OccurrenceContextLike | null;
|
|
@@ -15,14 +15,10 @@ export type EventDetailsClientProps = Readonly<{
|
|
|
15
15
|
showCost?: boolean;
|
|
16
16
|
showAcceptedPasses?: boolean;
|
|
17
17
|
showAcceptedMemberships?: boolean;
|
|
18
|
-
/** Response from listPublicPasses API
|
|
19
|
-
sitePasses?:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/** Response from listPublicMemberships API (wrapped in { memberships: [...] }) */
|
|
23
|
-
siteMemberships?: {
|
|
24
|
-
memberships: PublicMembershipProduct[];
|
|
25
|
-
} | null;
|
|
18
|
+
/** Response from listPublicPasses API. */
|
|
19
|
+
sitePasses?: PublicPassProductCollection | null;
|
|
20
|
+
/** Response from listPublicMemberships API. */
|
|
21
|
+
siteMemberships?: PublicMembershipProductCollection | null;
|
|
26
22
|
/** Best auto-apply discount code to advertise under the price, if any */
|
|
27
23
|
autoApplyDiscount?: EventAutoApplyDiscountPreview | null;
|
|
28
24
|
className?: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventAutoApplyDiscountPreview } from '../../blocks/event-details';
|
|
3
3
|
import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../blocks/shop';
|
|
5
5
|
import { type OccurrenceContextLike } from './event-details/logic';
|
|
6
6
|
type EventDetailsProps = {
|
|
7
7
|
blockId?: string | null;
|
|
@@ -15,14 +15,10 @@ type EventDetailsProps = {
|
|
|
15
15
|
showCost?: boolean;
|
|
16
16
|
showAcceptedPasses?: boolean;
|
|
17
17
|
showAcceptedMemberships?: boolean;
|
|
18
|
-
/** Response from listPublicPasses API
|
|
19
|
-
sitePasses?:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/** Response from listPublicMemberships API (wrapped in { memberships: [...] }) */
|
|
23
|
-
siteMemberships?: {
|
|
24
|
-
memberships: PublicMembershipProduct[];
|
|
25
|
-
} | null;
|
|
18
|
+
/** Response from listPublicPasses API. */
|
|
19
|
+
sitePasses?: PublicPassProductCollection | null;
|
|
20
|
+
/** Response from listPublicMemberships API. */
|
|
21
|
+
siteMemberships?: PublicMembershipProductCollection | null;
|
|
26
22
|
/** Best auto-apply discount code to advertise under the price, if any */
|
|
27
23
|
autoApplyDiscount?: EventAutoApplyDiscountPreview | null;
|
|
28
24
|
className?: string | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { PaymentMethod } from '../../api/types';
|
|
1
|
+
import type { DirectCheckoutCollectionOptionKind, PaymentMethod } from '../../api/types';
|
|
2
|
+
import type { EventRegistrationDirectPaymentOption, EventRegistrationDirectPaymentSelectionState } from './eventPaymentOptions';
|
|
2
3
|
import type { EventRegistrationContentEntry } from '../event-registration.interactive';
|
|
3
4
|
import type { EligibilityData, FormData, Guest, GuestErrors, OccurrenceContext, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult } from './types';
|
|
4
5
|
import type { SelectableEventTicketType } from './utils';
|
|
@@ -123,6 +124,7 @@ export type EventRegistrationPaymentSelection = Readonly<{
|
|
|
123
124
|
method: 'free';
|
|
124
125
|
}> | Readonly<{
|
|
125
126
|
method: 'stripe';
|
|
127
|
+
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
126
128
|
}> | Readonly<{
|
|
127
129
|
method: 'pass';
|
|
128
130
|
passId: string;
|
|
@@ -143,10 +145,14 @@ export type EventRegistrationPaymentSelection = Readonly<{
|
|
|
143
145
|
export type EventRegistrationPaymentModel = Readonly<{
|
|
144
146
|
kind: 'hidden';
|
|
145
147
|
selection: EventRegistrationPaymentSelection;
|
|
148
|
+
directPaymentOptions: readonly EventRegistrationDirectPaymentOption[];
|
|
149
|
+
directPaymentSelectionState: EventRegistrationDirectPaymentSelectionState;
|
|
146
150
|
stepState: PaymentStepState;
|
|
147
151
|
}> | Readonly<{
|
|
148
152
|
kind: 'loading' | 'error' | 'not-eligible' | 'ready';
|
|
149
153
|
selection: EventRegistrationPaymentSelection;
|
|
154
|
+
directPaymentOptions: readonly EventRegistrationDirectPaymentOption[];
|
|
155
|
+
directPaymentSelectionState: EventRegistrationDirectPaymentSelectionState;
|
|
150
156
|
stepState: PaymentStepState;
|
|
151
157
|
eligibility: EligibilityData | null;
|
|
152
158
|
eligibilityError: string | null | undefined;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { DirectCheckoutCollectionOptionKind } from '../../api/types';
|
|
2
|
+
import type { BlockBookingPaymentCollectionOption, BlockBookingPaymentTerms } from '../../../blocks/shared/bookingPaymentTerms';
|
|
3
|
+
import { type BookingPaymentOptionViewModel } from '../../shared/bookingPaymentOptions';
|
|
4
|
+
import type { PaymentSelection } from './types';
|
|
5
|
+
type SupportedEventDirectPaymentOption = Extract<BlockBookingPaymentCollectionOption, {
|
|
6
|
+
kind: 'upfront' | 'flexible_balance';
|
|
7
|
+
}>;
|
|
8
|
+
export type EventRegistrationDirectPaymentOption = Omit<BookingPaymentOptionViewModel, 'kind' | 'title'> & Readonly<{
|
|
9
|
+
kind: Extract<DirectCheckoutCollectionOptionKind, SupportedEventDirectPaymentOption['kind']>;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type EventRegistrationPaymentOptionsViewModel = Readonly<{
|
|
13
|
+
mode: 'single_option' | 'choice_required';
|
|
14
|
+
sectionTitle: string;
|
|
15
|
+
options: readonly EventRegistrationDirectPaymentOption[];
|
|
16
|
+
}>;
|
|
17
|
+
export type EventRegistrationStripePaymentSelection = Readonly<{
|
|
18
|
+
method: 'stripe';
|
|
19
|
+
collectionOptionKind: EventRegistrationDirectPaymentOption['kind'];
|
|
20
|
+
}>;
|
|
21
|
+
export type EventRegistrationDirectPaymentSelectionState = Readonly<{
|
|
22
|
+
kind: 'not-stripe';
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'unavailable';
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'valid';
|
|
27
|
+
selection: EventRegistrationStripePaymentSelection;
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'invalid';
|
|
30
|
+
fallbackSelection: EventRegistrationStripePaymentSelection;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function buildEventRegistrationPaymentOptionsViewModel(input: Readonly<{
|
|
33
|
+
eventTitle: string;
|
|
34
|
+
paymentTerms?: BlockBookingPaymentTerms | null;
|
|
35
|
+
totalPriceCents: number;
|
|
36
|
+
currency: string;
|
|
37
|
+
startsAt?: string | null;
|
|
38
|
+
locale?: string;
|
|
39
|
+
}>): EventRegistrationPaymentOptionsViewModel;
|
|
40
|
+
export declare function resolveEventRegistrationDirectPaymentSelection(input: Readonly<{
|
|
41
|
+
options: readonly EventRegistrationDirectPaymentOption[];
|
|
42
|
+
selection: PaymentSelection;
|
|
43
|
+
}>): EventRegistrationDirectPaymentSelectionState;
|
|
44
|
+
export declare function normalizeEventRegistrationDirectPaymentSelection(input: Readonly<{
|
|
45
|
+
options: readonly EventRegistrationDirectPaymentOption[];
|
|
46
|
+
selection: PaymentSelection;
|
|
47
|
+
}>): PaymentSelection;
|
|
48
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PublicEvent, PublicEventTicketType, PublicEventTicketTypeAvailability } from '../../../blocks/events/shared/types';
|
|
2
2
|
import type { OccurrenceContext } from '../../../blocks/event-registration.shared';
|
|
3
|
+
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../../../blocks/shop.shared';
|
|
3
4
|
import type { AvailablePass, AvailableMembership, DirectCheckoutCollectionOptionKind, EligibilityEventTicketType } from '../../api/types';
|
|
4
5
|
export type { PublicEvent, OccurrenceContext };
|
|
5
6
|
export type { FormData } from '../../shared';
|
|
@@ -169,4 +170,8 @@ export type EventRegistrationClientProps = {
|
|
|
169
170
|
stage?: 'preview' | 'published';
|
|
170
171
|
/** Support email to display on timeout step */
|
|
171
172
|
supportEmail?: string;
|
|
173
|
+
/** Site-wide public pass products; filtered against the selected event before prompting. */
|
|
174
|
+
sitePasses?: PublicPassProductCollection | null;
|
|
175
|
+
/** Site-wide public membership products; filtered against the selected event before prompting. */
|
|
176
|
+
siteMemberships?: PublicMembershipProductCollection | null;
|
|
172
177
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { BlockApiClient } from '../../api';
|
|
2
|
-
import
|
|
2
|
+
import { type DiscountContext } from '../../api/types';
|
|
3
3
|
export declare function useDiscountCodeUi(options: {
|
|
4
4
|
api: BlockApiClient;
|
|
5
5
|
discountContext: DiscountContext | null;
|
|
6
6
|
subtotalCents?: number;
|
|
7
7
|
}): {
|
|
8
8
|
discountUiOpen: boolean;
|
|
9
|
-
setDiscountUiOpen:
|
|
9
|
+
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
10
10
|
discountCode: string;
|
|
11
|
-
setDiscountCode:
|
|
11
|
+
setDiscountCode: (code: string) => void;
|
|
12
12
|
discountsAvailable: boolean;
|
|
13
13
|
manualCodeEntryAllowed: boolean;
|
|
14
|
-
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
14
|
+
autoAppliedDiscount: import("../../api/types").AutoAppliedDiscountPreview | null;
|
|
15
15
|
discountsAvailableLoading: boolean;
|
|
16
16
|
};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type AutoAppliedDiscountPreview, type DiscountContext, type DiscountsAvailableRequest, type DiscountsAvailableResponse } from '../../api/types';
|
|
2
|
+
export type DiscountAvailabilityRequestPlan = Readonly<{
|
|
3
|
+
ok: false;
|
|
4
|
+
key: 'disabled';
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
ok: true;
|
|
7
|
+
key: string;
|
|
8
|
+
request: Omit<DiscountsAvailableRequest, 'siteId'>;
|
|
9
|
+
}>;
|
|
10
|
+
type DiscountAvailabilityState = Readonly<{
|
|
11
|
+
tag: 'disabled';
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
tag: 'loading';
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
tag: 'unavailable';
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
tag: 'available';
|
|
18
|
+
manualCodeEntryAllowed: boolean;
|
|
19
|
+
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
tag: 'error';
|
|
22
|
+
}>;
|
|
23
|
+
export type DiscountCodeUiState = Readonly<{
|
|
24
|
+
discountUiOpen: boolean;
|
|
25
|
+
discountCode: string;
|
|
26
|
+
availability: DiscountAvailabilityState;
|
|
27
|
+
}>;
|
|
28
|
+
export type DiscountCodeUiEvent = Readonly<{
|
|
29
|
+
type: 'availability-disabled';
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
type: 'availability-loading';
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
type: 'availability-loaded';
|
|
34
|
+
response: DiscountsAvailableResponse;
|
|
35
|
+
}> | Readonly<{
|
|
36
|
+
type: 'availability-failed';
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
type: 'discount-code-changed';
|
|
39
|
+
code: string;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
type: 'discount-ui-open-changed';
|
|
42
|
+
isOpen: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const initialDiscountCodeUiState: DiscountCodeUiState;
|
|
45
|
+
export declare function buildDiscountAvailabilityRequestPlan(options: {
|
|
46
|
+
discountContext: DiscountContext | null;
|
|
47
|
+
subtotalCents?: number;
|
|
48
|
+
}): DiscountAvailabilityRequestPlan;
|
|
49
|
+
export declare function discountCodeUiReducer(state: DiscountCodeUiState, event: DiscountCodeUiEvent): DiscountCodeUiState;
|
|
50
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
CHANGED
|
@@ -88,9 +88,9 @@ export declare function useEventRegistrationWizard(options: {
|
|
|
88
88
|
hasMembershipEligibility: boolean;
|
|
89
89
|
requireGuestDetails: boolean;
|
|
90
90
|
discountCode: string;
|
|
91
|
-
setDiscountCode:
|
|
91
|
+
setDiscountCode: (code: string) => void;
|
|
92
92
|
discountUiOpen: boolean;
|
|
93
|
-
setDiscountUiOpen:
|
|
93
|
+
setDiscountUiOpen: (isOpen: boolean) => void;
|
|
94
94
|
discountsAvailable: boolean;
|
|
95
95
|
manualCodeEntryAllowed: boolean;
|
|
96
96
|
autoAppliedDiscount: import("../../api/types").AutoAppliedDiscountPreview | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PublicEvent } from '../../blocks/events/shared/types';
|
|
2
|
+
import { type PublicMembershipProductCollection, type PublicPassProductCollection } from '../../blocks/shop.shared';
|
|
2
3
|
import type { OccurrenceContext } from '../../blocks/event-registration.shared';
|
|
3
4
|
import type { EventRegistrationClientProps as InternalEventRegistrationClientProps } from './event-registration/types';
|
|
4
5
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
@@ -31,6 +32,8 @@ export type EventRegistrationSourceProps = Readonly<{
|
|
|
31
32
|
spamProtectionEnabled?: boolean;
|
|
32
33
|
stage?: 'preview' | 'published';
|
|
33
34
|
supportEmail?: string;
|
|
35
|
+
sitePasses?: PublicPassProductCollection | null;
|
|
36
|
+
siteMemberships?: PublicMembershipProductCollection | null;
|
|
34
37
|
}>;
|
|
35
38
|
export type EventRegistrationDisplay = Readonly<{
|
|
36
39
|
kind: 'event-registration';
|
|
@@ -77,6 +80,12 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
77
80
|
spamProtectionEnabled?: boolean;
|
|
78
81
|
stage?: "preview" | "published";
|
|
79
82
|
supportEmail?: string;
|
|
83
|
+
sitePasses?: Readonly<{
|
|
84
|
+
passes: readonly import("./shop.client").PublicPassProduct[];
|
|
85
|
+
}> | null;
|
|
86
|
+
siteMemberships?: Readonly<{
|
|
87
|
+
memberships: readonly import("./shop.client").PublicMembershipProduct[];
|
|
88
|
+
}> | null;
|
|
80
89
|
}>) => Readonly<{
|
|
81
90
|
display: Readonly<{
|
|
82
91
|
kind: "event-registration";
|
|
@@ -115,6 +124,12 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
115
124
|
spamProtectionEnabled?: boolean;
|
|
116
125
|
stage?: "preview" | "published";
|
|
117
126
|
supportEmail?: string;
|
|
127
|
+
sitePasses?: Readonly<{
|
|
128
|
+
passes: readonly import("./shop.client").PublicPassProduct[];
|
|
129
|
+
}> | null;
|
|
130
|
+
siteMemberships?: Readonly<{
|
|
131
|
+
memberships: readonly import("./shop.client").PublicMembershipProduct[];
|
|
132
|
+
}> | null;
|
|
118
133
|
}>) => unknown;
|
|
119
134
|
decode: (input: unknown) => import("../../../contracts").DecodeResult<Readonly<{
|
|
120
135
|
siteId?: string;
|
|
@@ -140,6 +155,12 @@ export declare const eventRegistrationBlockRuntime: Readonly<{
|
|
|
140
155
|
spamProtectionEnabled?: boolean;
|
|
141
156
|
stage?: "preview" | "published";
|
|
142
157
|
supportEmail?: string;
|
|
158
|
+
sitePasses?: Readonly<{
|
|
159
|
+
passes: readonly import("./shop.client").PublicPassProduct[];
|
|
160
|
+
}> | null;
|
|
161
|
+
siteMemberships?: Readonly<{
|
|
162
|
+
memberships: readonly import("./shop.client").PublicMembershipProduct[];
|
|
163
|
+
}> | null;
|
|
143
164
|
}>>;
|
|
144
165
|
}>;
|
|
145
166
|
render: Readonly<{
|
|
@@ -8,5 +8,5 @@ type EventRegistrationProps = EventRegistrationSourceProps & Readonly<{
|
|
|
8
8
|
* Server-safe placeholder for event registration.
|
|
9
9
|
* Provides a static container for island hydration without importing client hooks.
|
|
10
10
|
*/
|
|
11
|
-
export declare function EventRegistrationSSR({ blockId, siteId, apiBaseUrl, portalToken, previewToken, occurrenceContext, contentEntry, events, className, buttonText, maxTickets, showVenue, showCapacity, successMessage, waitlistMessage, buttonVariant, overlayEnabled, spamProtectionEnabled, stage, supportEmail, children, }: EventRegistrationProps): React.JSX.Element;
|
|
11
|
+
export declare function EventRegistrationSSR({ blockId, siteId, apiBaseUrl, portalToken, previewToken, occurrenceContext, contentEntry, events, className, buttonText, maxTickets, showVenue, showCapacity, successMessage, waitlistMessage, buttonVariant, overlayEnabled, spamProtectionEnabled, stage, supportEmail, sitePasses, siteMemberships, children, }: EventRegistrationProps): React.JSX.Element;
|
|
12
12
|
export default EventRegistrationSSR;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonVariant, CalendarTabViews, ColumnOption, DisplayMode, EventBlockKind, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../blocks/events/shared/types";
|
|
1
|
+
import type { ButtonVariant, CalendarTabViews, CalendarView, ColumnOption, DisplayMode, EventBlockKind, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../blocks/events/shared/types";
|
|
2
2
|
import { type InteractiveIslandProps } from "../../../../contracts/islands";
|
|
3
3
|
import type { EventListingDisplay, EventListingInteractiveIslandProps } from "./EventListing.interactive";
|
|
4
4
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./shared/listOptions";
|
|
@@ -19,6 +19,7 @@ export type EventCalendarSourceProps = Readonly<{
|
|
|
19
19
|
loadMoreText?: string;
|
|
20
20
|
startOfWeek?: WeekStart;
|
|
21
21
|
calendarTabViews?: CalendarTabViews;
|
|
22
|
+
defaultCalendarView?: CalendarView;
|
|
22
23
|
showFilters?: boolean | null;
|
|
23
24
|
showCategoryFilter?: FilterAutoShow;
|
|
24
25
|
showVenueFilter?: boolean | null;
|
|
@@ -49,6 +50,7 @@ export type EventCalendarDisplay = Readonly<{
|
|
|
49
50
|
paginationAction: EventListPaginationAction;
|
|
50
51
|
startOfWeek: WeekStart;
|
|
51
52
|
calendarTabViews: CalendarTabViews;
|
|
53
|
+
defaultCalendarView: CalendarView;
|
|
52
54
|
showFilters: boolean;
|
|
53
55
|
showCategoryFilter: FilterAutoShow;
|
|
54
56
|
showVenueFilter: boolean;
|
|
@@ -107,6 +109,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
107
109
|
loadMoreText?: string;
|
|
108
110
|
startOfWeek?: WeekStart;
|
|
109
111
|
calendarTabViews?: CalendarTabViews;
|
|
112
|
+
defaultCalendarView?: CalendarView;
|
|
110
113
|
showFilters?: boolean | null;
|
|
111
114
|
showCategoryFilter?: FilterAutoShow;
|
|
112
115
|
showVenueFilter?: boolean | null;
|
|
@@ -137,6 +140,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
137
140
|
paginationAction: EventListPaginationAction;
|
|
138
141
|
startOfWeek: WeekStart;
|
|
139
142
|
calendarTabViews: CalendarTabViews;
|
|
143
|
+
defaultCalendarView: CalendarView;
|
|
140
144
|
showFilters: boolean;
|
|
141
145
|
showCategoryFilter: FilterAutoShow;
|
|
142
146
|
showVenueFilter: boolean;
|
|
@@ -184,6 +188,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
184
188
|
loadMoreText?: string;
|
|
185
189
|
startOfWeek?: WeekStart;
|
|
186
190
|
calendarTabViews?: CalendarTabViews;
|
|
191
|
+
defaultCalendarView?: CalendarView;
|
|
187
192
|
showFilters?: boolean | null;
|
|
188
193
|
showCategoryFilter?: FilterAutoShow;
|
|
189
194
|
showVenueFilter?: boolean | null;
|
|
@@ -220,6 +225,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
220
225
|
loadMoreText?: string;
|
|
221
226
|
startOfWeek?: WeekStart;
|
|
222
227
|
calendarTabViews?: CalendarTabViews;
|
|
228
|
+
defaultCalendarView?: CalendarView;
|
|
223
229
|
showFilters?: boolean | null;
|
|
224
230
|
showCategoryFilter?: FilterAutoShow;
|
|
225
231
|
showVenueFilter?: boolean | null;
|
|
@@ -253,6 +259,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
253
259
|
paginationAction: EventListPaginationAction;
|
|
254
260
|
startOfWeek: WeekStart;
|
|
255
261
|
calendarTabViews: CalendarTabViews;
|
|
262
|
+
defaultCalendarView: CalendarView;
|
|
256
263
|
showFilters: boolean;
|
|
257
264
|
showCategoryFilter: FilterAutoShow;
|
|
258
265
|
showVenueFilter: boolean;
|
|
@@ -293,6 +300,7 @@ export declare const eventCalendarBlockRuntime: Readonly<{
|
|
|
293
300
|
paginationAction: EventListPaginationAction;
|
|
294
301
|
startOfWeek: WeekStart;
|
|
295
302
|
calendarTabViews: CalendarTabViews;
|
|
303
|
+
defaultCalendarView: CalendarView;
|
|
296
304
|
showFilters: boolean;
|
|
297
305
|
showCategoryFilter: FilterAutoShow;
|
|
298
306
|
showVenueFilter: boolean;
|
|
@@ -345,6 +353,7 @@ export declare const eventCalendarInteractiveIslandPropsCodec: Readonly<{
|
|
|
345
353
|
paginationAction: EventListPaginationAction;
|
|
346
354
|
startOfWeek: WeekStart;
|
|
347
355
|
calendarTabViews: CalendarTabViews;
|
|
356
|
+
defaultCalendarView: CalendarView;
|
|
348
357
|
showFilters: boolean;
|
|
349
358
|
showCategoryFilter: FilterAutoShow;
|
|
350
359
|
showVenueFilter: boolean;
|
|
@@ -394,6 +403,7 @@ export declare const eventCalendarInteractiveIslandPropsCodec: Readonly<{
|
|
|
394
403
|
paginationAction: EventListPaginationAction;
|
|
395
404
|
startOfWeek: WeekStart;
|
|
396
405
|
calendarTabViews: CalendarTabViews;
|
|
406
|
+
defaultCalendarView: CalendarView;
|
|
397
407
|
showFilters: boolean;
|
|
398
408
|
showCategoryFilter: FilterAutoShow;
|
|
399
409
|
showVenueFilter: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PublicEvent, ButtonVariant, EventLayout, ColumnOption, WeekStart, CalendarTabViews, FilterAutoShow, EventBlockKind, EventScheduleScope, EventSurfaceScope } from "../../../blocks/events/shared/types";
|
|
2
|
+
import type { PublicEvent, ButtonVariant, EventLayout, ColumnOption, WeekStart, CalendarTabViews, FilterAutoShow, CalendarView, EventBlockKind, EventScheduleScope, EventSurfaceScope } from "../../../blocks/events/shared/types";
|
|
3
3
|
import type { EventCombinedInteractiveIslandProps } from "./EventCombined.interactive";
|
|
4
4
|
import { type EventListPaginationAction, type EventPageSize } from "./shared/listOptions";
|
|
5
5
|
export type EventCombinedClientProps = Readonly<{
|
|
@@ -12,6 +12,7 @@ export type EventCombinedClientProps = Readonly<{
|
|
|
12
12
|
paginationAction?: EventListPaginationAction;
|
|
13
13
|
startOfWeek?: WeekStart;
|
|
14
14
|
calendarTabViews?: CalendarTabViews;
|
|
15
|
+
defaultCalendarView?: CalendarView | null;
|
|
15
16
|
showFilters?: boolean | null;
|
|
16
17
|
showCategoryFilter?: FilterAutoShow;
|
|
17
18
|
showVenueFilter?: boolean | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonVariant, CalendarTabViews, ColumnOption, EventBlockKind, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../blocks/events/shared/types";
|
|
1
|
+
import type { ButtonVariant, CalendarTabViews, CalendarView, ColumnOption, EventBlockKind, EventLayout, EventScheduleScope, EventSurfaceScope, FilterAutoShow, PublicEvent, WeekStart } from "../../../blocks/events/shared/types";
|
|
2
2
|
import { type InteractiveIslandProps } from "../../../../contracts/islands";
|
|
3
3
|
import type { EventListingDisplay } from "./EventListing.interactive";
|
|
4
4
|
import { type EventListPaginationAction, type EventListPaginationMode, type EventPageSize } from "./shared/listOptions";
|
|
@@ -15,6 +15,7 @@ export type EventCombinedSourceProps = Readonly<{
|
|
|
15
15
|
loadMoreText?: string;
|
|
16
16
|
startOfWeek?: WeekStart;
|
|
17
17
|
calendarTabViews?: CalendarTabViews;
|
|
18
|
+
defaultCalendarView?: CalendarView;
|
|
18
19
|
showFilters?: boolean | null;
|
|
19
20
|
showCategoryFilter?: FilterAutoShow;
|
|
20
21
|
showVenueFilter?: boolean | null;
|
|
@@ -44,6 +45,7 @@ export type EventCombinedDisplay = Readonly<{
|
|
|
44
45
|
paginationAction: EventListPaginationAction;
|
|
45
46
|
startOfWeek: WeekStart;
|
|
46
47
|
calendarTabViews: CalendarTabViews;
|
|
48
|
+
defaultCalendarView: CalendarView;
|
|
47
49
|
showFilters: boolean;
|
|
48
50
|
showCategoryFilter: FilterAutoShow;
|
|
49
51
|
showVenueFilter: boolean;
|
|
@@ -97,6 +99,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
97
99
|
loadMoreText?: string;
|
|
98
100
|
startOfWeek?: WeekStart;
|
|
99
101
|
calendarTabViews?: CalendarTabViews;
|
|
102
|
+
defaultCalendarView?: CalendarView;
|
|
100
103
|
showFilters?: boolean | null;
|
|
101
104
|
showCategoryFilter?: FilterAutoShow;
|
|
102
105
|
showVenueFilter?: boolean | null;
|
|
@@ -126,6 +129,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
126
129
|
paginationAction: EventListPaginationAction;
|
|
127
130
|
startOfWeek: WeekStart;
|
|
128
131
|
calendarTabViews: CalendarTabViews;
|
|
132
|
+
defaultCalendarView: CalendarView;
|
|
129
133
|
showFilters: boolean;
|
|
130
134
|
showCategoryFilter: FilterAutoShow;
|
|
131
135
|
showVenueFilter: boolean;
|
|
@@ -169,6 +173,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
169
173
|
loadMoreText?: string;
|
|
170
174
|
startOfWeek?: WeekStart;
|
|
171
175
|
calendarTabViews?: CalendarTabViews;
|
|
176
|
+
defaultCalendarView?: CalendarView;
|
|
172
177
|
showFilters?: boolean | null;
|
|
173
178
|
showCategoryFilter?: FilterAutoShow;
|
|
174
179
|
showVenueFilter?: boolean | null;
|
|
@@ -201,6 +206,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
201
206
|
loadMoreText?: string;
|
|
202
207
|
startOfWeek?: WeekStart;
|
|
203
208
|
calendarTabViews?: CalendarTabViews;
|
|
209
|
+
defaultCalendarView?: CalendarView;
|
|
204
210
|
showFilters?: boolean | null;
|
|
205
211
|
showCategoryFilter?: FilterAutoShow;
|
|
206
212
|
showVenueFilter?: boolean | null;
|
|
@@ -233,6 +239,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
233
239
|
paginationAction: EventListPaginationAction;
|
|
234
240
|
startOfWeek: WeekStart;
|
|
235
241
|
calendarTabViews: CalendarTabViews;
|
|
242
|
+
defaultCalendarView: CalendarView;
|
|
236
243
|
showFilters: boolean;
|
|
237
244
|
showCategoryFilter: FilterAutoShow;
|
|
238
245
|
showVenueFilter: boolean;
|
|
@@ -272,6 +279,7 @@ export declare const eventCombinedBlockRuntime: Readonly<{
|
|
|
272
279
|
paginationAction: EventListPaginationAction;
|
|
273
280
|
startOfWeek: WeekStart;
|
|
274
281
|
calendarTabViews: CalendarTabViews;
|
|
282
|
+
defaultCalendarView: CalendarView;
|
|
275
283
|
showFilters: boolean;
|
|
276
284
|
showCategoryFilter: FilterAutoShow;
|
|
277
285
|
showVenueFilter: boolean;
|
|
@@ -323,6 +331,7 @@ export declare const eventCombinedInteractiveIslandPropsCodec: Readonly<{
|
|
|
323
331
|
paginationAction: EventListPaginationAction;
|
|
324
332
|
startOfWeek: WeekStart;
|
|
325
333
|
calendarTabViews: CalendarTabViews;
|
|
334
|
+
defaultCalendarView: CalendarView;
|
|
326
335
|
showFilters: boolean;
|
|
327
336
|
showCategoryFilter: FilterAutoShow;
|
|
328
337
|
showVenueFilter: boolean;
|
|
@@ -371,6 +380,7 @@ export declare const eventCombinedInteractiveIslandPropsCodec: Readonly<{
|
|
|
371
380
|
paginationAction: EventListPaginationAction;
|
|
372
381
|
startOfWeek: WeekStart;
|
|
373
382
|
calendarTabViews: CalendarTabViews;
|
|
383
|
+
defaultCalendarView: CalendarView;
|
|
374
384
|
showFilters: boolean;
|
|
375
385
|
showCategoryFilter: FilterAutoShow;
|
|
376
386
|
showVenueFilter: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CalendarTabViews, CalendarView } from '../../../../blocks/events/shared/types';
|
|
2
|
+
export type CalendarViewToggleOption = Readonly<{
|
|
3
|
+
id: CalendarView;
|
|
4
|
+
label: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function resolveInitialCalendarView(input: {
|
|
7
|
+
calendarTabViews: CalendarTabViews;
|
|
8
|
+
defaultCalendarView?: CalendarView | null;
|
|
9
|
+
}): CalendarView;
|
|
10
|
+
export declare function orderCalendarViewToggleOptions(defaultCalendarView: CalendarView): readonly CalendarViewToggleOption[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PublicEvent } from '../../../../blocks/events/shared/types';
|
|
2
|
+
type RuntimeEventDestinationSource = Readonly<{
|
|
3
|
+
destination?: unknown;
|
|
4
|
+
eventDestinationMode?: unknown;
|
|
5
|
+
path?: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function resolveRuntimeEventDestination(event: RuntimeEventDestinationSource): PublicEvent['destination'];
|
|
8
|
+
export {};
|