@riverbankcms/sdk 0.170.0 → 0.171.1
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/CHANGELOG.md +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
- package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
- package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.d.ts} +2 -2
- package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.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 +7 -7
- 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 +4 -4
- 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 -4
- 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 +3 -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 +4740 -3
- package/dist/_dts/{types-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
- package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
- package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +13 -13
- package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
- package/dist/client/{Page-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-DRJy4eU3.mjs +894 -0
- package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
- package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-BnyVRqdU.mjs} +73 -26
- package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
- package/dist/client/client.mjs +656 -220
- package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
- package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
- package/dist/client/{cta-CfuyGqXL.mjs → cta-CP9l112u.mjs} +2 -2
- package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
- package/dist/client/{display-DDNmyb0z.mjs → display-ChgDe9Da.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
- package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
- package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
- package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
- package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
- package/dist/client/portal/client.mjs +294 -48
- package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
- package/dist/client/rendering/client.mjs +57 -32
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +1956 -191
- package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
- package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
- package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
- package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
- package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
- package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
- package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
- package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
- package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
- package/dist/preview-next/before-render.mjs +33 -13
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
- package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
- package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
- package/dist/preview-next/container-responsive.css +43 -0
- package/dist/preview-next/editor-base.css +14 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
- package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
- package/dist/server/config-template-validation.mjs +30 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -34
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
- package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +8 -6
- package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
- package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
- package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
- 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 +7 -7
- package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
- package/dist/server/rich-text-CRcONdyM.mjs +33 -0
- package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
- package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -1
- package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
- package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
- package/dist/styles/index.css +408 -10
- package/package.json +1 -1
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
- package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
- package/dist/server/bindings-C1-MNwwS.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs}
RENAMED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as useEditorUiStore,
|
|
3
|
-
import {
|
|
4
|
-
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-
|
|
5
|
-
import {
|
|
6
|
-
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-
|
|
7
|
-
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-CipKCK2O.mjs";
|
|
2
|
+
import { $t as useEditorUiStore, G as useEntryEditorController, Gt as PREVIEW_CHROME_Z_INDEX, N_ as authoredValuesEqual, Q as useSessionJournalHistory, Sm as DialogTitle, Th as cn, Tn as editorAuthoredBlockDocument, Tv as unsafeAsEditorBlockId, V as usePreviewAuth, Vu as pageTemplateFromEntry, Wp as editorAdmissionIsOpen, X as useServerRefresh, Z as useSessionJournal, _h as Button, bh as cva, bm as DialogFooter, br as publishReadinessWarning, en as useEditorUiStoreInstance, gm as Dialog, hv as displayedValues, im as unwrapResponse, n as usePreviewAssistantSlot, ot as EditorWriteSurface, pn as canDiscardDraft, vm as DialogContent, xm as DialogHeader, xr as readinessFactsFromPayload, ym as DialogDescription, yr as PUBLISH_READINESS_COPY, zp as resolveBlockTitle } from "./previewAssistantSlot-3FZrzbK8.mjs";
|
|
3
|
+
import { A as LoaderCircle, Q as EllipsisVertical, S as Palette, X as Eye, _ as Redo2, ft as ChevronDown, o as Undo2, s as TriangleAlert, y as Pencil } from "./lucide-react-X0DjcFij.mjs";
|
|
4
|
+
import { i as formatEditorStatus, n as useEditorWriteState, o as Spinner, r as decideEditorStatus } from "./useAutosaveStatus-OIMkhbkP.mjs";
|
|
5
|
+
import { B as DropdownMenuTrigger, F as DropdownMenuItem, I as DropdownMenuLabel, L as DropdownMenuRadioGroup, M as Badge, N as DropdownMenu, O as Tooltip, P as DropdownMenuContent, R as DropdownMenuRadioItem, a as needsSetupAsk, j as TooltipTrigger, k as TooltipContent, n as resolveBlockManifest, t as useOpenBlockForSetup, z as DropdownMenuSeparator } from "./useOpenBlockForSetup-BNG9P9sM.mjs";
|
|
6
|
+
import { c as writePreviewThemeCookie, f as useEditor, n as usePreviewChromeRoot, o as readPreviewThemeCookie, p as FixedBottomSurface } from "./previewChromeRoot-C4gyNQXE.mjs";
|
|
8
7
|
import * as React$1 from "react";
|
|
9
8
|
import { useCallback, useEffect, useMemo, useRef, useState, useTransition } from "react";
|
|
10
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -179,16 +178,34 @@ function useDiscardConfirmation(onDiscard) {
|
|
|
179
178
|
/** A momentary note (such as a journal note) beside Undo and Redo, kept to one line. */
|
|
180
179
|
function StatusBarNote({ message }) {
|
|
181
180
|
if (!message) return null;
|
|
182
|
-
return /* @__PURE__ */ jsx(
|
|
181
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
182
|
+
variant: "warning",
|
|
183
183
|
role: "status",
|
|
184
184
|
title: message,
|
|
185
|
-
className: "min-w-0 max-w-[32rem] shrink
|
|
186
|
-
children:
|
|
185
|
+
className: "min-w-0 max-w-[32rem] shrink py-1 font-normal",
|
|
186
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
187
|
+
className: "truncate",
|
|
188
|
+
children: message
|
|
189
|
+
})
|
|
187
190
|
});
|
|
188
191
|
}
|
|
192
|
+
function HistoryButton({ label, icon, onClick, disabled }) {
|
|
193
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
194
|
+
asChild: true,
|
|
195
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
196
|
+
type: "button",
|
|
197
|
+
variant: "ghost",
|
|
198
|
+
size: "icon",
|
|
199
|
+
onClick,
|
|
200
|
+
disabled,
|
|
201
|
+
"aria-label": label,
|
|
202
|
+
children: icon
|
|
203
|
+
})
|
|
204
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: label })] });
|
|
205
|
+
}
|
|
189
206
|
function StatusCopy({ decision, size }) {
|
|
190
207
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [formatEditorStatus(decision, size), decision.primary.kind === "publication" && decision.savedAt ? /* @__PURE__ */ jsxs("span", {
|
|
191
|
-
className: "text-xs text-
|
|
208
|
+
className: "text-xs text-muted-foreground",
|
|
192
209
|
children: [" · saved ", decision.savedAt]
|
|
193
210
|
}) : null] });
|
|
194
211
|
}
|
|
@@ -218,54 +235,31 @@ function EditorStatusBar({ status, lastSavedLabel, toolbar, draftSyncState = "ba
|
|
|
218
235
|
historyNote
|
|
219
236
|
});
|
|
220
237
|
const disablePublish = toolbar?.disablePublish || !hasChanges && currentLifecycle !== "draft";
|
|
221
|
-
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-
|
|
238
|
+
const statusClass = statusDecision.primary.kind === "error" ? "text-destructive" : "text-muted-foreground";
|
|
222
239
|
return /* @__PURE__ */ jsx(FixedBottomSurface, {
|
|
223
240
|
variant: "light",
|
|
224
241
|
children: /* @__PURE__ */ jsxs("div", {
|
|
225
242
|
"data-testid": "editor-status-bar",
|
|
226
|
-
className: `relative flex flex-nowrap items-center gap-2 text-sm text-
|
|
243
|
+
className: `relative flex flex-nowrap items-center gap-2 text-sm text-foreground sm:gap-3 ${hasConfiguredMenu || toggleSlot ? "pr-12 sm:pr-14" : showMobileHistoryMenu ? "pr-12 sm:pr-0" : ""}`,
|
|
227
244
|
children: [
|
|
228
245
|
/* @__PURE__ */ jsxs("div", {
|
|
229
246
|
className: "flex min-w-0 flex-1 flex-nowrap items-center gap-2 sm:gap-3",
|
|
230
247
|
children: [
|
|
231
248
|
historyControls ? /* @__PURE__ */ jsxs("div", {
|
|
232
|
-
className: "hidden items-center
|
|
249
|
+
className: "hidden items-center sm:inline-flex",
|
|
233
250
|
role: "toolbar",
|
|
234
251
|
"aria-label": "History controls",
|
|
235
|
-
children: [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
title: "Undo",
|
|
247
|
-
children: /* @__PURE__ */ jsx(Undo2, { className: "h-4 w-4" })
|
|
248
|
-
})
|
|
249
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Undo" })] }),
|
|
250
|
-
/* @__PURE__ */ jsx("div", {
|
|
251
|
-
className: "mx-0.5 h-5 w-px bg-slate-200",
|
|
252
|
-
"aria-hidden": "true"
|
|
253
|
-
}),
|
|
254
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
255
|
-
asChild: true,
|
|
256
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
257
|
-
type: "button",
|
|
258
|
-
variant: "ghost",
|
|
259
|
-
size: "icon",
|
|
260
|
-
className: "h-8 w-8 text-slate-600",
|
|
261
|
-
onClick: historyControls.onRedo,
|
|
262
|
-
disabled: !historyControls.canRedo,
|
|
263
|
-
"aria-label": "Redo",
|
|
264
|
-
title: "Redo",
|
|
265
|
-
children: /* @__PURE__ */ jsx(Redo2, { className: "h-4 w-4" })
|
|
266
|
-
})
|
|
267
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: "Redo" })] })
|
|
268
|
-
]
|
|
252
|
+
children: [/* @__PURE__ */ jsx(HistoryButton, {
|
|
253
|
+
label: "Undo",
|
|
254
|
+
icon: /* @__PURE__ */ jsx(Undo2, {}),
|
|
255
|
+
onClick: historyControls.onUndo,
|
|
256
|
+
disabled: !historyControls.canUndo
|
|
257
|
+
}), /* @__PURE__ */ jsx(HistoryButton, {
|
|
258
|
+
label: "Redo",
|
|
259
|
+
icon: /* @__PURE__ */ jsx(Redo2, {}),
|
|
260
|
+
onClick: historyControls.onRedo,
|
|
261
|
+
disabled: !historyControls.canRedo
|
|
262
|
+
})]
|
|
269
263
|
}) : null,
|
|
270
264
|
/* @__PURE__ */ jsx(StatusBarNote, { message: statusDecision.note }),
|
|
271
265
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -486,116 +480,110 @@ function PreviewOpenEditorButton() {
|
|
|
486
480
|
});
|
|
487
481
|
}
|
|
488
482
|
//#endregion
|
|
489
|
-
//#region ../preview-next/src/client/preview/PreviewZoomControls.tsx
|
|
490
|
-
function PreviewZoomControls({ zoom, onZoomChange, disabled }) {
|
|
491
|
-
return /* @__PURE__ */ jsxs(Select, {
|
|
492
|
-
value: String(zoom),
|
|
493
|
-
onValueChange: (value) => onZoomChange(value === "fit" ? "fit" : Number(value)),
|
|
494
|
-
disabled,
|
|
495
|
-
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
496
|
-
"aria-label": "Zoom",
|
|
497
|
-
className: "h-[30px] w-[74px] rounded-full border-0 bg-transparent px-2 text-[13px] font-semibold shadow-none",
|
|
498
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
499
|
-
}), /* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
500
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
501
|
-
value: "33",
|
|
502
|
-
children: "33%"
|
|
503
|
-
}),
|
|
504
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
505
|
-
value: "50",
|
|
506
|
-
children: "50%"
|
|
507
|
-
}),
|
|
508
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
509
|
-
value: "75",
|
|
510
|
-
children: "75%"
|
|
511
|
-
}),
|
|
512
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
513
|
-
value: "100",
|
|
514
|
-
children: "100%"
|
|
515
|
-
}),
|
|
516
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
517
|
-
value: "fit",
|
|
518
|
-
children: "Fit"
|
|
519
|
-
})
|
|
520
|
-
] })]
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
//#endregion
|
|
524
483
|
//#region ../preview-next/src/client/preview/PreviewViewportControls.tsx
|
|
484
|
+
const FIT_LABEL = "Fit to space";
|
|
485
|
+
const FIT_VALUE = "fit";
|
|
525
486
|
const VIEWPORT_PRESETS = [
|
|
526
487
|
{
|
|
527
488
|
label: "Desktop",
|
|
528
|
-
width: 1440
|
|
529
|
-
icon: Monitor
|
|
489
|
+
width: 1440
|
|
530
490
|
},
|
|
531
491
|
{
|
|
532
492
|
label: "Tablet",
|
|
533
|
-
width: 768
|
|
534
|
-
icon: Tablet
|
|
493
|
+
width: 768
|
|
535
494
|
},
|
|
536
495
|
{
|
|
537
496
|
label: "Mobile",
|
|
538
|
-
width: 375
|
|
539
|
-
|
|
497
|
+
width: 375
|
|
498
|
+
}
|
|
499
|
+
];
|
|
500
|
+
const ZOOM_OPTIONS = [
|
|
501
|
+
{
|
|
502
|
+
value: "fit",
|
|
503
|
+
label: "Fit"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
value: 100,
|
|
507
|
+
label: "100%"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
value: 75,
|
|
511
|
+
label: "75%"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
value: 50,
|
|
515
|
+
label: "50%"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
value: 33,
|
|
519
|
+
label: "33%"
|
|
540
520
|
}
|
|
541
521
|
];
|
|
522
|
+
function sizeValue(mode, width) {
|
|
523
|
+
return mode === "fixed" && typeof width === "number" ? String(width) : FIT_VALUE;
|
|
524
|
+
}
|
|
525
|
+
/** What the button says: the chosen size, and the zoom when it isn't fitted. */
|
|
526
|
+
function viewportTriggerLabel(mode, width, zoom) {
|
|
527
|
+
if (mode !== "fixed" || typeof width !== "number") return FIT_LABEL;
|
|
528
|
+
const size = VIEWPORT_PRESETS.find((preset) => preset.width === width)?.label ?? `${width}px`;
|
|
529
|
+
return zoom === void 0 || zoom === "fit" ? size : `${size}, ${zoom}%`;
|
|
530
|
+
}
|
|
531
|
+
function parseZoom(value) {
|
|
532
|
+
return ZOOM_OPTIONS.find((option) => String(option.value) === value)?.value ?? "fit";
|
|
533
|
+
}
|
|
542
534
|
/**
|
|
543
|
-
* The editing size, in the bottom bar:
|
|
544
|
-
* sidebar, or
|
|
545
|
-
* These are editing preferences only; view mode always uses
|
|
535
|
+
* The editing size, in the bottom bar: a menu button whose default fits the
|
|
536
|
+
* space beside the sidebar, or a device width. Zoom joins the menu once a
|
|
537
|
+
* width is chosen. These are editing preferences only; view mode always uses
|
|
538
|
+
* the browser's width.
|
|
546
539
|
*/
|
|
547
540
|
function PreviewViewportControls({ mode, width, onModeChange, onWidthChange, className, zoom, onZoomChange }) {
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
541
|
+
const label = viewportTriggerLabel(mode, width, zoom);
|
|
542
|
+
const showZoom = mode === "fixed" && zoom !== void 0 && onZoomChange !== void 0;
|
|
543
|
+
const chooseSize = (value) => {
|
|
544
|
+
if (value === FIT_VALUE) return onModeChange("squeeze");
|
|
545
|
+
onWidthChange(Number(value));
|
|
546
|
+
onModeChange("fixed");
|
|
547
|
+
};
|
|
548
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
549
|
+
asChild: true,
|
|
550
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
551
|
+
type: "button",
|
|
552
|
+
variant: "secondary",
|
|
553
|
+
"aria-label": `Preview size: ${label}`,
|
|
554
|
+
className: cn("shrink-0", className),
|
|
555
|
+
children: [label, /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })]
|
|
556
|
+
})
|
|
557
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
558
|
+
align: "end",
|
|
559
|
+
side: "top",
|
|
553
560
|
children: [
|
|
554
|
-
/* @__PURE__ */ jsx(
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
children: /* @__PURE__ */ jsx(
|
|
559
|
-
|
|
560
|
-
children:
|
|
561
|
-
})
|
|
561
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Preview size" }),
|
|
562
|
+
/* @__PURE__ */ jsxs(DropdownMenuRadioGroup, {
|
|
563
|
+
value: sizeValue(mode, width),
|
|
564
|
+
onValueChange: chooseSize,
|
|
565
|
+
children: [/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
566
|
+
value: FIT_VALUE,
|
|
567
|
+
children: FIT_LABEL
|
|
568
|
+
}), VIEWPORT_PRESETS.map((preset) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
569
|
+
value: String(preset.width),
|
|
570
|
+
children: `${preset.label}, ${preset.width}px`
|
|
571
|
+
}, preset.width))]
|
|
562
572
|
}),
|
|
563
|
-
/* @__PURE__ */
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
},
|
|
574
|
-
children: /* @__PURE__ */ jsx(preset.icon, {
|
|
575
|
-
className: "h-4 w-4",
|
|
576
|
-
"aria-hidden": "true"
|
|
573
|
+
showZoom ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
574
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
575
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Zoom" }),
|
|
576
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
577
|
+
value: String(zoom),
|
|
578
|
+
onValueChange: (value) => onZoomChange(parseZoom(value)),
|
|
579
|
+
children: ZOOM_OPTIONS.map((option) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
580
|
+
value: String(option.value),
|
|
581
|
+
children: option.label
|
|
582
|
+
}, option.value))
|
|
577
583
|
})
|
|
578
|
-
}
|
|
579
|
-
showZoomControls ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
580
|
-
className: "mx-0.5 h-4 w-px bg-border",
|
|
581
|
-
"aria-hidden": "true"
|
|
582
|
-
}), /* @__PURE__ */ jsx(PreviewZoomControls, {
|
|
583
|
-
zoom,
|
|
584
|
-
onZoomChange
|
|
585
|
-
})] }) : null
|
|
584
|
+
] }) : null
|
|
586
585
|
]
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
function SizeButton({ label, pressed, onSelect, children }) {
|
|
590
|
-
return /* @__PURE__ */ jsx("button", {
|
|
591
|
-
type: "button",
|
|
592
|
-
"aria-label": label,
|
|
593
|
-
"aria-pressed": pressed,
|
|
594
|
-
title: label,
|
|
595
|
-
onClick: onSelect,
|
|
596
|
-
className: cn("grid h-[30px] min-w-8 place-items-center rounded-full px-1.5 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", pressed && "bg-muted text-foreground"),
|
|
597
|
-
children
|
|
598
|
-
});
|
|
586
|
+
})] });
|
|
599
587
|
}
|
|
600
588
|
//#endregion
|
|
601
589
|
//#region ../preview-next/src/client/preview/MaintenanceModeBadge.tsx
|
|
@@ -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 {
|
|
5
|
-
import {
|
|
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, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-
|
|
3
|
+
import { $t as useEditorUiStore, B as renewPreviewSession, Dh as baselineRevisionOf, E as PreviewRenderObservationsProvider, G as useEntryEditorController, Gp as editorAdmissionNotice, H as usePreviewToken, Jp as observeEditorAdmission, Kt as createRoutingHelpers, L as createGuardedPreviewApiClient, La as buildResolveImageUrlContext, Lt as blocksKeys, N_ as authoredValuesEqual, Oh as isEdited, R as initPreviewAuth, Sm as DialogTitle, Th as cn, Tv as unsafeAsEditorBlockId, U as EntryControllerProvider, V as usePreviewAuth, Wt as ApiRequestError, X as useServerRefresh, Xp as API_ENDPOINTS, Yp as OPERATION_ID_HEADER, _h as Button, _n as renderSourceFor, a as PreviewPageDesignEditorStateProvider, am as selectedCanvasBlockId, at as EditLeaseModal, au as measureSiteStickyChromeHeightPx, bm as DialogFooter, cu as siteTopChromeMeasurementTargets, en as useEditorUiStoreInstance, et as savedContentReceipt, f as PreviewThemeJournalProvider, g as previewThemeBase, g_ as indexRenderableMediaAssets, gm as Dialog, gn as remoteDraftValues, h_ as renderableMediaAssetSchema$1, hn as planLinkedSaveHandoverRetention, i as usePreviewSidebarNavigation, im as unwrapResponse, it as EditLeaseDiscardedNotice, iu as SITE_STICKY_CHROME_HEIGHT_FALLBACK, iy as assertNever$2, jh as canEditorWrite, l as SiteChromeCustomizeProvider, lt as getEditorClientId, m as usePreviewThemeSourceOptional, m_ as buildRenderableMediaAssetIndex, mm as CalloutDescription, mn as activeLinkedSaveHandover, mp as assertNever$1, mv as parseEditLeaseScope, nt as useRetentionTicks, nu as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, on as SIDEBAR_WIDTH, ot as EditorWriteSurface, p as usePreviewThemeSource, pm as Callout, qp as editorAdmissionSession, qt as createSnapshotFromPageRecord, r as PreviewSidebarBootstrap, rt as VIEWING_PARTICIPATION, ru as SITE_STICKY_CHROME_HEIGHT_CSS_VAR, sn as parseStoredSidebarWidth, su as planSiteOverlayHeaderClearance, t as PreviewAssistantSlotProvider, tn as useOptionalEditorUiStoreInstance, tt as savedPageSurfaceMetadataReceipt, vm as DialogContent, wn as unsafeAsLinkedContentEntryId, wu as planSiteChromePlacement, xm as DialogHeader, ym as DialogDescription, yn as resolveRenderedValues, z as registerPreviewRenewalFetcher } from "./previewAssistantSlot-3FZrzbK8.mjs";
|
|
4
|
+
import { U as GripVertical } from "./lucide-react-X0DjcFij.mjs";
|
|
5
|
+
import { E as usePreviewCompiledTheme, En as parseFooterModuleId, Gt as DEFAULT_THEME_RESPONSIVE_MODE, H as createEditorApiClientFactory, Kt as getResponsiveScopeSpec, L as SessionJournalHost, Mt as LINKED_CONTENT_ENTRY_META_KEY, N as mergeResolvedDataContext, Pt as getLinkedContentEntryMeta, Q as MediaEditorContextProvider, T as PreviewThemeRenderingProvider, Vt as themeRuntimeScopeProps, Yt as Toaster, a as PreviewChromeLayerProvider, at as ImageResolveContextProvider, b as SiteFontStorageProvider, bt as revealEditorElement, c as PREVIEW_SITE_BANNER_ATTRIBUTE, ct as BlockApiProvider, dn as TabsContent, f as canInspectSiteStyle, fn as TabsList, g as sanitizeDashboardPath, h as resolvePreviewDashboardSetupHandoff, m as buildPreviewDashboardSetupUrl, p as resolveSiteStyleAccess, pn as TabsTrigger, t as SiteChromeCustomizeButton, tt as useApiMediaUploader, un as Tabs, v as resolvePreviewSetupBannerModel, w as PreviewCompiledThemeProvider, xt as ThemeScopeCore, z as renderSiteChromeBlock, zt as buildThemeDataAttrs } from "./SiteChromeCustomizeButton-eU-zMftO.mjs";
|
|
6
|
+
import { n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-OwAxA2C0.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, o as readPreviewThemeCookie, p as FixedBottomSurface, r as PREVIEW_CHROME_THEME_CLASS_NAME, s as subscribePreviewThemeCookie, t as PreviewChromeRootProvider, u as PREVIEW_KEEP_ALIVE_JITTER_RATIO } from "./previewChromeRoot-C4gyNQXE.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";
|
|
@@ -88,7 +88,7 @@ function ResizableSplitPane({ left, right, defaultSplit = 40, minLeftWidth = 300
|
|
|
88
88
|
className: "flex h-full flex-col",
|
|
89
89
|
children: [
|
|
90
90
|
/* @__PURE__ */ jsxs(TabsList, {
|
|
91
|
-
className: "w-full justify-start rounded-none
|
|
91
|
+
className: "w-full justify-start rounded-none",
|
|
92
92
|
children: [/* @__PURE__ */ jsx(TabsTrigger, {
|
|
93
93
|
value: "left",
|
|
94
94
|
className: "flex-1",
|
|
@@ -2076,7 +2076,7 @@ function MediaEditorProvider({ siteId, apiClient, children, bucket = DEFAULT_MED
|
|
|
2076
2076
|
}
|
|
2077
2077
|
//#endregion
|
|
2078
2078
|
//#region ../content-editor/src/services/pageSurfaceEditorServices.ts
|
|
2079
|
-
async function writePageSurfaceContent(apiClient, writer, call) {
|
|
2079
|
+
async function writePageSurfaceContent(apiClient, writer, onSaved, call) {
|
|
2080
2080
|
const request = {
|
|
2081
2081
|
params: { ...call.params },
|
|
2082
2082
|
body: { ...call.body }
|
|
@@ -2091,6 +2091,7 @@ async function writePageSurfaceContent(apiClient, writer, call) {
|
|
|
2091
2091
|
endpoint: "saveEventContentTab",
|
|
2092
2092
|
...request
|
|
2093
2093
|
}));
|
|
2094
|
+
onSaved?.({ sectionConflicts: result.sectionConflicts });
|
|
2094
2095
|
return {
|
|
2095
2096
|
...savedContentReceipt(result.document),
|
|
2096
2097
|
...result.visibility === "live" ? { publication: {
|
|
@@ -2109,7 +2110,7 @@ function createPageSurfaceEditorServices(input, deps) {
|
|
|
2109
2110
|
return {
|
|
2110
2111
|
kind: "surface",
|
|
2111
2112
|
async saveContent(content, optimisticHash) {
|
|
2112
|
-
return writePageSurfaceContent(deps.apiClient, input.contentWriter ?? "draft", {
|
|
2113
|
+
return writePageSurfaceContent(deps.apiClient, input.contentWriter ?? "draft", input.onContentSaved, {
|
|
2113
2114
|
params,
|
|
2114
2115
|
body: {
|
|
2115
2116
|
data: content,
|
|
@@ -2974,7 +2975,7 @@ const frameStore = {
|
|
|
2974
2975
|
function PreviewScrollViewport({ children }) {
|
|
2975
2976
|
const viewportRef = useRef(null);
|
|
2976
2977
|
const selection = usePreviewSidebarNavigation();
|
|
2977
|
-
const blockId = selection.navigation
|
|
2978
|
+
const blockId = selectedCanvasBlockId(selection.navigation);
|
|
2978
2979
|
const requestId = selection.requestId;
|
|
2979
2980
|
useEffect(() => {
|
|
2980
2981
|
const viewport = viewportRef.current;
|
|
@@ -4188,10 +4189,10 @@ function resolveShellThemeRoles(props, journalSource) {
|
|
|
4188
4189
|
}
|
|
4189
4190
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
4190
4191
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
4191
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
4192
|
+
return { default: (await import("./PreviewEditorSidebar-DJlX4sXP.mjs")).PreviewEditorSidebar };
|
|
4192
4193
|
});
|
|
4193
4194
|
const PreviewEditorUI = React.lazy(async () => {
|
|
4194
|
-
return { default: (await import("./PreviewEditorUI-
|
|
4195
|
+
return { default: (await import("./PreviewEditorUI-FVAibBlC.mjs")).PreviewEditorUI };
|
|
4195
4196
|
});
|
|
4196
4197
|
function renderShellProviders(input) {
|
|
4197
4198
|
if (!input.themeRoles) return input.content;
|
|
@@ -4715,10 +4716,19 @@ function PreviewEditorMount({ props, apiClient, access }) {
|
|
|
4715
4716
|
]);
|
|
4716
4717
|
const editable = isPreviewRuntimeSessionEditable(props.previewSession);
|
|
4717
4718
|
const ordinaryPageId = props.pageId && !props.entryData && props.pageNodeType !== "page_surface" ? props.pageId : null;
|
|
4719
|
+
const pageSurface = useMemo(() => props.pageNodeType === "page_surface" && props.pageId && props.pageSurfaceSubject ? {
|
|
4720
|
+
pageSurfaceId: props.pageId,
|
|
4721
|
+
subject: props.pageSurfaceSubject
|
|
4722
|
+
} : null, [
|
|
4723
|
+
props.pageNodeType,
|
|
4724
|
+
props.pageId,
|
|
4725
|
+
props.pageSurfaceSubject
|
|
4726
|
+
]);
|
|
4718
4727
|
const renderContent = (initialPageJournalState, authoringAdmitted, editorClient = null) => /* @__PURE__ */ jsx(PreviewAssistantHostProvider, {
|
|
4719
4728
|
value: {
|
|
4720
4729
|
siteId: props.siteId,
|
|
4721
4730
|
pageId: ordinaryPageId,
|
|
4731
|
+
pageSurface,
|
|
4722
4732
|
apiBaseUrl: props.apiBaseUrl,
|
|
4723
4733
|
dashboardBaseUrl: props.dashboardBaseUrl,
|
|
4724
4734
|
businessTimeZone: props.businessTimeZone,
|