@riverbankcms/sdk 0.163.0 → 0.164.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/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-C3mJvn27.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-DYQFmf--.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-D_pQO-AS.d.ts} +21803 -21487
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-JS8WYgD3.d.ts} +31245 -31027
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- 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/rendering/client.d.ts +2 -2
- 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 +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/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-BmtrA45p.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-hrSyTApW.mjs} +20 -16
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-Dub71o3c.mjs} +444 -199
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-BX-vWwQc.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BMsWpx8y.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-DMUkBtIO.mjs} +2385 -2364
- package/dist/client/{shop-CTUaT57E.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BQdm441g.mjs} +24 -14
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-BLHYJ8S7.mjs} +20 -15
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-yUIfWX3S.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +68 -68
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-C-1zDCR_.mjs} +3 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +240 -177
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-g7NPrsGp.mjs} +60 -45
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewAuthStore-By_zfrS5.mjs} +102570 -102217
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → siteStyleAccess-BiSyYyyr.mjs} +3541 -3525
- package/dist/preview-next/client/{spinner-CjxE3uws.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-D5tHZEz5.mjs} +31 -42
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-Iy7g11iP.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-CiKaE8ms.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +14 -8
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DVemf-GV.mjs} +66 -46
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-Bnbwoe5n.mjs} +48 -27
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-D3Fc5TKk.mjs} +76 -70
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-zjd1P2Dl.mjs} +34 -21
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-BlTWmTSl.mjs} +58 -37
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-yHytcXIB.mjs} +9 -10
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-cbbK3Bho.mjs} +286 -71
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +262 -65
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Cn as ok, Dn as parseResolvedSurface, Dt as indexRenderableMediaAssets, Et as renderableMediaAssetSchema, Lt as asDesignBlockId, On as parseSurfaceTree, Ot as resolveManagedMediaReference, Sn as err, St as mediaSchema, Ut as asSiteStyleId, Vt as asLayoutVariantKey, _n as parseSiteTermsVersionId, bt as stripStaleTransitionStyleGroup, dn as parseApiKeyId, dr as defaultThemeTokens, gn as parseSiteId, kn as resolveSurface, r as themeSchema, tn as makeBoundaryId, vn as parseUserId, wn as mapDrawingStyle, wt as runtimeMediaSchema } from "./schema-
|
|
1
|
+
import { Cn as ok, Dn as parseResolvedSurface, Dt as indexRenderableMediaAssets, Et as renderableMediaAssetSchema, Lt as asDesignBlockId, On as parseSurfaceTree, Ot as resolveManagedMediaReference, Sn as err, St as mediaSchema, Ut as asSiteStyleId, Vt as asLayoutVariantKey, _n as parseSiteTermsVersionId, bt as stripStaleTransitionStyleGroup, dn as parseApiKeyId, dr as defaultThemeTokens, gn as parseSiteId, kn as resolveSurface, r as themeSchema, tn as makeBoundaryId, vn as parseUserId, wn as mapDrawingStyle, wt as runtimeMediaSchema } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import { $r as lookSkinSlotTransform, Ai as validateManifestLookField, Br as parseRuntimeBackgroundContent, Bt as buildEventListWeek, Ci as blockCategoryEnum, Da as toUtcIsoDateTimeString, Ei as fieldSchema, F as projectRecurringSchedule, Fi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, G as resolveCalendarReadProfile, Gn as headerRuntimeTransforms, Gt as eventCalendarWeekStart, Hn as readRuntimeNow, Hr as resolveSurfaceForegroundStyles, Jr as BACKGROUND_POSITION_PRESET_VALUES, Ki as augmentManifest, Kn as chromeLogoTransforms, Mi as validateSdkBlockDeclaration, Ni as NodeSchema, Pi as bindingSchema, Pr as boxStylesTransforms, Qr as lookQuoteLimitTransform, Rn as contentTransforms, Rr as parseBackgroundContent, Ti as builtInBlockKindsSchema, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Vr as resolveSectionSurfaceForeground, W as calendarWindowQuerySchema, Wn as mediaTransforms, Xn as uiTransforms, Xr as lookCarouselRegionTransform, Yn as resolveHeroTitleLength, Yr as getAnchorClasses, Zn as formattingTransforms, Zr as lookLeadSlotTransform, aa as parseMailingListProviderScope, bt as eventCalendarListLayoutOptions, ei as asPartialObject, ji as sdkBlockPresentationShape, la as locationValueSchema, ni as runTransforms, nt as computeMediaTransformStyle, pr as standardAspectRatioOptions, pt as resolveEventSelection, qn as layoutTransforms, qr as standardImageShapeOptions, t as getBlockDefinition, ti as createTransformRegistry, vt as eventCalendarListGroupingDecision, wi as blockSectionDeclarationShape, xa as getLocalScheduleDate, xt as resolveEventCalendarReadPlan, yt as eventCalendarListLayoutCompatibleDisplayModeValues, zr as parseBackgroundOverlay } from "./registry-zjd1P2Dl.mjs";
|
|
2
3
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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-CxE9F3hj.mjs";
|
|
4
|
+
import { m as SUPPORTED_LOADER_ENDPOINTS$1, n as parsePublicProductCategorySelector } from "./publicProducts-D3Fc5TKk.mjs";
|
|
5
|
+
import { D as getGradientPreset, E as gradientToCss, G as resolveEffectiveKnobs, K as cardListFamilyBlocks, O as parseGradientPresetId, _ as readStoredMode, b as resolvePublishedLook, g as arrangementManifestFromVariants, h as resolveLookSlotSurfaces, m as resolveItemSurface, p as arrangementSlotNames, q as cardListKnobBlocks, v as resolveEffectiveArrangement, x as deriveSiteStyleBlockPolicy, y as resolveModeArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
|
|
6
|
+
import { a as deriveSectionGround, c as resolveSectionBackground, i as applyLookPhotoTreatment, n as composeBoundary, o as heroPhotoPaintsGround, r as sectionFactsForContent, s as parseCanonicalRuntimeBackground, t as boundaryLayout } from "./site-styles-yHytcXIB.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";
|
|
10
10
|
//#region ../core/src/rich-text.ts
|
|
11
|
-
function isRecord$
|
|
11
|
+
function isRecord$3(value) {
|
|
12
12
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
13
13
|
}
|
|
14
14
|
function hasOnlyKeys(value, allowed) {
|
|
@@ -28,15 +28,15 @@ function isDenseArrayOf(value, predicate) {
|
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
30
|
function isTipTapMark(value) {
|
|
31
|
-
return isRecord$
|
|
31
|
+
return isRecord$3(value) && hasOnlyKeys(value, markKeys) && typeof value.type === "string" && value.type.length > 0 && (value.attrs === void 0 || isRecord$3(value.attrs));
|
|
32
32
|
}
|
|
33
33
|
function isTipTapNode(value) {
|
|
34
|
-
if (!isRecord$
|
|
34
|
+
if (!isRecord$3(value) || !hasOnlyKeys(value, nodeKeys) || typeof value.type !== "string" || value.type.length === 0 || value.type === "doc" || value.attrs !== void 0 && !isRecord$3(value.attrs) || value.marks !== void 0 && (!Array.isArray(value.marks) || !isDenseArrayOf(value.marks, isTipTapMark)) || value.content !== void 0 && (!Array.isArray(value.content) || !isDenseArrayOf(value.content, isTipTapNode))) return false;
|
|
35
35
|
if (value.type === "text") return typeof value.text === "string" && value.text.length > 0 && value.content === void 0;
|
|
36
36
|
return value.text === void 0;
|
|
37
37
|
}
|
|
38
38
|
function isCanonicalRichTextDoc(value) {
|
|
39
|
-
return isRecord$
|
|
39
|
+
return isRecord$3(value) && hasOnlyKeys(value, rootKeys) && value.type === "doc" && Array.isArray(value.content) && isDenseArrayOf(value.content, isTipTapNode);
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region ../core/src/secret.ts
|
|
@@ -1127,7 +1127,7 @@ const defaultTransforms = createTransformRegistry(builtinTransformDefinitions);
|
|
|
1127
1127
|
//#region ../blocks/src/system/data/linkedContentEntries.ts
|
|
1128
1128
|
const LINKED_CONTENT_ENTRY_META_KEY = "__rbLinkedContentEntry";
|
|
1129
1129
|
function coerceLinkedContentEntriesPayload(payload) {
|
|
1130
|
-
if (!isRecord$
|
|
1130
|
+
if (!isRecord$2(payload)) return payload;
|
|
1131
1131
|
const response = payload;
|
|
1132
1132
|
if (!Array.isArray(response.entries)) return payload;
|
|
1133
1133
|
const contentType = parsePublicContentTypeMeta(response.contentType);
|
|
@@ -1135,16 +1135,16 @@ function coerceLinkedContentEntriesPayload(payload) {
|
|
|
1135
1135
|
return response.entries.map((entry) => enrichLinkedContentEntry(entry, contentType));
|
|
1136
1136
|
}
|
|
1137
1137
|
function getLinkedContentEntryMeta(value) {
|
|
1138
|
-
if (!isRecord$
|
|
1138
|
+
if (!isRecord$2(value)) return null;
|
|
1139
1139
|
const candidate = value[LINKED_CONTENT_ENTRY_META_KEY];
|
|
1140
1140
|
return isLinkedContentEntryMeta(candidate) ? candidate : null;
|
|
1141
1141
|
}
|
|
1142
1142
|
function buildLinkedContentEditTarget(input) {
|
|
1143
1143
|
const { entry, sourceBlockId, sourceBlockKind, itemIndex } = input;
|
|
1144
|
-
if (!isRecord$
|
|
1144
|
+
if (!isRecord$2(entry)) return null;
|
|
1145
1145
|
const meta = getLinkedContentEntryMeta(entry);
|
|
1146
1146
|
if (!meta || meta.support.kind !== "supported") return null;
|
|
1147
|
-
const content = isRecord$
|
|
1147
|
+
const content = isRecord$2(entry.content) ? entry.content : {};
|
|
1148
1148
|
return {
|
|
1149
1149
|
kind: "linked-content-entry",
|
|
1150
1150
|
entryId: meta.entryId,
|
|
@@ -1208,12 +1208,12 @@ function resolveLinkedEntryInlineFieldEligibility(input) {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
1210
|
function enrichLinkedContentEntry(entry, contentType) {
|
|
1211
|
-
if (!isRecord$
|
|
1211
|
+
if (!isRecord$2(entry)) return entry;
|
|
1212
1212
|
const entryId = typeof entry.id === "string" ? entry.id : null;
|
|
1213
1213
|
if (!entryId) return entry;
|
|
1214
1214
|
const title = typeof entry.title === "string" && entry.title.trim().length > 0 ? entry.title : entryId;
|
|
1215
1215
|
const optimisticHash = typeof entry.optimisticHash === "string" && entry.optimisticHash.length > 0 ? entry.optimisticHash : null;
|
|
1216
|
-
const content = isRecord$
|
|
1216
|
+
const content = isRecord$2(entry.content) ? entry.content : {};
|
|
1217
1217
|
const meta = {
|
|
1218
1218
|
kind: "linked-content-entry",
|
|
1219
1219
|
entryId,
|
|
@@ -1309,7 +1309,7 @@ function capitalize(value) {
|
|
|
1309
1309
|
return value.charAt(0).toUpperCase() + value.slice(1).toLowerCase();
|
|
1310
1310
|
}
|
|
1311
1311
|
function parsePublicContentTypeMeta(value) {
|
|
1312
|
-
if (!isRecord$
|
|
1312
|
+
if (!isRecord$2(value)) return null;
|
|
1313
1313
|
if (typeof value.key !== "string" || value.key.trim().length === 0) return null;
|
|
1314
1314
|
return {
|
|
1315
1315
|
key: value.key,
|
|
@@ -1319,7 +1319,7 @@ function parsePublicContentTypeMeta(value) {
|
|
|
1319
1319
|
};
|
|
1320
1320
|
}
|
|
1321
1321
|
function parsePublicContentTypeLinkedEntryEditing(value) {
|
|
1322
|
-
if (!isRecord$
|
|
1322
|
+
if (!isRecord$2(value) || typeof value.kind !== "string") return null;
|
|
1323
1323
|
switch (value.kind) {
|
|
1324
1324
|
case "generic": return { kind: "generic" };
|
|
1325
1325
|
case "unsupported-domain-backed": return {
|
|
@@ -1330,7 +1330,7 @@ function parsePublicContentTypeLinkedEntryEditing(value) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function parsePublicContentTypeFieldMeta(value) {
|
|
1333
|
-
if (!isRecord$
|
|
1333
|
+
if (!isRecord$2(value)) return [];
|
|
1334
1334
|
if (typeof value.id !== "string" || typeof value.type !== "string") return [];
|
|
1335
1335
|
return [{
|
|
1336
1336
|
id: value.id,
|
|
@@ -1345,14 +1345,14 @@ function parseStringArray(value) {
|
|
|
1345
1345
|
return value.filter((item) => typeof item === "string");
|
|
1346
1346
|
}
|
|
1347
1347
|
function isLinkedContentEntryMeta(value) {
|
|
1348
|
-
if (!isRecord$
|
|
1348
|
+
if (!isRecord$2(value)) return false;
|
|
1349
1349
|
if (value.kind !== "linked-content-entry") return false;
|
|
1350
1350
|
if (typeof value.entryId !== "string") return false;
|
|
1351
1351
|
if (typeof value.contentTypeKey !== "string") return false;
|
|
1352
1352
|
if (typeof value.contentTypeLabel !== "string") return false;
|
|
1353
1353
|
if (typeof value.title !== "string") return false;
|
|
1354
1354
|
if (!(value.optimisticHash === null || typeof value.optimisticHash === "string")) return false;
|
|
1355
|
-
if (!isRecord$
|
|
1355
|
+
if (!isRecord$2(value.contentType)) return false;
|
|
1356
1356
|
if (!isLinkedEntryFieldSourceArray(value.fieldSources)) return false;
|
|
1357
1357
|
return isLinkedContentEditSupport(value.support);
|
|
1358
1358
|
}
|
|
@@ -1360,7 +1360,7 @@ function isLinkedEntryFieldSourceArray(value) {
|
|
|
1360
1360
|
return Array.isArray(value) && value.every(isLinkedEntryFieldSource);
|
|
1361
1361
|
}
|
|
1362
1362
|
function isLinkedEntryFieldSource(value) {
|
|
1363
|
-
if (!isRecord$
|
|
1363
|
+
if (!isRecord$2(value)) return false;
|
|
1364
1364
|
if (typeof value.displayPath !== "string") return false;
|
|
1365
1365
|
switch (value.kind) {
|
|
1366
1366
|
case "content-field": return typeof value.fieldPath === "string" && (value.fieldType === "text" || value.fieldType === "richText");
|
|
@@ -1381,7 +1381,7 @@ function isLinkedEntryInlineFieldReadOnlyReason(value) {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
function isLinkedContentEditSupport(value) {
|
|
1384
|
-
if (!isRecord$
|
|
1384
|
+
if (!isRecord$2(value) || typeof value.kind !== "string") return false;
|
|
1385
1385
|
switch (value.kind) {
|
|
1386
1386
|
case "supported": return true;
|
|
1387
1387
|
case "unsupported-domain-backed":
|
|
@@ -1390,7 +1390,7 @@ function isLinkedContentEditSupport(value) {
|
|
|
1390
1390
|
default: return false;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
function isRecord$
|
|
1393
|
+
function isRecord$2(value) {
|
|
1394
1394
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1395
1395
|
}
|
|
1396
1396
|
//#endregion
|
|
@@ -1775,10 +1775,15 @@ function arrangementRuntime(content) {
|
|
|
1775
1775
|
const value = parseSurfaceTree(content._arrangementLooks);
|
|
1776
1776
|
return isObjectRecord(value) && isObjectRecord(value.byMode) && Array.isArray(value.available) && Array.isArray(value.rhythm) ? restoreArrangementRuntime(value) : null;
|
|
1777
1777
|
}
|
|
1778
|
-
/**
|
|
1778
|
+
/**
|
|
1779
|
+
* JSON transports carry resolver inputs; rebuild every surface at this boundary.
|
|
1780
|
+
* A payload cached before compiled looks carried `slotRoles` gets the Look's own.
|
|
1781
|
+
*/
|
|
1779
1782
|
function restoreCompiledLook(look) {
|
|
1783
|
+
const transported = look;
|
|
1780
1784
|
return {
|
|
1781
1785
|
...look,
|
|
1786
|
+
slotRoles: transported.slotRoles ?? look.look.structure.slotRoles ?? {},
|
|
1782
1787
|
itemSurfaces: Object.fromEntries(Object.entries(look.itemSurfaces).map(([slot, surface]) => [slot, parseResolvedSurface(surface)])),
|
|
1783
1788
|
...look.roleSurfaces ? { roleSurfaces: {
|
|
1784
1789
|
card: parseResolvedSurface(look.roleSurfaces.card),
|
|
@@ -1831,6 +1836,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
1831
1836
|
});
|
|
1832
1837
|
return {
|
|
1833
1838
|
...activeContent,
|
|
1839
|
+
...arrangementPhotoTreatmentContent(activeContent, effective.look),
|
|
1834
1840
|
...mode !== null ? { variant: mode } : {},
|
|
1835
1841
|
...effectiveContent,
|
|
1836
1842
|
...photoContent,
|
|
@@ -1852,6 +1858,16 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
1852
1858
|
blockLook: effective.look.id
|
|
1853
1859
|
};
|
|
1854
1860
|
}
|
|
1861
|
+
/** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
|
|
1862
|
+
function arrangementPhotoTreatmentContent(content, look) {
|
|
1863
|
+
if (!look.structure.photoTreatment) return {};
|
|
1864
|
+
const authored = parseCanonicalRuntimeBackground(content);
|
|
1865
|
+
if (authored.kind === "none") return {};
|
|
1866
|
+
return { _sectionStyles: {
|
|
1867
|
+
...isObjectRecord(content._sectionStyles) ? content._sectionStyles : {},
|
|
1868
|
+
background: applyLookPhotoTreatment(authored.background, look.structure.photoTreatment)
|
|
1869
|
+
} };
|
|
1870
|
+
}
|
|
1855
1871
|
/** Widget section hooks use the theme; hero background geometry never travels to list islands. */
|
|
1856
1872
|
function arrangementContentSlots(blockKind) {
|
|
1857
1873
|
return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
@@ -2054,7 +2070,7 @@ function resolveArrangementRoleSurfaces(look, runtime, background) {
|
|
|
2054
2070
|
...look,
|
|
2055
2071
|
ground,
|
|
2056
2072
|
roleSurfaces,
|
|
2057
|
-
itemSurfaces: resolveLookSlotSurfaces(look
|
|
2073
|
+
itemSurfaces: resolveLookSlotSurfaces(look, look.itemRoles, roleSurfaces)
|
|
2058
2074
|
};
|
|
2059
2075
|
}
|
|
2060
2076
|
/** The arrangement key is resolved once by planBlock, including pinned Looks. */
|
|
@@ -2665,6 +2681,11 @@ z.object({
|
|
|
2665
2681
|
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
2666
2682
|
search: z.string().trim().min(1).max(120).optional()
|
|
2667
2683
|
});
|
|
2684
|
+
//#endregion
|
|
2685
|
+
//#region ../api/src/utils/isRecord.ts
|
|
2686
|
+
function isRecord$1(value) {
|
|
2687
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2688
|
+
}
|
|
2668
2689
|
z.object({
|
|
2669
2690
|
formulaVersion: z.literal("managed-domain-overage-v1"),
|
|
2670
2691
|
conversionRule: z.literal("usd-to-gbp-1-to-1-v1"),
|
|
@@ -3590,7 +3611,7 @@ function sanitizeMarks(marks) {
|
|
|
3590
3611
|
if (!Array.isArray(marks) || marks.length === 0) return;
|
|
3591
3612
|
const sanitized = marks.flatMap((mark) => {
|
|
3592
3613
|
if (mark.type === "bold" || mark.type === "strong" || mark.type === "italic" || mark.type === "em") return [{ type: mark.type }];
|
|
3593
|
-
if (mark.type === "link" && isRecord$
|
|
3614
|
+
if (mark.type === "link" && isRecord$1(mark.attrs) && typeof mark.attrs.href === "string") {
|
|
3594
3615
|
const attrs = { href: mark.attrs.href };
|
|
3595
3616
|
if (typeof mark.attrs.target === "string" && mark.attrs.target.trim().length > 0) attrs.target = mark.attrs.target;
|
|
3596
3617
|
if (typeof mark.attrs.rel === "string" && mark.attrs.rel.trim().length > 0) attrs.rel = mark.attrs.rel;
|
|
@@ -3697,7 +3718,7 @@ function collectCartLinkStats(items, depth = 0) {
|
|
|
3697
3718
|
return result;
|
|
3698
3719
|
}
|
|
3699
3720
|
function isNavigationMenuValidationItem(value) {
|
|
3700
|
-
if (!isRecord$
|
|
3721
|
+
if (!isRecord$1(value)) return false;
|
|
3701
3722
|
return typeof value.label === "string";
|
|
3702
3723
|
}
|
|
3703
3724
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { On as parseSurfaceTree, gn as parseSiteId } from "./schema-
|
|
2
|
-
import "./site-styles-
|
|
1
|
+
import { On as parseSurfaceTree, gn as parseSiteId } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import "./site-styles-yHytcXIB.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
5
5
|
function availability(transport) {
|
|
@@ -556,6 +556,26 @@ function normalizeSiteCacheId(id) {
|
|
|
556
556
|
const parsed = parseSiteId(id);
|
|
557
557
|
return parsed.ok ? parsed.value : id;
|
|
558
558
|
}
|
|
559
|
+
/** Memory caches follow the same public-read policy as HTTP and batch readers. */
|
|
560
|
+
function buildPublicReadMemoryCacheTags(endpoint, params) {
|
|
561
|
+
const policy = getPublicReadCachePolicy(endpoint);
|
|
562
|
+
if (policy.kind === "live") return [];
|
|
563
|
+
const templates = {
|
|
564
|
+
published_content: TAG_TEMPLATES.siteRoutableContent,
|
|
565
|
+
public_team_members: TAG_TEMPLATES.publicTeamMembers,
|
|
566
|
+
public_products: TAG_TEMPLATES.publicShop,
|
|
567
|
+
site_forms: TAG_TEMPLATES.siteForms
|
|
568
|
+
};
|
|
569
|
+
return buildCacheReadTags([
|
|
570
|
+
...policy.tags.map((kind) => templates[kind]),
|
|
571
|
+
...endpoint === "checkRedirect" ? [
|
|
572
|
+
TAG_TEMPLATES.siteRedirects,
|
|
573
|
+
TAG_TEMPLATES.siteBySlug,
|
|
574
|
+
TAG_TEMPLATES.siteById
|
|
575
|
+
] : [],
|
|
576
|
+
...endpoint === "getPublicFormById" ? [TAG_TEMPLATES.formById] : []
|
|
577
|
+
], params);
|
|
578
|
+
}
|
|
559
579
|
//#endregion
|
|
560
580
|
//#region ../api/src/sdkEntryReadEndpoints.ts
|
|
561
581
|
const SDK_ENTRY_READ_ENDPOINTS = {
|
|
@@ -4680,6 +4700,29 @@ const API_ENDPOINTS = {
|
|
|
4680
4700
|
auth: "user",
|
|
4681
4701
|
responseKind: "json"
|
|
4682
4702
|
},
|
|
4703
|
+
previewSiteBrandingOperation: {
|
|
4704
|
+
path: "/sites/{siteId}/settings/general/preview",
|
|
4705
|
+
method: "POST",
|
|
4706
|
+
auth: "user",
|
|
4707
|
+
responseKind: "json",
|
|
4708
|
+
errors: [
|
|
4709
|
+
"validation:invalid_input",
|
|
4710
|
+
"auth:insufficient_permissions",
|
|
4711
|
+
"server:internal_error"
|
|
4712
|
+
]
|
|
4713
|
+
},
|
|
4714
|
+
confirmSiteBrandingOperation: {
|
|
4715
|
+
path: "/sites/{siteId}/settings/general/confirm",
|
|
4716
|
+
method: "POST",
|
|
4717
|
+
auth: "user",
|
|
4718
|
+
responseKind: "json",
|
|
4719
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
4720
|
+
errors: [
|
|
4721
|
+
"validation:invalid_input",
|
|
4722
|
+
"auth:insufficient_permissions",
|
|
4723
|
+
"server:internal_error"
|
|
4724
|
+
]
|
|
4725
|
+
},
|
|
4683
4726
|
getSiteFooterBlocks: {
|
|
4684
4727
|
path: "/sites/{siteId}/content/footer-blocks",
|
|
4685
4728
|
method: "GET",
|
|
@@ -5760,48 +5803,6 @@ const API_ENDPOINTS = {
|
|
|
5760
5803
|
auth: "user",
|
|
5761
5804
|
responseKind: "json"
|
|
5762
5805
|
},
|
|
5763
|
-
classifyMediaAsset: {
|
|
5764
|
-
path: "/media/{assetId}/classify",
|
|
5765
|
-
method: "POST",
|
|
5766
|
-
tags: ["media", "media-{assetId}"],
|
|
5767
|
-
auth: "user",
|
|
5768
|
-
responseKind: "json"
|
|
5769
|
-
},
|
|
5770
|
-
classifyMediaBatch: {
|
|
5771
|
-
path: "/media/classify",
|
|
5772
|
-
method: "POST",
|
|
5773
|
-
tags: ["media"],
|
|
5774
|
-
auth: "user",
|
|
5775
|
-
responseKind: "json"
|
|
5776
|
-
},
|
|
5777
|
-
mediaJobsStatus: {
|
|
5778
|
-
path: "/media/jobs/status",
|
|
5779
|
-
method: "GET",
|
|
5780
|
-
tags: ["media"],
|
|
5781
|
-
auth: "user",
|
|
5782
|
-
responseKind: "json"
|
|
5783
|
-
},
|
|
5784
|
-
enqueueMediaClassifyJob: {
|
|
5785
|
-
path: "/media/jobs",
|
|
5786
|
-
method: "POST",
|
|
5787
|
-
tags: ["media"],
|
|
5788
|
-
auth: "user",
|
|
5789
|
-
responseKind: "json"
|
|
5790
|
-
},
|
|
5791
|
-
runMediaClassifyJob: {
|
|
5792
|
-
path: "/media/jobs/run",
|
|
5793
|
-
method: "POST",
|
|
5794
|
-
tags: ["media"],
|
|
5795
|
-
auth: "user",
|
|
5796
|
-
responseKind: "json"
|
|
5797
|
-
},
|
|
5798
|
-
runAllMediaClassifyJobs: {
|
|
5799
|
-
path: "/media/jobs/run-all",
|
|
5800
|
-
method: "POST",
|
|
5801
|
-
tags: ["media"],
|
|
5802
|
-
auth: "user",
|
|
5803
|
-
responseKind: "json"
|
|
5804
|
-
},
|
|
5805
5806
|
initSiteContent: {
|
|
5806
5807
|
path: "/sites/{siteId}/content/init",
|
|
5807
5808
|
method: "POST",
|
|
@@ -6692,6 +6693,14 @@ const API_ENDPOINTS = {
|
|
|
6692
6693
|
auth: "admin",
|
|
6693
6694
|
responseKind: "json"
|
|
6694
6695
|
},
|
|
6696
|
+
adminClearSitePublicCache: {
|
|
6697
|
+
path: "/admin/sites/{siteId}/cache/clear",
|
|
6698
|
+
method: "POST",
|
|
6699
|
+
tags: ["admin", "sites"],
|
|
6700
|
+
auth: "admin",
|
|
6701
|
+
errors: [],
|
|
6702
|
+
responseKind: "json"
|
|
6703
|
+
},
|
|
6695
6704
|
adminDeleteSite: {
|
|
6696
6705
|
path: "/admin/sites/{siteId}",
|
|
6697
6706
|
method: "DELETE",
|
|
@@ -8922,20 +8931,20 @@ function isApiError(result) {
|
|
|
8922
8931
|
function isApiSuccess(result) {
|
|
8923
8932
|
return result.success === true;
|
|
8924
8933
|
}
|
|
8925
|
-
function isRecord
|
|
8934
|
+
function isRecord(value) {
|
|
8926
8935
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8927
8936
|
}
|
|
8928
8937
|
function isFieldError(value) {
|
|
8929
|
-
return isRecord
|
|
8938
|
+
return isRecord(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
|
|
8930
8939
|
}
|
|
8931
8940
|
function fieldErrorsFromUnknown(value) {
|
|
8932
8941
|
if (!Array.isArray(value)) return null;
|
|
8933
8942
|
return value.every(isFieldError) ? value : null;
|
|
8934
8943
|
}
|
|
8935
8944
|
function extractEnvelopeErrorObject(body) {
|
|
8936
|
-
if (!isRecord
|
|
8945
|
+
if (!isRecord(body)) return null;
|
|
8937
8946
|
const error = body.error;
|
|
8938
|
-
if (!isRecord
|
|
8947
|
+
if (!isRecord(error)) return null;
|
|
8939
8948
|
if ("success" in body && body.success !== false) return null;
|
|
8940
8949
|
return error;
|
|
8941
8950
|
}
|
|
@@ -8990,6 +8999,24 @@ function unwrapResponse(result) {
|
|
|
8990
8999
|
throw new ApiEnvelopeError(result.error);
|
|
8991
9000
|
}
|
|
8992
9001
|
//#endregion
|
|
9002
|
+
//#region ../api/src/request-error.ts
|
|
9003
|
+
var ApiRequestError = class extends Error {
|
|
9004
|
+
constructor(message, options) {
|
|
9005
|
+
super(message);
|
|
9006
|
+
this.name = "ApiRequestError";
|
|
9007
|
+
this.endpoint = options.endpoint;
|
|
9008
|
+
this.status = options.status;
|
|
9009
|
+
this.method = options.method;
|
|
9010
|
+
this.auth = options.auth;
|
|
9011
|
+
this.requestId = options.requestId;
|
|
9012
|
+
this.body = options.body;
|
|
9013
|
+
this.cause = options.cause;
|
|
9014
|
+
this.errorCode = options.errorCode;
|
|
9015
|
+
this.tag = options.tag;
|
|
9016
|
+
this.retryAfterMs = options.retryAfterMs;
|
|
9017
|
+
}
|
|
9018
|
+
};
|
|
9019
|
+
//#endregion
|
|
8993
9020
|
//#region ../surfaces/src/index.ts
|
|
8994
9021
|
const SURFACE_IDS = ["core", "macadamia"];
|
|
8995
9022
|
/**
|
|
@@ -9277,22 +9304,6 @@ function generateRequestId() {
|
|
|
9277
9304
|
function setSdkVersion(version) {
|
|
9278
9305
|
sdkVersion = version;
|
|
9279
9306
|
}
|
|
9280
|
-
var ApiRequestError = class extends Error {
|
|
9281
|
-
constructor(message, options) {
|
|
9282
|
-
super(message);
|
|
9283
|
-
this.name = "ApiRequestError";
|
|
9284
|
-
this.endpoint = options.endpoint;
|
|
9285
|
-
this.status = options.status;
|
|
9286
|
-
this.method = options.method;
|
|
9287
|
-
this.auth = options.auth;
|
|
9288
|
-
this.requestId = options.requestId;
|
|
9289
|
-
this.body = options.body;
|
|
9290
|
-
this.cause = options.cause;
|
|
9291
|
-
this.errorCode = options.errorCode;
|
|
9292
|
-
this.tag = options.tag;
|
|
9293
|
-
this.retryAfterMs = options.retryAfterMs;
|
|
9294
|
-
}
|
|
9295
|
-
};
|
|
9296
9307
|
/**
|
|
9297
9308
|
* Parse the Retry-After header value to milliseconds.
|
|
9298
9309
|
* The header can be either:
|
|
@@ -9594,11 +9605,6 @@ function requireUsableCommitProjection(response, parsed) {
|
|
|
9594
9605
|
throw new ApiCommittedWriteNotice(pageCommitConfirmationEnvelopeSchema.parse(parsed).data);
|
|
9595
9606
|
}
|
|
9596
9607
|
//#endregion
|
|
9597
|
-
//#region ../api/src/utils/isRecord.ts
|
|
9598
|
-
function isRecord(value) {
|
|
9599
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9600
|
-
}
|
|
9601
|
-
//#endregion
|
|
9602
9608
|
//#region ../api/src/bookingRecords.ts
|
|
9603
9609
|
const BOOKING_QUESTION_ANSWER_EXPORT_SCOPES = {
|
|
9604
9610
|
site: "site",
|
|
@@ -9649,4 +9655,4 @@ function parsePublicProductCategorySelector(value) {
|
|
|
9649
9655
|
};
|
|
9650
9656
|
}
|
|
9651
9657
|
//#endregion
|
|
9652
|
-
export {
|
|
9658
|
+
export { isPublicReadEndpoint as _, setSdkVersion as a, isApiError as c, TAG_TEMPLATES as d, buildPublicReadMemoryCacheTags as f, getPublicReadCachePolicy as g, isSupportedLoaderEndpoint as h, createInternalAPIClient as i, unwrapResponse as l, SUPPORTED_LOADER_ENDPOINTS as m, parsePublicProductCategorySelector as n, ApiRequestError as o, buildSiteReadTags as p, createBearerAPIClient as r, ApiEnvelopeError as s, encodePublicProductCategorySelector as t, PUBLIC_READ_ENDPOINT_DEFINITIONS as u, publicReadFreshnessSeconds as v };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { At as parseCanonicalMediaIdentifier, Cn as ok$1, Cr as surfaceInkStyle, Dn as parseResolvedSurface, Dr as mergeStyles, En as opaqueSurfaceDeclarations, F as themeButtonExtraClassesWithTrailingIcon, Gn as surfaceToneFromForegroundToken, Gt as defineBlockDesignCapability, I as themeButtonSizeClassName, J as cardVariantRoleValues, Jn as surfaceInkPublication, Jt as eventListTreatmentValues, K as cardRoleSchema, Kn as resolveSurfaceForeground, L as themeButtonVariantClassNames, Mt as arrangementModes, Nr as parseBlockColorToken, Or as rgbColorValue, Ot as resolveManagedMediaReference, Qt as headingDecorationColorTokenValues, Rn as resolveThemeColorReferenceValue, Sn as err, Tr as borderColorStyle, Tt as buildRenderableMediaAssetIndex, Vn as PUBLIC_BUTTON_ROLES, Wn as selectLogoVariant, Y as normalizeCardRole, Yt as eyebrowTreatmentValues, _n as parseSiteTermsVersionId, _t as runtimeBoxBackgroundSchema, bn as unsafeAsStorageBucketName, cn as tileTreatmentValues, fn as parseContentVersionId, gt as boxBackgroundSchema, hn as parseEventSeriesId, ht as boxBackgroundOverlaySchema, jn as surfaceDecorationColors, kn as resolveSurface, kr as textColorStyle, ln as toNonEmptyReadonlyArray, mn as parseEventOfferingId, p as headerVariantValues, qt as defineFrameCapability, rn as offeringsPreviewCompositionTreatmentValues, sn as testimonialsCompositionTreatmentValues, un as visibleHeadingDecorationFamilyValues, vr as surfaceForegroundInputFromResolved, wr as backgroundColorStyle, wt as runtimeMediaSchema, xn as unsafeAsStoragePath, yn as unsafeAsMediaAssetId, yr as surfaceForegroundStyle } from "./schema-
|
|
1
|
+
import { At as parseCanonicalMediaIdentifier, Cn as ok$1, Cr as surfaceInkStyle, Dn as parseResolvedSurface, Dr as mergeStyles, En as opaqueSurfaceDeclarations, F as themeButtonExtraClassesWithTrailingIcon, Gn as surfaceToneFromForegroundToken, Gt as defineBlockDesignCapability, I as themeButtonSizeClassName, J as cardVariantRoleValues, Jn as surfaceInkPublication, Jt as eventListTreatmentValues, K as cardRoleSchema, Kn as resolveSurfaceForeground, L as themeButtonVariantClassNames, Mt as arrangementModes, Nr as parseBlockColorToken, Or as rgbColorValue, Ot as resolveManagedMediaReference, Qt as headingDecorationColorTokenValues, Rn as resolveThemeColorReferenceValue, Sn as err, Tr as borderColorStyle, Tt as buildRenderableMediaAssetIndex, Vn as PUBLIC_BUTTON_ROLES, Wn as selectLogoVariant, Y as normalizeCardRole, Yt as eyebrowTreatmentValues, _n as parseSiteTermsVersionId, _t as runtimeBoxBackgroundSchema, bn as unsafeAsStorageBucketName, cn as tileTreatmentValues, fn as parseContentVersionId, gt as boxBackgroundSchema, hn as parseEventSeriesId, ht as boxBackgroundOverlaySchema, jn as surfaceDecorationColors, kn as resolveSurface, kr as textColorStyle, ln as toNonEmptyReadonlyArray, mn as parseEventOfferingId, p as headerVariantValues, qt as defineFrameCapability, rn as offeringsPreviewCompositionTreatmentValues, sn as testimonialsCompositionTreatmentValues, un as visibleHeadingDecorationFamilyValues, vr as surfaceForegroundInputFromResolved, wr as backgroundColorStyle, wt as runtimeMediaSchema, xn as unsafeAsStoragePath, yn as unsafeAsMediaAssetId, yr as surfaceForegroundStyle } from "./schema-BlTWmTSl.mjs";
|
|
2
2
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { R as headerRootPaint, T as compiledRuntimeStyleFieldNames, a as readOpeningForegroundProjection, i as transparentHeaderForegroundInput, j as footerForegroundCandidates, n as headerForegroundCandidates, p as arrangementSlotNames, r as headerLeafTextColor, y as resolveModeArrangement } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
|
|
4
|
+
import { c as resolveSectionBackground, l as sectionForegroundBackground, o as heroPhotoPaintsGround, s as parseCanonicalRuntimeBackground, u as defineBlockDesignMetadata } from "./site-styles-yHytcXIB.mjs";
|
|
5
5
|
import { a as isRecord$12, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
6
|
-
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-
|
|
6
|
+
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-D0uCNZ7E.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region ../core/src/block-interaction-context.ts
|
|
11
|
+
/** Server-resolved presentation context, never permission to perform a write. */
|
|
12
|
+
const blockInteractionContextSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("live") }).strict(), z.object({ kind: z.literal("demo") }).strict()]);
|
|
13
|
+
//#endregion
|
|
10
14
|
//#region ../core/src/currency-format.ts
|
|
11
15
|
const CURRENCY_CODE_INPUT_PATTERN = /^[A-Za-z]{3}$/;
|
|
12
16
|
/** Parse + normalize a currency code, or return null if it isn't a 3-letter code. */
|
|
@@ -2107,7 +2111,8 @@ function pageTemplateFromEntry(entry) {
|
|
|
2107
2111
|
//#region ../blocks/src/system/blocks/readiness.ts
|
|
2108
2112
|
const newsletterReadiness = {
|
|
2109
2113
|
needs: ["mailingList"],
|
|
2110
|
-
assess: (content, facts) => {
|
|
2114
|
+
assess: (content, facts, interaction) => {
|
|
2115
|
+
if (interaction?.kind === "demo") return ready;
|
|
2111
2116
|
if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
|
|
2112
2117
|
const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
|
|
2113
2118
|
if (!targeting.ok) return unknownReadiness;
|
|
@@ -2458,6 +2463,12 @@ function rotateNormalizedPoint(point, rotation) {
|
|
|
2458
2463
|
}
|
|
2459
2464
|
}
|
|
2460
2465
|
//#endregion
|
|
2466
|
+
//#region ../blocks/src/system/registryStore.ts
|
|
2467
|
+
const REGISTRY_SYMBOL$1 = Symbol.for("@riverbankcms/blocks/system/definitions");
|
|
2468
|
+
const isBlocksTestRuntime$1 = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
2469
|
+
const globalScope$1 = globalThis;
|
|
2470
|
+
const blockStore = isBlocksTestRuntime$1 ? /* @__PURE__ */ new Map() : globalScope$1[REGISTRY_SYMBOL$1] ?? (globalScope$1[REGISTRY_SYMBOL$1] = /* @__PURE__ */ new Map());
|
|
2471
|
+
//#endregion
|
|
2461
2472
|
//#region ../blocks/src/system/manifest/augmentManifest.ts
|
|
2462
2473
|
/**
|
|
2463
2474
|
* Augments a block manifest with synthetic fields and other transformations.
|
|
@@ -5141,10 +5152,10 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
|
|
|
5141
5152
|
}
|
|
5142
5153
|
//#endregion
|
|
5143
5154
|
//#region ../blocks/src/system/manifest/registry.ts
|
|
5144
|
-
const REGISTRY_SYMBOL
|
|
5145
|
-
const isBlocksTestRuntime
|
|
5146
|
-
const globalScope
|
|
5147
|
-
const manifestStore = isBlocksTestRuntime
|
|
5155
|
+
const REGISTRY_SYMBOL = Symbol.for("@riverbankcms/blocks/manifest-registry");
|
|
5156
|
+
const isBlocksTestRuntime = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
5157
|
+
const globalScope = globalThis;
|
|
5158
|
+
const manifestStore = isBlocksTestRuntime ? /* @__PURE__ */ new Map() : globalScope[REGISTRY_SYMBOL] ?? (globalScope[REGISTRY_SYMBOL] = /* @__PURE__ */ new Map());
|
|
5148
5159
|
function registerManifest(manifest) {
|
|
5149
5160
|
manifestStore.set(manifest.name, manifest);
|
|
5150
5161
|
return manifest;
|
|
@@ -10584,6 +10595,7 @@ const newsletterFormFragment = defineFragment({
|
|
|
10584
10595
|
}
|
|
10585
10596
|
],
|
|
10586
10597
|
layout: [el("newsletter-form", withApiBindings({
|
|
10598
|
+
interactionContext: { $bind: { from: "$root.interactionContext" } },
|
|
10587
10599
|
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
10588
10600
|
source: { $bind: {
|
|
10589
10601
|
from: "mailingListSource",
|
|
@@ -20214,7 +20226,6 @@ const eventRegistrationCommonSchemaShape = {
|
|
|
20214
20226
|
successMessage: z.string().optional(),
|
|
20215
20227
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
20216
20228
|
host: bookingHostSchema.optional(),
|
|
20217
|
-
spamProtectionEnabled: z.boolean().optional(),
|
|
20218
20229
|
supportEmail: z.string().optional(),
|
|
20219
20230
|
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
20220
20231
|
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
|
|
@@ -20403,7 +20414,6 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
20403
20414
|
successMessage: source.successMessage,
|
|
20404
20415
|
buttonVariant: source.buttonVariant,
|
|
20405
20416
|
host: source.host ?? "overlay",
|
|
20406
|
-
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
20407
20417
|
supportEmail: source.supportEmail,
|
|
20408
20418
|
sitePasses: source.sitePasses ?? null,
|
|
20409
20419
|
siteMemberships: source.siteMemberships ?? null,
|
|
@@ -29920,6 +29930,7 @@ function withOptionalPhone(fields, includePhone) {
|
|
|
29920
29930
|
}
|
|
29921
29931
|
//#endregion
|
|
29922
29932
|
//#region ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
29933
|
+
const NEWSLETTER_DEMO_MESSAGE = "This is a demo. No signup has been saved.";
|
|
29923
29934
|
const NEWSLETTER_SIGNUPS_PAUSED_MESSAGE = "We can’t accept signups right now. Please try again later.";
|
|
29924
29935
|
function newsletterBlockSubmissionMessage(target) {
|
|
29925
29936
|
if (target.tag === "block-source") return target.sourceRef ? null : NEWSLETTER_SIGNUPS_PAUSED_MESSAGE;
|
|
@@ -29977,6 +29988,7 @@ const newsletterSourceCommonSchema = z.object({
|
|
|
29977
29988
|
siteId: z.string().optional(),
|
|
29978
29989
|
apiBaseUrl: z.string().optional(),
|
|
29979
29990
|
mailingList: mailingListContextSchema.optional(),
|
|
29991
|
+
interactionContext: blockInteractionContextSchema.optional(),
|
|
29980
29992
|
targeting: mailingListTargetingSchema.optional(),
|
|
29981
29993
|
buttonVariant: newsletterButtonVariantSchema.nullable().optional(),
|
|
29982
29994
|
spamProtectionEnabled: z.boolean().optional(),
|
|
@@ -30033,6 +30045,7 @@ const newsletterHydrationSchema = z.object({
|
|
|
30033
30045
|
token: signedMailingListSourceTokenSchema
|
|
30034
30046
|
})
|
|
30035
30047
|
}),
|
|
30048
|
+
z.object({ tag: z.literal("demo") }),
|
|
30036
30049
|
z.object({ tag: z.literal("preview") }),
|
|
30037
30050
|
z.object({
|
|
30038
30051
|
tag: z.literal("unpublished-preview"),
|
|
@@ -30060,24 +30073,27 @@ z.object({
|
|
|
30060
30073
|
siteId: z.string().optional(),
|
|
30061
30074
|
apiBaseUrl: z.string().optional()
|
|
30062
30075
|
});
|
|
30063
|
-
function
|
|
30064
|
-
|
|
30065
|
-
const form = context?.tag === "configured" ? context.form : {
|
|
30076
|
+
function newsletterGlobalForm(context) {
|
|
30077
|
+
return context?.tag === "configured" ? context.form : {
|
|
30066
30078
|
fields: { preset: "emailOnly" },
|
|
30067
30079
|
includeOptionalPhone: false,
|
|
30068
30080
|
buttonLabel: "Subscribe",
|
|
30069
30081
|
successMessage: DEFAULT_MAILING_LIST_SUCCESS_MESSAGE,
|
|
30070
30082
|
privacyNote: null
|
|
30071
30083
|
};
|
|
30084
|
+
}
|
|
30085
|
+
function buildNewsletterDisplay(source) {
|
|
30086
|
+
const context = source.mailingList;
|
|
30087
|
+
const form = newsletterGlobalForm(context);
|
|
30072
30088
|
const assessment = assessMailingListTargeting(context, source.targeting ?? { mode: "default" });
|
|
30073
30089
|
const choices = resolveRuntimeChoices(assessment);
|
|
30074
30090
|
return {
|
|
30075
30091
|
kind: "newsletter-form",
|
|
30076
30092
|
...source.lookSlots ? { lookSlots: source.lookSlots } : {},
|
|
30077
|
-
availability: assessment.tag === "available" ? "ready" : "unavailable",
|
|
30093
|
+
availability: source.interactionContext?.kind === "demo" || assessment.tag === "available" ? "ready" : "unavailable",
|
|
30078
30094
|
className: source.className ?? null,
|
|
30079
30095
|
buttonLabel: form.buttonLabel,
|
|
30080
|
-
successMessage: form.successMessage,
|
|
30096
|
+
successMessage: source.interactionContext?.kind === "demo" ? NEWSLETTER_DEMO_MESSAGE : form.successMessage,
|
|
30081
30097
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
30082
30098
|
privacyNote: form.privacyNote,
|
|
30083
30099
|
fields: getGlobalFormFields(form, source),
|
|
@@ -30100,12 +30116,13 @@ const newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
30100
30116
|
setupRevision: source.mailingList?.tag === "configured" ? source.mailingList.revision : null,
|
|
30101
30117
|
choiceProvider: targeting.mode === "custom" ? targeting.provider : null,
|
|
30102
30118
|
choicePresentation: presentation.tag,
|
|
30103
|
-
spamProtectionEnabled: source.spamProtectionEnabled
|
|
30119
|
+
spamProtectionEnabled: source.interactionContext?.kind === "demo" ? false : source.spamProtectionEnabled
|
|
30104
30120
|
}
|
|
30105
30121
|
};
|
|
30106
30122
|
}
|
|
30107
30123
|
});
|
|
30108
30124
|
function projectNewsletterFormHydrationTarget(source) {
|
|
30125
|
+
if (source.interactionContext?.kind === "demo") return { tag: "demo" };
|
|
30109
30126
|
switch (source.source) {
|
|
30110
30127
|
case "block": switch (source.newsletterBlockSubmission.tag) {
|
|
30111
30128
|
case "unpublished-form":
|
|
@@ -32120,10 +32137,6 @@ function normalizeBlockContent(definition, content) {
|
|
|
32120
32137
|
...Object.fromEntries(Object.entries(normalized).filter(([key]) => owned.has(key)))
|
|
32121
32138
|
};
|
|
32122
32139
|
}
|
|
32123
|
-
const REGISTRY_SYMBOL = Symbol.for("@riverbankcms/blocks/system/definitions");
|
|
32124
|
-
const isBlocksTestRuntime = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
32125
|
-
const globalScope = globalThis;
|
|
32126
|
-
const blockStore = isBlocksTestRuntime ? /* @__PURE__ */ new Map() : globalScope[REGISTRY_SYMBOL] ?? (globalScope[REGISTRY_SYMBOL] = /* @__PURE__ */ new Map());
|
|
32127
32140
|
function ensureDefaults() {
|
|
32128
32141
|
ensureSystemBlockDefinitionsRegistered();
|
|
32129
32142
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as MissingBlockOverrideError, n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-
|
|
2
|
-
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-
|
|
3
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, r as Layout, t as BlockContent } from "../Block.shared-
|
|
4
|
-
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-
|
|
1
|
+
import { b as MissingBlockOverrideError, n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-DVemf-GV.mjs";
|
|
2
|
+
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-BdY8lP-K.mjs";
|
|
3
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, r as Layout, t as BlockContent } from "../Block.shared-Iy7g11iP.mjs";
|
|
4
|
+
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-BDiQWM7D.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/rendering/components/Block.server.tsx
|
|
7
7
|
/**
|