@riverbankcms/sdk 0.159.0 → 0.160.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 +4 -4
- package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-BOK-YHVJ.d.ts → client-uMMuPq9V.d.ts} +1 -1
- package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-nyU8q02J.d.ts} +2 -2
- package/dist/_dts/{index-DzUdUaJ-.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-CcaG6O13.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DMOfW1A7.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-BZ4fb2zz.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-Ci1PEk82.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-D0bNcPWK.d.ts} +6907 -6762
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +12 -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 +6 -6
- 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 +10 -28
- 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 +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CI9dYWJ8.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-D8czmbQF.d.ts} +15911 -17318
- package/dist/_dts/{types--oWXIfyz.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-CMFIZGUI.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +77 -96
- package/dist/client/{LeafletStaticMap-dlapZ6mi.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-Dqpv9Ggi.mjs → Page-7PkzO04N.mjs} +1941 -2069
- package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-C8ef0vnT.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BpH6jkUO.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-DV78Td13.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-BJVb2RpL.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-BRgBWthI.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-D8ucLsvX.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BHIHxNuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-BXndwsET.mjs} +14 -14
- package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DjNLfy2Z.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-Cj0By6ot.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-DRN1JePj.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-CuCvQdvp.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-B9srHHzZ.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-M8FTSgm2.mjs → noop-B610YKEx.mjs} +10 -3
- package/dist/client/portal/client.mjs +4559 -114
- package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-BSRlnwBW.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BAm4RPNJ.mjs} +819 -855
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-CnIJfdZA.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-DmDd-igg.mjs} +15 -15
- package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-5SnnDHz3.mjs} +368 -35
- package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-BgPql2yH2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-D1R3Lk05.mjs → view-CseyBW07.mjs} +6 -5
- package/dist/client/{wizardSteps-C0TsNqJc.mjs → wizardSteps-zgq10lN1.mjs} +162 -30
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1281 -171
- package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +856 -2171
- package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +115951 -110090
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-z2daXp-2.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-Cv-osXoU.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-DxRC724a.mjs → overrides-Bz_A6sB9.mjs} +651 -542
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-BaG8Qpaa.mjs → registry-eFjKtEhF.mjs} +2049 -1451
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-ruoyXb_0.mjs} +2 -2
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-BtHE2S_D.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-CNCdL6id.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D09jPdue.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
- package/dist/server/loadPage-jade28Xh.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as hexToRgb, A as RESOLVED_BUTTON_DISABLED_DECLARATIONS, An as surfaceForegroundInputFromResolved, C as ACCORDION_SPACING_MAP, D as ICON_SIZE_PX, Dn as DEFAULT_SURFACE_TEXT_COLOR, E as ICON_CONFIG, Fn as isOnColorBackgroundCandidateToken, In as onColorTokenName, Jn as parseThemeColorToken, Ln as getTextColorForBackground, M as resolvedButtonFocusDeclarations, Mn as surfaceForegroundValue, Nn as surfaceForegroundValueWithOpacity, O as generateButtonActionLayoutCss, On as SURFACE_FOREGROUND_CSS_VARS, Pn as expandPalette, Qt as resolveSurface, S as ACCORDION_OPEN_ACCENT_THICKNESS, Sn as unsafeAsOpaqueButtonColourToken, T as ACCORDION_TRIGGER_LETTER_SPACING, Tn as buildThemeTokens, Un as paletteColorsSchema, Vn as resolveOpaqueSurfaceHex, Wn as paletteModeSchema, Zn as parseColorTokenParts, _ as parseCustomCssRules, at as boxBackgroundSchema, b as INPUT_SPACING_MAP, c as MQ_LG_UP, cn as rgbColorValue, d as MQ_SM_UP, dn as opaqueSurfaceContextFromTheme, dt as generateCardCoreCss, en as resolveSurfaceForeground, f as MQ_TABLET_ONLY, fn as opaqueSurfaceDeclarations, ft as getDefaultCardVariants, g as parseBlockCustomCssRules, ht as generateShadowValue, j as resolvedButtonColourDeclarations, k as generateButtonCss, kn as surfaceForegroundDeclarations, mn as formatButtonColourContractError, mt as renderCssDeclarations, on as cssVarValue, pn as compileButtonColourStates, pt as generateCardCss, t as corners, tn as safeTokenOr, u as MQ_SM_DOWN, un as textColorValue, v as FONT_WEIGHT_MAP, w as ACCORDION_TRIGGER_FONT_SCALE, x as LABEL_FONT_SIZE_MAP, xn as buttonVariantIdSchema, y as INPUT_FONT_SIZE_MAP, yn as generateShadowValue$1, z as skinTokenCssVars } from "./schema-
|
|
2
|
-
import {
|
|
1
|
+
import { $n as hexToRgb, A as RESOLVED_BUTTON_DISABLED_DECLARATIONS, An as surfaceForegroundInputFromResolved, C as ACCORDION_SPACING_MAP, D as ICON_SIZE_PX, Dn as DEFAULT_SURFACE_TEXT_COLOR, E as ICON_CONFIG, Fn as isOnColorBackgroundCandidateToken, In as onColorTokenName, Jn as parseThemeColorToken, Ln as getTextColorForBackground, M as resolvedButtonFocusDeclarations, Mn as surfaceForegroundValue, Nn as surfaceForegroundValueWithOpacity, O as generateButtonActionLayoutCss, On as SURFACE_FOREGROUND_CSS_VARS, Pn as expandPalette, Qt as resolveSurface, S as ACCORDION_OPEN_ACCENT_THICKNESS, Sn as unsafeAsOpaqueButtonColourToken, T as ACCORDION_TRIGGER_LETTER_SPACING, Tn as buildThemeTokens, Un as paletteColorsSchema, Vn as resolveOpaqueSurfaceHex, Wn as paletteModeSchema, Zn as parseColorTokenParts, _ as parseCustomCssRules, at as boxBackgroundSchema, b as INPUT_SPACING_MAP, c as MQ_LG_UP, cn as rgbColorValue, d as MQ_SM_UP, dn as opaqueSurfaceContextFromTheme, dt as generateCardCoreCss, en as resolveSurfaceForeground, f as MQ_TABLET_ONLY, fn as opaqueSurfaceDeclarations, ft as getDefaultCardVariants, g as parseBlockCustomCssRules, ht as generateShadowValue, j as resolvedButtonColourDeclarations, k as generateButtonCss, kn as surfaceForegroundDeclarations, mn as formatButtonColourContractError, mt as renderCssDeclarations, on as cssVarValue, pn as compileButtonColourStates, pt as generateCardCss, t as corners, tn as safeTokenOr, u as MQ_SM_DOWN, un as textColorValue, v as FONT_WEIGHT_MAP, w as ACCORDION_TRIGGER_FONT_SCALE, x as LABEL_FONT_SIZE_MAP, xn as buttonVariantIdSchema, y as INPUT_FONT_SIZE_MAP, yn as generateShadowValue$1, z as skinTokenCssVars } from "./schema-C3dJ5UkL.mjs";
|
|
2
|
+
import { B as anglePolygonCss, O as generateFooterCss, V as transitionCatalogueEntries, b as requireCuratedSiteStyle, c as DEFAULT_THEME_RESPONSIVE_MODE, d as convertMediaQueryToContainerQuery, s as generateHeaderCss, u as getResponsiveScopeSpec, z as boundaryRuntimeMetricsForDecorativeTransition } from "./siteChromeOverlayClearance-DALIAMwo.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -45,6 +45,193 @@ function themeRuntimeScopeProps(runtime) {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
+
//#region ../theme-core/src/accordions/defaults.ts
|
|
49
|
+
/**
|
|
50
|
+
* Generate default accordion system based on theme configuration
|
|
51
|
+
*
|
|
52
|
+
* Creates a single accordion style that harmonizes with the theme's
|
|
53
|
+
* visual language (spacing, borders, shadows, colors).
|
|
54
|
+
*/
|
|
55
|
+
function generateDefaultAccordionSystem(theme) {
|
|
56
|
+
const overrides = theme.siteStyleId ? requireCuratedSiteStyle(theme.siteStyleId).themeOverrides?.accordions : void 0;
|
|
57
|
+
if (overrides) return overrides;
|
|
58
|
+
const { axes, space } = theme;
|
|
59
|
+
return {
|
|
60
|
+
background: {
|
|
61
|
+
type: "solid",
|
|
62
|
+
colorToken: "surface"
|
|
63
|
+
},
|
|
64
|
+
spacing: space === "comfortable" ? "comfortable" : space === "dense" ? "compact" : "medium",
|
|
65
|
+
corners: null,
|
|
66
|
+
border: defaultAccordionBorder(theme),
|
|
67
|
+
shadow: defaultAccordionShadow(theme),
|
|
68
|
+
icon: {
|
|
69
|
+
style: axes.tone === "bold" ? "plus-minus" : "chevron",
|
|
70
|
+
position: "right",
|
|
71
|
+
size: axes.density === "compact" ? "sm" : "md"
|
|
72
|
+
},
|
|
73
|
+
trigger: {
|
|
74
|
+
textColorToken: "text",
|
|
75
|
+
fontWeight: axes.tone === "bold" ? "bold" : axes.tone === "minimal" ? "medium" : "semibold"
|
|
76
|
+
},
|
|
77
|
+
hover: generateHoverEffects(axes),
|
|
78
|
+
content: { textColorToken: "neutral-700" }
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function defaultAccordionBorder({ axes, border }) {
|
|
82
|
+
return axes.conversionBias === "high" || border.width !== "none" ? {
|
|
83
|
+
widthClass: border.width === "thick" ? "border-2" : "border",
|
|
84
|
+
colorToken: "border"
|
|
85
|
+
} : null;
|
|
86
|
+
}
|
|
87
|
+
function defaultAccordionShadow({ axes, shadow }) {
|
|
88
|
+
return axes.conversionBias === "high" || shadow.elevation !== "none" ? {
|
|
89
|
+
elevation: shadow.elevation === "none" ? "low" : shadow.elevation,
|
|
90
|
+
softness: shadow.softness === "crisp" || shadow.softness === null ? "soft" : shadow.softness,
|
|
91
|
+
position: shadow.position
|
|
92
|
+
} : null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Generate hover effects based on theme characteristics
|
|
96
|
+
*
|
|
97
|
+
* Strategy:
|
|
98
|
+
* - Minimal/calm themes: subtle text color change only
|
|
99
|
+
* - Bold/vibrant themes: background + text color
|
|
100
|
+
* - High conversion themes: background + shadow elevation
|
|
101
|
+
*/
|
|
102
|
+
function generateHoverEffects(axes) {
|
|
103
|
+
const { tone, energy, conversionBias } = axes;
|
|
104
|
+
if (tone === "minimal" && energy === "calm") return { textColorToken: "primary" };
|
|
105
|
+
if (tone === "bold" || conversionBias === "high") return {
|
|
106
|
+
backgroundColorToken: "primary/10",
|
|
107
|
+
textColorToken: "primary"
|
|
108
|
+
};
|
|
109
|
+
if (energy === "vibrant") return {
|
|
110
|
+
backgroundColorToken: "primary/5",
|
|
111
|
+
textColorToken: "primary"
|
|
112
|
+
};
|
|
113
|
+
return {
|
|
114
|
+
backgroundColorToken: "primary/5",
|
|
115
|
+
textColorToken: "primary"
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region ../theme-core/src/blockOverrides.ts
|
|
120
|
+
const BLOCK_PREFIX = "block.";
|
|
121
|
+
function isPlainObject(value) {
|
|
122
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
123
|
+
}
|
|
124
|
+
function isUnknownArray(value) {
|
|
125
|
+
return Array.isArray(value);
|
|
126
|
+
}
|
|
127
|
+
function cloneValue(value) {
|
|
128
|
+
if (isUnknownArray(value)) return value.map((item) => cloneValue(item));
|
|
129
|
+
if (isPlainObject(value)) {
|
|
130
|
+
const cloned = {};
|
|
131
|
+
for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
|
|
132
|
+
return cloned;
|
|
133
|
+
}
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
function mergeDeep(defaultValue, overrideValue) {
|
|
137
|
+
if (overrideValue === void 0) return cloneValue(defaultValue);
|
|
138
|
+
if (overrideValue === null) return null;
|
|
139
|
+
if (isPlainObject(defaultValue) && isPlainObject(overrideValue)) {
|
|
140
|
+
const merged = {};
|
|
141
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
|
|
142
|
+
for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
|
|
143
|
+
return merged;
|
|
144
|
+
}
|
|
145
|
+
return cloneValue(overrideValue);
|
|
146
|
+
}
|
|
147
|
+
function normalizeBlockKind(blockKind) {
|
|
148
|
+
return blockKind.replace(/^block\./, "");
|
|
149
|
+
}
|
|
150
|
+
function buildBlockKindCandidates(blockKind) {
|
|
151
|
+
const normalized = normalizeBlockKind(blockKind);
|
|
152
|
+
const prefixed = `${BLOCK_PREFIX}${normalized}`;
|
|
153
|
+
return Array.from(/* @__PURE__ */ new Set([
|
|
154
|
+
blockKind,
|
|
155
|
+
normalized,
|
|
156
|
+
prefixed
|
|
157
|
+
]));
|
|
158
|
+
}
|
|
159
|
+
function resolveEffectiveHeadingDecoration(themeDecoration, override) {
|
|
160
|
+
if (override === "off" || !themeDecoration || themeDecoration.family === "none") return { kind: "none" };
|
|
161
|
+
return {
|
|
162
|
+
kind: "visible",
|
|
163
|
+
decoration: themeDecoration
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function resolveBlockThemeOverride(theme, blockKind) {
|
|
167
|
+
if (!theme?.blockOverrides || !blockKind) return void 0;
|
|
168
|
+
for (const candidate of buildBlockKindCandidates(blockKind)) {
|
|
169
|
+
const override = theme.blockOverrides[candidate];
|
|
170
|
+
if (override) return override;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function mergeContentWithBlockStyleOverrides(content, theme, blockKind) {
|
|
174
|
+
const styleOverrides = resolveBlockThemeOverride(theme, blockKind)?.styles;
|
|
175
|
+
const mergedContent = { ...content };
|
|
176
|
+
if (styleOverrides) {
|
|
177
|
+
applyStyleOverride(mergedContent, "_sectionStyles", styleOverrides.sectionStyles);
|
|
178
|
+
applyStyleOverride(mergedContent, "_containerStyles", styleOverrides.containerStyles);
|
|
179
|
+
applyStyleOverride(mergedContent, "_cardStyles", styleOverrides.cardStyles);
|
|
180
|
+
}
|
|
181
|
+
applyHeadingDecorationSignature(mergedContent, theme?.headingDecoration);
|
|
182
|
+
return mergedContent;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Projects the site-wide heading decoration signature onto a transient
|
|
186
|
+
* `_sectionStyles.headingDecoration`, honouring the per-section override:
|
|
187
|
+
* - `off` strips the decoration (the section opts out).
|
|
188
|
+
* - `site-default` / absent use the theme signature.
|
|
189
|
+
*
|
|
190
|
+
* Clone-on-write so the caller's content is never mutated in place. Any value
|
|
191
|
+
* previously baked into content is intentionally overwritten — the theme is the
|
|
192
|
+
* single runtime source.
|
|
193
|
+
*/
|
|
194
|
+
function applyHeadingDecorationSignature(target, themeDecoration) {
|
|
195
|
+
const existing = target["_sectionStyles"];
|
|
196
|
+
const existingObj = isPlainObject(existing) ? existing : void 0;
|
|
197
|
+
const rawOverride = existingObj?.["headingDecorationOverride"];
|
|
198
|
+
const effective = resolveEffectiveHeadingDecoration(themeDecoration, rawOverride === "site-default" || rawOverride === "off" ? rawOverride : void 0);
|
|
199
|
+
if (effective.kind === "none") {
|
|
200
|
+
if (existingObj && "headingDecoration" in existingObj) {
|
|
201
|
+
const next = { ...existingObj };
|
|
202
|
+
delete next["headingDecoration"];
|
|
203
|
+
target["_sectionStyles"] = next;
|
|
204
|
+
}
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const next = existingObj ? { ...existingObj } : {};
|
|
208
|
+
next["headingDecoration"] = { ...effective.decoration };
|
|
209
|
+
target["_sectionStyles"] = next;
|
|
210
|
+
}
|
|
211
|
+
function applyStyleOverride(target, key, defaults) {
|
|
212
|
+
if (defaults === void 0) return;
|
|
213
|
+
target[key] = mergeStyleOverride(defaults, target[key]);
|
|
214
|
+
}
|
|
215
|
+
function mergeStyleOverride(defaultValue, contentValue) {
|
|
216
|
+
if (!isPlainObject(defaultValue) || !isPlainObject(contentValue)) return mergeDeep(defaultValue, contentValue);
|
|
217
|
+
const merged = mergeDeep(defaultValue, contentValue);
|
|
218
|
+
if (!isPlainObject(merged)) return merged;
|
|
219
|
+
return {
|
|
220
|
+
...merged,
|
|
221
|
+
background: mergeBoxBackground(defaultValue.background, contentValue.background)
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function mergeBoxBackground(defaultValue, contentValue) {
|
|
225
|
+
if (contentValue === void 0) return cloneValue(defaultValue);
|
|
226
|
+
if (contentValue === null) return null;
|
|
227
|
+
const defaults = boxBackgroundSchema.safeParse(defaultValue);
|
|
228
|
+
const content = boxBackgroundSchema.safeParse(contentValue);
|
|
229
|
+
if (!content.success) return cloneValue(contentValue);
|
|
230
|
+
if (!defaults.success || defaults.data.type !== content.data.type) return content.data;
|
|
231
|
+
const merged = boxBackgroundSchema.safeParse(mergeDeep(defaults.data, content.data));
|
|
232
|
+
return merged.success ? merged.data : content.data;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
48
235
|
//#region ../theme-core/src/runtime/fontFamily.ts
|
|
49
236
|
/**
|
|
50
237
|
* Font Family Formatting Utilities
|
|
@@ -573,77 +760,6 @@ function accordionSurfaceRules(theme, system) {
|
|
|
573
760
|
return [`background-color: ${rgbColorValue(system.background.colorToken)}`, ...surfaceForegroundDeclarations(foreground.kind === "known" ? surfaceForegroundInputFromResolved(foreground, rgbColorValue) : { text: rgbColorValue(system.content.textColorToken) })];
|
|
574
761
|
}
|
|
575
762
|
//#endregion
|
|
576
|
-
//#region ../theme-core/src/accordions/defaults.ts
|
|
577
|
-
/**
|
|
578
|
-
* Generate default accordion system based on theme configuration
|
|
579
|
-
*
|
|
580
|
-
* Creates a single accordion style that harmonizes with the theme's
|
|
581
|
-
* visual language (spacing, borders, shadows, colors).
|
|
582
|
-
*/
|
|
583
|
-
function generateDefaultAccordionSystem(theme) {
|
|
584
|
-
const overrides = theme.siteStyleId ? requireCuratedSiteStyle(theme.siteStyleId).themeOverrides?.accordions : void 0;
|
|
585
|
-
if (overrides) return overrides;
|
|
586
|
-
const { axes, space } = theme;
|
|
587
|
-
return {
|
|
588
|
-
background: {
|
|
589
|
-
type: "solid",
|
|
590
|
-
colorToken: "surface"
|
|
591
|
-
},
|
|
592
|
-
spacing: space === "comfortable" ? "comfortable" : space === "dense" ? "compact" : "medium",
|
|
593
|
-
corners: null,
|
|
594
|
-
border: defaultAccordionBorder(theme),
|
|
595
|
-
shadow: defaultAccordionShadow(theme),
|
|
596
|
-
icon: {
|
|
597
|
-
style: axes.tone === "bold" ? "plus-minus" : "chevron",
|
|
598
|
-
position: "right",
|
|
599
|
-
size: axes.density === "compact" ? "sm" : "md"
|
|
600
|
-
},
|
|
601
|
-
trigger: {
|
|
602
|
-
textColorToken: "text",
|
|
603
|
-
fontWeight: axes.tone === "bold" ? "bold" : axes.tone === "minimal" ? "medium" : "semibold"
|
|
604
|
-
},
|
|
605
|
-
hover: generateHoverEffects(axes),
|
|
606
|
-
content: { textColorToken: "neutral-700" }
|
|
607
|
-
};
|
|
608
|
-
}
|
|
609
|
-
function defaultAccordionBorder({ axes, border }) {
|
|
610
|
-
return axes.conversionBias === "high" || border.width !== "none" ? {
|
|
611
|
-
widthClass: border.width === "thick" ? "border-2" : "border",
|
|
612
|
-
colorToken: "border"
|
|
613
|
-
} : null;
|
|
614
|
-
}
|
|
615
|
-
function defaultAccordionShadow({ axes, shadow }) {
|
|
616
|
-
return axes.conversionBias === "high" || shadow.elevation !== "none" ? {
|
|
617
|
-
elevation: shadow.elevation === "none" ? "low" : shadow.elevation,
|
|
618
|
-
softness: shadow.softness === "crisp" || shadow.softness === null ? "soft" : shadow.softness,
|
|
619
|
-
position: shadow.position
|
|
620
|
-
} : null;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* Generate hover effects based on theme characteristics
|
|
624
|
-
*
|
|
625
|
-
* Strategy:
|
|
626
|
-
* - Minimal/calm themes: subtle text color change only
|
|
627
|
-
* - Bold/vibrant themes: background + text color
|
|
628
|
-
* - High conversion themes: background + shadow elevation
|
|
629
|
-
*/
|
|
630
|
-
function generateHoverEffects(axes) {
|
|
631
|
-
const { tone, energy, conversionBias } = axes;
|
|
632
|
-
if (tone === "minimal" && energy === "calm") return { textColorToken: "primary" };
|
|
633
|
-
if (tone === "bold" || conversionBias === "high") return {
|
|
634
|
-
backgroundColorToken: "primary/10",
|
|
635
|
-
textColorToken: "primary"
|
|
636
|
-
};
|
|
637
|
-
if (energy === "vibrant") return {
|
|
638
|
-
backgroundColorToken: "primary/5",
|
|
639
|
-
textColorToken: "primary"
|
|
640
|
-
};
|
|
641
|
-
return {
|
|
642
|
-
backgroundColorToken: "primary/5",
|
|
643
|
-
textColorToken: "primary"
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
//#endregion
|
|
647
763
|
//#region ../theme-core/src/inputs/checkable.ts
|
|
648
764
|
/**
|
|
649
765
|
* Checkbox and radio CSS shared by the full theme generator and the SDK
|
|
@@ -2357,122 +2473,6 @@ function generateBlockCustomVarsCss(themeId, blockCustomVars) {
|
|
|
2357
2473
|
return cssChunks.join("\n\n");
|
|
2358
2474
|
}
|
|
2359
2475
|
//#endregion
|
|
2360
|
-
//#region ../theme-core/src/blockOverrides.ts
|
|
2361
|
-
const BLOCK_PREFIX = "block.";
|
|
2362
|
-
function isPlainObject(value) {
|
|
2363
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2364
|
-
}
|
|
2365
|
-
function isUnknownArray(value) {
|
|
2366
|
-
return Array.isArray(value);
|
|
2367
|
-
}
|
|
2368
|
-
function cloneValue(value) {
|
|
2369
|
-
if (isUnknownArray(value)) return value.map((item) => cloneValue(item));
|
|
2370
|
-
if (isPlainObject(value)) {
|
|
2371
|
-
const cloned = {};
|
|
2372
|
-
for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
|
|
2373
|
-
return cloned;
|
|
2374
|
-
}
|
|
2375
|
-
return value;
|
|
2376
|
-
}
|
|
2377
|
-
function mergeDeep(defaultValue, overrideValue) {
|
|
2378
|
-
if (overrideValue === void 0) return cloneValue(defaultValue);
|
|
2379
|
-
if (overrideValue === null) return null;
|
|
2380
|
-
if (isPlainObject(defaultValue) && isPlainObject(overrideValue)) {
|
|
2381
|
-
const merged = {};
|
|
2382
|
-
const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
|
|
2383
|
-
for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
|
|
2384
|
-
return merged;
|
|
2385
|
-
}
|
|
2386
|
-
return cloneValue(overrideValue);
|
|
2387
|
-
}
|
|
2388
|
-
function normalizeBlockKind(blockKind) {
|
|
2389
|
-
return blockKind.replace(/^block\./, "");
|
|
2390
|
-
}
|
|
2391
|
-
function buildBlockKindCandidates(blockKind) {
|
|
2392
|
-
const normalized = normalizeBlockKind(blockKind);
|
|
2393
|
-
const prefixed = `${BLOCK_PREFIX}${normalized}`;
|
|
2394
|
-
return Array.from(/* @__PURE__ */ new Set([
|
|
2395
|
-
blockKind,
|
|
2396
|
-
normalized,
|
|
2397
|
-
prefixed
|
|
2398
|
-
]));
|
|
2399
|
-
}
|
|
2400
|
-
function resolveEffectiveHeadingDecoration(themeDecoration, override) {
|
|
2401
|
-
if (override === "off" || !themeDecoration || themeDecoration.family === "none") return { kind: "none" };
|
|
2402
|
-
return {
|
|
2403
|
-
kind: "visible",
|
|
2404
|
-
decoration: themeDecoration
|
|
2405
|
-
};
|
|
2406
|
-
}
|
|
2407
|
-
function resolveBlockThemeOverride(theme, blockKind) {
|
|
2408
|
-
if (!theme?.blockOverrides || !blockKind) return void 0;
|
|
2409
|
-
for (const candidate of buildBlockKindCandidates(blockKind)) {
|
|
2410
|
-
const override = theme.blockOverrides[candidate];
|
|
2411
|
-
if (override) return override;
|
|
2412
|
-
}
|
|
2413
|
-
}
|
|
2414
|
-
function mergeContentWithBlockStyleOverrides(content, theme, blockKind) {
|
|
2415
|
-
const styleOverrides = resolveBlockThemeOverride(theme, blockKind)?.styles;
|
|
2416
|
-
const mergedContent = { ...content };
|
|
2417
|
-
if (styleOverrides) {
|
|
2418
|
-
applyStyleOverride(mergedContent, "_sectionStyles", styleOverrides.sectionStyles);
|
|
2419
|
-
applyStyleOverride(mergedContent, "_containerStyles", styleOverrides.containerStyles);
|
|
2420
|
-
applyStyleOverride(mergedContent, "_cardStyles", styleOverrides.cardStyles);
|
|
2421
|
-
}
|
|
2422
|
-
applyHeadingDecorationSignature(mergedContent, theme?.headingDecoration);
|
|
2423
|
-
return mergedContent;
|
|
2424
|
-
}
|
|
2425
|
-
/**
|
|
2426
|
-
* Projects the site-wide heading decoration signature onto a transient
|
|
2427
|
-
* `_sectionStyles.headingDecoration`, honouring the per-section override:
|
|
2428
|
-
* - `off` strips the decoration (the section opts out).
|
|
2429
|
-
* - `site-default` / absent use the theme signature.
|
|
2430
|
-
*
|
|
2431
|
-
* Clone-on-write so the caller's content is never mutated in place. Any value
|
|
2432
|
-
* previously baked into content is intentionally overwritten — the theme is the
|
|
2433
|
-
* single runtime source.
|
|
2434
|
-
*/
|
|
2435
|
-
function applyHeadingDecorationSignature(target, themeDecoration) {
|
|
2436
|
-
const existing = target["_sectionStyles"];
|
|
2437
|
-
const existingObj = isPlainObject(existing) ? existing : void 0;
|
|
2438
|
-
const rawOverride = existingObj?.["headingDecorationOverride"];
|
|
2439
|
-
const effective = resolveEffectiveHeadingDecoration(themeDecoration, rawOverride === "site-default" || rawOverride === "off" ? rawOverride : void 0);
|
|
2440
|
-
if (effective.kind === "none") {
|
|
2441
|
-
if (existingObj && "headingDecoration" in existingObj) {
|
|
2442
|
-
const next = { ...existingObj };
|
|
2443
|
-
delete next["headingDecoration"];
|
|
2444
|
-
target["_sectionStyles"] = next;
|
|
2445
|
-
}
|
|
2446
|
-
return;
|
|
2447
|
-
}
|
|
2448
|
-
const next = existingObj ? { ...existingObj } : {};
|
|
2449
|
-
next["headingDecoration"] = { ...effective.decoration };
|
|
2450
|
-
target["_sectionStyles"] = next;
|
|
2451
|
-
}
|
|
2452
|
-
function applyStyleOverride(target, key, defaults) {
|
|
2453
|
-
if (defaults === void 0) return;
|
|
2454
|
-
target[key] = mergeStyleOverride(defaults, target[key]);
|
|
2455
|
-
}
|
|
2456
|
-
function mergeStyleOverride(defaultValue, contentValue) {
|
|
2457
|
-
if (!isPlainObject(defaultValue) || !isPlainObject(contentValue)) return mergeDeep(defaultValue, contentValue);
|
|
2458
|
-
const merged = mergeDeep(defaultValue, contentValue);
|
|
2459
|
-
if (!isPlainObject(merged)) return merged;
|
|
2460
|
-
return {
|
|
2461
|
-
...merged,
|
|
2462
|
-
background: mergeBoxBackground(defaultValue.background, contentValue.background)
|
|
2463
|
-
};
|
|
2464
|
-
}
|
|
2465
|
-
function mergeBoxBackground(defaultValue, contentValue) {
|
|
2466
|
-
if (contentValue === void 0) return cloneValue(defaultValue);
|
|
2467
|
-
if (contentValue === null) return null;
|
|
2468
|
-
const defaults = boxBackgroundSchema.safeParse(defaultValue);
|
|
2469
|
-
const content = boxBackgroundSchema.safeParse(contentValue);
|
|
2470
|
-
if (!content.success) return cloneValue(contentValue);
|
|
2471
|
-
if (!defaults.success || defaults.data.type !== content.data.type) return content.data;
|
|
2472
|
-
const merged = boxBackgroundSchema.safeParse(mergeDeep(defaults.data, content.data));
|
|
2473
|
-
return merged.success ? merged.data : content.data;
|
|
2474
|
-
}
|
|
2475
|
-
//#endregion
|
|
2476
2476
|
//#region ../theme-core/src/customCss/selectorUtils.ts
|
|
2477
2477
|
/**
|
|
2478
2478
|
* Shared CSS Selector Utilities
|
|
@@ -5059,6 +5059,25 @@ const containerResponsiveThemeCss = `/*
|
|
|
5059
5059
|
}
|
|
5060
5060
|
}
|
|
5061
5061
|
|
|
5062
|
+
/* Shared upload structure: included in both public theme CSS and editor CSS.
|
|
5063
|
+
* Palette, row framing and animation belong to each surface. No Tailwind required. */
|
|
5064
|
+
@layer components {
|
|
5065
|
+
.rb-upload-progress { position: relative; width: 100%; height: 8px; overflow: hidden; border-radius: 9999px; }
|
|
5066
|
+
.rb-upload-progress[data-size="thin"] { height: 4px; }
|
|
5067
|
+
.rb-upload-progress-fill { height: 100%; border-radius: inherit; }
|
|
5068
|
+
.rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { position: absolute; }
|
|
5069
|
+
.rb-upload-content { min-width: 0; }
|
|
5070
|
+
.rb-upload-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 1.3; font-weight: 500; }
|
|
5071
|
+
.rb-upload-content > .rb-upload-progress { margin-top: 6px; }
|
|
5072
|
+
.rb-upload-error { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--foreground); }
|
|
5073
|
+
.rb-upload-status { white-space: nowrap; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
5074
|
+
.rb-upload-row:is([data-failed], [data-done], [data-sending]) > .rb-upload-status { font-weight: 500; color: var(--foreground); }
|
|
5075
|
+
.rb-upload-row[data-failed] > .rb-upload-status { color: var(--upload-attention); }
|
|
5076
|
+
.rb-upload-done-icon { display: inline; margin-right: 6px; }
|
|
5077
|
+
.rb-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
|
|
5078
|
+
.rb-upload-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5062
5081
|
@layer rb-theme {
|
|
5063
5082
|
/* Fallback defaults so preview doesn't look broken before ThemeScope injects vars */
|
|
5064
5083
|
:root {
|
|
@@ -14309,6 +14328,57 @@ const containerResponsiveThemeCss = `/*
|
|
|
14309
14328
|
/* Styles for SSR placeholder */
|
|
14310
14329
|
}
|
|
14311
14330
|
|
|
14331
|
+
/* Document uploads: the shared upload row (uploads-react UploadRow), drawn in the
|
|
14332
|
+
* site's palette and type rather than editor chrome. The tokens below are the
|
|
14333
|
+
* ones that row reads; the editor defines the same set in editor-base.css. */
|
|
14334
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field {
|
|
14335
|
+
--foreground: var(--cp-text);
|
|
14336
|
+
--muted-foreground: var(--cp-muted);
|
|
14337
|
+
--card: var(--cp-card-bg);
|
|
14338
|
+
--primary: var(--cp-primary);
|
|
14339
|
+
--muted: color-mix(in srgb, var(--cp-primary) 9%, var(--cp-card-bg));
|
|
14340
|
+
--upload-track: color-mix(in srgb, var(--cp-primary) 14%, var(--cp-card-bg));
|
|
14341
|
+
--upload-row-hover: color-mix(in srgb, var(--cp-text) 3%, var(--cp-card-bg));
|
|
14342
|
+
--upload-attention: var(--cp-error);
|
|
14343
|
+
--upload-attention-wash: color-mix(in srgb, var(--cp-error) 7%, var(--cp-card-bg));
|
|
14344
|
+
--upload-attention-soft: color-mix(in srgb, var(--cp-error) 14%, var(--cp-card-bg));
|
|
14345
|
+
display: flex;
|
|
14346
|
+
flex-direction: column;
|
|
14347
|
+
align-items: flex-start;
|
|
14348
|
+
gap: 10px;
|
|
14349
|
+
}
|
|
14350
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-list { display: contents; }
|
|
14351
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-scroll, :where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-scroll[data-overflow] { align-self: stretch; padding: 0; max-height: none; overflow: visible; mask-image: none; }
|
|
14352
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-trigger { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
|
|
14353
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-trigger:has(input:focus-visible) { outline: 2px solid var(--cp-primary); outline-offset: 2px; }
|
|
14354
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--cp-border); border-radius: var(--cp-control-radius); background: var(--cp-card-bg); color: var(--cp-text); transition: background-color .15s; }
|
|
14355
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row:hover, :where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row:focus-within { background: var(--upload-row-hover); }
|
|
14356
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] { align-items: start; border-color: color-mix(in srgb, var(--cp-error) 22%, var(--cp-card-bg)); background: var(--upload-attention-wash); }
|
|
14357
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-status { color: var(--upload-attention); }
|
|
14358
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-status svg { color: var(--cp-primary); }
|
|
14359
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-thumb { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; overflow: hidden; border-radius: 4px; background: var(--muted); color: var(--cp-muted); }
|
|
14360
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-thumb[data-failed] { background: var(--upload-attention-soft); color: var(--upload-attention); }
|
|
14361
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--cp-muted); }
|
|
14362
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon:hover { background: color-mix(in srgb, var(--cp-text) 8%, transparent); color: var(--cp-text); }
|
|
14363
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-icon:focus-visible { outline: 2px solid var(--cp-primary); outline-offset: 2px; }
|
|
14364
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-link { color: var(--cp-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
|
|
14365
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress { background: var(--upload-track); }
|
|
14366
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress-fill { background: var(--cp-primary); transition: width 250ms ease; }
|
|
14367
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-waiting] .rb-upload-progress-fill { opacity: .35; }
|
|
14368
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { position: absolute; width: 38%; animation: cp-upload-comet 1.5s ease-in-out infinite; }
|
|
14369
|
+
@keyframes cp-upload-comet { from { transform: translateX(-100%); } to { transform: translateX(365%); } }
|
|
14370
|
+
@container rb-site (max-width: 639px) {
|
|
14371
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
14372
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row { gap: 8px; }
|
|
14373
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-status { display: none; }
|
|
14374
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-row[data-failed] > .rb-upload-icon { grid-column: 4; }
|
|
14375
|
+
}
|
|
14376
|
+
}
|
|
14377
|
+
@media (prefers-reduced-motion: reduce) {
|
|
14378
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress-fill { transition: none; }
|
|
14379
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-upload-field .rb-upload-progress[data-indeterminate] .rb-upload-progress-fill { animation: none; width: 100%; opacity: .35; }
|
|
14380
|
+
}
|
|
14381
|
+
|
|
14312
14382
|
/* Reserved portal ticket and digital-product pages.
|
|
14313
14383
|
* These render without site chrome, so the page itself sits on the site
|
|
14314
14384
|
* background (from the surrounding theme scope) and the card mirrors .cp-login. */
|
|
@@ -17771,6 +17841,15 @@ const containerResponsiveThemeCss = `/*
|
|
|
17771
17841
|
.theme-scope [data-arrangement] [data-slot="item-text"] { margin-block: 0.5rem 0; }
|
|
17772
17842
|
.theme-scope [data-arrangement="grid"] [data-slot="item-body"] { padding: 1.5rem; }
|
|
17773
17843
|
.theme-scope [data-arrangement="grid"] [data-slot="item-actions"] { margin-top: 1rem; }
|
|
17844
|
+
/* Event spotlight (issue 1612): the date heads the card on one line, inside the card's padding,
|
|
17845
|
+
* so every skin gets a deliberate date without its own treatment rules. */
|
|
17846
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding: 1rem 1.5rem 0.875rem; }
|
|
17847
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] > :is([data-slot="weekday"], [data-slot="month"]) { width: auto; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-supporting-color); }
|
|
17848
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] > [data-slot="day"] { width: auto; font-family: var(--font-heading); font-size: 2.25rem; font-weight: 500; line-height: 1; color: var(--rb-surface-heading-color); }
|
|
17849
|
+
.theme-scope [data-arrangement="grid"][data-treat="calendar-spotlight"] [data-slot="item"] > [data-slot="date"] + [data-slot="item-body"] { padding-top: 0.75rem; }
|
|
17850
|
+
/* Calendar grid photos (spotlight and session cards) share one crop, so cards in a row line up
|
|
17851
|
+
* whatever shape each event's photo is. */
|
|
17852
|
+
.theme-scope [data-block="event-calendar"][data-arrangement="grid"] [data-slot="item"] > [data-slot="item-media"] [data-slot="photo"] { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
|
|
17774
17853
|
|
|
17775
17854
|
/* Item bodies fill the card so their actions share a bottom baseline. */
|
|
17776
17855
|
.theme-scope [data-arrangement="grid"] [data-slot="item"] { display: flex; flex-direction: column; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-
|
|
1
|
+
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-C5Mu-z0F.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/theme-bridge/generateCssVars.ts
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-
|
|
1
|
+
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-C3dJ5UkL.mjs";
|
|
2
2
|
import * as fs from "fs/promises";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
//#region src/theme/loader.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as parseContentVersionId, i as mediaPosterSchema, p as mediaIdentifierSchema, s as runtimeMediaSchema } from "./media-CcHwZkdJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { at as boxBackgroundSchema, ot as runtimeBoxBackgroundSchema } from "./schema-
|
|
2
|
+
import { $r as parseBlockIconValue, Bi as resolveRepeaterGridSpanFieldId, Fi as buildRepeaterGridLayout, Ii as parseRepeaterGridInteger, Li as resolveRepeaterGridColumnFieldId, Oa as toUtcIsoDateTimeString, Pi as projectRepeaterGridLayoutForRendering, Ri as resolveRepeaterGridColumnsForBreakpoint, Si as normalizeSelectSource, Ta as resolveBookingBusinessTimeZone, _i as PUBLIC_FILE_FIELD_KINDS, c as sanitizeNewsletterSignupPublicContent, ea as isRecord$1, fi as inlineTextToPlainText, gi as DEFAULT_MEDIA_FIELD_KINDS, hi as plainTextToInlineText, ji as linkSchema, mi as parseInlineTextFromUnknown, t as getBlockDefinition, wi as parseFieldDefinitions, zi as resolveRepeaterGridRowFieldId } from "./registry-eFjKtEhF.mjs";
|
|
3
|
+
import { at as boxBackgroundSchema, ot as runtimeBoxBackgroundSchema } from "./schema-C3dJ5UkL.mjs";
|
|
4
4
|
import { r as isRichTextDoc } from "./richTextSchema-YYc85FX4.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../core/src/block-content-identity.ts
|
|
@@ -2146,62 +2146,6 @@ Do NOT include [data-block=...] in selectors - we add that automatically.
|
|
|
2146
2146
|
`;
|
|
2147
2147
|
}
|
|
2148
2148
|
//#endregion
|
|
2149
|
-
//#region src/manifest/constants.ts
|
|
2150
|
-
/**
|
|
2151
|
-
* Manifest Generator Constants
|
|
2152
|
-
*
|
|
2153
|
-
* Configuration constants for the HTML-to-manifest converter.
|
|
2154
|
-
*/
|
|
2155
|
-
/**
|
|
2156
|
-
* Default model for manifest generation.
|
|
2157
|
-
* Can be overridden via the RIVERBANK_MANIFEST_MODEL environment variable.
|
|
2158
|
-
*/
|
|
2159
|
-
const DEFAULT_MANIFEST_MODEL = process.env.RIVERBANK_MANIFEST_MODEL || "gpt-5-mini";
|
|
2160
|
-
/**
|
|
2161
|
-
* Model tiers for different complexity levels of tasks.
|
|
2162
|
-
* - fast: Simple tasks like segmentation, basic classification
|
|
2163
|
-
* - balanced: Medium tasks like block matching, content detection
|
|
2164
|
-
* - quality: Complex tasks like layout generation, CSS styling
|
|
2165
|
-
*/
|
|
2166
|
-
const MODEL_TIERS = {
|
|
2167
|
-
fast: "gpt-5-nano",
|
|
2168
|
-
balanced: "gpt-5-mini",
|
|
2169
|
-
quality: "gpt-5.2"
|
|
2170
|
-
};
|
|
2171
|
-
/**
|
|
2172
|
-
* Default model tier assignments for page converter passes.
|
|
2173
|
-
*/
|
|
2174
|
-
const PAGE_CONVERTER_PASS_DEFAULTS = {
|
|
2175
|
-
"page-pass1-segmentation-matching": "quality",
|
|
2176
|
-
"page-pass2-population": "balanced"
|
|
2177
|
-
};
|
|
2178
|
-
/**
|
|
2179
|
-
* Default model tier assignments for manifest converter passes.
|
|
2180
|
-
*/
|
|
2181
|
-
const MANIFEST_CONVERTER_PASS_DEFAULTS = {
|
|
2182
|
-
"manifest-pass1-fields": "balanced",
|
|
2183
|
-
"manifest-pass2-layout": "quality",
|
|
2184
|
-
"manifest-pass3a-classes": "quality",
|
|
2185
|
-
"manifest-pass3b-css": "quality"
|
|
2186
|
-
};
|
|
2187
|
-
/**
|
|
2188
|
-
* Resolve a model for a given pass using tier configuration.
|
|
2189
|
-
*
|
|
2190
|
-
* @param passId - The pass identifier (e.g., 'page-pass0-segmentation')
|
|
2191
|
-
* @param tierOverrides - Optional overrides for tier-to-model mapping
|
|
2192
|
-
* @param passOverrides - Optional per-pass tier overrides
|
|
2193
|
-
* @param globalModel - Optional global model override (bypasses tiers)
|
|
2194
|
-
* @returns The resolved model string
|
|
2195
|
-
*/
|
|
2196
|
-
function resolveModelForPass(passId, tierOverrides, passOverrides, globalModel) {
|
|
2197
|
-
if (globalModel) return globalModel;
|
|
2198
|
-
const tier = passOverrides?.[passId] ?? PAGE_CONVERTER_PASS_DEFAULTS[passId] ?? MANIFEST_CONVERTER_PASS_DEFAULTS[passId] ?? "balanced";
|
|
2199
|
-
return {
|
|
2200
|
-
...MODEL_TIERS,
|
|
2201
|
-
...tierOverrides
|
|
2202
|
-
}[tier];
|
|
2203
|
-
}
|
|
2204
|
-
//#endregion
|
|
2205
2149
|
//#region src/manifest/three-pass-converter.ts
|
|
2206
2150
|
/**
|
|
2207
2151
|
* Three-Pass HTML-to-Manifest Converter
|
|
@@ -3081,7 +3025,7 @@ function normalizeLlmLayoutToRuntimeNode(raw) {
|
|
|
3081
3025
|
return normalized;
|
|
3082
3026
|
}
|
|
3083
3027
|
async function convertHtmlToManifest(input, options) {
|
|
3084
|
-
const { ai, maxRetries = 3, model
|
|
3028
|
+
const { ai, maxRetries = 3, model, temperature = .2, onProgress, debugDir } = options;
|
|
3085
3029
|
const { html, css, theme, availableContentTypes } = input;
|
|
3086
3030
|
const debug = createDebugWriter(debugDir);
|
|
3087
3031
|
const ctx = {
|
|
@@ -3192,4 +3136,4 @@ function validateManifestOutput(data) {
|
|
|
3192
3136
|
};
|
|
3193
3137
|
}
|
|
3194
3138
|
//#endregion
|
|
3195
|
-
export {
|
|
3139
|
+
export { formatThemeSummaryForPrompt as _, collectValidationErrors as a, llmAtRuleSchema as c, llmMediaAtRuleSchema as d, llmNestedRuleSchema as f, normalizeLlmMediaAtRule as g, normalizeLlmCssRule as h, getJsonFromAiText as i, llmCustomBlockSchema as l, normalizeDeclarationsArrayToRecord as m, validateManifestOutput as n, formatValidationFeedback as o, llmThemePatchOpSchema as p, getJsonFromAi as r, htmlToManifestOutputSchema as s, convertHtmlToManifest as t, llmCustomCssRuleSchema as u, summarizeThemeForLLM as v };
|