@riverbankcms/sdk 0.162.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/CHANGELOG.md +9 -0
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
- package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
- package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
- package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-DWbrtKf8.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 +13 -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-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
- package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
- package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
- package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-CkSUep5a.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-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -19
- package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
- package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
- package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
- package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
- package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
- package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
- package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
- package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-BobW6DOz.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-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
- package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
- package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
- package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
- package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +399 -112
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-C39F9KaB.d.ts +0 -77
- package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { At as
|
|
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;
|
|
@@ -7177,7 +7188,7 @@ function resolveBackgroundColorValue(value, context) {
|
|
|
7177
7188
|
//#region ../blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.ts
|
|
7178
7189
|
const sectionSurfaceCache = /* @__PURE__ */ new WeakMap();
|
|
7179
7190
|
function resolveHeaderRootForeground(header, palette, isTransparent) {
|
|
7180
|
-
if (isTransparent) return readOpeningForegroundProjection(header) ?? { kind: "
|
|
7191
|
+
if (isTransparent) return readOpeningForegroundProjection(header) ?? { kind: "inherits" };
|
|
7181
7192
|
const background = header?.background;
|
|
7182
7193
|
return resolveSurfaceForeground(background ?? {
|
|
7183
7194
|
type: "color",
|
|
@@ -7193,12 +7204,32 @@ function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
|
7193
7204
|
function resolveSurfaceForegroundStyles(value, context, options) {
|
|
7194
7205
|
const resolved = cachedSectionSurface(value, context, options);
|
|
7195
7206
|
const foreground = resolved.foreground;
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7207
|
+
const inks = surfaceInkStyle(resolved.inks);
|
|
7208
|
+
switch (foreground.kind) {
|
|
7209
|
+
case "inherits":
|
|
7210
|
+
case "unmeasured-paint": return {
|
|
7211
|
+
...resolved.buttonStyles,
|
|
7212
|
+
...inks
|
|
7213
|
+
};
|
|
7214
|
+
case "known": return {
|
|
7215
|
+
...arrangementSurfaceInk(foreground, context),
|
|
7216
|
+
...resolved.buttonStyles,
|
|
7217
|
+
...surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, (token) => resolveBackgroundColorValue(token, context))),
|
|
7218
|
+
...inks
|
|
7219
|
+
};
|
|
7220
|
+
}
|
|
7221
|
+
}
|
|
7222
|
+
/**
|
|
7223
|
+
* The render's ink policy, set by the runtime its theme tokens came from. A
|
|
7224
|
+
* render that can't vouch for its runtime withholds, so its owned surfaces
|
|
7225
|
+
* reset the inks rather than publish ones solved for tokens that may differ.
|
|
7226
|
+
*/
|
|
7227
|
+
function transformSolvedInks(context) {
|
|
7228
|
+
return context.theme.solvedInks ?? "withhold";
|
|
7229
|
+
}
|
|
7230
|
+
/** Chrome roots publish the same ink decision as sections. */
|
|
7231
|
+
function solvedInkStyle(foreground, context) {
|
|
7232
|
+
return surfaceInkStyle(surfaceInkPublication(foreground, transformSolvedInks(context)));
|
|
7202
7233
|
}
|
|
7203
7234
|
/** The section ground's resolved foreground, for decorations drawn on that ground (maps). */
|
|
7204
7235
|
function resolveSectionSurfaceForeground(value, context, options) {
|
|
@@ -7229,7 +7260,8 @@ function resolveRuntimeSectionSurface(value, context, options) {
|
|
|
7229
7260
|
palette: context.theme.palette,
|
|
7230
7261
|
buttonSystem: context.theme.buttons,
|
|
7231
7262
|
linkHoverToken: context.proseHoverCandidate,
|
|
7232
|
-
compositeBase: options?.fallbackToken
|
|
7263
|
+
compositeBase: options?.fallbackToken,
|
|
7264
|
+
solvedInks: transformSolvedInks(context)
|
|
7233
7265
|
});
|
|
7234
7266
|
}
|
|
7235
7267
|
function arrangementSurfaceInk(foreground, context) {
|
|
@@ -7238,7 +7270,7 @@ function arrangementSurfaceInk(foreground, context) {
|
|
|
7238
7270
|
}
|
|
7239
7271
|
/** Decoration roles already resolved by the surface owner, shared with footer arrangements. */
|
|
7240
7272
|
function surfaceInkStyles(foreground, palette) {
|
|
7241
|
-
if (foreground.kind
|
|
7273
|
+
if (foreground.kind !== "known") return {};
|
|
7242
7274
|
const decorations = surfaceDecorationColors(foreground, palette);
|
|
7243
7275
|
return {
|
|
7244
7276
|
"--rb-surface-muted-color": foreground.roles.muted ?? foreground.roles.text,
|
|
@@ -10563,6 +10595,7 @@ const newsletterFormFragment = defineFragment({
|
|
|
10563
10595
|
}
|
|
10564
10596
|
],
|
|
10565
10597
|
layout: [el("newsletter-form", withApiBindings({
|
|
10598
|
+
interactionContext: { $bind: { from: "$root.interactionContext" } },
|
|
10566
10599
|
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
10567
10600
|
source: { $bind: {
|
|
10568
10601
|
from: "mailingListSource",
|
|
@@ -13717,8 +13750,11 @@ function resolveHeaderVisualStyles(header) {
|
|
|
13717
13750
|
return resolveBackgroundVisualStyles(colorToken);
|
|
13718
13751
|
}
|
|
13719
13752
|
function resolvedForegroundStyle(foreground) {
|
|
13720
|
-
|
|
13721
|
-
|
|
13753
|
+
switch (foreground.kind) {
|
|
13754
|
+
case "inherits":
|
|
13755
|
+
case "unmeasured-paint": return;
|
|
13756
|
+
case "known": return surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, rgbColorValue));
|
|
13757
|
+
}
|
|
13722
13758
|
}
|
|
13723
13759
|
function footerBottomBarBorderWidthStyle(width) {
|
|
13724
13760
|
if (!width) return void 0;
|
|
@@ -13788,7 +13824,10 @@ const headerRootStyleTransform = {
|
|
|
13788
13824
|
run: (value, _options, context) => {
|
|
13789
13825
|
const header = asPartialObject(value);
|
|
13790
13826
|
const visuals = resolveHeaderVisualStyles(header);
|
|
13791
|
-
|
|
13827
|
+
const foreground = resolveHeaderRootForeground(header, context.theme.palette, visuals.isTransparent);
|
|
13828
|
+
const foregroundStyle = resolvedForegroundStyle(foreground) ?? (visuals.isTransparent ? surfaceForegroundStyle(transparentHeaderForegroundInput(header, context.theme.palette)) : { color: rgbColorValue(headerLeafTextColor(header)) });
|
|
13829
|
+
const borderColorToken = header?.border?.colorToken ?? "border";
|
|
13830
|
+
return mergeStyles(foregroundStyle, solvedInkStyle(foreground, context), borderColorStyle(borderColorToken));
|
|
13792
13831
|
}
|
|
13793
13832
|
};
|
|
13794
13833
|
const headerSectionBackgroundTransform = {
|
|
@@ -13814,8 +13853,9 @@ const footerRootStyleTransform = {
|
|
|
13814
13853
|
styleParts.push(backgroundColorStyle(token));
|
|
13815
13854
|
}
|
|
13816
13855
|
}
|
|
13817
|
-
|
|
13818
|
-
|
|
13856
|
+
const foreground = resolveFooterRootForeground(footer, context.theme.palette, context.proseHoverCandidate);
|
|
13857
|
+
styleParts.push(resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context));
|
|
13858
|
+
if (footer?.variant === "centred") styleParts.push(surfaceInkStyles(foreground, context.theme.palette));
|
|
13819
13859
|
styleParts.push(borderColorStyle("border"));
|
|
13820
13860
|
return mergeStyles(...styleParts);
|
|
13821
13861
|
}
|
|
@@ -13877,18 +13917,27 @@ const footerBottomBarStyleTransform = {
|
|
|
13877
13917
|
run: (value, _options, context) => {
|
|
13878
13918
|
const footer = asPartialObject(value);
|
|
13879
13919
|
const bottomBar = footer?.bottomBar;
|
|
13880
|
-
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), footerBottomBarForegroundStyle(footer, context.theme.palette));
|
|
13920
|
+
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), footerBottomBarForegroundStyle(footer, context.theme.palette), footerBottomBarInkStyle(footer, context));
|
|
13881
13921
|
}
|
|
13882
13922
|
};
|
|
13883
13923
|
function footerBottomBarForegroundStyle(footer, palette) {
|
|
13884
13924
|
if (!footer?.bottomBar) return void 0;
|
|
13925
|
+
const foreground = footerBottomBarSurfaceForeground(footer, palette);
|
|
13926
|
+
return foreground === null ? backgroundlessBottomBarForegroundStyle(footer) : resolvedForegroundStyle(foreground);
|
|
13927
|
+
}
|
|
13928
|
+
/** A bar without its own colour paints nothing, so the footer's inks carry on. */
|
|
13929
|
+
function footerBottomBarInkStyle(footer, context) {
|
|
13930
|
+
const foreground = footer ? footerBottomBarSurfaceForeground(footer, context.theme.palette) : null;
|
|
13931
|
+
return foreground === null ? void 0 : solvedInkStyle(foreground, context);
|
|
13932
|
+
}
|
|
13933
|
+
function footerBottomBarSurfaceForeground(footer, palette) {
|
|
13885
13934
|
const bar = footer.bottomBar;
|
|
13886
|
-
if (bar
|
|
13887
|
-
return
|
|
13935
|
+
if (bar?.background?.type !== "color") return null;
|
|
13936
|
+
return resolveSurfaceForeground(bar.background, palette, {
|
|
13888
13937
|
text: bar.textColor,
|
|
13889
13938
|
link: footer.bottomTextLinkStyle?.colorToken ?? bar.textColor,
|
|
13890
13939
|
linkHover: footer.bottomTextLinkStyle?.hoverColorToken
|
|
13891
|
-
}, { compositeBase: measuredFooterBackdrop(footer, palette) })
|
|
13940
|
+
}, { compositeBase: measuredFooterBackdrop(footer, palette) });
|
|
13892
13941
|
}
|
|
13893
13942
|
function backgroundlessBottomBarForegroundStyle(footer) {
|
|
13894
13943
|
if (footer.background?.contentOwner === "site-chrome-editor") return;
|
|
@@ -20177,7 +20226,6 @@ const eventRegistrationCommonSchemaShape = {
|
|
|
20177
20226
|
successMessage: z.string().optional(),
|
|
20178
20227
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
20179
20228
|
host: bookingHostSchema.optional(),
|
|
20180
|
-
spamProtectionEnabled: z.boolean().optional(),
|
|
20181
20229
|
supportEmail: z.string().optional(),
|
|
20182
20230
|
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
20183
20231
|
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
|
|
@@ -20366,7 +20414,6 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
20366
20414
|
successMessage: source.successMessage,
|
|
20367
20415
|
buttonVariant: source.buttonVariant,
|
|
20368
20416
|
host: source.host ?? "overlay",
|
|
20369
|
-
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
20370
20417
|
supportEmail: source.supportEmail,
|
|
20371
20418
|
sitePasses: source.sitePasses ?? null,
|
|
20372
20419
|
siteMemberships: source.siteMemberships ?? null,
|
|
@@ -22651,17 +22698,7 @@ function resolveCardListSchedule(item, mode) {
|
|
|
22651
22698
|
}
|
|
22652
22699
|
/** Each part owns optional-content collapse once, for calendar and catalogue items. */
|
|
22653
22700
|
const partRenderers = {
|
|
22654
|
-
title:
|
|
22655
|
-
...listLookSlot(presentation, "item-title"),
|
|
22656
|
-
children: item.titleLink || item.href ? /* @__PURE__ */ jsx("a", {
|
|
22657
|
-
...item.titleLink,
|
|
22658
|
-
href: item.titleLink?.href ?? item.href ?? void 0,
|
|
22659
|
-
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
22660
|
-
label: item.title,
|
|
22661
|
-
newTabHint: item.newTabHint
|
|
22662
|
-
})
|
|
22663
|
-
}) : item.title
|
|
22664
|
-
}),
|
|
22701
|
+
title: CardListTitle,
|
|
22665
22702
|
text: ({ item, presentation }) => item.textDocument ? /* @__PURE__ */ jsx(RichText, {
|
|
22666
22703
|
doc: item.textDocument,
|
|
22667
22704
|
...listLookSlot(presentation, "item-text"),
|
|
@@ -22670,14 +22707,7 @@ const partRenderers = {
|
|
|
22670
22707
|
...listLookSlot(presentation, "item-text"),
|
|
22671
22708
|
children: item.text
|
|
22672
22709
|
}) : null,
|
|
22673
|
-
media:
|
|
22674
|
-
...listLookSlot(presentation, "item-media"),
|
|
22675
|
-
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
22676
|
-
value: item.media,
|
|
22677
|
-
size: ImagePresets.card,
|
|
22678
|
-
...listLookSlot(presentation, "photo")
|
|
22679
|
-
})
|
|
22680
|
-
}) : null,
|
|
22710
|
+
media: CardListMedia,
|
|
22681
22711
|
facts: ({ item, presentation }) => item.facts?.length ? /* @__PURE__ */ jsx("dl", {
|
|
22682
22712
|
...listLookSlot(presentation, "facts"),
|
|
22683
22713
|
children: item.facts.map(({ label, value }) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -22765,6 +22795,41 @@ const partRenderers = {
|
|
|
22765
22795
|
children: props.actionNode
|
|
22766
22796
|
})
|
|
22767
22797
|
};
|
|
22798
|
+
/** Title and photo share the same destination and external-link behavior. */
|
|
22799
|
+
function cardListItemLink(item) {
|
|
22800
|
+
return item.titleLink ?? (item.href ? { href: item.href } : null);
|
|
22801
|
+
}
|
|
22802
|
+
function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
22803
|
+
const link = cardListItemLink(item);
|
|
22804
|
+
return /* @__PURE__ */ jsx(Title, {
|
|
22805
|
+
...listLookSlot(presentation, "item-title"),
|
|
22806
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
22807
|
+
...link,
|
|
22808
|
+
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
22809
|
+
label: item.title,
|
|
22810
|
+
newTabHint: item.newTabHint
|
|
22811
|
+
})
|
|
22812
|
+
}) : item.title
|
|
22813
|
+
});
|
|
22814
|
+
}
|
|
22815
|
+
function CardListMedia({ item, presentation }) {
|
|
22816
|
+
if (!item.media) return null;
|
|
22817
|
+
const link = cardListItemLink(item);
|
|
22818
|
+
const photo = /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
22819
|
+
value: item.media,
|
|
22820
|
+
size: ImagePresets.card,
|
|
22821
|
+
...listLookSlot(presentation, "photo")
|
|
22822
|
+
});
|
|
22823
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22824
|
+
...listLookSlot(presentation, "item-media"),
|
|
22825
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
22826
|
+
...link,
|
|
22827
|
+
className: "rb-block rb-h-full",
|
|
22828
|
+
"aria-label": `${item.title}${item.newTabHint ? " (opens in a new tab)" : ""}`,
|
|
22829
|
+
children: photo
|
|
22830
|
+
}) : photo
|
|
22831
|
+
});
|
|
22832
|
+
}
|
|
22768
22833
|
function CardListContentPart({ part, ...props }) {
|
|
22769
22834
|
return partRenderers[part](props);
|
|
22770
22835
|
}
|
|
@@ -23148,7 +23213,7 @@ function buildEventCollectionListDisplay(source) {
|
|
|
23148
23213
|
events: Array.isArray(source.events) ? [...source.events] : [],
|
|
23149
23214
|
listLayout: source.listLayout ?? "stack",
|
|
23150
23215
|
listColumns: source.listColumns ?? "3",
|
|
23151
|
-
eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 :
|
|
23216
|
+
eventsPerPage: resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage ?? (source.lookSlots !== void 0 && source.listLayout === "compact" ? "3" : void 0) }),
|
|
23152
23217
|
paginationAction,
|
|
23153
23218
|
sectionAction: paginationAction.kind === "seeAllLink" ? {
|
|
23154
23219
|
href: paginationAction.href,
|
|
@@ -29865,6 +29930,7 @@ function withOptionalPhone(fields, includePhone) {
|
|
|
29865
29930
|
}
|
|
29866
29931
|
//#endregion
|
|
29867
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.";
|
|
29868
29934
|
const NEWSLETTER_SIGNUPS_PAUSED_MESSAGE = "We can’t accept signups right now. Please try again later.";
|
|
29869
29935
|
function newsletterBlockSubmissionMessage(target) {
|
|
29870
29936
|
if (target.tag === "block-source") return target.sourceRef ? null : NEWSLETTER_SIGNUPS_PAUSED_MESSAGE;
|
|
@@ -29922,6 +29988,7 @@ const newsletterSourceCommonSchema = z.object({
|
|
|
29922
29988
|
siteId: z.string().optional(),
|
|
29923
29989
|
apiBaseUrl: z.string().optional(),
|
|
29924
29990
|
mailingList: mailingListContextSchema.optional(),
|
|
29991
|
+
interactionContext: blockInteractionContextSchema.optional(),
|
|
29925
29992
|
targeting: mailingListTargetingSchema.optional(),
|
|
29926
29993
|
buttonVariant: newsletterButtonVariantSchema.nullable().optional(),
|
|
29927
29994
|
spamProtectionEnabled: z.boolean().optional(),
|
|
@@ -29978,6 +30045,7 @@ const newsletterHydrationSchema = z.object({
|
|
|
29978
30045
|
token: signedMailingListSourceTokenSchema
|
|
29979
30046
|
})
|
|
29980
30047
|
}),
|
|
30048
|
+
z.object({ tag: z.literal("demo") }),
|
|
29981
30049
|
z.object({ tag: z.literal("preview") }),
|
|
29982
30050
|
z.object({
|
|
29983
30051
|
tag: z.literal("unpublished-preview"),
|
|
@@ -30005,24 +30073,27 @@ z.object({
|
|
|
30005
30073
|
siteId: z.string().optional(),
|
|
30006
30074
|
apiBaseUrl: z.string().optional()
|
|
30007
30075
|
});
|
|
30008
|
-
function
|
|
30009
|
-
|
|
30010
|
-
const form = context?.tag === "configured" ? context.form : {
|
|
30076
|
+
function newsletterGlobalForm(context) {
|
|
30077
|
+
return context?.tag === "configured" ? context.form : {
|
|
30011
30078
|
fields: { preset: "emailOnly" },
|
|
30012
30079
|
includeOptionalPhone: false,
|
|
30013
30080
|
buttonLabel: "Subscribe",
|
|
30014
30081
|
successMessage: DEFAULT_MAILING_LIST_SUCCESS_MESSAGE,
|
|
30015
30082
|
privacyNote: null
|
|
30016
30083
|
};
|
|
30084
|
+
}
|
|
30085
|
+
function buildNewsletterDisplay(source) {
|
|
30086
|
+
const context = source.mailingList;
|
|
30087
|
+
const form = newsletterGlobalForm(context);
|
|
30017
30088
|
const assessment = assessMailingListTargeting(context, source.targeting ?? { mode: "default" });
|
|
30018
30089
|
const choices = resolveRuntimeChoices(assessment);
|
|
30019
30090
|
return {
|
|
30020
30091
|
kind: "newsletter-form",
|
|
30021
30092
|
...source.lookSlots ? { lookSlots: source.lookSlots } : {},
|
|
30022
|
-
availability: assessment.tag === "available" ? "ready" : "unavailable",
|
|
30093
|
+
availability: source.interactionContext?.kind === "demo" || assessment.tag === "available" ? "ready" : "unavailable",
|
|
30023
30094
|
className: source.className ?? null,
|
|
30024
30095
|
buttonLabel: form.buttonLabel,
|
|
30025
|
-
successMessage: form.successMessage,
|
|
30096
|
+
successMessage: source.interactionContext?.kind === "demo" ? NEWSLETTER_DEMO_MESSAGE : form.successMessage,
|
|
30026
30097
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
30027
30098
|
privacyNote: form.privacyNote,
|
|
30028
30099
|
fields: getGlobalFormFields(form, source),
|
|
@@ -30045,12 +30116,13 @@ const newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
30045
30116
|
setupRevision: source.mailingList?.tag === "configured" ? source.mailingList.revision : null,
|
|
30046
30117
|
choiceProvider: targeting.mode === "custom" ? targeting.provider : null,
|
|
30047
30118
|
choicePresentation: presentation.tag,
|
|
30048
|
-
spamProtectionEnabled: source.spamProtectionEnabled
|
|
30119
|
+
spamProtectionEnabled: source.interactionContext?.kind === "demo" ? false : source.spamProtectionEnabled
|
|
30049
30120
|
}
|
|
30050
30121
|
};
|
|
30051
30122
|
}
|
|
30052
30123
|
});
|
|
30053
30124
|
function projectNewsletterFormHydrationTarget(source) {
|
|
30125
|
+
if (source.interactionContext?.kind === "demo") return { tag: "demo" };
|
|
30054
30126
|
switch (source.source) {
|
|
30055
30127
|
case "block": switch (source.newsletterBlockSubmission.tag) {
|
|
30056
30128
|
case "unpublished-form":
|
|
@@ -32065,10 +32137,6 @@ function normalizeBlockContent(definition, content) {
|
|
|
32065
32137
|
...Object.fromEntries(Object.entries(normalized).filter(([key]) => owned.has(key)))
|
|
32066
32138
|
};
|
|
32067
32139
|
}
|
|
32068
|
-
const REGISTRY_SYMBOL = Symbol.for("@riverbankcms/blocks/system/definitions");
|
|
32069
|
-
const isBlocksTestRuntime = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
32070
|
-
const globalScope = globalThis;
|
|
32071
|
-
const blockStore = isBlocksTestRuntime ? /* @__PURE__ */ new Map() : globalScope[REGISTRY_SYMBOL] ?? (globalScope[REGISTRY_SYMBOL] = /* @__PURE__ */ new Map());
|
|
32072
32140
|
function ensureDefaults() {
|
|
32073
32141
|
ensureSystemBlockDefinitionsRegistered();
|
|
32074
32142
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations
|
|
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
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE, v as admitLayoutGridForPlan, y as deriveFieldValidationPlan } from "./themeAdmission-
|
|
5
|
-
import { x as resolveAuthoredLinkHref } from "./prefetchBlockData-
|
|
6
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-
|
|
7
|
-
import { t as loadPage } from "./loadPage-
|
|
8
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { At as parseCanonicalMediaIdentifier, Ct as persistableMediaSchema, Et as renderableMediaAssetSchema, Ot as resolveManagedMediaReference, St as mediaSchema, Tt as buildRenderableMediaAssetIndex, jt as parseMediaIdentifier, kt as mediaIdentifierSchema, wt as runtimeMediaSchema } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import { $ as RichText$2, Oi as parseFieldDefinition, Ri as projectRepeaterGridLayout$1, at as resolveImageUrlWithContext$1, it as resolveImageUrl$1, nt as computeMediaTransformStyle, rt as resolveImageSourceSetWithContext$1, st as buildResolveImageUrlContext, ut as sanitizeHref, zi as projectRepeaterGridLayoutForRendering$1 } from "./registry-zjd1P2Dl.mjs";
|
|
3
|
+
import { C as toBlocksImageResolveContextInput, S as toBlocksPageRendererDataContext, T as buildThemeRuntime, b as MissingBlockOverrideError, d as toPageHydrationBootstrapConfig, n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations, u as PageContent, v as ThemeScope, w as toBlocksMediaAssets, x as PageRenderer, y as EditorPageRenderer } from "./overrides-DVemf-GV.mjs";
|
|
4
|
+
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE, v as admitLayoutGridForPlan, y as deriveFieldValidationPlan } from "./themeAdmission-BdY8lP-K.mjs";
|
|
5
|
+
import { x as resolveAuthoredLinkHref } from "./prefetchBlockData-Bnbwoe5n.mjs";
|
|
6
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-Iy7g11iP.mjs";
|
|
7
|
+
import { t as loadPage } from "./loadPage-Dk4wea8M.mjs";
|
|
8
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BuintpdO.mjs";
|
|
9
9
|
import "./bindings-Dgt_0goJ.mjs";
|
|
10
10
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
11
11
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-
|
|
1
|
+
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-Bnbwoe5n.mjs";
|
|
2
2
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
3
3
|
//#region src/data/defineOwnDataProperty.ts
|
|
4
4
|
/** Define a string key as ordinary data without invoking legacy prototype setters. */
|
package/dist/server/routing.mjs
CHANGED
|
@@ -69,7 +69,7 @@ async function checkRedirectForPath(params) {
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/routing/resolveRoute.ts
|
|
71
71
|
const defaultResolveRouteDeps = { loadPage: async (params) => {
|
|
72
|
-
const { loadPage } = await import("./loadPage-
|
|
72
|
+
const { loadPage } = await import("./loadPage-BwjncpJf.mjs");
|
|
73
73
|
return loadPage(params);
|
|
74
74
|
} };
|
|
75
75
|
/**
|