@riverbankcms/sdk 0.164.0 → 0.165.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-D6gp2Ipb.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -71
- package/dist/_dts/{client-CbeYTSry.d.ts → client-BkkExozE.d.ts} +1 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-XRXhbLWP.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-B4ozSzFP.d.ts} +35642 -35443
- package/dist/_dts/{index-DYQFmf--.d.ts → index-BdkHhyf8.d.ts} +1 -1
- package/dist/_dts/{index-BZE-1azr.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-DAPTSmBM.d.ts} +401 -569
- package/dist/_dts/{index-DriYVLfT.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-B9vJMq3s.d.ts} +6 -6
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +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 +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/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-W40f2olO.d.ts → types-BDF73NzM.d.ts} +2 -2
- package/dist/_dts/{types-DiciZDrk.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-dILw2PN_.mjs} +11 -5
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +10 -10
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DUr2YhFR.mjs} +1521 -235
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-2fJqT_NR.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-Cfbo1bfh.mjs} +1 -1
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-BSbWgLyx.mjs} +13 -13
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/{context-BNAM7NsW.mjs → context-CBV21-9L.mjs} +1 -1
- package/dist/client/{cta-ChiN1Vgg.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-QMqtIywj.mjs} +23 -14
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BtpK3TZW.mjs} +6 -6
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-Djos5Un4.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-DpHNZc7k.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-CLGH20PL.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -13
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/{purchase-BMsWpx8y.mjs → purchase-BV5xfaZH.mjs} +1 -1
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CIKtTsCl.mjs} +189 -162
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-DMUkBtIO.mjs → schema-BdSglH2X.mjs} +189 -20
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BGmkdIAZ.mjs} +251 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-BLHYJ8S7.mjs → site-styles-CWHmlVT5.mjs} +2612 -448
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-BnaOmrap.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DManVJpc.mjs} +49 -39
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-C3AQVxQt.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3566 -3197
- package/dist/preview-next/client/{PreviewEditorUI-C-1zDCR_.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-C6Rhm2NQ.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-B47yHFL0.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3811 -4882
- package/dist/preview-next/client/{siteStyleAccess-BiSyYyyr.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +8506 -13317
- package/dist/preview-next/client/{ThemedButton-g7NPrsGp.mjs → ThemedButton-Dc6aJ34Z.mjs} +214 -23
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-Cjwxv90x.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-By_zfrS5.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +205988 -193500
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BG2HYvQj.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-BBAJjFIz.mjs} +11 -8
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-ClFI3qpX.mjs} +4 -4
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-CiKaE8ms.mjs → client-DfMDbZ41.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-EDSdd_oK.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2353 -214
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-dEEhQxL7.mjs} +4 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-DBFBad8A.mjs} +2 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-DVemf-GV.mjs → overrides-DhF87Vsd.mjs} +294 -103
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bnbwoe5n.mjs → prefetchBlockData-FwcsT5H2.mjs} +293 -90
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → publicProducts-Bz8loTRn.mjs} +13 -10
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-Cdvz1OtL.mjs} +499 -374
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BlTWmTSl.mjs → schema-uSA_x1Zh.mjs} +189 -20
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-yHytcXIB.mjs → site-styles-CntHn2KI.mjs} +55 -30
- package/dist/server/{siteChromeOverlayClearance-D0uCNZ7E.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +2 -2
- package/dist/server/{src-cbbK3Bho.mjs → src-DsYPhTbs.mjs} +1009 -25
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → themeAdmission-CSknYpxk.mjs} +2 -2
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-DoOG6F13.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +914 -10
- package/package.json +1 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
|
@@ -2077,6 +2077,12 @@ function defineBlockDesignCapability(capability) {
|
|
|
2077
2077
|
function admittedSectionBackgroundPaints(paints) {
|
|
2078
2078
|
return paints ?? sectionBackgroundPaintValues;
|
|
2079
2079
|
}
|
|
2080
|
+
function defineNoBlockDesignCapability(reason) {
|
|
2081
|
+
return {
|
|
2082
|
+
kind: "not-designed",
|
|
2083
|
+
reason
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2080
2086
|
const skinTokensSchema = z.partialRecord(z.enum([
|
|
2081
2087
|
"radius",
|
|
2082
2088
|
"rule",
|
|
@@ -2105,6 +2111,14 @@ function skinTokenCssVars(tokens) {
|
|
|
2105
2111
|
return Object.fromEntries(Object.entries(tokens ?? {}).map(([name, value]) => [`--rb-skin-${name}`, value]));
|
|
2106
2112
|
}
|
|
2107
2113
|
const skinMarksSchema = z.enum(["primary"]);
|
|
2114
|
+
/** The booking bar's paint and shape as applied from an arrangement style (issue 1659); the plain bar when absent. */
|
|
2115
|
+
const skinBookingBarSchema = z.object({
|
|
2116
|
+
token: z.string().refine((value) => {
|
|
2117
|
+
const parts = parseColorTokenParts(value);
|
|
2118
|
+
return parts.kind === "token" && parts.opacityPercent === null && parts.token === value && isThemeColorToken(value);
|
|
2119
|
+
}, "Expected a plain Theme V2 colour token, without spaces or opacity"),
|
|
2120
|
+
shape: z.enum(["edge-to-edge", "field"])
|
|
2121
|
+
});
|
|
2108
2122
|
const themeLookMetadataSchema = z.object({
|
|
2109
2123
|
name: z.string().min(1).max(30),
|
|
2110
2124
|
description: z.string().min(1).max(400),
|
|
@@ -2114,7 +2128,8 @@ const themeLookMetadataSchema = z.object({
|
|
|
2114
2128
|
skinTokens: skinTokensSchema.optional(),
|
|
2115
2129
|
fontLoading: fontLoadingSchema.optional(),
|
|
2116
2130
|
/** Which palette colour an arrangement style derives its graphic marks from (D9); accent when absent. */
|
|
2117
|
-
skinMarks: skinMarksSchema.optional()
|
|
2131
|
+
skinMarks: skinMarksSchema.optional(),
|
|
2132
|
+
skinBookingBar: skinBookingBarSchema.optional()
|
|
2118
2133
|
});
|
|
2119
2134
|
//#endregion
|
|
2120
2135
|
//#region ../media-core/src/identifiers.ts
|
|
@@ -2416,9 +2431,6 @@ function paletteColorEntries(colors) {
|
|
|
2416
2431
|
hex: colors[name]
|
|
2417
2432
|
}));
|
|
2418
2433
|
}
|
|
2419
|
-
function paletteColorsEqual(left, right) {
|
|
2420
|
-
return PALETTE_TOKEN_NAMES.every((name) => left[name] === right[name]);
|
|
2421
|
-
}
|
|
2422
2434
|
function paletteColorFingerprint(colors) {
|
|
2423
2435
|
return PALETTE_TOKEN_NAMES.map((name) => `${name}:${colors[name]}`).join("|");
|
|
2424
2436
|
}
|
|
@@ -2461,13 +2473,20 @@ const paletteValueKeySchema = z.string().transform((value, ctx) => {
|
|
|
2461
2473
|
return z.NEVER;
|
|
2462
2474
|
});
|
|
2463
2475
|
//#endregion
|
|
2476
|
+
//#region ../theme-core/src/palette/colourSeeds.ts
|
|
2477
|
+
/** Owner colours in priority order, validated once at the input boundary. */
|
|
2478
|
+
const colourSeedsSchema = z.union([z.tuple([hexColorSchema]), z.tuple([hexColorSchema, hexColorSchema])]).refine((seeds) => seeds.length === 1 || seeds[0] !== seeds[1], { message: "Choose distinct colours" });
|
|
2479
|
+
//#endregion
|
|
2464
2480
|
//#region ../theme-core/src/palette/schema.ts
|
|
2465
2481
|
const colourHexString = z.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
2466
2482
|
const paletteColorSchema = z.object({
|
|
2467
2483
|
name: z.string().min(1),
|
|
2468
2484
|
hex: colourHexString
|
|
2469
2485
|
});
|
|
2470
|
-
const paletteMetaSchema = z.object({
|
|
2486
|
+
const paletteMetaSchema = z.object({
|
|
2487
|
+
mode: z.enum(["light", "dark"]),
|
|
2488
|
+
seeds: colourSeedsSchema.optional()
|
|
2489
|
+
});
|
|
2471
2490
|
const paletteSchema = z.object({
|
|
2472
2491
|
colors: z.array(paletteColorSchema),
|
|
2473
2492
|
meta: paletteMetaSchema
|
|
@@ -2984,6 +3003,25 @@ function baselineSurface(requestedRole, resolvedRole, theme) {
|
|
|
2984
3003
|
};
|
|
2985
3004
|
}
|
|
2986
3005
|
/**
|
|
3006
|
+
* Whether a card system gives `role` a surface of its own, rather than one
|
|
3007
|
+
* borrowed through the fallback chain below.
|
|
3008
|
+
*
|
|
3009
|
+
* `none` asks for no surface and `default` is every card system's everyday
|
|
3010
|
+
* card (the generated baseline stands in for it by design), so both always
|
|
3011
|
+
* hold. `alternative` and `open` hold only when the site style declares an
|
|
3012
|
+
* enabled variant for them: otherwise `alternative` quietly renders the
|
|
3013
|
+
* default card and `open` the generated baseline, and a Look asking for either
|
|
3014
|
+
* would look like some other Look. Look availability is derived from this.
|
|
3015
|
+
*/
|
|
3016
|
+
function cardSystemDefinesRole(cardSystem, role) {
|
|
3017
|
+
switch (role) {
|
|
3018
|
+
case "none":
|
|
3019
|
+
case "default": return true;
|
|
3020
|
+
case "alternative":
|
|
3021
|
+
case "open": return findEnabledVariantForRole(cardSystem, role) !== null;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
2987
3025
|
* Resolve a card role against a site style's card system.
|
|
2988
3026
|
*
|
|
2989
3027
|
* - `none` — terminal, no surface.
|
|
@@ -9097,7 +9135,7 @@ const themeV2NormalEditorRawStyleFieldNames = [
|
|
|
9097
9135
|
"styleGroup"
|
|
9098
9136
|
];
|
|
9099
9137
|
const themeV2NormalEditorRawStyleFieldNameSet = new Set(themeV2NormalEditorRawStyleFieldNames);
|
|
9100
|
-
[...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
|
|
9138
|
+
const themeV2CompilerOwnedFieldNames = [...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
|
|
9101
9139
|
const pageDesignEditorBackgroundOverrideOwner = "page-design-editor";
|
|
9102
9140
|
const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
|
|
9103
9141
|
function isThemeV2NormalEditorRawStyleFieldName(fieldName) {
|
|
@@ -12223,7 +12261,7 @@ function normalizeAppearance(appearance) {
|
|
|
12223
12261
|
}
|
|
12224
12262
|
//#endregion
|
|
12225
12263
|
//#region ../theme-core/src/buttons/styles/recipes/sewnLabel.ts
|
|
12226
|
-
const visual = {
|
|
12264
|
+
const visual$1 = {
|
|
12227
12265
|
text: "treatment",
|
|
12228
12266
|
borderRadius: "rounded-lg",
|
|
12229
12267
|
sizes: {
|
|
@@ -12263,8 +12301,8 @@ const stitch = {
|
|
|
12263
12301
|
inset: 6
|
|
12264
12302
|
}
|
|
12265
12303
|
};
|
|
12266
|
-
const filled = {
|
|
12267
|
-
...visual,
|
|
12304
|
+
const filled$1 = {
|
|
12305
|
+
...visual$1,
|
|
12268
12306
|
background: {
|
|
12269
12307
|
type: "solid",
|
|
12270
12308
|
colorToken: "primary"
|
|
@@ -12272,33 +12310,33 @@ const filled = {
|
|
|
12272
12310
|
border: "none",
|
|
12273
12311
|
effects: [stitch]
|
|
12274
12312
|
};
|
|
12275
|
-
const filledStates = {
|
|
12276
|
-
base: filled,
|
|
12313
|
+
const filledStates$1 = {
|
|
12314
|
+
base: filled$1,
|
|
12277
12315
|
hover: {
|
|
12278
|
-
...filled,
|
|
12316
|
+
...filled$1,
|
|
12279
12317
|
effects: [stitch, {
|
|
12280
12318
|
effectId: "darken-background",
|
|
12281
12319
|
options: { amount: 100 }
|
|
12282
12320
|
}]
|
|
12283
12321
|
},
|
|
12284
12322
|
focus: {
|
|
12285
|
-
...filled,
|
|
12323
|
+
...filled$1,
|
|
12286
12324
|
shadow: "focus-indicator"
|
|
12287
12325
|
},
|
|
12288
12326
|
active: {
|
|
12289
|
-
...filled,
|
|
12327
|
+
...filled$1,
|
|
12290
12328
|
effects: [stitch, {
|
|
12291
12329
|
effectId: "darken-background",
|
|
12292
12330
|
options: { amount: 100 }
|
|
12293
12331
|
}]
|
|
12294
12332
|
},
|
|
12295
12333
|
disabled: {
|
|
12296
|
-
...filled,
|
|
12334
|
+
...filled$1,
|
|
12297
12335
|
effects: []
|
|
12298
12336
|
}
|
|
12299
12337
|
};
|
|
12300
12338
|
const quiet = {
|
|
12301
|
-
...visual,
|
|
12339
|
+
...visual$1,
|
|
12302
12340
|
background: {
|
|
12303
12341
|
type: "surface",
|
|
12304
12342
|
role: "link"
|
|
@@ -12316,7 +12354,7 @@ const quietStates = {
|
|
|
12316
12354
|
active: quiet,
|
|
12317
12355
|
disabled: quiet
|
|
12318
12356
|
};
|
|
12319
|
-
const ghost = {
|
|
12357
|
+
const ghost$1 = {
|
|
12320
12358
|
...quiet,
|
|
12321
12359
|
border: "none"
|
|
12322
12360
|
};
|
|
@@ -12330,9 +12368,158 @@ const sewnLabelRecipe = defineStaticButtonStyleRecipe({
|
|
|
12330
12368
|
era: "organic"
|
|
12331
12369
|
},
|
|
12332
12370
|
system: { roles: {
|
|
12333
|
-
primary: { states: filledStates },
|
|
12371
|
+
primary: { states: filledStates$1 },
|
|
12334
12372
|
secondary: { states: quietStates },
|
|
12335
12373
|
outline: { states: quietStates },
|
|
12374
|
+
ghost: { states: {
|
|
12375
|
+
base: ghost$1,
|
|
12376
|
+
hover: ghost$1,
|
|
12377
|
+
focus: {
|
|
12378
|
+
...ghost$1,
|
|
12379
|
+
shadow: "focus-indicator"
|
|
12380
|
+
},
|
|
12381
|
+
active: ghost$1,
|
|
12382
|
+
disabled: ghost$1
|
|
12383
|
+
} },
|
|
12384
|
+
accent: { states: filledStates$1 }
|
|
12385
|
+
} }
|
|
12386
|
+
});
|
|
12387
|
+
//#endregion
|
|
12388
|
+
//#region ../theme-core/src/buttons/styles/recipes/edgedPill.ts
|
|
12389
|
+
const visual = {
|
|
12390
|
+
text: "treatment",
|
|
12391
|
+
borderRadius: "rounded-full",
|
|
12392
|
+
sizes: {
|
|
12393
|
+
sm: {
|
|
12394
|
+
padding: "0.625rem 1.125rem",
|
|
12395
|
+
fontSize: "text-sm"
|
|
12396
|
+
},
|
|
12397
|
+
md: { padding: "0.875rem 1.75rem" },
|
|
12398
|
+
lg: {
|
|
12399
|
+
padding: "1.125rem 2.25rem",
|
|
12400
|
+
fontSize: "text-lg"
|
|
12401
|
+
},
|
|
12402
|
+
xl: {
|
|
12403
|
+
padding: "1.25rem 2.5rem",
|
|
12404
|
+
fontSize: "text-xl"
|
|
12405
|
+
}
|
|
12406
|
+
},
|
|
12407
|
+
typography: {
|
|
12408
|
+
fontWeight: 700,
|
|
12409
|
+
typography: "body",
|
|
12410
|
+
fontSize: null,
|
|
12411
|
+
letterSpacing: null,
|
|
12412
|
+
italic: false,
|
|
12413
|
+
textTransform: "none"
|
|
12414
|
+
},
|
|
12415
|
+
shadow: {
|
|
12416
|
+
elevation: "none",
|
|
12417
|
+
softness: null,
|
|
12418
|
+
position: "bottom"
|
|
12419
|
+
}
|
|
12420
|
+
};
|
|
12421
|
+
/**
|
|
12422
|
+
* Poise (issue 1659): a filled pill with a thin edge drawn in its label ink, so
|
|
12423
|
+
* a light brand fill still reads against a light page. The edge is declared as
|
|
12424
|
+
* the boundary, so the contrast rule can pass the button on its edge.
|
|
12425
|
+
*/
|
|
12426
|
+
const filled = {
|
|
12427
|
+
...visual,
|
|
12428
|
+
background: {
|
|
12429
|
+
type: "solid",
|
|
12430
|
+
colorToken: "primary"
|
|
12431
|
+
},
|
|
12432
|
+
border: {
|
|
12433
|
+
widthClass: "border-2",
|
|
12434
|
+
marksBoundary: true
|
|
12435
|
+
},
|
|
12436
|
+
effects: []
|
|
12437
|
+
};
|
|
12438
|
+
const filledStates = {
|
|
12439
|
+
base: filled,
|
|
12440
|
+
hover: {
|
|
12441
|
+
...filled,
|
|
12442
|
+
effects: [{ effectId: "lift" }]
|
|
12443
|
+
},
|
|
12444
|
+
focus: {
|
|
12445
|
+
...filled,
|
|
12446
|
+
shadow: "focus-indicator"
|
|
12447
|
+
},
|
|
12448
|
+
active: {
|
|
12449
|
+
...filled,
|
|
12450
|
+
effects: [{
|
|
12451
|
+
effectId: "scale-down",
|
|
12452
|
+
options: { scale: "0.98" }
|
|
12453
|
+
}]
|
|
12454
|
+
},
|
|
12455
|
+
disabled: filled
|
|
12456
|
+
};
|
|
12457
|
+
const accent = {
|
|
12458
|
+
...filled,
|
|
12459
|
+
background: {
|
|
12460
|
+
type: "solid",
|
|
12461
|
+
colorToken: "accent"
|
|
12462
|
+
}
|
|
12463
|
+
};
|
|
12464
|
+
const accentStates = {
|
|
12465
|
+
base: accent,
|
|
12466
|
+
hover: {
|
|
12467
|
+
...accent,
|
|
12468
|
+
effects: [{ effectId: "lift" }]
|
|
12469
|
+
},
|
|
12470
|
+
focus: {
|
|
12471
|
+
...accent,
|
|
12472
|
+
shadow: "focus-indicator"
|
|
12473
|
+
},
|
|
12474
|
+
active: {
|
|
12475
|
+
...accent,
|
|
12476
|
+
effects: [{
|
|
12477
|
+
effectId: "scale-down",
|
|
12478
|
+
options: { scale: "0.98" }
|
|
12479
|
+
}]
|
|
12480
|
+
},
|
|
12481
|
+
disabled: accent
|
|
12482
|
+
};
|
|
12483
|
+
/** The quieter pill: an outline in the text colour, on whatever ground it sits. */
|
|
12484
|
+
const outlined = {
|
|
12485
|
+
...visual,
|
|
12486
|
+
background: {
|
|
12487
|
+
type: "surface",
|
|
12488
|
+
role: "link"
|
|
12489
|
+
},
|
|
12490
|
+
border: { widthClass: "border-2" },
|
|
12491
|
+
effects: []
|
|
12492
|
+
};
|
|
12493
|
+
const outlinedStates = {
|
|
12494
|
+
base: outlined,
|
|
12495
|
+
hover: {
|
|
12496
|
+
...outlined,
|
|
12497
|
+
effects: [{ effectId: "lift" }]
|
|
12498
|
+
},
|
|
12499
|
+
focus: {
|
|
12500
|
+
...outlined,
|
|
12501
|
+
shadow: "focus-indicator"
|
|
12502
|
+
},
|
|
12503
|
+
active: outlined,
|
|
12504
|
+
disabled: outlined
|
|
12505
|
+
};
|
|
12506
|
+
const ghost = {
|
|
12507
|
+
...outlined,
|
|
12508
|
+
border: "none"
|
|
12509
|
+
};
|
|
12510
|
+
const edgedPillRecipe = defineStaticButtonStyleRecipe({
|
|
12511
|
+
id: "edged-pill",
|
|
12512
|
+
accessibilityLabel: "Bold pill buttons with a thin edge",
|
|
12513
|
+
tags: {
|
|
12514
|
+
tone: "bold",
|
|
12515
|
+
energy: "vibrant",
|
|
12516
|
+
motion: "subtle",
|
|
12517
|
+
era: "modern"
|
|
12518
|
+
},
|
|
12519
|
+
system: { roles: {
|
|
12520
|
+
primary: { states: filledStates },
|
|
12521
|
+
secondary: { states: outlinedStates },
|
|
12522
|
+
outline: { states: outlinedStates },
|
|
12336
12523
|
ghost: { states: {
|
|
12337
12524
|
base: ghost,
|
|
12338
12525
|
hover: ghost,
|
|
@@ -12343,7 +12530,7 @@ const sewnLabelRecipe = defineStaticButtonStyleRecipe({
|
|
|
12343
12530
|
active: ghost,
|
|
12344
12531
|
disabled: ghost
|
|
12345
12532
|
} },
|
|
12346
|
-
accent: { states:
|
|
12533
|
+
accent: { states: accentStates }
|
|
12347
12534
|
} }
|
|
12348
12535
|
});
|
|
12349
12536
|
//#endregion
|
|
@@ -12823,7 +13010,8 @@ const BUTTON_STYLE_IDS = [
|
|
|
12823
13010
|
"gilt-slab",
|
|
12824
13011
|
"hairline-tab",
|
|
12825
13012
|
"marquee",
|
|
12826
|
-
"sewn-label"
|
|
13013
|
+
"sewn-label",
|
|
13014
|
+
"edged-pill"
|
|
12827
13015
|
];
|
|
12828
13016
|
const quietArrowParametersSchema = z.object({
|
|
12829
13017
|
secondaryTreatment: z.enum(["outlined", "solid-accent"]),
|
|
@@ -12873,7 +13061,8 @@ const buttonStyleSelectionSchema = z.discriminatedUnion("styleId", [
|
|
|
12873
13061
|
selectionBranch("gilt-slab", emptyParametersSchema),
|
|
12874
13062
|
selectionBranch("hairline-tab", emptyParametersSchema),
|
|
12875
13063
|
selectionBranch("marquee", emptyParametersSchema),
|
|
12876
|
-
selectionBranch("sewn-label", emptyParametersSchema)
|
|
13064
|
+
selectionBranch("sewn-label", emptyParametersSchema),
|
|
13065
|
+
selectionBranch("edged-pill", emptyParametersSchema)
|
|
12877
13066
|
]);
|
|
12878
13067
|
/**
|
|
12879
13068
|
* Stable identity for a validated style selection. Parsing first canonicalises
|
|
@@ -17067,7 +17256,8 @@ const buttonStyleRecipes = [
|
|
|
17067
17256
|
giltSlabRecipe,
|
|
17068
17257
|
hairlineTabRecipe,
|
|
17069
17258
|
marqueeRecipe,
|
|
17070
|
-
sewnLabelRecipe
|
|
17259
|
+
sewnLabelRecipe,
|
|
17260
|
+
edgedPillRecipe
|
|
17071
17261
|
];
|
|
17072
17262
|
const recipesById = new Map(buttonStyleRecipes.map((recipe) => [recipe.id, recipe]));
|
|
17073
17263
|
function findButtonStyleRecipe(id) {
|
|
@@ -17078,6 +17268,7 @@ function findButtonStyleRecipe(id) {
|
|
|
17078
17268
|
function resolveButtonStyleSelection(selection) {
|
|
17079
17269
|
switch (selection.styleId) {
|
|
17080
17270
|
case "sewn-label": return resolveButtonStyleRecipe(sewnLabelRecipe, selection.parameters);
|
|
17271
|
+
case "edged-pill": return resolveButtonStyleRecipe(edgedPillRecipe, selection.parameters);
|
|
17081
17272
|
case "soft-pill": return resolveButtonStyleRecipe(softPillRecipe, selection.parameters);
|
|
17082
17273
|
case "earth-pill": return resolveButtonStyleRecipe(earthPillRecipe, selection.parameters);
|
|
17083
17274
|
case "confident-chip": return resolveButtonStyleRecipe(confidentChipRecipe, selection.parameters);
|
|
@@ -18422,4 +18613,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
18422
18613
|
});
|
|
18423
18614
|
}
|
|
18424
18615
|
//#endregion
|
|
18425
|
-
export { headerInteractionPalettePair as $,
|
|
18616
|
+
export { headerInteractionPalettePair as $, parsePageSurfaceId as $i, surfaceForegroundStyle as $n, isArrangementMode as $r, backgroundColorStyle as $t, resolveButtonStyleSelection as A, getStripeMinimumChargeRequirement as Ai, safeTokenOr as An, asAppearancePresetId as Ar, NAV_LINK_BORDER_RADIUS_MAP as At, generateBaseInteractiveCSS as B, getBookingInstalmentPlanIntervalCount as Bi, resolveConcreteColorHex as Bn, asSiteStyleId as Br, INPUT_FONT_SIZE_MAP as Bt, FileTextIcon as C, SpinnerNode as Ci, resolveThemeColorReferenceValue as Cn, indexRenderableMediaAssets as Cr, logoSizePolicyValues as Ct, buttonStyleSelectionParameterValue as D, eventRegistrationErrors as Di, selectLogoVariant as Dn, skinBookingBarSchema as Dr, getComponentShadowVar as Dt, buttonStyleHoverPreferenceValue as E, eventRegistrationErrorEndsCommand as Ei, PUBLIC_BUTTON_ROLES as En, parseCanonicalMediaIdentifier as Er, getComponentBorderWidthPx as Et, buttonStyleSelectionsEqual as F, repriceBookingCollectionOptions as Fi, expandPalette as Fn, asDesignBoundaryId as Fr, navLinkHoverColorCandidate as Ft, containerStylesOverrideSchema as G, parseContentVersionId as Gi, _classPrivateFieldInitSpec as Gn, defineNoBlockDesignCapability as Gr, ACCORDION_TRIGGER_FONT_SCALE as Gt, parseThemeButtonVariantId as H, expectParsedBrandedId as Hi, buildThemeTokens as Hn, defineBlockDesignCapability as Hr, LABEL_FONT_SIZE_MAP as Ht, generateButtonActionLayoutCss as I, resolveAvailableBookingCollectionOptions as Ii, getTextColorForBackground as In, asDesignPageId as Ir, navLinkOwnsHoverForeground as It, sectionStylesOverrideSchema as J, parseEventOfferingId as Ji, DEFAULT_SURFACE_TEXT_COLOR as Jn, eyebrowTreatmentValues as Jr, ICON_SIZE_PX as Jt, corners as K, parseEditorClientId as Ki, featuresFromHex as Kn, designIssueSeverityForPolicy as Kr, ACCORDION_TRIGGER_LETTER_SPACING as Kt, generateButtonCss as L, resolveBookingCollectionOptionFacts as Li, compositeHex$1 as Ln, asDesignSystemTemplateId as Lr, navLinkOwnsUnderline as Lt, updateButtonStyleSelectionChoice as M, planCheckoutPaymentFlow as Mi, solveSurfaceInks as Mn, asBlockOrderIndex as Mr, NAV_LINK_PADDING_MAP as Mt, buttonStyleSelectionKey as N, planFlexibleBalanceCreditFirst as Ni, _classPrivateFieldGet2 as Nn, asBoundaryOptionId as Nr, NAV_LINK_PADDING_X_MAP as Nt, defaultButtonStyleSelectionFor as O, parseEventRegistrationErrorReason as Oi, surfaceToneFromForegroundToken as On, skinTokenCssVars as Or, parseBlockCustomCssRules as Ot, buttonStyleSelectionSchema as P, isBookingCollectionEquivalentToUpfront as Pi, _classPrivateFieldSet2 as Pn, asDesignBlockId as Pr, NAV_LINK_TEXT_SIZE_MAP as Pt, runtimeBoxBackgroundSchema as Q, parsePageId as Qi, surfaceForegroundInputFromResolved as Qn, introCompositionTreatmentValues as Qr, TokenResolver as Qt, generateDefaultButtonSystem as R, getBookingLaterInstalments as Ri, planForegroundHover as Rn, asLayoutVariantKey as Rr, navEffectPolicy as Rt, FileSpreadsheetIcon as S, parseColorTokenParts as Si, resolveOnColorForThemeToken as Sn, renderableMediaAssetSchema as Sr, deterministicLogoFactsForShape as St, PlusIcon as T, checkBrowserStripeKey as Ti, generateShadowValue as Tn, mediaIdentifierSchema as Tr, selectLogoAccommodation as Tt, parseThemeForPersistence as U, parseApiKeyId as Ui, defaultThemeTokens as Un, defineExactCatalog as Ur, ACCORDION_OPEN_ACCENT_THICKNESS as Ut, generateInteractiveChildInheritanceCSS as V, formatCurrencyAmount as Vi, resolveOpaqueSurfaceHex as Vn, assertNever as Vr, INPUT_SPACING_MAP as Vt, cardStylesOverrideSchema as W, parseContentEntryId as Wi, ORDINARY_TEXT_MIN_CONTRAST_RATIO as Wn, defineFrameCapability as Wr, ACCORDION_SPACING_MAP as Wt, boxBackgroundOverlaySchema as X, parseFormId as Xi, SURFACE_INK_CSS_VARS as Xn, flushPanelFrame as Xr, generateCardCss as Xt, themeSchema as Y, parseEventSeriesId as Yi, SURFACE_FOREGROUND_CSS_VARS as Yn, featureCardCompositionTreatmentValues as Yr, cardSurfacePaint as Yt, boxBackgroundSchema as Z, parseMediaAssetId as Zi, surfaceForegroundDeclarations as Zn, headingDecorationColorTokenValues as Zr, renderCssDeclarations as Zt, CirclePlusIcon as _, unsafeAsOpaqueButtonColourToken as _i, toAccessibleColorSurfaceIntent as _n, requirePaletteColorsFromEntries as _r, siteChromeBackgroundOverrideOwner as _t, ThemedDownloadLink as a, unsafeAsCustomerPassId as aa, requireNonEmptyReadonlyArray as ai, textColorValue as an, resolveCardRole as ar, renderHeaderPaintTargetRules as at, FileArchiveIcon as b, themeColorShadeSteps as bi, scrimTone as bn, runtimeMediaSchema as br, themeV2RuntimeStyleFieldNames as bt, isKnownIconName as c, unsafeAsPassId as ca, tileTreatmentValues as ci, opaqueSurfaceDeclarations as cn, cardRoleValues as cr, MQ_LG_UP as ct, resolveIconPickerPreset as d, unsafeAsSiteId as da, buildFontPreviewUrl as di, parseSurfaceTree as dn, hexColorSchema as dr, MQ_SM_UP as dt, parseSiteId as ea, makeBoundaryId as ei, borderColorStyle as en, surfaceForegroundValue as er, headerInteractionPaletteValues as et, SEMANTIC_ICON_DEFINITIONS as f, unsafeAsStorageBucketName as fa, buildGoogleFontFamilyQuery as fi, prepareThemeSurfaceRevision as fn, paletteColorEntries as fr, MQ_TABLET_ONLY as ft, CircleMinusIcon as g, VARIANT_ROLES as gi, surfaceTransportContext as gn, paletteValueKeySchema as gr, pageDesignEditorBackgroundOverrideOwner as gt, ChevronDownIcon as h, getSiteFontsStorageUrl as hi, surfaceDecorationColors as hn, paletteValueKey as hr, isThemeV2NormalEditorRawStylePath as ht, ThemedButtonSpecimen as i, unsafeAsAppointmentServiceId as ia, plainFrame as ii, textColorStyle as in, cardSystemDefinesRole as ir, getHeaderPaintTargets as it, updateButtonStyleHoverPreference as j, confirmationPaymentSchema as ji, surfaceInkPublication as jn, asBlockContentVersionId as jr, NAV_LINK_LETTER_SPACING_MAP as jt, findButtonStyleRecipe as k, checkoutCopy as ki, resolveSurfaceForeground as kn, arrangementModes as kr, parseCustomCssRules as kt, ICON_PICKER_PRESETS as l, unsafeAsPositiveByteCount as la, toNonEmptyReadonlyArray as li, contrastThresholdByPolicy as ln, cardVariantRoleValues as lr, MQ_MD_DOWN as lt, ArrowDownIcon as m, getFontWidthRange as mi, serializeSurfaceTree as mn, paletteModeSchema as mr, isThemeV2NormalEditorRawStyleFieldName as mt, ThemedButton as n, parseUserId as na, offeringsPreviewCompositionTreatmentValues as ni, mergeStyles as nn, surfaceInkDeclarations as nr, generateHeaderScrollTreatmentStyles as nt, getIconComponent as o, unsafeAsFormId as oa, sectionBackgroundPaintValues as oi, mapDrawingStyle as on, generateShadowValue$1 as or, BREAKPOINT_LG as ot, isSemanticIconId as p, unsafeAsStoragePath as pa, generateFontFaceCss as pi, resolveSurface as pn, paletteColorsSchema as pr, headerVariantValues as pt, headerPositioningValues as q, parseEditorSessionGeneration as qi, hexToRgb as qn, eventListTreatmentValues as qr, ICON_CONFIG as qt, ThemedButtonLink as r, unsafeAsAppointmentResourceId as ra, panelFrame as ri, rgbColorValue as rn, surfaceInkStyle as rr, generateMobileOverlayBackdropFilterFix as rt, getIconPickerOptionsForPreset as s, unsafeAsMediaAssetId as sa, testimonialsCompositionTreatmentValues as si, opaqueSurfaceContextFromTheme as sn, cardRoleSchema as sr, BREAKPOINT_XL as st, ThemedAuthoredButton as t, parseSiteTermsVersionId as ta, noHeadingDecoration as ti, cssVarValue as tn, surfaceForegroundValueWithOpacity as tr, headerInteractionQuietPalette as tt, isIconPickerPreset as u, unsafeAsPositiveSeconds as ua, visibleHeadingDecorationFamilyValues as ui, parseResolvedSurface as un, normalizeCardRole as ur, MQ_SM_DOWN as ut, ClockIcon as v, paletteTokenNameSchema as vi, gradientScrimSamples as vn, imageMediaSchema as vr, stripStaleTransitionStyleGroup as vt, MinusIcon as w, clsx as wi, resolveTokenOrCssColorValue as wn, resolveManagedMediaReference as wr, resolveBrandDisplay as wt, FileAudioIcon as x, parseBlockColorToken as xi, isCssColorLiteral as xn, buildRenderableMediaAssetIndex as xr, brandDisplayModeValues as xt, ExternalLinkIcon as y, parseThemeColorToken as yi, minimumScrimOpacity as yn, mediaSchema as yr, themeV2CompilerOwnedFieldNames as yt, generateEffectsCSS as z, validateBookingPaymentOptionKinds as zi, worstCaseGlassBackdrop as zn, asPageFlowPresetId as zr, FONT_WEIGHT_MAP$1 as zt };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Ts as Primitive, ks as cn } from "./previewSidebarNavigation-AXUj9-qQ.mjs";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
6
|
+
var NAME = "Separator";
|
|
7
|
+
var DEFAULT_ORIENTATION = "horizontal";
|
|
8
|
+
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
9
|
+
var Separator$1 = React$1.forwardRef((props, forwardedRef) => {
|
|
10
|
+
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
11
|
+
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
12
|
+
const semanticProps = decorative ? { role: "none" } : {
|
|
13
|
+
"aria-orientation": orientation === "vertical" ? orientation : void 0,
|
|
14
|
+
role: "separator"
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
17
|
+
"data-orientation": orientation,
|
|
18
|
+
...semanticProps,
|
|
19
|
+
...domProps,
|
|
20
|
+
ref: forwardedRef
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
Separator$1.displayName = NAME;
|
|
24
|
+
function isValidOrientation(orientation) {
|
|
25
|
+
return ORIENTATIONS.includes(orientation);
|
|
26
|
+
}
|
|
27
|
+
var Root = Separator$1;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../ui/src/separator.tsx
|
|
30
|
+
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx(Root, {
|
|
32
|
+
"data-slot": "separator",
|
|
33
|
+
decorative,
|
|
34
|
+
orientation,
|
|
35
|
+
className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ../editor/src/chrome/editorStatusDecision.ts
|
|
41
|
+
function decideEditorStatus(input) {
|
|
42
|
+
return {
|
|
43
|
+
primary: primaryStatus(input),
|
|
44
|
+
note: input.historyNote ?? null,
|
|
45
|
+
savedAt: input.lastSavedLabel
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function primaryStatus(input) {
|
|
49
|
+
if (input.attentionMessage) return {
|
|
50
|
+
kind: "error",
|
|
51
|
+
message: input.attentionMessage
|
|
52
|
+
};
|
|
53
|
+
const error = saveError(input);
|
|
54
|
+
if (error) return error;
|
|
55
|
+
if (input.status === "saving") return { kind: "saving" };
|
|
56
|
+
if (input.messageOverride) return {
|
|
57
|
+
kind: "message",
|
|
58
|
+
message: input.messageOverride
|
|
59
|
+
};
|
|
60
|
+
return input.messageVariant === "manual-save" ? manualSaveStatus(input) : publicationStatus(input);
|
|
61
|
+
}
|
|
62
|
+
function saveError(input) {
|
|
63
|
+
const failed = input.draftSyncState === "failed" || input.hasFailedSaves;
|
|
64
|
+
if (!failed && input.status !== "error") return null;
|
|
65
|
+
return {
|
|
66
|
+
kind: "error",
|
|
67
|
+
message: input.messageOverride || (failed ? "Couldn’t save. Try again" : "Save failed — some changes may not be saved.")
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function manualSaveStatus(input) {
|
|
71
|
+
return {
|
|
72
|
+
kind: "message",
|
|
73
|
+
message: input.draftSyncState === "pending" ? "Unsaved changes" : input.lastSavedLabel ? `Saved at ${input.lastSavedLabel}` : "No changes"
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function publicationStatus(input) {
|
|
77
|
+
const toolbar = input.toolbar;
|
|
78
|
+
if (toolbar?.publishedMessage && !toolbar.hasUnpublishedChanges) return {
|
|
79
|
+
kind: "message",
|
|
80
|
+
message: toolbar.publishedMessage
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
kind: "publication",
|
|
84
|
+
label: publicationLabel(toolbar?.currentStatus, toolbar?.hasUnpublishedChanges)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function publicationLabel(lifecycle, hasChanges) {
|
|
88
|
+
if ((lifecycle === "published" || lifecycle === "scheduled") && hasChanges) return "Unpublished changes";
|
|
89
|
+
return lifecycle === "published" ? "Published" : lifecycle === "scheduled" ? "Scheduled" : "Draft";
|
|
90
|
+
}
|
|
91
|
+
function formatEditorStatus(decision, size) {
|
|
92
|
+
const status = decision.primary;
|
|
93
|
+
switch (status.kind) {
|
|
94
|
+
case "error":
|
|
95
|
+
case "message": return status.message;
|
|
96
|
+
case "saving": return "Saving…";
|
|
97
|
+
case "publication": return size === "mobile" && status.label === "Unpublished changes" ? "Changes pending" : status.label;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { Separator as i, formatEditorStatus as n, publicationLabel as r, decideEditorStatus as t };
|
|
@@ -51981,4 +51981,4 @@ var lucide_react_exports = /* @__PURE__ */ __exportAll({
|
|
|
51981
51981
|
useLucideContext: () => useLucideContext
|
|
51982
51982
|
});
|
|
51983
51983
|
//#endregion
|
|
51984
|
-
export {
|
|
51984
|
+
export { Eye as $, MapPin as A, sameLocationSpatialPair as At, Image as B, projectPublicLocation as Bt, PanelBottom as C, Archive as Ct, Monitor as D, decideLocationSave as Dt, Mountain as E, decideLocationRelationship as Et, ListOrdered as F, locationAddressSchema as Ft, Highlighter as G, ImagePlus as H, toLocationCoordinates as Ht, Link as I, locationPinSchema as It, FileText as J, GripVertical as K, Link2 as L, locationValueSchema as Lt, LocateFixed as M, stableJsonStringify as Mt, LoaderCircle as N, decideLocationSourcePermission as Nt, Minus as O, editLocationValue as Ot, List as P, formatLocationAddress as Pt, FileArchive as Q, Italic as R, normalizeLocationAddressText as Rt, PanelTop as S, ArrowDown as St, Move as T, confirmLocationPair as Tt, ImageOff as U, asNonEmptyStringOrNull as Ut, ImageUp as V, publicLocationSchema as Vt, House as W, mapDrawingSchema as Wt, FilePlay as X, FileSpreadsheet as Y, FileHeadphone as Z, RotateCcw as _, Calendar as _t, Upload as a, Clock as at, Pencil as b, Bold as bt, Trash2 as c, CirclePlus as ct, Sparkles as d, CircleAlert as dt, EyeOff as et, Smartphone as f, ChevronUp as ft, Route as g, Check as gt, Search as h, ChevronDown as ht, Video as i, Copy as it, Lock as j, sameMeaningfulAddress as jt, Maximize2 as k, locationDistanceMetres as kt, Tablet as l, CircleMinus as lt, Settings as m, ChevronLeft as mt, X as n, Crosshair as nt, Undo2 as o, Clock3 as ot, SlidersHorizontal as p, ChevronRight as pt, File as q, WifiOff as r, Crop as rt, TriangleAlert as s, Circle as st, lucide_react_exports as t, EllipsisVertical as tt, Store as u, CircleCheck as ut, Redo2 as v, Building2 as vt, Palette as w, LOCATION_MATCH_THRESHOLDS_METRES as wt, PenLine as x, ArrowUp as xt, Plus as y, Box as yt, Info as z, parseLocationValue as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Bn as resolveSurfaceDocumentAttributes, Rn as SURFACE_DOCUMENT_DATA_ATTRIBUTE, ks as cn, n as usePreviewSidebarNavigation, nr as useEditorUiStoreInstance, zn as SURFACE_IDS } from "./previewSidebarNavigation-AXUj9-qQ.mjs";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../ui/src/fixed-bottom-surface.tsx
|
|
@@ -44,15 +44,58 @@ function FixedBottomSurface({ children, className, contentClassName, variant = "
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region ../editor/src/chrome/chromeLayers.ts
|
|
48
|
-
/** View-mode preview controls: above a site's floating bars, below its modal panel. */
|
|
49
|
-
const PREVIEW_CHROME_Z_INDEX = 13e3;
|
|
50
|
-
//#endregion
|
|
51
47
|
//#region ../preview-next/src/constants.ts
|
|
52
48
|
const PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
|
|
53
49
|
const PREVIEW_KEEP_ALIVE_INTERVAL_MS = 600 * 1e3;
|
|
54
50
|
const PREVIEW_KEEP_ALIVE_JITTER_RATIO = .1;
|
|
55
51
|
//#endregion
|
|
52
|
+
//#region ../preview-next/src/client/preview/previewThemeCookie.ts
|
|
53
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
54
|
+
function readPreviewThemeCookie() {
|
|
55
|
+
if (typeof document === "undefined") return null;
|
|
56
|
+
const entry = document.cookie.split("; ").find((cookie) => cookie.startsWith(`${PREVIEW_THEME_COOKIE_NAME}=`));
|
|
57
|
+
if (!entry) return null;
|
|
58
|
+
const value = entry.slice(17);
|
|
59
|
+
return value ? decodeURIComponent(value) : null;
|
|
60
|
+
}
|
|
61
|
+
/** Cookie writes are explicit preview choices; subscribers read the cookie itself, without a mirror. */
|
|
62
|
+
function writePreviewThemeCookie(themeId) {
|
|
63
|
+
if (typeof document === "undefined") return;
|
|
64
|
+
document.cookie = themeId ? `${PREVIEW_THEME_COOKIE_NAME}=${encodeURIComponent(themeId)}; path=/; SameSite=Lax` : `${PREVIEW_THEME_COOKIE_NAME}=; path=/; max-age=0; SameSite=Lax`;
|
|
65
|
+
listeners.forEach((listener) => listener());
|
|
66
|
+
}
|
|
67
|
+
function subscribePreviewThemeCookie(listener) {
|
|
68
|
+
listeners.add(listener);
|
|
69
|
+
return () => {
|
|
70
|
+
listeners.delete(listener);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../preview-next/src/client/blocks/useOpenBlockForSetup.ts
|
|
75
|
+
/**
|
|
76
|
+
* Opens a block in the sidebar, at the field that needs filling in when
|
|
77
|
+
* there's one. Every "Set up" button goes through here.
|
|
78
|
+
*/
|
|
79
|
+
function useOpenBlockForSetup() {
|
|
80
|
+
const navigation = usePreviewSidebarNavigation();
|
|
81
|
+
const uiStore = useEditorUiStoreInstance();
|
|
82
|
+
const open = (blockId) => navigation.openBlock(blockId);
|
|
83
|
+
const openField = (blockId, fieldPath) => {
|
|
84
|
+
open(blockId);
|
|
85
|
+
uiStore.getState().requestFocus({
|
|
86
|
+
kind: "main-field",
|
|
87
|
+
blockId,
|
|
88
|
+
fieldPath: fieldPath.startsWith("content.") ? fieldPath : `content.${fieldPath}`
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
const setUp = (blockId, repair) => repair.kind === "field" ? openField(blockId, repair.path) : open(blockId);
|
|
92
|
+
return {
|
|
93
|
+
open,
|
|
94
|
+
openField,
|
|
95
|
+
setUp
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
56
99
|
//#region ../preview-next/src/client/preview/previewChromeSurface.ts
|
|
57
100
|
const PREVIEW_CHROME_THEME_CLASS_NAME = "builder-dashboard-chrome-theme";
|
|
58
101
|
const PREVIEW_CHROME_PORTAL_CLASS_NAME = "builder-editor-chrome";
|
|
@@ -82,4 +125,4 @@ function applyPreviewChromeSurfaceToElement(element, surface, options) {
|
|
|
82
125
|
element.removeAttribute(SURFACE_DOCUMENT_DATA_ATTRIBUTE);
|
|
83
126
|
}
|
|
84
127
|
//#endregion
|
|
85
|
-
export { resolvePreviewChromeSurface as a,
|
|
128
|
+
export { resolvePreviewChromeSurface as a, subscribePreviewThemeCookie as c, PREVIEW_KEEP_ALIVE_JITTER_RATIO as d, FixedBottomSurface as f, getPreviewChromeSurfaceDataProps as i, writePreviewThemeCookie as l, PREVIEW_CHROME_THEME_CLASS_NAME as n, useOpenBlockForSetup as o, applyPreviewChromeSurfaceToElement as r, readPreviewThemeCookie as s, PREVIEW_CHROME_PORTAL_CLASS_NAME as t, PREVIEW_KEEP_ALIVE_INTERVAL_MS as u };
|