@riverbankcms/sdk 0.170.0 → 0.171.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/CHANGELOG.md +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
- package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
- package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-BBgih00D.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-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
- package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
- package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.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-DH2sm4Cf.mjs} +2696 -2426
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-CsRlU46Y.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-Bbn1-jJ8.mjs} +52 -2
- package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
- package/dist/client/client.mjs +640 -218
- 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-pzQkBLgS.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-Cl6mgSJa.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
- package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.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-CJuPX_1K.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
- package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.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-DOQ7El1d.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
- 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-DnaJ8PQc.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
- package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
- package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.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-CHGYDxdM.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
- package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
- package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
- package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
- 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-lW2aLGWd.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
- 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-DygTyy7K.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
- package/dist/preview-next/container-responsive.css +43 -0
- 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-CtSgU8UZ.mjs} +547 -188
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
- package/dist/server/bindings-CiYpie1M.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
- 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-DeLQeJAZ.mjs +2310 -0
- package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.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-ukEz1BaM.mjs} +2 -2
- package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.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-DFv3h4Ib.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
- 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-CT4YSBve.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
- 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-C92Q8y0-.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-vSBCWU3w.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.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/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
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { Bt as
|
|
4
|
-
import { A as applyPreviewRuntimeContentProjections, At as
|
|
5
|
-
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { f as
|
|
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-C1WUNsj9.mjs";
|
|
10
|
-
import { t as useOpenBlockForSetup } from "./useOpenBlockForSetup-CipKCK2O.mjs";
|
|
2
|
+
import { $_ as generateUuidV4, $d as inlineTextToPlainText, $p as calendarWindowQuerySchema, $t as useEditorUiStore, $u as formCopyFragment, Bl as bookingConsentCarrierSchema, Cg as textColorStyle, Cr as selectBlockContent, Cv as readPublishedBlockPlacement, D as PreviewRenderPlanProjection, Dg as parseSurfaceTree, Fr as normalizeBlockContent, Gd as parseGeneratedIconSetId, Gh as bindingSchema, Gu as richTextFragment, H as usePreviewToken, Hd as parseBlockIconValue, Hp as isRecord$1, Jd as coerceInlineTextWithFallback, Jn as planArrangementContent, Ju as faqAccordionFragment, Ku as headingFragment, La as buildResolveImageUrlContext, Ll as publicEventsArraySchema, Lr as normalizeLocationMapSource, Lv as unsafeAsEditorBlockId, Md as validateManifestDraft, Nr as getBlockDefinition, Od as runTransforms, Oi as projectRecurringSchedule, Qn as retargetJoinsAcrossOmissions, Qu as formEmbedFragment, Ra as getCurrentResolveImageUrlContext, Rr as resolveLocationMapLocation, Sa as RichText$1, Sr as readinessFactsFromLoaders, Sv as readEditorBlockVersionsFromPlacement, T as ObservedJoin, Vh as canWriteLinkedEntry, Vp as isObjectRecord, Vu as pageTemplateFromEntry, Wd as parseGeneratedIconAssetId, Xn as joinSlotKey, Xu as blogFeaturedPostFragment, Yd as deriveInlineTextFieldChanges, Yn as composePageJoins, Yu as faqHeadingFragment, Zn as renderedJoinLayout, Zu as singleButtonFragment, _n as renderSourceFor, _r as mapOutlineBlocks, _u as readRuntimeNow, a_ as expandPalette, ar as siblingPath, bi as publicRouteCandidatesSchema, dv as sameMailingListPlacementTargeting, ed as testimonialsCarouselFragment, ef as isInlineTextEmpty, en as useEditorUiStoreInstance, gn as remoteDraftValues, gr as allOutlineBlocks, gy as assertNever, hr as createEditorPresentationPageReader, id as ctaRowFragment, im as unwrapResponse, ir as getAtPath, iy as toUtcIsoDateTimeString, jd as compileManifestContentContract, kd as defineFragment, nd as ctaCopyFragment, og as compileButtonColourStates, p_ as themeSchema, po as offeringsListingFor, qn as createPageRenderPlanReader, qu as cardFragment, rd as heroCtaRowFragment, s as usePreviewPageDesignRenderState, sd as heroCopyFragment, so as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, sv as parseMailingListPlacementTargeting, td as testimonialsHeadingFragment, tv as buildMailingListSignupBlockSourceRef, vd as ctaButton, vn as renderedFieldChanges, vr as mapOutlineRegions, vu as resolveDateRuntimeContext, wn as unsafeAsLinkedContentEntryId, wv as selectedContentVersionId, xv as NO_BLOCK_VERSIONS, yd as bodyCopyFragment, yi as offeringsPreviewBlockDefinition, yn as resolveRenderedValues, za as setContextResolveImageUrlContext } from "./previewAssistantSlot-CuOcsG_N.mjs";
|
|
3
|
+
import { Bt as parseLocationValue, Ht as publicLocationSchema, Pt as decideLocationSourcePermission, Vt as projectPublicLocation } from "./lucide-react-DygTyy7K.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, j as entryFieldRebindingProjection, jt as Text$1, k as resolveRuntimePreviewSourceForTheme, kt as renderInlineText, r as PreviewChromeFloatingBar, rt as clientComponentRegistry, wt as blockLookFromContent } from "./SiteChromeCustomizeButton-H_ciMNHA.mjs";
|
|
5
|
+
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-CKYjeU_M.mjs";
|
|
6
|
+
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, S as useRichTextEditor, T as InlineTextEditor, m as useRichTextImageProjection, n as pageSectionIdFromBlockId, r as BlockToolbar, t as PageSectionToolbar, w as parseRichTextDoc, y as RichTextEditorSurface } from "./PageSectionToolbar-DsSqwrMS.mjs";
|
|
7
|
+
import { f as useEditor } from "./previewChromeRoot-DPeV7KaP.mjs";
|
|
8
|
+
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-CBWYjBvQ.mjs";
|
|
11
9
|
import * as React$1 from "react";
|
|
12
10
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import {
|
|
12
|
+
import { z } from "zod";
|
|
15
13
|
//#region ../site-contracts/src/identity/loaderEndpoints.ts
|
|
16
14
|
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
17
15
|
"listPublishedEntries",
|
|
@@ -199,7 +197,7 @@ function generatedIconAssetRefKey(ref) {
|
|
|
199
197
|
}
|
|
200
198
|
function collectGeneratedIconAssetRefs(page) {
|
|
201
199
|
const blocks = [];
|
|
202
|
-
for (const block of page
|
|
200
|
+
for (const block of allOutlineBlocks(page)) {
|
|
203
201
|
if (block.kind !== "block.feature-cards" || typeof block.id !== "string") continue;
|
|
204
202
|
const content = isRecord(block.draftContent) ? block.draftContent : isRecord(block.content) ? block.content : null;
|
|
205
203
|
const cards = Array.isArray(content?.cards) ? content.cards : [];
|
|
@@ -534,7 +532,7 @@ function shouldSkipResolvedLoader(input) {
|
|
|
534
532
|
/** Resolve once through the shared bindings owner; request reuse never reuses content provenance. */
|
|
535
533
|
function planBlockDataRequests(page, context, options = {}) {
|
|
536
534
|
const runtime = admitLoaderDateRuntime(context);
|
|
537
|
-
const blocks = page.
|
|
535
|
+
const blocks = allOutlineBlocks(page).flatMap((block) => block.id ? [planBlockRequests(block, block.id, context, options, runtime)] : []);
|
|
538
536
|
return {
|
|
539
537
|
blocks,
|
|
540
538
|
loaderSnapshot: {
|
|
@@ -1240,7 +1238,7 @@ function hydrateResolvedBookingConsentValue(value, context) {
|
|
|
1240
1238
|
return hydratedEntries.every(([key, entry]) => entry === value[key]) ? value : Object.fromEntries(hydratedEntries);
|
|
1241
1239
|
}
|
|
1242
1240
|
function isBookingConsentCarrier(value) {
|
|
1243
|
-
return
|
|
1241
|
+
return z.safeParse(bookingConsentCarrierSchema, value).success;
|
|
1244
1242
|
}
|
|
1245
1243
|
function hydrateValue(value, context) {
|
|
1246
1244
|
try {
|
|
@@ -1368,16 +1366,30 @@ function preparePageRenderEntries(input, previous = null) {
|
|
|
1368
1366
|
const entries = prepared.map(([, value]) => value);
|
|
1369
1367
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
1370
1368
|
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
|
|
1369
|
+
const surviving = new Set(survivors);
|
|
1370
|
+
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
1371
|
+
const regions = {
|
|
1372
|
+
main: survivingPreparedRegion(input.plan.regions.main, survivingByEntry),
|
|
1373
|
+
aside: survivingPreparedRegion(input.plan.regions.aside, survivingByEntry)
|
|
1374
|
+
};
|
|
1371
1375
|
return {
|
|
1372
1376
|
input,
|
|
1373
1377
|
byEntry: new Map(prepared),
|
|
1374
1378
|
preparation: {
|
|
1379
|
+
regions,
|
|
1375
1380
|
entries: survivors,
|
|
1376
1381
|
constructionFailures,
|
|
1377
|
-
joins: composeSurvivorJoins(input.plan,
|
|
1382
|
+
joins: composeSurvivorJoins(input.plan, regions.main, input.themeResources)
|
|
1378
1383
|
}
|
|
1379
1384
|
};
|
|
1380
1385
|
}
|
|
1386
|
+
/** Placement comes from the plan; preparation only removes entries that cannot render. */
|
|
1387
|
+
function survivingPreparedRegion(entries, survivors) {
|
|
1388
|
+
return entries.flatMap((entry) => {
|
|
1389
|
+
const prepared = survivors.get(entry);
|
|
1390
|
+
return prepared ? [prepared] : [];
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1381
1393
|
/** Admission always sees current loader provenance, even when block preparation can be reused. */
|
|
1382
1394
|
function preparationAdmission(input) {
|
|
1383
1395
|
const facts = readinessFactsFromLoaders("published", {
|
|
@@ -1441,7 +1453,7 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
|
|
|
1441
1453
|
return composePageJoins({
|
|
1442
1454
|
joins: retargetJoinsAcrossOmissions({
|
|
1443
1455
|
joins: plan.runtimeJoins,
|
|
1444
|
-
originalBlocks: plan.
|
|
1456
|
+
originalBlocks: plan.regions.main.map((planned) => planned.block),
|
|
1445
1457
|
survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
|
|
1446
1458
|
}),
|
|
1447
1459
|
survivors: survivors.map(({ entry }) => ({
|
|
@@ -1564,12 +1576,13 @@ function blockSessionProps(dataContext) {
|
|
|
1564
1576
|
}
|
|
1565
1577
|
/** What this render is *about* — the entry, occurrence or surface in scope. */
|
|
1566
1578
|
function blockSubjectProps(dataContext) {
|
|
1579
|
+
const { occurrenceContext = null, entrySubrouteContext = null, contentEntry = null, pageSurface = null, subject = null } = dataContext ?? {};
|
|
1567
1580
|
return {
|
|
1568
|
-
occurrenceContext
|
|
1569
|
-
entrySubrouteContext
|
|
1570
|
-
contentEntry
|
|
1571
|
-
pageSurface
|
|
1572
|
-
subject
|
|
1581
|
+
occurrenceContext,
|
|
1582
|
+
entrySubrouteContext,
|
|
1583
|
+
contentEntry,
|
|
1584
|
+
pageSurface,
|
|
1585
|
+
subject
|
|
1573
1586
|
};
|
|
1574
1587
|
}
|
|
1575
1588
|
function arrangementResolvedData(kind, content, data) {
|
|
@@ -1776,18 +1789,33 @@ function PageRendererCore(props) {
|
|
|
1776
1789
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
|
|
1777
1790
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1778
1791
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
1779
|
-
|
|
1792
|
+
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
1780
1793
|
entry,
|
|
1781
1794
|
index,
|
|
1782
|
-
entries
|
|
1795
|
+
entries,
|
|
1783
1796
|
props,
|
|
1784
1797
|
themeResources,
|
|
1785
1798
|
imageResolveContext,
|
|
1786
1799
|
resolvedRegistry,
|
|
1787
|
-
joinSlots,
|
|
1800
|
+
joinSlots: joins,
|
|
1788
1801
|
wrapBlock: props.wrapBlock,
|
|
1789
1802
|
renderJoin: props.renderJoin
|
|
1790
|
-
}))
|
|
1803
|
+
}));
|
|
1804
|
+
const { main, aside } = preparation.regions;
|
|
1805
|
+
if (aside.length === 0) return /* @__PURE__ */ jsx("div", { children: renderRegion(main, joinSlots) });
|
|
1806
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1807
|
+
className: "rb-page-layout",
|
|
1808
|
+
"data-page-layout": "main-aside",
|
|
1809
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
1810
|
+
className: "rb-page-layout__main",
|
|
1811
|
+
"data-page-region": "main",
|
|
1812
|
+
children: renderRegion(main, joinSlots)
|
|
1813
|
+
}), /* @__PURE__ */ jsx("aside", {
|
|
1814
|
+
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
1815
|
+
"data-page-region": "aside",
|
|
1816
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
1817
|
+
})]
|
|
1818
|
+
});
|
|
1791
1819
|
}
|
|
1792
1820
|
/**
|
|
1793
1821
|
* The render pass's effects, kept out of both memos and run in the order the
|
|
@@ -2696,22 +2724,19 @@ const PreviewRichTextEditor = memo(PreviewRichTextEditorInner);
|
|
|
2696
2724
|
//#region ../preview-next/src/client/blocks/authoringLocationMaps.ts
|
|
2697
2725
|
/** A render-only projection. Canonical drafts in the editor store remain untouched. */
|
|
2698
2726
|
function projectAuthoringLocationMaps(page, admitted, siteCountry) {
|
|
2699
|
-
const ready = new Map((admitted
|
|
2727
|
+
const ready = new Map((admitted ? allOutlineBlocks(admitted) : []).flatMap((block) => {
|
|
2700
2728
|
const parsed = publicLocationSchema.safeParse(block.content?.location);
|
|
2701
2729
|
return block.id && parsed.success ? [[block.id, parsed.data]] : [];
|
|
2702
2730
|
}));
|
|
2703
|
-
return {
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
};
|
|
2713
|
-
})
|
|
2714
|
-
};
|
|
2731
|
+
return mapOutlineBlocks(page, (block) => {
|
|
2732
|
+
if (block.kind !== "block.location-map") return block;
|
|
2733
|
+
const project = (content) => projectAuthoringMapContent(content, block.id ? ready.get(block.id) : void 0, siteCountry);
|
|
2734
|
+
return {
|
|
2735
|
+
...block,
|
|
2736
|
+
content: project(block.content),
|
|
2737
|
+
draftContent: block.draftContent ? project(block.draftContent) : block.draftContent
|
|
2738
|
+
};
|
|
2739
|
+
});
|
|
2715
2740
|
}
|
|
2716
2741
|
function projectAuthoringMapContent(content, ready, siteCountry) {
|
|
2717
2742
|
if (!content || content.locationSource === "business_address" || content.locationSource === "venue") return content ?? void 0;
|
|
@@ -3124,7 +3149,7 @@ const emptySubscribe = () => () => {};
|
|
|
3124
3149
|
const zero = () => 0;
|
|
3125
3150
|
function buildPreviewBlockDataContext(dataContext) {
|
|
3126
3151
|
if (!dataContext) return {};
|
|
3127
|
-
const { siteId, pageId, previewStage, now, bookingTimeZone, routes, pagesByIdentifier, entriesByIdentifier, occurrenceContext = null, entrySubrouteContext = null, contentEntry = null, bookingOfferingPresets = [] } = dataContext;
|
|
3152
|
+
const { siteId, pageId, previewStage, now, bookingTimeZone, routes, pagesByIdentifier, entriesByIdentifier, subject, occurrenceContext = null, entrySubrouteContext = null, contentEntry = null, bookingOfferingPresets = [] } = dataContext;
|
|
3128
3153
|
return {
|
|
3129
3154
|
siteId,
|
|
3130
3155
|
pageId,
|
|
@@ -3135,6 +3160,7 @@ function buildPreviewBlockDataContext(dataContext) {
|
|
|
3135
3160
|
routes,
|
|
3136
3161
|
pagesByIdentifier,
|
|
3137
3162
|
entriesByIdentifier,
|
|
3163
|
+
subject,
|
|
3138
3164
|
occurrenceContext,
|
|
3139
3165
|
entrySubrouteContext,
|
|
3140
3166
|
contentEntry,
|
|
@@ -3306,17 +3332,12 @@ function composePageFromBlocks(args, cacheRef) {
|
|
|
3306
3332
|
function composePreviewRenderPage(args, cacheRef) {
|
|
3307
3333
|
const { page, blockItems, draftSnapshots, linkedEntryOverlays, blockVersions } = args;
|
|
3308
3334
|
if (!page) return page;
|
|
3309
|
-
const projections = args.projections.some((projection) => projection.kind === "runtime-content-decoration" && projection.source === "page-design") ? args.projections : [...args.projections, runtimeContentDecorationProjectionFromServerPage(page
|
|
3310
|
-
if (!blockItems.length) return
|
|
3311
|
-
...page,
|
|
3312
|
-
blocks: applyCacheOptimization(page.blocks.map((block, index) => mergeTemplateBlock(block, index, projections, linkedEntryOverlays)), cacheRef)
|
|
3313
|
-
};
|
|
3335
|
+
const projections = args.projections.some((projection) => projection.kind === "runtime-content-decoration" && projection.source === "page-design") ? args.projections : [...args.projections, runtimeContentDecorationProjectionFromServerPage(allOutlineBlocks(page))];
|
|
3336
|
+
if (!blockItems.length) return cacheComposedPage(mapOutlineRegions(page, (blocks) => blocks.map((block, index) => mergeTemplateBlock(block, index, projections, linkedEntryOverlays))), cacheRef);
|
|
3314
3337
|
const draftMap = draftSnapshotMap(draftSnapshots);
|
|
3315
3338
|
const renderedBlocks = applyCacheOptimization([...blockItems.map((block, index) => mergeBlockWithDraft(block, draftMap, index, projections, linkedEntryOverlays, (block.id ? blockVersions(unsafeAsEditorBlockId(block.id)) : null) ?? NO_BLOCK_VERSIONS))].sort((a, b) => (a.orderIndex ?? 0) - (b.orderIndex ?? 0)), cacheRef);
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
blocks: renderedBlocks
|
|
3319
|
-
};
|
|
3339
|
+
const asideIds = new Set(page.aside?.flatMap((block) => block.id ? [block.id] : []) ?? []);
|
|
3340
|
+
return mapOutlineRegions(page, (_blocks, region) => renderedBlocks.filter((block) => region === "aside" ? asideIds.has(block.id ?? "") : !asideIds.has(block.id ?? "")));
|
|
3320
3341
|
}
|
|
3321
3342
|
function mergeTemplateBlock(block, index, projections, linkedEntryOverlays) {
|
|
3322
3343
|
return {
|
|
@@ -3339,6 +3360,11 @@ function entryDraftProjections(uiStore, dateContext) {
|
|
|
3339
3360
|
function draftSnapshotMap(snapshots) {
|
|
3340
3361
|
return new Map(snapshots.map((snap) => [snap.id, snap]));
|
|
3341
3362
|
}
|
|
3363
|
+
/** Cache pruning sees the complete outline once, so one region cannot evict the other. */
|
|
3364
|
+
function cacheComposedPage(page, cacheRef) {
|
|
3365
|
+
const rendered = applyCacheOptimization(allOutlineBlocks(page), cacheRef);
|
|
3366
|
+
return mapOutlineRegions(page, (blocks, region) => region === "main" ? rendered.slice(0, blocks.length) : rendered.slice(page.blocks.length));
|
|
3367
|
+
}
|
|
3342
3368
|
//#endregion
|
|
3343
3369
|
//#region ../preview-next/src/client/blocks/editorRegistry.tsx
|
|
3344
3370
|
function requireClientRegistryComponent(key) {
|
|
@@ -3478,352 +3504,17 @@ const editorRegistry = {
|
|
|
3478
3504
|
linkedEntryEditFrame: LinkedEntryEditFrame
|
|
3479
3505
|
};
|
|
3480
3506
|
//#endregion
|
|
3481
|
-
//#region ../preview-next/src/client/blocks/useBlockSelection.ts
|
|
3482
|
-
const PHONE_VIEWPORT_QUERY = "(max-width: 639px)";
|
|
3483
|
-
/**
|
|
3484
|
-
* Click to select: a click anywhere in the block selects it, so its controls
|
|
3485
|
-
* stay put instead of only showing on hover. A click on an empty placeholder
|
|
3486
|
-
* also opens the side panel on the field that fills it.
|
|
3487
|
-
*/
|
|
3488
|
-
function useBlockSelection(input) {
|
|
3489
|
-
const probeRef = useRef(null);
|
|
3490
|
-
const selection = usePreviewSidebarNavigation();
|
|
3491
|
-
const selectBlock = selection.selectBlock;
|
|
3492
|
-
const onOpenFieldRef = useRef(input.onOpenField);
|
|
3493
|
-
onOpenFieldRef.current = input.onOpenField;
|
|
3494
|
-
const phone = useMediaQuery(PHONE_VIEWPORT_QUERY);
|
|
3495
|
-
const [blockElement, setBlockElement] = useState(null);
|
|
3496
|
-
useEffect(() => {
|
|
3497
|
-
const block = probeRef.current?.closest("[data-block-id]") ?? null;
|
|
3498
|
-
setBlockElement(block);
|
|
3499
|
-
if (!block || !selectBlock) return;
|
|
3500
|
-
const handleClick = (event) => {
|
|
3501
|
-
selectBlock(input.blockId);
|
|
3502
|
-
const fieldPath = (event.target instanceof Element ? event.target.closest("[data-placeholder-field]") : null)?.dataset.placeholderField;
|
|
3503
|
-
if (fieldPath) onOpenFieldRef.current(fieldPath);
|
|
3504
|
-
};
|
|
3505
|
-
block.addEventListener("click", handleClick);
|
|
3506
|
-
return () => block.removeEventListener("click", handleClick);
|
|
3507
|
-
}, [input.blockId, selectBlock]);
|
|
3508
|
-
return {
|
|
3509
|
-
probeRef,
|
|
3510
|
-
selected: selection.navigation.selectedBlock?.blockId === input.blockId,
|
|
3511
|
-
blockElement,
|
|
3512
|
-
selectedElsewhere: selection.navigation.selectedBlock?.blockId != null && selection.navigation.selectedBlock?.blockId !== input.blockId,
|
|
3513
|
-
phone
|
|
3514
|
-
};
|
|
3515
|
-
}
|
|
3516
|
-
function useMediaQuery(query) {
|
|
3517
|
-
const [matches, setMatches] = useState(false);
|
|
3518
|
-
useEffect(() => {
|
|
3519
|
-
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
|
|
3520
|
-
const list = window.matchMedia(query);
|
|
3521
|
-
const update = () => setMatches(list.matches);
|
|
3522
|
-
update();
|
|
3523
|
-
list.addEventListener("change", update);
|
|
3524
|
-
return () => list.removeEventListener("change", update);
|
|
3525
|
-
}, [query]);
|
|
3526
|
-
return matches;
|
|
3527
|
-
}
|
|
3528
|
-
//#endregion
|
|
3529
|
-
//#region ../preview-next/src/client/blocks/BlockReadinessNote.tsx
|
|
3530
|
-
/**
|
|
3531
|
-
* The canvas note on a block that isn't set up yet: only editors see it, and
|
|
3532
|
-
* it sits inside the block so it moves with it.
|
|
3533
|
-
*/
|
|
3534
|
-
function BlockReadinessNote({ needs, element, blockName, onSetUp }) {
|
|
3535
|
-
if (!needs || !element) return null;
|
|
3536
|
-
return createPortal(/* @__PURE__ */ jsxs("div", {
|
|
3537
|
-
"data-preview-readiness-note": "",
|
|
3538
|
-
role: "note",
|
|
3539
|
-
"aria-label": `${blockName}: ${NEEDS_SETUP_LABEL}`,
|
|
3540
|
-
className: "absolute left-4 top-4 z-20 flex max-w-[22rem] gap-2.5 rounded-xl border border-amber-300 bg-amber-50 p-3 text-left font-sans text-[13px] leading-snug text-slate-900 shadow-md",
|
|
3541
|
-
children: [/* @__PURE__ */ jsx(TriangleAlert, {
|
|
3542
|
-
className: "mt-0.5 h-4 w-4 shrink-0 text-amber-600",
|
|
3543
|
-
"aria-hidden": "true"
|
|
3544
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
3545
|
-
className: "min-w-0 space-y-1.5",
|
|
3546
|
-
children: [
|
|
3547
|
-
/* @__PURE__ */ jsxs("p", {
|
|
3548
|
-
className: "font-semibold",
|
|
3549
|
-
children: [
|
|
3550
|
-
blockName,
|
|
3551
|
-
" ",
|
|
3552
|
-
/* @__PURE__ */ jsxs("span", {
|
|
3553
|
-
className: "font-normal text-amber-800",
|
|
3554
|
-
children: ["· ", NEEDS_SETUP_LABEL]
|
|
3555
|
-
})
|
|
3556
|
-
]
|
|
3557
|
-
}),
|
|
3558
|
-
/* @__PURE__ */ jsx("p", { children: needsSetupMessage(needs) }),
|
|
3559
|
-
/* @__PURE__ */ jsx("p", {
|
|
3560
|
-
className: "text-xs text-slate-600",
|
|
3561
|
-
children: "You're seeing this because you're editing."
|
|
3562
|
-
}),
|
|
3563
|
-
/* @__PURE__ */ jsx("button", {
|
|
3564
|
-
type: "button",
|
|
3565
|
-
onClick: onSetUp,
|
|
3566
|
-
className: "rounded-full bg-slate-900 px-3 py-1 text-xs font-semibold text-white hover:bg-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500",
|
|
3567
|
-
children: "Set this up"
|
|
3568
|
-
})
|
|
3569
|
-
]
|
|
3570
|
-
})]
|
|
3571
|
-
}), element);
|
|
3572
|
-
}
|
|
3573
|
-
//#endregion
|
|
3574
|
-
//#region ../preview-next/src/client/blocks/insertionEdge.ts
|
|
3575
|
-
/**
|
|
3576
|
-
* A new block at `position` goes above the block now at that index; one at the
|
|
3577
|
-
* end goes below the last block. Every other block shows nothing.
|
|
3578
|
-
*/
|
|
3579
|
-
function insertionEdgeFor(input) {
|
|
3580
|
-
const { index, count, position } = input;
|
|
3581
|
-
if (position === null || index < 0) return null;
|
|
3582
|
-
if (position === index) return "top";
|
|
3583
|
-
return position >= count && index === count - 1 ? "bottom" : null;
|
|
3584
|
-
}
|
|
3585
|
-
//#endregion
|
|
3586
|
-
//#region ../preview-next/src/client/blocks/InsertionMarker.tsx
|
|
3587
|
-
/**
|
|
3588
|
-
* The edge this block shows the marker on, if the sidebar is adding a block
|
|
3589
|
-
* next to it in the collection that's mounted. Each block subscribes for
|
|
3590
|
-
* itself, so moving the marker only re-renders the blocks it moves between.
|
|
3591
|
-
*/
|
|
3592
|
-
function useInsertionEdge(blockId) {
|
|
3593
|
-
return useEditorUiStore((state) => {
|
|
3594
|
-
const view = state.sidebarNavigation.view;
|
|
3595
|
-
if (view.kind !== "addBlock" && view.kind !== "chooseLook") return null;
|
|
3596
|
-
if (!authoredValuesEqual(view.anchor.owner, state.structure.getOwner())) return null;
|
|
3597
|
-
const blocks = state.structure.getList();
|
|
3598
|
-
return insertionEdgeFor({
|
|
3599
|
-
index: blocks.findIndex((block) => String(block.id) === blockId),
|
|
3600
|
-
count: blocks.length,
|
|
3601
|
-
position: view.anchor.position
|
|
3602
|
-
});
|
|
3603
|
-
});
|
|
3604
|
-
}
|
|
3605
|
-
/**
|
|
3606
|
-
* While the sidebar is adding a block, the canvas shows where it'll go: a
|
|
3607
|
-
* line on the edge of the block it goes next to, brought into view.
|
|
3608
|
-
*/
|
|
3609
|
-
function InsertionMarker({ blockId, element }) {
|
|
3610
|
-
const edge = useInsertionEdge(blockId);
|
|
3611
|
-
const ref = useRef(null);
|
|
3612
|
-
useEffect(() => {
|
|
3613
|
-
const marker = ref.current;
|
|
3614
|
-
if (edge && marker) return revealWhenShown(marker);
|
|
3615
|
-
}, [edge, element]);
|
|
3616
|
-
if (!edge || !element) return null;
|
|
3617
|
-
return createPortal(/* @__PURE__ */ jsx(EditorInsertionMarker, {
|
|
3618
|
-
ref,
|
|
3619
|
-
edge
|
|
3620
|
-
}), element);
|
|
3621
|
-
}
|
|
3622
|
-
/**
|
|
3623
|
-
* Scrolls the marker into view once it can be seen. On phones the canvas is a
|
|
3624
|
-
* hidden tab while the sidebar adds a block, so this waits for that tab.
|
|
3625
|
-
*/
|
|
3626
|
-
function revealWhenShown(marker) {
|
|
3627
|
-
const reveal = () => marker.scrollIntoView({
|
|
3628
|
-
block: "center",
|
|
3629
|
-
behavior: "smooth"
|
|
3630
|
-
});
|
|
3631
|
-
if (typeof ResizeObserver === "undefined") {
|
|
3632
|
-
reveal();
|
|
3633
|
-
return () => {};
|
|
3634
|
-
}
|
|
3635
|
-
const observer = new ResizeObserver(() => {
|
|
3636
|
-
if (marker.getClientRects().length === 0) return;
|
|
3637
|
-
reveal();
|
|
3638
|
-
observer.disconnect();
|
|
3639
|
-
});
|
|
3640
|
-
observer.observe(marker);
|
|
3641
|
-
return () => observer.disconnect();
|
|
3642
|
-
}
|
|
3643
|
-
//#endregion
|
|
3644
|
-
//#region ../preview-next/src/client/blocks/BlockToolbar.tsx
|
|
3645
|
-
function BlockToolbar(input) {
|
|
3646
|
-
const { selection, controls, toolbar, open, openField, cycleSdk, cycleRecipe } = useBlockToolbar(input);
|
|
3647
|
-
const needs = useBlockNeedsSetup(input.blockId);
|
|
3648
|
-
const name = controls.manifest?.title ?? getBlockDefinition(input.blockKind)?.manifest.title ?? input.blockKind;
|
|
3649
|
-
const row = /* @__PURE__ */ jsxs(EditorCanvasChipRow, {
|
|
3650
|
-
label: `${name} controls`,
|
|
3651
|
-
children: [
|
|
3652
|
-
/* @__PURE__ */ jsx(EditorCanvasNameChip, {
|
|
3653
|
-
name,
|
|
3654
|
-
onOpen: open
|
|
3655
|
-
}),
|
|
3656
|
-
toolbar?.controls.mode ? /* @__PURE__ */ jsx(ArrangementModeSwitchPill, {
|
|
3657
|
-
blockLabel: name,
|
|
3658
|
-
mode: toolbar.controls.mode,
|
|
3659
|
-
onChoose: toolbar.chooseMode
|
|
3660
|
-
}) : null,
|
|
3661
|
-
/* @__PURE__ */ jsx(ToolbarLook, {
|
|
3662
|
-
controls,
|
|
3663
|
-
toolbar,
|
|
3664
|
-
onCycleSdk: cycleSdk,
|
|
3665
|
-
onCycleRecipe: cycleRecipe
|
|
3666
|
-
})
|
|
3667
|
-
]
|
|
3668
|
-
});
|
|
3669
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3670
|
-
/* @__PURE__ */ jsx("span", {
|
|
3671
|
-
ref: selection.probeRef,
|
|
3672
|
-
"aria-hidden": "true"
|
|
3673
|
-
}),
|
|
3674
|
-
/* @__PURE__ */ jsx(BlockSelectionFrame, {
|
|
3675
|
-
selected: selection.selected,
|
|
3676
|
-
element: selection.blockElement
|
|
3677
|
-
}),
|
|
3678
|
-
/* @__PURE__ */ jsx(BlockReadinessNote, {
|
|
3679
|
-
needs,
|
|
3680
|
-
element: selection.blockElement,
|
|
3681
|
-
blockName: name,
|
|
3682
|
-
onSetUp: () => needs?.repair.kind === "field" ? openField(needs.repair.path) : open()
|
|
3683
|
-
}),
|
|
3684
|
-
/* @__PURE__ */ jsx(InsertionMarker, {
|
|
3685
|
-
blockId: input.blockId,
|
|
3686
|
-
element: selection.blockElement
|
|
3687
|
-
}),
|
|
3688
|
-
/* @__PURE__ */ jsx(ToolbarPlacement, {
|
|
3689
|
-
blockId: input.blockId,
|
|
3690
|
-
placement: currentBlockToolbarPlacement,
|
|
3691
|
-
selected: selection.selected,
|
|
3692
|
-
phone: selection.phone,
|
|
3693
|
-
children: row
|
|
3694
|
-
})
|
|
3695
|
-
] });
|
|
3696
|
-
}
|
|
3697
|
-
/** A separate frame preserves the site's own borders, shadows and outlines. */
|
|
3698
|
-
function BlockSelectionFrame({ selected, element }) {
|
|
3699
|
-
return selected && element ? createPortal(/* @__PURE__ */ jsx(EditorSelectionFrame, {}), element) : null;
|
|
3700
|
-
}
|
|
3701
|
-
function useBlockToolbar(input) {
|
|
3702
|
-
const uiStore = useEditorUiStoreInstance();
|
|
3703
|
-
const editorBlockId = useMemo(() => unsafeAsEditorBlockId(input.blockId), [input.blockId]);
|
|
3704
|
-
const values = useEditorUiStore((state) => state.drafts.getCurrentValues(editorBlockId)) ?? input.content;
|
|
3705
|
-
const opener = useOpenBlockForSetup();
|
|
3706
|
-
const open = () => opener.open(editorBlockId);
|
|
3707
|
-
const openField = (fieldPath) => opener.openField(editorBlockId, fieldPath);
|
|
3708
|
-
const selection = useBlockSelection({
|
|
3709
|
-
blockId: editorBlockId,
|
|
3710
|
-
onOpenField: openField
|
|
3711
|
-
});
|
|
3712
|
-
const controls = useBlockCustomizeControls({
|
|
3713
|
-
blockId: editorBlockId,
|
|
3714
|
-
blockKind: input.blockKind,
|
|
3715
|
-
content: values,
|
|
3716
|
-
uiStore,
|
|
3717
|
-
theme: input.theme
|
|
3718
|
-
});
|
|
3719
|
-
const { state, applyAction } = usePreviewPageDesignEditorState();
|
|
3720
|
-
const toolbar = useArrangementToolbar({
|
|
3721
|
-
designBlock: controls.designBlock,
|
|
3722
|
-
content: values,
|
|
3723
|
-
pageDesignState: state,
|
|
3724
|
-
selected: selection.selected,
|
|
3725
|
-
save: (action) => {
|
|
3726
|
-
applyAction(action, { runtimeContent: values });
|
|
3727
|
-
},
|
|
3728
|
-
chooseBackground: open,
|
|
3729
|
-
openField
|
|
3730
|
-
});
|
|
3731
|
-
const cycleSdk = (direction) => cycleSdkLook(controls, direction);
|
|
3732
|
-
const cycleRecipe = (direction) => {
|
|
3733
|
-
if (!controls.designBlock) return;
|
|
3734
|
-
const action = cyclePageDesignBlockLook(controls.designBlock, direction);
|
|
3735
|
-
if (action) applyAction(action, { runtimeContent: values });
|
|
3736
|
-
};
|
|
3737
|
-
return {
|
|
3738
|
-
selection,
|
|
3739
|
-
controls,
|
|
3740
|
-
toolbar,
|
|
3741
|
-
open,
|
|
3742
|
-
openField,
|
|
3743
|
-
cycleSdk,
|
|
3744
|
-
cycleRecipe
|
|
3745
|
-
};
|
|
3746
|
-
}
|
|
3747
|
-
function cycleSdkLook(controls, direction) {
|
|
3748
|
-
const item = controls.lookSource.kind === "sdk" ? controls.lookSource.item : null;
|
|
3749
|
-
if (item?.field.type !== "select" || !controls.backend) return;
|
|
3750
|
-
const options = item.field.options;
|
|
3751
|
-
const current = options.findIndex((option) => option.value === (controls.backend?.getValue(item.path) ?? item.field.defaultValue));
|
|
3752
|
-
const next = options[(Math.max(0, current) + (direction === "next" ? 1 : options.length - 1)) % options.length];
|
|
3753
|
-
if (next) controls.backend.setValue(item.path, next.value);
|
|
3754
|
-
}
|
|
3755
|
-
/** The Look pill shows only while its arrows have somewhere to go. */
|
|
3756
|
-
function ToolbarLook({ controls, toolbar, onCycleSdk, onCycleRecipe }) {
|
|
3757
|
-
if (controls.lookSource.kind === "sdk") {
|
|
3758
|
-
const field = cyclableSdkLookField(controls.lookSource.item);
|
|
3759
|
-
return field && controls.lookSource.item ? /* @__PURE__ */ jsx(SdkToolbarLook, {
|
|
3760
|
-
field,
|
|
3761
|
-
value: controls.backend?.getValue(controls.lookSource.item.path),
|
|
3762
|
-
onCycle: onCycleSdk
|
|
3763
|
-
}) : null;
|
|
3764
|
-
}
|
|
3765
|
-
if (toolbar?.controls.look) return toolbar.controls.tiles.length > 1 ? /* @__PURE__ */ jsx(ArrangementLookPill, {
|
|
3766
|
-
look: toolbar.controls.look,
|
|
3767
|
-
position: lookTilePosition(toolbar.controls.tiles),
|
|
3768
|
-
onCycle: toolbar.cycleLook
|
|
3769
|
-
}) : null;
|
|
3770
|
-
if (!controls.designBlock) return null;
|
|
3771
|
-
const preset = pageDesignLookPosition(controls.designBlock);
|
|
3772
|
-
return preset.canCycle ? /* @__PURE__ */ jsx(LookCyclePill, {
|
|
3773
|
-
lookName: preset.lookName,
|
|
3774
|
-
position: preset.position,
|
|
3775
|
-
onCycle: onCycleRecipe
|
|
3776
|
-
}) : null;
|
|
3777
|
-
}
|
|
3778
|
-
function cyclableSdkLookField(item) {
|
|
3779
|
-
return item?.field.type === "select" && item.field.options.length > 1 ? item.field : null;
|
|
3780
|
-
}
|
|
3781
|
-
function ToolbarPlacement({ blockId, placement, selected, phone, children }) {
|
|
3782
|
-
if (phone && selected && typeof document !== "undefined") return createPortal(/* @__PURE__ */ jsx("div", {
|
|
3783
|
-
"data-preview-block-dock": "",
|
|
3784
|
-
className: "builder-dashboard-chrome-theme fixed inset-x-2 bottom-[calc(var(--builder-editor-chrome-offset,0px)+0.5rem)] rounded-xl border bg-background/95 p-2 text-foreground shadow-xl [body:has([data-state=inactive]_[data-preview-scroll-viewport])_&]:hidden",
|
|
3785
|
-
style: {
|
|
3786
|
-
...readThemeCustomProperties(document.querySelector(`[data-block-id="${blockId}"]`) ?? document.documentElement),
|
|
3787
|
-
zIndex: 30
|
|
3788
|
-
},
|
|
3789
|
-
children
|
|
3790
|
-
}), document.body);
|
|
3791
|
-
return /* @__PURE__ */ jsx(PreviewChromeFloatingControl, {
|
|
3792
|
-
anchorSelector: `[data-block-id="${blockId}"]`,
|
|
3793
|
-
placement,
|
|
3794
|
-
selected,
|
|
3795
|
-
stayInsideAnchor: true,
|
|
3796
|
-
fallbackClassName: "absolute right-4 top-2",
|
|
3797
|
-
children
|
|
3798
|
-
});
|
|
3799
|
-
}
|
|
3800
|
-
/** The floating chrome owner reads geometry; content rendering never subscribes to it. */
|
|
3801
|
-
function currentBlockToolbarPlacement() {
|
|
3802
|
-
return planBlockToolbarPlacement({ headerClearance: measureSiteTopChromeClearance() });
|
|
3803
|
-
}
|
|
3804
|
-
function SdkToolbarLook({ field, value, onCycle }) {
|
|
3805
|
-
const index = field.options.findIndex((option) => option.value === (value ?? field.defaultValue));
|
|
3806
|
-
return /* @__PURE__ */ jsx(LookCyclePill, {
|
|
3807
|
-
lookName: field.options[index]?.label ?? "Choose a Look",
|
|
3808
|
-
position: lookPositionLabel(index, field.options.length),
|
|
3809
|
-
onCycle
|
|
3810
|
-
});
|
|
3811
|
-
}
|
|
3812
|
-
//#endregion
|
|
3813
3507
|
//#region ../preview-next/src/client/blocks/EditablePageRenderer.tsx
|
|
3814
3508
|
/** Published requests bypass every editor, draft and design projection. View presentation of a live draft still uses the draft renderer. */
|
|
3815
3509
|
function EditablePageRenderer(props) {
|
|
3816
3510
|
const shown = usePreviewCompiledThemeOptional();
|
|
3817
3511
|
if (props.dataContext?.previewStage === "published") {
|
|
3818
3512
|
const { blockDataApiClient: _blockDataApiClient, previewAs: _previewAs, previewAuthoring: _previewAuthoring, renderJoin: _renderJoin, ...published } = props;
|
|
3819
|
-
const page = published.page ? {
|
|
3820
|
-
...
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
publishedPlacement: readPublishedBlockPlacement(typeof block.contentVersionId === "string" ? block.contentVersionId : null, block.content)
|
|
3825
|
-
}))
|
|
3826
|
-
} : null;
|
|
3513
|
+
const page = published.page ? mapOutlineBlocks(published.page, (block) => ({
|
|
3514
|
+
...block,
|
|
3515
|
+
draftContent: null,
|
|
3516
|
+
publishedPlacement: readPublishedBlockPlacement(typeof block.contentVersionId === "string" ? block.contentVersionId : null, block.content)
|
|
3517
|
+
})) : null;
|
|
3827
3518
|
return /* @__PURE__ */ jsx(EditorPageRenderer, {
|
|
3828
3519
|
...published,
|
|
3829
3520
|
page,
|
|
@@ -3918,8 +3609,8 @@ function EditableDraftPageRenderer(props) {
|
|
|
3918
3609
|
]);
|
|
3919
3610
|
const runtimeJoins = editorRuntimeJoins(runtimeProjection, pageRendererProps.runtimeJoins);
|
|
3920
3611
|
const renderedBlockById = useMemo(() => {
|
|
3921
|
-
return new Map(renderPage.
|
|
3922
|
-
}, [renderPage
|
|
3612
|
+
return new Map(allOutlineBlocks(renderPage).filter((block) => Boolean(block.id)).map((block) => [block.id, block]));
|
|
3613
|
+
}, [renderPage]);
|
|
3923
3614
|
const renderJoinWithControl = useCallback((input) => {
|
|
3924
3615
|
const previousBlock = renderedBlockById.get(input.previousBlockId);
|
|
3925
3616
|
const nextBlock = renderedBlockById.get(input.nextBlockId);
|
|
@@ -3946,13 +3637,16 @@ function EditableDraftPageRenderer(props) {
|
|
|
3946
3637
|
const wrapBlockWithProvider = useCallback((blockId, rendered, { block, content }) => {
|
|
3947
3638
|
return /* @__PURE__ */ jsx(EditableBlockProvider, {
|
|
3948
3639
|
blockId,
|
|
3949
|
-
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [rendered,
|
|
3640
|
+
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [rendered, !isEntryTemplatePage ? /* @__PURE__ */ jsx(BlockToolbar, {
|
|
3950
3641
|
blockId,
|
|
3951
3642
|
blockKind: block.kind,
|
|
3952
3643
|
content,
|
|
3953
3644
|
bookingOfferingPresets: bookingOfferingPresets ?? [],
|
|
3954
3645
|
theme: previewTheme
|
|
3955
|
-
}) :
|
|
3646
|
+
}) : pageSectionIdFromBlockId(blockId) ? /* @__PURE__ */ jsx(PageSectionToolbar, {
|
|
3647
|
+
blockId,
|
|
3648
|
+
content
|
|
3649
|
+
}) : null] })
|
|
3956
3650
|
});
|
|
3957
3651
|
}, [
|
|
3958
3652
|
bookingOfferingPresets,
|
|
@@ -3966,8 +3660,8 @@ function EditableDraftPageRenderer(props) {
|
|
|
3966
3660
|
serverDataContext: pageRendererProps.dataContext
|
|
3967
3661
|
});
|
|
3968
3662
|
useLinkedSaveHandoverRetention(uiStore, entryDataContext, liveResolvedData.resolvedData);
|
|
3969
|
-
const generatedIconAssetOverlay = useMemo(() => generatedIconAssetsByBlock(uiStore, renderPage
|
|
3970
|
-
renderPage
|
|
3663
|
+
const generatedIconAssetOverlay = useMemo(() => generatedIconAssetsByBlock(uiStore, allOutlineBlocks(renderPage)), [
|
|
3664
|
+
renderPage,
|
|
3971
3665
|
renderStateVersion,
|
|
3972
3666
|
uiStore
|
|
3973
3667
|
]);
|
|
@@ -4212,7 +3906,7 @@ function resolveSdkPreviewRuntimeModel(props) {
|
|
|
4212
3906
|
const routeMap = content.routeMap ?? void 0;
|
|
4213
3907
|
const sdkConfig = getSdkConfigForPreview(content.sdkConfig);
|
|
4214
3908
|
const customBlocks = isSdkCustomBlockArray(content.customBlocks) ? content.customBlocks : null;
|
|
4215
|
-
const initialBlocks = (page
|
|
3909
|
+
const initialBlocks = allOutlineBlocks(page).map(toPreviewBlock);
|
|
4216
3910
|
const commonModel = {
|
|
4217
3911
|
content,
|
|
4218
3912
|
customBlocks,
|