@riverbankcms/sdk 0.167.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
- package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-Bj6VJRS5.d.ts} +7 -6
- package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
- package/dist/_dts/{client-CwsI23pj.d.ts → client-C8mfUxrJ.d.ts} +65 -35
- package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
- package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CJFfrVKU.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
- package/dist/_dts/{index-CS6b1B-c.d.ts → index-BQXaZ7aY.d.ts} +4 -4
- package/dist/_dts/{index-5_jf52sZ.d.ts → index-Bpr-wT5k.d.ts} +2 -2
- package/dist/_dts/{index-DeHDwMfu.d.ts → index-C7_Rz8EY.d.ts} +3 -3
- package/dist/_dts/{index-D7EbliE3.d.ts → index-Cx2BQlHL.d.ts} +3 -3
- package/dist/_dts/{index-C20yUyob.d.ts → index-Dgz6yhsy.d.ts} +1 -1
- package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
- package/dist/_dts/{index-bDln38Hm.d.ts → index-vR3p9Bu-.d.ts} +2 -2
- package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-ChpjHK0U.d.ts → request-BrYhNV9Z.d.ts} +80718 -47665
- package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -5
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CwtTcaQP.d.ts → types-BB33-Spd.d.ts} +3 -3
- package/dist/_dts/{types-D-WElMCy.d.ts → types-BVFXYtRg.d.ts} +7 -7
- package/dist/_dts/{types-BlaCuPLr.d.ts → types-FOsJ-KYb.d.ts} +4 -2
- package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-DckTc6TQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
- package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
- package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
- package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-BL943-tl.mjs} +9 -9
- package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-BFVxECTp.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-BIc4gjiD.mjs} +37 -15
- package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
- package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
- package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-Bt2sBBms.mjs} +34 -16
- package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +250 -40
- package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-13JQI7_z.mjs} +1 -1
- package/dist/client/{Page-D4_H_u9V.mjs → Page-D_M2Vxz3.mjs} +4471 -1601
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion--EUHmEGa.mjs → accordion-DE7OG--d.mjs} +1 -1
- package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
- package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
- package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/bookings.mjs +18 -13
- package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DZyUdnFh.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-CCZZC-Lq.mjs → cart-D7HkkNwe.mjs} +3 -3
- package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-H4sv2TpD.mjs} +1 -1
- package/dist/client/{checkout-CipmYL4A.mjs → checkout-2qVyG-Sh.mjs} +3 -3
- package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
- package/dist/client/client.mjs +240 -63
- package/dist/client/{context-Cv3QHjAF.mjs → context-DXmIbXCK.mjs} +297 -3
- package/dist/client/{cta-P2vJVTEn.mjs → cta-DP_IBnq3.mjs} +2 -2
- package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-DheQj7rg.mjs} +3 -3
- package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-C5UufcRp.mjs} +1 -1
- package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-CMGg63IU.mjs} +72 -235
- package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
- package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
- package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
- package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CkiMjl0g.mjs} +4 -4
- package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
- package/dist/client/{form-Bw1uuiUs.mjs → form-DgQqm7T2.mjs} +3 -3
- package/dist/client/{form.client-pZ-9gN33.mjs → form.client-BI9Dcsq5.mjs} +5 -5
- package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-DevF0L_A.mjs} +3 -3
- package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-DDyURjoe.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
- package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
- package/dist/client/{noop-ByVtIWf4.mjs → noop-ByFRHYQ2.mjs} +437 -496
- package/dist/client/portal/client.mjs +76 -229
- package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
- package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
- package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
- package/dist/client/{productList-B21TGdpT.mjs → productList-B8o5AOMX.mjs} +3 -3
- package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-hhotPP6P.mjs} +5 -4
- package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Ch3EpupA.mjs} +2213 -2433
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
- package/dist/client/{shop-mqyoOvOK.mjs → shop-rRXplPGZ.mjs} +3 -3
- package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-DdwvMvaK.mjs} +13 -13
- package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C8OvFY06.mjs} +141 -66
- package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-BeuJiGPU.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-Cko9LRKy.mjs} +11 -11
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
- package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
- package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
- package/dist/client/{view-BN-fxyfq.mjs → view-448wvvEY.mjs} +11 -7
- package/dist/client/{view-Dh2tGoS0.mjs → view-L_mkgtnk.mjs} +4 -4
- package/dist/client/{site-styles-D56hT2u1.mjs → wizardSteps-CFulHWnT.mjs} +19660 -18565
- package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +128 -21
- package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-BOLH_pm-.mjs} +199 -155
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +3780 -3436
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-BBdN5kfY.mjs} +18697 -15557
- package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-C0sCvCYL.mjs} +165 -0
- package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +461 -128
- package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
- package/dist/server/{bindings-ConMYJ2U.mjs → bindings-DLoZYUxG.mjs} +2 -2
- package/dist/server/{client-Cot-H5fQ.mjs → client-Bc8jI8zN.mjs} +261 -61
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-D61gpqHB.mjs} +4 -5
- package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-ByVTA7-4.mjs} +255 -158
- package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
- package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-Dk5Ku6hs.mjs} +1285 -897
- package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1592
- package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -4
- package/dist/server/{registry-BPFcpn6k.mjs → registry-Bh0Y25zH.mjs} +4399 -4065
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
- package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-bl6WcAi_.mjs → validation-D2bHWSxJ.mjs} +57 -8
- package/dist/server/{version-BLXZ31S-.mjs → version-DkM1eAxG.mjs} +1 -1
- package/dist/styles/index.css +340 -68
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
- package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
- package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
- package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-BC0V7iAR.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { G as GripVertical } from "./lucide-react-
|
|
5
|
-
import { $t as
|
|
6
|
-
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-
|
|
7
|
-
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, s as subscribePreviewThemeCookie, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeSurface-
|
|
3
|
+
import { B as renewPreviewSession, Bl as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, E as PreviewRenderObservationsProvider, G as useEntryEditorController, Gl as planSiteOverlayHeaderClearance, Gt as ApiRequestError, H as usePreviewToken, Hl as SITE_STICKY_CHROME_HEIGHT_FALLBACK, Hp as unwrapResponse, Jt as createSnapshotFromPageRecord, Kl as siteTopChromeMeasurementTargets, L as createGuardedPreviewApiClient, Lt as blocksKeys, Mp as observeEditorAdmission, Np as OPERATION_ID_HEADER, Pa as buildResolveImageUrlContext, Pp as API_ENDPOINTS, Qf as assertNever$1, R as initPreviewAuth, T_ as authoredValuesEqual, Tn as unsafeAsLinkedContentEntryId, U as EntryControllerProvider, Ul as measureSiteStickyChromeHeightPx, V as usePreviewAuth, Vl as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, X as useServerRefresh, _m as DialogHeader, _n as remoteDraftValues, a as PreviewPageDesignEditorStateProvider, at as EditLeaseModal, bh as baselineRevisionOf, bn as resolveRenderedValues, c_ as renderableMediaAssetSchema$1, cn as parseStoredSidebarWidth, cu as planSiteChromePlacement, en as useEditorUiStore, et as savedContentReceipt, f as PreviewThemeJournalProvider, fm as Dialog, g as previewThemeBase, gm as DialogFooter, gn as planLinkedSaveHandoverRetention, hm as DialogDescription, hn as activeLinkedSaveHandover, i as usePreviewSidebarNavigation, it as EditLeaseDiscardedNotice, jp as editorAdmissionSession, kp as editorAdmissionNotice, l as SiteChromeCustomizeProvider, l_ as indexRenderableMediaAssets, lt as getEditorClientId, m as usePreviewThemeSourceOptional, mm as DialogContent, mv as unsafeAsEditorBlockId, nm as Callout, nn as useOptionalEditorUiStoreInstance, nt as useRetentionTicks, ot as EditorWriteSurface, p as usePreviewThemeSource, qt as createRoutingHelpers, qv as assertNever$2, r as PreviewSidebarBootstrap, rm as CalloutDescription, rt as VIEWING_PARTICIPATION, rv as parseEditLeaseScope, s_ as buildRenderableMediaAssetIndex, sn as SIDEBAR_WIDTH, t as PreviewAssistantSlotProvider, tn as useEditorUiStoreInstance, tt as savedRouteReceipt, uh as Button, vh as cn, vm as DialogTitle, vn as renderSourceFor, wh as canEditorWrite, xh as isEdited, z as registerPreviewRenewalFetcher } from "./previewAssistantSlot-BBdN5kfY.mjs";
|
|
4
|
+
import { G as GripVertical } from "./lucide-react-DkZ8fO-G.mjs";
|
|
5
|
+
import { $t as TabsList, E as usePreviewCompiledTheme, Gt as DEFAULT_THEME_RESPONSIVE_MODE, I as SessionJournalHost, Kt as getResponsiveScopeSpec, Mt as LINKED_CONTENT_ENTRY_META_KEY, N as mergeResolvedDataContext, Pt as getLinkedContentEntryMeta, Qt as TabsContent, R as renderSiteChromeBlock, T as PreviewThemeRenderingProvider, Ut as escapeStyleContent, V as createEditorApiClientFactory, Vt as themeRuntimeScopeProps, Z as MediaEditorContextProvider, Zt as Tabs, a as PreviewChromeLayerProvider, b as SiteFontStorageProvider, bt as ThemeScopeCore, c as PREVIEW_SITE_BANNER_ATTRIBUTE, en as TabsTrigger, et as useApiMediaUploader, f as canInspectSiteStyle, g as sanitizeDashboardPath, h as resolvePreviewDashboardSetupHandoff, it as ImageResolveContextProvider, m as buildPreviewDashboardSetupUrl, p as resolveSiteStyleAccess, pn as parseFooterModuleId, qt as Toaster, st as BlockApiProvider, t as SiteChromeCustomizeButton, v as resolvePreviewSetupBannerModel, w as PreviewCompiledThemeProvider, xt as containerResponsiveThemeCss, yt as revealEditorElement, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-BeEZpeKn.mjs";
|
|
6
|
+
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-CZQ4vkRe.mjs";
|
|
7
|
+
import { a as resolvePreviewChromeSurface, c as writePreviewThemeCookie, d as EditorProvider, f as useEditor, i as getPreviewChromeSurfaceDataProps, l as PREVIEW_KEEP_ALIVE_INTERVAL_MS, n as PREVIEW_CHROME_THEME_CLASS_NAME, o as readPreviewThemeCookie, p as FixedBottomSurface, s as subscribePreviewThemeCookie, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeSurface-VZtGwPuH.mjs";
|
|
8
8
|
import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -4197,10 +4197,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4199
4199
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4200
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4200
|
+
return { default: (await import("./PreviewEditorSidebar-C0OtdWu_.mjs")).PreviewEditorSidebar };
|
|
4201
4201
|
});
|
|
4202
4202
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4203
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4203
|
+
return { default: (await import("./PreviewEditorUI-Csc5vH5k.mjs")).PreviewEditorUI };
|
|
4204
4204
|
});
|
|
4205
4205
|
function renderShellProviders(input) {
|
|
4206
4206
|
if (!input.themeRoles) return input.content;
|
|
@@ -4260,187 +4260,231 @@ function PreviewThemeUnavailable() {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
function AvailablePreviewShellLayout({ props, themeRoles }) {
|
|
4262
4262
|
const { children, rendering, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, themeSelectionButtonStyleRepairs, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, sdkConfig, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" } } = props;
|
|
4263
|
-
const
|
|
4264
|
-
const
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4263
|
+
const editorScopeKey = entryData?.id ? `entry:${entryData.id}` : `page:${pageId ?? "none"}`;
|
|
4264
|
+
const sidebar = /* @__PURE__ */ jsx(React.Suspense, {
|
|
4265
|
+
fallback: null,
|
|
4266
|
+
children: /* @__PURE__ */ jsx(PreviewEditorSidebar, {
|
|
4267
|
+
surfaceId,
|
|
4268
|
+
siteId,
|
|
4269
|
+
dashboardBaseUrl,
|
|
4270
|
+
pageId,
|
|
4271
|
+
pageNodeType: props.pageNodeType,
|
|
4272
|
+
entryData,
|
|
4273
|
+
contentTypeSchema,
|
|
4274
|
+
referenceContentTypeKeys,
|
|
4275
|
+
draftContent,
|
|
4276
|
+
currentTemplate,
|
|
4277
|
+
theme: themeRoles?.persistenceTheme,
|
|
4278
|
+
apiClient,
|
|
4279
|
+
themeSelectionButtonStyleRepairs,
|
|
4280
|
+
sdkConfig: sdkConfig ?? null,
|
|
4281
|
+
entrySubrouteContext: entrySubrouteContext ?? null,
|
|
4282
|
+
bookingOfferingPresets,
|
|
4283
|
+
siteStyleAccess
|
|
4284
|
+
}, editorScopeKey)
|
|
4285
|
+
});
|
|
4286
|
+
return renderShellProviders({
|
|
4287
|
+
props,
|
|
4288
|
+
themeRoles,
|
|
4289
|
+
content: /* @__PURE__ */ jsx(PreviewShellPanes, {
|
|
4290
|
+
rendering,
|
|
4291
|
+
themeRuntime,
|
|
4292
|
+
surfaceId,
|
|
4293
|
+
editorChrome: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4294
|
+
/* @__PURE__ */ jsx(LinkedEntryEditEventBridge, {}),
|
|
4295
|
+
/* @__PURE__ */ jsx(React.Suspense, {
|
|
4296
|
+
fallback: null,
|
|
4297
|
+
children: /* @__PURE__ */ jsx(PreviewEditorUI, {
|
|
4298
|
+
entryData,
|
|
4299
|
+
dashboardBaseUrl,
|
|
4300
|
+
inMaintenanceMode: maintenanceModeEnabled,
|
|
4301
|
+
siteId,
|
|
4302
|
+
surfaceId,
|
|
4303
|
+
isSiteLaunched,
|
|
4304
|
+
apiClient
|
|
4305
|
+
})
|
|
4306
|
+
}),
|
|
4307
|
+
/* @__PURE__ */ jsx(PreviewAccessBanners, {
|
|
4308
|
+
dashboardBaseUrl,
|
|
4309
|
+
surfaceId,
|
|
4310
|
+
isEntry: Boolean(entryData),
|
|
4311
|
+
pageNodeType: props.pageNodeType
|
|
4312
|
+
})
|
|
4313
|
+
] }),
|
|
4314
|
+
sidebar,
|
|
4315
|
+
children
|
|
4316
|
+
})
|
|
4317
|
+
});
|
|
4318
|
+
}
|
|
4319
|
+
/**
|
|
4320
|
+
* The canvas and the sidebar beside it, with the viewport preferences that size
|
|
4321
|
+
* the canvas. The shell decides what fills the sidebar and the editor chrome.
|
|
4322
|
+
*/
|
|
4323
|
+
function PreviewShellPanes({ children, rendering, themeRuntime, surfaceId, editorChrome, sidebar }) {
|
|
4269
4324
|
const isOpen = usePreviewDrawerOpen();
|
|
4270
4325
|
const { requestedEditingMode, isEditingMode } = useEditor();
|
|
4271
4326
|
usePreviewModeRootAttribute(isEditingMode);
|
|
4272
|
-
const
|
|
4273
|
-
const
|
|
4327
|
+
const layoutNodes = usePreviewLayoutNodes();
|
|
4328
|
+
const viewport = useStoredViewportPreferences();
|
|
4329
|
+
const measured = usePreviewDocumentMeasurements(viewport.mode, viewport.width);
|
|
4330
|
+
const renderedViewport = resolvePreviewViewport({
|
|
4331
|
+
requestedEditingMode,
|
|
4332
|
+
viewportMode: viewport.mode,
|
|
4333
|
+
viewportWidth: viewport.width,
|
|
4334
|
+
zoom: viewport.zoom,
|
|
4335
|
+
containerWidth: measured.containerWidth
|
|
4336
|
+
});
|
|
4337
|
+
const leftPane = /* @__PURE__ */ jsx(PreviewScrollViewport, { children: /* @__PURE__ */ jsx(PreviewDocumentContent, {
|
|
4338
|
+
rendering,
|
|
4339
|
+
themeRuntime,
|
|
4340
|
+
...layoutNodes,
|
|
4341
|
+
viewportMode: renderedViewport.viewportMode,
|
|
4342
|
+
viewportWidth: renderedViewport.viewportWidth,
|
|
4343
|
+
scale: renderedViewport.scale,
|
|
4344
|
+
contentHeight: measured.contentHeight,
|
|
4345
|
+
scaleContainerRef: measured.scaleContainerRef,
|
|
4346
|
+
contentRef: measured.contentRef,
|
|
4347
|
+
children
|
|
4348
|
+
}) });
|
|
4349
|
+
return /* @__PURE__ */ jsxs(PreviewRenderObservationsProvider, { children: [
|
|
4350
|
+
/* @__PURE__ */ jsx(PreviewSidebarBootstrap, {}),
|
|
4351
|
+
editorChrome,
|
|
4352
|
+
/* @__PURE__ */ jsx("div", {
|
|
4353
|
+
className: "fixed inset-0 overflow-hidden bg-background",
|
|
4354
|
+
children: isOpen ? /* @__PURE__ */ jsx(ResizableSplitPane, {
|
|
4355
|
+
left: leftPane,
|
|
4356
|
+
right: /* @__PURE__ */ jsx(EditorWriteSurface, { children: /* @__PURE__ */ jsx(PreviewSidebarPane, {
|
|
4357
|
+
surfaceId,
|
|
4358
|
+
children: sidebar
|
|
4359
|
+
}) }),
|
|
4360
|
+
rightWidth: {
|
|
4361
|
+
px: viewport.sidebarWidth,
|
|
4362
|
+
min: SIDEBAR_WIDTH.min,
|
|
4363
|
+
max: SIDEBAR_WIDTH.max,
|
|
4364
|
+
minLeft: PREVIEW_MIN_WIDTH,
|
|
4365
|
+
onChange: viewport.setSidebarWidth
|
|
4366
|
+
},
|
|
4367
|
+
leftLabel: "Preview",
|
|
4368
|
+
rightLabel: "Editor",
|
|
4369
|
+
defaultTab: "right",
|
|
4370
|
+
rightPaneClassName: "h-full min-h-0 overflow-hidden"
|
|
4371
|
+
}) : leftPane
|
|
4372
|
+
})
|
|
4373
|
+
] });
|
|
4374
|
+
}
|
|
4375
|
+
function PreviewSidebarPane({ surfaceId, children }) {
|
|
4376
|
+
const surfaceDocument = useMemo(() => resolvePreviewChromeSurface(surfaceId), [surfaceId]);
|
|
4377
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4378
|
+
className: `${PREVIEW_CHROME_THEME_CLASS_NAME} flex h-full min-h-0 flex-col overflow-hidden ${surfaceDocument.surfaceClassName ?? ""}`,
|
|
4379
|
+
...getPreviewChromeSurfaceDataProps(surfaceDocument),
|
|
4380
|
+
children
|
|
4381
|
+
});
|
|
4382
|
+
}
|
|
4383
|
+
/** The site's header, banner and footer from the host layout, when there is one. */
|
|
4384
|
+
function usePreviewLayoutNodes() {
|
|
4385
|
+
const layout = useOptionalPreviewLayout();
|
|
4386
|
+
return {
|
|
4387
|
+
headerNode: layout?.headerNode ?? null,
|
|
4388
|
+
bannerNode: layout?.bannerNode ?? null,
|
|
4389
|
+
footerNode: layout?.footerNode ?? null,
|
|
4390
|
+
siteChromeRenderModel: layout?.siteChromeRenderModel ?? null
|
|
4391
|
+
};
|
|
4392
|
+
}
|
|
4393
|
+
/** Viewport preferences live in the editor store, loaded from and saved to localStorage. */
|
|
4394
|
+
function useStoredViewportPreferences() {
|
|
4395
|
+
const mode = useEditorUiStore((s) => s.viewport.mode);
|
|
4396
|
+
const width = useEditorUiStore((s) => s.viewport.width);
|
|
4274
4397
|
const sidebarWidth = useEditorUiStore((s) => s.viewport.sidebarWidth);
|
|
4275
4398
|
const zoom = useEditorUiStore((s) => s.viewport.zoom);
|
|
4276
|
-
const
|
|
4277
|
-
const
|
|
4399
|
+
const setMode = useEditorUiStore((s) => s.viewport.setMode);
|
|
4400
|
+
const setWidth = useEditorUiStore((s) => s.viewport.setWidth);
|
|
4278
4401
|
const setSidebarWidth = useEditorUiStore((s) => s.viewport.setSidebarWidth);
|
|
4279
4402
|
const setZoom = useEditorUiStore((s) => s.viewport.setZoom);
|
|
4280
4403
|
useEffect(() => {
|
|
4281
|
-
const
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
if (
|
|
4286
|
-
if (storedWidth) if (storedWidth === "full") setViewportWidth("full");
|
|
4287
|
-
else {
|
|
4288
|
-
const width = parseInt(storedWidth, 10);
|
|
4289
|
-
if (Number.isFinite(width)) setViewportWidth(width);
|
|
4290
|
-
}
|
|
4291
|
-
const sidebarWidthPreference = parseStoredSidebarWidth(storedSidebarWidth);
|
|
4292
|
-
if (sidebarWidthPreference !== null) setSidebarWidth(sidebarWidthPreference);
|
|
4293
|
-
if (storedZoom) if (storedZoom === "fit") setZoom("fit");
|
|
4294
|
-
else {
|
|
4295
|
-
const zoomValue = parseInt(storedZoom, 10);
|
|
4296
|
-
if (zoomValue === 33 || zoomValue === 50 || zoomValue === 75 || zoomValue === 100) setZoom(zoomValue);
|
|
4297
|
-
}
|
|
4404
|
+
const stored = readStoredViewportPreferences();
|
|
4405
|
+
if (stored.mode) setMode(stored.mode);
|
|
4406
|
+
if (stored.width !== null) setWidth(stored.width);
|
|
4407
|
+
if (stored.sidebarWidth !== null) setSidebarWidth(stored.sidebarWidth);
|
|
4408
|
+
if (stored.zoom !== null) setZoom(stored.zoom);
|
|
4298
4409
|
}, [
|
|
4299
|
-
|
|
4300
|
-
|
|
4410
|
+
setMode,
|
|
4411
|
+
setWidth,
|
|
4301
4412
|
setSidebarWidth,
|
|
4302
4413
|
setZoom
|
|
4303
4414
|
]);
|
|
4304
4415
|
useEffect(() => {
|
|
4305
|
-
localStorage.setItem("preview-viewport-mode",
|
|
4306
|
-
}, [
|
|
4416
|
+
localStorage.setItem("preview-viewport-mode", mode);
|
|
4417
|
+
}, [mode]);
|
|
4307
4418
|
useEffect(() => {
|
|
4308
|
-
localStorage.setItem("preview-viewport-width", String(
|
|
4309
|
-
}, [
|
|
4419
|
+
localStorage.setItem("preview-viewport-width", String(width));
|
|
4420
|
+
}, [width]);
|
|
4310
4421
|
useEffect(() => {
|
|
4311
4422
|
localStorage.setItem("preview-sidebar-width", String(sidebarWidth));
|
|
4312
4423
|
}, [sidebarWidth]);
|
|
4313
4424
|
useEffect(() => {
|
|
4314
4425
|
localStorage.setItem("preview-zoom-level", String(zoom));
|
|
4315
4426
|
}, [zoom]);
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4427
|
+
return {
|
|
4428
|
+
mode,
|
|
4429
|
+
width,
|
|
4430
|
+
sidebarWidth,
|
|
4431
|
+
zoom,
|
|
4432
|
+
setSidebarWidth
|
|
4433
|
+
};
|
|
4434
|
+
}
|
|
4435
|
+
function readStoredViewportPreferences() {
|
|
4436
|
+
return {
|
|
4437
|
+
mode: parseStoredViewportMode(localStorage.getItem("preview-viewport-mode")),
|
|
4438
|
+
width: parseStoredViewportWidth(localStorage.getItem("preview-viewport-width")),
|
|
4439
|
+
sidebarWidth: parseStoredSidebarWidth(localStorage.getItem("preview-sidebar-width")),
|
|
4440
|
+
zoom: parseStoredZoom(localStorage.getItem("preview-zoom-level"))
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
function parseStoredViewportMode(stored) {
|
|
4444
|
+
return stored === "squeeze" || stored === "fixed" ? stored : null;
|
|
4445
|
+
}
|
|
4446
|
+
function parseStoredViewportWidth(stored) {
|
|
4447
|
+
if (!stored) return null;
|
|
4448
|
+
if (stored === "full") return "full";
|
|
4449
|
+
const width = parseInt(stored, 10);
|
|
4450
|
+
return Number.isFinite(width) ? width : null;
|
|
4451
|
+
}
|
|
4452
|
+
function parseStoredZoom(stored) {
|
|
4453
|
+
if (!stored) return null;
|
|
4454
|
+
if (stored === "fit") return "fit";
|
|
4455
|
+
const zoom = parseInt(stored, 10);
|
|
4456
|
+
return zoom === 33 || zoom === 50 || zoom === 75 || zoom === 100 ? zoom : null;
|
|
4457
|
+
}
|
|
4458
|
+
/** The canvas container's width and the document's height, kept current by resize observers. */
|
|
4459
|
+
function usePreviewDocumentMeasurements(viewportMode, viewportWidth) {
|
|
4320
4460
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
4321
4461
|
const [contentHeight, setContentHeight] = useState(0);
|
|
4322
4462
|
const containerObserverRef = useRef(null);
|
|
4323
|
-
const contentObserverRef = useRef(null);
|
|
4324
4463
|
const contentRef = useRef(null);
|
|
4325
4464
|
const scaleContainerRef = useCallback((node) => {
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
};
|
|
4334
|
-
containerObserverRef.current = new ResizeObserver(updateWidth);
|
|
4335
|
-
containerObserverRef.current.observe(node);
|
|
4336
|
-
updateWidth();
|
|
4337
|
-
}
|
|
4465
|
+
containerObserverRef.current?.disconnect();
|
|
4466
|
+
containerObserverRef.current = null;
|
|
4467
|
+
if (!node) return;
|
|
4468
|
+
const updateWidth = () => setContainerWidth(node.offsetWidth);
|
|
4469
|
+
containerObserverRef.current = new ResizeObserver(updateWidth);
|
|
4470
|
+
containerObserverRef.current.observe(node);
|
|
4471
|
+
updateWidth();
|
|
4338
4472
|
}, []);
|
|
4339
4473
|
useEffect(() => {
|
|
4340
4474
|
const contentNode = contentRef.current;
|
|
4341
4475
|
if (!contentNode) return;
|
|
4342
|
-
const updateHeight = () =>
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
contentObserverRef.current = new ResizeObserver(updateHeight);
|
|
4346
|
-
contentObserverRef.current.observe(contentNode);
|
|
4476
|
+
const updateHeight = () => setContentHeight(contentNode.scrollHeight);
|
|
4477
|
+
const observer = new ResizeObserver(updateHeight);
|
|
4478
|
+
observer.observe(contentNode);
|
|
4347
4479
|
updateHeight();
|
|
4348
|
-
return () =>
|
|
4349
|
-
contentObserverRef.current?.disconnect();
|
|
4350
|
-
};
|
|
4480
|
+
return () => observer.disconnect();
|
|
4351
4481
|
}, [viewportMode, viewportWidth]);
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
viewportMode,
|
|
4355
|
-
viewportWidth,
|
|
4356
|
-
zoom,
|
|
4357
|
-
containerWidth
|
|
4358
|
-
});
|
|
4359
|
-
const leftPane = /* @__PURE__ */ jsx(PreviewScrollViewport, { children: /* @__PURE__ */ jsx(PreviewDocumentContent, {
|
|
4360
|
-
rendering,
|
|
4361
|
-
themeRuntime,
|
|
4362
|
-
viewportMode: renderedViewport.viewportMode,
|
|
4363
|
-
viewportWidth: renderedViewport.viewportWidth,
|
|
4364
|
-
scale: renderedViewport.scale,
|
|
4482
|
+
return {
|
|
4483
|
+
containerWidth,
|
|
4365
4484
|
contentHeight,
|
|
4366
4485
|
scaleContainerRef,
|
|
4367
|
-
contentRef
|
|
4368
|
-
|
|
4369
|
-
bannerNode,
|
|
4370
|
-
footerNode,
|
|
4371
|
-
siteChromeRenderModel,
|
|
4372
|
-
children
|
|
4373
|
-
}) });
|
|
4374
|
-
const rightPane = /* @__PURE__ */ jsx("div", {
|
|
4375
|
-
className: `${PREVIEW_CHROME_THEME_CLASS_NAME} flex h-full min-h-0 flex-col overflow-hidden ${surfaceDocument.surfaceClassName ?? ""}`,
|
|
4376
|
-
...getPreviewChromeSurfaceDataProps(surfaceDocument),
|
|
4377
|
-
children: /* @__PURE__ */ jsx(React.Suspense, {
|
|
4378
|
-
fallback: null,
|
|
4379
|
-
children: /* @__PURE__ */ jsx(PreviewEditorSidebar, {
|
|
4380
|
-
surfaceId,
|
|
4381
|
-
siteId,
|
|
4382
|
-
dashboardBaseUrl,
|
|
4383
|
-
pageId,
|
|
4384
|
-
pageNodeType: props.pageNodeType,
|
|
4385
|
-
entryData,
|
|
4386
|
-
contentTypeSchema,
|
|
4387
|
-
referenceContentTypeKeys,
|
|
4388
|
-
draftContent,
|
|
4389
|
-
currentTemplate,
|
|
4390
|
-
theme: themeRoles?.persistenceTheme,
|
|
4391
|
-
apiClient,
|
|
4392
|
-
themeSelectionButtonStyleRepairs,
|
|
4393
|
-
sdkConfig: sdkConfig ?? null,
|
|
4394
|
-
entrySubrouteContext: entrySubrouteContext ?? null,
|
|
4395
|
-
bookingOfferingPresets,
|
|
4396
|
-
siteStyleAccess
|
|
4397
|
-
}, editorScopeKey)
|
|
4398
|
-
})
|
|
4399
|
-
});
|
|
4400
|
-
return renderShellProviders({
|
|
4401
|
-
props,
|
|
4402
|
-
themeRoles,
|
|
4403
|
-
content: /* @__PURE__ */ jsxs(PreviewRenderObservationsProvider, { children: [
|
|
4404
|
-
/* @__PURE__ */ jsx(PreviewSidebarBootstrap, {}),
|
|
4405
|
-
/* @__PURE__ */ jsx(LinkedEntryEditEventBridge, {}),
|
|
4406
|
-
/* @__PURE__ */ jsx(React.Suspense, {
|
|
4407
|
-
fallback: null,
|
|
4408
|
-
children: /* @__PURE__ */ jsx(PreviewEditorUI, {
|
|
4409
|
-
entryData,
|
|
4410
|
-
dashboardBaseUrl,
|
|
4411
|
-
inMaintenanceMode: maintenanceModeEnabled,
|
|
4412
|
-
siteId,
|
|
4413
|
-
surfaceId,
|
|
4414
|
-
isSiteLaunched,
|
|
4415
|
-
apiClient
|
|
4416
|
-
})
|
|
4417
|
-
}),
|
|
4418
|
-
/* @__PURE__ */ jsx(PreviewAccessBanners, {
|
|
4419
|
-
dashboardBaseUrl,
|
|
4420
|
-
surfaceId,
|
|
4421
|
-
isEntry: Boolean(entryData),
|
|
4422
|
-
pageNodeType: props.pageNodeType
|
|
4423
|
-
}),
|
|
4424
|
-
/* @__PURE__ */ jsx("div", {
|
|
4425
|
-
className: "fixed inset-0 overflow-hidden bg-background",
|
|
4426
|
-
children: isOpen ? /* @__PURE__ */ jsx(ResizableSplitPane, {
|
|
4427
|
-
left: leftPane,
|
|
4428
|
-
right: /* @__PURE__ */ jsx(EditorWriteSurface, { children: rightPane }),
|
|
4429
|
-
rightWidth: {
|
|
4430
|
-
px: sidebarWidth,
|
|
4431
|
-
min: SIDEBAR_WIDTH.min,
|
|
4432
|
-
max: SIDEBAR_WIDTH.max,
|
|
4433
|
-
minLeft: PREVIEW_MIN_WIDTH,
|
|
4434
|
-
onChange: handleSidebarWidthChange
|
|
4435
|
-
},
|
|
4436
|
-
leftLabel: "Preview",
|
|
4437
|
-
rightLabel: "Editor",
|
|
4438
|
-
defaultTab: "right",
|
|
4439
|
-
rightPaneClassName: "h-full min-h-0 overflow-hidden"
|
|
4440
|
-
}) : leftPane
|
|
4441
|
-
})
|
|
4442
|
-
] })
|
|
4443
|
-
});
|
|
4486
|
+
contentRef
|
|
4487
|
+
};
|
|
4444
4488
|
}
|
|
4445
4489
|
/** The sidebar belongs to edit mode; a stale open preference cannot expose it while viewing. */
|
|
4446
4490
|
function usePreviewDrawerOpen() {
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $n as
|
|
3
|
-
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, s as TriangleAlert, zt as projectPublicLocation } from "./lucide-react-
|
|
4
|
-
import { A as applyPreviewRuntimeContentProjections, At as
|
|
5
|
-
import {
|
|
6
|
-
import { A as EditorCanvasNameChip, C as useRichTextEditor, D as decideDocumentReplacement, E as InlineTextEditor, M as EditorSelectionFrame, O as resolveSdkFooterMode, T as parseRichTextDoc, a as LookCyclePill, b as RichTextEditorSurface, h as useRichTextImageProjection, j as EditorInsertionMarker, k as EditorCanvasChipRow, n as ArrangementLookPill, r as ArrangementModeSwitchPill, s as useArrangementToolbar, w as EMPTY_DOC } from "./ArrangementLookControls-
|
|
7
|
-
import { a as needsSetupMessage, n as useBlockCustomizeControls, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup } from "./useBlockCustomizeControls-
|
|
8
|
-
import { f as useEditor } from "./previewChromeSurface-
|
|
9
|
-
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-
|
|
10
|
-
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-
|
|
2
|
+
import { $_ as readEditorBlockVersionsFromPlacement, $n as retargetJoinsAcrossOmissions, A_ as generateUuidV4, Au as faqAccordionFragment, Bg as expandPalette, Bu as ctaRowFragment, D as PreviewRenderPlanProjection, Du as richTextFragment, Ed as parseBlockIconValue, Eh as bindingSchema, Ep as isRecord$1, Fa as getCurrentResolveImageUrlContext, Fr as normalizeLocationMapSource, Fu as formCopyFragment, Fv as toUtcIsoDateTimeString, Gu as defineFragment, H as usePreviewToken, H_ as sameMailingListPlacementTargeting, Hp as unwrapResponse, Ia as setContextResolveImageUrlContext, Ir as resolveLocationMapLocation, Iu as testimonialsCarouselFragment, Jg as themeSchema, Jn as createPageRenderPlanReader, Ld as inlineTextToPlainText, Lp as calendarWindowQuerySchema, Lu as testimonialsHeadingFragment, M as lookPositionLabel, M_ as buildMailingListSignupBlockSourceRef, Md as coerceInlineTextWithFallback, Mu as blogFeaturedPostFragment, N as lookTilePosition, Nd as deriveInlineTextFieldChanges, Nr as normalizeBlockContent, Nu as singleButtonFragment, Od as parseGeneratedIconAssetId, Ou as headingFragment, Pa as buildResolveImageUrlContext, Pu as formEmbedFragment, Q_ as NO_BLOCK_VERSIONS, Qn as renderedJoinLayout, R_ as parseMailingListPlacementTargeting, Rd as isInlineTextEmpty, Ru as ctaCopyFragment, Sh as canWriteLinkedEntry, T as ObservedJoin, T_ as authoredValuesEqual, Ti as projectRecurringSchedule, Tn as unsafeAsLinkedContentEntryId, Tp as isObjectRecord, Tu as pageTemplateFromEntry, Uu as heroCopyFragment, Vh as compileButtonColourStates, Wu as bodyCopyFragment, Xn as composePageJoins, Yn as planArrangementContent, Zn as joinSlotKey, _i as publicRouteCandidatesSchema, _n as remoteDraftValues, ar as getAtPath, b as pageDesignLookPosition, bn as resolveRenderedValues, br as readinessFactsFromLoaders, cg as parseSurfaceTree, dd as runTransforms, en as useEditorUiStore, ev as readPublishedBlockPlacement, gd as validateManifestDraft, gi as offeringsPreviewBlockDefinition, gr as createEditorPresentationPageReader, hd as compileManifestContentContract, i as usePreviewSidebarNavigation, ig as textColorStyle, jr as getBlockDefinition, ju as faqHeadingFragment, kd as parseGeneratedIconSetId, ku as cardFragment, mv as unsafeAsEditorBlockId, nd as ctaButton, nu as resolveDateRuntimeContext, o as usePreviewPageDesignEditorState, or as siblingPath, qv as assertNever, s as usePreviewPageDesignRenderState, so as offeringsListingFor, tn as useEditorUiStoreInstance, to as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, tu as readRuntimeNow, tv as selectedContentVersionId, vn as renderSourceFor, wl as bookingConsentCarrierSchema, xl as publicEventsArraySchema, xr as selectBlockContent, y as cyclePageDesignBlockLook, ya as RichText$1, yn as renderedFieldChanges, zu as heroCtaRowFragment } from "./previewAssistantSlot-BBdN5kfY.mjs";
|
|
3
|
+
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, s as TriangleAlert, zt as projectPublicLocation } from "./lucide-react-DkZ8fO-G.mjs";
|
|
4
|
+
import { A as applyPreviewRuntimeContentProjections, At as logger, Ct as arrangementHooksFromContent, D as usePreviewCompiledThemeOptional, Dt as buildLoadedOfferingsPreviewListing, Et as getDefaultComponentRegistry, Ft as defaultTransforms, Ht as buildThemeRuntime, It as resolveEntryRouteTarget, Lt as resolvePageRouteTarget, M as runtimeContentDecorationProjectionFromServerPage, N as mergeResolvedDataContext, Nt as coerceLinkedContentEntriesPayload, O as pageDesignRuntimeProjectionFromSource, Ot as buildAppointmentServicesView, P as withRenderedContentEntry, Rt as resolveRouteTarget, St as makeDefaultBlockComponent, Tt as readBlockComposition, Wt as mergeContentWithBlockStyleOverrides, cn as defaultThemeTokens, i as PreviewChromeFloatingControl, j as entryFieldRebindingProjection, jt as Text$1, k as resolveRuntimePreviewSourceForTheme, kt as renderInlineText, l as planBlockToolbarPlacement, nt as clientComponentRegistry, o as readThemeCustomProperties, r as PreviewChromeFloatingBar, s as measureSiteTopChromeClearance, wt as blockLookFromContent } from "./SiteChromeCustomizeButton-BeEZpeKn.mjs";
|
|
5
|
+
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-BQU45t-E.mjs";
|
|
6
|
+
import { A as EditorCanvasNameChip, C as useRichTextEditor, D as decideDocumentReplacement, E as InlineTextEditor, M as EditorSelectionFrame, O as resolveSdkFooterMode, T as parseRichTextDoc, a as LookCyclePill, b as RichTextEditorSurface, h as useRichTextImageProjection, j as EditorInsertionMarker, k as EditorCanvasChipRow, n as ArrangementLookPill, r as ArrangementModeSwitchPill, s as useArrangementToolbar, w as EMPTY_DOC } from "./ArrangementLookControls-BpvnOGlN.mjs";
|
|
7
|
+
import { a as needsSetupMessage, n as useBlockCustomizeControls, r as NEEDS_SETUP_LABEL, s as useBlockNeedsSetup } from "./useBlockCustomizeControls-BuFLIpmX.mjs";
|
|
8
|
+
import { f as useEditor } from "./previewChromeSurface-VZtGwPuH.mjs";
|
|
9
|
+
import { a as dispatchLinkedEntryFieldFocusEvent, c as useLinkedSaveHandoverRetention, d as linkedEntryRenderOverlaysFromStore, f as PREVIEW_EDITABLE_OUTLINE, i as dispatchLinkedEntryEditEvent, l as applyLinkedEntryRenderOverlay, o as defaultPreviewThemeRuntime, r as dispatchBlockFieldFocusEvent, s as linkedSaveHandoversVersion, t as PreviewShell, u as applyLinkedEntryRenderOverlayToDataContext } from "./PreviewShell-BOLH_pm-.mjs";
|
|
10
|
+
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-DlxYgmh_.mjs";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
15
|
+
//#region ../site-contracts/src/identity/loaderEndpoints.ts
|
|
16
|
+
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
17
|
+
"listPublishedEntries",
|
|
18
|
+
"getPublishedEntryPreview",
|
|
19
|
+
"listPublicEvents",
|
|
20
|
+
"listPublicEventCalendarWindow",
|
|
21
|
+
"listPublicRecurringSchedule",
|
|
22
|
+
"getPublicEventDetails",
|
|
23
|
+
"listPublicRouteCandidates",
|
|
24
|
+
"listPublicTeamMembers",
|
|
25
|
+
"listPublicProducts",
|
|
26
|
+
"listPublicPasses",
|
|
27
|
+
"listPublicMemberships",
|
|
28
|
+
"getPublicFormById",
|
|
29
|
+
"getPublicBookingServices",
|
|
30
|
+
"getPublicWeeklySlotAvailability"
|
|
31
|
+
];
|
|
32
|
+
function isSupportedLoaderEndpoint(endpoint) {
|
|
33
|
+
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
15
36
|
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
16
37
|
/**
|
|
17
38
|
* Proves that every persisted button variant compiles against the theme's
|
|
@@ -631,27 +652,6 @@ function admitLoaderDateRuntime(context) {
|
|
|
631
652
|
};
|
|
632
653
|
}
|
|
633
654
|
//#endregion
|
|
634
|
-
//#region ../blocks/src/system/data/loaderEndpoints.ts
|
|
635
|
-
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
636
|
-
"listPublishedEntries",
|
|
637
|
-
"getPublishedEntryPreview",
|
|
638
|
-
"listPublicEvents",
|
|
639
|
-
"listPublicEventCalendarWindow",
|
|
640
|
-
"listPublicRecurringSchedule",
|
|
641
|
-
"getPublicEventDetails",
|
|
642
|
-
"listPublicRouteCandidates",
|
|
643
|
-
"listPublicTeamMembers",
|
|
644
|
-
"listPublicProducts",
|
|
645
|
-
"listPublicPasses",
|
|
646
|
-
"listPublicMemberships",
|
|
647
|
-
"getPublicFormById",
|
|
648
|
-
"getPublicBookingServices",
|
|
649
|
-
"getPublicWeeklySlotAvailability"
|
|
650
|
-
];
|
|
651
|
-
function isSupportedLoaderEndpoint(endpoint) {
|
|
652
|
-
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
653
|
-
}
|
|
654
|
-
//#endregion
|
|
655
655
|
//#region ../blocks/src/system/data/batching.ts
|
|
656
656
|
function stableNormalize(value) {
|
|
657
657
|
if (value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value;
|
|
@@ -3836,10 +3836,9 @@ function EditablePageRenderer(props) {
|
|
|
3836
3836
|
}
|
|
3837
3837
|
function EditableDraftPageRenderer(props) {
|
|
3838
3838
|
const { blockDataApiClient = null, ...pageRendererProps } = props;
|
|
3839
|
-
const
|
|
3839
|
+
const blockItems = useEditorUiStore((state) => state.structure.getList());
|
|
3840
3840
|
const uiStore = useEditorUiStoreInstance();
|
|
3841
3841
|
const pageDesignState = usePreviewPageDesignRenderState();
|
|
3842
|
-
const blockItems = useMemo(() => blocks.list, [blocks.list]);
|
|
3843
3842
|
const { isEditingMode } = useEditor();
|
|
3844
3843
|
const { allowInlineEditing, previewAs } = editorRenderMode(isEditingMode);
|
|
3845
3844
|
const activePreviewField = useEditorUiStore((state) => state.activePreviewField ?? null);
|