@riverbankcms/sdk 0.160.0 → 0.161.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-CoqeotCL.d.ts → BlocksIslandsHydrator-Bx4kLiTA.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-Dm7_P13o.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-D7HdWWwF.d.ts} +4 -4
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-Ep0jI9eE.d.ts} +1 -1
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-BgAzCrBc.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-DUiOnj9e.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B-uXamTG.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-BDkZYEcS.d.ts} +2 -2
- package/dist/_dts/{index-Blwl7yl6.d.ts → index-BQDBQvdu.d.ts} +1 -1
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-BVkP8f70.d.ts} +1 -1
- package/dist/_dts/{index-CEaKil7G.d.ts → index-CF6Cjs7b.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-CSsfq6KG.d.ts} +3 -17
- package/dist/_dts/{index-DahMwisK.d.ts → index-D_8uz4OP.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-DvKQA6AZ.d.ts} +4 -4
- package/dist/_dts/{index-C5xslEBn.d.ts → index-KPrWM0KF.d.ts} +1 -1
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-ylivB7Jj.d.ts} +2 -2
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-DTjKOO-T.d.ts} +10 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-C1vA5c5w.d.ts} +2 -2
- package/dist/_dts/{schema-D0bNcPWK.d.ts → schema-BHu0PYWl.d.ts} +18821 -16622
- 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/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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- 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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-D8czmbQF.d.ts → types-BR1Yboa9.d.ts} +1060 -140
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-CJXTCF_F.d.ts} +3 -3
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-D02ngcUH.d.ts} +4 -2
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-ZGUiHpDE.d.ts} +7 -7
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BaV565gb.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-DTExCJsb.mjs} +22 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-BDpxmn1p.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-PeCiL82X.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-DWexRLf6.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-3zmIqakW.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-GHi-8BW5.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-BxQLY5cX.mjs} +9 -9
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-B5bmQ03b.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-CgMZ9TeU.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-BEx-qiDE.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-CyH5tA6Y.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-D3uySdGP.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-9RFrBejr.mjs} +29 -13
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-CG2tQx8K.mjs} +25 -13
- package/dist/client/LocationMapActions-Wsr83Q7q.mjs +268 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-Bf2nPACI.mjs} +809 -298
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CZweb1vs.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-Bkgz67gt.mjs} +1 -1
- package/dist/client/ThemedButton-CnyL3s1A.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-TcimLLRQ.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-q-RpJ4aF.mjs} +12 -12
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-DjGfk3Wj.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-CGAk6j0m.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-ArlGmYWV.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-D_h3rAZ2.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-DHOxZbJ7.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-tC-3CzuM.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-DsBb2Pkm.mjs} +1 -1
- package/dist/client/client.mjs +5 -4
- package/dist/client/{context-BLAvalAa.mjs → context-9ZfMb6GA.mjs} +1 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-D-ZqL7-e.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-BCwLqYpW.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-BxkSS9fx.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-xg6to91E.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-C670TgRd.mjs} +2 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-C6GApWTB.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-CWc0dg9i.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D4DbOrvQ.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-C2DfmbC0.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-C_yXmHyz.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DJuaCB-O.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-QZhtdFHA.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-CgvPACwG.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-2uI0-5N-.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Danr0Nk4.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-DJdlLdvZ.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BvjcAZpS.mjs} +1 -1
- package/dist/client/mediaContext-jPeJ2PmJ.mjs +10801 -0
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-Cbepz2KU.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-DN8oMCQ0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-wjLtW-wq.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B7H6gCbj.mjs} +297 -3
- package/dist/client/portal/client.mjs +12 -12
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-CYTR165c.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-B4vTvag8.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-k8LEMSWn.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-DEo8Bqoe.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-G0j0HXBO.mjs} +3 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-BTmSXE3D.mjs} +355 -162
- package/dist/client/rendering/client.mjs +27 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +15 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-B19taoH6.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-Chu5BHra.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-C-m8XHuW.mjs} +990 -2310
- package/dist/client/{shop-DZNC0VKk.mjs → shop-RGWa43H7.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-TJYCBO_H.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-CjCcUB_o.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-tsKfZw1W.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CVqLAU53.mjs} +6 -158
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-C3lHMz_R.mjs} +2 -2
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-V2ifvGGy.mjs} +148 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-D1X69-pN.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-Ch30jino.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-Bwzr1RjV.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-BimJbFC7.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CLAS0upd.mjs} +8 -21
- package/dist/client/{view-CkUn3Y0Y.mjs → view-BUh4LnLS.mjs} +4 -4
- package/dist/client/{view-CseyBW07.mjs → view-Dj_FZHmg.mjs} +18 -15
- package/dist/client/wizardSteps-BkZc-hKH.mjs +6598 -0
- package/dist/preview-next/before-render.mjs +5 -4
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-CwerMfzn.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-Dvq-RW9-.mjs} +110 -63
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-BdFjS39R.mjs} +4 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-BEfHln1E.mjs} +425 -412
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-CjkGh1IG.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → SiteChromeCustomizeContext-CDbxk_qZ.mjs} +2982 -53859
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-b14Bv03E.mjs} +1079 -340
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dd1_mNIg.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-B-CXyGVb.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +5812 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-CGxS8Ns-.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-hLg-yjQN.mjs} +41 -4
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-CeTd2saO.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-C5YpKuKt.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-Cv26lZQ4.mjs} +7 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-CGvGr3yD.mjs} +461 -1064
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-C8a0b-cC.mjs} +11 -5
- package/dist/server/loadPage--DXBwI8V.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-BW7dklu3.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-tIuqmJB3.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-D1fiPOKF.mjs} +596 -301
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild--fO0E2tr.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-CqJnokWJ.mjs} +133 -87
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-CvvZ4JIe.mjs} +41 -3
- package/dist/server/{registry-eFjKtEhF.mjs → registry-BVfCqaCq.mjs} +477 -1021
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-DPNvhXEz.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-CD4peO7m.mjs} +2203 -1223
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-H-EvTJiW.mjs +787 -0
- package/dist/server/siteChromeOverlayClearance-DNC2k1U0.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-ILxc6pid.mjs} +161 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-BNHIXiUj.mjs} +117 -26
- package/dist/server/{validation-B-Xar8QS.mjs → validation-B1ieVemg.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-BQK44wFg.mjs} +1 -1
- package/dist/styles/index.css +157 -0
- package/package.json +1 -1
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/mediaContext-DThoeEBU.mjs +0 -136
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fr as parseBackgroundContent, n as listBlockDescriptors } from "./registry-BVfCqaCq.mjs";
|
|
2
2
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
3
3
|
import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-Chnb1XD-.mjs";
|
|
4
4
|
import { z } from "zod";
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prebuildCache } from "./prebuild
|
|
1
|
+
import { t as prebuildCache } from "./prebuild--fO0E2tr.mjs";
|
|
2
2
|
export { prebuildCache };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Pt as asDesignBlockId, Qt as makeBoundaryId, Rn as defaultThemeTokens, Tr as ok, Vt as asSiteStyleId, _t as resolveManagedMediaReference, br as parseUserId, cn as parseResolvedSurface, dt as mediaSchema, gt as indexRenderableMediaAssets, ht as renderableMediaAssetSchema, ln as parseSurfaceTree, lt as stripStaleTransitionStyleGroup, mr as parseApiKeyId, pt as runtimeMediaSchema, r as themeSchema, un as resolveSurface, vr as parseSiteId, wn as mapDrawingStyle, wr as err, yr as parseSiteTermsVersionId, zt as asLayoutVariantKey } from "./schema-CD4peO7m.mjs";
|
|
2
2
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { d as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector, r as isRecord$3 } from "./publicProducts-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { $r as runTransforms, Ai as NodeSchema, Bn as resolveDateRuntimeContext, Br as resolveBackgroundColorValue, Bt as buildEventListWeek, Ci as fieldSchema, Di as validateManifestLookField, Fr as parseBackgroundContent, Gr as BACKGROUND_POSITION_PRESET_VALUES, Gt as eventCalendarWeekStart, Hn as headerRuntimeTransforms, Ir as parseBackgroundOverlay, Jn as formattingTransforms, Jr as lookLeadSlotTransform, Kn as resolveHeroTitleLength, Kr as getAnchorClasses, Lr as parseRuntimeBackgroundContent, Mi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Oi as sdkBlockPresentationShape, P as projectRecurringSchedule, Qr as createTransformRegistry, Rn as contentTransforms, Rr as resolveSectionSurfaceForeground, Si as builtInBlockKindsSchema, U as calendarWindowQuerySchema, Ui as augmentManifest, Un as chromeLogoTransforms, Vn as mediaTransforms, W as resolveCalendarReadProfile, Wn as layoutTransforms, Wr as standardImageShapeOptions, Xr as lookSkinSlotTransform, Yr as lookQuoteLimitTransform, Zr as asPartialObject, _t as eventCalendarListGroupingDecision, bi as blockCategoryEnum, bt as resolveEventCalendarReadPlan, ft as resolveEventSelection, ji as bindingSchema, jr as boxStylesTransforms, ki as validateSdkBlockDeclaration, na as parseMailingListProviderScope, oa as locationValueSchema, qn as uiTransforms, qr as lookCarouselRegionTransform, t as getBlockDefinition, tt as computeMediaTransformStyle, ur as standardAspectRatioOptions, va as getLocalScheduleDate, vt as eventCalendarListLayoutCompatibleDisplayModeValues, wa as toUtcIsoDateTimeString, xi as blockSectionDeclarationShape, yt as eventCalendarListLayoutOptions, zn as readRuntimeNow, zr as resolveSurfaceForegroundStyles } from "./registry-BVfCqaCq.mjs";
|
|
4
|
+
import { d as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector, r as isRecord$3 } from "./publicProducts-CvvZ4JIe.mjs";
|
|
5
|
+
import { B as resolveEffectiveKnobs, E as parseGradientPresetId, H as cardListKnobBlocks, T as getGradientPreset, V as cardListFamilyBlocks, _ as resolveEffectiveArrangement, b as deriveSiteStyleBlockPolicy, f as arrangementSlotNames, g as readStoredMode, h as arrangementManifestFromVariants, m as resolveLookSlotSurfaces, p as resolveItemSurface, v as resolveModeArrangement, w as gradientToCss, y as resolvePublishedLook } from "./effectiveNavLinkStyle-CGvGr3yD.mjs";
|
|
6
|
+
import { a as heroPhotoPaintsGround, i as deriveSectionGround, n as composeBoundary, o as parseCanonicalRuntimeBackground, r as sectionFactsForContent, s as resolveSectionBackground, t as boundaryLayout } from "./site-styles-H-EvTJiW.mjs";
|
|
7
7
|
import { i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
8
8
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -428,6 +428,80 @@ function toEditorPresentationPage(page) {
|
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
430
|
//#endregion
|
|
431
|
+
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
432
|
+
/**
|
|
433
|
+
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
434
|
+
* options show and what renders can't disagree. Knob buffets are the block's
|
|
435
|
+
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
436
|
+
* offer can only remove or narrow further.
|
|
437
|
+
*/
|
|
438
|
+
function resolveArrangementKnobs(input) {
|
|
439
|
+
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
440
|
+
const exposure = arrangementKnobExposure(input.blockKind, input.look, length);
|
|
441
|
+
return {
|
|
442
|
+
length,
|
|
443
|
+
exposure,
|
|
444
|
+
knobs: resolveEffectiveKnobs({
|
|
445
|
+
exposure,
|
|
446
|
+
content: normalizedHeadlinePreference(input.content)
|
|
447
|
+
})
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
function arrangementKnobExposure(blockKind, look, length) {
|
|
451
|
+
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
452
|
+
if (facet.knob === void 0 || facet.target.kind !== "content-field") return [];
|
|
453
|
+
const id = facet.target.field;
|
|
454
|
+
return [{
|
|
455
|
+
definition: {
|
|
456
|
+
id,
|
|
457
|
+
defaultValue: (look.look.structure.knobDefaults ?? {})[id] ?? facet.defaultValue,
|
|
458
|
+
values: facet.values.map((value) => value.value),
|
|
459
|
+
...knobKindMetadata(facet.knob)
|
|
460
|
+
},
|
|
461
|
+
exposed: exposedKnobIds(look).includes(id),
|
|
462
|
+
forced: look.look.structure.forcedKnobs?.[id],
|
|
463
|
+
lookValues: look.look.structure.knobValues?.[id],
|
|
464
|
+
styleValues: look.knobValues[id],
|
|
465
|
+
lengthValues: id === "titleSize" ? headlineAllowedValues(length) : void 0
|
|
466
|
+
}];
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
function knobKindMetadata(knob) {
|
|
470
|
+
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
471
|
+
ordered: false,
|
|
472
|
+
textMaxLength: knob.maxLength
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function headlineAllowedValues(length) {
|
|
476
|
+
switch (length) {
|
|
477
|
+
case "long": return ["quiet"];
|
|
478
|
+
case "medium": return ["quiet", "auto"];
|
|
479
|
+
case "short": return [
|
|
480
|
+
"quiet",
|
|
481
|
+
"auto",
|
|
482
|
+
"display"
|
|
483
|
+
];
|
|
484
|
+
case null: return;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
488
|
+
function normalizedHeadlinePreference(content) {
|
|
489
|
+
switch (content.titleSize) {
|
|
490
|
+
case "editorial": return {
|
|
491
|
+
...content,
|
|
492
|
+
titleSize: "auto"
|
|
493
|
+
};
|
|
494
|
+
case "poster": return {
|
|
495
|
+
...content,
|
|
496
|
+
titleSize: "display"
|
|
497
|
+
};
|
|
498
|
+
default: return content;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
function exposedKnobIds(look) {
|
|
502
|
+
return [...look.look.structure.knobs, ...look.addKnobs ?? []].filter((id) => !look.removeKnobs.some((removed) => removed === id));
|
|
503
|
+
}
|
|
504
|
+
//#endregion
|
|
431
505
|
//#region ../blocks/src/system/customize/facets.ts
|
|
432
506
|
function defineCustomizeFacet(definition) {
|
|
433
507
|
return definition;
|
|
@@ -607,80 +681,6 @@ function systemCustomizeFacetDefinitionsForBlock(blockKind) {
|
|
|
607
681
|
return systemCustomizeFacetDefinitions.filter((definition) => definition.blockKind === blockKind || "blockKinds" in definition && definition.blockKinds?.some((kind) => kind === blockKind));
|
|
608
682
|
}
|
|
609
683
|
//#endregion
|
|
610
|
-
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
611
|
-
/**
|
|
612
|
-
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
613
|
-
* options show and what renders can't disagree. Knob buffets are the block's
|
|
614
|
-
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
615
|
-
* offer can only remove or narrow further.
|
|
616
|
-
*/
|
|
617
|
-
function resolveArrangementKnobs(input) {
|
|
618
|
-
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
619
|
-
const exposure = arrangementKnobExposure(input.blockKind, input.look, length);
|
|
620
|
-
return {
|
|
621
|
-
length,
|
|
622
|
-
exposure,
|
|
623
|
-
knobs: resolveEffectiveKnobs({
|
|
624
|
-
exposure,
|
|
625
|
-
content: normalizedHeadlinePreference(input.content)
|
|
626
|
-
})
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
function arrangementKnobExposure(blockKind, look, length) {
|
|
630
|
-
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
631
|
-
if (facet.knob === void 0 || facet.target.kind !== "content-field") return [];
|
|
632
|
-
const id = facet.target.field;
|
|
633
|
-
return [{
|
|
634
|
-
definition: {
|
|
635
|
-
id,
|
|
636
|
-
defaultValue: (look.look.structure.knobDefaults ?? {})[id] ?? facet.defaultValue,
|
|
637
|
-
values: facet.values.map((value) => value.value),
|
|
638
|
-
...knobKindMetadata(facet.knob)
|
|
639
|
-
},
|
|
640
|
-
exposed: exposedKnobIds(look).includes(id),
|
|
641
|
-
forced: look.look.structure.forcedKnobs?.[id],
|
|
642
|
-
lookValues: look.look.structure.knobValues?.[id],
|
|
643
|
-
styleValues: look.knobValues[id],
|
|
644
|
-
lengthValues: id === "titleSize" ? headlineAllowedValues(length) : void 0
|
|
645
|
-
}];
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
function knobKindMetadata(knob) {
|
|
649
|
-
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
650
|
-
ordered: false,
|
|
651
|
-
textMaxLength: knob.maxLength
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
function headlineAllowedValues(length) {
|
|
655
|
-
switch (length) {
|
|
656
|
-
case "long": return ["quiet"];
|
|
657
|
-
case "medium": return ["quiet", "auto"];
|
|
658
|
-
case "short": return [
|
|
659
|
-
"quiet",
|
|
660
|
-
"auto",
|
|
661
|
-
"display"
|
|
662
|
-
];
|
|
663
|
-
case null: return;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
667
|
-
function normalizedHeadlinePreference(content) {
|
|
668
|
-
switch (content.titleSize) {
|
|
669
|
-
case "editorial": return {
|
|
670
|
-
...content,
|
|
671
|
-
titleSize: "auto"
|
|
672
|
-
};
|
|
673
|
-
case "poster": return {
|
|
674
|
-
...content,
|
|
675
|
-
titleSize: "display"
|
|
676
|
-
};
|
|
677
|
-
default: return content;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
function exposedKnobIds(look) {
|
|
681
|
-
return [...look.look.structure.knobs, ...look.addKnobs ?? []].filter((id) => !look.removeKnobs.some((removed) => removed === id));
|
|
682
|
-
}
|
|
683
|
-
//#endregion
|
|
684
684
|
//#region ../blocks/src/system/transforms/registry/offeringsPreview.ts
|
|
685
685
|
/** Reuse the existing occurrence read for the date strip and card date rows. */
|
|
686
686
|
const offeringsPreviewDatesReadEnabled = {
|
|
@@ -990,6 +990,29 @@ function resolveAuthoredLinkHref(value, context = {}) {
|
|
|
990
990
|
function resolvePreResolvedLink(link) {
|
|
991
991
|
return !(typeof link.kind === "string" ? link.kind : null) && typeof link.href === "string" ? resolveExternalLink(link) : null;
|
|
992
992
|
}
|
|
993
|
+
//#endregion
|
|
994
|
+
//#region ../blocks/src/system/transforms/registry/mapDrawing.ts
|
|
995
|
+
/**
|
|
996
|
+
* Map tokens for the section ground a drawing sits on. The value is the
|
|
997
|
+
* section's `_sectionStyles.background`, resolved by the same owner as the
|
|
998
|
+
* section's own foreground; theme-core decides every map colour from it.
|
|
999
|
+
*/
|
|
1000
|
+
const mapDrawingStyleTransform = {
|
|
1001
|
+
id: "mapDrawing.resolveStyle",
|
|
1002
|
+
kind: "formatter",
|
|
1003
|
+
summary: "Resolve map drawing tokens from the section ground and site style",
|
|
1004
|
+
run: (value, options, context) => mapDrawingStyle({
|
|
1005
|
+
foreground: resolveSectionSurfaceForeground(value ?? sectionFallbackBackground(options?.fallbackToken), context, { fallbackToken: options?.fallbackToken }),
|
|
1006
|
+
palette: context.theme.palette,
|
|
1007
|
+
skin: context.theme.skin
|
|
1008
|
+
})
|
|
1009
|
+
};
|
|
1010
|
+
function sectionFallbackBackground(token) {
|
|
1011
|
+
return token === void 0 ? void 0 : {
|
|
1012
|
+
type: "color",
|
|
1013
|
+
color: token
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
993
1016
|
const eventCalendarSelectionParam = {
|
|
994
1017
|
id: "events.calendarSelectionParam",
|
|
995
1018
|
kind: "formatter",
|
|
@@ -1078,7 +1101,8 @@ const builtinTransformDefinitions = [
|
|
|
1078
1101
|
...linksTransforms,
|
|
1079
1102
|
...boxStylesTransforms,
|
|
1080
1103
|
...contentTransforms,
|
|
1081
|
-
...headerRuntimeTransforms
|
|
1104
|
+
...headerRuntimeTransforms,
|
|
1105
|
+
mapDrawingStyleTransform
|
|
1082
1106
|
];
|
|
1083
1107
|
const defaultTransforms = createTransformRegistry(builtinTransformDefinitions);
|
|
1084
1108
|
//#endregion
|
|
@@ -1730,12 +1754,31 @@ function getRenderableContent(block, previewStage = "published") {
|
|
|
1730
1754
|
return selectBlockContent(block, previewStage);
|
|
1731
1755
|
}
|
|
1732
1756
|
function arrangementRuntime(content) {
|
|
1733
|
-
const value = content._arrangementLooks;
|
|
1734
|
-
return isObjectRecord(value) && isObjectRecord(value.byMode) && Array.isArray(value.available) && Array.isArray(value.rhythm) ? value : null;
|
|
1757
|
+
const value = parseSurfaceTree(content._arrangementLooks);
|
|
1758
|
+
return isObjectRecord(value) && isObjectRecord(value.byMode) && Array.isArray(value.available) && Array.isArray(value.rhythm) ? restoreArrangementRuntime(value) : null;
|
|
1759
|
+
}
|
|
1760
|
+
/** JSON transports carry resolver inputs; rebuild every surface at this boundary. */
|
|
1761
|
+
function restoreCompiledLook(look) {
|
|
1762
|
+
return {
|
|
1763
|
+
...look,
|
|
1764
|
+
itemSurfaces: Object.fromEntries(Object.entries(look.itemSurfaces).map(([slot, surface]) => [slot, parseResolvedSurface(surface)])),
|
|
1765
|
+
...look.roleSurfaces ? { roleSurfaces: {
|
|
1766
|
+
card: parseResolvedSurface(look.roleSurfaces.card),
|
|
1767
|
+
statement: parseResolvedSurface(look.roleSurfaces.statement),
|
|
1768
|
+
highlight: parseResolvedSurface(look.roleSurfaces.highlight)
|
|
1769
|
+
} } : {}
|
|
1770
|
+
};
|
|
1771
|
+
}
|
|
1772
|
+
function restoreArrangementRuntime(runtime) {
|
|
1773
|
+
return {
|
|
1774
|
+
...runtime,
|
|
1775
|
+
available: runtime.available.map(restoreCompiledLook),
|
|
1776
|
+
byMode: Object.fromEntries(Object.entries(runtime.byMode).map(([mode, look]) => [mode, restoreCompiledLook(look)]))
|
|
1777
|
+
};
|
|
1735
1778
|
}
|
|
1736
1779
|
function effectiveLookFromContent(content) {
|
|
1737
1780
|
const value = content._effectiveLook;
|
|
1738
|
-
return isObjectRecord(value) && isObjectRecord(value.look) ? value : null;
|
|
1781
|
+
return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
|
|
1739
1782
|
}
|
|
1740
1783
|
function planArrangementContent(blockKind, manifest, content, audience) {
|
|
1741
1784
|
const runtime = arrangementRuntime(content);
|
|
@@ -1778,6 +1821,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
1778
1821
|
}),
|
|
1779
1822
|
...arrangementPanelContent(activeContent, effective, mode),
|
|
1780
1823
|
...arrangementQuoteContent(blockKind, effective, values),
|
|
1824
|
+
_arrangementLooks: runtime,
|
|
1781
1825
|
_effectiveLook: effective,
|
|
1782
1826
|
_lookHooks: arrangementContentHooks(effective, mode, length, {
|
|
1783
1827
|
...facts,
|
|
@@ -1837,7 +1881,8 @@ function arrangementContentFacts(content) {
|
|
|
1837
1881
|
facts: Array.isArray(content.facts) && content.facts.length > 0,
|
|
1838
1882
|
featured,
|
|
1839
1883
|
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
1840
|
-
figure: typeof content.figure === "string" && content.figure.trim().length > 0
|
|
1884
|
+
figure: typeof content.figure === "string" && content.figure.trim().length > 0,
|
|
1885
|
+
entrance: isObjectRecord(content.entrancePhoto)
|
|
1841
1886
|
}
|
|
1842
1887
|
};
|
|
1843
1888
|
}
|
|
@@ -1846,7 +1891,7 @@ function arrangementPhotoCount(content) {
|
|
|
1846
1891
|
if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord(card) && isObjectRecord(card.media)).length;
|
|
1847
1892
|
if (Array.isArray(content.members)) return content.members.filter((member) => isObjectRecord(member) && isObjectRecord(member.photo)).length;
|
|
1848
1893
|
if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length;
|
|
1849
|
-
if (isObjectRecord(content.media)) return 1;
|
|
1894
|
+
if (isObjectRecord(content.media) || isObjectRecord(content.entrancePhoto)) return 1;
|
|
1850
1895
|
const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
|
|
1851
1896
|
return isObjectRecord((isObjectRecord(section.background) ? section.background : {}).image) ? 1 : 0;
|
|
1852
1897
|
}
|
|
@@ -3297,11 +3342,12 @@ const appointmentSetupVenueChoiceSchema = z.discriminatedUnion("kind", [
|
|
|
3297
3342
|
title: z.string().trim().min(1),
|
|
3298
3343
|
description: z.string().nullable(),
|
|
3299
3344
|
timezone: z.string().trim().min(1).nullable(),
|
|
3300
|
-
|
|
3345
|
+
locationValue: locationValueSchema.nullable().optional(),
|
|
3346
|
+
addressJson: z.record(z.string(), z.unknown()).optional(),
|
|
3301
3347
|
locationJson: z.object({
|
|
3302
3348
|
lat: z.number(),
|
|
3303
3349
|
lng: z.number()
|
|
3304
|
-
}).nullable()
|
|
3350
|
+
}).nullable().optional()
|
|
3305
3351
|
})
|
|
3306
3352
|
]);
|
|
3307
3353
|
const appointmentSetupPaymentDraftSchema = z.discriminatedUnion("kind", [
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ln as parseSurfaceTree } from "./schema-CD4peO7m.mjs";
|
|
2
|
+
import "./site-styles-H-EvTJiW.mjs";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
3
5
|
function availability(transport) {
|
|
@@ -3265,6 +3267,13 @@ const API_ENDPOINTS = {
|
|
|
3265
3267
|
responseKind: "json",
|
|
3266
3268
|
errors: []
|
|
3267
3269
|
},
|
|
3270
|
+
replyToSupportTicket: {
|
|
3271
|
+
path: "/assistant/support/reply",
|
|
3272
|
+
method: "POST",
|
|
3273
|
+
auth: "user",
|
|
3274
|
+
responseKind: "json",
|
|
3275
|
+
errors: []
|
|
3276
|
+
},
|
|
3268
3277
|
assistantTurn: {
|
|
3269
3278
|
path: "/assistant/turn",
|
|
3270
3279
|
method: "POST",
|
|
@@ -4751,6 +4760,22 @@ const API_ENDPOINTS = {
|
|
|
4751
4760
|
auth: "admin",
|
|
4752
4761
|
responseKind: "json"
|
|
4753
4762
|
},
|
|
4763
|
+
adminReplyToSupportTicket: {
|
|
4764
|
+
path: "/admin/support/tickets/reply",
|
|
4765
|
+
method: "POST",
|
|
4766
|
+
tags: ["admin", "support"],
|
|
4767
|
+
auth: "admin",
|
|
4768
|
+
responseKind: "json",
|
|
4769
|
+
errors: []
|
|
4770
|
+
},
|
|
4771
|
+
adminSetSupportTicketStatus: {
|
|
4772
|
+
path: "/admin/support/tickets/status",
|
|
4773
|
+
method: "POST",
|
|
4774
|
+
tags: ["admin", "support"],
|
|
4775
|
+
auth: "admin",
|
|
4776
|
+
responseKind: "json",
|
|
4777
|
+
errors: []
|
|
4778
|
+
},
|
|
4754
4779
|
mfaTotpEnroll: {
|
|
4755
4780
|
path: "/auth/mfa/totp/enroll",
|
|
4756
4781
|
method: "POST",
|
|
@@ -6819,8 +6844,17 @@ const API_ENDPOINTS = {
|
|
|
6819
6844
|
responseKind: "json",
|
|
6820
6845
|
errors: ["resource:conflict", "resource:not_found"]
|
|
6821
6846
|
},
|
|
6822
|
-
|
|
6823
|
-
|
|
6847
|
+
previewLocationDrawing: {
|
|
6848
|
+
errors: ["resource:not_found"],
|
|
6849
|
+
path: "/sites/{siteId}/location/drawing-preview",
|
|
6850
|
+
method: "POST",
|
|
6851
|
+
tags: [],
|
|
6852
|
+
auth: "user",
|
|
6853
|
+
responseKind: "json"
|
|
6854
|
+
},
|
|
6855
|
+
geocodeLocation: {
|
|
6856
|
+
errors: ["resource:not_found"],
|
|
6857
|
+
path: "/sites/{siteId}/location/geocode",
|
|
6824
6858
|
method: "POST",
|
|
6825
6859
|
tags: ["site-{siteId}"],
|
|
6826
6860
|
auth: "user",
|
|
@@ -8918,7 +8952,7 @@ async function parseSuccessResponse(endpoint, response, config) {
|
|
|
8918
8952
|
if (!raw.trim()) return buildSuccessEnvelope(void 0, requestId);
|
|
8919
8953
|
let parsed;
|
|
8920
8954
|
try {
|
|
8921
|
-
parsed = JSON.parse(raw);
|
|
8955
|
+
parsed = parseSurfaceTree(JSON.parse(raw));
|
|
8922
8956
|
} catch (cause) {
|
|
8923
8957
|
throw new ApiRequestError(`Failed to parse JSON response for endpoint ${String(endpoint)}`, {
|
|
8924
8958
|
endpoint,
|
|
@@ -8963,6 +8997,9 @@ function createRawCMSClient(getHeaders = () => ({}), baseUrl) {
|
|
|
8963
8997
|
return fetchPromise;
|
|
8964
8998
|
};
|
|
8965
8999
|
}
|
|
9000
|
+
function surfaceTransportCapability(endpoint) {
|
|
9001
|
+
return endpoint === "getContentByPath" ? "revision-v1" : void 0;
|
|
9002
|
+
}
|
|
8966
9003
|
function buildApiRequestPlan(input) {
|
|
8967
9004
|
const { endpoint, body, params, headers = {}, baseUrl } = input;
|
|
8968
9005
|
const options = input.options ?? {};
|
|
@@ -8996,6 +9033,7 @@ function buildApiRequestPlan(input) {
|
|
|
8996
9033
|
if (isGetOrHead && typeof body === "object" && body !== null && !isFormDataBody(body)) Object.entries(body).forEach(([key, value]) => {
|
|
8997
9034
|
appendQueryParam(queryParams, key, value);
|
|
8998
9035
|
});
|
|
9036
|
+
appendQueryParam(queryParams, "surfaceTransport", surfaceTransportCapability(endpoint));
|
|
8999
9037
|
const queryString = queryParams.toString();
|
|
9000
9038
|
if (queryString) url += (url.includes("?") ? "&" : "?") + queryString;
|
|
9001
9039
|
const formDataBody = isFormDataBody(body) ? body : void 0;
|