@riverbankcms/sdk 0.155.0 → 0.156.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-CbSbqmz3.mjs → PreviewEditorSidebar-B4ESNPzL.mjs} +3 -3
- package/dist/{PreviewEditorUI-CKKnAw11.mjs → PreviewEditorUI-BdUVaGOh.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-wLkXrWy9.mjs → SdkPreviewModeRuntime-C4V3BvxK.mjs} +1122 -1079
- package/dist/{SiteChromeCustomizeContext-BQ8vvKb-.mjs → SiteChromeCustomizeContext-3gmd26Mn.mjs} +1019 -517
- package/dist/_dts/ai/src/contracts/proposals.d.ts +624 -624
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +856 -856
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/aiPlayground.d.ts +2 -2
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -22
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -2
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +1 -1
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/public/types.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/sdkBlockContentAdmission.d.ts +1 -1
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +2 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -1
- package/dist/_dts/api/src/sdkPageDesign.d.ts +9 -9
- package/dist/_dts/api/src/sdkThemeWire.d.ts +182 -182
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +2 -2
- package/dist/_dts/api/src/teamMembers.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLayoutGridMoveAnimation.d.ts +13 -0
- package/dist/_dts/blocks/src/client/portal.d.ts +5 -0
- package/dist/_dts/blocks/src/contracts/event-registration.d.ts +141 -0
- package/dist/_dts/blocks/src/contracts/events.d.ts +21 -0
- package/dist/_dts/blocks/src/contracts/footer.d.ts +130 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/site-chrome.d.ts +10 -0
- package/dist/_dts/blocks/src/customer-portal/client.d.ts +62 -0
- package/dist/_dts/blocks/src/customer-portal/components/PortalLoginForm.d.ts +16 -0
- package/dist/_dts/blocks/src/customer-portal/components/badge.d.ts +6 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/AppointmentBeforeYouComeTask.d.ts +29 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsSection.d.ts +22 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsTable.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventRow.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationRow.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationTableRow.d.ts +22 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/PortalAppointmentRescheduleFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/ScalarQuestionInput.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistCard.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistsSection.d.ts +19 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/bookingsTypes.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/eventGuestDrafts.d.ts +6 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/eventSeriesRegistrationPresentation.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.d.ts +36 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.state.d.ts +43 -0
- package/dist/_dts/blocks/src/customer-portal/components/orders/OrdersSection.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/orders/orderInteraction.d.ts +63 -0
- package/dist/_dts/blocks/src/customer-portal/components/portal-modal.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/portalDeepLink.d.ts +19 -0
- package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.d.ts +13 -0
- package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.state.d.ts +32 -0
- package/dist/_dts/blocks/src/customer-portal/pages/AccessState.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/pages/DigitalProductView.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/pages/PageChrome.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/pages/PrintButton.d.ts +1 -0
- package/dist/_dts/blocks/src/customer-portal/pages/TicketCode.d.ts +3 -0
- package/dist/_dts/blocks/src/customer-portal/pages/TicketView.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/route-client.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/shared/bookingRoute.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/shared/checkoutUrls.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/shared/signedUrlUpload.d.ts +1 -0
- package/dist/_dts/blocks/src/customer-portal/shared/urlParams.d.ts +30 -0
- package/dist/_dts/blocks/src/customer-portal/state.d.ts +196 -0
- package/dist/_dts/blocks/src/customer-portal/tabs.d.ts +17 -0
- package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +13 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +7 -14
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +1 -25
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -141
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -135
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -129
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -5
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +2 -5
- package/dist/_dts/blocks/src/system/constants/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +82 -82
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +21 -2
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +87 -3
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +16 -27
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +18 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +2 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/form.types.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/AppointmentRescheduleSlotOptions.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.d.ts +73 -0
- package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.state.d.ts +62 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +1 -4
- package/dist/_dts/commerce/src/moneyDateUtils.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -1
- package/dist/_dts/core/src/date-display.d.ts +4 -0
- package/dist/_dts/core/src/navigation-portal-labels.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +13 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/PreviewEditingModeProvider.d.ts +7 -0
- package/dist/_dts/sdk/src/bookings/types.d.ts +0 -1
- package/dist/_dts/sdk/src/next/index.d.ts +1 -0
- package/dist/_dts/sdk/src/next/portal.d.ts +41 -0
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +4 -9
- package/dist/_dts/sdk/src/next/types.d.ts +8 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -0
- package/dist/_dts/sdk/src/portal/index.d.ts +4 -36
- package/dist/_dts/sdk/src/portal/token.d.ts +4 -20
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +4 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -28
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/buttons/types.d.ts +41 -41
- package/dist/_dts/theme-core/src/buttons/typography.d.ts +2 -2
- package/dist/_dts/theme-core/src/cards/types.d.ts +34 -34
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +255 -255
- package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +294 -294
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +7 -7
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +12 -12
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -2
- package/dist/_dts/theme-core/src/typography/schema.d.ts +27 -27
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +2 -2
- package/dist/client/{BookingMailingListNote-CiW1dsz7.mjs → BookingMailingListNote-B9mP3Io9.mjs} +2 -2
- package/dist/client/{CardListItem-DVYTlYpS.mjs → CardListItem-D5rL2wPv.mjs} +3 -3
- package/dist/client/{CheckboxChoice-CUnPrBlC.mjs → CheckboxChoice-Bz6wLaBl.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DEsn5F2C.mjs → DemoBookingPortalAccess-7BPVzfLU.mjs} +6 -10
- package/dist/client/{EventCombined.client-BdctbwnV.mjs → EventCombined.client-DZH5qHJl.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-DAhQs6Jb.mjs → EventEmbeddedCheckoutStep-CV31Qvn2.mjs} +2 -2
- package/dist/client/{EventListing.client-BviZXfAE.mjs → EventListing.client-C19sjRGF.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BLTECfjU.mjs → LeafletStaticMap-DjUjYdzQ.mjs} +1 -1
- package/dist/client/{RichText-D3oE1_pw.mjs → RichText-DkKcVZwr.mjs} +2 -2
- package/dist/client/{ThemedButton-Ckj0Rfr_.mjs → ThemedButton-CTgpAXfL.mjs} +1 -1
- package/dist/client/{accordion-yBx6d4O2.mjs → accordion-R2-q5wo-.mjs} +1 -1
- package/dist/client/{bookingForm-CPDEsQci.mjs → bookingForm-VSU8nIdO.mjs} +12 -16
- package/dist/client/bookings.mjs +352 -64
- package/dist/client/{carousel-DCqjwd2s.mjs → carousel-BjPlY4ee.mjs} +2 -2
- package/dist/client/{carousel.client-Bx7XMF8-.mjs → carousel.client-Tnwvm0l1.mjs} +1 -1
- package/dist/client/{cart-DWJXrQxs.mjs → cart-DAPYTOP7.mjs} +3 -3
- package/dist/client/{checkout-CH4ypSLS.mjs → checkout-DGJTx4vB.mjs} +3 -3
- package/dist/client/client.mjs +61275 -61217
- package/dist/client/{context-BOs0m_iw.mjs → context-ByZBoKdq.mjs} +92 -209
- package/dist/client/{eventCalendar-CRylMllc.mjs → eventCalendar-CP5Z7iME.mjs} +8 -8
- package/dist/client/{eventCombined-DohTS3kp.mjs → eventCombined-D8nbUyxu.mjs} +4 -4
- package/dist/client/{eventDetails-qf-u9zcF.mjs → eventDetails-Bknq8k7E.mjs} +46 -44
- package/dist/client/{eventListing-Cg__X2vy.mjs → eventListing-BwMnPteX.mjs} +4 -4
- package/dist/client/{eventRegistration-CybWxswy.mjs → eventRegistration-COFk1mjw.mjs} +11 -11
- package/dist/client/{form-C-SGk6nq.mjs → form-BiWLd_me.mjs} +5 -5
- package/dist/client/{headerSection-BdzPaHqo.mjs → headerSection-BptDP4xF.mjs} +3 -3
- package/dist/client/hooks.mjs +22850 -22861
- package/dist/client/{locationMap-CEwIKmMb.mjs → locationMap-B-kPoqcK.mjs} +3 -3
- package/dist/client/{media-V_ShXXru.mjs → media-FjqQK4qS.mjs} +68 -1
- package/dist/client/{newsletterForm-CmwTltoS.mjs → newsletterForm-s_B8fCtT.mjs} +4 -4
- package/dist/client/portal/client.mjs +17419 -0
- package/dist/client/{productDetail-DjIzUwg3.mjs → productDetail-CS3GZMPi.mjs} +3 -3
- package/dist/client/{productList-D6JGFnMF.mjs → productList-Csc3WJDs.mjs} +3 -3
- package/dist/client/{propsDecoder-BRKz13eg.mjs → propsDecoder-Dn68GoQZ.mjs} +502 -2705
- package/dist/client/rendering/client.mjs +3303 -3612
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +46273 -46220
- package/dist/client/{routeIslandApiConfig-slAAILQ5.mjs → routeIslandApiConfig-DeBuevOO.mjs} +1 -1
- package/dist/client/{shop-C45K96_0.mjs → shop-B5EQbeUX.mjs} +7 -7
- package/dist/client/{shop-commerce-oGBiKT5d.mjs → shop-commerce-DYs7PdNL.mjs} +8 -8
- package/dist/client/{shop-commerce-store-H_HFPFZ8.mjs → shop-commerce-store-B2-DIPbg.mjs} +1 -1
- package/dist/client/{shopShared-D54T_LAV.mjs → shopShared-CE302Pfy.mjs} +4 -4
- package/dist/client/{useDiscountCodeUi-Dm2EUa03.mjs → useDiscountCodeUi-BZ02FBrV.mjs} +1 -1
- package/dist/client/{useEventPagination-0l_A8CxG.mjs → useEventPagination-VudQWKtG.mjs} +116 -6
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-CjTM32Ah.mjs → sdk-runtime-C8Qh6r51.mjs} +1 -1
- package/dist/server/components.mjs +927 -262
- package/dist/server/config-template-validation.mjs +5 -3
- package/dist/server/config-validation.mjs +35200 -35211
- package/dist/server/config.mjs +35200 -35211
- package/dist/server/data.mjs +32783 -32794
- package/dist/server/date-time.mjs +14 -7
- package/dist/server/index.mjs +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +71470 -70677
- package/dist/server/page-converter.mjs +202 -213
- package/dist/server/portal.mjs +5 -51
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1180 -722
- package/dist/server/rendering.mjs +922 -262
- package/dist/server/routing.mjs +39382 -41704
- package/dist/server/server.mjs +203 -214
- package/dist/server/theme-bridge.mjs +262 -2
- package/dist/{spinner-KVVZh8jd.mjs → spinner-Bi68Z_0o.mjs} +1 -1
- package/dist/styles/index.css +258 -2
- package/package.json +9 -1
- package/dist/_dts/sdk/src/portal/config.d.ts +0 -67
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Theme } from '../../
|
|
1
|
+
import type { Theme } from '../../theme-core/src/schema';
|
|
2
2
|
import type { SiteVerticalBookingConfig } from '../../core/src/index';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import type { AiGenerateSiteEntityType, AiGenerateSitePrimaryCta, AiGenerateSiteRequest } from './siteGeneration';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { FooterPreferences } from '../../theme-core/src/site-styles/index';
|
|
2
|
-
import type { BackgroundOverride
|
|
2
|
+
import type { BackgroundOverride } from '../../blocks/src/system/customize/backgrounds';
|
|
3
|
+
import type { SystemCustomizeFacetSelection } from '../../blocks/src/system/customize/facets';
|
|
4
|
+
import type { Theme } from '../../theme-core/src/schema';
|
|
3
5
|
import type { ListMediaAssetsResult, MediaAssetWithLabels } from '@riverbankcms/media-storage-supabase';
|
|
4
6
|
import type { FooterNavigationLayout, MailingListProviderScope } from '../../core/src/index';
|
|
5
7
|
import type { DbJson } from '../../db/src/index';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SiteFooterContent, SiteHeaderContent } from '../../blocks/src/
|
|
1
|
+
import type { SiteFooterContent, SiteHeaderContent } from '../../blocks/src/contracts/site-chrome';
|
|
2
2
|
import type { BusinessAddress, MailingListProviderScope, PublicAddressVisibility, PublicContactDetails } from '../../core/src/index';
|
|
3
|
-
import type { FooterMode } from '../../theme-core/src/
|
|
3
|
+
import type { FooterMode } from '../../theme-core/src/footer/mode';
|
|
4
4
|
import type { SiteBannerSettingsPayload } from './siteBanner';
|
|
5
5
|
export type SiteDeploymentMode = 'managed' | 'headless_cms' | 'headless_full';
|
|
6
6
|
export type SiteGeneralSettingsPayload = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Public team payloads share the block contract used to validate their rendering data. */
|
|
2
|
-
export type { PublicTeamMemberSummary, PublicTeamMemberPhoto, PublicTeamMemberBlockItem, } from '../../blocks/src/
|
|
2
|
+
export type { PublicTeamMemberSummary, PublicTeamMemberPhoto, PublicTeamMemberBlockItem, } from '../../blocks/src/system/blocks/shared/teamMembers';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RepeaterGridPlacement } from '../../../../../blocks/src/index';
|
|
2
|
+
type Position = Readonly<{
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function getLayoutGridMoveKeyframes(before: Position, after: Position): Keyframe[] | null;
|
|
7
|
+
/** Animate committed grid moves on the outer cells, separately from pointer dragging. */
|
|
8
|
+
export declare function useLayoutGridMoveAnimation(placements: readonly RepeaterGridPlacement[]): {
|
|
9
|
+
registerCell: (id: string, node: HTMLElement | null) => void;
|
|
10
|
+
capturePositions: () => void;
|
|
11
|
+
cancelAnimations: () => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CustomerPortal, type CustomerPortalProps, } from '../customer-portal/route-client';
|
|
2
|
+
export type { CustomerPortalClientProps } from '../customer-portal/client';
|
|
3
|
+
export { PortalTicketView } from '../customer-portal/pages/TicketView';
|
|
4
|
+
export { PortalDigitalProductView } from '../customer-portal/pages/DigitalProductView';
|
|
5
|
+
export { PortalAccessState, type PortalAccessStateProps, type PortalAccessPageKind, } from '../customer-portal/pages/AccessState';
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { PublicEventPricingOption } from '../../../core/src/index';
|
|
2
|
+
import type { BlockBookingPaymentTerms } from '../system/blocks/shared/bookingPaymentTerms';
|
|
3
|
+
export type EventRegistrationOptionsRequest = Readonly<{
|
|
4
|
+
subject: Readonly<{
|
|
5
|
+
kind: 'occurrence';
|
|
6
|
+
occurrenceId: string;
|
|
7
|
+
attendanceMode?: 'in_person' | 'online';
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
kind: 'wholeSeries';
|
|
10
|
+
eventSeriesId: string;
|
|
11
|
+
attendanceMode?: 'in_person' | 'online';
|
|
12
|
+
}>;
|
|
13
|
+
selections: readonly Readonly<{
|
|
14
|
+
pricingOptionId: string | null;
|
|
15
|
+
quantity: number;
|
|
16
|
+
}>[];
|
|
17
|
+
selectedSlidingAmount?: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type EventRegistrationOptionsResponse = Readonly<{
|
|
20
|
+
subject: Readonly<{
|
|
21
|
+
kind: 'occurrence';
|
|
22
|
+
occurrenceId: string;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
kind: 'wholeSeries';
|
|
25
|
+
eventSeriesId: string;
|
|
26
|
+
}>;
|
|
27
|
+
availability: Readonly<{
|
|
28
|
+
kind: 'available';
|
|
29
|
+
remainingPlaces: number | null;
|
|
30
|
+
waitlistEnabled: boolean;
|
|
31
|
+
}> | Readonly<{
|
|
32
|
+
kind: 'waitlist';
|
|
33
|
+
remainingPlaces: 0;
|
|
34
|
+
waitlistEnabled: true;
|
|
35
|
+
}> | Readonly<{
|
|
36
|
+
kind: 'unavailable';
|
|
37
|
+
reason: 'full' | 'bookingClosed' | 'paymentUnavailable' | 'selectionRequired';
|
|
38
|
+
remainingPlaces: number | null;
|
|
39
|
+
waitlistEnabled: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
registration: Readonly<{
|
|
42
|
+
kind: 'none';
|
|
43
|
+
}> | Readonly<{
|
|
44
|
+
kind: 'booked';
|
|
45
|
+
}> | Readonly<{
|
|
46
|
+
kind: 'pending_payment';
|
|
47
|
+
}> | Readonly<{
|
|
48
|
+
kind: 'waitlisted';
|
|
49
|
+
}>;
|
|
50
|
+
pricing: Readonly<{
|
|
51
|
+
strategy: import('../../../core/src/index').EventPricingStrategy;
|
|
52
|
+
currency: string;
|
|
53
|
+
subtotalCents: number;
|
|
54
|
+
paymentTerms: BlockBookingPaymentTerms;
|
|
55
|
+
lines: readonly EventRegistrationOptionLine[];
|
|
56
|
+
options: readonly EventRegistrationPricingOption[];
|
|
57
|
+
}>;
|
|
58
|
+
paymentOptions: readonly EventRegistrationAvailablePaymentOption[];
|
|
59
|
+
customer: Readonly<{
|
|
60
|
+
kind: 'anonymous';
|
|
61
|
+
credit: null;
|
|
62
|
+
}> | Readonly<{
|
|
63
|
+
kind: 'authenticated';
|
|
64
|
+
credit: Readonly<{
|
|
65
|
+
availableCents: number;
|
|
66
|
+
currency: string;
|
|
67
|
+
}> | null;
|
|
68
|
+
}>;
|
|
69
|
+
entitlements: Readonly<{
|
|
70
|
+
requiresLoginForMemberships: boolean;
|
|
71
|
+
requiresLoginForPasses: boolean;
|
|
72
|
+
memberships: readonly EventRegistrationOwnedMembership[];
|
|
73
|
+
passes: readonly EventRegistrationOwnedPass[];
|
|
74
|
+
availableForPurchase: Readonly<{
|
|
75
|
+
passes: readonly EventRegistrationPassProduct[];
|
|
76
|
+
memberships: readonly EventRegistrationMembershipProduct[];
|
|
77
|
+
}>;
|
|
78
|
+
}>;
|
|
79
|
+
}>;
|
|
80
|
+
export type EventRegistrationAvailablePaymentOption = Readonly<{
|
|
81
|
+
kind: 'free';
|
|
82
|
+
}> | Readonly<{
|
|
83
|
+
kind: 'payInFull' | 'deferredManual' | 'instalmentPlan' | 'flexibleBalance';
|
|
84
|
+
amountCents: number;
|
|
85
|
+
currency: string;
|
|
86
|
+
}> | Readonly<{
|
|
87
|
+
kind: 'ownedMembership';
|
|
88
|
+
membershipId: string;
|
|
89
|
+
}> | Readonly<{
|
|
90
|
+
kind: 'ownedPass';
|
|
91
|
+
passId: string;
|
|
92
|
+
}> | Readonly<{
|
|
93
|
+
kind: 'buyMembership' | 'buyPass';
|
|
94
|
+
productId: string;
|
|
95
|
+
}>;
|
|
96
|
+
export type EventRegistrationOptionLine = Readonly<{
|
|
97
|
+
pricingOptionId: string | null;
|
|
98
|
+
label: string;
|
|
99
|
+
description: string | null;
|
|
100
|
+
quantity: number;
|
|
101
|
+
unitPriceCents: number;
|
|
102
|
+
subtotalCents: number;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* A pricing option as the registration-options response reports it.
|
|
106
|
+
*
|
|
107
|
+
* It answers to `pricingOptionId` because that is the name the rest of the
|
|
108
|
+
* registration contract uses for this identity — ticket lines, submissions and
|
|
109
|
+
* order items all refer to a pricing option that way — while `id` stays for the
|
|
110
|
+
* row itself.
|
|
111
|
+
*/
|
|
112
|
+
export type EventRegistrationPricingOption = Omit<PublicEventPricingOption, 'id'> & Readonly<{
|
|
113
|
+
pricingOptionId: string;
|
|
114
|
+
}>;
|
|
115
|
+
export type EventRegistrationOwnedMembership = Readonly<{
|
|
116
|
+
customerMembershipId: string;
|
|
117
|
+
membershipName: string;
|
|
118
|
+
}>;
|
|
119
|
+
export type EventRegistrationOwnedPass = Readonly<{
|
|
120
|
+
customerPassId: string;
|
|
121
|
+
passName: string;
|
|
122
|
+
creditsRemaining: number;
|
|
123
|
+
}>;
|
|
124
|
+
export type EventRegistrationPassProduct = Readonly<{
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
description: string | null;
|
|
128
|
+
price: number;
|
|
129
|
+
currency: string;
|
|
130
|
+
creditsTotal: number;
|
|
131
|
+
pricePerCredit: number;
|
|
132
|
+
validDays: number | null;
|
|
133
|
+
}>;
|
|
134
|
+
export type EventRegistrationMembershipProduct = Readonly<{
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
description: string | null;
|
|
138
|
+
price: number;
|
|
139
|
+
currency: string;
|
|
140
|
+
interval: 'month' | 'year';
|
|
141
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Shared event response validators for server and browser consumers. */
|
|
3
|
+
export * from '../system/runtime/api/schemas/events';
|
|
4
|
+
export type { EventBookingOutcome, ConfirmedBookingIdentity, EventRegistrationSummary } from '../system/runtime/api/types/events';
|
|
5
|
+
type EventAutoApplyDiscountPreviewBase = {
|
|
6
|
+
id: string;
|
|
7
|
+
publicLabel: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
minTicketsRequired: number | null;
|
|
10
|
+
};
|
|
11
|
+
/** Shared auto-apply discount preview for event pages and API responses. */
|
|
12
|
+
export type EventAutoApplyDiscountPreview = (EventAutoApplyDiscountPreviewBase & {
|
|
13
|
+
discountType: 'percent';
|
|
14
|
+
discountPercent: number;
|
|
15
|
+
discountAmountCents: null;
|
|
16
|
+
}) | (EventAutoApplyDiscountPreviewBase & {
|
|
17
|
+
discountType: 'fixed';
|
|
18
|
+
discountPercent: null;
|
|
19
|
+
discountAmountCents: number;
|
|
20
|
+
});
|
|
21
|
+
export declare const eventAutoApplyDiscountPreviewSchema: z.ZodType<EventAutoApplyDiscountPreview>;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { FooterArrangement, FooterSection, FooterModuleId, FooterRichText, FooterMembershipKey, FooterVisualGroupKind } from '../../../core/src/index';
|
|
2
|
+
import type { ArrangementSlotName } from '../../../theme-core/src/site-styles/index';
|
|
3
|
+
import type { Theme } from '../../../theme-core/src/schema';
|
|
4
|
+
import type { FooterRuntimeContactLink, FooterRuntimeOpeningHours, FooterRuntimeSocialLink } from '../system/blocks/site-footer-runtime-profile';
|
|
5
|
+
import type { FormSourceProps } from '../system/runtime/nodes/form.types';
|
|
6
|
+
import type { NewsletterFormProps as NewsletterFormSourceProps } from '../system/runtime/nodes/newsletter-form.types';
|
|
7
|
+
type FooterRuntimeModuleBase<TKind extends FooterSection['kind'] | 'attribution'> = Readonly<{
|
|
8
|
+
id: FooterModuleId;
|
|
9
|
+
kind: TKind;
|
|
10
|
+
heading: string | null;
|
|
11
|
+
align?: 'center';
|
|
12
|
+
className?: string;
|
|
13
|
+
contactClassName?: string;
|
|
14
|
+
slots?: Readonly<Partial<Record<'media' | 'heading' | 'copy' | 'schedule' | 'social' | 'group-label' | 'navigation', ArrangementSlotName>>>;
|
|
15
|
+
}>;
|
|
16
|
+
type UnionKeys<T> = T extends T ? keyof T : never;
|
|
17
|
+
type StrictUnionMember<T, TAll> = T extends T ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;
|
|
18
|
+
type StrictUnion<T> = StrictUnionMember<T, T>;
|
|
19
|
+
type FooterRuntimeModuleVariant = (FooterRuntimeModuleBase<'brand'> & Readonly<{
|
|
20
|
+
showLogo: boolean;
|
|
21
|
+
showTitle: boolean;
|
|
22
|
+
}>) | (FooterRuntimeModuleBase<'navigation'> & Readonly<{
|
|
23
|
+
navigationClassName?: string;
|
|
24
|
+
navigationGroupsClassName?: string;
|
|
25
|
+
}>) | FooterRuntimeModuleBase<'legal-navigation'> | (FooterRuntimeModuleBase<'business-address'> & Readonly<{
|
|
26
|
+
address: string;
|
|
27
|
+
}>) | (FooterRuntimeModuleBase<'contact'> & Readonly<{
|
|
28
|
+
contactLinks: readonly FooterRuntimeContactLink[];
|
|
29
|
+
}>) | (FooterRuntimeModuleBase<'opening-hours'> & Readonly<{
|
|
30
|
+
openingHours: readonly FooterRuntimeOpeningHours[];
|
|
31
|
+
timeZone: string;
|
|
32
|
+
}>) | (FooterRuntimeModuleBase<'social-links'> & Readonly<{
|
|
33
|
+
socialLinks: readonly FooterRuntimeSocialLink[];
|
|
34
|
+
}>) | (FooterRuntimeModuleBase<'supporting-text'> & Readonly<{
|
|
35
|
+
content: FooterRichText;
|
|
36
|
+
}>) | (FooterRuntimeModuleBase<'legal'> & Readonly<{
|
|
37
|
+
content: FooterRichText;
|
|
38
|
+
}>) | (FooterRuntimeModuleBase<'engagement'> & Readonly<{
|
|
39
|
+
engagement: FooterRuntimeEngagement;
|
|
40
|
+
}>) | (FooterRuntimeModuleBase<'attribution'> & FooterAttribution);
|
|
41
|
+
export type FooterRuntimeModule = StrictUnion<FooterRuntimeModuleVariant>;
|
|
42
|
+
export type FooterRuntimeEngagement = Readonly<{
|
|
43
|
+
kind: 'standard-contact';
|
|
44
|
+
intro: string | null;
|
|
45
|
+
runtime: FooterStandardContactRuntime;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
kind: 'mailing-list';
|
|
48
|
+
intro: string | null;
|
|
49
|
+
runtime: FooterMailingListRuntime;
|
|
50
|
+
}>;
|
|
51
|
+
export type FooterStandardContactRuntime = Readonly<{
|
|
52
|
+
value: NonNullable<FormSourceProps['value']>;
|
|
53
|
+
submitLabel?: FormSourceProps['submitLabel'];
|
|
54
|
+
successMessage?: FormSourceProps['successMessage'];
|
|
55
|
+
}>;
|
|
56
|
+
type FooterMailingListRuntimeBase = Readonly<{
|
|
57
|
+
mailingList: NonNullable<NewsletterFormSourceProps['mailingList']>;
|
|
58
|
+
targeting: NonNullable<NewsletterFormSourceProps['targeting']>;
|
|
59
|
+
}>;
|
|
60
|
+
export type FooterMailingListRuntime = FooterMailingListRuntimeBase & (Readonly<{
|
|
61
|
+
mode?: 'public';
|
|
62
|
+
source: 'signed-footer';
|
|
63
|
+
sourceRef: NonNullable<Extract<NewsletterFormSourceProps, {
|
|
64
|
+
source: 'signed-footer';
|
|
65
|
+
}>['sourceRef']>;
|
|
66
|
+
}> | Readonly<{
|
|
67
|
+
mode: 'preview';
|
|
68
|
+
source: 'preview';
|
|
69
|
+
sourceRef?: never;
|
|
70
|
+
}>);
|
|
71
|
+
export type FooterResolvedEngagement = Readonly<{
|
|
72
|
+
kind: 'none';
|
|
73
|
+
}> | Readonly<{
|
|
74
|
+
kind: 'needs-attention';
|
|
75
|
+
reason: 'missing-form' | 'wrong-form-kind' | 'invalid-form' | 'destination-not-ready';
|
|
76
|
+
}> | Readonly<{
|
|
77
|
+
kind: 'resolved';
|
|
78
|
+
sectionId: FooterModuleId;
|
|
79
|
+
engagement: Extract<FooterRuntimeEngagement, {
|
|
80
|
+
kind: 'standard-contact';
|
|
81
|
+
}>;
|
|
82
|
+
}> | Readonly<{
|
|
83
|
+
kind: 'resolved';
|
|
84
|
+
sectionId: FooterModuleId;
|
|
85
|
+
engagement: Extract<FooterRuntimeEngagement, {
|
|
86
|
+
kind: 'mailing-list';
|
|
87
|
+
}>;
|
|
88
|
+
}>;
|
|
89
|
+
export type FooterRuntimeViewModel = Readonly<{
|
|
90
|
+
arrangement?: FooterArrangement;
|
|
91
|
+
arrangementHook?: 'footer-centred';
|
|
92
|
+
slots?: Readonly<{
|
|
93
|
+
'group-label': ArrangementSlotName;
|
|
94
|
+
}>;
|
|
95
|
+
membershipKey: FooterMembershipKey;
|
|
96
|
+
regions: readonly FooterRuntimeRegion[];
|
|
97
|
+
}>;
|
|
98
|
+
export type FooterRuntimeGroup = Readonly<{
|
|
99
|
+
kind: FooterVisualGroupKind | 'attribution';
|
|
100
|
+
slot?: ArrangementSlotName;
|
|
101
|
+
align?: 'center';
|
|
102
|
+
className: string;
|
|
103
|
+
modules: readonly FooterRuntimeModule[];
|
|
104
|
+
}>;
|
|
105
|
+
export type FooterRuntimeRegion = Readonly<{
|
|
106
|
+
kind: 'engagement-row' | 'main' | 'bottom';
|
|
107
|
+
slot?: ArrangementSlotName;
|
|
108
|
+
className: string;
|
|
109
|
+
groups: readonly FooterRuntimeGroup[];
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* The platform's attribution line ("Made by Macadamia"). It is set by the
|
|
113
|
+
* site's plan, never by the owner, so it is not a footer composition section:
|
|
114
|
+
* it joins the runtime only, in the bottom bar, after the owner's modules.
|
|
115
|
+
*/
|
|
116
|
+
export type FooterAttribution = Readonly<{
|
|
117
|
+
/** The words before the link, e.g. "Booking by". */
|
|
118
|
+
lead: string;
|
|
119
|
+
link: Readonly<{
|
|
120
|
+
href: string;
|
|
121
|
+
label: string;
|
|
122
|
+
}>;
|
|
123
|
+
}>;
|
|
124
|
+
/** The footer arrangement's hints that come from the site style's footer. */
|
|
125
|
+
export type FooterLayoutHints = Readonly<{
|
|
126
|
+
legalRegion: 'integrated' | 'separate';
|
|
127
|
+
layoutVariant: Theme['footer']['variant'] | undefined;
|
|
128
|
+
navigationLayout: NonNullable<Theme['footer']['navLayout']>['layout'] | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EventDetailsLookPresentation } from '../system/runtime/nodes/event-details/lookPresentation';
|
|
2
2
|
import type { CarouselProps, ArrangementCarousel } from '../system/runtime/nodes/carousel.shared';
|
|
3
|
-
import { type EventAutoApplyDiscountPreview } from '
|
|
3
|
+
import { type EventAutoApplyDiscountPreview } from './events';
|
|
4
4
|
import type { PublicMembershipProductCollection, PublicPassProductCollection } from '../system/blocks/shop.shared';
|
|
5
5
|
import type { PublicEvent } from '../system/blocks/events/shared/types';
|
|
6
6
|
import type { OccurrenceContextLike } from '../system/runtime/nodes/event-details/logic';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FooterRuntimeViewModel } from './footer';
|
|
2
|
+
export declare const SITE_HEADER_MODES: readonly ["default", "hidden"];
|
|
3
|
+
export type SiteHeaderMode = (typeof SITE_HEADER_MODES)[number];
|
|
4
|
+
export type SiteHeaderContent = Readonly<{
|
|
5
|
+
mode?: SiteHeaderMode | null;
|
|
6
|
+
}>;
|
|
7
|
+
export type SiteFooterContent = Readonly<{
|
|
8
|
+
showBusinessAddress?: boolean | null;
|
|
9
|
+
footerRuntime?: FooterRuntimeViewModel | null;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customer Portal Client Component
|
|
3
|
+
*
|
|
4
|
+
* Dedicated customer portal client surface.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { CustomerPass } from '../portal/types';
|
|
8
|
+
export declare const PORTAL_SECTION_LOAD_TIMEOUT_MS = 15000;
|
|
9
|
+
export declare const PORTAL_PASS_HISTORY_PREVIEW_LIMIT = 3;
|
|
10
|
+
type OptionalPortalSectionLabel = "credit" | "digital-products";
|
|
11
|
+
type PortalSectionFallbackReason = Readonly<{
|
|
12
|
+
kind: 'timeout';
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: 'failed';
|
|
15
|
+
error: unknown;
|
|
16
|
+
}>;
|
|
17
|
+
export type CustomerPortalClientProps = Readonly<{
|
|
18
|
+
callbackPath?: string;
|
|
19
|
+
logoutPath?: string;
|
|
20
|
+
bookPath?: string;
|
|
21
|
+
hasInitialPortalToken?: boolean;
|
|
22
|
+
demoEmailSuppressed?: boolean;
|
|
23
|
+
className?: string | null;
|
|
24
|
+
showPasses?: boolean;
|
|
25
|
+
showMemberships?: boolean;
|
|
26
|
+
showEvents?: boolean;
|
|
27
|
+
showWholeSeries?: boolean;
|
|
28
|
+
showAppointments?: boolean;
|
|
29
|
+
showOrders?: boolean;
|
|
30
|
+
showCredit?: boolean;
|
|
31
|
+
showProfile?: boolean;
|
|
32
|
+
loginTitle?: string;
|
|
33
|
+
loginSubtitle?: string;
|
|
34
|
+
loginButtonText?: string;
|
|
35
|
+
passesTabLabel?: string;
|
|
36
|
+
membershipsTabLabel?: string;
|
|
37
|
+
eventsTabLabel?: string;
|
|
38
|
+
appointmentsTabLabel?: string;
|
|
39
|
+
ordersTabLabel?: string;
|
|
40
|
+
creditTabLabel?: string;
|
|
41
|
+
profileTabLabel?: string;
|
|
42
|
+
emptyPassesMessage?: string;
|
|
43
|
+
emptyMembershipsMessage?: string;
|
|
44
|
+
emptyEventsMessage?: string;
|
|
45
|
+
emptyAppointmentsMessage?: string;
|
|
46
|
+
emptyOrdersMessage?: string;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* Keeps optional additive portal sections from blocking the rest of the portal when a
|
|
50
|
+
* non-essential request stalls or fails. We race the load against a fixed
|
|
51
|
+
* 15-second timeout and log whichever fallback path wins first.
|
|
52
|
+
*/
|
|
53
|
+
export declare function loadOptionalPortalSectionWithFallback<T>(label: OptionalPortalSectionLabel, load: () => Promise<T>, buildFallback: (reason: PortalSectionFallbackReason) => T): Promise<T>;
|
|
54
|
+
/**
|
|
55
|
+
* Customer Portal - Client Component
|
|
56
|
+
*
|
|
57
|
+
* Provides authenticated customers access to their passes, memberships,
|
|
58
|
+
* event registrations, appointments, and profile.
|
|
59
|
+
*/
|
|
60
|
+
export declare function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath: suppliedLogoutPath, bookPath: suppliedBookPath, hasInitialPortalToken, demoEmailSuppressed, className, showPasses, showMemberships, showEvents, showWholeSeries, showAppointments, showOrders, showCredit, showProfile, loginTitle, loginSubtitle, loginButtonText, passesTabLabel, membershipsTabLabel, eventsTabLabel, appointmentsTabLabel, ordersTabLabel, creditTabLabel, profileTabLabel, emptyPassesMessage, emptyMembershipsMessage, emptyEventsMessage, emptyAppointmentsMessage, emptyOrdersMessage, }: CustomerPortalClientProps): React.JSX.Element;
|
|
61
|
+
export declare function formatCustomerPassCreditHistoryEntry(entry: CustomerPass['creditHistory'][number], productUseCase: CustomerPass['productUseCase']): string;
|
|
62
|
+
export default CustomerPortalClient;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dispatch } from 'react';
|
|
3
|
+
import type { BoundBlockApiClient } from '../../system/runtime/api/client';
|
|
4
|
+
import type { LoginAction, PortalLoginState } from '../state';
|
|
5
|
+
export declare function getDefaultLoginButtonText(demoEmailSuppressed: boolean | undefined): string;
|
|
6
|
+
type PortalLoginFormProps = Readonly<{
|
|
7
|
+
state: PortalLoginState;
|
|
8
|
+
dispatch: Dispatch<LoginAction>;
|
|
9
|
+
api: BoundBlockApiClient;
|
|
10
|
+
returnPath: string;
|
|
11
|
+
callbackPath: string;
|
|
12
|
+
demoEmailSuppressed?: boolean;
|
|
13
|
+
loginButtonText?: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function PortalLoginForm(props: PortalLoginFormProps): React.JSX.Element;
|
|
16
|
+
export {};
|
package/dist/_dts/blocks/src/customer-portal/components/bookings/AppointmentBeforeYouComeTask.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BookingQuestionsTaskDetail, BookingQuestionsAnswerValue, BeforeYouComeTaskSummary, PortalBeforeYouComeTask } from '../../../portal/types';
|
|
3
|
+
export declare function BeforeYouComeTask({ entityId, task, loadTask, saveTask, createUploadUrl, finalizeUpload, onRefresh, }: {
|
|
4
|
+
entityId: string;
|
|
5
|
+
task: BeforeYouComeTaskSummary;
|
|
6
|
+
loadTask: () => Promise<BookingQuestionsTaskDetail>;
|
|
7
|
+
saveTask: (data: {
|
|
8
|
+
answers: Record<string, BookingQuestionsAnswerValue>;
|
|
9
|
+
}) => Promise<BookingQuestionsTaskDetail>;
|
|
10
|
+
createUploadUrl: (data: {
|
|
11
|
+
fieldId: string;
|
|
12
|
+
filename: string;
|
|
13
|
+
bytes: number;
|
|
14
|
+
}) => Promise<{
|
|
15
|
+
uploadId: string;
|
|
16
|
+
signedUrl: string;
|
|
17
|
+
}>;
|
|
18
|
+
finalizeUpload: (data: {
|
|
19
|
+
fieldId: string;
|
|
20
|
+
uploadId: string;
|
|
21
|
+
}) => Promise<Extract<BookingQuestionsAnswerValue, {
|
|
22
|
+
kind: 'document_upload';
|
|
23
|
+
}>>;
|
|
24
|
+
onRefresh: () => Promise<void>;
|
|
25
|
+
}): React.JSX.Element;
|
|
26
|
+
export { BeforeYouComeTask as AppointmentBeforeYouComeTask };
|
|
27
|
+
export declare function BeforeYouComeTaskDisplay({ task, ...props }: Omit<Parameters<typeof BeforeYouComeTask>[0], 'task'> & {
|
|
28
|
+
task: PortalBeforeYouComeTask;
|
|
29
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FeedbackState } from '@riverbankcms/frontend-state';
|
|
3
|
+
import type { CustomerEventSeriesRegistration, CustomerEventRegistration, CustomerPortalWaitlistEntry, EventGuest } from '../../../portal/types';
|
|
4
|
+
type BookingsSectionProps = Readonly<{
|
|
5
|
+
events: readonly CustomerEventRegistration[];
|
|
6
|
+
wholeSeriesRegistrations: readonly CustomerEventSeriesRegistration[];
|
|
7
|
+
waitlists?: readonly CustomerPortalWaitlistEntry[];
|
|
8
|
+
focusedWaitlistEntryId?: string | null;
|
|
9
|
+
emptyMessage: string;
|
|
10
|
+
onRefresh: () => Promise<void>;
|
|
11
|
+
onWaitlistFeedback: (feedback: FeedbackState<string>) => void;
|
|
12
|
+
onUpdateGuests: (registrationId: string, guests: readonly EventGuest[]) => void;
|
|
13
|
+
onLeaveWaitlist?: (entryId: string) => Promise<Readonly<{
|
|
14
|
+
outcome: 'cancelled';
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
outcome: 'alreadyClosed';
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
outcome: 'notFound';
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function BookingsSection({ events, wholeSeriesRegistrations, waitlists, focusedWaitlistEntryId, emptyMessage, onRefresh, onWaitlistFeedback, onUpdateGuests, onLeaveWaitlist, }: BookingsSectionProps): React.JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { EventGuest } from '../../../portal/types';
|
|
3
|
+
import type { BookingItem } from './bookingsTypes';
|
|
4
|
+
export declare function BookingsTable({ items, isPast, onRefresh, onUpdateGuests, }: {
|
|
5
|
+
items: BookingItem[];
|
|
6
|
+
isPast?: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onUpdateGuests: (registrationId: string, guests: readonly EventGuest[]) => void;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CustomerEventRegistration, EventGuest } from '../../../portal/types';
|
|
3
|
+
export declare function EventRow({ event, isPast: isEventPast, showActionsColumn, onRefresh, onUpdateGuests, }: {
|
|
4
|
+
event: CustomerEventRegistration;
|
|
5
|
+
isPast?: boolean;
|
|
6
|
+
showActionsColumn?: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
onUpdateGuests: (registrationId: string, guests: readonly EventGuest[]) => void;
|
|
9
|
+
}): React.JSX.Element;
|
package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationRow.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CustomerEventSeriesRegistration } from '../../../portal/types';
|
|
3
|
+
export declare function EventSeriesRegistrationRow({ enrollment, isPast, showActionsColumn, onRefresh, }: {
|
|
4
|
+
enrollment: CustomerEventSeriesRegistration;
|
|
5
|
+
isPast?: boolean;
|
|
6
|
+
showActionsColumn?: boolean;
|
|
7
|
+
onRefresh: () => Promise<void>;
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BadgeVariant, CustomerEventSeriesRegistration } from '../../../portal/types';
|
|
3
|
+
import type { usePortalCancelFlow } from './usePortalCancelFlow';
|
|
4
|
+
type CancelFlow = ReturnType<typeof usePortalCancelFlow>;
|
|
5
|
+
export declare function EventSeriesRegistrationTableRow({ enrollment, primaryDateLabel, sessionDatesSummary, sessionCountLabel, statusBadge, isMuted, showActionsColumn, hasAnyActions, additionalParticipants, cancelFlow, openActions, onRefresh, }: Readonly<{
|
|
6
|
+
enrollment: CustomerEventSeriesRegistration;
|
|
7
|
+
primaryDateLabel: string;
|
|
8
|
+
sessionDatesSummary: string;
|
|
9
|
+
sessionCountLabel: string;
|
|
10
|
+
statusBadge: Readonly<{
|
|
11
|
+
variant: BadgeVariant;
|
|
12
|
+
label: string;
|
|
13
|
+
}> | null;
|
|
14
|
+
isMuted: boolean;
|
|
15
|
+
showActionsColumn: boolean;
|
|
16
|
+
hasAnyActions: boolean;
|
|
17
|
+
additionalParticipants: CustomerEventSeriesRegistration['participants'];
|
|
18
|
+
cancelFlow: CancelFlow;
|
|
19
|
+
openActions: () => void;
|
|
20
|
+
onRefresh: () => Promise<void>;
|
|
21
|
+
}>): React.JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CustomerAppointment } from '../../../portal/types';
|
|
3
|
+
export declare function PortalAppointmentRescheduleFlow({ appointment, onClose, onSuccess, }: {
|
|
4
|
+
appointment: CustomerAppointment;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSuccess: (message: string) => Promise<void> | void;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BookingQuestionsAnswerValue, BookingQuestionsScalarField } from '../../../portal/types';
|
|
2
|
+
type ScalarQuestionInputProps = Readonly<{
|
|
3
|
+
field: BookingQuestionsScalarField;
|
|
4
|
+
value: BookingQuestionsAnswerValue;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
error: string | null;
|
|
7
|
+
onChange: (next: BookingQuestionsAnswerValue) => void;
|
|
8
|
+
}>;
|
|
9
|
+
/** Native scalar controls share value conversion and validation; choices and uploads have their own controls. */
|
|
10
|
+
export declare function ScalarQuestionInput({ field, value, disabled, error, onChange, }: ScalarQuestionInputProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CustomerPortalWaitlistEntry } from '../../../portal/types';
|
|
3
|
+
export declare function WaitlistCard({ entry, focused, focusedRef, onLeave }: Readonly<{
|
|
4
|
+
entry: CustomerPortalWaitlistEntry;
|
|
5
|
+
focused: boolean;
|
|
6
|
+
focusedRef: React.RefObject<HTMLElement | null>;
|
|
7
|
+
onLeave: (entry: CustomerPortalWaitlistEntry) => void;
|
|
8
|
+
}>): React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @frontend-dom-environment */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { FeedbackState } from '@riverbankcms/frontend-state';
|
|
4
|
+
import type { CustomerPortalWaitlistEntry } from '../../../portal/types';
|
|
5
|
+
type LeaveWaitlistResult = Readonly<{
|
|
6
|
+
outcome: 'cancelled';
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
outcome: 'alreadyClosed';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
outcome: 'notFound';
|
|
11
|
+
}>;
|
|
12
|
+
export declare function WaitlistsSection({ waitlists, focusedEntryId, onLeave, onRefresh, onFeedback, }: Readonly<{
|
|
13
|
+
waitlists: readonly CustomerPortalWaitlistEntry[];
|
|
14
|
+
focusedEntryId: string | null;
|
|
15
|
+
onLeave: (entryId: string) => Promise<LeaveWaitlistResult>;
|
|
16
|
+
onRefresh: () => Promise<void>;
|
|
17
|
+
onFeedback: (feedback: FeedbackState<string>) => void;
|
|
18
|
+
}>): React.JSX.Element | null;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CustomerEventSeriesRegistration, CustomerEventRegistration } from '../../../portal/types';
|
|
2
|
+
export type BookingItem = {
|
|
3
|
+
kind: 'event';
|
|
4
|
+
startsAt: string;
|
|
5
|
+
event: CustomerEventRegistration;
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'eventSeriesRegistration';
|
|
8
|
+
/** For course rows this is the enrollment's primary grouping/sort date, not a raw "starts at" field. */
|
|
9
|
+
startsAt: string;
|
|
10
|
+
enrollment: CustomerEventSeriesRegistration;
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventGuest } from '../../../portal/types';
|
|
2
|
+
/** Guest indices, not response ordering, identify each additional ticket holder. */
|
|
3
|
+
export declare function buildEventGuestDrafts(rows: readonly EventGuest[], expectedGuestCount: number): Array<{
|
|
4
|
+
name: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CustomerEventSeriesRegistration, CustomerEventSession } from '../../../portal/types';
|
|
2
|
+
export declare function getSortedEventSessions(enrollment: CustomerEventSeriesRegistration): readonly [CustomerEventSession, ...CustomerEventSession[]];
|
|
3
|
+
export declare function selectPrimaryEventSession(enrollment: CustomerEventSeriesRegistration): CustomerEventSession;
|
|
4
|
+
export declare function getEventSeriesRegistrationSortDate(enrollment: CustomerEventSeriesRegistration): string;
|
|
5
|
+
export declare function formatEventSessionDate(session: CustomerEventSession): string;
|
|
6
|
+
export declare function getPrimaryEventSessionDateLabel(enrollment: CustomerEventSeriesRegistration): string;
|
|
7
|
+
export declare function getSessionDatesSummary(enrollment: CustomerEventSeriesRegistration): string;
|
|
8
|
+
export declare function getEventSessionCountLabel(enrollment: CustomerEventSeriesRegistration): string;
|