@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
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -906,9 +906,9 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
906
906
|
href: z.ZodString;
|
|
907
907
|
}, z.core.$strip>>;
|
|
908
908
|
readonly actionSize: z.ZodOptional<z.ZodEnum<{
|
|
909
|
+
sm: "sm";
|
|
909
910
|
md: "md";
|
|
910
911
|
lg: "lg";
|
|
911
|
-
sm: "sm";
|
|
912
912
|
}>>;
|
|
913
913
|
readonly itemActionStyle: z.ZodOptional<z.ZodEnum<{
|
|
914
914
|
link: "link";
|
|
@@ -969,13 +969,14 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
969
969
|
items: "items";
|
|
970
970
|
item: "item";
|
|
971
971
|
places: "places";
|
|
972
|
+
list: "list";
|
|
973
|
+
grid: "grid";
|
|
972
974
|
background: "background";
|
|
973
|
-
eyebrow: "eyebrow";
|
|
974
975
|
mark: "mark";
|
|
975
|
-
|
|
976
|
+
eyebrow: "eyebrow";
|
|
976
977
|
icon: "icon";
|
|
978
|
+
controls: "controls";
|
|
977
979
|
copy: "copy";
|
|
978
|
-
grid: "grid";
|
|
979
980
|
facts: "facts";
|
|
980
981
|
chips: "chips";
|
|
981
982
|
numeral: "numeral";
|
|
@@ -985,7 +986,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
985
986
|
photo: "photo";
|
|
986
987
|
outcome: "outcome";
|
|
987
988
|
sticker: "sticker";
|
|
988
|
-
list: "list";
|
|
989
989
|
frame: "frame";
|
|
990
990
|
"schedule-section": "schedule-section";
|
|
991
991
|
"shop-section": "shop-section";
|
|
@@ -1050,13 +1050,14 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1050
1050
|
items: "items";
|
|
1051
1051
|
item: "item";
|
|
1052
1052
|
places: "places";
|
|
1053
|
+
list: "list";
|
|
1054
|
+
grid: "grid";
|
|
1053
1055
|
background: "background";
|
|
1054
|
-
eyebrow: "eyebrow";
|
|
1055
1056
|
mark: "mark";
|
|
1056
|
-
|
|
1057
|
+
eyebrow: "eyebrow";
|
|
1057
1058
|
icon: "icon";
|
|
1059
|
+
controls: "controls";
|
|
1058
1060
|
copy: "copy";
|
|
1059
|
-
grid: "grid";
|
|
1060
1061
|
facts: "facts";
|
|
1061
1062
|
chips: "chips";
|
|
1062
1063
|
numeral: "numeral";
|
|
@@ -1066,7 +1067,6 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1066
1067
|
photo: "photo";
|
|
1067
1068
|
outcome: "outcome";
|
|
1068
1069
|
sticker: "sticker";
|
|
1069
|
-
list: "list";
|
|
1070
1070
|
frame: "frame";
|
|
1071
1071
|
"schedule-section": "schedule-section";
|
|
1072
1072
|
"shop-section": "shop-section";
|
|
@@ -1889,9 +1889,9 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1889
1889
|
href: z.ZodString;
|
|
1890
1890
|
}, z.core.$strip>>;
|
|
1891
1891
|
readonly actionSize: z.ZodOptional<z.ZodEnum<{
|
|
1892
|
+
sm: "sm";
|
|
1892
1893
|
md: "md";
|
|
1893
1894
|
lg: "lg";
|
|
1894
|
-
sm: "sm";
|
|
1895
1895
|
}>>;
|
|
1896
1896
|
readonly itemActionStyle: z.ZodOptional<z.ZodEnum<{
|
|
1897
1897
|
link: "link";
|
|
@@ -1952,13 +1952,14 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1952
1952
|
items: "items";
|
|
1953
1953
|
item: "item";
|
|
1954
1954
|
places: "places";
|
|
1955
|
+
list: "list";
|
|
1956
|
+
grid: "grid";
|
|
1955
1957
|
background: "background";
|
|
1956
|
-
eyebrow: "eyebrow";
|
|
1957
1958
|
mark: "mark";
|
|
1958
|
-
|
|
1959
|
+
eyebrow: "eyebrow";
|
|
1959
1960
|
icon: "icon";
|
|
1961
|
+
controls: "controls";
|
|
1960
1962
|
copy: "copy";
|
|
1961
|
-
grid: "grid";
|
|
1962
1963
|
facts: "facts";
|
|
1963
1964
|
chips: "chips";
|
|
1964
1965
|
numeral: "numeral";
|
|
@@ -1968,7 +1969,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1968
1969
|
photo: "photo";
|
|
1969
1970
|
outcome: "outcome";
|
|
1970
1971
|
sticker: "sticker";
|
|
1971
|
-
list: "list";
|
|
1972
1972
|
frame: "frame";
|
|
1973
1973
|
"schedule-section": "schedule-section";
|
|
1974
1974
|
"shop-section": "shop-section";
|
|
@@ -2033,13 +2033,14 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2033
2033
|
items: "items";
|
|
2034
2034
|
item: "item";
|
|
2035
2035
|
places: "places";
|
|
2036
|
+
list: "list";
|
|
2037
|
+
grid: "grid";
|
|
2036
2038
|
background: "background";
|
|
2037
|
-
eyebrow: "eyebrow";
|
|
2038
2039
|
mark: "mark";
|
|
2039
|
-
|
|
2040
|
+
eyebrow: "eyebrow";
|
|
2040
2041
|
icon: "icon";
|
|
2042
|
+
controls: "controls";
|
|
2041
2043
|
copy: "copy";
|
|
2042
|
-
grid: "grid";
|
|
2043
2044
|
facts: "facts";
|
|
2044
2045
|
chips: "chips";
|
|
2045
2046
|
numeral: "numeral";
|
|
@@ -2049,7 +2050,6 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2049
2050
|
photo: "photo";
|
|
2050
2051
|
outcome: "outcome";
|
|
2051
2052
|
sticker: "sticker";
|
|
2052
|
-
list: "list";
|
|
2053
2053
|
frame: "frame";
|
|
2054
2054
|
"schedule-section": "schedule-section";
|
|
2055
2055
|
"shop-section": "shop-section";
|
|
@@ -2,15 +2,8 @@ import { type LookListPresentation } from '../lookSurfaces';
|
|
|
2
2
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
3
3
|
import { type FormFieldGroup } from './form-layout';
|
|
4
4
|
import type { FormRecord } from './form.types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
siteId?: string;
|
|
8
|
-
apiBaseUrl?: string;
|
|
9
|
-
submitLabel?: string;
|
|
10
|
-
successMessage?: string | null;
|
|
11
|
-
className?: string;
|
|
12
|
-
spamProtectionEnabled?: boolean;
|
|
13
|
-
}>;
|
|
5
|
+
import type { FormSourceProps } from './form.types';
|
|
6
|
+
export type { FormSourceProps } from './form.types';
|
|
14
7
|
export type FormDisplay = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
15
8
|
kind: 'form';
|
|
16
9
|
state: 'missing' | 'ready';
|
|
@@ -90,4 +83,3 @@ export declare const formInteractiveIslandPropsCodec: Readonly<{
|
|
|
90
83
|
}>>;
|
|
91
84
|
}>;
|
|
92
85
|
export declare function buildFormInteractiveIslandProps(props: FormSourceProps): FormInteractiveIslandProps;
|
|
93
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LookListPresentation } from '../lookSurfaces';
|
|
1
2
|
/**
|
|
2
3
|
* Shared types for form node rendering (client and server).
|
|
3
4
|
* These types represent the runtime shape of form data passed to form components.
|
|
@@ -32,3 +33,12 @@ export type FormRecord = {
|
|
|
32
33
|
fields?: FormFieldDef[];
|
|
33
34
|
};
|
|
34
35
|
};
|
|
36
|
+
export type FormSourceProps = Pick<LookListPresentation, 'lookSlots'> & Readonly<{
|
|
37
|
+
value?: FormRecord;
|
|
38
|
+
siteId?: string;
|
|
39
|
+
apiBaseUrl?: string;
|
|
40
|
+
submitLabel?: string;
|
|
41
|
+
successMessage?: string | null;
|
|
42
|
+
className?: string;
|
|
43
|
+
spamProtectionEnabled?: boolean;
|
|
44
|
+
}>;
|
|
@@ -24,8 +24,8 @@ export declare const eventLayoutSchema: z.ZodEnum<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export declare const eventCalendarDisplayModeSchema: z.ZodEnum<{
|
|
26
26
|
calendar: "calendar";
|
|
27
|
-
list: "list";
|
|
28
27
|
combined: "combined";
|
|
28
|
+
list: "list";
|
|
29
29
|
timetable: "timetable";
|
|
30
30
|
"week-board": "week-board";
|
|
31
31
|
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { TimeSlot } from "../api";
|
|
3
|
+
import { type AppointmentRescheduleResourceOption } from "./useAppointmentRescheduleFlow";
|
|
4
|
+
export type AppointmentRescheduleSlotOptionsProps = Readonly<{
|
|
5
|
+
slots: readonly TimeSlot[];
|
|
6
|
+
resources: readonly AppointmentRescheduleResourceOption[];
|
|
7
|
+
switchingPractitioner: boolean;
|
|
8
|
+
selectedPractitionerIsAny: boolean;
|
|
9
|
+
formatSlotStartAt: (startAt: string) => string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function AppointmentRescheduleSlotOptions({ slots, resources, switchingPractitioner, selectedPractitionerIsAny, formatSlotStartAt, }: AppointmentRescheduleSlotOptionsProps): React.JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { AppointmentResourceId } from "../../../../../core/src/index";
|
|
2
|
+
import { getRuntimeTimeZone } from "../../../utils/date-formatting";
|
|
3
|
+
import { type UseAvailableSlotsOptions, type UseAvailableSlotsResult } from "../hooks/useAvailableSlots";
|
|
4
|
+
import type { UseAvailableDatesOptions, UseAvailableDatesResult } from "../hooks/useAvailableDates";
|
|
5
|
+
import type { TimeSlot } from "../api";
|
|
6
|
+
import { type AppointmentReschedulePractitionerOptionValue, type AppointmentReschedulePractitionerSelection, type AppointmentRescheduleSlotIdentity, type AppointmentRescheduleSlotSelection } from "./useAppointmentRescheduleFlow.state";
|
|
7
|
+
export type AppointmentRescheduleResourceOption = Readonly<{
|
|
8
|
+
id: AppointmentResourceId;
|
|
9
|
+
label: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type AppointmentRescheduleViewState = Readonly<{
|
|
12
|
+
kind: "ready";
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
kind: "original-practitioner-requires-switch";
|
|
15
|
+
reason: "current-practitioner-missing-service" | "current-practitioner-unavailable";
|
|
16
|
+
message: string;
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
kind: "switching-practitioner-no-availability";
|
|
19
|
+
reason: "selected-practitioner-unavailable" | "no-online-availability";
|
|
20
|
+
message: string;
|
|
21
|
+
}>;
|
|
22
|
+
export type UseAppointmentRescheduleFlowInput = Readonly<{
|
|
23
|
+
serviceId: string;
|
|
24
|
+
currentResourceId: AppointmentResourceId | null;
|
|
25
|
+
currentPractitionerLabel: string;
|
|
26
|
+
resources: readonly AppointmentRescheduleResourceOption[];
|
|
27
|
+
resourcesLoading?: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
export type UseAppointmentRescheduleFlowResult = Readonly<{
|
|
30
|
+
viewerTimeZone: string;
|
|
31
|
+
switchingPractitioner: boolean;
|
|
32
|
+
selectedPractitionerId: AppointmentReschedulePractitionerOptionValue;
|
|
33
|
+
selectedPractitionerIsAny: boolean;
|
|
34
|
+
selectedDate: string;
|
|
35
|
+
selectedSlotValue: string;
|
|
36
|
+
sortedDates: readonly string[];
|
|
37
|
+
datesLoading: boolean;
|
|
38
|
+
datesError: string | null;
|
|
39
|
+
hasMore: boolean;
|
|
40
|
+
loadMore: () => void;
|
|
41
|
+
slots: readonly TimeSlot[];
|
|
42
|
+
slotsLoading: boolean;
|
|
43
|
+
slotsError: string | null;
|
|
44
|
+
selectedSlot: TimeSlot | null;
|
|
45
|
+
selectedPractitionerName: string | null;
|
|
46
|
+
viewState: AppointmentRescheduleViewState;
|
|
47
|
+
canShowRescheduleControls: boolean;
|
|
48
|
+
startSwitchingPractitioner: () => void;
|
|
49
|
+
selectPractitioner: (practitionerId: AppointmentReschedulePractitionerOptionValue) => void;
|
|
50
|
+
selectPractitionerOptionValue: (value: string) => void;
|
|
51
|
+
selectDate: (date: string) => void;
|
|
52
|
+
selectSlot: (slot: AppointmentRescheduleSlotIdentity | null) => void;
|
|
53
|
+
}>;
|
|
54
|
+
export type AppointmentRescheduleFlowDeps = Readonly<{
|
|
55
|
+
getRuntimeTimeZone: typeof getRuntimeTimeZone;
|
|
56
|
+
useAvailableDates: (options: UseAvailableDatesOptions) => UseAvailableDatesResult;
|
|
57
|
+
useAvailableSlots: (options: UseAvailableSlotsOptions) => UseAvailableSlotsResult;
|
|
58
|
+
}>;
|
|
59
|
+
export declare function getAppointmentReschedulePractitionerName(resourceId: AppointmentResourceId | null | undefined, resources: readonly AppointmentRescheduleResourceOption[]): string | null;
|
|
60
|
+
export declare function getAppointmentRescheduleSelectionLabel(selection: AppointmentReschedulePractitionerSelection, resources: readonly AppointmentRescheduleResourceOption[]): string | null;
|
|
61
|
+
export declare function resolveAppointmentRescheduleSelectedSlot(slots: readonly TimeSlot[], selection: AppointmentRescheduleSlotSelection): TimeSlot | null;
|
|
62
|
+
export declare function resolveAppointmentRescheduleViewState(input: Readonly<{
|
|
63
|
+
currentResourceId: AppointmentResourceId | null;
|
|
64
|
+
currentPractitionerLabel: string;
|
|
65
|
+
practitionerSelection: AppointmentReschedulePractitionerSelection | null;
|
|
66
|
+
resources: readonly AppointmentRescheduleResourceOption[];
|
|
67
|
+
resourcesLoading: boolean;
|
|
68
|
+
datesLoading: boolean;
|
|
69
|
+
availableDateCount: number;
|
|
70
|
+
}>): AppointmentRescheduleViewState;
|
|
71
|
+
export declare function canShowAppointmentRescheduleControls(viewState: AppointmentRescheduleViewState): boolean;
|
|
72
|
+
export declare function useAppointmentRescheduleFlow({ serviceId, currentResourceId, currentPractitionerLabel, resources, resourcesLoading, }: UseAppointmentRescheduleFlowInput): UseAppointmentRescheduleFlowResult;
|
|
73
|
+
export declare function useAppointmentRescheduleFlowWithDeps({ serviceId, currentResourceId, currentPractitionerLabel, resources, resourcesLoading, }: UseAppointmentRescheduleFlowInput, deps: AppointmentRescheduleFlowDeps): UseAppointmentRescheduleFlowResult;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type AppointmentResourceId } from "../../../../../core/src/index";
|
|
2
|
+
export declare const ANY_PRACTITIONER_SENTINEL = "__any__";
|
|
3
|
+
export type AppointmentReschedulePractitionerOptionValue = typeof ANY_PRACTITIONER_SENTINEL | AppointmentResourceId;
|
|
4
|
+
export type AppointmentReschedulePractitionerSelection = Readonly<{
|
|
5
|
+
kind: "any";
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: "specific";
|
|
8
|
+
practitionerId: AppointmentResourceId;
|
|
9
|
+
}>;
|
|
10
|
+
export type AppointmentReschedulePractitionerState = Readonly<{
|
|
11
|
+
tag: "original";
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
tag: "switching";
|
|
14
|
+
selection: AppointmentReschedulePractitionerSelection;
|
|
15
|
+
}>;
|
|
16
|
+
export type AppointmentRescheduleSlotIdentity = Readonly<{
|
|
17
|
+
startAt: string;
|
|
18
|
+
endAt: string;
|
|
19
|
+
resourceId: AppointmentResourceId;
|
|
20
|
+
}>;
|
|
21
|
+
export type AppointmentRescheduleSlotSelection = Readonly<{
|
|
22
|
+
tag: "none";
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
tag: "selected";
|
|
25
|
+
slot: AppointmentRescheduleSlotIdentity;
|
|
26
|
+
}>;
|
|
27
|
+
export type AppointmentRescheduleFlowState = Readonly<{
|
|
28
|
+
practitioner: AppointmentReschedulePractitionerState;
|
|
29
|
+
selectedDate: string;
|
|
30
|
+
selectedSlot: AppointmentRescheduleSlotSelection;
|
|
31
|
+
}>;
|
|
32
|
+
export type AppointmentRescheduleFlowAction = Readonly<{
|
|
33
|
+
type: "start-switching-practitioner";
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
type: "select-practitioner";
|
|
36
|
+
practitionerId: AppointmentReschedulePractitionerOptionValue;
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
type: "select-date";
|
|
39
|
+
date: string;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
type: "clear-slot";
|
|
42
|
+
}> | Readonly<{
|
|
43
|
+
type: "select-slot";
|
|
44
|
+
slot: AppointmentRescheduleSlotIdentity;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const EMPTY_APPOINTMENT_RESCHEDULE_SLOT_VALUE = "";
|
|
47
|
+
export declare const NO_APPOINTMENT_RESCHEDULE_SLOT_SELECTION: AppointmentRescheduleSlotSelection;
|
|
48
|
+
export declare const initialAppointmentRescheduleFlowState: AppointmentRescheduleFlowState;
|
|
49
|
+
export declare function parseAppointmentReschedulePractitionerSelection(practitionerId: AppointmentReschedulePractitionerOptionValue): AppointmentReschedulePractitionerSelection;
|
|
50
|
+
export declare function parseAppointmentReschedulePractitionerOptionValue(value: string): AppointmentReschedulePractitionerOptionValue;
|
|
51
|
+
export declare function formatAppointmentReschedulePractitionerSelection(selection: AppointmentReschedulePractitionerSelection): AppointmentReschedulePractitionerOptionValue;
|
|
52
|
+
export declare function createAppointmentRescheduleSlotIdentity(startAt: string, resourceId: string, endAt: string): AppointmentRescheduleSlotIdentity;
|
|
53
|
+
export declare function parseAppointmentRescheduleSlotOptionValue(value: string): AppointmentRescheduleSlotIdentity | null;
|
|
54
|
+
export declare function formatAppointmentRescheduleSlotOptionValue(slot: AppointmentRescheduleSlotIdentity): string;
|
|
55
|
+
export declare function formatAppointmentRescheduleSlotSelectionValue(selection: AppointmentRescheduleSlotSelection): string;
|
|
56
|
+
export declare function getAppointmentRescheduleSelectedSlotIdentity(selection: AppointmentRescheduleSlotSelection): AppointmentRescheduleSlotIdentity | null;
|
|
57
|
+
export declare function isAnyAppointmentReschedulePractitionerId(practitionerId: string): boolean;
|
|
58
|
+
export declare function appointmentRescheduleFlowReducer(state: AppointmentRescheduleFlowState, action: AppointmentRescheduleFlowAction): AppointmentRescheduleFlowState;
|
|
59
|
+
export declare function isSwitchingAppointmentReschedulePractitioner(state: AppointmentRescheduleFlowState): boolean;
|
|
60
|
+
export declare function getAppointmentReschedulePractitionerSelection(state: AppointmentRescheduleFlowState): AppointmentReschedulePractitionerSelection | null;
|
|
61
|
+
export declare function getAppointmentRescheduleSelectedPractitionerId(state: AppointmentRescheduleFlowState): AppointmentReschedulePractitionerOptionValue;
|
|
62
|
+
export declare function resolveAppointmentRescheduleAvailabilityResourceId(state: AppointmentRescheduleFlowState, currentResourceId: AppointmentResourceId | null): AppointmentResourceId | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CUSTOMER_PORTAL_PATH = "/portal";
|
|
2
|
-
export declare function buildPortalCallbackUrl(origin: string, redirectTo: string): string;
|
|
2
|
+
export declare function buildPortalCallbackUrl(origin: string, redirectTo: string, callbackPath?: string): string;
|
|
3
3
|
export type DemoPortalMagicLinkRequest = Readonly<{
|
|
4
4
|
email: string;
|
|
5
5
|
redirectUrl: string;
|
|
@@ -9,9 +9,6 @@ export type DemoPortalMagicLinkResponse = Readonly<{
|
|
|
9
9
|
message: string;
|
|
10
10
|
}> | Readonly<{
|
|
11
11
|
demoSignInUrl: string;
|
|
12
|
-
}> | Readonly<{
|
|
13
|
-
kind: 'demo_email_not_booked_here';
|
|
14
|
-
message: string;
|
|
15
12
|
}>;
|
|
16
13
|
export type DemoPortalMagicLinkOutcome = Readonly<{
|
|
17
14
|
kind: 'email_sent';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type MoneyDateString } from '../../core/src/index';
|
|
2
|
+
import type { MoneyTimeSeriesGranularity } from './moneyContracts';
|
|
2
3
|
export type MoneyDateParts = Readonly<{
|
|
3
4
|
year: number;
|
|
4
5
|
month: number;
|
|
@@ -20,3 +21,9 @@ export declare function shiftUtcYearMonth(year: number, month: number, offsetMon
|
|
|
20
21
|
}>;
|
|
21
22
|
export declare function quarterFromMonth(month: number): 1 | 2 | 3 | 4;
|
|
22
23
|
export declare function quarterStartMonth(quarter: 1 | 2 | 3 | 4): number;
|
|
24
|
+
/** Axis and detail labels share one civil projection; stored bucket keys stay untouched. */
|
|
25
|
+
export declare function formatMoneyBucketLabels(date: Date, granularity: MoneyTimeSeriesGranularity): Readonly<{
|
|
26
|
+
label: string;
|
|
27
|
+
axisLabel: string;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function startOfUtcWeek(date: Date): Date;
|
|
@@ -102,6 +102,8 @@ export declare function resolveBookingTimezone(venueTimezone: string | null | un
|
|
|
102
102
|
export declare function resolveBookingTimeZoneId(...candidates: Array<string | null | undefined>): BookingTimeZone;
|
|
103
103
|
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
104
104
|
export declare const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
105
|
+
/** Effect boundary for browser-authored local inputs; formats no displayed date. */
|
|
106
|
+
export declare function getRuntimeBookingTimeZone(): BookingTimeZone;
|
|
105
107
|
export declare function resolveBookingBusinessTimeZone(value: string | null | undefined): BookingTimeZone;
|
|
106
108
|
export declare function parseUtcIsoDateTimeString(value: string): Result<UtcIsoDateTimeString, UtcIsoDateTimeStringParseError>;
|
|
107
109
|
export declare function toUtcIsoDateTimeString(value: string): UtcIsoDateTimeString;
|
|
@@ -119,7 +121,9 @@ export declare function formatBookingTime(input: ScheduledBookingDateTime, forma
|
|
|
119
121
|
* omission instead of depending on locale-specific spacing or punctuation.
|
|
120
122
|
* Callers must only use it for an English presentation contract.
|
|
121
123
|
*/
|
|
122
|
-
export declare function formatBookingCompactEnglishTime(input: ScheduledBookingDateTime
|
|
124
|
+
export declare function formatBookingCompactEnglishTime(input: ScheduledBookingDateTime, options?: Readonly<{
|
|
125
|
+
seconds?: 'include';
|
|
126
|
+
}>): string;
|
|
123
127
|
export declare function formatBookingDateTime(input: ScheduledBookingDateTime, format?: Intl.DateTimeFormatOptions): string;
|
|
124
128
|
export declare function formatBookingDateParts(input: ScheduledBookingDateRange, options?: Readonly<{
|
|
125
129
|
dateFormat?: Intl.DateTimeFormatOptions;
|
|
@@ -15,6 +15,7 @@ export type DateStyle = 'numeric' | 'short' | 'long';
|
|
|
15
15
|
export type ZoneLabel = 'omit' | 'always';
|
|
16
16
|
export type DisplayDateOptions = Readonly<{
|
|
17
17
|
date?: DateStyle | 'omit';
|
|
18
|
+
day?: 'omit';
|
|
18
19
|
weekday?: 'short' | 'long';
|
|
19
20
|
year?: 'numeric' | 'omit';
|
|
20
21
|
}>;
|
|
@@ -23,6 +24,7 @@ export type DisplayDateRangeOptions = DisplayDateOptions & Readonly<{
|
|
|
23
24
|
}>;
|
|
24
25
|
export type DisplayTimeOptions = Readonly<{
|
|
25
26
|
zone: ZoneLabel;
|
|
27
|
+
seconds?: 'include';
|
|
26
28
|
}>;
|
|
27
29
|
export type DisplayDateTimeOptions = DisplayDateOptions & DisplayTimeOptions;
|
|
28
30
|
export type DateTimeSpan = Readonly<{
|
|
@@ -50,6 +52,7 @@ export type DatePresentationProfile = Readonly<{
|
|
|
50
52
|
clock: Readonly<{
|
|
51
53
|
kind: 'compact';
|
|
52
54
|
localeSource: 'product' | 'context';
|
|
55
|
+
seconds?: 'include';
|
|
53
56
|
}>;
|
|
54
57
|
zone: ZoneLabel;
|
|
55
58
|
}> | Readonly<{
|
|
@@ -66,6 +69,7 @@ export declare function sdkPresentationProfile(context: DisplayContext, dateForm
|
|
|
66
69
|
type ClockPresentation = Readonly<{
|
|
67
70
|
kind: 'compact';
|
|
68
71
|
localeSource: 'product' | 'context';
|
|
72
|
+
seconds?: 'include';
|
|
69
73
|
}> | Readonly<{
|
|
70
74
|
kind: 'intl';
|
|
71
75
|
format: Intl.DateTimeFormatOptions;
|
|
@@ -22236,6 +22236,19 @@ export type Database = {
|
|
|
22236
22236
|
selection_outcome: string;
|
|
22237
22237
|
}[];
|
|
22238
22238
|
};
|
|
22239
|
+
select_dated_offering_run_cancellation_settlements_atomic: {
|
|
22240
|
+
Args: {
|
|
22241
|
+
p_event_series_id: string;
|
|
22242
|
+
p_now: string;
|
|
22243
|
+
p_operation_id: string;
|
|
22244
|
+
p_selections: Json;
|
|
22245
|
+
p_site_id: string;
|
|
22246
|
+
};
|
|
22247
|
+
Returns: {
|
|
22248
|
+
registration_id: string;
|
|
22249
|
+
selection_outcome: string;
|
|
22250
|
+
}[];
|
|
22251
|
+
};
|
|
22239
22252
|
set_mailing_list_booking_opt_in_v1: {
|
|
22240
22253
|
Args: {
|
|
22241
22254
|
p_enabled: boolean;
|
|
@@ -423,8 +423,8 @@ export declare const formFieldSchema: z.ZodObject<{
|
|
|
423
423
|
textarea: "textarea";
|
|
424
424
|
select: "select";
|
|
425
425
|
radio: "radio";
|
|
426
|
-
tel: "tel";
|
|
427
426
|
consent: "consent";
|
|
427
|
+
tel: "tel";
|
|
428
428
|
}>;
|
|
429
429
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
430
430
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -762,8 +762,8 @@ export declare const formSchemaSchema: z.ZodObject<{
|
|
|
762
762
|
textarea: "textarea";
|
|
763
763
|
select: "select";
|
|
764
764
|
radio: "radio";
|
|
765
|
-
tel: "tel";
|
|
766
765
|
consent: "consent";
|
|
766
|
+
tel: "tel";
|
|
767
767
|
}>;
|
|
768
768
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
769
769
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -1023,8 +1023,8 @@ export declare const formPayloadFieldsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1023
1023
|
textarea: "textarea";
|
|
1024
1024
|
select: "select";
|
|
1025
1025
|
radio: "radio";
|
|
1026
|
-
tel: "tel";
|
|
1027
1026
|
consent: "consent";
|
|
1027
|
+
tel: "tel";
|
|
1028
1028
|
}>;
|
|
1029
1029
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1030
1030
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -1185,8 +1185,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
1185
1185
|
textarea: "textarea";
|
|
1186
1186
|
select: "select";
|
|
1187
1187
|
radio: "radio";
|
|
1188
|
-
tel: "tel";
|
|
1189
1188
|
consent: "consent";
|
|
1189
|
+
tel: "tel";
|
|
1190
1190
|
}>;
|
|
1191
1191
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1192
1192
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function resolvePreviewEditingMode(stored: string | null): boolean;
|
|
3
|
+
/** Tab-local intent only. Auth and the destination's lease still own write permission. */
|
|
4
|
+
export declare function PreviewEditingModeProvider({ children, siteId }: Readonly<{
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
siteId: string;
|
|
7
|
+
}>): import("react").JSX.Element;
|
|
@@ -79,3 +79,4 @@ export interface ISRConfig {
|
|
|
79
79
|
* @returns ISR configuration with revalidate interval and preview flag
|
|
80
80
|
*/
|
|
81
81
|
export declare function getISRConfig(): ISRConfig;
|
|
82
|
+
export { createPortalPage, createPortalTicketPage, createPortalDigitalProductPage, createPortalDigitalProductFilePage, renderPortalTicketPage, renderPortalDigitalProductPage, renderPortalDigitalProductFilePage, type PortalPageOptions, type PortalRouteContext, } from './portal';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type CustomerPortalProps } from '#sdk-portal-client';
|
|
2
|
+
import type { RiverbankClient } from '../client/types';
|
|
3
|
+
import type { RiverbankSiteConfig } from '../config/types';
|
|
4
|
+
import type { DataLoaderSearchParams } from '../data/types';
|
|
5
|
+
import { type ThemeOptionsForResolver } from './resolveTheme';
|
|
6
|
+
export type PortalRouteContext = Readonly<{
|
|
7
|
+
siteId: string;
|
|
8
|
+
apiBaseUrl: string;
|
|
9
|
+
portalToken: string | null;
|
|
10
|
+
callbackPath?: string;
|
|
11
|
+
demoEmailSuppressed?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export type PortalPageOptions = Readonly<{
|
|
14
|
+
getClient: () => Pick<RiverbankClient, 'getSite' | 'getBaseUrl'> | Promise<Pick<RiverbankClient, 'getSite' | 'getBaseUrl'>>;
|
|
15
|
+
config: RiverbankSiteConfig;
|
|
16
|
+
portal?: Omit<CustomerPortalProps, 'siteId' | 'apiBaseUrl' | 'portalToken'>;
|
|
17
|
+
}> & ThemeOptionsForResolver;
|
|
18
|
+
export declare function renderPortalTicketPage(context: PortalRouteContext, registrationId: string): Promise<import("react").JSX.Element>;
|
|
19
|
+
export declare function renderPortalDigitalProductPage(context: PortalRouteContext, entitlementId: string): Promise<import("react").JSX.Element>;
|
|
20
|
+
export declare function renderPortalDigitalProductFilePage(context: PortalRouteContext, entitlementId: string, assetId: string): Promise<import("react").JSX.Element>;
|
|
21
|
+
type PortalSearchParams = Readonly<{
|
|
22
|
+
searchParams?: Promise<DataLoaderSearchParams>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function createPortalPage(options: PortalPageOptions): ({ searchParams }?: PortalSearchParams) => Promise<import("react").JSX.Element>;
|
|
25
|
+
export declare function createPortalTicketPage(options: PortalPageOptions): ({ params, searchParams, }: PortalSearchParams & {
|
|
26
|
+
params: Promise<{
|
|
27
|
+
registrationId: string;
|
|
28
|
+
}>;
|
|
29
|
+
}) => Promise<import("react").JSX.Element>;
|
|
30
|
+
export declare function createPortalDigitalProductPage(options: PortalPageOptions): ({ params, searchParams, }: PortalSearchParams & {
|
|
31
|
+
params: Promise<{
|
|
32
|
+
entitlementId: string;
|
|
33
|
+
}>;
|
|
34
|
+
}) => Promise<import("react").JSX.Element>;
|
|
35
|
+
export declare function createPortalDigitalProductFilePage(options: PortalPageOptions): ({ params, searchParams, }: PortalSearchParams & {
|
|
36
|
+
params: Promise<{
|
|
37
|
+
entitlementId: string;
|
|
38
|
+
assetId: string;
|
|
39
|
+
}>;
|
|
40
|
+
}) => Promise<import("react").JSX.Element>;
|
|
41
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Theme } from '../contracts';
|
|
2
2
|
import type { RiverbankSiteConfig } from '../config/types';
|
|
3
|
-
import type { ThemeResolverContext,
|
|
3
|
+
import type { ThemeResolverContext, CatchAllThemeOptions } from './types';
|
|
4
4
|
import type { DataLoaderSearchParams } from '../data/types';
|
|
5
5
|
export type ResolveThemeResult = {
|
|
6
6
|
kind: 'resolved';
|
|
@@ -14,14 +14,7 @@ export type ResolveThemeResult = {
|
|
|
14
14
|
reason: 'invalid-theme-key';
|
|
15
15
|
themeKey: string;
|
|
16
16
|
};
|
|
17
|
-
export type ThemeOptionsForResolver =
|
|
18
|
-
theme: Theme;
|
|
19
|
-
} | {
|
|
20
|
-
themes: Record<string, Theme>;
|
|
21
|
-
themeSwitch?: ThemeSwitchConfigV1;
|
|
22
|
-
} | {
|
|
23
|
-
getTheme: (context: ThemeResolverContext) => Theme | Promise<Theme>;
|
|
24
|
-
} | {};
|
|
17
|
+
export type ThemeOptionsForResolver = CatchAllThemeOptions;
|
|
25
18
|
export interface ResolveThemeInput {
|
|
26
19
|
config: Pick<RiverbankSiteConfig, 'themeSource' | 'activeTheme'>;
|
|
27
20
|
contentTheme: Theme | null;
|
|
@@ -31,3 +24,5 @@ export interface ResolveThemeInput {
|
|
|
31
24
|
context: ThemeResolverContext;
|
|
32
25
|
}
|
|
33
26
|
export declare function resolveTheme(input: ResolveThemeInput): Promise<ResolveThemeResult>;
|
|
27
|
+
/** Query selection belongs to the same owner as theme admission. */
|
|
28
|
+
export declare function requestedThemeKey(options: ThemeOptionsForResolver, searchParams: DataLoaderSearchParams): string | undefined;
|
|
@@ -69,13 +69,18 @@ export interface ThemeSwitchConfigV1 {
|
|
|
69
69
|
/**
|
|
70
70
|
* Context passed to `getTheme` resolver.
|
|
71
71
|
*/
|
|
72
|
-
export interface ThemeResolverContext extends CatchAllContext {
|
|
73
|
-
/**
|
|
72
|
+
export interface ThemeResolverContext extends Omit<CatchAllContext, 'content'> {
|
|
73
|
+
/** Reserved portal routes have site data rather than CMS page content. */
|
|
74
|
+
content: LoadContentResult | Readonly<{
|
|
75
|
+
type: 'portal';
|
|
76
|
+
site: Awaited<ReturnType<RiverbankClient['getSite']>>;
|
|
77
|
+
}>;
|
|
78
|
+
/** Site config from the catch-all or reserved portal route helper. */
|
|
74
79
|
config: RiverbankSiteConfig;
|
|
75
80
|
/** Optional key selected from `themes` (when applicable) */
|
|
76
81
|
themeKey?: string;
|
|
77
82
|
}
|
|
78
|
-
type CatchAllThemeOptions = {
|
|
83
|
+
export type CatchAllThemeOptions = {
|
|
79
84
|
/**
|
|
80
85
|
* Default behavior: use the CMS theme from `loadContent()`.
|
|
81
86
|
* If `config.themeSource === 'local'`, you must supply a theme via
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../../blocks/src/client/portal';
|
|
@@ -1,43 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Portal
|
|
2
|
+
* Portal server helpers: callback, logout and cookie/token access.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // In your portal callback route (app/portal/callback/route.ts)
|
|
10
|
-
* import { handlePortalCallback } from '@riverbankcms/sdk/portal';
|
|
11
|
-
* export const GET = handlePortalCallback({ redirectPath: '/portal' });
|
|
12
|
-
*
|
|
13
|
-
* // In your portal page (app/portal/page.tsx)
|
|
14
|
-
* import { getPortalToken, createPortalApiConfig } from '@riverbankcms/sdk/portal';
|
|
15
|
-
* import { BlockApiProvider } from '../../../blocks/src/client';
|
|
16
|
-
* import { cookies } from 'next/headers';
|
|
17
|
-
*
|
|
18
|
-
* export default async function PortalPage() {
|
|
19
|
-
* const token = getPortalToken(await cookies());
|
|
20
|
-
*
|
|
21
|
-
* if (!token) {
|
|
22
|
-
* return <PortalLoginForm />;
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* const config = createPortalApiConfig({
|
|
26
|
-
* token,
|
|
27
|
-
* siteId: process.env.SITE_ID!,
|
|
28
|
-
* dashboardUrl: process.env.DASHBOARD_URL!,
|
|
29
|
-
* });
|
|
30
|
-
*
|
|
31
|
-
* return (
|
|
32
|
-
* <BlockApiProvider config={config}>
|
|
33
|
-
* <CustomerPortal />
|
|
34
|
-
* </BlockApiProvider>
|
|
35
|
-
* );
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
4
|
+
* For a themed reserved route, use createPortalPage from @riverbankcms/sdk/next.
|
|
5
|
+
* For a custom host, import CustomerPortal from @riverbankcms/sdk/portal/client
|
|
6
|
+
* and pass siteId, apiBaseUrl and the nullable portalToken inside the site ThemeScope.
|
|
38
7
|
*/
|
|
39
8
|
export { CUSTOMER_PORTAL_PATH, PORTAL_TOKEN_COOKIE, PORTAL_COOKIE_MAX_AGE, PORTAL_CODE_PARAM, PORTAL_LOGIN_SUCCESS_PARAM, REDIRECT_TO_PARAM, DEFAULT_PORTAL_REDIRECT, DEFAULT_LOGOUT_REDIRECT, } from './constants';
|
|
40
9
|
export { handlePortalCallback, handlePortalLogout, getDashboardUrl, type PortalCallbackOptions, type PortalLogoutOptions, } from './callback';
|
|
41
10
|
export { isValidRedirectPath } from './validation';
|
|
42
11
|
export { getPortalToken, hasPortalSession, type CookieStore } from './token';
|
|
43
|
-
export { createPortalApiConfig, getPortalLoginUrl, type PortalApiConfig, type CreatePortalApiConfigOptions, } from './config';
|