@riverbankcms/sdk 0.175.0 → 0.176.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-hb2IWD8K.d.ts → BlocksIslandsHydrator-DvoTk7Py.d.ts} +1 -1
- package/dist/_dts/{Page-BlY68ZF-.d.ts → Page-D-l374tU.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-CA8hU7hW.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
- package/dist/_dts/{client-B6tCvmG4.d.ts → client-D4p0J1lK.d.ts} +1 -1
- package/dist/_dts/{content-types-B9qryk4R.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
- package/dist/_dts/{contracts-DWoaRxj1.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-Djdrhp5s.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-CFi0vxov.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
- package/dist/_dts/{index-CQUzwOxO.d.ts → index-CKkkCgb6.d.ts} +1 -1
- package/dist/_dts/{index-Bl5_pjmq.d.ts → index-CoLcwjqJ.d.ts} +1 -1
- package/dist/_dts/{index-_pXaCO12.d.ts → index-D-ai8IQd.d.ts} +4 -4
- package/dist/_dts/{index-OtazQE3U.d.ts → index-DDsfmM4d.d.ts} +2 -2
- package/dist/_dts/{index-Btp5nIoz.d.ts → index-EJMo-KSo.d.ts} +2 -2
- package/dist/_dts/{index-DmhFb6R1.d.ts → index-ZKEDvLuN.d.ts} +1 -1
- package/dist/_dts/{index-YRQulWB4.d.ts → index-tcPtGdag.d.ts} +3 -3
- package/dist/_dts/{loadContent-Hcuvs4pz.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
- package/dist/_dts/{request-BT8i_vH-.d.ts → request-B8jVdvgI.d.ts} +374 -24
- package/dist/_dts/{resolveBlockData-B-dJrunl.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CVLYWcoI.d.ts → resolvePageContent-Be4iL6-F.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/gifting/client.d.ts +1 -1
- 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 +3 -3
- 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 +5 -177
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CXL1QJSY.d.ts → types-BXMX4z2j.d.ts} +7 -7
- package/dist/_dts/{types-C0XZnjXz.d.ts → types-DXY64Xh4.d.ts} +4 -4
- package/dist/_dts/{types-OKzbqRBx.d.ts → types-lwSgCWZ4.d.ts} +11 -2
- package/dist/_dts/{validation-Bxi66FtQ.d.ts → validation-C5xp--Fu.d.ts} +7 -4
- package/dist/client/{BlocksIslandsHydrator-2xzlERTG.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qsohSEdQ.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-DrdtON0q.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CUFxBaTM.mjs → BookingQuestionFields-MbvIo2jS.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Ch0w0Utn.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +9 -9
- package/dist/client/{DemoBookingPortalAccess-DGgsjqXK.mjs → DemoBookingPortalAccess-C9Ggcfx3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dg4PHFJJ.mjs → EventCalendar.client-BSMuSqg0.mjs} +9 -9
- package/dist/client/{EventCombined.client-tky8JcnQ.mjs → EventCombined.client-BTrmSyUB.mjs} +8 -8
- package/dist/client/{EventItem-BybMSKNL.mjs → EventItem-B0WjGXsH.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-uvWRE5wi.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DQx9dohz.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-r31k8Icz.mjs → EventListing.view-BEH4UbSL.mjs} +17 -8
- package/dist/client/{EventRegistrationPayment-BMmPDmSf.mjs → EventRegistrationPayment-B2EikR3f.mjs} +9 -9
- package/dist/client/{LocationMapActions-BecH-qhI.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BJzmFdcn.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -37
- package/dist/client/{Page-CWN_8cLZ.mjs → Page-F3lhDvw1.mjs} +329 -268
- package/dist/client/{SiteTermsAgreementField-Dr5lj4oY.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +2 -2
- package/dist/client/{StepIndicator-C7RJBOW3.mjs → StepIndicator-Bb7rPtSq.mjs} +5 -5
- package/dist/client/{accordion-uUi_N6mZ.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-CKHgxvsh.mjs → booking-form.client-B8ohIj13.mjs} +13 -13
- package/dist/client/{bookingForm-Bi74dmiS.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-C-gFwhnO.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -2
- package/dist/client/{carousel-C0_BqMA0.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-BOHuppVu.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-IfJE1zAp.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-C3Aj-aNa.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-Tg9lfeYf.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-OLqQdAXD.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +36 -3
- package/dist/client/{context-D8TpQXjX.mjs → context-R9p5c8IH.mjs} +1 -1
- package/dist/client/{course-DHmeQAvq.mjs → course-CUFVJEAc.mjs} +1 -1
- package/dist/client/{dateFormatting-ABCZWkpT.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdcuW_pa.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/{display-DMqotaGU.mjs → display-4HYOb-AK.mjs} +51 -4
- package/dist/client/{enhanceHeaderSection-Ciuhsk0E.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-CJapNbTv.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-CAdcpnLc.mjs → event-registration.client-DWvSODTI.mjs} +11 -11
- package/dist/client/{eventCalendar-BlsD5R8M.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-B9Ly3024.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-CbEGI4jO.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-ZSmvhWII.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-D-yUcIyO.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-DG_YZSNn.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-BU6dM0-C.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Db0Iq7nx.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-DFfWHpQB.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -4
- package/dist/client/{gifting-DMrsN4B4.mjs → gifting-CbNSrp7C.mjs} +4 -4
- package/dist/client/{gifting.client-BVa2XYJB.mjs → gifting.client-B__bGhFc.mjs} +4 -4
- package/dist/client/{gifting.parts-C2u4Y-pf.mjs → gifting.parts-CTA1sDW6.mjs} +2 -2
- package/dist/client/{headerSection-D91EzlOR.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{lookSurfaces-BDZLALxj.mjs → lookSurfaces-BwiNdgMU.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BMGRiRpo.mjs → newsletter-form.client-B17WYHxZ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-D5UfUaD3.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +1 -1
- package/dist/client/{newsletterForm-B_67sNwa.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-DF8_EiFt.mjs → noop-CaQxI-Js.mjs} +2 -9
- package/dist/client/portal/client.mjs +7 -7
- package/dist/client/{product-detail.client-D-XNir0m.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-BLfYQ-qi.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-W0_0lDGe.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-ayAtPJdb.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-ChYKWjLA.mjs → propsDecoder-y3LvxaiG.mjs} +4 -4
- package/dist/client/{registry.server-B1EEZkcr.mjs → registry.server-CIWYKz1V.mjs} +83 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -22
- package/dist/client/{richText-coerce-CDAfpMQU.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CcGWvyht.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-DbUUoHFJ.mjs → shop-CFbWlv_W.mjs} +3 -3
- package/dist/client/{shop-commerce-aQqcDmyZ.mjs → shop-commerce-C-I29eaA.mjs} +12 -12
- package/dist/client/{shop-commerce-store-Cd7USpuY.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DGvPBmVP.mjs → shop-discount-apply.state-DOm7vx0X.mjs} +2 -2
- package/dist/client/{shop.client-BNZ9M8cG.mjs → shop.client-GHTWUKD6.mjs} +12 -12
- package/dist/client/{shop.interactive-CJAINJr3.mjs → shop.interactive-CxDJ8P2r.mjs} +3 -3
- package/dist/client/{shopShared-DwVAuGsx.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DBTIFWTb.mjs → timetableModel--R0zVzZO.mjs} +8 -8
- package/dist/client/{useAvailableSlots-BomyyKeo.mjs → useAvailableSlots-BGu_2F50.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CCxHMWlU.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +1 -1
- package/dist/client/{useEventPagination-Bjin_qaN.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -7
- package/dist/client/{view-BTk470k0.mjs → view-3foOzGWR.mjs} +3 -3
- package/dist/client/{view-Cw4EmEPv.mjs → view-BbzH5MQb.mjs} +61 -34
- package/dist/preview-next/client/{PageSectionToolbar-bq7gbKvn.mjs → PageSectionToolbar-0xyUPWUB.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DVsPNcos.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +38 -35
- package/dist/preview-next/client/{PreviewEditorUI-B-pq3aZc.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-ChyjB96e.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D_czeC0l.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +77 -47
- package/dist/preview-next/client/{previewAssistantSlot-B61mZd81.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +436 -278
- package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DZDfOxoW.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-DbKozRSn.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BEXcWQeI.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +16 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-0gSlK9S0.mjs → route-contract-BYezcMx5.mjs} +8 -0
- package/dist/server/{Block.shared-DeXXycg8.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
- package/dist/server/{bindings-7L3pC5Os.mjs → bindings-VGgS6UvF.mjs} +3 -3
- package/dist/server/{client-CgghATBm.mjs → client-Bvag5OtW.mjs} +35 -3
- 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 +2 -2
- package/dist/server/{loadContent-D7M5Vcug.mjs → loadContent-CxASA3PE.mjs} +5 -8
- package/dist/server/{loadPage-CiTId05y.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CJ3MRI5Q.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-Cuos4Xcd.mjs → pageRenderPlan-CfSnAkCO.mjs} +10 -41
- package/dist/server/{pageRuntimeSupport-CuVj3bkd.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +4 -13
- package/dist/server/{pageShared-JxlV8_Bo.mjs → pageShared-D23o5QgC.mjs} +111 -66
- package/dist/server/{prebuild-BDhlJbAx.mjs → prebuild-BuoXWT9y.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-kERh_c0v.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-cQ9N5W-n.mjs → registry-CXRXsFSx.mjs} +346 -513
- 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 +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CN4UmmTK.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-3puM5SM8.mjs → validation-CozQ7wE0.mjs} +4 -4
- package/dist/server/{version-B8g-Wx57.mjs → version-CgCWRFEY.mjs} +1 -1
- package/package.json +1 -1
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $r as selectBlockContent,
|
|
3
|
-
import { Bt as publicLocationSchema,
|
|
4
|
-
import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-
|
|
5
|
-
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-
|
|
6
|
-
import { f as useEditor } from "./previewChromeRoot-
|
|
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-
|
|
2
|
+
import { $r as selectBlockContent, $u as unsafeAsEditorBlockId, Aa as faqHeadingFragment, Al as parseThemeForPersistence, Bi as setContextResolveImageUrlContext, Bl as defaultThemeTokens, Br as defaultTransforms, Bs as publicMapLocationParamsSchema, Bu as readPublishedBlockPlacement, Ca as pageTemplateFromEntry, Co as buildThemeRuntime, Cr as arrangementHooksFromContent, D as ObservedJoin, Da as headingFragment, Dr as buildLoadedOfferingsPreviewListing, Ea as richTextFragment, Er as getDefaultComponentRegistry, Fa as testimonialsCarouselFragment, Fl as textColorStyle, Fn as renderSourceFor, Fr as siblingPath, Ga as defineFragment, Gr as createEditorPresentationPageReader, Ha as heroCopyFragment, Hi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Hn as unsafeAsLinkedContentEntryId, Hr as resolvePageRouteTarget, Ia as testimonialsHeadingFragment, In as renderedFieldChanges, Ja as validateManifestDraft, Jr as mapOutlineRegions, Ka as runTransforms, Kr as allOutlineBlocks, La as ctaCopyFragment, Ll as parseSurfaceTree, Ln as resolveRenderedValues, Ma as singleButtonFragment, Mr as logger, Ms as isObjectRecord, Na as formEmbedFragment, Nr as Text$1, Ns as isRecord$1, Oa as cardFragment, Or as resolveEventDetailsPresentation, Ou as sameMailingListPlacementTargeting, Pa as formCopyFragment, Pn as remoteDraftValues, Pr as getAtPath, Pt as clientComponentRegistry, Qr as readinessFactsFromLoaders, Ra as heroCtaRowFragment, Ri as buildResolveImageUrlContext, Rr as coerceLinkedContentEntriesPayload, Ru as NO_BLOCK_VERSIONS, Sa as hiddenFromVisitors, Si as RichText$1, Sr as resolveDefaultBlockTree, Ta as bookingConsentCarrierSchema, To as mergeContentWithBlockStyleOverrides, Tr as readBlockComposition, Tu as parseMailingListPlacementTargeting, Ua as ctaButton, Ui as groupOfferingRunsByCourse, Ur as resolveRouteTarget, Vi as normalizeEventRegistrationPageSurfaceSubject, Vr as resolveEntryRouteTarget, Vs as calendarWindowQuerySchema, Vu as selectedContentVersionId, W as usePreviewToken, Wa as bodyCopyFragment, Ws as unwrapResponse, Yi as readOfferingsGrouping, _a as resolveDateRuntimeContext, _l as bindingSchema, _o as parseInlineTextFromUnknown, ai as LOCATION_MAP_LOADER_KEYS, ao as parseGeneratedIconSetId, bn as useEditorUiStoreInstance, br as makeDefaultBlockComponent, cd as assertNever, ci as parseLocationMapLoaderResult, co as coerceInlineTextWithFallback, di as offeringsPreviewBlockDefinition, dr as createPageRenderPlanReader, du as generateUuidV4, fi as publicRouteCandidatesSchema, fr as planArrangementContent, ga as readRuntimeNow, gr as retargetJoinsAcrossOmissions, hr as renderedJoinLayout, ii as normalizeBlockContent, io as parseGeneratedIconAssetId, ja as blogFeaturedPostFragment, jr as renderInlineText, k as PreviewRenderPlanProjection, ka as faqAccordionFragment, kr as buildAppointmentServicesView, li as resolveLocationMapLocation, lo as deriveInlineTextFieldChanges, ml as canWriteLinkedEntry, mo as isInlineTextEmpty, mr as joinSlotKey, ni as getBlockDefinition, oi as describeUnresolvedLocationMapLocation, po as inlineTextToPlainText, pr as composePageJoins, pu as buildMailingListSignupBlockSourceRef, qa as compileManifestContentContract, qi as offeringsListingFor, qr as mapOutlineBlocks, ro as parseBlockIconValue, s as usePreviewPageDesignRenderState, sd as toUtcIsoDateTimeString, si as normalizeLocationMapSource, wa as publicEventsArraySchema, wr as blockLookFromContent, xa as projectRecurringSchedule, xi as cardListPresentationSchemaShape, yn as useEditorUiStore, za as ctaRowFragment, zi as getCurrentResolveImageUrlContext, zu as readEditorBlockVersionsFromPlacement } from "./previewAssistantSlot-BqY2TTcZ.mjs";
|
|
3
|
+
import { Bt as publicLocationSchema, Rt as parseLocationValue, zt as projectPublicLocation } from "./lucide-react-Dfgl3Vtq.mjs";
|
|
4
|
+
import { A as pageDesignRuntimeProjectionFromSource, E as usePreviewCompiledThemeOptional, F as mergeResolvedDataContext, I as withRenderedContentEntry, M as applyPreviewRuntimeContentProjections, N as entryFieldRebindingProjection, P as runtimeContentDecorationProjectionFromServerPage, g as PreviewChromeFloatingBar, j as resolveRuntimePreviewSourceForTheme, ot as EditorCanvasChip } from "./siteStyleAccess-DbKozRSn.mjs";
|
|
5
|
+
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-0xyUPWUB.mjs";
|
|
6
|
+
import { f as useEditor } from "./previewChromeRoot-BuRYe2iL.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-BvdBdeH_.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React, { createContext, memo, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -17,6 +17,7 @@ const SUPPORTED_LOADER_ENDPOINTS = [
|
|
|
17
17
|
"listPublicEventCalendarWindow",
|
|
18
18
|
"listPublicRecurringSchedule",
|
|
19
19
|
"getPublicEventDetails",
|
|
20
|
+
"getPublicMapLocation",
|
|
20
21
|
"listPublicRouteCandidates",
|
|
21
22
|
"listPublicTeamMembers",
|
|
22
23
|
"listPublicProducts",
|
|
@@ -578,9 +579,10 @@ function projectLoaderOutcomes(blocks, outcomes) {
|
|
|
578
579
|
return values.length ? [[block.id, Object.fromEntries(values)]] : [];
|
|
579
580
|
})),
|
|
580
581
|
loaderFailures: Object.fromEntries(blocks.flatMap((block) => {
|
|
581
|
-
const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind
|
|
582
|
+
const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind !== "loaded" ? [[outcome.request.key, {
|
|
582
583
|
endpoint: outcome.request.endpoint,
|
|
583
|
-
params: outcome.request.params
|
|
584
|
+
params: outcome.request.params,
|
|
585
|
+
...outcome.kind === "pending" ? { pending: true } : {}
|
|
584
586
|
}]] : []);
|
|
585
587
|
return values.length ? [[block.id, Object.fromEntries(values)]] : [];
|
|
586
588
|
}))
|
|
@@ -902,6 +904,11 @@ function authoringMessage(reason) {
|
|
|
902
904
|
case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
|
|
903
905
|
case "hidden-business-location": return "This map is hidden because your business address is hidden.";
|
|
904
906
|
case "unresolved-location":
|
|
907
|
+
if (reason.locationReason === "location_loading" || reason.locationReason === "location_load_failed") return describeUnresolvedLocationMapLocation({
|
|
908
|
+
kind: "unresolved",
|
|
909
|
+
source: reason.source,
|
|
910
|
+
reason: reason.locationReason
|
|
911
|
+
}) ?? "";
|
|
905
912
|
if (reason.source === "business_address") return "Business address details are not configured yet.";
|
|
906
913
|
return reason.source === "venue" ? "This map is hidden on your site until the venue has a location." : "This map is hidden on your site until you choose a place.";
|
|
907
914
|
case "editor-unpreviewable":
|
|
@@ -1081,11 +1088,7 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
1081
1088
|
};
|
|
1082
1089
|
}
|
|
1083
1090
|
function publicLocationRuntime(context) {
|
|
1084
|
-
return {
|
|
1085
|
-
businessAddress: context?.businessLocation ?? null,
|
|
1086
|
-
venuesById: context?.venuesById ?? {},
|
|
1087
|
-
siteCountry: context?.siteCountry ?? null
|
|
1088
|
-
};
|
|
1091
|
+
return { siteCountry: context?.siteCountry ?? null };
|
|
1089
1092
|
}
|
|
1090
1093
|
function resolveDemoEmailSuppression(dataContext) {
|
|
1091
1094
|
return dataContext?.demoEmailSuppressed === true;
|
|
@@ -1515,11 +1518,10 @@ function createPageRenderPreparationReader() {
|
|
|
1515
1518
|
};
|
|
1516
1519
|
}
|
|
1517
1520
|
function preparePageRenderEntries(input, previous = null) {
|
|
1518
|
-
const
|
|
1519
|
-
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
1521
|
+
const prepared = preparationAdmission(input).entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous)]);
|
|
1520
1522
|
const entries = prepared.map(([, value]) => value);
|
|
1521
1523
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
1522
|
-
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"));
|
|
1524
|
+
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && candidate.prepared.kind !== "hidden-business-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
1523
1525
|
const surviving = new Set(survivors);
|
|
1524
1526
|
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
1525
1527
|
const regions = {
|
|
@@ -1552,47 +1554,61 @@ function preparationAdmission(input) {
|
|
|
1552
1554
|
mailingList: input.dataContext?.mailingList,
|
|
1553
1555
|
template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
|
|
1554
1556
|
});
|
|
1555
|
-
|
|
1556
|
-
return {
|
|
1557
|
-
permission,
|
|
1558
|
-
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")
|
|
1559
|
-
};
|
|
1557
|
+
return { entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)) };
|
|
1560
1558
|
}
|
|
1561
|
-
function readPreparedPlanEntry(entry, input, previous
|
|
1559
|
+
function readPreparedPlanEntry(entry, input, previous) {
|
|
1562
1560
|
const cached = previous?.byEntry.get(entry);
|
|
1563
1561
|
if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
|
|
1564
|
-
return preparedPlanEntry(entry, prepareSourceEntry(entry, input
|
|
1562
|
+
return preparedPlanEntry(entry, prepareSourceEntry(entry, input));
|
|
1565
1563
|
}
|
|
1566
1564
|
function samePreparationSettings(previous, current) {
|
|
1567
1565
|
return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
|
|
1568
1566
|
}
|
|
1569
|
-
/**
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1567
|
+
/**
|
|
1568
|
+
* A map's place is decided before constructing the block or its hydration props,
|
|
1569
|
+
* so a map with nothing to show touches no override, wrapper or authored detail.
|
|
1570
|
+
* Anything short of a loaded place leaves visitors with no map at all.
|
|
1571
|
+
*/
|
|
1572
|
+
function prepareSourceEntry(entry, input) {
|
|
1575
1573
|
if (entry.block.kind === "block.location-map") {
|
|
1576
1574
|
const content = entry.renderableContent;
|
|
1575
|
+
const locationSource = typeof content.locationSource === "string" ? content.locationSource : null;
|
|
1577
1576
|
const resolved = resolveLocationMapLocation({
|
|
1578
1577
|
location: content.location,
|
|
1579
|
-
locationSource
|
|
1578
|
+
locationSource,
|
|
1580
1579
|
venueId: typeof content.venueId === "string" ? content.venueId : null,
|
|
1581
|
-
|
|
1582
|
-
venuesById: input.dataContext?.venuesById
|
|
1580
|
+
loaded: readLocationMapLoad(entry.block.id, normalizeLocationMapSource(locationSource), input.dataContext)
|
|
1583
1581
|
});
|
|
1584
|
-
if (resolved.kind === "unresolved") return {
|
|
1582
|
+
if (resolved.kind === "unresolved") return resolved.reason === "hidden_business_address" ? {
|
|
1583
|
+
kind: "hidden-business-location",
|
|
1584
|
+
businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
|
|
1585
|
+
} : {
|
|
1585
1586
|
kind: "unresolved-location",
|
|
1586
|
-
source: resolved.source
|
|
1587
|
+
source: resolved.source,
|
|
1588
|
+
reason: resolved.reason
|
|
1587
1589
|
};
|
|
1590
|
+
if (resolved.kind === "venue" && resolved.disclosure === "area") return prepareEntry(withoutEntrancePhoto(entry), input);
|
|
1588
1591
|
}
|
|
1589
1592
|
return prepareEntry(entry, input);
|
|
1590
1593
|
}
|
|
1591
|
-
/**
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1594
|
+
/** A photo of the entrance gives away a place whose address is only shared with a booking. */
|
|
1595
|
+
function withoutEntrancePhoto(entry) {
|
|
1596
|
+
const { entrancePhoto: _withheld, ...content } = entry.renderableContent;
|
|
1597
|
+
return {
|
|
1598
|
+
...entry,
|
|
1599
|
+
renderableContent: content
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
/** A custom place is in the content. The other sources read only this block's own loader. */
|
|
1603
|
+
function readLocationMapLoad(blockId, source, dataContext) {
|
|
1604
|
+
if (source === "custom" || !blockId) return void 0;
|
|
1605
|
+
const key = LOCATION_MAP_LOADER_KEYS[source];
|
|
1606
|
+
const failure = dataContext?.loaderFailures?.[blockId]?.[key];
|
|
1607
|
+
if (failure) return locationMapLoadFromFailure(failure);
|
|
1608
|
+
return parseLocationMapLoaderResult(dataContext?.resolvedData?.[blockId]?.[key]);
|
|
1609
|
+
}
|
|
1610
|
+
function locationMapLoadFromFailure(failure) {
|
|
1611
|
+
return { kind: failure.pending ? "pending" : "failed" };
|
|
1596
1612
|
}
|
|
1597
1613
|
function entryHiddenFromVisitors(entry, facts, interaction) {
|
|
1598
1614
|
return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
|
|
@@ -2221,7 +2237,8 @@ function preparationDiagnostic(prepared, blockKind) {
|
|
|
2221
2237
|
reason: {
|
|
2222
2238
|
kind: prepared.kind,
|
|
2223
2239
|
blockKind,
|
|
2224
|
-
source: prepared.source
|
|
2240
|
+
source: prepared.source,
|
|
2241
|
+
locationReason: prepared.reason
|
|
2225
2242
|
},
|
|
2226
2243
|
outcome: "invalidPlaceholder"
|
|
2227
2244
|
};
|
|
@@ -2963,6 +2980,11 @@ const batchRequestBuilders = {
|
|
|
2963
2980
|
endpoint: "getPublicWeeklySlotAvailability",
|
|
2964
2981
|
params: params ?? { serviceId: "" }
|
|
2965
2982
|
}),
|
|
2983
|
+
getPublicMapLocation: (id, params) => ({
|
|
2984
|
+
id,
|
|
2985
|
+
endpoint: "getPublicMapLocation",
|
|
2986
|
+
params
|
|
2987
|
+
}),
|
|
2966
2988
|
getPublicFormById: (id, params) => ({
|
|
2967
2989
|
id,
|
|
2968
2990
|
endpoint: "getPublicFormById",
|
|
@@ -3026,6 +3048,7 @@ const previewBatchParamReaders = {
|
|
|
3026
3048
|
listPublicMemberships: categoriesParam,
|
|
3027
3049
|
getPublicBookingServices: (params) => nonEmpty(stripUndefined({ ids: normalizeIdsParam(params.ids || void 0) })),
|
|
3028
3050
|
getPublicFormById: (params) => ({ formId: params.formId ?? "" }),
|
|
3051
|
+
getPublicMapLocation: (params) => publicMapLocationParamsSchema.parse(params),
|
|
3029
3052
|
listPublicRouteCandidates: noBatchParams,
|
|
3030
3053
|
listPublicTeamMembers: noBatchParams,
|
|
3031
3054
|
getPublicWeeklySlotAvailability: noBatchParams
|
|
@@ -3122,6 +3145,9 @@ function batchAbortSignal(signals) {
|
|
|
3122
3145
|
//#region ../preview-next/src/client/blocks/usePreviewBlockResolvedData.ts
|
|
3123
3146
|
/** Only active resolved requests live here; the current plan always owns content provenance. */
|
|
3124
3147
|
function createPreviewLoaderRequests(apiClient, context) {
|
|
3148
|
+
return createLoaderRequests(createPreviewBlockDataApiClient(apiClient, context), context);
|
|
3149
|
+
}
|
|
3150
|
+
function createLoaderRequests(client, context) {
|
|
3125
3151
|
const entries = /* @__PURE__ */ new Map();
|
|
3126
3152
|
const listeners = /* @__PURE__ */ new Set();
|
|
3127
3153
|
const version = { current: 0 };
|
|
@@ -3129,7 +3155,6 @@ function createPreviewLoaderRequests(apiClient, context) {
|
|
|
3129
3155
|
data: {},
|
|
3130
3156
|
failures: {}
|
|
3131
3157
|
};
|
|
3132
|
-
const client = createPreviewBlockDataApiClient(apiClient, context);
|
|
3133
3158
|
const keyFor = (request) => stableSerialize({
|
|
3134
3159
|
endpoint: request.endpoint,
|
|
3135
3160
|
params: isSupportedLoaderEndpoint(request.endpoint) ? normalizePublicApiLoaderParams(request.endpoint, request.params, context) : request.params
|
|
@@ -3208,9 +3233,10 @@ function serverRequestMatches(plan, request, snapshot) {
|
|
|
3208
3233
|
const saved = source.requests[request.key];
|
|
3209
3234
|
return Boolean(saved && saved.endpoint === request.endpoint && stableSerialize(saved.params) === stableSerialize(request.params));
|
|
3210
3235
|
}
|
|
3236
|
+
/** Every planned request is started by `reconcile`, so with no server answer it's still on its way. */
|
|
3211
3237
|
function matchingServerOutcome(plan, request, server) {
|
|
3212
3238
|
if (!server || !serverRequestMatches(plan, request, server.loaderSnapshot)) return {
|
|
3213
|
-
kind: "
|
|
3239
|
+
kind: "pending",
|
|
3214
3240
|
request
|
|
3215
3241
|
};
|
|
3216
3242
|
const values = server.resolvedData[request.blockId];
|
|
@@ -3245,11 +3271,7 @@ function usePreviewBlockResolvedData(input) {
|
|
|
3245
3271
|
serverGeneration
|
|
3246
3272
|
]);
|
|
3247
3273
|
const plan = useMemo(() => planBlockDataRequests(page, context, { isValidEndpoint: isSupportedLoaderEndpoint }), [page, dataContext]);
|
|
3248
|
-
const version =
|
|
3249
|
-
useEffect(() => {
|
|
3250
|
-
requests?.reconcile(plan);
|
|
3251
|
-
}, [plan, requests]);
|
|
3252
|
-
useEffect(() => () => requests?.dispose(), [requests]);
|
|
3274
|
+
const version = useActiveLoaderRequests(requests, plan);
|
|
3253
3275
|
const icons = usePreviewGeneratedIcons(page, dataContext?.siteId, apiClient, scope, serverGeneration);
|
|
3254
3276
|
const current = useMemo(() => {
|
|
3255
3277
|
const server = dataContext?.prefetchedBlockData ?? (dataContext?.loaderSnapshot ? {
|
|
@@ -3282,6 +3304,14 @@ function usePreviewBlockResolvedData(input) {
|
|
|
3282
3304
|
};
|
|
3283
3305
|
}, [current, resolvedData]);
|
|
3284
3306
|
}
|
|
3307
|
+
function useActiveLoaderRequests(requests, plan) {
|
|
3308
|
+
const version = useSyncExternalStore(requests?.subscribe ?? emptySubscribe, requests?.version ?? zero, zero);
|
|
3309
|
+
useEffect(() => {
|
|
3310
|
+
requests?.reconcile(plan);
|
|
3311
|
+
}, [plan, requests]);
|
|
3312
|
+
useEffect(() => () => requests?.dispose(), [requests]);
|
|
3313
|
+
return version;
|
|
3314
|
+
}
|
|
3285
3315
|
const emptySubscribe = () => () => {};
|
|
3286
3316
|
const zero = () => 0;
|
|
3287
3317
|
function buildPreviewBlockDataContext(dataContext) {
|