@riverbankcms/sdk 0.142.0 → 0.144.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/dist/{PreviewEditorSidebar-Dk6Dt11f.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +20 -26
- package/dist/{PreviewEditorUI-D6EQTsCA.mjs → PreviewEditorUI-DCNxnmI0.mjs} +3 -3
- package/dist/{PreviewQueryProvider-CC-EPkyQ.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DH1n4ytY.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +17 -8
- package/dist/{SiteChromeCustomizeContext-DunIzY0K.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +2406 -1988
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +49 -41
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +7 -1
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +14 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +1 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +9 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +56 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -4
- package/dist/_dts/commerce/src/purchase/eventCheckoutRecoveryWindow.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +2 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +1 -13
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3126 -3077
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/types.d.ts +3 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-CnJeq3_r.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-BINEO6J9.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
- package/dist/client/{EventCombined.client-srxNQ6sZ.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
- package/dist/client/{EventListing.client-DbyVyGkX.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-B-wpijzL.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
- package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
- package/dist/client/{accordion-B-iUXU7n.mjs → accordion-DRhMdkbd.mjs} +1 -1
- package/dist/client/{bookingForm-BXYPke5q.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
- package/dist/client/bookings.mjs +657 -650
- package/dist/client/{carousel-Cr4aj63H.mjs → carousel-D8zuffZr.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-DibP9WWa.mjs → cart-DeMGJViN.mjs} +3 -3
- package/dist/client/{checkout-CrSBVnL8.mjs → checkout-DXc06Km2.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +2714 -2448
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-Ces-AgdR.mjs → context-CDLCfDep.mjs} +35 -8
- package/dist/client/{dates-BXyNeNhB.mjs → dates-ClFx7Epy.mjs} +2 -2
- package/dist/client/{eventCalendar-HwpPeqrH.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
- package/dist/client/{eventCombined-BpFUkuEI.mjs → eventCombined-ywONOx2m.mjs} +5 -4
- package/dist/client/{eventDetails-DK_agiWy.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
- package/dist/client/{eventListing-DhzHqP1c.mjs → eventListing-CMgxWpqP.mjs} +5 -4
- package/dist/client/{eventRegistration-BdQ_Dn2d.mjs → eventRegistration-BarLDNHR.mjs} +549 -592
- package/dist/client/{form-B1frcuzy.mjs → form-BjqKaBJ7.mjs} +9 -10
- package/dist/client/{headerSection-CT5z460s.mjs → headerSection-CP4XDwz1.mjs} +23 -30
- package/dist/client/hooks.mjs +269 -63
- package/dist/client/{locationMap-CIQXB9i2.mjs → locationMap-C5gW-d-w.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-BYNYZSes.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
- package/dist/client/{pricing-CbTlAsmt.mjs → pricing-Bl1CAl28.mjs} +1 -1
- package/dist/client/{productDetail-CR7Z3yjS.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
- package/dist/client/{productList-DXj00vzR.mjs → productList-U874PGO7.mjs} +3 -3
- package/dist/client/{propsDecoder-DiLiBdek.mjs → propsDecoder-DPXtCZWP.mjs} +100 -29
- package/dist/client/rendering/client.mjs +2397 -2279
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2742 -2452
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
- package/dist/client/{scrollToBlock-CrcbBf0h.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
- package/dist/client/{shop-DgqiB_1b.mjs → shop-BXjXhM9P.mjs} +45 -58
- package/dist/client/{shop-commerce-D_J781in.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
- package/dist/client/{shop-commerce-store-PGUbDwqe.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
- package/dist/client/{shopShared-C_Bb2zwG.mjs → shopShared-kkEOiLPA.mjs} +6 -5
- package/dist/client/{useEventFilters-CM17Xpr1.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
- package/dist/preview-next/before-render.mjs +11 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/preview-next/keepAlive.mjs +11 -0
- package/dist/preview-next/middleware.mjs +11 -0
- package/dist/{previewAuthStore-oVttoRDO.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -0
- package/dist/{sdk-runtime-DhmuRhIX.mjs → sdk-runtime-DFJlQt3q.mjs} +2 -2
- package/dist/{separator-C3hlg9LH.mjs → separator-o8GHb1xh.mjs} +1 -1
- package/dist/server/components.mjs +840 -625
- package/dist/server/config-validation.mjs +269 -63
- package/dist/server/config.mjs +269 -63
- package/dist/server/data.mjs +269 -63
- package/dist/server/index.mjs +20 -5
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14129 -13937
- package/dist/server/page-converter.mjs +111 -59
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +844 -624
- package/dist/server/rendering.mjs +842 -626
- package/dist/server/routing.mjs +306 -69
- package/dist/server/server.mjs +278 -68
- package/dist/server/theme-bridge.mjs +40 -1
- package/dist/styles/index.css +6 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +0 -8
|
@@ -101,6 +101,12 @@ export interface EventRegisterRequest {
|
|
|
101
101
|
* server can replay a lost response instead of registering twice.
|
|
102
102
|
*/
|
|
103
103
|
registrationCommandId: string;
|
|
104
|
+
checkout?: {
|
|
105
|
+
successUrl: string;
|
|
106
|
+
cancelUrl: string;
|
|
107
|
+
discountCode?: string;
|
|
108
|
+
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
109
|
+
};
|
|
104
110
|
subject: {
|
|
105
111
|
kind: 'occurrence';
|
|
106
112
|
occurrenceId: string;
|
|
@@ -129,44 +135,54 @@ export interface EventRegisterRequest {
|
|
|
129
135
|
/** Guest details when "collect all attendee details" is enabled */
|
|
130
136
|
guests?: EventRegisterGuest[];
|
|
131
137
|
}
|
|
132
|
-
export type
|
|
133
|
-
success: boolean;
|
|
138
|
+
export type EventRegistrationPaymentSubject = {
|
|
134
139
|
scope: 'occurrence';
|
|
140
|
+
submissionId: string;
|
|
135
141
|
attendeeId: string;
|
|
136
|
-
|
|
142
|
+
} | {
|
|
143
|
+
scope: 'wholeSeries';
|
|
144
|
+
submissionId: string;
|
|
145
|
+
};
|
|
146
|
+
export type EventRegistrationSummary = {
|
|
137
147
|
paymentMethod: PaymentMethod;
|
|
138
|
-
|
|
148
|
+
ticketLines?: readonly EventTicketLineSummary[];
|
|
149
|
+
message: string;
|
|
139
150
|
passCreditsUsed?: number;
|
|
140
151
|
passCreditsRemaining?: number;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
152
|
+
};
|
|
153
|
+
export type EventRegisterResponse = {
|
|
154
|
+
kind: 'bookingComplete';
|
|
155
|
+
reference: EventRegistrationStatusReference;
|
|
156
|
+
summary: EventRegistrationSummary;
|
|
144
157
|
} | {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
158
|
+
kind: 'paymentDeferred';
|
|
159
|
+
reference: EventRegistrationStatusReference;
|
|
160
|
+
summary: EventRegistrationSummary;
|
|
161
|
+
balance: {
|
|
162
|
+
amountCents: number;
|
|
163
|
+
currency: string;
|
|
164
|
+
};
|
|
152
165
|
} | {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
paymentMethod: 'free' | 'membership';
|
|
158
|
-
pendingPayment: false;
|
|
159
|
-
alreadyRegistered?: boolean;
|
|
160
|
-
ticketLines: EventTicketLineSummary[];
|
|
161
|
-
message?: string;
|
|
166
|
+
kind: 'checkoutRequired';
|
|
167
|
+
reference: EventRegistrationStatusReference;
|
|
168
|
+
checkoutUrl: string;
|
|
169
|
+
submissionId: string;
|
|
162
170
|
} | {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
kind: 'paymentStatusRequired';
|
|
172
|
+
subject: EventRegistrationPaymentSubject;
|
|
173
|
+
} | {
|
|
174
|
+
kind: 'waitlisted';
|
|
175
|
+
waitlist: {
|
|
176
|
+
reference: {
|
|
177
|
+
scope: 'occurrence';
|
|
178
|
+
attendeeId: string;
|
|
179
|
+
} | {
|
|
180
|
+
scope: 'occurrence' | 'wholeSeries';
|
|
181
|
+
waitlistEntryId: string;
|
|
182
|
+
};
|
|
183
|
+
position: number | null;
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
170
186
|
};
|
|
171
187
|
/** Type of checkout for event payment */
|
|
172
188
|
export type EventCheckoutType = 'event' | 'pass_bundle' | 'membership_bundle';
|
|
@@ -182,7 +198,7 @@ export type EventCheckoutRequest = EventCheckoutRequestCommon & ({
|
|
|
182
198
|
kind: 'occurrence';
|
|
183
199
|
attendeeId: string;
|
|
184
200
|
};
|
|
185
|
-
registrationCommandId
|
|
201
|
+
registrationCommandId: string;
|
|
186
202
|
checkoutType?: EventCheckoutType;
|
|
187
203
|
productId?: string;
|
|
188
204
|
} | {
|
|
@@ -204,26 +220,36 @@ export type EventCheckoutRequest = EventCheckoutRequestCommon & ({
|
|
|
204
220
|
waitlistEntryId?: string;
|
|
205
221
|
checkoutAttemptId: string;
|
|
206
222
|
});
|
|
207
|
-
|
|
223
|
+
type OccurrenceCheckoutResponse = Readonly<{
|
|
208
224
|
scope: 'occurrence';
|
|
209
225
|
attendeeId: string;
|
|
210
226
|
checkoutUrl: string | null;
|
|
211
227
|
sessionId: string | null;
|
|
212
228
|
bypassed: boolean;
|
|
213
|
-
}
|
|
229
|
+
}>;
|
|
230
|
+
type WholeSeriesCheckoutResponse = Readonly<{
|
|
214
231
|
scope: 'wholeSeries';
|
|
215
232
|
registrationId: string;
|
|
216
233
|
checkoutAttemptId: string;
|
|
234
|
+
recoverableUntil?: string;
|
|
217
235
|
checkoutUrl: string | null;
|
|
218
236
|
sessionId: string | null;
|
|
219
237
|
bypassed: boolean;
|
|
220
|
-
}
|
|
238
|
+
}>;
|
|
239
|
+
type WholeSeriesPaymentStatusRequired = Readonly<{
|
|
240
|
+
scope: 'wholeSeries';
|
|
241
|
+
status: 'paymentStatusRequired';
|
|
242
|
+
checkoutAttemptId: string;
|
|
243
|
+
recoverableUntil: string;
|
|
244
|
+
}>;
|
|
245
|
+
type WholeSeriesWaitlistResponse = Readonly<{
|
|
221
246
|
scope: 'wholeSeries';
|
|
222
247
|
status: 'waitlist';
|
|
223
248
|
waitlistEntryId: string;
|
|
224
249
|
waitlistPosition: number | null;
|
|
225
250
|
alreadyRegistered?: boolean;
|
|
226
|
-
}
|
|
251
|
+
}>;
|
|
252
|
+
export type EventCheckoutResponse = OccurrenceCheckoutResponse | WholeSeriesCheckoutResponse | WholeSeriesPaymentStatusRequired | WholeSeriesWaitlistResponse;
|
|
227
253
|
export interface EligiblePass {
|
|
228
254
|
customerPassId: string;
|
|
229
255
|
passName: string;
|
|
@@ -255,6 +281,19 @@ export type RegistrationOptionsRequest = EventRegistrationOptionsRequest & {
|
|
|
255
281
|
siteId: string;
|
|
256
282
|
};
|
|
257
283
|
export type RegistrationOptionsResponse = EventRegistrationOptionsResponse;
|
|
284
|
+
export type EventRegistrationNextStepRequest = EventRegistrationOptionsRequest & {
|
|
285
|
+
email: string;
|
|
286
|
+
altchaSolution?: string | null;
|
|
287
|
+
};
|
|
288
|
+
/** Navigation only; the booking submission remains authoritative for admission. */
|
|
289
|
+
export type EventRegistrationNextStepResponse = {
|
|
290
|
+
kind: 'continue';
|
|
291
|
+
} | {
|
|
292
|
+
kind: 'waitlist';
|
|
293
|
+
} | {
|
|
294
|
+
kind: 'unavailable';
|
|
295
|
+
message: string;
|
|
296
|
+
};
|
|
258
297
|
/** Payment status values returned by the backend */
|
|
259
298
|
export type PaymentStatus = 'pending' | 'completed' | 'failed' | 'not_required' | 'refunded';
|
|
260
299
|
/** Attendee status values returned by the backend */
|
|
@@ -282,15 +321,36 @@ export type EventCheckoutReturnRequest = {
|
|
|
282
321
|
} | {
|
|
283
322
|
kind: 'abandon';
|
|
284
323
|
checkoutAttemptId: string;
|
|
324
|
+
} | {
|
|
325
|
+
kind: 'checkStatus';
|
|
326
|
+
subject: EventRegistrationPaymentSubject;
|
|
285
327
|
};
|
|
286
328
|
export type EventCheckoutReturnResponse = {
|
|
287
329
|
kind: 'resolved';
|
|
288
330
|
reference: EventRegistrationStatusReference;
|
|
331
|
+
deferredBalance?: {
|
|
332
|
+
amountCents: number;
|
|
333
|
+
currency: string;
|
|
334
|
+
};
|
|
289
335
|
} | {
|
|
290
336
|
kind: 'abandoned';
|
|
291
337
|
} | {
|
|
292
338
|
kind: 'notFound';
|
|
293
339
|
} | {
|
|
294
340
|
kind: 'reconciliationRequired';
|
|
341
|
+
} | {
|
|
342
|
+
kind: 'paymentProcessing';
|
|
343
|
+
recoverableUntil?: string;
|
|
344
|
+
} | {
|
|
345
|
+
kind: 'paymentAvailable';
|
|
346
|
+
checkoutUrl: string;
|
|
347
|
+
recoverableUntil?: string;
|
|
348
|
+
} | {
|
|
349
|
+
kind: 'paymentRetryAvailable';
|
|
350
|
+
} | {
|
|
351
|
+
kind: 'paymentCheckUnavailable';
|
|
352
|
+
recoverableUntil?: string;
|
|
353
|
+
} | {
|
|
354
|
+
kind: 'paymentAssistanceRequired';
|
|
295
355
|
};
|
|
296
356
|
export {};
|
|
@@ -228,7 +228,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
228
228
|
}>;
|
|
229
229
|
hydration: Readonly<{
|
|
230
230
|
siteId: string;
|
|
231
|
-
stage?: "preview" | "published";
|
|
232
231
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
233
232
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
234
233
|
showFilters: boolean;
|
|
@@ -271,7 +270,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
271
270
|
}>;
|
|
272
271
|
hydration: Readonly<{
|
|
273
272
|
siteId: string;
|
|
274
|
-
stage?: "preview" | "published";
|
|
275
273
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
276
274
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
277
275
|
showFilters: boolean;
|
|
@@ -308,7 +306,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
308
306
|
}>;
|
|
309
307
|
hydration: Readonly<{
|
|
310
308
|
siteId: string;
|
|
311
|
-
stage?: "preview" | "published";
|
|
312
309
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
313
310
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
314
311
|
showFilters: boolean;
|
|
@@ -353,7 +350,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
353
350
|
}>;
|
|
354
351
|
hydration: Readonly<{
|
|
355
352
|
siteId: string;
|
|
356
|
-
stage?: "preview" | "published";
|
|
357
353
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
358
354
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
359
355
|
showFilters: boolean;
|
|
@@ -396,7 +392,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
396
392
|
}>;
|
|
397
393
|
hydration: Readonly<{
|
|
398
394
|
siteId: string;
|
|
399
|
-
stage?: "preview" | "published";
|
|
400
395
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
401
396
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
402
397
|
showFilters: boolean;
|
|
@@ -433,7 +428,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
433
428
|
}>;
|
|
434
429
|
hydration: Readonly<{
|
|
435
430
|
siteId: string;
|
|
436
|
-
stage?: "preview" | "published";
|
|
437
431
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
438
432
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
439
433
|
showFilters: boolean;
|
|
@@ -466,7 +460,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
466
460
|
hydration: Readonly<{
|
|
467
461
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
468
462
|
siteId: string;
|
|
469
|
-
stage?: "preview" | "published";
|
|
470
463
|
prefetchedEvents: boolean;
|
|
471
464
|
eventSurface: import("../..").EventSurfaceScope;
|
|
472
465
|
filterEventPresets: string | null;
|
|
@@ -492,7 +485,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
492
485
|
hydration: Readonly<{
|
|
493
486
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
494
487
|
siteId: string;
|
|
495
|
-
stage?: "preview" | "published";
|
|
496
488
|
prefetchedEvents: boolean;
|
|
497
489
|
eventSurface: import("../..").EventSurfaceScope;
|
|
498
490
|
filterEventPresets: string | null;
|
|
@@ -512,7 +504,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
512
504
|
hydration: Readonly<{
|
|
513
505
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
514
506
|
siteId: string;
|
|
515
|
-
stage?: "preview" | "published";
|
|
516
507
|
prefetchedEvents: boolean;
|
|
517
508
|
eventSurface: import("../..").EventSurfaceScope;
|
|
518
509
|
filterEventPresets: string | null;
|
|
@@ -540,7 +531,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
540
531
|
hydration: Readonly<{
|
|
541
532
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
542
533
|
siteId: string;
|
|
543
|
-
stage?: "preview" | "published";
|
|
544
534
|
prefetchedEvents: boolean;
|
|
545
535
|
eventSurface: import("../..").EventSurfaceScope;
|
|
546
536
|
filterEventPresets: string | null;
|
|
@@ -566,7 +556,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
566
556
|
hydration: Readonly<{
|
|
567
557
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
568
558
|
siteId: string;
|
|
569
|
-
stage?: "preview" | "published";
|
|
570
559
|
prefetchedEvents: boolean;
|
|
571
560
|
eventSurface: import("../..").EventSurfaceScope;
|
|
572
561
|
filterEventPresets: string | null;
|
|
@@ -586,7 +575,6 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
586
575
|
hydration: Readonly<{
|
|
587
576
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
588
577
|
siteId: string;
|
|
589
|
-
stage?: "preview" | "published";
|
|
590
578
|
prefetchedEvents: boolean;
|
|
591
579
|
eventSurface: import("../..").EventSurfaceScope;
|
|
592
580
|
filterEventPresets: string | null;
|
|
@@ -1559,6 +1547,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1559
1547
|
apiBaseUrl?: string;
|
|
1560
1548
|
portalToken?: string | null;
|
|
1561
1549
|
previewToken?: string | null;
|
|
1550
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1562
1551
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1563
1552
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1564
1553
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -1594,6 +1583,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1594
1583
|
apiBaseUrl?: string;
|
|
1595
1584
|
portalToken?: string | null;
|
|
1596
1585
|
previewToken?: string | null;
|
|
1586
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1597
1587
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1598
1588
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1599
1589
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -1622,6 +1612,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1622
1612
|
apiBaseUrl?: string;
|
|
1623
1613
|
portalToken?: string | null;
|
|
1624
1614
|
previewToken?: string | null;
|
|
1615
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1625
1616
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1626
1617
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1627
1618
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -1672,6 +1663,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1672
1663
|
apiBaseUrl?: string;
|
|
1673
1664
|
portalToken?: string | null;
|
|
1674
1665
|
previewToken?: string | null;
|
|
1666
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1675
1667
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1676
1668
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1677
1669
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -1707,6 +1699,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1707
1699
|
apiBaseUrl?: string;
|
|
1708
1700
|
portalToken?: string | null;
|
|
1709
1701
|
previewToken?: string | null;
|
|
1702
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1710
1703
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1711
1704
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1712
1705
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -1735,6 +1728,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
1735
1728
|
apiBaseUrl?: string;
|
|
1736
1729
|
portalToken?: string | null;
|
|
1737
1730
|
previewToken?: string | null;
|
|
1731
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
1738
1732
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
1739
1733
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
1740
1734
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -2145,6 +2139,7 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2145
2139
|
component: React.ComponentType<Readonly<Readonly<{
|
|
2146
2140
|
siteId: string;
|
|
2147
2141
|
apiBaseUrl?: string;
|
|
2142
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
2148
2143
|
stage?: "preview" | "published";
|
|
2149
2144
|
}> & {
|
|
2150
2145
|
renderKind: "progressive";
|
|
@@ -2155,7 +2150,6 @@ export declare const clientComponentRegistryEntries: {
|
|
|
2155
2150
|
hydration: Readonly<{
|
|
2156
2151
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
2157
2152
|
siteId: string;
|
|
2158
|
-
stage?: "preview" | "published";
|
|
2159
2153
|
prefetchedEvents: boolean;
|
|
2160
2154
|
eventSurface: import("../..").EventSurfaceScope;
|
|
2161
2155
|
filterEventPresets: string | null;
|
|
@@ -128,7 +128,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
128
128
|
}>;
|
|
129
129
|
hydration: Readonly<{
|
|
130
130
|
siteId: string;
|
|
131
|
-
stage?: "preview" | "published";
|
|
132
131
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
133
132
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
134
133
|
showFilters: boolean;
|
|
@@ -171,7 +170,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
171
170
|
}>;
|
|
172
171
|
hydration: Readonly<{
|
|
173
172
|
siteId: string;
|
|
174
|
-
stage?: "preview" | "published";
|
|
175
173
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
176
174
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
177
175
|
showFilters: boolean;
|
|
@@ -208,7 +206,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
208
206
|
}>;
|
|
209
207
|
hydration: Readonly<{
|
|
210
208
|
siteId: string;
|
|
211
|
-
stage?: "preview" | "published";
|
|
212
209
|
eventsPerPage: import("../nodes/events/shared/listOptions").EventPageSize;
|
|
213
210
|
paginationAction: import("../nodes/events/shared/listOptions").EventListPaginationAction;
|
|
214
211
|
showFilters: boolean;
|
|
@@ -239,7 +236,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
239
236
|
hydration: Readonly<{
|
|
240
237
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
241
238
|
siteId: string;
|
|
242
|
-
stage?: "preview" | "published";
|
|
243
239
|
prefetchedEvents: boolean;
|
|
244
240
|
eventSurface: import("../..").EventSurfaceScope;
|
|
245
241
|
filterEventPresets: string | null;
|
|
@@ -265,7 +261,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
265
261
|
hydration: Readonly<{
|
|
266
262
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
267
263
|
siteId: string;
|
|
268
|
-
stage?: "preview" | "published";
|
|
269
264
|
prefetchedEvents: boolean;
|
|
270
265
|
eventSurface: import("../..").EventSurfaceScope;
|
|
271
266
|
filterEventPresets: string | null;
|
|
@@ -285,7 +280,6 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
285
280
|
hydration: Readonly<{
|
|
286
281
|
calendarWindow?: import("../../../contracts").CalendarWindowPage;
|
|
287
282
|
siteId: string;
|
|
288
|
-
stage?: "preview" | "published";
|
|
289
283
|
prefetchedEvents: boolean;
|
|
290
284
|
eventSurface: import("../..").EventSurfaceScope;
|
|
291
285
|
filterEventPresets: string | null;
|
|
@@ -782,6 +776,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
782
776
|
apiBaseUrl?: string;
|
|
783
777
|
portalToken?: string | null;
|
|
784
778
|
previewToken?: string | null;
|
|
779
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
785
780
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
786
781
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
787
782
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -817,6 +812,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
817
812
|
apiBaseUrl?: string;
|
|
818
813
|
portalToken?: string | null;
|
|
819
814
|
previewToken?: string | null;
|
|
815
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
820
816
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
821
817
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
822
818
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -845,6 +841,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
845
841
|
apiBaseUrl?: string;
|
|
846
842
|
portalToken?: string | null;
|
|
847
843
|
previewToken?: string | null;
|
|
844
|
+
readAuthority?: import("../api").BrowserReadAuthority;
|
|
848
845
|
occurrenceContext?: import("../..").OccurrenceContext | null;
|
|
849
846
|
subject?: import("../nodes/event-registration/eventScope").EventRegistrationPageSurfaceSubject | null;
|
|
850
847
|
events?: import("../../../../../api/src/index").PublicEvent[] | null;
|
|
@@ -23,8 +23,6 @@ type UseCalendarEventsOptions = {
|
|
|
23
23
|
preloadMonths?: number;
|
|
24
24
|
/** Block-level filters to apply to all calendar fetches */
|
|
25
25
|
filters?: EventRuntimeFilters;
|
|
26
|
-
/** Fetch stage (preview vs published) */
|
|
27
|
-
stage?: 'preview' | 'published';
|
|
28
26
|
calendarContext: Readonly<{
|
|
29
27
|
timeZone: BookingTimeZone;
|
|
30
28
|
initialToday: CalendarDate;
|
|
@@ -84,14 +82,21 @@ type UseCalendarEventCacheOptions = Readonly<{
|
|
|
84
82
|
calendarWindow?: CalendarWindowPage;
|
|
85
83
|
preloadMonths?: number;
|
|
86
84
|
filters?: EventRuntimeFilters;
|
|
87
|
-
stage?: 'preview' | 'published';
|
|
88
85
|
timeZone: BookingTimeZone;
|
|
89
86
|
}>;
|
|
87
|
+
type CalendarReadPreparation = Readonly<{
|
|
88
|
+
kind: 'ready';
|
|
89
|
+
key: string;
|
|
90
|
+
}> | Readonly<{
|
|
91
|
+
kind: 'missing-site-config';
|
|
92
|
+
error: Error;
|
|
93
|
+
}>;
|
|
94
|
+
export declare function prepareCalendarRead(siteId: string | undefined, stage: 'preview' | 'published' | undefined, filters: EventRuntimeFilters | undefined, readProfile: CalendarReadProfile): CalendarReadPreparation;
|
|
90
95
|
/**
|
|
91
96
|
* The reducer owns month data and request ownership. The hook only performs I/O.
|
|
92
97
|
* Requests for other months remain useful until the query context changes.
|
|
93
98
|
*/
|
|
94
|
-
export declare function useCalendarEventCache({ readProfile, viewDate, calendarWindow, preloadMonths, filters,
|
|
99
|
+
export declare function useCalendarEventCache({ readProfile, viewDate, calendarWindow, preloadMonths, filters, timeZone, }: UseCalendarEventCacheOptions): Readonly<{
|
|
95
100
|
events: PublicEvent[];
|
|
96
101
|
loadState: CalendarViewLoadState;
|
|
97
102
|
retryCurrentView: () => void;
|
|
@@ -43,7 +43,6 @@ export type CalendarCacheAction = Readonly<{
|
|
|
43
43
|
error: Error;
|
|
44
44
|
cursor?: CalendarSourceCursor;
|
|
45
45
|
}>;
|
|
46
|
-
export declare function calendarMonthKey(date: CalendarDate): string;
|
|
47
46
|
export declare function calendarWindowMonths(date: CalendarDate, radius: number): readonly string[];
|
|
48
47
|
export declare function seedCalendarWindow(page: CalendarWindowPage): CalendarCacheState;
|
|
49
48
|
export declare function planCalendarRequest(state: CalendarCacheState, months: readonly string[], retry: boolean): CalendarRequest | null;
|
|
@@ -18,8 +18,6 @@ type UseEventPaginationOptions = {
|
|
|
18
18
|
filters?: EventRuntimeFilters;
|
|
19
19
|
/** Number of events per page */
|
|
20
20
|
pageSize?: number;
|
|
21
|
-
/** Fetch stage (preview vs published) */
|
|
22
|
-
stage?: 'preview' | 'published';
|
|
23
21
|
};
|
|
24
22
|
type EventPaginationResult = {
|
|
25
23
|
/** All loaded events */
|
|
@@ -49,5 +47,5 @@ type EventPaginationResult = {
|
|
|
49
47
|
* ```
|
|
50
48
|
*/
|
|
51
49
|
export declare function useEventPagination({ siteId: _siteId, // Deprecated: siteId now comes from BlockApiProvider context
|
|
52
|
-
initialEvents, fetchInitialOnMount, initialFilters, filters, pageSize,
|
|
50
|
+
initialEvents, fetchInitialOnMount, initialFilters, filters, pageSize, }: UseEventPaginationOptions): EventPaginationResult;
|
|
53
51
|
export default useEventPagination;
|
|
@@ -11,11 +11,7 @@ export type TextNodeProps = {
|
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
};
|
|
13
13
|
export declare const TextNode: React.FC<TextNodeProps & {
|
|
14
|
-
blockId?: string;
|
|
15
|
-
blockKind?: string;
|
|
16
14
|
blockContent?: unknown;
|
|
17
|
-
fragmentRegistry?: unknown;
|
|
18
|
-
pathBase?: string;
|
|
19
15
|
}>;
|
|
20
16
|
export type RichTextNodeProps = {
|
|
21
17
|
value?: unknown;
|
|
@@ -25,20 +21,19 @@ export type RichTextNodeProps = {
|
|
|
25
21
|
children?: React.ReactNode;
|
|
26
22
|
};
|
|
27
23
|
export declare const RichTextNode: React.FC<RichTextNodeProps & {
|
|
28
|
-
blockId?: string;
|
|
29
24
|
blockKind?: string;
|
|
30
|
-
blockContent?: unknown;
|
|
31
|
-
fragmentRegistry?: unknown;
|
|
32
|
-
pathBase?: string;
|
|
33
25
|
}>;
|
|
34
26
|
export type ButtonNodeProps = {
|
|
35
|
-
value?:
|
|
27
|
+
value?: string | number;
|
|
36
28
|
href?: string;
|
|
37
29
|
'aria-label'?: string;
|
|
30
|
+
'data-testid'?: string;
|
|
31
|
+
/** Editor interception and explicit control handlers. */
|
|
32
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
38
33
|
className?: string;
|
|
39
34
|
target?: string;
|
|
40
35
|
rel?: string;
|
|
41
|
-
children?:
|
|
36
|
+
children?: string | number;
|
|
42
37
|
/** Button variant ID (reads from theme.buttons.variants) */
|
|
43
38
|
variantId?: string;
|
|
44
39
|
/** Button size (reads from theme.buttons.sizes via .btn-{size}) */
|
|
@@ -55,13 +50,7 @@ export type ButtonNodeProps = {
|
|
|
55
50
|
*/
|
|
56
51
|
trailingIcon?: string;
|
|
57
52
|
};
|
|
58
|
-
export declare const ButtonNode: React.FC<ButtonNodeProps
|
|
59
|
-
blockId?: string;
|
|
60
|
-
blockKind?: string;
|
|
61
|
-
blockContent?: unknown;
|
|
62
|
-
fragmentRegistry?: unknown;
|
|
63
|
-
pathBase?: string;
|
|
64
|
-
}>;
|
|
53
|
+
export declare const ButtonNode: React.FC<ButtonNodeProps>;
|
|
65
54
|
export type LinkNodeProps = {
|
|
66
55
|
href?: string;
|
|
67
56
|
className?: string;
|
|
@@ -71,10 +60,4 @@ export type LinkNodeProps = {
|
|
|
71
60
|
/** When true, hide the link if href is missing */
|
|
72
61
|
linkRequired?: boolean;
|
|
73
62
|
};
|
|
74
|
-
export declare const LinkNode: React.FC<LinkNodeProps
|
|
75
|
-
blockId?: string;
|
|
76
|
-
blockKind?: string;
|
|
77
|
-
blockContent?: unknown;
|
|
78
|
-
fragmentRegistry?: unknown;
|
|
79
|
-
pathBase?: string;
|
|
80
|
-
}>;
|
|
63
|
+
export declare const LinkNode: React.FC<LinkNodeProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RegistrationTicketType } from './types';
|
|
3
|
+
import type { ThemeButtonVariantId } from '../../../../../../theme-core/src/buttons/index';
|
|
3
4
|
export declare function EventRegistrationBookingLayer(props: Readonly<{
|
|
4
5
|
registrationRootClassName: string;
|
|
5
6
|
portalRoot: HTMLElement | null;
|
|
@@ -9,7 +10,7 @@ export declare function EventRegistrationBookingLayer(props: Readonly<{
|
|
|
9
10
|
availabilityLabel: string | null;
|
|
10
11
|
ticketTypes: readonly RegistrationTicketType[];
|
|
11
12
|
ticketCurrency: string | null;
|
|
12
|
-
|
|
13
|
+
buttonVariant: ThemeButtonVariantId;
|
|
13
14
|
formatTicketPrice: (ticketType: RegistrationTicketType) => string;
|
|
14
15
|
onOpen: () => void;
|
|
15
16
|
onClose: () => void;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
2
|
+
import type { ThemeButtonVariantId } from '../../../../../../theme-core/src/buttons/index';
|
|
2
3
|
export type EventPortalAuthCopy = Readonly<{
|
|
3
4
|
title: string;
|
|
4
5
|
description: string;
|
|
@@ -17,7 +18,7 @@ export declare function EventRegistrationSurface(props: Readonly<{
|
|
|
17
18
|
showCapacity: boolean;
|
|
18
19
|
showSpamProtection: boolean;
|
|
19
20
|
buttonText: string;
|
|
20
|
-
|
|
21
|
+
buttonVariant: ThemeButtonVariantId;
|
|
21
22
|
supportEmail?: string;
|
|
22
23
|
successMessage: string;
|
|
23
24
|
}>): import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
3
|
+
import type { ThemeButtonVariantId } from '../../../../../../theme-core/src/buttons/index';
|
|
3
4
|
/**
|
|
4
5
|
* Label for the button that submits the details step.
|
|
5
6
|
*
|
|
@@ -15,7 +16,7 @@ export declare function resolveDetailsButtonText(input: Readonly<{
|
|
|
15
16
|
type WizardActionsProps = Readonly<{
|
|
16
17
|
wizard: UseEventRegistrationWizardResult;
|
|
17
18
|
buttonText: string;
|
|
18
|
-
|
|
19
|
+
buttonVariant: ThemeButtonVariantId;
|
|
19
20
|
}>;
|
|
20
21
|
export declare function EventRegistrationWizardActions(props: WizardActionsProps): React.JSX.Element | null;
|
|
21
22
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PaymentStatusRecoveryState } from './types';
|
|
2
|
+
type PaymentStatusStepProps = Readonly<{
|
|
3
|
+
state: PaymentStatusRecoveryState;
|
|
4
|
+
onCheck: () => void;
|
|
5
|
+
onContinuePayment: () => void;
|
|
6
|
+
onReturnToPayment: () => void;
|
|
7
|
+
onReturnToBooking: () => void;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function PaymentStatusStep(props: PaymentStatusStepProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ type TicketSelectionStepProps = {
|
|
|
10
10
|
occurrenceContext?: OccurrenceContext | null;
|
|
11
11
|
selectedAttendanceMode?: RegistrationAttendanceMode | null;
|
|
12
12
|
onAttendanceModeChange?: (attendanceMode: RegistrationAttendanceMode) => void;
|
|
13
|
-
checkoutRecovery?: boolean;
|
|
14
|
-
onCheckoutRecovery?: () => void;
|
|
15
13
|
ticketsCount: number;
|
|
16
14
|
maxTickets: number;
|
|
17
15
|
visibleTicketTypes?: ReturnType<typeof getVisibleTicketTypes>;
|