@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/README.md
CHANGED
|
@@ -3736,3 +3736,5 @@ import {
|
|
|
3736
3736
|
- `@riverbankcms/sdk/next/middleware` - Next.js middleware/proxy-safe helpers (`handleRouteOutcomeRedirect`)
|
|
3737
3737
|
- `@riverbankcms/sdk/prebuild` - Prebuild cache generation (`generatePrebuildCache`, `PrebuildLoader`)
|
|
3738
3738
|
- `@riverbankcms/sdk/spam-protection` - ALTCHA spam protection (`useSpamProtection`, `getChallengeUrl`, `AltchaWidget`)
|
|
3739
|
+
|
|
3740
|
+
Resolve entry link fields with `resolveLinkHref(link, context)` from `@riverbankcms/sdk/rendering`, using the same route/stage context as block links.
|
package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Hi as __commonJSMin, Qr as SpinnerNode, ei as checkBrowserStripeKey, n as ThemedButton } from "./ThemedButton-Bi0rgijy.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/pure.js
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as
|
|
3
|
-
import { $a as
|
|
4
|
-
import { n as Separator, t as Spinner } from "./spinner-
|
|
5
|
-
import { _ as usePreviewBlockCustomizeSelectionOptional, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { A as resolveButtonStyleSelection, D as buttonStyleSelectionParameterValue, E as buttonStyleHoverPreferenceValue, F as buttonStyleSelectionsEqual, Gr as getSiteFontsStorageUrl, Jn as paletteColorsSchema, Kn as paletteColorEntries, Kr as VARIANT_ROLES, M as updateButtonStyleSelectionChoice, N as buttonStyleSelectionKey, Ur as buildFontPreviewUrl, Wr as generateFontFaceCss, i as ThemedButtonSpecimen, j as updateButtonStyleHoverPreference, k as findButtonStyleRecipe } from "./ThemedButton-Bi0rgijy.mjs";
|
|
3
|
+
import { $a as Popover, $o as isEdited, A as previewHeaderStyle, Aa as defaultFooterPreferences, Ao as Smartphone, C as openRow, Ca as getHeaderLayout, Ct as useUISelector, D as previewCuratedPalette, E as previewButtonStyle, Et as useEntryController, F as syncStyleConfiguratorState, Ga as Select, Go as ChevronRight, Hn as listEntryPageContentSlots, I as toggleRow, Ja as SelectTrigger, Jo as Check, Ka as SelectContent, Ko as ChevronLeft, L as createOptimisticActionRunner, Lo as Monitor, M as restageSelectionChanges, N as setPaletteColors, O as previewFooterLook, Oo as Tablet, P as styleConfiguratorHistoryEntryForPersistedSelection, Pt as LinkedEntryLeaseBanner, Qa as SearchInput, R as resolveStyleConfiguratorInitialSnapshot, Ro as Maximize2, S as markApplySaving, Sa as findFooterLook, So as DropdownMenuTrigger, Sr as ThemeScope, St as ContentFieldsForm, T as planStyleSwitch, Ta as defaultHeaderLogoContext, Un as listPageSurfaceContentSlots, Vn as createManifestValidation, Wn as blocksKeys, X as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, Xa as Callout, Ya as SelectValue, Yo as Button, Z as reportPreviewDesignError, Za as CalloutDescription, Zo as cn, _ as deriveStyleConfiguratorCapabilities, _o as DropdownMenu, _t as resolveFooterLayoutHints, a as selectionSnapshotFromApplySiteStyleSelectionResponse, aa as compileReplacementSiteThemeFromSelections, ao as TabsList, ar as deriveRouteMetadataPresentation, b as markApplyFailed, bo as DropdownMenuLabel, cr as unwrapResponse, ct as resolvePreviewSidebarTab, d as cycleSiteChromeSelectionId, ds as syncStateOf, eo as PopoverContent, es as canWriteLinkedEntry, f as planSiteChromeSelection, fs as valueStatus, g as createStyleConfiguratorState, ga as palettesForSiteStyle, go as Surface, h as cancelPreview, ha as offeredSiteStyles, hn as createStoreBackend, ho as CollapsibleTrigger, ht as FooterComposerPanel, i as buildApplySiteStyleSelectionBody, io as TabsContent, j as resetTypographyToSaved, jo as SlidersHorizontal, k as previewHeaderLayout, ka as replaceSiteStyleCompilationPlan, kt as useAutosaveStatus, lr as useEditorUiStore, m as applyTypographyDraftPatch, ma as getCuratedSiteStyle, mn as FormRenderer, mo as CollapsibleContent, ms as assertNever$1, n as useSiteChromeCustomizeOptional, no as Input, oa as compileUpdatedSiteThemeFromSelections, oo as TabsTrigger, or as resolvePageRouteSlug, p as applyResolvedSelections, pn as ManifestForm, po as Collapsible, pt as usePreviewAuth, qa as SelectItem, qn as getDashboardUrl, qo as ChevronDown, r as StyleSwitchSummary, ro as Tabs, rr as isAdapterReferenceKind, s as usePreviewDesignCoordinator, sr as resolveContentTitle, to as PopoverTrigger, tr as routeLifecycleContext, u as buildSiteChromeSelectionModels, un as BlockEditor, ur as useEditorUiStoreInstance, us as displayedValues, v as dismissWarnings, vo as DropdownMenuContent, w as palettePreviewProjection, wa as getHeaderStyle, wo as X$1, wr as resolveSdkFooterMode, x as markApplySaved, xo as DropdownMenuSeparator, y as isPreviewingChange, yo as DropdownMenuItem, yr as toEditorBlockItem } from "./SiteChromeCustomizeContext-BQ8vvKb-.mjs";
|
|
4
|
+
import { n as Separator, t as Spinner } from "./spinner-KVVZh8jd.mjs";
|
|
5
|
+
import { _ as usePreviewBlockCustomizeSelectionOptional, d as buildPreviewDashboardSetupUrl, f as resolvePreviewDashboardSetupHandoff, g as useBlockCustomizeControls, h as usePreviewSiteFontStorageUrl, m as resolvePreviewSidebarChromeModel, p as resolvePreviewEditorGuidanceModel, u as canInspectSiteStyle, v as PreviewFormProvider, y as previewWidgetOverrides } from "./SdkPreviewModeRuntime-wLkXrWy9.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -585,6 +585,11 @@ const SUBROUTE_KINDS = {
|
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
//#endregion
|
|
588
|
+
//#region ../content-model/src/content-types/entryValidation.ts
|
|
589
|
+
function hasRepeaterVariants(field) {
|
|
590
|
+
return field.itemTypes !== void 0;
|
|
591
|
+
}
|
|
592
|
+
//#endregion
|
|
588
593
|
//#region ../content-model/src/contentManifest.ts
|
|
589
594
|
function assertNever(value) {
|
|
590
595
|
throw new Error(`Unhandled content field mapping decision: ${JSON.stringify(value)}`);
|
|
@@ -627,6 +632,9 @@ const DISPLAY_MEDIA_KINDS = [
|
|
|
627
632
|
"video",
|
|
628
633
|
"audio"
|
|
629
634
|
];
|
|
635
|
+
function mapContentFields(fields, context) {
|
|
636
|
+
return fields.map((field) => toFieldDefinition(field, context)).filter((field) => field !== null);
|
|
637
|
+
}
|
|
630
638
|
function toFieldDefinition(field, context = {}) {
|
|
631
639
|
const label = field.label ?? startCase(field.id);
|
|
632
640
|
const base = {
|
|
@@ -749,18 +757,24 @@ function toFieldDefinition(field, context = {}) {
|
|
|
749
757
|
};
|
|
750
758
|
}
|
|
751
759
|
case "repeater": {
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
return {
|
|
755
|
-
id: field.id,
|
|
756
|
-
label,
|
|
757
|
-
description: field.description ?? void 0,
|
|
758
|
-
required: field.required ?? false,
|
|
760
|
+
const repeater = {
|
|
761
|
+
...base,
|
|
759
762
|
type: "repeater",
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
+
itemLabel: field.itemLabel ?? "Item"
|
|
764
|
+
};
|
|
765
|
+
if (hasRepeaterVariants(field)) return {
|
|
766
|
+
...repeater,
|
|
767
|
+
polymorphic: true,
|
|
768
|
+
itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([typeId, variant]) => [typeId, {
|
|
769
|
+
label: typeof variant.label === "string" ? variant.label : startCase(typeId),
|
|
770
|
+
fields: mapContentFields(variant.fields ?? [], context)
|
|
771
|
+
}]))
|
|
763
772
|
};
|
|
773
|
+
const fields = mapContentFields(field.fields ?? field.schema?.fields ?? [], context);
|
|
774
|
+
return fields.length ? {
|
|
775
|
+
...repeater,
|
|
776
|
+
schema: { fields }
|
|
777
|
+
} : null;
|
|
764
778
|
}
|
|
765
779
|
default: return null;
|
|
766
780
|
}
|
|
@@ -783,12 +797,7 @@ function startCase(value) {
|
|
|
783
797
|
* @returns Array of field definitions for form rendering
|
|
784
798
|
*/
|
|
785
799
|
function mapContentSchemaToFormFields(schema, context = {}) {
|
|
786
|
-
|
|
787
|
-
for (const field of schema.fields ?? []) {
|
|
788
|
-
const definition = toFieldDefinition(field, context);
|
|
789
|
-
if (definition) fields.push(definition);
|
|
790
|
-
}
|
|
791
|
-
return fields;
|
|
800
|
+
return mapContentFields(schema.fields ?? [], context);
|
|
792
801
|
}
|
|
793
802
|
function expandButtonFieldGroup(fieldId, fieldLabel, context = {}) {
|
|
794
803
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Spinner } from "./spinner-
|
|
4
|
-
import { a as PREVIEW_CHROME_PORTAL_CLASS_NAME, b as PREVIEW_CHROME_Z_INDEX, c as resolvePreviewChromeSurface, l as PREVIEW_THEME_COOKIE_NAME, o as PREVIEW_CHROME_THEME_CLASS_NAME, s as applyPreviewChromeSurfaceToElement, x as FixedBottomSurface } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import { Do as TriangleAlert, Dt as useEntryEditorController, Eo as Undo2, Fo as PenLine, G as usePreviewPageDesignEditorState, Ha as Tooltip, Io as Palette, J as previewDesignHistoryDomainForCommand, Lt as EditorWriteSurface, No as Redo2, Ot as classifyHistoryShortcut, Po as Pencil, So as DropdownMenuTrigger, Ua as TooltipContent, Uo as Eye, Wa as TooltipTrigger, Wo as EllipsisVertical, Xo as cva, Y as selectPreviewDesignHistoryDomain, Yo as Button, Zo as cn, _o as DropdownMenu, co as DialogContent, cr as unwrapResponse, do as DialogHeader, fo as DialogTitle, fr as canDiscardDraft, ko as Sparkles, kt as useAutosaveStatus, lo as DialogDescription, lr as useEditorUiStore, n as useSiteChromeCustomizeOptional, pt as usePreviewAuth, q as usePreviewDesignHistoryOrder, qo as ChevronDown, sn as useEditor, so as Dialog, ur as useEditorUiStoreInstance, vo as DropdownMenuContent, yo as DropdownMenuItem, zo as LoaderCircle } from "./SiteChromeCustomizeContext-BQ8vvKb-.mjs";
|
|
3
|
+
import { t as Spinner } from "./spinner-KVVZh8jd.mjs";
|
|
4
|
+
import { a as PREVIEW_CHROME_PORTAL_CLASS_NAME, b as PREVIEW_CHROME_Z_INDEX, c as resolvePreviewChromeSurface, l as PREVIEW_THEME_COOKIE_NAME, o as PREVIEW_CHROME_THEME_CLASS_NAME, s as applyPreviewChromeSurfaceToElement, x as FixedBottomSurface } from "./SdkPreviewModeRuntime-wLkXrWy9.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -99,20 +99,10 @@ function getLifecycleLabel(currentLifecycle) {
|
|
|
99
99
|
if (currentLifecycle === "scheduled") return "Scheduled";
|
|
100
100
|
return "Draft";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
if (!value) return null;
|
|
104
|
-
const date = new Date(value);
|
|
105
|
-
if (Number.isNaN(date.getTime())) return null;
|
|
106
|
-
return date.toLocaleTimeString(void 0, {
|
|
107
|
-
hour: "2-digit",
|
|
108
|
-
minute: "2-digit"
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function EditorStatusBar({ status, lastSavedAt, toolbar, draftSyncState = "baseline", onPublish, publishMenuItems, actionsSlot, toggleSlot, messageOverride, messageVariant = "default", actionButtonSize = "default", hasFailedSaves = false, onRetryFailedSaves, historyControls, secondaryMessage, menuItems, mobileMenuItems }) {
|
|
102
|
+
function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "baseline", onPublish, publishMenuItems, actionsSlot, toggleSlot, messageOverride, messageVariant = "default", actionButtonSize = "default", hasFailedSaves = false, onRetryFailedSaves, historyControls, secondaryMessage, menuItems, mobileMenuItems }) {
|
|
112
103
|
const isSaving = status === "saving";
|
|
113
104
|
const unsavedError = draftSyncState === "failed" || hasFailedSaves || false;
|
|
114
105
|
const generalError = status === "error" && !unsavedError;
|
|
115
|
-
const lastSavedLabel = formatTimestamp(lastSavedAt);
|
|
116
106
|
const hasChanges = !!toolbar?.hasUnpublishedChanges;
|
|
117
107
|
const currentLifecycle = toolbar?.currentStatus ?? null;
|
|
118
108
|
const publishLabel = toolbar?.publishLabel ?? "Publish changes";
|
|
@@ -146,6 +136,8 @@ function EditorStatusBar({ status, lastSavedAt, toolbar, draftSyncState = "basel
|
|
|
146
136
|
unsavedError,
|
|
147
137
|
generalError,
|
|
148
138
|
isSaving,
|
|
139
|
+
messageVariant,
|
|
140
|
+
draftSyncState,
|
|
149
141
|
toolbar?.publishedMessage,
|
|
150
142
|
currentLifecycle,
|
|
151
143
|
hasChanges,
|
|
@@ -372,7 +364,7 @@ function buildChromeMenuItems(input) {
|
|
|
372
364
|
onClick: input.leaveEditMode
|
|
373
365
|
}];
|
|
374
366
|
}
|
|
375
|
-
function EditorChrome({ toolbarOverrides, onPublish, onDiscard, publishMenuItems, actionsSlot, messageOverride, messageVariant = "default", actionButtonSize = "default", showStatusBar = true, showToggle = true, menuItems: menuItemsOverride, mobileMenuItems, status = "idle",
|
|
367
|
+
function EditorChrome({ toolbarOverrides, onPublish, onDiscard, publishMenuItems, actionsSlot, messageOverride, messageVariant = "default", actionButtonSize = "default", showStatusBar = true, showToggle = true, menuItems: menuItemsOverride, mobileMenuItems, status = "idle", lastSavedLabel = null, draftSyncState = "baseline", hasFailedSaves = false, onRetryFailedSaves, historyControls }) {
|
|
376
368
|
const { isEditingMode, toggleEditingMode } = useEditor();
|
|
377
369
|
const toolbar = useMemo(() => resolveChromeToolbar(toolbarOverrides, draftSyncState), [draftSyncState, toolbarOverrides]);
|
|
378
370
|
const menuItems = useMemo(() => menuItemsOverride ?? buildChromeMenuItems({
|
|
@@ -387,7 +379,7 @@ function EditorChrome({ toolbarOverrides, onPublish, onDiscard, publishMenuItems
|
|
|
387
379
|
]);
|
|
388
380
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [showStatusBar && isEditingMode ? /* @__PURE__ */ jsx(EditorStatusBar, {
|
|
389
381
|
status,
|
|
390
|
-
|
|
382
|
+
lastSavedLabel,
|
|
391
383
|
draftSyncState,
|
|
392
384
|
toolbar,
|
|
393
385
|
onPublish,
|
|
@@ -861,7 +853,7 @@ function PreviewEditorUI({ dashboardBaseUrl = null, inMaintenanceMode = false, s
|
|
|
861
853
|
] }),
|
|
862
854
|
mobileMenuItems: previewOpenEditorMobileMenuItems,
|
|
863
855
|
status: combinedAutosave.status,
|
|
864
|
-
lastSavedAt,
|
|
856
|
+
lastSavedLabel: controller.formatSavedTime(lastSavedAt),
|
|
865
857
|
draftSyncState,
|
|
866
858
|
hasFailedSaves: combinedAutosave.hasFailedSaves,
|
|
867
859
|
historyControls: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ei as parseSiteId, En as defaultThemeTokens, Jn as paletteColorsSchema, K as corners, Nr as makeBoundaryId, Sr as assertNever$1, U as parseThemeForPersistence, Ui as __exportAll, Yn as paletteModeSchema, Zt as resolveSurface, ar as indexRenderableMediaAssets, gi as expectParsedBrandedId, ir as renderableMediaAssetSchema$1, mr as asDesignBlockId, mt as isThemeV2NormalEditorRawStyleFieldName, on as textColorStyle, or as resolveManagedMediaReference, rr as buildRenderableMediaAssetIndex, sr as mediaIdentifierSchema$2, vt as stripStaleTransitionStyleGroup, xr as asSiteStyleId, yr as asLayoutVariantKey } from "./ThemedButton-Bi0rgijy.mjs";
|
|
3
3
|
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-AR9eEn7j.mjs";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as canCycleBackgroundOverrideValue, $i as bindingSchema, $n as createRoutingHelpers, $o as isEdited, $t as FileField, Ai as getCurrentResolveImageUrlContext, An as mapOptionValueForSelect, Ar as publicRouteCandidatesSchema, At as createEditorApiClientFactory, B as arrangementBlockControlsFor, Ba as parseCanonicalRuntimeBackground, Bi as formCopyFragment, Bn as createManifestFormAdapter, Bo as Info, Br as systemCustomizeFacetAppliesToLayoutVariant, Bt as SiteOptionPickerField, Ci as plainTextToInlineText, Cn as clientComponentRegistry, Cr as containerResponsiveThemeCss, Ct as useUISelector, Da as resolveItemSurface, Di as resolveImageUrlWithContext, Dn as useSdkConfig, Dr as getBlockDefinition, Dt as useEntryEditorController, Ea as arrangementSlotNames, Ei as getLinkedContentEntryMeta, En as SdkConfigProvider, Er as makeDefaultBlockComponent, Fa as defaultSectionTransitionVariantForFamily, Fi as faqAccordionFragment, Fn as prepareBlockEditorManifest, Fr as visibleHeaderClearancePx, Ft as EditLeaseDiscardedNotice, G as usePreviewPageDesignEditorState, Ga as Select, Gi as ctaRowFragment, Gn as getBlockManifestFromSdkConfig, Go as ChevronRight, Gr as buildThemeRuntime, Gt as loadMailingListAuthoringContext, H as arrangementVisibilityValues, Hi as testimonialsHeadingFragment, Ho as GripVertical, Hr as systemCustomizeFacetDefinitionsForBlock, Ht as OfferingsPreviewGroupOrderField, Ia as sectionTransitionFamilies, Ii as faqHeadingFragment, In as stripTopLevelRoutingUi, Ir as parseStoredVariant, It as EditLeaseModal, Ja as SelectTrigger, Ji as getResponsiveScopeSpec, Jr as getDefaultComponentRegistry, Jt as IconPickerField, K as PreviewDesignHistoryOrderProvider, Ka as SelectContent, Ki as heroCopyFragment, Kn as ApiRequestError, Ko as ChevronLeft, Kr as escapeStyleContent, Kt as MailingListTargetingProvider, La as sectionTransitionFamilyForBoundaryOptionId, Li as blogFeaturedPostFragment, Ln as evaluateVisibility, Lr as compileManifestContentContract, Lt as EditorWriteSurface, Ma as boundaryLayout, Mi as richTextFragment, Mn as FieldFrame, Mo as RotateCcw, Mr as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Mt as useRetentionTicks, Na as composeBoundary, Ni as headingFragment, Nn as useField, Nr as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Nt as VIEWING_PARTICIPATION, Oa as resolveLookSlotSurfaces, Oi as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, On as hasEmptyOption, Or as normalizeBlockContent, Pa as sectionFactsForContent, Pi as cardFragment, Pn as hideThemeV2RawStyleFields, Pr as planSiteOverlayHeaderClearance, Q as backgroundColorTokens, Qi as defineFragment, Qn as API_ENDPOINTS, Qo as baselineRevisionOf, Qr as offeringsListingFor, Qt as ButtonWidgetProvider, Ra as sectionTransitionVariantForBoundaryOptionId, Ri as singleButtonFragment, Rn as getFieldIntent, Rr as validateManifestDraft, Rt as createSiteOptionApiLoader, Si as isInlineTextEmpty, Sn as useApiMediaUploader, Sr as ThemeScope, Ti as coerceLinkedContentEntriesPayload, Tn as BlockApiProvider, To as Upload, Tr as createCustomBlockRegistry, Tt as EntryControllerProvider, U as nextArrangementLookPin, Ui as ctaCopyFragment, Ur as systemCustomizeFacetLabelForValue, Ut as OfferingsPreviewWidgetProvider, V as arrangementOwnedFieldIds, Va as resolveSectionBackground, Vi as testimonialsCarouselFragment, Vo as Image, Vr as systemCustomizeFacetCurrentValue, Vt as SiteOptionWidgetProvider, W as PreviewPageDesignEditorStateProvider, Wi as heroCtaRowFragment, Wn as blocksKeys, Wr as systemCustomizeFacetNextValue, Wt as MailingListTargetingField, Xi as bodyCopyFragment, Xn as SURFACE_IDS, Xr as buildAppointmentServicesView, Xt as EntryPickerWidgetProvider, Ya as SelectValue, Yi as ctaButton, Yn as SURFACE_DOCUMENT_DATA_ATTRIBUTE, Yo as Button, Yr as buildLoadedOfferingsPreviewListing, Yt as EntryPickerField, Zi as runTransforms, Zn as resolveSurfaceDocumentAttributes, Zo as cn, Zr as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Zt as ButtonVariantField, _a as surfaceResolutionContextFromTheme, _i as isObjectRecord, _n as decodePublicProductCategorySelectorQuery, _r as renderedFieldChanges, ai as Text$1, an as RichTextWidgetProvider, ao as TabsList, as as sameMailingListPlacementTargeting, at as planBackgroundTransition, ba as getGradientPreset, bi as coerceInlineTextWithFallback, bn as MediaEditorContextProvider, br as unsafeAsLinkedContentEntryId, bt as PreviewTextEditor, c as PreviewThemeOverlayProvider, ca as readStoredMode, ci as siblingPath, cn as LinkField, co as DialogContent, cr as unwrapResponse, cs as selectedContentVersionId, ct as resolvePreviewSidebarTab, da as resolvePublishedLook, di as publicEventsArraySchema, dn as PaletteProvider, do as DialogHeader, dr as useOptionalEditorUiStoreInstance, dt as registerPreviewRenewalFetcher, ea as arrangementHooksFromContent, ei as parseBlockIconValue, en as MediaField, er as createSnapshotFromPageRecord, et as defaultBackgroundOverrideForMode, fa as componentRuntimeRulesForTheme, fi as bookingConsentCarrierSchema, fn as usePalette, fo as DialogTitle, ft as renewPreviewSession, gi as resolveRouteTarget, gn as MediaEditor, gr as renderSourceFor, gt as renderSiteChromeBlock, hi as resolvePageRouteTarget, hn as createStoreBackend, hr as remoteDraftValues, ia as compileEditorModelRuntime, ii as logger, in as RichTextField, io as TabsContent, ir as parseReferenceKind, is as parseMailingListPlacementTargeting, it as planBackgroundOverride, ja as formatSiteChromeBackgroundTokenLabel, ji as setContextResolveImageUrlContext, jn as unmapValueFromSelect, jo as SlidersHorizontal, jr as projectRecurringSchedule, jt as createPageSurfaceEditorServices, ki as buildResolveImageUrlContext, kn as mapCurrentValueForSelect, kr as offeringsPreviewBlockDefinition, l as usePreviewThemeOverlay, la as resolveEffectiveArrangement, li as defaultTransforms, ln as LinkWidgetProvider, lo as DialogDescription, lr as useEditorUiStore, ls as parseEditLeaseScope, lt as createGuardedPreviewApiClient, ma as getCuratedSiteStyle, mi as resolveEntryRouteTarget, mn as FormRenderer, mr as planLinkedSaveHandoverRetention, ms as assertNever$2, mt as usePreviewToken, n as useSiteChromeCustomizeOptional, na as readBlockComposition, ni as parseGeneratedIconSetId, nn as ReferenceWidgetProvider, nr as BUILT_IN_REFERENCE_KINDS, ns as buildMailingListSignupBlockSourceRef, nt as imagePoolForOverride, o as PreviewDesignCoordinatorProvider, oi as RichText$1, on as EditorProvider, oo as TabsTrigger, os as NO_BLOCK_VERSIONS, ot as rankBackgroundImagePoolItems, pa as designRuntimeRulesForTheme, pi as isRichTextDoc, pr as activeLinkedSaveHandover, ps as unsafeAsEditorBlockId, pt as usePreviewAuth, qa as SelectItem, qi as DEFAULT_THEME_RESPONSIVE_MODE, qr as mergeContentWithBlockStyleOverrides, qt as InlineTextField, ra as applyCompiledRuntimeFieldsToContent, ri as renderInlineText, rn as useRichTextImagePicker, ro as Tabs, rs as parseFooterModuleId, rt as parseBackgroundOverrideFromContent, sa as arrangementManifestFromVariants, si as getAtPath, sn as useEditor, so as Dialog, ss as readEditorBlockVersionsFromPlacement, st as resolveBackgroundCapability, t as SiteChromeCustomizeProvider, ta as blockLookFromContent, ti as parseGeneratedIconAssetId, tn as ReferenceField, ts as canEditorWrite, tt as enabledBackgroundModes, ua as resolveModeArrangement, ui as calendarWindowQuerySchema, uo as DialogFooter, ur as useEditorUiStoreInstance, ut as initPreviewAuth, va as gradientToCss, vi as isRecord$8, vn as DEFAULT_LAUNCH_READINESS_INPUT, vr as resolveRenderedValues, vt as PreviewRichTextEditor, wi as LINKED_CONTENT_ENTRY_META_KEY, wn as ImageResolveContextProvider, wo as X, wr as resolveSdkFooterMode, wt as EditableBlockProvider, xa as deriveSiteStyleBlockPolicy, xi as inlineTextToPlainText, xn as useMediaEditorOptional, xr as isSupportedLoaderEndpoint, xt as PREVIEW_EDITABLE_OUTLINE, ya as GRADIENT_PRESETS, yi as planSiteChromePlacement, yn as deriveLaunchReadiness, yt as PreviewInlineTextEditor, z as arrangementBackgroundControlFor, za as deriveSectionGround, zi as formEmbedFragment, zn as isHeaderField, zr as resolveArrangementKnobs, zt as createSiteOptionWidgetAdapters } from "./SiteChromeCustomizeContext-BQ8vvKb-.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -563,7 +563,7 @@ function pageBlockPosition(index, blockCount) {
|
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region ../blocks/src/pageRendererContracts.ts
|
|
565
565
|
function buildPageRendererRootRuntime(dataContext) {
|
|
566
|
-
const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
|
|
566
|
+
const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
|
|
567
567
|
return {
|
|
568
568
|
siteId,
|
|
569
569
|
demoEmailSuppressed: resolveDemoEmailSuppression(dataContext),
|
|
@@ -577,6 +577,7 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
577
577
|
readAuthority,
|
|
578
578
|
bookingOfferingPresets,
|
|
579
579
|
appointmentServicePathPrefix,
|
|
580
|
+
siteTerms,
|
|
580
581
|
mailingList,
|
|
581
582
|
loaderFailures
|
|
582
583
|
};
|
|
@@ -716,6 +717,19 @@ function shouldDebugCustomBlocks() {
|
|
|
716
717
|
}
|
|
717
718
|
}
|
|
718
719
|
//#endregion
|
|
720
|
+
//#region ../blocks/src/pageRenderAdmission.ts
|
|
721
|
+
function toEditorPresentationPage(page) {
|
|
722
|
+
if (!page) return null;
|
|
723
|
+
return {
|
|
724
|
+
...page,
|
|
725
|
+
blocks: page.blocks.map((block) => ({
|
|
726
|
+
...block,
|
|
727
|
+
publishedPlacement: block.publishedPlacement,
|
|
728
|
+
presentationAdmission: { kind: "editor" }
|
|
729
|
+
}))
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
//#endregion
|
|
719
733
|
//#region ../blocks/src/pageRenderPlan.ts
|
|
720
734
|
/**
|
|
721
735
|
* Decides, once per page render, which blocks can render and what happens to
|
|
@@ -917,6 +931,10 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
917
931
|
...activeContent,
|
|
918
932
|
...effectiveContent,
|
|
919
933
|
...photoContent,
|
|
934
|
+
...arrangementShapeContent(effective.look.id, {
|
|
935
|
+
...activeContent,
|
|
936
|
+
...effectiveContent
|
|
937
|
+
}),
|
|
920
938
|
...arrangementPanelContent(activeContent, effective, mode),
|
|
921
939
|
...arrangementQuoteContent(blockKind, effective, values),
|
|
922
940
|
_effectiveLook: effective,
|
|
@@ -926,10 +944,19 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
926
944
|
}, values, visiblePhotos.photoCount),
|
|
927
945
|
_effectiveKnobs: knobs,
|
|
928
946
|
_lookAudience: audience,
|
|
929
|
-
_lookSlots:
|
|
947
|
+
_lookSlots: arrangementContentSlots(blockKind),
|
|
930
948
|
blockLook: effective.look.id
|
|
931
949
|
};
|
|
932
950
|
}
|
|
951
|
+
/** Widget section hooks use the theme; hero background geometry never travels to list islands. */
|
|
952
|
+
function arrangementContentSlots(blockKind) {
|
|
953
|
+
return Object.fromEntries(arrangementSlotNames.filter((slot) => slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
954
|
+
}
|
|
955
|
+
/** C photo Looks render shape-specific crops without rewriting authored preferences. */
|
|
956
|
+
function arrangementShapeContent(lookId, content) {
|
|
957
|
+
if (lookId !== "intro-photo-beside-text" && lookId !== "media-text-photo-beside-text") return {};
|
|
958
|
+
return content.imageShape === "circle" ? { aspectRatio: "1/1" } : content.imageShape === "arch" ? { aspectRatio: "4/5" } : {};
|
|
959
|
+
}
|
|
933
960
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
934
961
|
if (blockKind !== "block.testimonials") return {};
|
|
935
962
|
const single = effective.look.structure.byMode.default === "single";
|
|
@@ -975,6 +1002,7 @@ function arrangementContentFacts(content) {
|
|
|
975
1002
|
function arrangementPhotoCount(content) {
|
|
976
1003
|
if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord(card) && isObjectRecord(card.media)).length;
|
|
977
1004
|
if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length;
|
|
1005
|
+
if (isObjectRecord(content.media)) return 1;
|
|
978
1006
|
const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
|
|
979
1007
|
return isObjectRecord((isObjectRecord(section.background) ? section.background : {}).image) ? 1 : 0;
|
|
980
1008
|
}
|
|
@@ -1000,7 +1028,7 @@ function applyArrangementRhythm(entry, position) {
|
|
|
1000
1028
|
if (!runtime || !look) return entry;
|
|
1001
1029
|
const rhythm = runtime.rhythm.length === 0 ? null : runtime.rhythm[position % runtime.rhythm.length];
|
|
1002
1030
|
const content = entry.renderableContent;
|
|
1003
|
-
const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), null, rhythm, entry
|
|
1031
|
+
const resolved = resolveSectionBackground(parseCanonicalRuntimeBackground(content), null, rhythm, heroPhotoGround(entry));
|
|
1004
1032
|
const updated = applyResolvedArrangementBackground(content, resolved);
|
|
1005
1033
|
const surface = arrangementGroundToken(resolved);
|
|
1006
1034
|
const grounded = resolveArrangementRoleSurfaces(look, runtime, resolved);
|
|
@@ -1120,31 +1148,36 @@ function resolveArrangementRoleSurfaces(look, runtime, background) {
|
|
|
1120
1148
|
itemSurfaces: resolveLookSlotSurfaces(look.look, look.itemRoles, roleSurfaces)
|
|
1121
1149
|
};
|
|
1122
1150
|
}
|
|
1151
|
+
/** The arrangement key is resolved once by planBlock, including pinned Looks. */
|
|
1152
|
+
function heroPhotoGround(entry) {
|
|
1153
|
+
return entry.kind === "renderable" && entry.block.kind === "block.hero" ? { paintsGround: entry.effectiveArrangementKey === "classic" } : void 0;
|
|
1154
|
+
}
|
|
1123
1155
|
//#endregion
|
|
1124
1156
|
//#region ../blocks/src/system/blocks/offerings-preview/photoCount.ts
|
|
1125
|
-
/** Count the
|
|
1126
|
-
function offeringsPreviewPhotoCount(
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
return
|
|
1157
|
+
/** Count the selected cards, without loading or selecting again. */
|
|
1158
|
+
function offeringsPreviewPhotoCount(listing) {
|
|
1159
|
+
switch (listing.kind) {
|
|
1160
|
+
case "no-groups":
|
|
1161
|
+
case "nothing-to-show": return 0;
|
|
1162
|
+
case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
|
|
1163
|
+
case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
|
|
1164
|
+
default: return assertNever$2(listing);
|
|
1133
1165
|
}
|
|
1134
|
-
return buildOfferingsPreviewRenderStates({
|
|
1135
|
-
groups: resolveOfferingsPreviewGroups({
|
|
1136
|
-
presets: input.presets,
|
|
1137
|
-
groupOrder: input.groupOrder,
|
|
1138
|
-
overrides: input.groupOverrides
|
|
1139
|
-
}),
|
|
1140
|
-
itemsBySourceKey: buildItemDataMap(input),
|
|
1141
|
-
itemLimit: normalizeOfferingsPreviewItemLimit(input.itemLimit),
|
|
1142
|
-
emptyMessage: "",
|
|
1143
|
-
failedMessage: ""
|
|
1144
|
-
}).flatMap((state) => state.kind === "items" ? state.items : []).filter((item) => hasPhoto(item.kind === "event" ? item.event : item.run.representative)).length;
|
|
1145
1166
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1167
|
+
function groupPhotoCount(load) {
|
|
1168
|
+
switch (load.kind) {
|
|
1169
|
+
case "empty":
|
|
1170
|
+
case "failed": return 0;
|
|
1171
|
+
case "items": return load.items.filter(hasPhoto).length;
|
|
1172
|
+
default: return assertNever$2(load);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
function hasPhoto(item) {
|
|
1176
|
+
switch (item.kind) {
|
|
1177
|
+
case "event": return Boolean(item.event.presentation?.image);
|
|
1178
|
+
case "run": return Boolean(item.run.representative.presentation?.image);
|
|
1179
|
+
default: return assertNever$2(item);
|
|
1180
|
+
}
|
|
1148
1181
|
}
|
|
1149
1182
|
//#endregion
|
|
1150
1183
|
//#region ../blocks/src/system/manifest/hydrateLinks.ts
|
|
@@ -1331,10 +1364,7 @@ function preparePageRender(input) {
|
|
|
1331
1364
|
for (const entry of input.plan.entries) {
|
|
1332
1365
|
const prepared = prepareEntry(entry, input);
|
|
1333
1366
|
if (prepared.kind === "render-threw") constructionFailures.push(entry);
|
|
1334
|
-
entries.push(
|
|
1335
|
-
entry,
|
|
1336
|
-
prepared
|
|
1337
|
-
});
|
|
1367
|
+
entries.push(preparedPlanEntry(entry, prepared));
|
|
1338
1368
|
}
|
|
1339
1369
|
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw");
|
|
1340
1370
|
return {
|
|
@@ -1499,13 +1529,25 @@ function arrangementResolvedContent(kind, content, data, context) {
|
|
|
1499
1529
|
if (content._effectiveLook === void 0 || !data || kind !== "block.offerings-preview" && kind !== "block.appointment-services") return content;
|
|
1500
1530
|
if (kind === "block.appointment-services") return appointmentArrangementContent(content, data, context);
|
|
1501
1531
|
const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
|
|
1502
|
-
|
|
1532
|
+
const now = /* @__PURE__ */ new Date();
|
|
1533
|
+
const listing = buildLoadedOfferingsPreviewListing({
|
|
1534
|
+
now,
|
|
1535
|
+
listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
|
|
1536
|
+
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
1503
1537
|
...normalized,
|
|
1504
1538
|
presets: context?.bookingOfferingPresets,
|
|
1505
1539
|
catalogueEvents: readPublicEvents(data.catalogueEvents),
|
|
1506
1540
|
wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
|
|
1507
1541
|
...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
|
|
1508
|
-
})
|
|
1542
|
+
});
|
|
1543
|
+
return withCardListPhotoCount({
|
|
1544
|
+
...content,
|
|
1545
|
+
_offeringsPreviewInput: {
|
|
1546
|
+
kind: "prepared",
|
|
1547
|
+
listing,
|
|
1548
|
+
now
|
|
1549
|
+
}
|
|
1550
|
+
}, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing));
|
|
1509
1551
|
}
|
|
1510
1552
|
function readPublicEvents(value) {
|
|
1511
1553
|
const parsed = publicEventsArraySchema.safeParse(value);
|
|
@@ -1513,6 +1555,7 @@ function readPublicEvents(value) {
|
|
|
1513
1555
|
}
|
|
1514
1556
|
function appointmentArrangementContent(content, data, context) {
|
|
1515
1557
|
const view = buildAppointmentServicesView({
|
|
1558
|
+
arrangement: cardListArrangementForContent(content),
|
|
1516
1559
|
services: data.services,
|
|
1517
1560
|
categoryId: content.categoryId,
|
|
1518
1561
|
pathname: context?.pathname,
|
|
@@ -1536,6 +1579,30 @@ function withCardListPhotoCount(content, photoCount) {
|
|
|
1536
1579
|
}
|
|
1537
1580
|
};
|
|
1538
1581
|
}
|
|
1582
|
+
function cardListArrangementForContent(content) {
|
|
1583
|
+
const hooks = content._lookHooks;
|
|
1584
|
+
if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
|
|
1585
|
+
const arrangement = hooks["data-arrangement"];
|
|
1586
|
+
switch (arrangement) {
|
|
1587
|
+
case "cards":
|
|
1588
|
+
case "lead-support":
|
|
1589
|
+
case "index":
|
|
1590
|
+
case "sequence":
|
|
1591
|
+
case "plates":
|
|
1592
|
+
case "slides":
|
|
1593
|
+
case "track": return arrangement;
|
|
1594
|
+
default: return;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
function preparedPlanEntry(entry, prepared) {
|
|
1598
|
+
return {
|
|
1599
|
+
entry: entry.kind === "renderable" && prepared.kind === "content" ? {
|
|
1600
|
+
...entry,
|
|
1601
|
+
renderableContent: prepared.baseProps.content
|
|
1602
|
+
} : entry,
|
|
1603
|
+
prepared
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1539
1606
|
//#endregion
|
|
1540
1607
|
//#region ../blocks/src/BlockErrorBoundary.tsx
|
|
1541
1608
|
/**
|
|
@@ -1594,19 +1661,6 @@ function createBlockErrorBoundary() {
|
|
|
1594
1661
|
}
|
|
1595
1662
|
const BlockErrorBoundary = createBlockErrorBoundary();
|
|
1596
1663
|
//#endregion
|
|
1597
|
-
//#region ../blocks/src/pageRenderAdmission.ts
|
|
1598
|
-
function toEditorPresentationPage(page) {
|
|
1599
|
-
if (!page) return null;
|
|
1600
|
-
return {
|
|
1601
|
-
...page,
|
|
1602
|
-
blocks: page.blocks.map((block) => ({
|
|
1603
|
-
...block,
|
|
1604
|
-
publishedPlacement: block.publishedPlacement,
|
|
1605
|
-
presentationAdmission: { kind: "editor" }
|
|
1606
|
-
}))
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
//#endregion
|
|
1610
1664
|
//#region ../blocks/src/PageRenderer.tsx
|
|
1611
1665
|
function EditorPageRenderer(props) {
|
|
1612
1666
|
const page = React$1.useMemo(() => toEditorPresentationPage(props.page), [props.page]);
|
|
@@ -5261,8 +5315,8 @@ function usePreviewBlockCustomizeSelectionOptional() {
|
|
|
5261
5315
|
//#endregion
|
|
5262
5316
|
//#region ../preview-next/src/client/blocks/previewCustomizeControlPlan.ts
|
|
5263
5317
|
const ABSOLUTE_MAX_QUICK_FIELDS = 3;
|
|
5264
|
-
function createPreviewCustomizeControlPlan({ fields, content, quickFieldPriority = [], maxQuickFields = ABSOLUTE_MAX_QUICK_FIELDS }) {
|
|
5265
|
-
const valueReader = createVisibilityValueReader(content);
|
|
5318
|
+
function createPreviewCustomizeControlPlan({ fields, content, visibilityValues = null, quickFieldPriority = [], maxQuickFields = ABSOLUTE_MAX_QUICK_FIELDS }) {
|
|
5319
|
+
const valueReader = createVisibilityValueReader(content, visibilityValues);
|
|
5266
5320
|
const quickPriorityIndex = new Map(quickFieldPriority.map((fieldId, index) => [fieldId, index]));
|
|
5267
5321
|
const maxQuick = Math.max(0, Math.min(ABSOLUTE_MAX_QUICK_FIELDS, maxQuickFields));
|
|
5268
5322
|
const visibleControls = [];
|
|
@@ -5299,7 +5353,7 @@ function createPreviewCustomizeControlPlan({ fields, content, quickFieldPriority
|
|
|
5299
5353
|
}
|
|
5300
5354
|
visibleControls.push({
|
|
5301
5355
|
kind: "manifest-field",
|
|
5302
|
-
field,
|
|
5356
|
+
field: fieldWithDecidedVisibility(field),
|
|
5303
5357
|
placement: "panel",
|
|
5304
5358
|
intent
|
|
5305
5359
|
});
|
|
@@ -5314,8 +5368,17 @@ function createPreviewCustomizeControlPlan({ fields, content, quickFieldPriority
|
|
|
5314
5368
|
hiddenControls
|
|
5315
5369
|
};
|
|
5316
5370
|
}
|
|
5317
|
-
|
|
5318
|
-
|
|
5371
|
+
/** Top-level visibility is already decided; forms must not reread raw values. */
|
|
5372
|
+
function fieldWithDecidedVisibility(field) {
|
|
5373
|
+
if (!field.ui || !("visibleWhen" in field.ui)) return field;
|
|
5374
|
+
const { visibleWhen: _visibleWhen, ...ui } = field.ui;
|
|
5375
|
+
return {
|
|
5376
|
+
...field,
|
|
5377
|
+
ui
|
|
5378
|
+
};
|
|
5379
|
+
}
|
|
5380
|
+
function createVisibilityValueReader(content, appearance) {
|
|
5381
|
+
return { getValue: (path) => appearance && path === "blockLook" ? appearance.lookId : appearance && path === appearance.arrangementField ? appearance.arrangement : getValueAtPath(content, path) };
|
|
5319
5382
|
}
|
|
5320
5383
|
function getValueAtPath(source, path) {
|
|
5321
5384
|
if (!path) return source;
|
|
@@ -5348,7 +5411,9 @@ function useBlockCustomizeControls({ blockId, blockKind, content, uiStore, theme
|
|
|
5348
5411
|
theme
|
|
5349
5412
|
]);
|
|
5350
5413
|
const { state: pageDesignState } = usePreviewPageDesignEditorState();
|
|
5351
|
-
const
|
|
5414
|
+
const designBlock = useMemo(() => pageDesignState.kind === "loaded" ? pageDesignState.editorModel.blocks.find((block) => String(block.blockId) === String(blockId)) ?? null : null, [blockId, pageDesignState]);
|
|
5415
|
+
const ownedFieldIds = useMemo(() => arrangementOwnedFieldIds(designBlock), [designBlock]);
|
|
5416
|
+
const visibilityValues = useMemo(() => arrangementVisibilityValues(designBlock), [designBlock]);
|
|
5352
5417
|
const fields = useMemo(() => {
|
|
5353
5418
|
if (!preparedManifest) return [];
|
|
5354
5419
|
return createManifestFormAdapter(preparedManifest.renderManifest).fields.filter((field) => !ownedFieldIds.includes(field.id));
|
|
@@ -5356,10 +5421,12 @@ function useBlockCustomizeControls({ blockId, blockKind, content, uiStore, theme
|
|
|
5356
5421
|
const preliminaryPlan = useMemo(() => createPreviewCustomizeControlPlan({
|
|
5357
5422
|
fields,
|
|
5358
5423
|
content,
|
|
5424
|
+
visibilityValues,
|
|
5359
5425
|
quickFieldPriority: manifest?.previewCustomize?.quickFieldPriority,
|
|
5360
5426
|
maxQuickFields
|
|
5361
5427
|
}), [
|
|
5362
5428
|
content,
|
|
5429
|
+
visibilityValues,
|
|
5363
5430
|
fields,
|
|
5364
5431
|
manifest?.previewCustomize?.quickFieldPriority,
|
|
5365
5432
|
maxQuickFields
|
|
@@ -5375,6 +5442,7 @@ function useBlockCustomizeControls({ blockId, blockKind, content, uiStore, theme
|
|
|
5375
5442
|
return createPreviewCustomizeControlPlan({
|
|
5376
5443
|
fields,
|
|
5377
5444
|
content,
|
|
5445
|
+
visibilityValues,
|
|
5378
5446
|
quickFieldPriority: manifest?.previewCustomize?.quickFieldPriority,
|
|
5379
5447
|
maxQuickFields: budgetedMaxQuickFields
|
|
5380
5448
|
});
|
|
@@ -5384,7 +5452,8 @@ function useBlockCustomizeControls({ blockId, blockKind, content, uiStore, theme
|
|
|
5384
5452
|
fields,
|
|
5385
5453
|
manifest?.previewCustomize?.quickFieldPriority,
|
|
5386
5454
|
maxQuickFields,
|
|
5387
|
-
preliminaryPlan
|
|
5455
|
+
preliminaryPlan,
|
|
5456
|
+
visibilityValues
|
|
5388
5457
|
]);
|
|
5389
5458
|
const quickFields = useMemo(() => controlPlan.quickControls.map((control) => stripTopLevelRoutingUi(control.field)), [controlPlan.quickControls]);
|
|
5390
5459
|
const panelFields = useMemo(() => controlPlan.panelControls.map((control) => stripTopLevelRoutingUi(control.field)), [controlPlan.panelControls]);
|
|
@@ -6063,7 +6132,7 @@ function previewValues(entryData, pageMetadata) {
|
|
|
6063
6132
|
metadataRevision: revision.metadata
|
|
6064
6133
|
};
|
|
6065
6134
|
}
|
|
6066
|
-
function PreviewEntryControllerProvider({ children, siteId, pageId, pageNodeType = "page", routeId: providedRouteId, entryData, contentTypeSchema, initialStatus = "draft", initialBlocks, blockFieldExtensions, pageMetadata, apiClient, subscribeToLeaseChanges, onLeaseGranted, liveDrafts }) {
|
|
6135
|
+
function PreviewEntryControllerProvider({ children, businessTimeZone, siteId, pageId, pageNodeType = "page", routeId: providedRouteId, entryData, contentTypeSchema, initialStatus = "draft", initialBlocks, blockFieldExtensions, pageMetadata, apiClient, subscribeToLeaseChanges, onLeaseGranted, liveDrafts }) {
|
|
6067
6136
|
const { isEditingMode, requestedEditingMode } = useEditor();
|
|
6068
6137
|
const previewToken = usePreviewToken();
|
|
6069
6138
|
const schema = contentTypeSchema ?? PAGE_CONTENT_TYPE_SCHEMA;
|
|
@@ -6093,8 +6162,13 @@ function PreviewEntryControllerProvider({ children, siteId, pageId, pageNodeType
|
|
|
6093
6162
|
subscribeToLeaseChanges,
|
|
6094
6163
|
onLeaseGranted
|
|
6095
6164
|
});
|
|
6165
|
+
const apiClientFactory = useMemo(() => createEditorApiClientFactory(apiClient), [apiClient]);
|
|
6096
6166
|
const common = {
|
|
6097
|
-
|
|
6167
|
+
displayContext: useMemo(() => ({
|
|
6168
|
+
locale: "en-GB",
|
|
6169
|
+
timeZone: businessTimeZone
|
|
6170
|
+
}), [businessTimeZone]),
|
|
6171
|
+
apiClientFactory,
|
|
6098
6172
|
editLease,
|
|
6099
6173
|
type: entity.type,
|
|
6100
6174
|
siteId,
|
|
@@ -8605,10 +8679,10 @@ function resolveShellThemeRoles(props) {
|
|
|
8605
8679
|
}
|
|
8606
8680
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
8607
8681
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
8608
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
8682
|
+
return { default: (await import("./PreviewEditorSidebar-CbSbqmz3.mjs")).PreviewEditorSidebar };
|
|
8609
8683
|
});
|
|
8610
8684
|
const PreviewEditorUI = React.lazy(async () => {
|
|
8611
|
-
return { default: (await import("./PreviewEditorUI-
|
|
8685
|
+
return { default: (await import("./PreviewEditorUI-CKKnAw11.mjs")).PreviewEditorUI };
|
|
8612
8686
|
});
|
|
8613
8687
|
const previewPaneContainmentStyle = {
|
|
8614
8688
|
contain: "layout paint",
|
|
@@ -9065,6 +9139,7 @@ function PreviewShell(props) {
|
|
|
9065
9139
|
initialEditingAllowed: false,
|
|
9066
9140
|
children: /* @__PURE__ */ jsxs(PreviewEntryControllerProvider, {
|
|
9067
9141
|
blockFieldExtensions: props.sdkConfig?.blockFieldExtensions ?? null,
|
|
9142
|
+
businessTimeZone: props.businessTimeZone,
|
|
9068
9143
|
siteId,
|
|
9069
9144
|
pageId,
|
|
9070
9145
|
pageNodeType: props.pageNodeType,
|
|
@@ -12447,6 +12522,7 @@ function SdkPreviewModeRuntime(props) {
|
|
|
12447
12522
|
customBlocks: customBlocks ?? void 0
|
|
12448
12523
|
});
|
|
12449
12524
|
const shellProps = {
|
|
12525
|
+
businessTimeZone: content.bookingTimeZone,
|
|
12450
12526
|
apiBaseUrl,
|
|
12451
12527
|
blockApiConfig,
|
|
12452
12528
|
siteId,
|