@riverbankcms/sdk 0.171.1 → 0.173.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-D-6cWDDC.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-4jkUDm4D.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DEvzvovi.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-CXPH5esD.d.ts → client-ZlNEIvlU.d.ts} +1002 -140
- package/dist/_dts/{content-types-DsCr4-ny.d.ts → content-types-DBXPNc0h.d.ts} +3 -3
- package/dist/_dts/{contracts-BlmXM7xP.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-BA0DnxWU.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7IRJCFG.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-BZ8-c4iQ.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Sua-7CF1.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-C9_OTCFQ.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-B3gfKNI-.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DlABXDte.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-DScYSl03.d.ts → index-DutLU2d2.d.ts} +49 -38
- package/dist/_dts/{index-BQPJbOkU.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dx4fW3Pa.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-DUTkELQn.d.ts → request-Bysk4QPI.d.ts} +2862 -508
- package/dist/_dts/{resolveBlockData-Cze35i_N.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-zf6-E-C3.d.ts → resolvePageContent-CGa6QMgc.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 +6 -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-JD-36x3P.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-BCzfYDW2.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-CPHk5Voq.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-0MyQlzWJ.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-vTHQyBQF.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Blge9FJo.mjs → BookingMailingListNote-LHQMODqB.mjs} +14 -8
- package/dist/client/{BookingPanelArrangement-wm6eeuin.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-BewbU_cV.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-DRH9qFny.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +42 -35
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DPGZArG9.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +23 -23
- package/dist/client/{EventCalendar.client-FGg6yCLH.mjs → EventCalendar.client-CaI6upCX.mjs} +12 -11
- package/dist/client/{EventCombined.client-218_Gqgp.mjs → EventCombined.client-CoRUaYHY.mjs} +12 -11
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-DKdZSW_R.mjs → EventItem-Doe4KodB.mjs} +60 -25
- package/dist/client/{EventListWeekNavigation-DZJ5qBhg.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-CCdsrqHc.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BVoHnVZA.mjs → EventListing.view-BmfyK7S5.mjs} +220 -81
- package/dist/client/{EventRegistrationPayment-BVxHCnxs.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +847 -146
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-CdRPU6gp.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-CT4HaEMr.mjs → Page-D46Dmr7b.mjs} +1976 -532
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-DRJy4eU3.mjs → StepIndicator-CrSZCZn1.mjs} +83 -12
- 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-BnyVRqdU.mjs → accessibleSurfaces-D4DhWo9j.mjs} +37 -38
- package/dist/client/{accordion-BOApxi9U.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-DDf8Lmo5.mjs → booking-form.client-BM2s-NqR.mjs} +33 -29
- package/dist/client/{bookingForm-DWrgG-Xx.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-7MVCNWgc.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-DeI76SEP.mjs → carousel-CQQ_m0KA.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-D_uxULCO.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BxSMse88.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DIbh4g5e.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-x4Lkw8-E.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-DqN3L-kl.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +183 -4
- package/dist/client/{context-Dzjv2CpA.mjs → context-D0KCgbOq.mjs} +94 -14
- package/dist/client/course-CmOuoZHN.mjs +237 -0
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-ChgDe9Da.mjs → display-lL-YRApN.mjs} +4460 -888
- package/dist/client/{enhanceHeaderSection-BEjg_h_6.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +139 -16
- package/dist/client/{event-details.client-COmbQ3mc.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-BvQG3qEY.mjs → event-registration.client-GuuElczW.mjs} +1316 -554
- package/dist/client/{eventCalendar-DiitbUpV.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-Da9Z8KDq.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-Cf-kg7d6.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-xwXgVp7a.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-hlFYlgTA.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-ERv_X_oZ.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-Cz24FYNj.mjs → form.client-D12ljYiX.mjs} +4 -4
- package/dist/client/{form.parts-DeaH4kIe.mjs → form.parts-C8QHaQOI.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJvt0ZP4.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WuGDEzdD.mjs → newsletter-form.client-oHrqM_Ao.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DhnW6tdB.mjs → newsletter-form.parts-D5U-FuVy.mjs} +2 -2
- package/dist/client/{newsletterForm-DxG7NV8U.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CN0o0yjH.mjs} +131 -12
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DsSfbmdV.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-Byzow88i.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-iXkmQpxG.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-HoFGQXFl.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-CH2-LJME.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-ed20Q7bV.mjs → registry.server-Cdot3dMk.mjs} +2705 -2397
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +38 -63
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CBUO-xuz.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-3brbt2Jq.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-DXyeSNgi.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce--klkHNzu.mjs → shop-commerce-oDR76k1q.mjs} +13 -12
- package/dist/client/{shop-commerce-store-BdpIWdc4.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-Sv7QVDmj.mjs → shop.client-Brha4BSM.mjs} +13 -12
- package/dist/client/{shop.interactive-C0IjiWOs.mjs → shop.interactive-CXhYl0DW.mjs} +218 -89
- package/dist/client/{shopShared-Jt4TzcAG.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-BxbnEJCi.mjs → timetableModel-CZeJwMxP.mjs} +11 -11
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-dToQs9oY.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-C_aa_H69.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination--MFZBoJt.mjs → useEventPagination-CCAGQHsD.mjs} +6 -6
- package/dist/client/{view-DhEwiTJG.mjs → view-D6yebI4r.mjs} +223 -65
- package/dist/client/{view-C_brMDU2.mjs → view-Sw075FOY.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-OwAxA2C0.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CaUOTCSh.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-Dfi8Y3AI.mjs → PageSectionToolbar-DG2rXUmo.mjs} +48 -36
- package/dist/preview-next/client/{PreviewEditorSidebar-DJlX4sXP.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +113 -416
- package/dist/preview-next/client/{PreviewEditorUI-FVAibBlC.mjs → PreviewEditorUI-CqZCfOaz.mjs} +5 -5
- 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-9eAon7Z8.mjs → PreviewShell-Bv2HZ7JY.mjs} +313 -64
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Byf-KW1x.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +300 -174
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eU-zMftO.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +3246 -1079
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-X0DjcFij.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-3FZrzbK8.mjs → previewAssistantSlot-La6MerV_.mjs} +11994 -6013
- package/dist/preview-next/client/{previewChromeRoot-C4gyNQXE.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-BkckHox4.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-OIMkhbkP.mjs → useAutosaveStatus-CPAHgGqI.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BNG9P9sM.mjs → useOpenBlockForSetup-BDkuSZxQ.mjs} +20 -8
- package/dist/preview-next/container-responsive.css +215 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLY4ycq6.mjs → route-contract-CPV30ABr.mjs} +179 -0
- package/dist/server/{Block.shared-BC3jPIP4.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-B7Ey6AWT.mjs → ThemeScopeCore-D1NTXZdX.mjs} +14 -9
- package/dist/server/{accessibleSurfaces-BxsHs-jf.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-xQ9v3zrn.mjs → bindings-Dge4sqel.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-DCwLR0kQ.mjs → client-VVIQjC4r.mjs} +183 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -3
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-C4I3ltU_.mjs → loadContent-BIJb3WAK.mjs} +19 -15
- package/dist/server/{loadPage-COvxWN0r.mjs → loadPage-DjTU19y7.mjs} +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-QiUjZmEV.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-BqQg6Iws.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CVCGTj5S.mjs → pageRenderPlan-CytPhrI9.mjs} +1084 -351
- package/dist/server/{pageRuntimeSupport-C7Be9suN.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +4 -3
- package/dist/server/{pageShared-H_bSBPLd.mjs → pageShared-Bhx8bVe1.mjs} +1187 -902
- package/dist/server/{parseThemeForPersistence-Bk0o95m6.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +2 -2
- package/dist/server/{prebuild-HQNOeCs9.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CbRsnhta.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-CaeRTf4E.mjs → registry-BMCfcev6.mjs} +10282 -7366
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CUMjWbXQ.mjs → resolveBlockData--yUbI-Ll.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-euZnRMIu.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +32 -9
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-CxBsE9Dv.mjs → schema-D5Vfmqzw.mjs} +396 -2
- 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-CvmhnkDr.mjs → validation-EgTtnTcY.mjs} +5 -5
- package/dist/server/{version-Clp2evCf.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +1434 -15
- package/package.json +1 -1
- package/dist/client/cta-CP9l112u.mjs +0 -121
- package/dist/client/runtimeResponse-CTarP5K6.mjs +0 -3
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-DtyRbz4E.mjs +0 -5
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { f as
|
|
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-9eAon7Z8.mjs";
|
|
2
|
+
import { $n as getAtPath, $y as unsafeAsEditorBlockId, Ah as unwrapResponse, Bf as defineFragment, By as selectedContentVersionId, Cf as heroCtaRowFragment, Cp as parseInlineTextFromUnknown, D as PreviewRenderPlanProjection, Df as heroCopyFragment, Ea as setContextResolveImageUrlContext, Ey as sameMailingListPlacementTargeting, Gd as pageTemplateFromEntry, Gn as planArrangementContent, H as usePreviewToken, Ir as normalizeLocationMapSource, Jn as renderedJoinLayout, Kn as composePageJoins, Lr as resolveLocationMapLocation, Ly as NO_BLOCK_VERSIONS, Mb as assertNever, Mr as getBlockDefinition, Pr as normalizeBlockContent, Qf as validateManifestDraft, Rf as ctaButton, Ry as readEditorBlockVersionsFromPlacement, Sf as ctaCopyFragment, Sr as selectBlockContent, Sy as parseMailingListPlacementTargeting, T as ObservedJoin, Ta as getCurrentResolveImageUrlContext, Th as calendarWindowQuerySchema, U_ as parseSurfaceTree, Wd as hiddenFromVisitors, Wn as createPageRenderPlanReader, Xt as useEditorUiStore, Yn as retargetJoinsAcrossOmissions, Za as projectRecurringSchedule, Zf as compileManifestContentContract, Zt as useEditorUiStoreInstance, _f as singleButtonFragment, _r as mapOutlineRegions, a_ as bindingSchema, b_ as parseThemeForPersistence, bb as toUtcIsoDateTimeString, bd as resolveDateRuntimeContext, bf as testimonialsCarouselFragment, bp as isInlineTextEmpty, cp as parseBlockIconValue, df as richTextFragment, dh as isObjectRecord, dp as parseGeneratedIconSetId, er as siblingPath, ff as headingFragment, fh as isRecord$1, gf as blogFeaturedPostFragment, gn as resolveRenderedValues, gr as mapOutlineBlocks, gy as buildMailingListSignupBlockSourceRef, hf as faqHeadingFragment, hn as renderedFieldChanges, ho as groupOfferingRunsByCourse, hp as deriveInlineTextFieldChanges, hr as allOutlineBlocks, if as bookingConsentCarrierSchema, la as RichText$1, mf as faqAccordionFragment, mn as renderSourceFor, mp as coerceInlineTextWithFallback, mr as createEditorPresentationPageReader, my as generateUuidV4, pf as cardFragment, pn as remoteDraftValues, po as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, qf as runTransforms, qn as joinSlotKey, s as usePreviewPageDesignRenderState, sa as cardListPresentationSchemaShape, so as normalizeEventRegistrationPageSurfaceSubject, t_ as canWriteLinkedEntry, tf as publicEventsArraySchema, up as parseGeneratedIconAssetId, vf as formEmbedFragment, vi as offeringsPreviewBlockDefinition, wa as buildResolveImageUrlContext, wf as ctaRowFragment, xf as testimonialsHeadingFragment, xn as unsafeAsLinkedContentEntryId, xo as offeringsListingFor, xr as readinessFactsFromLoaders, yd as readRuntimeNow, yf as formCopyFragment, yi as publicRouteCandidatesSchema, yp as inlineTextToPlainText, z_ as textColorStyle, zf as bodyCopyFragment, zy as readPublishedBlockPlacement } from "./previewAssistantSlot-La6MerV_.mjs";
|
|
3
|
+
import { Bt as publicLocationSchema, Mt as decideLocationSourcePermission, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-BCNn8dEQ.mjs";
|
|
4
|
+
import { A as pageDesignRuntimeProjectionFromSource, At as buildLoadedOfferingsPreviewListing, Bt as resolveEntryRouteTarget, Dt as blockLookFromContent, E as usePreviewCompiledThemeOptional, Et as arrangementHooksFromContent, F as mergeResolvedDataContext, Ft as Text$1, Ht as resolveRouteTarget, I as withRenderedContentEntry, Kt as buildThemeRuntime, Lt as coerceLinkedContentEntriesPayload, M as applyPreviewRuntimeContentProjections, Mt as buildAppointmentServicesView, N as entryFieldRebindingProjection, Nt as renderInlineText, Ot as readBlockComposition, P as runtimeContentDecorationProjectionFromServerPage, Pt as logger, Tt as resolveDefaultBlockTree, Vt as resolvePageRouteTarget, at as clientComponentRegistry, i as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, jt as resolveEventDetailsPresentation, kt as getDefaultComponentRegistry, qt as mergeContentWithBlockStyleOverrides, wn as defaultThemeTokens, wt as makeDefaultBlockComponent, zt as defaultTransforms } from "./SiteChromeCustomizeButton-D1MGyN_Z.mjs";
|
|
5
|
+
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-DG2rXUmo.mjs";
|
|
6
|
+
import { f as useEditor } from "./previewChromeRoot-BcOQqJIP.mjs";
|
|
7
|
+
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-Bv2HZ7JY.mjs";
|
|
9
8
|
import * as React$1 from "react";
|
|
10
9
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -31,55 +30,6 @@ function isSupportedLoaderEndpoint(endpoint) {
|
|
|
31
30
|
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
34
|
-
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
35
|
-
/**
|
|
36
|
-
* Proves that every persisted button variant compiles against the theme's
|
|
37
|
-
* concrete palette. Public rendering may still recover from malformed
|
|
38
|
-
* external/runtime input, but persistence boundaries must reject it.
|
|
39
|
-
*/
|
|
40
|
-
function parseThemeForPersistence(value) {
|
|
41
|
-
const parsed = themeSchema.safeParse(value);
|
|
42
|
-
if (!parsed.success) return {
|
|
43
|
-
ok: false,
|
|
44
|
-
error: {
|
|
45
|
-
kind: "invalid-theme-schema",
|
|
46
|
-
issues: parsed.error.issues
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const parsedTheme = parsed.data;
|
|
50
|
-
const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
|
|
51
|
-
...parsedTheme,
|
|
52
|
-
buttons: {
|
|
53
|
-
...parsedTheme.buttons,
|
|
54
|
-
surfacePolicy: createStandardButtonSurfacePolicy()
|
|
55
|
-
}
|
|
56
|
-
} : parsedTheme;
|
|
57
|
-
if (!theme.buttons) return {
|
|
58
|
-
ok: true,
|
|
59
|
-
value: theme
|
|
60
|
-
};
|
|
61
|
-
const palette = expandPalette(theme.palette);
|
|
62
|
-
for (const variant of theme.buttons.variants) {
|
|
63
|
-
const result = compileButtonColourStates({
|
|
64
|
-
variant,
|
|
65
|
-
global: theme.buttons.global,
|
|
66
|
-
palette
|
|
67
|
-
});
|
|
68
|
-
if (!result.ok) return {
|
|
69
|
-
ok: false,
|
|
70
|
-
error: {
|
|
71
|
-
kind: "invalid-button-colour-contract",
|
|
72
|
-
variantId: variant.id,
|
|
73
|
-
cause: result.error
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
ok: true,
|
|
79
|
-
value: theme
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
33
|
//#region ../blocks/src/system/fragments/library/headerCta.ts
|
|
84
34
|
const headerCtaFragment = defineFragment({
|
|
85
35
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -836,6 +786,88 @@ function normalizePublicApiLoaderParams(endpoint, params, context) {
|
|
|
836
786
|
return out;
|
|
837
787
|
}
|
|
838
788
|
//#endregion
|
|
789
|
+
//#region ../blocks/src/pageHeadingSemantics.tsx
|
|
790
|
+
/** Inspect resolved declarative markup, after conditions, bindings and repeaters. Never invoke arbitrary React components. */
|
|
791
|
+
function elements(tree) {
|
|
792
|
+
if (Array.isArray(tree)) return tree.flatMap(elements);
|
|
793
|
+
return React.isValidElement(tree) ? [tree, ...elements(tree.props.children)] : [];
|
|
794
|
+
}
|
|
795
|
+
function hasText(value) {
|
|
796
|
+
if (typeof value === "string") return value.trim().length > 0;
|
|
797
|
+
const inline = parseInlineTextFromUnknown(value);
|
|
798
|
+
return inline.ok && inlineTextToPlainText(inline.value).trim().length > 0;
|
|
799
|
+
}
|
|
800
|
+
function richTextHasH1(value) {
|
|
801
|
+
if (!value || typeof value !== "object") return false;
|
|
802
|
+
const level = Reflect.get(value, "attrs");
|
|
803
|
+
if (Reflect.get(value, "type") === "heading" && level && typeof level === "object" && Reflect.get(level, "level") === 1) return true;
|
|
804
|
+
const content = Reflect.get(value, "content");
|
|
805
|
+
return Array.isArray(content) && content.some(richTextHasH1);
|
|
806
|
+
}
|
|
807
|
+
function ownsH1(node, eventDetailsComponent) {
|
|
808
|
+
if ((node.type === "h1" || node.props.as === "h1") && (hasText(node.props.value) || React.Children.count(node.props.children) > 0)) return true;
|
|
809
|
+
if (richTextHasH1(node.props.value)) return true;
|
|
810
|
+
if (node.type !== eventDetailsComponent || !React.isValidElement(node)) return false;
|
|
811
|
+
const presentation = resolveEventDetailsPresentation({
|
|
812
|
+
...node.props,
|
|
813
|
+
subject: normalizeEventRegistrationPageSurfaceSubject(node.props.subject)
|
|
814
|
+
});
|
|
815
|
+
return presentation.arrangement === "event-header" && (presentation.selection.kind !== "empty" || Boolean(presentation.entryTitle));
|
|
816
|
+
}
|
|
817
|
+
function isSectionHeading(node) {
|
|
818
|
+
if (node.props.as !== "h2" || !hasText(node.props.value)) return false;
|
|
819
|
+
const slot = node.props["data-slot"];
|
|
820
|
+
const path = node.props.path;
|
|
821
|
+
return slot === "heading" || slot === "headline" || typeof path === "string" && /^blocks\.[^.]+\.[^.]+$/.test(path);
|
|
822
|
+
}
|
|
823
|
+
function promote(tree, heading) {
|
|
824
|
+
if (Array.isArray(tree)) {
|
|
825
|
+
const items = tree;
|
|
826
|
+
const children = items.map((child) => promote(child, heading));
|
|
827
|
+
return children.every((child, index) => child === items[index]) ? items : children;
|
|
828
|
+
}
|
|
829
|
+
if (!React.isValidElement(tree)) return tree;
|
|
830
|
+
if (tree === heading) return React.cloneElement(tree, {
|
|
831
|
+
as: "h1",
|
|
832
|
+
className: [tree.props.className, "rb-heading-level-2"].filter(Boolean).join(" ")
|
|
833
|
+
});
|
|
834
|
+
const children = promote(tree.props.children, heading);
|
|
835
|
+
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
836
|
+
}
|
|
837
|
+
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
838
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent) {
|
|
839
|
+
const nodes = [...trees.values()].flatMap(elements);
|
|
840
|
+
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
841
|
+
trees,
|
|
842
|
+
needsPageTitle: false
|
|
843
|
+
};
|
|
844
|
+
const heading = nodes.find(isSectionHeading);
|
|
845
|
+
return heading ? {
|
|
846
|
+
trees: new Map([...trees].map(([id, tree]) => [id, promote(tree, heading)])),
|
|
847
|
+
needsPageTitle: false
|
|
848
|
+
} : {
|
|
849
|
+
trees,
|
|
850
|
+
needsPageTitle: true
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
/** Inline hiding also works in SDK sites that do not load utility CSS. */
|
|
854
|
+
function PageTitleFallback({ name }) {
|
|
855
|
+
return /* @__PURE__ */ jsx("h1", {
|
|
856
|
+
style: {
|
|
857
|
+
position: "absolute",
|
|
858
|
+
width: 1,
|
|
859
|
+
height: 1,
|
|
860
|
+
padding: 0,
|
|
861
|
+
margin: -1,
|
|
862
|
+
overflow: "hidden",
|
|
863
|
+
clipPath: "inset(50%)",
|
|
864
|
+
whiteSpace: "nowrap",
|
|
865
|
+
border: 0
|
|
866
|
+
},
|
|
867
|
+
children: name
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
//#endregion
|
|
839
871
|
//#region ../blocks/src/pageRenderAudience.tsx
|
|
840
872
|
/**
|
|
841
873
|
* The single policy for what a non-renderable block looks like.
|
|
@@ -1173,6 +1205,7 @@ function offeringsPreviewPhotoCount(listing) {
|
|
|
1173
1205
|
case "no-groups":
|
|
1174
1206
|
case "nothing-to-show": return 0;
|
|
1175
1207
|
case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
|
|
1208
|
+
case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
|
|
1176
1209
|
case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
|
|
1177
1210
|
default: return assertNever(listing);
|
|
1178
1211
|
}
|
|
@@ -1192,6 +1225,113 @@ function hasPhoto(item) {
|
|
|
1192
1225
|
default: return assertNever(item);
|
|
1193
1226
|
}
|
|
1194
1227
|
}
|
|
1228
|
+
function courseGroupPhotoCount(load) {
|
|
1229
|
+
if (load.kind !== "items") return 0;
|
|
1230
|
+
const courses = groupOfferingRunsByCourse(load.items);
|
|
1231
|
+
const ungrouped = load.items.filter((item) => item.kind !== "run" || !item.run.run.listing);
|
|
1232
|
+
return courses.filter(({ course }) => course.presentation?.image).length + ungrouped.filter(hasPhoto).length;
|
|
1233
|
+
}
|
|
1234
|
+
//#endregion
|
|
1235
|
+
//#region ../blocks/src/blockContentPreparation.ts
|
|
1236
|
+
function prepareBlockContent(kind, content, data, context, audience) {
|
|
1237
|
+
return {
|
|
1238
|
+
...arrangementResolvedContent(kind, content, data, context, audience),
|
|
1239
|
+
data: arrangementResolvedData(kind, content, data)
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
function arrangementResolvedData(kind, content, data) {
|
|
1243
|
+
if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
|
|
1244
|
+
return {
|
|
1245
|
+
...data,
|
|
1246
|
+
entries: content._quoteCount === null ? data.entries : data.entries.slice(0, Number(content._quoteCount))
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
function arrangementResolvedContent(kind, content, data, context, audience) {
|
|
1250
|
+
if (!data) return {
|
|
1251
|
+
content,
|
|
1252
|
+
publicVisibility: "shown"
|
|
1253
|
+
};
|
|
1254
|
+
if (kind === "block.offerings-preview") return offeringArrangementContent(content, data, context, audience);
|
|
1255
|
+
if (kind === "block.appointment-services" && content._effectiveLook !== void 0) return {
|
|
1256
|
+
content: appointmentArrangementContent(content, data, context),
|
|
1257
|
+
publicVisibility: "shown"
|
|
1258
|
+
};
|
|
1259
|
+
return {
|
|
1260
|
+
content,
|
|
1261
|
+
publicVisibility: "shown"
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
/** One listing owns card visibility, public section omission and photo counting. */
|
|
1265
|
+
function offeringArrangementContent(content, data, context, audience) {
|
|
1266
|
+
const normalized = normalizeBlockContent(offeringsPreviewBlockDefinition, content);
|
|
1267
|
+
if (!needsOfferingListing(content, normalized)) return {
|
|
1268
|
+
content,
|
|
1269
|
+
publicVisibility: "shown"
|
|
1270
|
+
};
|
|
1271
|
+
const now = new Date(readRuntimeNow(context?.now));
|
|
1272
|
+
const listing = buildLoadedOfferingsPreviewListing({
|
|
1273
|
+
now,
|
|
1274
|
+
listingMode: offeringsListingFor(cardListArrangementForContent(content) ?? "legacy"),
|
|
1275
|
+
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
1276
|
+
...normalized,
|
|
1277
|
+
presets: context?.bookingOfferingPresets,
|
|
1278
|
+
catalogueEvents: readPublicEvents(data.catalogueEvents),
|
|
1279
|
+
wholeSeriesRunEvents: readPublicEvents(data.wholeSeriesRunEvents),
|
|
1280
|
+
...Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, readPublicEvents(data[definition.dataKey])]))
|
|
1281
|
+
});
|
|
1282
|
+
const prepared = {
|
|
1283
|
+
...content,
|
|
1284
|
+
_offeringsPreviewInput: {
|
|
1285
|
+
kind: "prepared",
|
|
1286
|
+
listing,
|
|
1287
|
+
now
|
|
1288
|
+
},
|
|
1289
|
+
...audience === "authoring" ? { _offeringsPreviewShowHiddenPlaceholder: true } : {}
|
|
1290
|
+
};
|
|
1291
|
+
return {
|
|
1292
|
+
content: content._effectiveLook === void 0 ? prepared : withCardListPhotoCount(prepared, content.showPhotos === false ? 0 : offeringsPreviewPhotoCount(listing)),
|
|
1293
|
+
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
1297
|
+
function needsOfferingListing(content, normalized) {
|
|
1298
|
+
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
1299
|
+
}
|
|
1300
|
+
function readPublicEvents(value) {
|
|
1301
|
+
const parsed = publicEventsArraySchema.safeParse(value);
|
|
1302
|
+
return parsed.success ? parsed.data : void 0;
|
|
1303
|
+
}
|
|
1304
|
+
function appointmentArrangementContent(content, data, context) {
|
|
1305
|
+
const view = buildAppointmentServicesView({
|
|
1306
|
+
arrangement: cardListArrangementForContent(content),
|
|
1307
|
+
services: data.services,
|
|
1308
|
+
categoryId: content.categoryId,
|
|
1309
|
+
pathname: context?.pathname,
|
|
1310
|
+
servicePathPrefix: context?.appointmentServicePathPrefix
|
|
1311
|
+
});
|
|
1312
|
+
const rows = view.kind === "items" ? view.rows : view.kind === "groups" ? view.groups.flatMap((group) => group.rows) : [];
|
|
1313
|
+
const photoCount = content.showPhotos === false ? 0 : rows.filter((row) => row.media).length;
|
|
1314
|
+
return withCardListPhotoCount({
|
|
1315
|
+
...content,
|
|
1316
|
+
_appointmentServicesView: view
|
|
1317
|
+
}, photoCount);
|
|
1318
|
+
}
|
|
1319
|
+
function withCardListPhotoCount(content, photoCount) {
|
|
1320
|
+
const hooks = typeof content._lookHooks === "object" && content._lookHooks !== null ? content._lookHooks : {};
|
|
1321
|
+
return {
|
|
1322
|
+
...content,
|
|
1323
|
+
_lookHooks: {
|
|
1324
|
+
...hooks,
|
|
1325
|
+
"data-has-photo": String(photoCount > 0),
|
|
1326
|
+
"data-photo-count": String(photoCount)
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
function cardListArrangementForContent(content) {
|
|
1331
|
+
const hooks = content._lookHooks;
|
|
1332
|
+
if (typeof hooks !== "object" || hooks === null || !("data-arrangement" in hooks)) return void 0;
|
|
1333
|
+
return cardListPresentationSchemaShape.cardArrangement.safeParse(hooks["data-arrangement"]).data;
|
|
1334
|
+
}
|
|
1195
1335
|
//#endregion
|
|
1196
1336
|
//#region ../blocks/src/system/manifest/hydrateLinks.ts
|
|
1197
1337
|
/**
|
|
@@ -1365,7 +1505,7 @@ function preparePageRenderEntries(input, previous = null) {
|
|
|
1365
1505
|
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
1366
1506
|
const entries = prepared.map(([, value]) => value);
|
|
1367
1507
|
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");
|
|
1508
|
+
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
1509
|
const surviving = new Set(survivors);
|
|
1370
1510
|
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
1371
1511
|
const regions = {
|
|
@@ -1401,7 +1541,7 @@ function preparationAdmission(input) {
|
|
|
1401
1541
|
const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
|
|
1402
1542
|
return {
|
|
1403
1543
|
permission,
|
|
1404
|
-
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !
|
|
1544
|
+
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
1545
|
};
|
|
1406
1546
|
}
|
|
1407
1547
|
function readPreparedPlanEntry(entry, input, previous, permission) {
|
|
@@ -1440,8 +1580,11 @@ function isPublicSourcePermitted(entry, permission) {
|
|
|
1440
1580
|
const rawSource = entry.renderableContent.locationSource;
|
|
1441
1581
|
return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
|
|
1442
1582
|
}
|
|
1443
|
-
function
|
|
1444
|
-
return entry.kind === "renderable" && entry.definition.readiness
|
|
1583
|
+
function entryHiddenFromVisitors(entry, facts, interaction) {
|
|
1584
|
+
return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
|
|
1585
|
+
blockId: entry.block.id ?? null,
|
|
1586
|
+
interaction
|
|
1587
|
+
}));
|
|
1445
1588
|
}
|
|
1446
1589
|
/**
|
|
1447
1590
|
* The only place joins are composed. Plan-time omissions were already
|
|
@@ -1499,26 +1642,32 @@ function buildPreparedContent(entry, content, input) {
|
|
|
1499
1642
|
const routes = input.routeMap ?? dataContext?.routes;
|
|
1500
1643
|
const hydratedContent = routes ? hydrateManifestLinks(entry.definition.manifest, content, routes, dataContext?.pagesByIdentifier, dataContext?.entriesByIdentifier) : content;
|
|
1501
1644
|
const resolved = resolveBlockData(block.id, entry.definition.dataLoaders, dataContext, routes);
|
|
1645
|
+
const { baseProps, publicVisibility } = preparedBlockProps(entry, hydratedContent, resolved, input);
|
|
1502
1646
|
return {
|
|
1503
1647
|
kind: "content",
|
|
1504
|
-
baseProps
|
|
1648
|
+
baseProps,
|
|
1649
|
+
publicVisibility,
|
|
1505
1650
|
component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
|
|
1506
1651
|
hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
|
|
1507
1652
|
routes
|
|
1508
1653
|
};
|
|
1509
1654
|
}
|
|
1510
1655
|
function preparedBlockProps(entry, content, data, input) {
|
|
1656
|
+
const prepared = prepareBlockContent(entry.block.kind, content, data, input.dataContext, input.audience);
|
|
1511
1657
|
return {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1658
|
+
baseProps: {
|
|
1659
|
+
...buildBlockOverrideProps({
|
|
1660
|
+
content: prepared.content,
|
|
1661
|
+
data: prepared.data,
|
|
1662
|
+
block: entry.block,
|
|
1663
|
+
themeResources: input.themeResources,
|
|
1664
|
+
dataContext: input.dataContext,
|
|
1665
|
+
imageResolveContext: input.imageResolveContext,
|
|
1666
|
+
routeMap: input.routeMap
|
|
1667
|
+
}),
|
|
1668
|
+
bookingTimeZone: input.dataContext?.bookingTimeZone
|
|
1669
|
+
},
|
|
1670
|
+
publicVisibility: prepared.publicVisibility
|
|
1522
1671
|
};
|
|
1523
1672
|
}
|
|
1524
1673
|
/**
|
|
@@ -1585,82 +1734,6 @@ function blockSubjectProps(dataContext) {
|
|
|
1585
1734
|
subject
|
|
1586
1735
|
};
|
|
1587
1736
|
}
|
|
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
1737
|
function preparedPlanEntry(entry, prepared) {
|
|
1665
1738
|
return {
|
|
1666
1739
|
entry: entry.kind === "renderable" && prepared.kind === "content" ? {
|
|
@@ -1781,12 +1854,32 @@ function PageRendererCore(props) {
|
|
|
1781
1854
|
dataContext,
|
|
1782
1855
|
themeResources
|
|
1783
1856
|
});
|
|
1784
|
-
if (!page || preparation.entries.length === 0) return props.wrapPage ? props.wrapPage(plan, presentEmptyPage(audience)) : presentEmptyPage(audience);
|
|
1785
1857
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
1786
|
-
const
|
|
1858
|
+
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1859
|
+
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
1860
|
+
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
1861
|
+
preparation,
|
|
1862
|
+
dataContext,
|
|
1863
|
+
registry: resolvedRegistry,
|
|
1864
|
+
previewAuthoring: props.previewAuthoring,
|
|
1865
|
+
imageResolveContext
|
|
1866
|
+
}), resolvedRegistry["event-details"]), [
|
|
1867
|
+
preparation,
|
|
1868
|
+
dataContext,
|
|
1869
|
+
resolvedRegistry,
|
|
1870
|
+
props.previewAuthoring,
|
|
1871
|
+
imageResolveContext,
|
|
1872
|
+
readSystemTrees
|
|
1873
|
+
]);
|
|
1874
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
1875
|
+
}
|
|
1876
|
+
function renderEmptyPage(page, audience) {
|
|
1877
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
1878
|
+
}
|
|
1879
|
+
function wrapRenderedPage(props, plan, rendered) {
|
|
1787
1880
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
1788
1881
|
}
|
|
1789
|
-
function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
|
|
1882
|
+
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
1790
1883
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
1791
1884
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
1792
1885
|
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
@@ -1797,24 +1890,30 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
1797
1890
|
themeResources,
|
|
1798
1891
|
imageResolveContext,
|
|
1799
1892
|
resolvedRegistry,
|
|
1893
|
+
systemTrees: headingPresentation.trees,
|
|
1800
1894
|
joinSlots: joins,
|
|
1801
1895
|
wrapBlock: props.wrapBlock,
|
|
1802
1896
|
renderJoin: props.renderJoin
|
|
1803
1897
|
}));
|
|
1804
1898
|
const { main, aside } = preparation.regions;
|
|
1805
|
-
|
|
1899
|
+
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
1900
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
|
|
1806
1901
|
return /* @__PURE__ */ jsxs("div", {
|
|
1807
1902
|
className: "rb-page-layout",
|
|
1808
1903
|
"data-page-layout": "main-aside",
|
|
1809
|
-
children: [
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1904
|
+
children: [
|
|
1905
|
+
title,
|
|
1906
|
+
/* @__PURE__ */ jsx("div", {
|
|
1907
|
+
className: "rb-page-layout__main",
|
|
1908
|
+
"data-page-region": "main",
|
|
1909
|
+
children: renderRegion(main, joinSlots)
|
|
1910
|
+
}),
|
|
1911
|
+
/* @__PURE__ */ jsx("aside", {
|
|
1912
|
+
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
1913
|
+
"data-page-region": "aside",
|
|
1914
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
1915
|
+
})
|
|
1916
|
+
]
|
|
1818
1917
|
});
|
|
1819
1918
|
}
|
|
1820
1919
|
/**
|
|
@@ -1934,7 +2033,8 @@ function renderPlanEntry(input) {
|
|
|
1934
2033
|
entry: input.entry,
|
|
1935
2034
|
blockKey,
|
|
1936
2035
|
imageResolveContext,
|
|
1937
|
-
registry: resolvedRegistry
|
|
2036
|
+
registry: resolvedRegistry,
|
|
2037
|
+
systemTree: input.systemTrees.get(entry)
|
|
1938
2038
|
});
|
|
1939
2039
|
if (!shouldUseWrapper) {
|
|
1940
2040
|
const rendered = /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }, `${blockKey}:block`);
|
|
@@ -1981,6 +2081,7 @@ function resolvePageRendererImageResolveContext(dataContext) {
|
|
|
1981
2081
|
}
|
|
1982
2082
|
function buildBlockSectionProps(input) {
|
|
1983
2083
|
return {
|
|
2084
|
+
systemTree: input.systemTree,
|
|
1984
2085
|
themeResources: input.themeResources,
|
|
1985
2086
|
entry: input.entry,
|
|
1986
2087
|
audience: input.props.audience,
|
|
@@ -2020,14 +2121,13 @@ function blockRootLookups(dataContext, routes) {
|
|
|
2020
2121
|
function renderSystemBlockElement(input) {
|
|
2021
2122
|
const { prepared, dataContext } = input;
|
|
2022
2123
|
const block = input.entry.block;
|
|
2023
|
-
|
|
2024
|
-
if (!BlockComponent) return null;
|
|
2124
|
+
if (!prepared.component) return null;
|
|
2025
2125
|
const rootContext = { $root: {
|
|
2026
2126
|
...buildPageRendererRootRuntime(dataContext),
|
|
2027
2127
|
...blockRootLookups(dataContext, prepared.routes),
|
|
2028
2128
|
...blockSubjectProps(dataContext)
|
|
2029
2129
|
} };
|
|
2030
|
-
return
|
|
2130
|
+
return resolveDefaultBlockTree(input.entry.definition.manifest, {
|
|
2031
2131
|
...prepared.baseProps,
|
|
2032
2132
|
dateContext: rootContext.$root.dateContext,
|
|
2033
2133
|
now: rootContext.$root.now,
|
|
@@ -2043,6 +2143,39 @@ function renderSystemBlockElement(input) {
|
|
|
2043
2143
|
previewAuthoring: input.previewAuthoring
|
|
2044
2144
|
});
|
|
2045
2145
|
}
|
|
2146
|
+
/** Keep resolution failures inside the existing per-block React error boundary. */
|
|
2147
|
+
function FailedSystemBlockTree({ error }) {
|
|
2148
|
+
throw error;
|
|
2149
|
+
}
|
|
2150
|
+
function resolveSystemBlockTree(input) {
|
|
2151
|
+
try {
|
|
2152
|
+
return renderSystemBlockElement(input);
|
|
2153
|
+
} catch (error) {
|
|
2154
|
+
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
2158
|
+
function createPageSystemTreeReader() {
|
|
2159
|
+
const memo = {};
|
|
2160
|
+
return (input) => {
|
|
2161
|
+
const previous = memo.current;
|
|
2162
|
+
const sameSettings = previous && previous.input.registry === input.registry && previous.input.previewAuthoring === input.previewAuthoring && previous.input.imageResolveContext === input.imageResolveContext;
|
|
2163
|
+
const trees = new Map([...input.preparation.regions.main, ...input.preparation.regions.aside].flatMap((candidate) => {
|
|
2164
|
+
const { entry, prepared } = candidate;
|
|
2165
|
+
if (entry.kind !== "renderable" || entry.override || prepared.kind !== "content") return [];
|
|
2166
|
+
return [[candidate, sameSettings && previous.trees.has(candidate) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id) ? previous.trees.get(candidate) : resolveSystemBlockTree({
|
|
2167
|
+
...input,
|
|
2168
|
+
entry,
|
|
2169
|
+
prepared
|
|
2170
|
+
})]];
|
|
2171
|
+
}));
|
|
2172
|
+
memo.current = {
|
|
2173
|
+
input,
|
|
2174
|
+
trees
|
|
2175
|
+
};
|
|
2176
|
+
return new Map([...trees].map(([candidate, tree]) => [candidate.entry, tree]));
|
|
2177
|
+
};
|
|
2178
|
+
}
|
|
2046
2179
|
/** Pure diagnostic choice; the audience owner controls its presentation. */
|
|
2047
2180
|
function preparationDiagnostic(prepared, blockKind) {
|
|
2048
2181
|
switch (prepared.kind) {
|
|
@@ -2108,7 +2241,7 @@ function finishBlockRender(node, block, perfStart, meta) {
|
|
|
2108
2241
|
* referential equality of all props that affect rendering. Standard React.memo
|
|
2109
2242
|
* wouldn't catch all the render triggers from the editor store.
|
|
2110
2243
|
*/
|
|
2111
|
-
const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources, entry: preparedEntry, routeMap, audience, dataContext,
|
|
2244
|
+
const MemoBlockSection = React$1.memo(function MemoBlockSection({ systemTree, themeResources, entry: preparedEntry, routeMap, audience, dataContext, wrapBlock, imageResolveContext }) {
|
|
2112
2245
|
const { entry, prepared } = preparedEntry;
|
|
2113
2246
|
const block = entry.block;
|
|
2114
2247
|
const perfStart = globalThis.process?.env?.DEBUG_PERF === "1" && typeof window === "undefined" ? Date.now() : 0;
|
|
@@ -2158,21 +2291,14 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
|
|
|
2158
2291
|
if (OverrideComponent) rendered = /* @__PURE__ */ jsx(OverrideComponent, { ...prepared.baseProps });
|
|
2159
2292
|
else {
|
|
2160
2293
|
requireThemeResources(themeResources, block.kind);
|
|
2161
|
-
rendered =
|
|
2162
|
-
prepared,
|
|
2163
|
-
entry,
|
|
2164
|
-
dataContext,
|
|
2165
|
-
registry,
|
|
2166
|
-
previewAuthoring,
|
|
2167
|
-
imageResolveContext: resolvedImageResolveContext
|
|
2168
|
-
});
|
|
2294
|
+
rendered = systemTree;
|
|
2169
2295
|
}
|
|
2170
2296
|
return finish(wrapped(rendered), {
|
|
2171
2297
|
override: Boolean(OverrideComponent),
|
|
2172
2298
|
hasResolvedData: prepared.hasResolvedData
|
|
2173
2299
|
});
|
|
2174
2300
|
}, (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;
|
|
2301
|
+
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
2302
|
});
|
|
2177
2303
|
/** Every plan input participates in memo identity; the builder owns all rules. */
|
|
2178
2304
|
function usePageRenderPlan(props) {
|