@riverbankcms/sdk 0.171.0 → 0.172.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-xuFmD41p.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
- package/dist/_dts/{Page-4fzXy8H9.d.ts → Page-DViYbakk.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BlHgMsc8.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
- package/dist/_dts/{client-BPoU758C.d.ts → client-DZBOzd3U.d.ts} +1 -2
- package/dist/_dts/{content-types-TnkhoSls.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
- package/dist/_dts/{contracts-7wrMA79U.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DaOsPQ_Q.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9aDEzKK.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
- package/dist/_dts/{index-DDKJfaLY.d.ts → index-BnMavhoh.d.ts} +2 -2
- package/dist/_dts/{index-585vn6qb.d.ts → index-C0zjLMAW.d.ts} +49 -38
- package/dist/_dts/{index-W9R3Bnf2.d.ts → index-CpOkfBt1.d.ts} +3 -3
- package/dist/_dts/{index-Cbw0IiY7.d.ts → index-Da4UMgbs.d.ts} +2 -2
- package/dist/_dts/{index-DNCDENic.d.ts → index-DkFV_1Bc.d.ts} +1 -1
- package/dist/_dts/{index-ChNbrcgD.d.ts → index-Dns7OHyl.d.ts} +1 -1
- package/dist/_dts/{index-CZKSUcDs.d.ts → index-MuMYjetm.d.ts} +4 -4
- package/dist/_dts/{loadContent-DPyNAJym.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
- package/dist/_dts/{request-jXTRN1Y4.d.ts → request-wQ28JWbr.d.ts} +66983 -65876
- package/dist/_dts/{resolveBlockData-BbvE-gsZ.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BBgih00D.d.ts → resolvePageContent-Cc4zqaEC.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -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 +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +18 -1
- package/dist/_dts/{types-kWvBwYK6.d.ts → types-CpjyP5I4.d.ts} +7 -7
- package/dist/_dts/{types-DEAKoDNi.d.ts → types-DrinAfeW.d.ts} +3 -3
- package/dist/_dts/{types-BXuVxDYo.d.ts → types-ZuZoGsZV.d.ts} +2 -2
- package/dist/_dts/{validation-BAO0_ntM.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DfMsMIej.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-aaSicywS.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-OgftZ9QC.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-iMWrY6Hz.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BCumOTLY.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
- package/dist/client/{EventCalendar.client-kh7mkYnW.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
- package/dist/client/{EventCombined.client-DXD5i0Ar.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-BnwcoFQN.mjs → EventItem-sKBofjiW.mjs} +40 -14
- package/dist/client/{EventListWeekNavigation-DuG6z02f.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
- package/dist/client/{EventListing.client-18yfHrcr.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
- package/dist/client/{EventListing.view-BM7rTVSL.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
- package/dist/client/{EventRegistrationPayment-D5J3DR0x.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
- package/dist/client/{Page-DH2sm4Cf.mjs → Page-Ds1s3DuC.mjs} +1425 -490
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-CsRlU46Y.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-Bbn1-jJ8.mjs → accessibleSurfaces-OsAseM7H.mjs} +57 -42
- package/dist/client/{accordion-DT4MD3Np.mjs → accordion-DgwFZJSx.mjs} +1 -1
- package/dist/client/{booking-form.client-DdqNQNCa.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
- package/dist/client/{bookingForm-CLN396HU.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-iLF_3KX9.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
- package/dist/client/{carousel-DFLomCGm.mjs → carousel-0sw2Kc3a.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-BozMM5NK.mjs → cart-CPfvMDGJ.mjs} +3 -3
- package/dist/client/{cart.client-CqOOxPbW.mjs → cart.client-BJBPUTmg.mjs} +1 -1
- package/dist/client/{checkout-CTWF5nbB.mjs → checkout-DU4JFjGT.mjs} +3 -3
- package/dist/client/{checkout.client-CpqxN8e0.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
- package/dist/client/{checkoutUrls-Ccg6yfjq.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
- package/dist/client/client.mjs +151 -6
- package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
- package/dist/client/{cta-pzQkBLgS.mjs → cta-CNVQHLKs.mjs} +53 -11
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
- package/dist/client/{display-Cl6mgSJa.mjs → display-B5DfNb6A.mjs} +1869 -333
- package/dist/client/{enhanceHeaderSection-CJCl0HJC.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
- package/dist/client/{event-details.client-Pn9Kxh3I.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
- package/dist/client/{event-registration.client-BAmBdWXE.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
- package/dist/client/{eventCalendar-C5Bh2L8L.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
- package/dist/client/{eventCombined-dELKxxIe.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
- package/dist/client/{eventDetails-Do9D_fJ_.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
- package/dist/client/{eventListing-B2HTUWLq.mjs → eventListing-EhSDk4UL.mjs} +4 -4
- package/dist/client/{eventRegistration-ByOJnqGc.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
- package/dist/client/{form-DX70QG-J.mjs → form-BfChzSkS.mjs} +3 -3
- package/dist/client/{form.client-CJoqBrS6.mjs → form.client-D1zehtPk.mjs} +4 -4
- package/dist/client/{form.parts-DTof9pL3.mjs → form.parts-rMDlUQIv.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJuPX_1K.mjs → headerSection-BX9bQ84k.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CqzNjOft.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DjJsFms2.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
- package/dist/client/{newsletterForm-D1MHoPbh.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DOQ7El1d.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
- package/dist/client/{product-list.client-CmxOZbzL.mjs → product-list.client-CDL-jihv.mjs} +1 -1
- package/dist/client/{productDetail-BN3zv5sa.mjs → productDetail-B97m0uZy.mjs} +3 -3
- package/dist/client/{productList-GN_Id4bF.mjs → productList-DE4vSSG_.mjs} +3 -3
- package/dist/client/{propsDecoder-BdmzM3D5.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
- package/dist/client/{registry.server-BOyra8CA.mjs → registry.server-Cn8XjRte.mjs} +1464 -1183
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -16
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DnaJ8PQc.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
- package/dist/client/{runtimeResponse-BN8PoIVp.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
- package/dist/client/{runtimeResponse-B1-cyLXt.mjs → runtimeResponse-CPcA8xSm.mjs} +1 -1
- package/dist/client/{shop-LjBLDBqF.mjs → shop-BC4H0oYT.mjs} +3 -3
- package/dist/client/{shop-commerce-B8aZTdRJ.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C1FtHYl7.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
- package/dist/client/{shop.client-D0qZ3KZp.mjs → shop.client-WgGVGelc.mjs} +12 -12
- package/dist/client/{shop.interactive-DAKyWK1B.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
- package/dist/client/{shopShared-CztcSe9i.mjs → shopShared-BE6TEk2A.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-D1jDTbms.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
- package/dist/client/{useDiscountApply-CHGYDxdM.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Dew9UAEy.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
- package/dist/client/{useEventPagination-BpC7-ksE.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
- package/dist/client/{view-BxeiAL3c.mjs → view-B0TFnP4y.mjs} +198 -60
- package/dist/client/{view-ShYH3WXh.mjs → view-DNNNbnNj.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-lW2aLGWd.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-C9InQJpd.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DsSqwrMS.mjs → PageSectionToolbar-D59tHj_L.mjs} +320 -395
- package/dist/preview-next/client/{PreviewEditorSidebar-BEEWzXnU.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +761 -416
- package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI--kS9Cwsc.mjs} +126 -137
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-CBWYjBvQ.mjs → PreviewShell-Bi8-rclb.mjs} +312 -63
- package/dist/preview-next/client/{SdkPreviewModeRuntime-o-mVqWLx.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +308 -135
- package/dist/preview-next/client/{SiteChromeCustomizeButton-H_ciMNHA.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +1936 -320
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-DygTyy7K.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CuOcsG_N.mjs → previewAssistantSlot-Caofnr1Z.mjs} +23441 -21340
- package/dist/preview-next/client/{previewChromeRoot-DPeV7KaP.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-DNA1Q4L1.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BdnMlHC6.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +126 -11
- package/dist/preview-next/container-responsive.css +215 -4
- 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-CtSgU8UZ.mjs → route-contract-DsKDQoVW.mjs} +147 -2
- package/dist/server/{Block.shared-ifgaBglp.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DGDOH6OU.mjs → ThemeScopeCore-D1NTXZdX.mjs} +15 -10
- package/dist/server/{accessibleSurfaces-BuPNCWAK.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-CiYpie1M.mjs → bindings-Bp6OnR3n.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-ngWuFsmN.mjs → client-dROAfMRa.mjs} +149 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-DeLQeJAZ.mjs → loadContent-zOIrtqz-.mjs} +19 -14
- package/dist/server/{loadPage-D4J747FQ.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-ukEz1BaM.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-DSuVkpqm.mjs → overrideResolution-DjboggbB.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DFv3h4Ib.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
- package/dist/server/{pageRuntimeSupport-yHaRNWMj.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
- package/dist/server/{pageShared-CAZD0LcY.mjs → pageShared-BJjptSGp.mjs} +1039 -853
- package/dist/server/{parseThemeForPersistence-Dl7LIBJq.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
- package/dist/server/{prebuild-BKOCND3b.mjs → prebuild-CntSkZQI.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-GIoExi8A.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
- package/dist/server/{registry-BogXzcOD.mjs → registry-wYH0LH5f.mjs} +7269 -4975
- 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-CT4YSBve.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-DVISOQD9.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +53 -33
- package/dist/server/{schema-C92Q8y0-.mjs → schema-BFOqYIMQ.mjs} +2 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-vSBCWU3w.mjs → validation-DAQdPDku.mjs} +4 -4
- package/dist/server/{version-Cw5vFmUY.mjs → version-DAB0O3yx.mjs} +1 -1
- package/dist/styles/index.css +1260 -15
- package/package.json +1 -1
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-zTTFZ4MM.mjs +0 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { Bt as
|
|
4
|
-
import { A as
|
|
5
|
-
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-
|
|
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-
|
|
7
|
-
import { f as useEditor } from "./previewChromeRoot-
|
|
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-
|
|
2
|
+
import { $n as getAtPath, Av as readPublishedBlockPlacement, Cd as ctaRowFragment, Cm as unwrapResponse, Cy as assertNever, D as PreviewRenderPlanProjection, Ea as setContextResolveImageUrlContext, Ed as heroCopyFragment, Fg as parseSurfaceTree, Gn as planArrangementContent, Gu as pageTemplateFromEntry, H as usePreviewToken, Ir as normalizeLocationMapSource, Jh as canWriteLinkedEntry, Jn as renderedJoinLayout, Kd as runTransforms, Kn as composePageJoins, Ld as ctaButton, Lr as resolveLocationMapLocation, Mr as getBlockDefinition, Ov as NO_BLOCK_VERSIONS, Pr as normalizeBlockContent, Qh as bindingSchema, Rd as bodyCopyFragment, Sd as heroCtaRowFragment, Sf as parseInlineTextFromUnknown, Sr as selectBlockContent, T as ObservedJoin, Ta as getCurrentResolveImageUrlContext, Wn as createPageRenderPlanReader, Wu as hiddenFromVisitors, Wv as unsafeAsEditorBlockId, Xd as compileManifestContentContract, Xt as useEditorUiStore, Yn as retargetJoinsAcrossOmissions, Za as projectRecurringSchedule, Zd as validateManifestDraft, Zt as useEditorUiStoreInstance, _d as formEmbedFragment, _r as mapOutlineRegions, bd as testimonialsHeadingFragment, bu as resolveDateRuntimeContext, cv as buildMailingListSignupBlockSourceRef, dd as headingFragment, dy as toUtcIsoDateTimeString, ed as publicEventsArraySchema, er as siblingPath, fd as cardFragment, gd as singleButtonFragment, gn as resolveRenderedValues, gr as mapOutlineBlocks, hd as blogFeaturedPostFragment, hn as renderedFieldChanges, ho as groupOfferingRunsByCourse, hr as allOutlineBlocks, jg as textColorStyle, jv as selectedContentVersionId, kv as readEditorBlockVersionsFromPlacement, la as RichText$1, lf as parseGeneratedIconAssetId, md as faqHeadingFragment, mf as deriveInlineTextFieldChanges, mn as renderSourceFor, mr as createEditorPresentationPageReader, mv as parseMailingListPlacementTargeting, om as isObjectRecord, ov as generateUuidV4, p_ as expandPalette, pd as faqAccordionFragment, pf as coerceInlineTextWithFallback, pg as compileButtonColourStates, pn as remoteDraftValues, po as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, qn as joinSlotKey, rd as bookingConsentCarrierSchema, s as usePreviewPageDesignRenderState, sa as cardListPresentationSchemaShape, sf as parseBlockIconValue, sm as isRecord$1, so as normalizeEventRegistrationPageSurfaceSubject, ud as richTextFragment, uf as parseGeneratedIconSetId, vd as formCopyFragment, vf as inlineTextToPlainText, vi as offeringsPreviewBlockDefinition, vm as calendarWindowQuerySchema, vv as sameMailingListPlacementTargeting, wa as buildResolveImageUrlContext, x_ as themeSchema, xd as ctaCopyFragment, xn as unsafeAsLinkedContentEntryId, xo as offeringsListingFor, xr as readinessFactsFromLoaders, yd as testimonialsCarouselFragment, yf as isInlineTextEmpty, yi as publicRouteCandidatesSchema, yu as readRuntimeNow, zd as defineFragment } from "./previewAssistantSlot-Caofnr1Z.mjs";
|
|
3
|
+
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-BCNn8dEQ.mjs";
|
|
4
|
+
import { A as resolveRuntimePreviewSourceForTheme, At as resolveEventDetailsPresentation, Bt as resolvePageRouteTarget, Ct as makeDefaultBlockComponent, Dt as readBlockComposition, Et as blockLookFromContent, F as withRenderedContentEntry, Gt as buildThemeRuntime, It as coerceLinkedContentEntriesPayload, M as entryFieldRebindingProjection, Mt as renderInlineText, N as runtimeContentDecorationProjectionFromServerPage, Nt as logger, O as usePreviewCompiledThemeOptional, Ot as getDefaultComponentRegistry, P as mergeResolvedDataContext, Pt as Text$1, Rt as defaultTransforms, Tt as arrangementHooksFromContent, Vt as resolveRouteTarget, i as PreviewChromeFloatingBar, it as clientComponentRegistry, j as applyPreviewRuntimeContentProjections, jt as buildAppointmentServicesView, k as pageDesignRuntimeProjectionFromSource, kt as buildLoadedOfferingsPreviewListing, qt as mergeContentWithBlockStyleOverrides, wn as defaultThemeTokens, wt as resolveDefaultBlockTree, zt as resolveEntryRouteTarget } from "./SiteChromeCustomizeButton-CrgS3I8d.mjs";
|
|
5
|
+
import { j as createStandardButtonSurfacePolicy } from "./ThemedButton-CVYz7h68.mjs";
|
|
6
|
+
import { C as EMPTY_DOC, D as resolveSdkFooterMode, E as decideDocumentReplacement, O as EditorCanvasChip, 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-D59tHj_L.mjs";
|
|
7
|
+
import { f as useEditor } from "./previewChromeRoot-CbAI_jSH.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-Bi8-rclb.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -836,6 +836,88 @@ function normalizePublicApiLoaderParams(endpoint, params, context) {
|
|
|
836
836
|
return out;
|
|
837
837
|
}
|
|
838
838
|
//#endregion
|
|
839
|
+
//#region ../blocks/src/pageHeadingSemantics.tsx
|
|
840
|
+
/** Inspect resolved declarative markup, after conditions, bindings and repeaters. Never invoke arbitrary React components. */
|
|
841
|
+
function elements(tree) {
|
|
842
|
+
if (Array.isArray(tree)) return tree.flatMap(elements);
|
|
843
|
+
return React.isValidElement(tree) ? [tree, ...elements(tree.props.children)] : [];
|
|
844
|
+
}
|
|
845
|
+
function hasText(value) {
|
|
846
|
+
if (typeof value === "string") return value.trim().length > 0;
|
|
847
|
+
const inline = parseInlineTextFromUnknown(value);
|
|
848
|
+
return inline.ok && inlineTextToPlainText(inline.value).trim().length > 0;
|
|
849
|
+
}
|
|
850
|
+
function richTextHasH1(value) {
|
|
851
|
+
if (!value || typeof value !== "object") return false;
|
|
852
|
+
const level = Reflect.get(value, "attrs");
|
|
853
|
+
if (Reflect.get(value, "type") === "heading" && level && typeof level === "object" && Reflect.get(level, "level") === 1) return true;
|
|
854
|
+
const content = Reflect.get(value, "content");
|
|
855
|
+
return Array.isArray(content) && content.some(richTextHasH1);
|
|
856
|
+
}
|
|
857
|
+
function ownsH1(node, eventDetailsComponent) {
|
|
858
|
+
if ((node.type === "h1" || node.props.as === "h1") && (hasText(node.props.value) || React.Children.count(node.props.children) > 0)) return true;
|
|
859
|
+
if (richTextHasH1(node.props.value)) return true;
|
|
860
|
+
if (node.type !== eventDetailsComponent || !React.isValidElement(node)) return false;
|
|
861
|
+
const presentation = resolveEventDetailsPresentation({
|
|
862
|
+
...node.props,
|
|
863
|
+
subject: normalizeEventRegistrationPageSurfaceSubject(node.props.subject)
|
|
864
|
+
});
|
|
865
|
+
return presentation.arrangement === "event-header" && (presentation.selection.kind !== "empty" || Boolean(presentation.entryTitle));
|
|
866
|
+
}
|
|
867
|
+
function isSectionHeading(node) {
|
|
868
|
+
if (node.props.as !== "h2" || !hasText(node.props.value)) return false;
|
|
869
|
+
const slot = node.props["data-slot"];
|
|
870
|
+
const path = node.props.path;
|
|
871
|
+
return slot === "heading" || slot === "headline" || typeof path === "string" && /^blocks\.[^.]+\.[^.]+$/.test(path);
|
|
872
|
+
}
|
|
873
|
+
function promote(tree, heading) {
|
|
874
|
+
if (Array.isArray(tree)) {
|
|
875
|
+
const items = tree;
|
|
876
|
+
const children = items.map((child) => promote(child, heading));
|
|
877
|
+
return children.every((child, index) => child === items[index]) ? items : children;
|
|
878
|
+
}
|
|
879
|
+
if (!React.isValidElement(tree)) return tree;
|
|
880
|
+
if (tree === heading) return React.cloneElement(tree, {
|
|
881
|
+
as: "h1",
|
|
882
|
+
className: [tree.props.className, "rb-heading-level-2"].filter(Boolean).join(" ")
|
|
883
|
+
});
|
|
884
|
+
const children = promote(tree.props.children, heading);
|
|
885
|
+
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
886
|
+
}
|
|
887
|
+
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
888
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent) {
|
|
889
|
+
const nodes = [...trees.values()].flatMap(elements);
|
|
890
|
+
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
891
|
+
trees,
|
|
892
|
+
needsPageTitle: false
|
|
893
|
+
};
|
|
894
|
+
const heading = nodes.find(isSectionHeading);
|
|
895
|
+
return heading ? {
|
|
896
|
+
trees: new Map([...trees].map(([id, tree]) => [id, promote(tree, heading)])),
|
|
897
|
+
needsPageTitle: false
|
|
898
|
+
} : {
|
|
899
|
+
trees,
|
|
900
|
+
needsPageTitle: true
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
/** Inline hiding also works in SDK sites that do not load utility CSS. */
|
|
904
|
+
function PageTitleFallback({ name }) {
|
|
905
|
+
return /* @__PURE__ */ jsx("h1", {
|
|
906
|
+
style: {
|
|
907
|
+
position: "absolute",
|
|
908
|
+
width: 1,
|
|
909
|
+
height: 1,
|
|
910
|
+
padding: 0,
|
|
911
|
+
margin: -1,
|
|
912
|
+
overflow: "hidden",
|
|
913
|
+
clipPath: "inset(50%)",
|
|
914
|
+
whiteSpace: "nowrap",
|
|
915
|
+
border: 0
|
|
916
|
+
},
|
|
917
|
+
children: name
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
//#endregion
|
|
839
921
|
//#region ../blocks/src/pageRenderAudience.tsx
|
|
840
922
|
/**
|
|
841
923
|
* The single policy for what a non-renderable block looks like.
|
|
@@ -1173,6 +1255,7 @@ function offeringsPreviewPhotoCount(listing) {
|
|
|
1173
1255
|
case "no-groups":
|
|
1174
1256
|
case "nothing-to-show": return 0;
|
|
1175
1257
|
case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
|
|
1258
|
+
case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
|
|
1176
1259
|
case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
|
|
1177
1260
|
default: return assertNever(listing);
|
|
1178
1261
|
}
|
|
@@ -1192,6 +1275,113 @@ function hasPhoto(item) {
|
|
|
1192
1275
|
default: return assertNever(item);
|
|
1193
1276
|
}
|
|
1194
1277
|
}
|
|
1278
|
+
function courseGroupPhotoCount(load) {
|
|
1279
|
+
if (load.kind !== "items") return 0;
|
|
1280
|
+
const courses = groupOfferingRunsByCourse(load.items);
|
|
1281
|
+
const ungrouped = load.items.filter((item) => item.kind !== "run" || !item.run.run.listing);
|
|
1282
|
+
return courses.filter(({ course }) => course.presentation?.image).length + ungrouped.filter(hasPhoto).length;
|
|
1283
|
+
}
|
|
1284
|
+
//#endregion
|
|
1285
|
+
//#region ../blocks/src/blockContentPreparation.ts
|
|
1286
|
+
function prepareBlockContent(kind, content, data, context, audience) {
|
|
1287
|
+
return {
|
|
1288
|
+
...arrangementResolvedContent(kind, content, data, context, audience),
|
|
1289
|
+
data: arrangementResolvedData(kind, content, data)
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function arrangementResolvedData(kind, content, data) {
|
|
1293
|
+
if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
|
|
1294
|
+
return {
|
|
1295
|
+
...data,
|
|
1296
|
+
entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
function arrangementResolvedContent(kind, content, data, context, audience) {
|
|
1300
|
+
if (!data) return {
|
|
1301
|
+
content,
|
|
1302
|
+
publicVisibility: "shown"
|
|
1303
|
+
};
|
|
1304
|
+
if (kind === "block.offerings-preview") return offeringArrangementContent(content, data, context, audience);
|
|
1305
|
+
if (kind === "block.appointment-services" && content._effectiveLook !== void 0) return {
|
|
1306
|
+
content: appointmentArrangementContent(content, data, context),
|
|
1307
|
+
publicVisibility: "shown"
|
|
1308
|
+
};
|
|
1309
|
+
return {
|
|
1310
|
+
content,
|
|
1311
|
+
publicVisibility: "shown"
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
/** One listing owns card visibility, public section omission and photo counting. */
|
|
1315
|
+
function offeringArrangementContent(content, data, context, audience) {
|
|
1316
|
+
const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
|
|
1317
|
+
if (!needsOfferingListing(content, normalized)) return {
|
|
1318
|
+
content,
|
|
1319
|
+
publicVisibility: "shown"
|
|
1320
|
+
};
|
|
1321
|
+
const now = new Date(readRuntimeNow(context?.now));
|
|
1322
|
+
const listing = buildLoadedOfferingsPreviewListing({
|
|
1323
|
+
now,
|
|
1324
|
+
listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
|
|
1325
|
+
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
1326
|
+
...normalized,
|
|
1327
|
+
presets: context?.bookingOfferingPresets,
|
|
1328
|
+
catalogueEvents: readPublicEvents(data.catalogueEvents),
|
|
1329
|
+
wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
|
|
1330
|
+
...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
|
|
1331
|
+
});
|
|
1332
|
+
const prepared = {
|
|
1333
|
+
...content,
|
|
1334
|
+
_offeringsPreviewInput: {
|
|
1335
|
+
kind: "prepared",
|
|
1336
|
+
listing,
|
|
1337
|
+
now
|
|
1338
|
+
},
|
|
1339
|
+
...audience === "authoring" ? { _offeringsPreviewShowHiddenPlaceholder: true } : {}
|
|
1340
|
+
};
|
|
1341
|
+
return {
|
|
1342
|
+
content: content._effectiveLook === void 0 ? prepared : withCardListPhotoCount(prepared, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing)),
|
|
1343
|
+
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
1347
|
+
function needsOfferingListing(content, normalized) {
|
|
1348
|
+
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
1349
|
+
}
|
|
1350
|
+
function readPublicEvents(value) {
|
|
1351
|
+
const parsed = publicEventsArraySchema.safeParse(value);
|
|
1352
|
+
return parsed.success ? parsed.data : void 0;
|
|
1353
|
+
}
|
|
1354
|
+
function appointmentArrangementContent(content, data, context) {
|
|
1355
|
+
const view = buildAppointmentServicesView({
|
|
1356
|
+
arrangement: cardListArrangementForContent(content),
|
|
1357
|
+
services: data.services,
|
|
1358
|
+
categoryId: content.categoryId,
|
|
1359
|
+
pathname: context?.pathname,
|
|
1360
|
+
servicePathPrefix: context?.appointmentServicePathPrefix
|
|
1361
|
+
});
|
|
1362
|
+
const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
|
|
1363
|
+
const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
|
|
1364
|
+
return withCardListPhotoCount({
|
|
1365
|
+
...content,
|
|
1366
|
+
_appointmentServicesView: view
|
|
1367
|
+
}, photoCount);
|
|
1368
|
+
}
|
|
1369
|
+
function withCardListPhotoCount(content, photoCount) {
|
|
1370
|
+
const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
|
|
1371
|
+
return {
|
|
1372
|
+
...content,
|
|
1373
|
+
_lookHooks: {
|
|
1374
|
+
...hooks,
|
|
1375
|
+
"data-has-photo": String(photoCount > 0),
|
|
1376
|
+
"data-photo-count": String(photoCount)
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function cardListArrangementForContent(content) {
|
|
1381
|
+
const hooks = content._lookHooks;
|
|
1382
|
+
if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
|
|
1383
|
+
return cardListPresentationSchemaShape.cardArrangement.safeParse(hooks["data-arrangement"]).data;
|
|
1384
|
+
}
|
|
1195
1385
|
//#endregion
|
|
1196
1386
|
//#region ../blocks/src/system/manifest/hydrateLinks.ts
|
|
1197
1387
|
/**
|
|
@@ -1365,7 +1555,7 @@ function preparePageRenderEntries(input, previous = null) {
|
|
|
1365
1555
|
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
1366
1556
|
const entries = prepared.map(([, value]) => value);
|
|
1367
1557
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
1368
|
-
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
|
|
1558
|
+
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
1369
1559
|
const surviving = new Set(survivors);
|
|
1370
1560
|
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
1371
1561
|
const regions = {
|
|
@@ -1401,7 +1591,7 @@ function preparationAdmission(input) {
|
|
|
1401
1591
|
const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
|
|
1402
1592
|
return {
|
|
1403
1593
|
permission,
|
|
1404
|
-
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !
|
|
1594
|
+
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
|
|
1405
1595
|
};
|
|
1406
1596
|
}
|
|
1407
1597
|
function readPreparedPlanEntry(entry, input, previous, permission) {
|
|
@@ -1440,8 +1630,11 @@ function isPublicSourcePermitted(entry, permission) {
|
|
|
1440
1630
|
const rawSource = entry.renderableContent.locationSource;
|
|
1441
1631
|
return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
|
|
1442
1632
|
}
|
|
1443
|
-
function
|
|
1444
|
-
return entry.kind === "renderable" && entry.definition.readiness
|
|
1633
|
+
function entryHiddenFromVisitors(entry, facts, interaction) {
|
|
1634
|
+
return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
|
|
1635
|
+
blockId: entry.block.id ?? null,
|
|
1636
|
+
interaction
|
|
1637
|
+
}));
|
|
1445
1638
|
}
|
|
1446
1639
|
/**
|
|
1447
1640
|
* The only place joins are composed. Plan-time omissions were already
|
|
@@ -1499,26 +1692,32 @@ function buildPreparedContent(entry, content, input) {
|
|
|
1499
1692
|
const routes = input.routeMap ?? dataContext?.routes;
|
|
1500
1693
|
const hydratedContent = routes ? hydrateManifestLinks(entry.definition.manifest, content, routes, dataContext?.pagesByIdentifier, dataContext?.entriesByIdentifier) : content;
|
|
1501
1694
|
const resolved = resolveBlockData(block.id, entry.definition.dataLoaders, dataContext, routes);
|
|
1695
|
+
const { baseProps, publicVisibility } = preparedBlockProps(entry, hydratedContent, resolved, input);
|
|
1502
1696
|
return {
|
|
1503
1697
|
kind: "content",
|
|
1504
|
-
baseProps
|
|
1698
|
+
baseProps,
|
|
1699
|
+
publicVisibility,
|
|
1505
1700
|
component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
|
|
1506
1701
|
hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
|
|
1507
1702
|
routes
|
|
1508
1703
|
};
|
|
1509
1704
|
}
|
|
1510
1705
|
function preparedBlockProps(entry, content, data, input) {
|
|
1706
|
+
const prepared = prepareBlockContent(entry.block.kind, content, data, input.dataContext, input.audience);
|
|
1511
1707
|
return {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1708
|
+
baseProps: {
|
|
1709
|
+
...buildBlockOverrideProps({
|
|
1710
|
+
content: prepared.content,
|
|
1711
|
+
data: prepared.data,
|
|
1712
|
+
block: entry.block,
|
|
1713
|
+
themeResources: input.themeResources,
|
|
1714
|
+
dataContext: input.dataContext,
|
|
1715
|
+
imageResolveContext: input.imageResolveContext,
|
|
1716
|
+
routeMap: input.routeMap
|
|
1717
|
+
}),
|
|
1718
|
+
bookingTimeZone: input.dataContext?.bookingTimeZone
|
|
1719
|
+
},
|
|
1720
|
+
publicVisibility: prepared.publicVisibility
|
|
1522
1721
|
};
|
|
1523
1722
|
}
|
|
1524
1723
|
/**
|
|
@@ -1585,82 +1784,6 @@ function blockSubjectProps(dataContext) {
|
|
|
1585
1784
|
subject
|
|
1586
1785
|
};
|
|
1587
1786
|
}
|
|
1588
|
-
function arrangementResolvedData(kind, content, data) {
|
|
1589
|
-
if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
|
|
1590
|
-
return {
|
|
1591
|
-
...data,
|
|
1592
|
-
entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
|
|
1593
|
-
};
|
|
1594
|
-
}
|
|
1595
|
-
function arrangementResolvedContent(kind, content, data, context) {
|
|
1596
|
-
if (content._effectiveLook === void 0 || !data || kind !== "block.offerings-preview" && kind !== "block.appointment-services") return content;
|
|
1597
|
-
if (kind === "block.appointment-services") return appointmentArrangementContent(content, data, context);
|
|
1598
|
-
const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
|
|
1599
|
-
const now = new Date(readRuntimeNow(context?.now));
|
|
1600
|
-
const listing = buildLoadedOfferingsPreviewListing({
|
|
1601
|
-
now,
|
|
1602
|
-
listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
|
|
1603
|
-
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
1604
|
-
...normalized,
|
|
1605
|
-
presets: context?.bookingOfferingPresets,
|
|
1606
|
-
catalogueEvents: readPublicEvents(data.catalogueEvents),
|
|
1607
|
-
wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
|
|
1608
|
-
...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
|
|
1609
|
-
});
|
|
1610
|
-
return withCardListPhotoCount({
|
|
1611
|
-
...content,
|
|
1612
|
-
_offeringsPreviewInput: {
|
|
1613
|
-
kind: "prepared",
|
|
1614
|
-
listing,
|
|
1615
|
-
now
|
|
1616
|
-
}
|
|
1617
|
-
}, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing));
|
|
1618
|
-
}
|
|
1619
|
-
function readPublicEvents(value) {
|
|
1620
|
-
const parsed = publicEventsArraySchema.safeParse(value);
|
|
1621
|
-
return parsed.success ? parsed.data : void 0;
|
|
1622
|
-
}
|
|
1623
|
-
function appointmentArrangementContent(content, data, context) {
|
|
1624
|
-
const view = buildAppointmentServicesView({
|
|
1625
|
-
arrangement: cardListArrangementForContent(content),
|
|
1626
|
-
services: data.services,
|
|
1627
|
-
categoryId: content.categoryId,
|
|
1628
|
-
pathname: context?.pathname,
|
|
1629
|
-
servicePathPrefix: context?.appointmentServicePathPrefix
|
|
1630
|
-
});
|
|
1631
|
-
const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
|
|
1632
|
-
const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
|
|
1633
|
-
return withCardListPhotoCount({
|
|
1634
|
-
...content,
|
|
1635
|
-
_appointmentServicesView: view
|
|
1636
|
-
}, photoCount);
|
|
1637
|
-
}
|
|
1638
|
-
function withCardListPhotoCount(content, photoCount) {
|
|
1639
|
-
const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
|
|
1640
|
-
return {
|
|
1641
|
-
...content,
|
|
1642
|
-
_lookHooks: {
|
|
1643
|
-
...hooks,
|
|
1644
|
-
"data-has-photo": String(photoCount > 0),
|
|
1645
|
-
"data-photo-count": String(photoCount)
|
|
1646
|
-
}
|
|
1647
|
-
};
|
|
1648
|
-
}
|
|
1649
|
-
function cardListArrangementForContent(content) {
|
|
1650
|
-
const hooks = content._lookHooks;
|
|
1651
|
-
if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
|
|
1652
|
-
const arrangement = hooks["data-arrangement"];
|
|
1653
|
-
switch (arrangement) {
|
|
1654
|
-
case "cards":
|
|
1655
|
-
case "lead-support":
|
|
1656
|
-
case "index":
|
|
1657
|
-
case "sequence":
|
|
1658
|
-
case "plates":
|
|
1659
|
-
case "slides":
|
|
1660
|
-
case "track": return arrangement;
|
|
1661
|
-
default: return;
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
1787
|
function preparedPlanEntry(entry, prepared) {
|
|
1665
1788
|
return {
|
|
1666
1789
|
entry: entry.kind === "renderable" && prepared.kind === "content" ? {
|
|
@@ -1781,12 +1904,32 @@ function PageRendererCore(props) {
|
|
|
1781
1904
|
dataContext,
|
|
1782
1905
|
themeResources
|
|
1783
1906
|
});
|
|
1784
|
-
if (!page || preparation.entries.length === 0) return props.wrapPage ? props.wrapPage(plan, presentEmptyPage(audience)) : presentEmptyPage(audience);
|
|
1785
1907
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
1786
|
-
const
|
|
1908
|
+
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1909
|
+
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
1910
|
+
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
1911
|
+
preparation,
|
|
1912
|
+
dataContext,
|
|
1913
|
+
registry: resolvedRegistry,
|
|
1914
|
+
previewAuthoring: props.previewAuthoring,
|
|
1915
|
+
imageResolveContext
|
|
1916
|
+
}), resolvedRegistry["event-details"]), [
|
|
1917
|
+
preparation,
|
|
1918
|
+
dataContext,
|
|
1919
|
+
resolvedRegistry,
|
|
1920
|
+
props.previewAuthoring,
|
|
1921
|
+
imageResolveContext,
|
|
1922
|
+
readSystemTrees
|
|
1923
|
+
]);
|
|
1924
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
1925
|
+
}
|
|
1926
|
+
function renderEmptyPage(page, audience) {
|
|
1927
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
1928
|
+
}
|
|
1929
|
+
function wrapRenderedPage(props, plan, rendered) {
|
|
1787
1930
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
1788
1931
|
}
|
|
1789
|
-
function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
|
|
1932
|
+
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
1790
1933
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1791
1934
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
1792
1935
|
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
@@ -1797,24 +1940,30 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
1797
1940
|
themeResources,
|
|
1798
1941
|
imageResolveContext,
|
|
1799
1942
|
resolvedRegistry,
|
|
1943
|
+
systemTrees: headingPresentation.trees,
|
|
1800
1944
|
joinSlots: joins,
|
|
1801
1945
|
wrapBlock: props.wrapBlock,
|
|
1802
1946
|
renderJoin: props.renderJoin
|
|
1803
1947
|
}));
|
|
1804
1948
|
const { main, aside } = preparation.regions;
|
|
1805
|
-
|
|
1949
|
+
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
1950
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
|
|
1806
1951
|
return /* @__PURE__ */ jsxs("div", {
|
|
1807
1952
|
className: "rb-page-layout",
|
|
1808
1953
|
"data-page-layout": "main-aside",
|
|
1809
|
-
children: [
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1954
|
+
children: [
|
|
1955
|
+
title,
|
|
1956
|
+
/* @__PURE__ */ jsx("div", {
|
|
1957
|
+
className: "rb-page-layout__main",
|
|
1958
|
+
"data-page-region": "main",
|
|
1959
|
+
children: renderRegion(main, joinSlots)
|
|
1960
|
+
}),
|
|
1961
|
+
/* @__PURE__ */ jsx("aside", {
|
|
1962
|
+
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
1963
|
+
"data-page-region": "aside",
|
|
1964
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
1965
|
+
})
|
|
1966
|
+
]
|
|
1818
1967
|
});
|
|
1819
1968
|
}
|
|
1820
1969
|
/**
|
|
@@ -1934,7 +2083,8 @@ function renderPlanEntry(input) {
|
|
|
1934
2083
|
entry: input.entry,
|
|
1935
2084
|
blockKey,
|
|
1936
2085
|
imageResolveContext,
|
|
1937
|
-
registry: resolvedRegistry
|
|
2086
|
+
registry: resolvedRegistry,
|
|
2087
|
+
systemTree: input.systemTrees.get(entry)
|
|
1938
2088
|
});
|
|
1939
2089
|
if (!shouldUseWrapper) {
|
|
1940
2090
|
const rendered = /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }, `${blockKey}:block`);
|
|
@@ -1981,6 +2131,7 @@ function resolvePageRendererImageResolveContext(dataContext) {
|
|
|
1981
2131
|
}
|
|
1982
2132
|
function buildBlockSectionProps(input) {
|
|
1983
2133
|
return {
|
|
2134
|
+
systemTree: input.systemTree,
|
|
1984
2135
|
themeResources: input.themeResources,
|
|
1985
2136
|
entry: input.entry,
|
|
1986
2137
|
audience: input.props.audience,
|
|
@@ -2020,14 +2171,13 @@ function blockRootLookups(dataContext, routes) {
|
|
|
2020
2171
|
function renderSystemBlockElement(input) {
|
|
2021
2172
|
const { prepared, dataContext } = input;
|
|
2022
2173
|
const block = input.entry.block;
|
|
2023
|
-
|
|
2024
|
-
if (!BlockComponent) return null;
|
|
2174
|
+
if (!prepared.component) return null;
|
|
2025
2175
|
const rootContext = { $root: {
|
|
2026
2176
|
...buildPageRendererRootRuntime(dataContext),
|
|
2027
2177
|
...blockRootLookups(dataContext, prepared.routes),
|
|
2028
2178
|
...blockSubjectProps(dataContext)
|
|
2029
2179
|
} };
|
|
2030
|
-
return
|
|
2180
|
+
return resolveDefaultBlockTree(input.entry.definition.manifest, {
|
|
2031
2181
|
...prepared.baseProps,
|
|
2032
2182
|
dateContext: rootContext.$root.dateContext,
|
|
2033
2183
|
now: rootContext.$root.now,
|
|
@@ -2043,6 +2193,39 @@ function renderSystemBlockElement(input) {
|
|
|
2043
2193
|
previewAuthoring: input.previewAuthoring
|
|
2044
2194
|
});
|
|
2045
2195
|
}
|
|
2196
|
+
/** Keep resolution failures inside the existing per-block React error boundary. */
|
|
2197
|
+
function FailedSystemBlockTree({ error }) {
|
|
2198
|
+
throw error;
|
|
2199
|
+
}
|
|
2200
|
+
function resolveSystemBlockTree(input) {
|
|
2201
|
+
try {
|
|
2202
|
+
return renderSystemBlockElement(input);
|
|
2203
|
+
} catch (error) {
|
|
2204
|
+
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
2208
|
+
function createPageSystemTreeReader() {
|
|
2209
|
+
const memo = {};
|
|
2210
|
+
return (input) => {
|
|
2211
|
+
const previous = memo.current;
|
|
2212
|
+
const sameSettings = previous && previous.input.registry === input.registry && previous.input.previewAuthoring === input.previewAuthoring && previous.input.imageResolveContext === input.imageResolveContext;
|
|
2213
|
+
const trees = new Map([...input.preparation.regions.main, ...input.preparation.regions.aside].flatMap((candidate) => {
|
|
2214
|
+
const { entry, prepared } = candidate;
|
|
2215
|
+
if (entry.kind !== "renderable" || entry.override || prepared.kind !== "content") return [];
|
|
2216
|
+
return [[candidate, sameSettings && previous.trees.has(candidate) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id) ? previous.trees.get(candidate) : resolveSystemBlockTree({
|
|
2217
|
+
...input,
|
|
2218
|
+
entry,
|
|
2219
|
+
prepared
|
|
2220
|
+
})]];
|
|
2221
|
+
}));
|
|
2222
|
+
memo.current = {
|
|
2223
|
+
input,
|
|
2224
|
+
trees
|
|
2225
|
+
};
|
|
2226
|
+
return new Map([...trees].map(([candidate, tree]) => [candidate.entry, tree]));
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2046
2229
|
/** Pure diagnostic choice; the audience owner controls its presentation. */
|
|
2047
2230
|
function preparationDiagnostic(prepared, blockKind) {
|
|
2048
2231
|
switch (prepared.kind) {
|
|
@@ -2108,7 +2291,7 @@ function finishBlockRender(node, block, perfStart, meta) {
|
|
|
2108
2291
|
* referential equality of all props that affect rendering. Standard React.memo
|
|
2109
2292
|
* wouldn't catch all the render triggers from the editor store.
|
|
2110
2293
|
*/
|
|
2111
|
-
const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources, entry: preparedEntry, routeMap, audience, dataContext,
|
|
2294
|
+
const MemoBlockSection = React$1.memo(function MemoBlockSection({ systemTree, themeResources, entry: preparedEntry, routeMap, audience, dataContext, wrapBlock, imageResolveContext }) {
|
|
2112
2295
|
const { entry, prepared } = preparedEntry;
|
|
2113
2296
|
const block = entry.block;
|
|
2114
2297
|
const perfStart = globalThis.process?.env?.DEBUG_PERF === "1" && typeof window === "undefined" ? Date.now() : 0;
|
|
@@ -2158,21 +2341,14 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
|
|
|
2158
2341
|
if (OverrideComponent) rendered = /* @__PURE__ */ jsx(OverrideComponent, { ...prepared.baseProps });
|
|
2159
2342
|
else {
|
|
2160
2343
|
requireThemeResources(themeResources, block.kind);
|
|
2161
|
-
rendered =
|
|
2162
|
-
prepared,
|
|
2163
|
-
entry,
|
|
2164
|
-
dataContext,
|
|
2165
|
-
registry,
|
|
2166
|
-
previewAuthoring,
|
|
2167
|
-
imageResolveContext: resolvedImageResolveContext
|
|
2168
|
-
});
|
|
2344
|
+
rendered = systemTree;
|
|
2169
2345
|
}
|
|
2170
2346
|
return finish(wrapped(rendered), {
|
|
2171
2347
|
override: Boolean(OverrideComponent),
|
|
2172
2348
|
hasResolvedData: prepared.hasResolvedData
|
|
2173
2349
|
});
|
|
2174
2350
|
}, (prev, next) => {
|
|
2175
|
-
return prev.entry === next.entry && prev.audience === next.audience && prev.registry === next.registry && sameBlockRenderDataContext(prev.dataContext, next.dataContext, next.entry.entry.block.id) && prev.themeResources === next.themeResources && prev.routeMap === next.routeMap && prev.wrapBlock === next.wrapBlock && prev.imageResolveContext === next.imageResolveContext && prev.previewAuthoring === next.previewAuthoring;
|
|
2351
|
+
return prev.entry === next.entry && prev.systemTree === next.systemTree && prev.audience === next.audience && prev.registry === next.registry && sameBlockRenderDataContext(prev.dataContext, next.dataContext, next.entry.entry.block.id) && prev.themeResources === next.themeResources && prev.routeMap === next.routeMap && prev.wrapBlock === next.wrapBlock && prev.imageResolveContext === next.imageResolveContext && prev.previewAuthoring === next.previewAuthoring;
|
|
2176
2352
|
});
|
|
2177
2353
|
/** Every plan input participates in memo identity; the builder owns all rules. */
|
|
2178
2354
|
function usePageRenderPlan(props) {
|
|
@@ -3463,16 +3639,13 @@ const LinkedEntryEditFrame = ({ target, children }) => {
|
|
|
3463
3639
|
className: "group/linked-entry-edit relative",
|
|
3464
3640
|
"data-linked-entry-id": target.entryId,
|
|
3465
3641
|
"data-linked-entry-type": target.contentTypeKey,
|
|
3466
|
-
children: [children, /* @__PURE__ */ jsx("
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
dispatchLinkedEntryEditEvent(target);
|
|
3474
|
-
},
|
|
3475
|
-
children: "Edit"
|
|
3642
|
+
children: [children, /* @__PURE__ */ jsx("div", {
|
|
3643
|
+
className: "absolute right-2 top-2 z-20 opacity-0 transition focus-within:opacity-100 group-hover/linked-entry-edit:opacity-100",
|
|
3644
|
+
children: /* @__PURE__ */ jsx(EditorCanvasChip, {
|
|
3645
|
+
label: `Edit ${target.contentTypeLabel}: ${target.title}`,
|
|
3646
|
+
onPress: () => dispatchLinkedEntryEditEvent(target),
|
|
3647
|
+
children: "Edit"
|
|
3648
|
+
})
|
|
3476
3649
|
})]
|
|
3477
3650
|
});
|
|
3478
3651
|
};
|