@riverbankcms/sdk 0.154.0 → 0.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-C7FiaxlF.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +29 -20
- package/dist/{PreviewEditorUI-DFst50q1.mjs → PreviewEditorUI-CKKnAw11.mjs} +9 -17
- package/dist/{SdkPreviewModeRuntime-BUNV_YHZ.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +132 -56
- package/dist/{SiteChromeCustomizeContext-DEj7qppF.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +6324 -3566
- package/dist/{ThemedButton-C8kzu0hY.mjs → ThemedButton-Bi0rgijy.mjs} +83 -5
- package/dist/_dts/ai/src/contracts/proposals.d.ts +42213 -16421
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +3322 -258
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingPeople.d.ts +1 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/bookings.d.ts +8 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -3
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +5 -2
- package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
- package/dist/_dts/api/src/public/types.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +22 -7
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
- package/dist/_dts/api/src/sdkThemeWire.d.ts +10 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteTerms.d.ts +100 -0
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/api/src/webhooks.d.ts +9 -9
- package/dist/_dts/block-form/src/client/index.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
- package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +22 -22
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +9 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
- package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +44 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +33 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
- package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
- package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
- package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
- package/dist/_dts/core/src/booking-refunds.d.ts +43 -2
- package/dist/_dts/core/src/branded.d.ts +6 -0
- package/dist/_dts/core/src/date-display.d.ts +7 -2
- package/dist/_dts/core/src/index.d.ts +3 -2
- package/dist/_dts/core/src/site-terms.d.ts +94 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +306 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
- package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
- package/dist/_dts/theme-core/src/schema.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +56 -1
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
- package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
- package/dist/_dts/ui/src/calendar.d.ts +6 -1
- package/dist/_dts/ui/src/index.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-CNoSqFtf.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
- package/dist/client/{CardListItem-BkTkqBkh.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
- package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
- package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
- package/dist/client/{EventCombined.client-BgeYMjHJ.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-BTc_lTkM.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
- package/dist/client/{EventListing.client-ChRs9Hl2.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
- package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
- package/dist/client/{LeafletStaticMap-C_dNQgd0.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
- package/dist/client/{RichText-BI9bzbjo.mjs → RichText-D3oE1_pw.mjs} +4 -4
- package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
- package/dist/client/{accordion-6Yz8Wd83.mjs → accordion-yBx6d4O2.mjs} +1 -1
- package/dist/client/{bookingForm-i_pKIGiY.mjs → bookingForm-CPDEsQci.mjs} +64 -35
- package/dist/client/bookings.mjs +6572 -3274
- package/dist/client/carousel-DCqjwd2s.mjs +71 -0
- package/dist/client/{carousel.client-BUgjPbb6.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
- package/dist/client/{cart-D8OBHuF4.mjs → cart-DWJXrQxs.mjs} +3 -3
- package/dist/client/{checkout-F3-9IGLU.mjs → checkout-CH4ypSLS.mjs} +3 -3
- package/dist/client/client.mjs +7379 -2504
- package/dist/client/{context-Dg4ZrxDD.mjs → context-BOs0m_iw.mjs} +16 -12
- package/dist/client/{eventCalendar-BUc7YIBM.mjs → eventCalendar-CRylMllc.mjs} +8 -319
- package/dist/client/{eventCombined-BwfShk2a.mjs → eventCombined-DohTS3kp.mjs} +4 -4
- package/dist/client/{eventDetails-BMOVC3go.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
- package/dist/client/{eventListing-BwE9PM-t.mjs → eventListing-Cg__X2vy.mjs} +4 -4
- package/dist/client/{eventRegistration-CCWPYDc7.mjs → eventRegistration-CybWxswy.mjs} +215 -237
- package/dist/client/{form-CXFr0Gd5.mjs → form-C-SGk6nq.mjs} +4 -4
- package/dist/client/{headerSection-BX8qw8kH.mjs → headerSection-BdzPaHqo.mjs} +3 -3
- package/dist/client/hooks.mjs +1283 -213
- package/dist/client/{locationMap-B3La71m0.mjs → locationMap-CEwIKmMb.mjs} +3 -3
- package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
- package/dist/client/{media-B1Cbv721.mjs → media-V_ShXXru.mjs} +3 -3
- package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
- package/dist/client/{newsletterForm-DnGyR0x7.mjs → newsletterForm-CmwTltoS.mjs} +5 -4
- package/dist/client/{productDetail-BVgTqvkb.mjs → productDetail-DjIzUwg3.mjs} +3 -3
- package/dist/client/{productList-CcO7kUQw.mjs → productList-D6JGFnMF.mjs} +3 -3
- package/dist/client/{propsDecoder-B1OeWavE.mjs → propsDecoder-BRKz13eg.mjs} +5110 -2504
- package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
- package/dist/client/rendering/client.mjs +6176 -2738
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +7656 -2726
- package/dist/client/{routeIslandApiConfig-Dl4vglJm.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
- package/dist/client/{shop-P72nX5Fs.mjs → shop-C45K96_0.mjs} +178 -157
- package/dist/client/{shop-commerce-Bt7uraDx.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
- package/dist/client/{shop-commerce-store-C1-mxSye.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
- package/dist/client/{shopShared-Db-cRGu3.mjs → shopShared-D54T_LAV.mjs} +5 -5
- package/dist/client/{useDiscountCodeUi-jvAiUoUX.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
- package/dist/client/{useEventPagination-BdWpCniq.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/keepAlive.mjs +1 -0
- package/dist/preview-next/middleware.mjs +1 -0
- package/dist/{sdk-runtime-DLhjF2Nw.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
- package/dist/server/components.mjs +4514 -1408
- package/dist/server/config-validation.mjs +1181 -179
- package/dist/server/config.mjs +1147 -177
- package/dist/server/data.mjs +1204 -180
- package/dist/server/date-time.mjs +18 -7
- package/dist/server/index.mjs +4 -1
- package/dist/server/next.mjs +4533 -1429
- package/dist/server/page-converter.mjs +1054 -173
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3775 -1015
- package/dist/server/rendering.mjs +4540 -1425
- package/dist/server/routing.mjs +1321 -247
- package/dist/server/server.mjs +1296 -215
- package/dist/server/theme-bridge.mjs +1864 -73
- package/dist/server/theme.mjs +74 -3
- package/dist/{spinner-MTooKfck.mjs → spinner-KVVZh8jd.mjs} +1 -1
- package/dist/src-BgmWy3P1.mjs +1667 -0
- package/dist/styles/index.css +942 -1
- package/package.json +1 -1
- package/dist/client/CheckboxChoice-CHJpsty4.mjs +0 -24
- package/dist/client/DemoBookingPortalAccess-C7KQKFNt.mjs +0 -344
- package/dist/client/ThemedButton-wl3Z3wkH.mjs +0 -411
- package/dist/client/carousel-DNqd_PjC.mjs +0 -38
package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts
CHANGED
|
@@ -160,8 +160,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
160
160
|
readonly calendarWindow: z.ZodOptional<z.ZodNullable<z.ZodType<CalendarWindowPage, unknown, z.core.$ZodTypeInternals<CalendarWindowPage, unknown>>>>;
|
|
161
161
|
readonly events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
162
162
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
163
|
-
course: "course";
|
|
164
163
|
event: "event";
|
|
164
|
+
course: "course";
|
|
165
165
|
class: "class";
|
|
166
166
|
term: "term";
|
|
167
167
|
workshop: "workshop";
|
|
@@ -478,6 +478,7 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
478
478
|
}>;
|
|
479
479
|
}, z.core.$strip>;
|
|
480
480
|
}, z.core.$strip>;
|
|
481
|
+
asksSiteTerms: z.ZodBoolean;
|
|
481
482
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
482
483
|
requirementId: string;
|
|
483
484
|
title: string;
|
|
@@ -501,8 +502,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
501
502
|
run: z.ZodOptional<z.ZodUndefined>;
|
|
502
503
|
}, z.core.$strip>, z.ZodObject<{
|
|
503
504
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
504
|
-
course: "course";
|
|
505
505
|
event: "event";
|
|
506
|
+
course: "course";
|
|
506
507
|
class: "class";
|
|
507
508
|
term: "term";
|
|
508
509
|
workshop: "workshop";
|
|
@@ -819,6 +820,7 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
819
820
|
}>;
|
|
820
821
|
}, z.core.$strip>;
|
|
821
822
|
}, z.core.$strip>;
|
|
823
|
+
asksSiteTerms: z.ZodBoolean;
|
|
822
824
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
823
825
|
requirementId: string;
|
|
824
826
|
title: string;
|
|
@@ -967,6 +969,7 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
967
969
|
items: "items";
|
|
968
970
|
item: "item";
|
|
969
971
|
places: "places";
|
|
972
|
+
background: "background";
|
|
970
973
|
eyebrow: "eyebrow";
|
|
971
974
|
mark: "mark";
|
|
972
975
|
controls: "controls";
|
|
@@ -984,6 +987,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
984
987
|
sticker: "sticker";
|
|
985
988
|
list: "list";
|
|
986
989
|
frame: "frame";
|
|
990
|
+
"schedule-section": "schedule-section";
|
|
991
|
+
"shop-section": "shop-section";
|
|
987
992
|
headline: "headline";
|
|
988
993
|
lede: "lede";
|
|
989
994
|
actions: "actions";
|
|
@@ -1045,6 +1050,7 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1045
1050
|
items: "items";
|
|
1046
1051
|
item: "item";
|
|
1047
1052
|
places: "places";
|
|
1053
|
+
background: "background";
|
|
1048
1054
|
eyebrow: "eyebrow";
|
|
1049
1055
|
mark: "mark";
|
|
1050
1056
|
controls: "controls";
|
|
@@ -1062,6 +1068,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1062
1068
|
sticker: "sticker";
|
|
1063
1069
|
list: "list";
|
|
1064
1070
|
frame: "frame";
|
|
1071
|
+
"schedule-section": "schedule-section";
|
|
1072
|
+
"shop-section": "shop-section";
|
|
1065
1073
|
headline: "headline";
|
|
1066
1074
|
lede: "lede";
|
|
1067
1075
|
actions: "actions";
|
|
@@ -1103,8 +1111,8 @@ export declare const eventCollectionSourceSchemaShape: {
|
|
|
1103
1111
|
export declare const eventCollectionDisplaySchemaShape: {
|
|
1104
1112
|
readonly events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1105
1113
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1106
|
-
course: "course";
|
|
1107
1114
|
event: "event";
|
|
1115
|
+
course: "course";
|
|
1108
1116
|
class: "class";
|
|
1109
1117
|
term: "term";
|
|
1110
1118
|
workshop: "workshop";
|
|
@@ -1421,6 +1429,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1421
1429
|
}>;
|
|
1422
1430
|
}, z.core.$strip>;
|
|
1423
1431
|
}, z.core.$strip>;
|
|
1432
|
+
asksSiteTerms: z.ZodBoolean;
|
|
1424
1433
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1425
1434
|
requirementId: string;
|
|
1426
1435
|
title: string;
|
|
@@ -1444,8 +1453,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1444
1453
|
run: z.ZodOptional<z.ZodUndefined>;
|
|
1445
1454
|
}, z.core.$strip>, z.ZodObject<{
|
|
1446
1455
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1447
|
-
course: "course";
|
|
1448
1456
|
event: "event";
|
|
1457
|
+
course: "course";
|
|
1449
1458
|
class: "class";
|
|
1450
1459
|
term: "term";
|
|
1451
1460
|
workshop: "workshop";
|
|
@@ -1762,6 +1771,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1762
1771
|
}>;
|
|
1763
1772
|
}, z.core.$strip>;
|
|
1764
1773
|
}, z.core.$strip>;
|
|
1774
|
+
asksSiteTerms: z.ZodBoolean;
|
|
1765
1775
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1766
1776
|
requirementId: string;
|
|
1767
1777
|
title: string;
|
|
@@ -1942,6 +1952,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1942
1952
|
items: "items";
|
|
1943
1953
|
item: "item";
|
|
1944
1954
|
places: "places";
|
|
1955
|
+
background: "background";
|
|
1945
1956
|
eyebrow: "eyebrow";
|
|
1946
1957
|
mark: "mark";
|
|
1947
1958
|
controls: "controls";
|
|
@@ -1959,6 +1970,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
1959
1970
|
sticker: "sticker";
|
|
1960
1971
|
list: "list";
|
|
1961
1972
|
frame: "frame";
|
|
1973
|
+
"schedule-section": "schedule-section";
|
|
1974
|
+
"shop-section": "shop-section";
|
|
1962
1975
|
headline: "headline";
|
|
1963
1976
|
lede: "lede";
|
|
1964
1977
|
actions: "actions";
|
|
@@ -2020,6 +2033,7 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2020
2033
|
items: "items";
|
|
2021
2034
|
item: "item";
|
|
2022
2035
|
places: "places";
|
|
2036
|
+
background: "background";
|
|
2023
2037
|
eyebrow: "eyebrow";
|
|
2024
2038
|
mark: "mark";
|
|
2025
2039
|
controls: "controls";
|
|
@@ -2037,6 +2051,8 @@ export declare const eventCollectionDisplaySchemaShape: {
|
|
|
2037
2051
|
sticker: "sticker";
|
|
2038
2052
|
list: "list";
|
|
2039
2053
|
frame: "frame";
|
|
2054
|
+
"schedule-section": "schedule-section";
|
|
2055
|
+
"shop-section": "shop-section";
|
|
2040
2056
|
headline: "headline";
|
|
2041
2057
|
lede: "lede";
|
|
2042
2058
|
actions: "actions";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
3
4
|
export declare const publicGiftingOffersResponseSchema: z.ZodObject<{
|
|
@@ -40,6 +41,7 @@ export type GiftingControllerProps = Readonly<{
|
|
|
40
41
|
successMessage?: string | null;
|
|
41
42
|
}>;
|
|
42
43
|
export type GiftingSourceProps = GiftingControllerProps & Readonly<{
|
|
44
|
+
siteTerms?: BlockSiteTerms;
|
|
43
45
|
siteId?: string;
|
|
44
46
|
apiBaseUrl?: string;
|
|
45
47
|
offers?: PublicGiftingOffersResponse | null;
|
|
@@ -55,6 +57,7 @@ export type GiftingDisplay = Readonly<{
|
|
|
55
57
|
emptyStateText: string;
|
|
56
58
|
}>;
|
|
57
59
|
export type GiftingHydration = Readonly<{
|
|
60
|
+
siteTerms?: BlockSiteTerms;
|
|
58
61
|
offers: PublicGiftingOffersResponse | null;
|
|
59
62
|
checkoutButtonText: string;
|
|
60
63
|
successMessage: string;
|
|
@@ -79,6 +82,7 @@ export declare const giftingBlockRuntime: Readonly<{
|
|
|
79
82
|
emptyStateText: string;
|
|
80
83
|
}>;
|
|
81
84
|
hydration: Readonly<{
|
|
85
|
+
siteTerms?: BlockSiteTerms;
|
|
82
86
|
offers: PublicGiftingOffersResponse | null;
|
|
83
87
|
checkoutButtonText: string;
|
|
84
88
|
successMessage: string;
|
|
@@ -102,6 +106,7 @@ export declare const giftingBlockRuntime: Readonly<{
|
|
|
102
106
|
emptyStateText: string;
|
|
103
107
|
}>;
|
|
104
108
|
hydration: Readonly<{
|
|
109
|
+
siteTerms?: BlockSiteTerms;
|
|
105
110
|
offers: PublicGiftingOffersResponse | null;
|
|
106
111
|
checkoutButtonText: string;
|
|
107
112
|
successMessage: string;
|
|
@@ -119,6 +124,7 @@ export declare const giftingBlockRuntime: Readonly<{
|
|
|
119
124
|
emptyStateText: string;
|
|
120
125
|
}>;
|
|
121
126
|
hydration: Readonly<{
|
|
127
|
+
siteTerms?: BlockSiteTerms;
|
|
122
128
|
offers: PublicGiftingOffersResponse | null;
|
|
123
129
|
checkoutButtonText: string;
|
|
124
130
|
successMessage: string;
|
|
@@ -147,6 +153,7 @@ export declare const giftingInteractiveIslandPropsCodec: Readonly<{
|
|
|
147
153
|
emptyStateText: string;
|
|
148
154
|
}>;
|
|
149
155
|
hydration: Readonly<{
|
|
156
|
+
siteTerms?: BlockSiteTerms;
|
|
150
157
|
offers: PublicGiftingOffersResponse | null;
|
|
151
158
|
checkoutButtonText: string;
|
|
152
159
|
successMessage: string;
|
|
@@ -172,6 +179,7 @@ export declare const giftingInteractiveIslandPropsCodec: Readonly<{
|
|
|
172
179
|
emptyStateText: string;
|
|
173
180
|
}>;
|
|
174
181
|
hydration: Readonly<{
|
|
182
|
+
siteTerms?: BlockSiteTerms;
|
|
175
183
|
offers: PublicGiftingOffersResponse | null;
|
|
176
184
|
checkoutButtonText: string;
|
|
177
185
|
successMessage: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { type CardListRuntime } from './events/shared/EventItem';
|
|
1
2
|
import { type CardListPresentation } from './events/shared/CardListItem';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { ButtonVariant, PublicEvent } from '../../blocks/events/shared/types';
|
|
4
|
-
import { type BookingOfferingPresetSummary } from '../../blocks/offerings-preview/model';
|
|
5
|
-
export type OfferingsCatalogueProps = CardListPresentation & Readonly<{
|
|
6
|
-
|
|
5
|
+
import { type BookingOfferingPresetSummary, type OfferingsRenderInput } from '../../blocks/offerings-preview/model';
|
|
6
|
+
export type OfferingsCatalogueProps = CardListRuntime & CardListPresentation & Readonly<{
|
|
7
|
+
renderInput?: OfferingsRenderInput;
|
|
8
|
+
carouselRegion?: string | null;
|
|
7
9
|
children?: React.ReactNode;
|
|
8
10
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
9
11
|
catalogueEvents?: readonly PublicEvent[] | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ButtonVariant } from '../../blocks/events/shared/types';
|
|
3
|
-
import { type OfferingsPreviewGroupPresentation, type
|
|
3
|
+
import { type OfferingsPreviewGroupPresentation, type GroupLoad, type OfferingsPreviewItem, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
|
|
4
4
|
export type OfferingsPreviewGroupFrame = Readonly<{
|
|
5
5
|
containerClassName: string;
|
|
6
6
|
containerStyle?: React.CSSProperties;
|
|
@@ -8,7 +8,9 @@ export type OfferingsPreviewGroupFrame = Readonly<{
|
|
|
8
8
|
}>;
|
|
9
9
|
type OfferingsPreviewContentProps = Readonly<{
|
|
10
10
|
now: Date;
|
|
11
|
-
|
|
11
|
+
emptyMessage: string;
|
|
12
|
+
failedMessage: string;
|
|
13
|
+
states: readonly GroupLoad[];
|
|
12
14
|
buttonVariant: ButtonVariant;
|
|
13
15
|
buttonText: string;
|
|
14
16
|
routeCandidates: readonly OfferingsPreviewRouteCandidate[];
|
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import { type OfferingsCatalogueProps } from './offerings-preview-catalogue';
|
|
4
4
|
import type { ButtonVariant, PublicEvent } from '../../blocks/events/shared/types';
|
|
5
5
|
import type { CardStylesContent } from '../../fields/boxStyles';
|
|
6
|
-
import { type BookingOfferingPresetSummary, type OfferingsPreviewEventDataKey, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
|
|
6
|
+
import { type OfferingsRenderInput, type BookingOfferingPresetSummary, type OfferingsPreviewEventDataKey, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewRouteCandidate } from '../../blocks/offerings-preview/model';
|
|
7
7
|
type OfferingsPreviewProps = CardListPresentation & OfferingsCatalogueProps & Readonly<{
|
|
8
|
-
|
|
8
|
+
renderInput?: OfferingsRenderInput;
|
|
9
9
|
displayMode?: 'preview' | 'catalogue';
|
|
10
10
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[] | null;
|
|
11
11
|
groupOrder?: OfferingsPreviewGroupOrder | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import { type BlockButtonRole } from '../../constants/buttonRoles';
|
|
2
3
|
import { type PublicMembershipProduct } from '../../blocks/shop.shared';
|
|
3
4
|
import type { PublicProduct } from '../../blocks/products/shared';
|
|
@@ -7,6 +8,7 @@ import type { ShopDisplayConfig } from './shop.types';
|
|
|
7
8
|
import { type InteractiveIslandProps } from '../../../contracts/islands';
|
|
8
9
|
import type { BrowserReadAuthority } from '../api/types';
|
|
9
10
|
type ShopSourceProps = ShopDisplayConfig & Readonly<{
|
|
11
|
+
siteTerms?: BlockSiteTerms;
|
|
10
12
|
siteId?: string;
|
|
11
13
|
demoEmailSuppressed?: boolean;
|
|
12
14
|
apiBaseUrl?: string;
|
|
@@ -18,6 +20,7 @@ export type PassesMembershipsHydration = Readonly<{
|
|
|
18
20
|
memberships: readonly PublicMembershipProduct[];
|
|
19
21
|
passPurchaseMode: 'add_to_cart' | 'buy_now';
|
|
20
22
|
buttonVariant: BlockButtonRole;
|
|
23
|
+
siteTerms?: BlockSiteTerms;
|
|
21
24
|
demoEmailSuppressed?: boolean;
|
|
22
25
|
}>;
|
|
23
26
|
export type ProductListHydration = Readonly<{
|
|
@@ -41,6 +44,7 @@ export type CartHydration = Readonly<{
|
|
|
41
44
|
export type CheckoutHydration = Readonly<{
|
|
42
45
|
emptyStateText: string;
|
|
43
46
|
submitButtonText: string;
|
|
47
|
+
siteTerms?: BlockSiteTerms;
|
|
44
48
|
demoEmailSuppressed?: boolean;
|
|
45
49
|
}>;
|
|
46
50
|
type ShopIslandMeta = Readonly<{
|
|
@@ -126,6 +130,7 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
126
130
|
memberships: readonly PublicMembershipProduct[];
|
|
127
131
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
128
132
|
buttonVariant: BlockButtonRole;
|
|
133
|
+
siteTerms?: BlockSiteTerms;
|
|
129
134
|
demoEmailSuppressed?: boolean;
|
|
130
135
|
}>;
|
|
131
136
|
}>;
|
|
@@ -182,6 +187,7 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
182
187
|
memberships: readonly PublicMembershipProduct[];
|
|
183
188
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
184
189
|
buttonVariant: BlockButtonRole;
|
|
190
|
+
siteTerms?: BlockSiteTerms;
|
|
185
191
|
demoEmailSuppressed?: boolean;
|
|
186
192
|
}>;
|
|
187
193
|
}>) => unknown;
|
|
@@ -232,6 +238,7 @@ export declare const shopBlockRuntime: Readonly<{
|
|
|
232
238
|
memberships: readonly PublicMembershipProduct[];
|
|
233
239
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
234
240
|
buttonVariant: BlockButtonRole;
|
|
241
|
+
siteTerms?: BlockSiteTerms;
|
|
235
242
|
demoEmailSuppressed?: boolean;
|
|
236
243
|
}>;
|
|
237
244
|
}>>;
|
|
@@ -501,6 +508,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
501
508
|
hydration: Readonly<{
|
|
502
509
|
emptyStateText: string;
|
|
503
510
|
submitButtonText: string;
|
|
511
|
+
siteTerms?: BlockSiteTerms;
|
|
504
512
|
demoEmailSuppressed?: boolean;
|
|
505
513
|
}>;
|
|
506
514
|
}>;
|
|
@@ -522,6 +530,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
522
530
|
hydration: Readonly<{
|
|
523
531
|
emptyStateText: string;
|
|
524
532
|
submitButtonText: string;
|
|
533
|
+
siteTerms?: BlockSiteTerms;
|
|
525
534
|
demoEmailSuppressed?: boolean;
|
|
526
535
|
}>;
|
|
527
536
|
}>) => unknown;
|
|
@@ -537,6 +546,7 @@ export declare const checkoutBlockRuntime: Readonly<{
|
|
|
537
546
|
hydration: Readonly<{
|
|
538
547
|
emptyStateText: string;
|
|
539
548
|
submitButtonText: string;
|
|
549
|
+
siteTerms?: BlockSiteTerms;
|
|
540
550
|
demoEmailSuppressed?: boolean;
|
|
541
551
|
}>;
|
|
542
552
|
}>>;
|
|
@@ -600,6 +610,7 @@ export declare const shopInteractiveIslandPropsCodec: Readonly<{
|
|
|
600
610
|
memberships: readonly PublicMembershipProduct[];
|
|
601
611
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
602
612
|
buttonVariant: BlockButtonRole;
|
|
613
|
+
siteTerms?: BlockSiteTerms;
|
|
603
614
|
demoEmailSuppressed?: boolean;
|
|
604
615
|
}>;
|
|
605
616
|
}>>;
|
|
@@ -660,6 +671,7 @@ export declare const shopInteractiveIslandPropsCodec: Readonly<{
|
|
|
660
671
|
memberships: readonly PublicMembershipProduct[];
|
|
661
672
|
passPurchaseMode: "add_to_cart" | "buy_now";
|
|
662
673
|
buttonVariant: BlockButtonRole;
|
|
674
|
+
siteTerms?: BlockSiteTerms;
|
|
663
675
|
demoEmailSuppressed?: boolean;
|
|
664
676
|
}>;
|
|
665
677
|
}>>;
|
|
@@ -897,6 +909,7 @@ export declare const checkoutInteractiveIslandPropsCodec: Readonly<{
|
|
|
897
909
|
hydration: Readonly<{
|
|
898
910
|
emptyStateText: string;
|
|
899
911
|
submitButtonText: string;
|
|
912
|
+
siteTerms?: BlockSiteTerms;
|
|
900
913
|
demoEmailSuppressed?: boolean;
|
|
901
914
|
}>;
|
|
902
915
|
}>>;
|
|
@@ -922,6 +935,7 @@ export declare const checkoutInteractiveIslandPropsCodec: Readonly<{
|
|
|
922
935
|
hydration: Readonly<{
|
|
923
936
|
emptyStateText: string;
|
|
924
937
|
submitButtonText: string;
|
|
938
|
+
siteTerms?: BlockSiteTerms;
|
|
925
939
|
demoEmailSuppressed?: boolean;
|
|
926
940
|
}>;
|
|
927
941
|
}>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type CheckboxChoiceProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'className'> & Readonly<{
|
|
3
3
|
label: React.ReactNode;
|
|
4
|
+
/** Interactive links stay outside the native label's activation area. */
|
|
5
|
+
labelLink?: React.ReactNode;
|
|
4
6
|
/**
|
|
5
7
|
* `row` for options and plain checkbox fields. `tile` for agreements the
|
|
6
8
|
* customer must accept (booking consent, consent fields): a bordered,
|
|
@@ -14,5 +16,5 @@ type CheckboxChoiceProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'ty
|
|
|
14
16
|
* theme's input CSS (`.form-check`, `.form-checkbox`), so it follows each
|
|
15
17
|
* site's input colours, borders and corners.
|
|
16
18
|
*/
|
|
17
|
-
export declare function CheckboxChoice({ label, presentation, className, ...inputProps }: CheckboxChoiceProps): React.ReactElement;
|
|
19
|
+
export declare function CheckboxChoice({ label, labelLink, presentation, className, ...inputProps }: CheckboxChoiceProps): React.ReactElement;
|
|
18
20
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SiteTermsAgreementView } from '../siteTermsAgreement';
|
|
3
|
+
export declare function SiteTermsAgreementField(props: Readonly<{
|
|
4
|
+
agreement: SiteTermsAgreementView;
|
|
5
|
+
onChange: (checked: boolean) => void;
|
|
6
|
+
error?: string | null;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}>): React.ReactElement | null;
|
|
9
|
+
/** The terms changed while the customer was checking out: a neutral banner above the form. */
|
|
10
|
+
export declare function SiteTermsChangedNotice(props: Readonly<{
|
|
11
|
+
message: string | null;
|
|
12
|
+
className?: string;
|
|
13
|
+
}>): React.ReactElement | null;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { RegistrationAdmission } from '../nodes/event-registration/registrationCompletion';
|
|
2
|
+
import { SITE_TERMS_NOT_TICKED_MESSAGE, siteTermsChangedMessage, type SiteTermsItem, type SiteTermsOperation, type SiteTermsSubmission } from '../../../../../core/src/index';
|
|
3
|
+
import type { BlockSiteTerms, VerifiedSiteTermsAcceptance } from '../../blocks/shared/siteTerms';
|
|
4
|
+
export type SiteTermsAgreementView = Readonly<{
|
|
5
|
+
kind: 'nothing';
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'checkbox';
|
|
8
|
+
terms: Extract<BlockSiteTerms, {
|
|
9
|
+
kind: 'published';
|
|
10
|
+
}>;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'already_agreed';
|
|
14
|
+
terms: Extract<BlockSiteTerms, {
|
|
15
|
+
kind: 'published';
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
/** Submission evidence is derived exclusively from the displayed state. */
|
|
19
|
+
export declare function siteTermsSubmission(view: SiteTermsAgreementView): SiteTermsSubmission;
|
|
20
|
+
export { SITE_TERMS_NOT_TICKED_MESSAGE, siteTermsChangedMessage };
|
|
21
|
+
/** A displayed, unticked box is the only state the customer still has to act on. */
|
|
22
|
+
export declare function siteTermsAgreementOutstanding(view: SiteTermsAgreementView): boolean;
|
|
23
|
+
export type SiteTermsApplicability = Readonly<{
|
|
24
|
+
kind: 'projection';
|
|
25
|
+
operation: SiteTermsOperation;
|
|
26
|
+
items: readonly SiteTermsItem[];
|
|
27
|
+
}> | Readonly<{
|
|
28
|
+
kind: 'server_requirement';
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'purchase';
|
|
31
|
+
}>;
|
|
32
|
+
/** The published projection and the private response are separate inputs. Email is never an input. */
|
|
33
|
+
export declare function decideSiteTermsAgreement(input: Readonly<{
|
|
34
|
+
terms: BlockSiteTerms | undefined;
|
|
35
|
+
acceptance: VerifiedSiteTermsAcceptance | null;
|
|
36
|
+
tickedVersionId: string | null;
|
|
37
|
+
}> & SiteTermsApplicability): SiteTermsAgreementView;
|
|
38
|
+
export type SiteTermsCheckoutContext = Readonly<{
|
|
39
|
+
kind: 'purchase';
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
kind: 'appointment';
|
|
42
|
+
service: Readonly<{
|
|
43
|
+
id: string;
|
|
44
|
+
asksSiteTerms?: boolean;
|
|
45
|
+
}> | null;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
kind: 'event';
|
|
48
|
+
event: Readonly<{
|
|
49
|
+
selectionId: string;
|
|
50
|
+
asksSiteTerms: boolean;
|
|
51
|
+
}> | null;
|
|
52
|
+
admission: RegistrationAdmission;
|
|
53
|
+
}>;
|
|
54
|
+
/** The flow supplies its actual target; this owner derives operation and applicability. */
|
|
55
|
+
export declare function siteTermsCheckoutContext(context: SiteTermsCheckoutContext): SiteTermsApplicability & Readonly<{
|
|
56
|
+
targetKey: string | null;
|
|
57
|
+
}>;
|
|
58
|
+
export type SiteTermsPresentationState = Readonly<{
|
|
59
|
+
terms: Readonly<{
|
|
60
|
+
value: BlockSiteTerms;
|
|
61
|
+
projectionKey: string;
|
|
62
|
+
}> | null;
|
|
63
|
+
requiredTarget: string | null;
|
|
64
|
+
acceptance: VerifiedSiteTermsAcceptance | null;
|
|
65
|
+
identity: string | null;
|
|
66
|
+
tickedVersionId: string | null;
|
|
67
|
+
}>;
|
|
68
|
+
/** Public freshness, private attribution and server requirements have one presentation owner. */
|
|
69
|
+
export declare function decideSiteTermsPresentation(input: Readonly<{
|
|
70
|
+
siteId: string | undefined;
|
|
71
|
+
identity: string | null;
|
|
72
|
+
terms: BlockSiteTerms | undefined;
|
|
73
|
+
context: SiteTermsCheckoutContext;
|
|
74
|
+
state: SiteTermsPresentationState;
|
|
75
|
+
}>): {
|
|
76
|
+
projectionKey: string;
|
|
77
|
+
targetKey: string | null;
|
|
78
|
+
versionId: import("../../../../../core/src/index").SiteTermsVersionId | null;
|
|
79
|
+
view: SiteTermsAgreementView;
|
|
80
|
+
commerceView: SiteTermsAgreementView;
|
|
81
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PaymentMethod } from '../api/types';
|
|
2
|
+
import type { SiteTermsSubmission } from '../../../../../core/src/index';
|
|
3
|
+
import type { BoundBlockApiClient } from '../api/client';
|
|
4
|
+
export type SiteTermsCheckoutExecutor = <TRequest, TResponse>(request: TRequest, effect: (request: TRequest & {
|
|
5
|
+
siteTerms: SiteTermsSubmission;
|
|
6
|
+
}) => Promise<TResponse>, accepted: (response: TResponse) => boolean, surface?: 'primary' | 'commerce') => Promise<TResponse>;
|
|
7
|
+
/** One adapter carries the displayed legal evidence into every new purchase effect. */
|
|
8
|
+
export declare function withSiteTermsCheckoutApi(api: BoundBlockApiClient, execute: SiteTermsCheckoutExecutor): BoundBlockApiClient;
|
|
9
|
+
/**
|
|
10
|
+
* Bundle purchases (a pass or membership bought with the place) agree on the
|
|
11
|
+
* commerce surface; every other event registration on the event's own box.
|
|
12
|
+
* The client check, the rendered box and the submitted evidence all use this.
|
|
13
|
+
*/
|
|
14
|
+
export declare function eventSiteTermsSurface(paymentMethod: PaymentMethod | null | undefined): 'primary' | 'commerce';
|
|
@@ -192,6 +192,8 @@ export declare const GAP_VALUE_MAP: {
|
|
|
192
192
|
type SemanticGapOptions = {
|
|
193
193
|
/** Fallback gap when value is invalid or undefined */
|
|
194
194
|
fallback?: SemanticSpacing;
|
|
195
|
+
/** Arrangement CSS owns spacing when Look slots are active. */
|
|
196
|
+
legacyOnly?: boolean;
|
|
195
197
|
};
|
|
196
198
|
/**
|
|
197
199
|
* Maps semantic gap value to theme-aware gap class.
|
|
@@ -90,9 +90,11 @@ export declare const transformDefinitions: {
|
|
|
90
90
|
readonly 'value.csv': TransformDefinition;
|
|
91
91
|
readonly 'boxStyles.semanticGap': TransformDefinition<{
|
|
92
92
|
fallback?: import("../spacing").SemanticSpacing;
|
|
93
|
+
legacyOnly?: boolean;
|
|
93
94
|
}>;
|
|
94
95
|
readonly 'boxStyles.semanticGapValue': TransformDefinition<{
|
|
95
96
|
fallback?: import("../spacing").SemanticSpacing;
|
|
97
|
+
legacyOnly?: boolean;
|
|
96
98
|
}>;
|
|
97
99
|
};
|
|
98
100
|
export type TransformId = keyof typeof transformDefinitions;
|
|
@@ -118,6 +118,8 @@ export declare const entryLinkSchema: z.ZodObject<{
|
|
|
118
118
|
contentType: z.ZodString;
|
|
119
119
|
identifier: z.ZodString;
|
|
120
120
|
}, z.core.$loose>;
|
|
121
|
+
/** Convert legacy URL strings without inventing page or entry references. */
|
|
122
|
+
export declare function normalizeLinkValue(value: unknown): unknown;
|
|
121
123
|
export declare const linkSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
122
124
|
kind: z.ZodLiteral<"internal">;
|
|
123
125
|
routeId: z.ZodString;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type CalendarFeedEntryStatus = 'confirmed' | 'cancelled';
|
|
2
|
+
export type CalendarFeedEntry = Readonly<{
|
|
3
|
+
uid: string;
|
|
4
|
+
sequence: number;
|
|
5
|
+
title: string;
|
|
6
|
+
startsAt: Date;
|
|
7
|
+
endsAt: Date;
|
|
8
|
+
timezone: string;
|
|
9
|
+
status: CalendarFeedEntryStatus;
|
|
10
|
+
/** Subscription update time; omitted downloads use their generation time. */
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
description?: string;
|
|
13
|
+
location?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type CalendarFeedDocument = Readonly<{
|
|
17
|
+
name?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
timezone: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
entries: readonly CalendarFeedEntry[];
|
|
22
|
+
}>;
|
|
23
|
+
export declare function renderCalendarFeedIcs(feed: CalendarFeedDocument, timezoneGenerator?: (timezone: string) => string | null): string;
|
|
@@ -4,3 +4,5 @@ export type { TimetableInput, TimetableModel, TimetableDay, TimetableCell, Timet
|
|
|
4
4
|
export { buildTimetableModel } from './timetable';
|
|
5
5
|
export type { GroupItemsByDateAccessors } from './group';
|
|
6
6
|
export { groupItemsByDate } from './group';
|
|
7
|
+
export { renderCalendarFeedIcs } from './icsRenderer';
|
|
8
|
+
export type { CalendarFeedEntry, CalendarFeedEntryStatus, CalendarFeedDocument } from './icsRenderer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CheckoutErrorCode = "appointment_not_found" | "appointment_slot_unavailable" | "booking_payment_terms_not_supported" | "checkout_amount_below_minimum" | "sliding_amount_required" | "sliding_amount_invalid" | "sliding_amount_below_min" | "sliding_amount_above_max" | "not_found" | "site_mismatch" | "registration_disabled" | "invalid_payment_method" | "payment_already_completed" | "invalid_payment_status" | "no_event_association" | "payment_not_required" | "customer_not_found" | "stripe_not_configured" | "stripe_commission_not_supported" | "stripe_tax_not_ready" | "stripe_tax_status_unavailable" | "whole_series_pricing_option_not_available" | "product_not_available" | "product_not_eligible" | "insufficient_credits" | "invalid_discount_code" | "unsupported_discount_scope" | "checkout_in_progress" | "stripe_error" | "internal_error";
|
|
1
|
+
export type CheckoutErrorCode = "site_terms_changed" | "site_terms_agreement_missing" | "appointment_not_found" | "appointment_slot_unavailable" | "booking_payment_terms_not_supported" | "checkout_amount_below_minimum" | "sliding_amount_required" | "sliding_amount_invalid" | "sliding_amount_below_min" | "sliding_amount_above_max" | "not_found" | "site_mismatch" | "registration_disabled" | "invalid_payment_method" | "payment_already_completed" | "invalid_payment_status" | "no_event_association" | "payment_not_required" | "customer_not_found" | "stripe_not_configured" | "stripe_commission_not_supported" | "stripe_tax_not_ready" | "stripe_tax_status_unavailable" | "whole_series_pricing_option_not_available" | "product_not_available" | "product_not_eligible" | "insufficient_credits" | "invalid_discount_code" | "unsupported_discount_scope" | "checkout_in_progress" | "stripe_error" | "internal_error";
|
|
@@ -63,6 +63,11 @@ export type AttendeeInfo = Readonly<{
|
|
|
63
63
|
}>;
|
|
64
64
|
export type AttendeeBearingCheckoutItem = EventTicketItem | EventSeriesRegistrationItem;
|
|
65
65
|
export type Checkout = CartCheckout | MembershipCheckout;
|
|
66
|
+
/** Public checkout entry input; pricing carts do not make identity decisions. */
|
|
67
|
+
export type CheckoutRequest<T extends Checkout = Checkout> = T & Readonly<{
|
|
68
|
+
siteTermsIdentity: import('../../../core/src/index').SiteTermsIdentity;
|
|
69
|
+
siteTerms?: import('../../../core/src/index').SiteTermsSubmission;
|
|
70
|
+
}>;
|
|
66
71
|
export type CartCheckout<M extends CheckoutMode = CheckoutMode> = {
|
|
67
72
|
mode: 'one_time';
|
|
68
73
|
siteId: SiteId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ContentEntrySnapshot, type ContentTypeSchema, type ToolbarState } from '../../../content-model/src/index';
|
|
2
|
-
import type { EditorBlockId, MailingListProviderScope } from '../../../core/src/index';
|
|
2
|
+
import type { EditorBlockId, MailingListProviderScope, DisplayContext } from '../../../core/src/index';
|
|
3
3
|
import type { BlockItem, ServerBlockItem } from '../../../editor-blocks/src/block-editor/types';
|
|
4
4
|
import { type ReactNode } from 'react';
|
|
5
5
|
import { type EntryActions } from '../hooks/useEntryActions';
|
|
@@ -49,6 +49,7 @@ export type EntryRecoveryConflictState = Readonly<{
|
|
|
49
49
|
export type { EntryActions };
|
|
50
50
|
export type EntryControllerContextValue = {
|
|
51
51
|
apiClient: EditorApiClient;
|
|
52
|
+
formatSavedTime: (value: string | null) => string | null;
|
|
52
53
|
entry: ContentEntrySnapshot;
|
|
53
54
|
baseline: Record<string, unknown>;
|
|
54
55
|
errorMessage: string | null;
|
|
@@ -73,6 +74,7 @@ type BaseInternalProps = {
|
|
|
73
74
|
type: string;
|
|
74
75
|
schema: ContentTypeSchema;
|
|
75
76
|
entityLabel?: string | null;
|
|
77
|
+
displayContext: DisplayContext;
|
|
76
78
|
initialEntry?: ContentEntrySnapshot | null;
|
|
77
79
|
initialMetadataRevision: string | null;
|
|
78
80
|
/** Autosave mode (default: auto). Manual disables background autosave triggers. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type DisplayContext } from '../../../core/src/index';
|
|
2
|
+
/** Admit stored publication instants; preserve the status-only fallback for invalid values. */
|
|
3
|
+
export declare function formatPublicationDate(value: string, context: DisplayContext): string | null;
|
|
4
|
+
/** Save feedback is an absolute acknowledgement clock, not an elapsed-time counter. */
|
|
5
|
+
export declare function formatSavedTime(value: string | null, context: DisplayContext): string | null;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* checks. It is intentionally lightweight — enough to power scaffold diagnostics
|
|
8
8
|
* and a CLI pre-flight — not a replacement for server-side write validation.
|
|
9
9
|
*/
|
|
10
|
-
import type { ContentTypeSchema } from './schema';
|
|
10
|
+
import type { ContentFieldConfig, ContentTypeSchema } from './schema';
|
|
11
11
|
export type EntryValidationCode = 'missing_required' | 'unfilled_placeholder' | 'wrong_type' | 'invalid_option';
|
|
12
12
|
export interface EntryValidationError {
|
|
13
13
|
/** Dotted path to the offending value (e.g. `hero.cta.link`, `items[0].label`). */
|
|
@@ -21,10 +21,11 @@ export interface EntryValidationResult {
|
|
|
21
21
|
valid: boolean;
|
|
22
22
|
errors: EntryValidationError[];
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
export declare function hasRepeaterVariants(field: ContentFieldConfig): field is ContentFieldConfig & {
|
|
25
|
+
itemTypes: NonNullable<ContentFieldConfig['itemTypes']>;
|
|
26
|
+
};
|
|
27
|
+
export declare function resolveRepeaterVariantFields(field: ContentFieldConfig, item: Record<string, unknown>): ContentFieldConfig[] | null;
|
|
28
|
+
/** Validate all entry fields, returning every error so callers can fix them in one pass. */
|
|
28
29
|
export declare function validateEntryInstance(input: {
|
|
29
30
|
schema: ContentTypeSchema;
|
|
30
31
|
data: Record<string, unknown>;
|
|
@@ -69,6 +69,10 @@ declare const BaseContentFieldSchema: z.ZodObject<{
|
|
|
69
69
|
*/
|
|
70
70
|
type ContentFieldSchemaType = z.infer<typeof BaseContentFieldSchema> & {
|
|
71
71
|
fields?: ContentFieldSchemaType[];
|
|
72
|
+
itemTypes?: Record<string, {
|
|
73
|
+
label?: string;
|
|
74
|
+
fields?: ContentFieldSchemaType[];
|
|
75
|
+
}>;
|
|
72
76
|
schema?: {
|
|
73
77
|
fields?: ContentFieldSchemaType[];
|
|
74
78
|
};
|
|
@@ -101,11 +101,19 @@ export type FieldDefinition = (BaseFieldDefinition & {
|
|
|
101
101
|
};
|
|
102
102
|
}) | (BaseFieldDefinition & {
|
|
103
103
|
type: 'repeater';
|
|
104
|
+
itemLabel: string;
|
|
105
|
+
} & ({
|
|
104
106
|
schema: {
|
|
105
107
|
fields: FieldDefinition[];
|
|
106
108
|
};
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
+
polymorphic?: false;
|
|
110
|
+
} | {
|
|
111
|
+
polymorphic: true;
|
|
112
|
+
itemTypes: Record<string, {
|
|
113
|
+
label: string;
|
|
114
|
+
fields: FieldDefinition[];
|
|
115
|
+
}>;
|
|
116
|
+
}));
|
|
109
117
|
/**
|
|
110
118
|
* Maps a content type schema to form field definitions.
|
|
111
119
|
*
|