@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
|
@@ -45,8 +45,8 @@ export declare const publicEventLoaderQuerySchema: z.ZodObject<{
|
|
|
45
45
|
readProfile: z.ZodOptional<z.ZodString>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export declare const eventPresetSchema: z.ZodEnum<{
|
|
48
|
-
course: "course";
|
|
49
48
|
event: "event";
|
|
49
|
+
course: "course";
|
|
50
50
|
class: "class";
|
|
51
51
|
term: "term";
|
|
52
52
|
workshop: "workshop";
|
|
@@ -212,8 +212,8 @@ export declare const publicWholeSeriesRunSchema: z.ZodObject<{
|
|
|
212
212
|
*/
|
|
213
213
|
export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
214
214
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
215
|
-
course: "course";
|
|
216
215
|
event: "event";
|
|
216
|
+
course: "course";
|
|
217
217
|
class: "class";
|
|
218
218
|
term: "term";
|
|
219
219
|
workshop: "workshop";
|
|
@@ -530,6 +530,7 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
530
530
|
}>;
|
|
531
531
|
}, z.core.$strip>;
|
|
532
532
|
}, z.core.$strip>;
|
|
533
|
+
asksSiteTerms: z.ZodBoolean;
|
|
533
534
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
534
535
|
requirementId: string;
|
|
535
536
|
title: string;
|
|
@@ -553,8 +554,8 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
553
554
|
run: z.ZodOptional<z.ZodUndefined>;
|
|
554
555
|
}, z.core.$strip>, z.ZodObject<{
|
|
555
556
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
556
|
-
course: "course";
|
|
557
557
|
event: "event";
|
|
558
|
+
course: "course";
|
|
558
559
|
class: "class";
|
|
559
560
|
term: "term";
|
|
560
561
|
workshop: "workshop";
|
|
@@ -871,6 +872,7 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
871
872
|
}>;
|
|
872
873
|
}, z.core.$strip>;
|
|
873
874
|
}, z.core.$strip>;
|
|
875
|
+
asksSiteTerms: z.ZodBoolean;
|
|
874
876
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
875
877
|
requirementId: string;
|
|
876
878
|
title: string;
|
|
@@ -919,8 +921,8 @@ export declare const publicEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
919
921
|
*/
|
|
920
922
|
export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
921
923
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
922
|
-
course: "course";
|
|
923
924
|
event: "event";
|
|
925
|
+
course: "course";
|
|
924
926
|
class: "class";
|
|
925
927
|
term: "term";
|
|
926
928
|
workshop: "workshop";
|
|
@@ -1237,6 +1239,7 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1237
1239
|
}>;
|
|
1238
1240
|
}, z.core.$strip>;
|
|
1239
1241
|
}, z.core.$strip>;
|
|
1242
|
+
asksSiteTerms: z.ZodBoolean;
|
|
1240
1243
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1241
1244
|
requirementId: string;
|
|
1242
1245
|
title: string;
|
|
@@ -1260,8 +1263,8 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1260
1263
|
run: z.ZodOptional<z.ZodUndefined>;
|
|
1261
1264
|
}, z.core.$strip>, z.ZodObject<{
|
|
1262
1265
|
eventPreset: z.ZodOptional<z.ZodEnum<{
|
|
1263
|
-
course: "course";
|
|
1264
1266
|
event: "event";
|
|
1267
|
+
course: "course";
|
|
1265
1268
|
class: "class";
|
|
1266
1269
|
term: "term";
|
|
1267
1270
|
workshop: "workshop";
|
|
@@ -1578,6 +1581,7 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodUnion<readonly [z.
|
|
|
1578
1581
|
}>;
|
|
1579
1582
|
}, z.core.$strip>;
|
|
1580
1583
|
}, z.core.$strip>;
|
|
1584
|
+
asksSiteTerms: z.ZodBoolean;
|
|
1581
1585
|
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1582
1586
|
requirementId: string;
|
|
1583
1587
|
title: string;
|
|
@@ -109,6 +109,7 @@ export type PublicWholeSeriesRun = Readonly<{
|
|
|
109
109
|
* Used by Event Spotlight, Event Calendar, and Event Listing blocks
|
|
110
110
|
*/
|
|
111
111
|
export type PublicEventBase = {
|
|
112
|
+
asksSiteTerms: boolean;
|
|
112
113
|
/** Canonical event-series preset when this is an event occurrence. */
|
|
113
114
|
eventPreset?: 'event' | EventSurfacePreset;
|
|
114
115
|
/** Resolved destination mode for the event series. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PublicEvent } from '../events/shared/types';
|
|
2
|
-
import { type BookingOfferingPresetSummary, type ResolvedOfferingsPreviewGroup } from './model';
|
|
2
|
+
import { type OfferingsPreviewListing, type OfferingsListingMode, type BookingOfferingPresetSummary, type ResolvedOfferingsPreviewGroup } from './model';
|
|
3
3
|
export type OfferingsCatalogueState = Readonly<{
|
|
4
4
|
kind: 'failed';
|
|
5
5
|
}> | Readonly<{
|
|
@@ -16,3 +16,9 @@ export declare function buildOfferingsCatalogueState(input: Readonly<{
|
|
|
16
16
|
presets: readonly BookingOfferingPresetSummary[] | null | undefined;
|
|
17
17
|
events: readonly PublicEvent[] | null | undefined;
|
|
18
18
|
}>): OfferingsCatalogueState;
|
|
19
|
+
export declare function buildOfferingsCatalogueListing(input: Readonly<{
|
|
20
|
+
presets: readonly BookingOfferingPresetSummary[] | null | undefined;
|
|
21
|
+
events: readonly PublicEvent[] | null | undefined;
|
|
22
|
+
listingMode: OfferingsListingMode;
|
|
23
|
+
now: Date;
|
|
24
|
+
}>): OfferingsPreviewListing;
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { type CardListKnobContent, type CardListSectionActionContent } from '../../fields/cardList';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import type { SystemBlockDefinition } from '../../registry';
|
|
3
4
|
import type { BlockManifest } from '../../manifest';
|
|
4
5
|
import { type CardStylesContent, type SectionStylesContent } from '../../fields/boxStyles';
|
|
5
6
|
import type { ButtonVariant } from '../events/shared/types';
|
|
6
7
|
import { type OfferingsPreviewGroupOverride, type OfferingsPreviewSourceKey } from './model';
|
|
8
|
+
export declare const publicRouteCandidatesSchema: z.ZodObject<{
|
|
9
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
10
|
+
entityId: z.ZodString;
|
|
11
|
+
path: z.ZodString;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
kind: z.ZodEnum<{
|
|
14
|
+
content: "content";
|
|
15
|
+
page: "page";
|
|
16
|
+
pageSurface: "pageSurface";
|
|
17
|
+
}>;
|
|
18
|
+
contentTypeKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
7
21
|
export declare const offeringsPreviewManifest: BlockManifest;
|
|
8
22
|
export type OfferingsPreviewContent = CardListKnobContent & CardListSectionActionContent & {
|
|
9
23
|
/** Internal system composition capability; no customer/editor control. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BookingOfferingPresetSummary, type OfferingsPreviewGroupOrder, type OfferingsPreviewGroupOverride, type OfferingsPreviewListing, type OfferingsListingMode } from './model';
|
|
1
2
|
import type { PublicEvent } from '../events/shared/types';
|
|
2
3
|
import { type OfferingsPreviewEventDataKey, type OfferingsPreviewSourceKey, type OfferingsPreviewGroupItemData, type OfferingsPreviewRouteCandidate } from './model';
|
|
3
4
|
export type OfferingsPreviewEventInput = Partial<Record<OfferingsPreviewEventDataKey, readonly PublicEvent[] | null>> & Readonly<{
|
|
@@ -7,3 +8,14 @@ export type OfferingsPreviewEventInput = Partial<Record<OfferingsPreviewEventDat
|
|
|
7
8
|
}> | null;
|
|
8
9
|
}>;
|
|
9
10
|
export declare function buildItemDataMap(props: OfferingsPreviewEventInput): ReadonlyMap<OfferingsPreviewSourceKey, OfferingsPreviewGroupItemData>;
|
|
11
|
+
/** Resolve loader inputs once; the listing then travels to rendering and photo counting. */
|
|
12
|
+
export declare function buildLoadedOfferingsPreviewListing(input: OfferingsPreviewEventInput & Readonly<{
|
|
13
|
+
now: Date;
|
|
14
|
+
listingMode: OfferingsListingMode;
|
|
15
|
+
displayMode?: unknown;
|
|
16
|
+
presets?: readonly BookingOfferingPresetSummary[] | null;
|
|
17
|
+
groupOrder?: OfferingsPreviewGroupOrder | null;
|
|
18
|
+
groupOverrides?: readonly OfferingsPreviewGroupOverride[] | null;
|
|
19
|
+
itemLimit?: string | null;
|
|
20
|
+
catalogueEvents?: readonly PublicEvent[] | null;
|
|
21
|
+
}>): OfferingsPreviewListing;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { CardListArrangement } from '../../runtime/nodes/events/shared/CardListItem';
|
|
2
|
+
import { type NonEmptyReadonlyArray } from '../../../../../theme-core/src/site-styles/index';
|
|
1
3
|
import type { ResolvedInternalLinkEntityType } from '../../types/link';
|
|
2
4
|
import type { PublicEventRunGroup } from '../events/shared/runGrouping';
|
|
3
5
|
import type { PublicEvent, PublicWholeSeriesRun } from '../events/shared/types';
|
|
@@ -87,6 +89,7 @@ export type OfferingsPreviewGroupOrder = readonly OfferingsPreviewSourceKey[];
|
|
|
87
89
|
export type ResolvedOfferingsPreviewGroup = Readonly<{
|
|
88
90
|
sourceKey: OfferingsPreviewSourceKey;
|
|
89
91
|
source: OfferingsPreviewSource;
|
|
92
|
+
singularLabel: string;
|
|
90
93
|
title: string;
|
|
91
94
|
intro: string | null;
|
|
92
95
|
hidden: boolean;
|
|
@@ -113,15 +116,54 @@ export type OfferingsPreviewGroupItemData = Readonly<{
|
|
|
113
116
|
reason: 'not_loaded';
|
|
114
117
|
}>;
|
|
115
118
|
export type OfferingsPreviewGroupEventData = OfferingsPreviewGroupItemData;
|
|
116
|
-
export type
|
|
119
|
+
export type GroupLoad = Readonly<{
|
|
117
120
|
kind: 'items';
|
|
118
121
|
group: ResolvedOfferingsPreviewGroup;
|
|
119
|
-
items:
|
|
122
|
+
items: NonEmptyReadonlyArray<OfferingsPreviewItem>;
|
|
120
123
|
} | {
|
|
121
124
|
kind: 'empty';
|
|
122
125
|
group: ResolvedOfferingsPreviewGroup;
|
|
123
|
-
|
|
126
|
+
} | {
|
|
127
|
+
kind: 'failed';
|
|
128
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
129
|
+
}>;
|
|
130
|
+
export type DatedOfferingItem = Readonly<{
|
|
131
|
+
item: SelectedOfferingItem;
|
|
132
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
133
|
+
}>;
|
|
134
|
+
export type OfferingsPreviewListing = Readonly<{
|
|
135
|
+
kind: 'no-groups';
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'by-type';
|
|
138
|
+
groups: NonEmptyReadonlyArray<SelectedGroupLoad>;
|
|
139
|
+
} | {
|
|
140
|
+
kind: 'by-date';
|
|
141
|
+
items: NonEmptyReadonlyArray<DatedOfferingItem>;
|
|
142
|
+
} | {
|
|
143
|
+
kind: 'nothing-to-show';
|
|
144
|
+
reason: 'empty' | 'failed';
|
|
145
|
+
}>;
|
|
146
|
+
/** The arrangement alone owns merging; there is no additional authored setting. */
|
|
147
|
+
export type SelectedOfferingItem = OfferingsPreviewItem & Readonly<{
|
|
148
|
+
nextStartMs: number | null;
|
|
149
|
+
}>;
|
|
150
|
+
export type SelectedGroupLoad = Exclude<GroupLoad, {
|
|
151
|
+
kind: 'items';
|
|
152
|
+
}> | Readonly<{
|
|
153
|
+
kind: 'items';
|
|
154
|
+
group: ResolvedOfferingsPreviewGroup;
|
|
155
|
+
items: NonEmptyReadonlyArray<SelectedOfferingItem>;
|
|
156
|
+
}>;
|
|
157
|
+
export type OfferingsRenderInput = Readonly<{
|
|
158
|
+
kind: 'prepared';
|
|
159
|
+
listing: OfferingsPreviewListing;
|
|
160
|
+
now: Date;
|
|
161
|
+
}> | Readonly<{
|
|
162
|
+
kind: 'unprepared';
|
|
163
|
+
now: Date;
|
|
124
164
|
}>;
|
|
165
|
+
export type OfferingsListingMode = 'by-type' | 'by-date';
|
|
166
|
+
export declare function offeringsListingFor(arrangement: CardListArrangement | 'legacy'): OfferingsListingMode;
|
|
125
167
|
export declare function isOfferingsPreviewSourceKey(value: unknown): value is OfferingsPreviewSourceKey;
|
|
126
168
|
export declare function sourceKeyForEventPreset(preset: OfferingsPreviewEventPreset): OfferingsPreviewSourceKey;
|
|
127
169
|
export declare function sourceKeyForOfferingPreviewSource(source: OfferingsPreviewSource): OfferingsPreviewSourceKey;
|
|
@@ -164,9 +206,17 @@ export declare function buildOfferingsPreviewRenderStates(input: Readonly<{
|
|
|
164
206
|
groups: readonly ResolvedOfferingsPreviewGroup[];
|
|
165
207
|
itemsBySourceKey: ReadonlyMap<OfferingsPreviewSourceKey, OfferingsPreviewGroupItemData>;
|
|
166
208
|
itemLimit: number;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
209
|
+
}>): readonly GroupLoad[];
|
|
210
|
+
/** One selected listing for preview, catalogue and render preparation. */
|
|
211
|
+
export declare function buildOfferingsPreviewListing(input: Readonly<{
|
|
212
|
+
groups: readonly ResolvedOfferingsPreviewGroup[];
|
|
213
|
+
loads: ReadonlyMap<OfferingsPreviewSourceKey, OfferingsPreviewGroupItemData>;
|
|
214
|
+
itemLimit: number;
|
|
215
|
+
listingMode: OfferingsListingMode;
|
|
216
|
+
now: Date;
|
|
217
|
+
}>): OfferingsPreviewListing;
|
|
218
|
+
export declare function nextOfferingEventStartMs(event: PublicEvent, now: Date): number | null;
|
|
219
|
+
export declare function offeringItemTitle(item: OfferingsPreviewItem): string;
|
|
170
220
|
/** Which offerings a site preset row names; one owner for "the course preset means whole-series runs". */
|
|
171
221
|
export declare function sourceFromPresetSummary(preset: BookingOfferingPresetSummary): OfferingsPreviewSource | null;
|
|
172
222
|
export declare function resolveOfferingsPreviewRunPath(run: Pick<PublicWholeSeriesRun, 'eventSeriesId' | 'eventOfferingId'>, routes: readonly OfferingsPreviewRouteCandidate[] | null | undefined): string | null;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** Count the displayed cards, using the same selection owner as their renderer. */
|
|
5
|
-
export declare function offeringsPreviewPhotoCount(input: OfferingsPreviewEventInput & Readonly<{
|
|
6
|
-
displayMode?: unknown;
|
|
7
|
-
presets: readonly BookingOfferingPresetSummary[] | undefined;
|
|
8
|
-
groupOrder?: OfferingsPreviewGroupOrder | null;
|
|
9
|
-
groupOverrides?: readonly OfferingsPreviewGroupOverride[] | null;
|
|
10
|
-
itemLimit?: string | null;
|
|
11
|
-
catalogueEvents?: readonly PublicEvent[] | null;
|
|
12
|
-
}>): number;
|
|
1
|
+
import type { OfferingsPreviewListing } from './model';
|
|
2
|
+
/** Count the selected cards, without loading or selecting again. */
|
|
3
|
+
export declare function offeringsPreviewPhotoCount(listing: OfferingsPreviewListing): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type SiteTermsVersionRef, type SiteTermsVersionId } from '../../../../../core/src/index';
|
|
3
|
+
/** Public checkout projection. It contains no customer or acceptance data. */
|
|
4
|
+
export type BlockSiteTerms = Readonly<{
|
|
5
|
+
kind: 'none';
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
kind: 'published';
|
|
8
|
+
version: SiteTermsVersionRef;
|
|
9
|
+
businessName: string;
|
|
10
|
+
href: string | null;
|
|
11
|
+
}>;
|
|
12
|
+
export type VerifiedSiteTermsAcceptance = Readonly<{
|
|
13
|
+
versionId: SiteTermsVersionId;
|
|
14
|
+
alreadyAgreed: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const blockSiteTermsSchema: z.ZodType<BlockSiteTerms>;
|
|
17
|
+
export declare const verifiedSiteTermsAcceptanceSchema: z.ZodType<VerifiedSiteTermsAcceptance>;
|
|
@@ -261,6 +261,50 @@ export declare const systemCustomizeFacetDefinitions: readonly [{
|
|
|
261
261
|
}>;
|
|
262
262
|
legacyOnly?: boolean;
|
|
263
263
|
appliesToLayoutVariants?: readonly string[];
|
|
264
|
+
}>, Readonly<{
|
|
265
|
+
blockKind: "block.intro";
|
|
266
|
+
blockKinds?: readonly string[];
|
|
267
|
+
id: "imageShape";
|
|
268
|
+
label: string;
|
|
269
|
+
description?: string;
|
|
270
|
+
values: readonly Readonly<{
|
|
271
|
+
value: string;
|
|
272
|
+
label: string;
|
|
273
|
+
icon?: string;
|
|
274
|
+
}>[];
|
|
275
|
+
defaultValue: string;
|
|
276
|
+
target: CustomizeFacetTarget;
|
|
277
|
+
knob?: Readonly<{
|
|
278
|
+
kind: "fixed";
|
|
279
|
+
ordered: boolean;
|
|
280
|
+
}> | Readonly<{
|
|
281
|
+
kind: "text";
|
|
282
|
+
maxLength: number;
|
|
283
|
+
}>;
|
|
284
|
+
legacyOnly?: boolean;
|
|
285
|
+
appliesToLayoutVariants?: readonly string[];
|
|
286
|
+
}>, Readonly<{
|
|
287
|
+
blockKind: "block.intro";
|
|
288
|
+
blockKinds?: readonly string[];
|
|
289
|
+
id: "imagePosition";
|
|
290
|
+
label: string;
|
|
291
|
+
description?: string;
|
|
292
|
+
values: readonly Readonly<{
|
|
293
|
+
value: string;
|
|
294
|
+
label: string;
|
|
295
|
+
icon?: string;
|
|
296
|
+
}>[];
|
|
297
|
+
defaultValue: string;
|
|
298
|
+
target: CustomizeFacetTarget;
|
|
299
|
+
knob?: Readonly<{
|
|
300
|
+
kind: "fixed";
|
|
301
|
+
ordered: boolean;
|
|
302
|
+
}> | Readonly<{
|
|
303
|
+
kind: "text";
|
|
304
|
+
maxLength: number;
|
|
305
|
+
}>;
|
|
306
|
+
legacyOnly?: boolean;
|
|
307
|
+
appliesToLayoutVariants?: readonly string[];
|
|
264
308
|
}>, Readonly<{
|
|
265
309
|
blockKind: "block.media-text";
|
|
266
310
|
blockKinds?: readonly string[];
|
|
@@ -105,7 +105,8 @@ type ReferenceTextConstraint = Readonly<{
|
|
|
105
105
|
type BlockIconValueConstraint = Readonly<{
|
|
106
106
|
kind: "blockIconValue";
|
|
107
107
|
}>;
|
|
108
|
-
type
|
|
108
|
+
type StringFormatConstraint = EmailFormatConstraint | PhoneFormatConstraint | PatternFormatConstraint | UrlFormatConstraint | DateFormatConstraint | TimeFormatConstraint | DateTimeFormatConstraint | SlugFormatConstraint;
|
|
109
|
+
type StringConstraint = RequiredConstraint | TextTypeConstraint | MaxLengthConstraint | StringFormatConstraint | ReferenceTextConstraint | BlockIconValueConstraint;
|
|
109
110
|
type NumberConstraint = RequiredConstraint | NumberTypeConstraint | NumberMinConstraint | NumberMaxConstraint;
|
|
110
111
|
type SelectConstraint = RequiredConstraint | SelectOptionConstraint;
|
|
111
112
|
type ArrayConstraint = RequiredConstraint | ArrayTypeConstraint | MinItemsConstraint | MaxItemsConstraint;
|
|
@@ -78,7 +78,9 @@ export declare function deriveContentZodFromManifest(manifestOrFields: BlockMani
|
|
|
78
78
|
* Compiles editor-facing manifest structure into the presentation-independent
|
|
79
79
|
* validation contract used by every manifest-content trust transition.
|
|
80
80
|
*/
|
|
81
|
-
export declare function compileManifestContentContract(manifestOrFields: BlockManifest | FieldDefinition[]
|
|
81
|
+
export declare function compileManifestContentContract(manifestOrFields: BlockManifest | FieldDefinition[], options?: Readonly<{
|
|
82
|
+
unknownFields?: 'reject';
|
|
83
|
+
}>): CompiledManifestContentContract;
|
|
82
84
|
export declare function resolveManifestContentFieldDescriptor(contract: CompiledManifestContentContract, path: readonly (string | number)[]): FieldValidationDescriptor | null;
|
|
83
85
|
/**
|
|
84
86
|
* Reports declared media fields carrying environment-specific keys.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { ArrangementSlotName } from '../../../../../theme-core/src/site-styles/index';
|
|
1
2
|
import type { NodeDefinition } from "../schema";
|
|
2
3
|
import type { MediaImageFetchPriority, MediaImageLoading } from "../../runtime/nodes/media";
|
|
3
4
|
/**
|
|
4
5
|
* Options for customizing the appearance of background layers.
|
|
5
6
|
*/
|
|
6
7
|
export type BackgroundLayerOptions = {
|
|
8
|
+
/** Opt-in image hook, resolved only for compiler-admitted Looks. */
|
|
9
|
+
imageSlot?: ArrangementSlotName;
|
|
7
10
|
/**
|
|
8
11
|
* CSS class applied to the color/gradient layer container.
|
|
9
12
|
* This layer renders solid colors and gradients.
|
|
@@ -56,6 +59,8 @@ export type BackgroundLayerOptions = {
|
|
|
56
59
|
imageFetchPriority?: MediaImageFetchPriority;
|
|
57
60
|
};
|
|
58
61
|
export type BackgroundFrameOptions = BackgroundLayerOptions & {
|
|
62
|
+
/** Opt-in frame hook, resolved only for compiler-admitted Looks. */
|
|
63
|
+
frameSlot?: ArrangementSlotName;
|
|
59
64
|
/** Decorative nodes painted below the configured background layers. */
|
|
60
65
|
leadingNodes?: NodeDefinition[];
|
|
61
66
|
};
|
|
@@ -137,6 +142,7 @@ export declare function backgroundFrame(path: string, options?: BackgroundFrameO
|
|
|
137
142
|
* )
|
|
138
143
|
*/
|
|
139
144
|
export declare function createBackgroundImageNode(path: string, baseClassName?: string, options?: {
|
|
145
|
+
slot?: ArrangementSlotName;
|
|
140
146
|
loading?: MediaImageLoading;
|
|
141
147
|
fetchPriority?: MediaImageFetchPriority;
|
|
142
148
|
}): NodeDefinition;
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import { type TransformDefinition } from '../../transforms/registry/core';
|
|
2
|
-
import type
|
|
2
|
+
import { type ArrangementSlotName } from '../../../../../theme-core/src/site-styles/index';
|
|
3
3
|
/** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
|
|
4
|
-
export declare const lookSlot: (name: ArrangementSlotName) => {
|
|
4
|
+
export declare const lookSlot: (name: ArrangementSlotName, source?: "look" | "skin") => {
|
|
5
5
|
readonly 'data-slot': {
|
|
6
6
|
readonly $bind: {
|
|
7
|
-
readonly from: "
|
|
7
|
+
readonly from: "theme.skin";
|
|
8
|
+
readonly transforms: readonly [{
|
|
9
|
+
readonly id: "look.skinSlot";
|
|
10
|
+
readonly options: {
|
|
11
|
+
readonly slot: "day" | "availability" | "month" | "weekday" | "date" | "time" | "layout" | "group" | "contact" | "stack" | "inline" | "heading" | "intro" | "section" | "navigation" | "head" | "social" | "panel" | "base" | "row" | "media" | "caption" | "items" | "item" | "places" | "background" | "eyebrow" | "mark" | "controls" | "icon" | "copy" | "grid" | "facts" | "chips" | "numeral" | "schedule" | "dates" | "action" | "photo" | "outcome" | "sticker" | "list" | "frame" | "schedule-section" | "shop-section" | "headline" | "lede" | "actions" | "gallery" | "fact-label" | "fact-value" | "chip" | "figure" | "figure-value" | "figure-label" | "date-places" | "lead" | "item-media" | "item-body" | "item-title" | "item-text" | "item-actions" | "row-continued" | "group-label" | "group-day" | "group-date" | "date-label" | "price" | "time-start" | "time-length" | "what" | "item-meta" | "places-low" | "places-full" | "panel-heading" | "more" | "quote" | "attribution" | "control" | "counter";
|
|
12
|
+
};
|
|
13
|
+
}];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
readonly 'data-slot': {
|
|
18
|
+
readonly $bind: {
|
|
19
|
+
readonly from: "content._lookSlots.day" | "content._lookSlots.availability" | "content._lookSlots.month" | "content._lookSlots.weekday" | "content._lookSlots.date" | "content._lookSlots.time" | "content._lookSlots.layout" | "content._lookSlots.group" | "content._lookSlots.contact" | "content._lookSlots.stack" | "content._lookSlots.inline" | "content._lookSlots.heading" | "content._lookSlots.intro" | "content._lookSlots.section" | "content._lookSlots.navigation" | "content._lookSlots.head" | "content._lookSlots.social" | "content._lookSlots.panel" | "content._lookSlots.base" | "content._lookSlots.row" | "content._lookSlots.media" | "content._lookSlots.caption" | "content._lookSlots.items" | "content._lookSlots.item" | "content._lookSlots.places" | "content._lookSlots.background" | "content._lookSlots.eyebrow" | "content._lookSlots.mark" | "content._lookSlots.controls" | "content._lookSlots.icon" | "content._lookSlots.copy" | "content._lookSlots.grid" | "content._lookSlots.facts" | "content._lookSlots.chips" | "content._lookSlots.numeral" | "content._lookSlots.schedule" | "content._lookSlots.dates" | "content._lookSlots.action" | "content._lookSlots.photo" | "content._lookSlots.outcome" | "content._lookSlots.sticker" | "content._lookSlots.list" | "content._lookSlots.frame" | "content._lookSlots.schedule-section" | "content._lookSlots.shop-section" | "content._lookSlots.headline" | "content._lookSlots.lede" | "content._lookSlots.actions" | "content._lookSlots.gallery" | "content._lookSlots.fact-label" | "content._lookSlots.fact-value" | "content._lookSlots.chip" | "content._lookSlots.figure" | "content._lookSlots.figure-value" | "content._lookSlots.figure-label" | "content._lookSlots.date-places" | "content._lookSlots.lead" | "content._lookSlots.item-media" | "content._lookSlots.item-body" | "content._lookSlots.item-title" | "content._lookSlots.item-text" | "content._lookSlots.item-actions" | "content._lookSlots.row-continued" | "content._lookSlots.group-label" | "content._lookSlots.group-day" | "content._lookSlots.group-date" | "content._lookSlots.date-label" | "content._lookSlots.price" | "content._lookSlots.time-start" | "content._lookSlots.time-length" | "content._lookSlots.what" | "content._lookSlots.item-meta" | "content._lookSlots.places-low" | "content._lookSlots.places-full" | "content._lookSlots.panel-heading" | "content._lookSlots.more" | "content._lookSlots.quote" | "content._lookSlots.attribution" | "content._lookSlots.control" | "content._lookSlots.counter";
|
|
20
|
+
readonly transforms?: undefined;
|
|
8
21
|
};
|
|
9
22
|
};
|
|
10
23
|
};
|
|
24
|
+
/** Non-Look widgets expose section geometry only when a theme has a skin. */
|
|
25
|
+
export declare const lookSkinSlotTransform: TransformDefinition;
|
|
11
26
|
export declare const lookLeadSlotTransform: TransformDefinition;
|
|
12
27
|
export declare const lookQuoteLimitTransform: TransformDefinition;
|
|
28
|
+
/** Blank headings use the same non-empty region fallback as absent headings. */
|
|
29
|
+
export declare const lookCarouselRegionTransform: TransformDefinition<{
|
|
30
|
+
fallback: string;
|
|
31
|
+
}>;
|
|
@@ -10,6 +10,10 @@ export type StyledSectionConfig = {
|
|
|
10
10
|
* Can be a single node, array of nodes, or empty array.
|
|
11
11
|
*/
|
|
12
12
|
children: NodeDefinition | NodeDefinition[];
|
|
13
|
+
/** Shared widget section hook; absent on themes without a skin. */
|
|
14
|
+
skinSlot?: 'schedule-section' | 'shop-section';
|
|
15
|
+
/** Photo-backed Look layouts can expose the background frame and image. */
|
|
16
|
+
backgroundLookSlots?: true;
|
|
13
17
|
/**
|
|
14
18
|
* Base horizontal padding class (e.g., 'rb-px-6', 'rb-px-8').
|
|
15
19
|
* This provides consistent horizontal constraints across sections.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BlockSiteTerms } from '../../blocks/shared/siteTerms';
|
|
1
2
|
import { type CalendarWindowPage, type CalendarWindowRequest } from '../../blocks/events/shared/calendarWindow';
|
|
2
3
|
import type { BlockApiConfig, ApiFieldError, FormSubmitRequest, FormSubmitResponse, FormConfigResponse, BookingSubmitRequest, BookingPackageSubmitRequest, BookingSubmitResponse, EligibleAppointmentPackagesResponse, AppointmentBookingStatusRequest, AppointmentBookingStatusResponse, AvailableSlotsRequest, AvailableSlotsResponse, WeeklySlotAvailabilityRequest, WeeklySlotAvailabilityResponse, AvailableDatesRequest, AvailableDatesResponse, BookingServicesResponse, BookingServiceResponse, BookingResourcesResponse, PublicEventsRequest, PublicEvent, EventFiltersResponse, EventRegisterRequest, EventRegisterResponse, EventCheckoutRequest, EventCheckoutResponse, RegistrationOptionsRequest, EventRegistrationNextStepRequest, EventRegistrationNextStepResponse, RegistrationOptionsResponse, EventRegistrationStatusRequest, EventRegistrationStatusResponse, EventCheckoutReturnRequest, EventCheckoutReturnResponse, ResolveWaitlistClaimRequest, ResolveWaitlistClaimResponse, DiscountsAvailableRequest, DiscountsAvailableResponse, DiscountApplyRequest, DiscountApplyResponse, PublicProductsResponse, ShopCheckoutRequest, ShopCheckoutResponse, UnifiedCheckoutRequest, UnifiedCheckoutResponse, PublicGiftingOffersResponse, CreateGiftingCheckoutRequest, CreateGiftingCheckoutResponse, ClaimGiftCardRequest, ClaimGiftCardResponse, PortalMeResponse, CustomerProfile, CustomerOrder, PortalMeUpdateRequest, CustomerPass, CustomerMembership, CustomerEventRegistration, PortalEventTicket, CustomerAppointment, BookingQuestionsTaskDetail, CustomerEventSeriesRegistration, PortalCredit, PortalOrderCheckoutRequest, PortalOrderCheckoutResponse, PortalDigitalProductAccessResponse, PortalDigitalProductDownloadUrlResponse, PortalDigitalProductsResponse, PortalCancelWholeSeriesRegistrationRequest, PortalCancelWholeSeriesRegistrationResult, PortalCancelAppointmentRequest, PortalCancelAppointmentResult, PortalUpdateAppointmentBookingQuestionsRequest, PortalUpdateWholeSeriesBookingQuestionsRequest, PortalUpdateEventBookingQuestionsRequest, PortalCancelEventRegistrationRequest, PortalCancelEventRegistrationResult, PortalTransferEventRegistrationRequest, PortalTransferEventRegistrationResult, PortalRescheduleAppointmentRequest, PortalRescheduleAppointmentResponse, PortalCancelMembershipAtPeriodEndResult, MagicLinkRequest, MagicLinkResponse, EventGuest, UpdateEventGuestsRequest, NewsletterSubscribeRequest, NewsletterSubscribeResponse } from './types';
|
|
3
4
|
type WithoutSiteId<T> = T extends unknown ? Omit<T, 'siteId'> : never;
|
|
@@ -27,6 +28,7 @@ export declare class BlockApiError extends Error {
|
|
|
27
28
|
* Block API Client interface
|
|
28
29
|
*/
|
|
29
30
|
export interface BlockApiClient {
|
|
31
|
+
getSiteTerms(): Promise<BlockSiteTerms>;
|
|
30
32
|
readonly config: BlockApiConfig;
|
|
31
33
|
submitForm(data: FormSubmitRequest): Promise<FormSubmitResponse>;
|
|
32
34
|
getForm(formId: string, siteId?: string): Promise<FormConfigResponse>;
|
|
@@ -125,6 +125,7 @@ export interface EventRegisterRequest {
|
|
|
125
125
|
phone?: string;
|
|
126
126
|
notes?: string;
|
|
127
127
|
formData?: Record<string, unknown>;
|
|
128
|
+
siteTerms?: import('../../../../../../core/src/index').SiteTermsSubmission;
|
|
128
129
|
consentAccepted?: boolean;
|
|
129
130
|
mailingListOptIn?: boolean;
|
|
130
131
|
altchaSolution?: string | null;
|
|
@@ -161,6 +162,7 @@ type EventCheckoutRequestCommon = {
|
|
|
161
162
|
discountCode?: string;
|
|
162
163
|
collectionOptionKind?: DirectCheckoutCollectionOptionKind;
|
|
163
164
|
returnUrl: string;
|
|
165
|
+
siteTerms?: import('../../../../../../core/src/index').SiteTermsSubmission;
|
|
164
166
|
};
|
|
165
167
|
export type EventCheckoutRequest = EventCheckoutRequestCommon & ({
|
|
166
168
|
subject: {
|
|
@@ -9,6 +9,7 @@ import type { EventGuest as EventGuestType, EventTicketBreakdownLine } from "../
|
|
|
9
9
|
* Full response from GET /api/portal/me including profile and enabled modules
|
|
10
10
|
*/
|
|
11
11
|
export interface PortalMeResponse {
|
|
12
|
+
siteTermsAcceptance: import('../../../blocks/shared/siteTerms').VerifiedSiteTermsAcceptance | null;
|
|
12
13
|
profile: import("../../../../portal/types").CustomerProfile;
|
|
13
14
|
modules: import("../../../../portal/types").EnabledModules;
|
|
14
15
|
}
|
|
@@ -9,6 +9,7 @@ export interface PublicProductsResponse {
|
|
|
9
9
|
products: PublicProduct[];
|
|
10
10
|
}
|
|
11
11
|
export interface ShopCheckoutRequest {
|
|
12
|
+
siteTerms?: import('../../../../../../core/src/index').SiteTermsSubmission;
|
|
12
13
|
siteId: string;
|
|
13
14
|
productType: 'pass' | 'membership';
|
|
14
15
|
productId: string;
|
|
@@ -64,6 +65,7 @@ export type UnifiedCheckoutItem = {
|
|
|
64
65
|
passId: string;
|
|
65
66
|
};
|
|
66
67
|
export interface UnifiedCheckoutRequest {
|
|
68
|
+
siteTerms?: import('../../../../../../core/src/index').SiteTermsSubmission;
|
|
67
69
|
siteId: string;
|
|
68
70
|
mode: 'one_time';
|
|
69
71
|
items: UnifiedCheckoutItem[];
|
|
@@ -119,6 +121,7 @@ export interface PublicGiftingOffersResponse {
|
|
|
119
121
|
vouchers: PublicVoucherOffer[];
|
|
120
122
|
}
|
|
121
123
|
export interface CreateGiftingCheckoutRequest {
|
|
124
|
+
siteTerms?: import('../../../../../../core/src/index').SiteTermsSubmission;
|
|
122
125
|
siteId: string;
|
|
123
126
|
offerId: string;
|
|
124
127
|
purchaserName?: string | null;
|