@riverbankcms/sdk 0.126.0 → 0.127.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/{PreviewEditorSidebar-DcYJxTgc.mjs → PreviewEditorSidebar-BXtfF7tp.mjs} +58 -38
- package/dist/{PreviewEditorUI-Ctt1yTJr.mjs → PreviewEditorUI-Dou73Q0K.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-CvW1vdQ4.mjs → SdkPreviewModeRuntime-B0HPXr-l.mjs} +119 -41
- package/dist/{SiteChromeCustomizeContext-C87qlKWw.mjs → SiteChromeCustomizeContext-DZiDBAYu.mjs} +9961 -9583
- package/dist/_dts/ai/src/contracts/proposals.d.ts +198 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -5
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +1 -0
- package/dist/_dts/blocks/src/index.d.ts +3 -2
- package/dist/_dts/blocks/src/lib/media.d.ts +267 -0
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +0 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +17 -0
- package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +143 -155
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +4 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +26 -0
- package/dist/_dts/editor-blocks/src/widgets/rich-text/imageInsert.d.ts +3 -3
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
- package/dist/_dts/media-editor/src/context.d.ts +1 -2
- package/dist/_dts/media-editor/src/index.d.ts +3 -1
- package/dist/_dts/media-editor/src/mediaSelection.d.ts +32 -0
- package/dist/_dts/media-editor/src/types.d.ts +3 -1
- package/dist/_dts/media-editor/src/useMediaSelection.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/HeaderMenuControls.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +12 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -49
- package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/previewThemeRoles.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +54 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +13 -3
- package/dist/_dts/preview-next/src/client/preview/siteChromeNavQuickControlHistory.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +6 -3
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +0 -18
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -3
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +20 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +14 -0
- package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +3 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +25 -0
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +11 -0
- package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +9 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +67 -19
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -51
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -11
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +3 -51
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +32 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +19 -106
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/lookOptionGroups.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +4 -22
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorOptions.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +4 -1
- package/dist/cli/index.mjs +973 -1081
- package/dist/client/{DiscountCodeDisclosure-DS0AuFWW.mjs → DiscountCodeDisclosure-BDFRp8Y7.mjs} +1 -1
- package/dist/client/{EventCombined.client-DtMxLr7q.mjs → EventCombined.client-DJgF1_lf.mjs} +2 -2
- package/dist/client/{EventListing.client-BdLSRNg1.mjs → EventListing.client-CnWGNjOr.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BrpC6vsT.mjs → LeafletStaticMap-BISs9Bl7.mjs} +1 -1
- package/dist/client/{MagicLinkForm-Bt3IuLMy.mjs → MagicLinkForm-b5E_HoG9.mjs} +1 -1
- package/dist/client/{StepIndicator-CBYPFVoy.mjs → StepIndicator-D8gVYkK-.mjs} +2 -2
- package/dist/client/{accordion-BqqwPJWM.mjs → accordion-DFDajgDz.mjs} +1 -1
- package/dist/client/{bookingForm-SneP3yxC.mjs → bookingForm-Bdqj9-52.mjs} +5 -5
- package/dist/client/bookings.mjs +126 -23
- package/dist/client/{carousel-BTIR9L3I.mjs → carousel-Cvqf-kN8.mjs} +1 -1
- package/dist/client/{cart-bqiqd8SX.mjs → cart-CuH2TJXP.mjs} +3 -3
- package/dist/client/{checkout-WbTFV5v4.mjs → checkout-CMNPpejZ.mjs} +3 -3
- package/dist/client/client.mjs +1227 -1209
- package/dist/client/{courseRegistration-BcemLAdN.mjs → courseRegistration-DTEYWL6Z.mjs} +6 -6
- package/dist/client/{eventCalendar-CsxIw0V_.mjs → eventCalendar-BW-XoxZ0.mjs} +4 -4
- package/dist/client/{eventCombined-B6XMoHfa.mjs → eventCombined-Bpn7s0y9.mjs} +2 -2
- package/dist/client/{eventDetails-BJaoPPfo.mjs → eventDetails-D2uUSTMH.mjs} +3 -3
- package/dist/client/{eventListing-DgwdYHRT.mjs → eventListing-CVr1c094.mjs} +2 -2
- package/dist/client/{eventRegistration-C0O3folu.mjs → eventRegistration-Dv4AvkMw.mjs} +6 -6
- package/dist/client/{form-Bk9txGFt.mjs → form-DxdKf9fs.mjs} +1 -1
- package/dist/client/{headerSection-yIBt0yTv.mjs → headerSection-BaXI5Sro.mjs} +2 -2
- package/dist/client/hooks.mjs +801 -874
- package/dist/client/{locationMap-C-3KIpv-.mjs → locationMap-BEtW2fKz.mjs} +2 -2
- package/dist/client/{newsletterForm-CzB8g8h2.mjs → newsletterForm-BKKs0S4R.mjs} +1 -1
- package/dist/client/{pricing-C1QeDes_.mjs → pricing-ClkqcElA.mjs} +1 -1
- package/dist/client/{productDetail-w7SBp5uc.mjs → productDetail-H-ru8dyy.mjs} +3 -3
- package/dist/client/{productList-D0tGKHGf.mjs → productList-Buyi5c0C.mjs} +3 -3
- package/dist/client/{propsDecoder-Bcin2DB3.mjs → propsDecoder-BF7i6Ijg.mjs} +127 -55
- package/dist/client/rendering/client.mjs +928 -916
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +1130 -1114
- package/dist/client/{scrollToBlock-h-o_STf_.mjs → scrollToBlock-D_7t8yWb.mjs} +1 -1
- package/dist/client/{shop-BGzmL8O_.mjs → shop-CF7SZQNX.mjs} +5 -5
- package/dist/client/{shop-commerce-lX8QxjX-.mjs → shop-commerce-DA7_Rq5p.mjs} +4 -4
- package/dist/client/{shop-commerce-store-CEurARtu.mjs → shop-commerce-store-BmLqW7Gh.mjs} +1 -1
- package/dist/client/{shopShared-DXxH8xxw.mjs → shopShared-WL-E1znM.mjs} +2 -2
- package/dist/client/{useEventFilters-B591g9vd.mjs → useEventFilters-rc8VLeLV.mjs} +2 -2
- package/dist/client/{usePolling-BvnChV4m.mjs → usePolling-1ncrfd4S.mjs} +2 -2
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-M__i3Jce.mjs → sdk-runtime-BnrCCFJq.mjs} +1 -1
- package/dist/{separator-VSlnI9bc.mjs → separator-CFvBx2yl.mjs} +1 -1
- package/dist/server/components.mjs +1302 -1350
- package/dist/server/config-validation.mjs +801 -874
- package/dist/server/config.mjs +801 -874
- package/dist/server/data.mjs +801 -874
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +1303 -1351
- package/dist/server/page-converter.mjs +801 -874
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1296 -1344
- package/dist/server/rendering.mjs +1302 -1350
- package/dist/server/routing.mjs +869 -895
- package/dist/server/server.mjs +802 -875
- package/dist/server/theme-bridge.mjs +151 -118
- package/dist/server/theme.mjs +111 -23
- package/package.json +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +0 -8
package/dist/client/{DiscountCodeDisclosure-DS0AuFWW.mjs → DiscountCodeDisclosure-BDFRp8Y7.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { X as themeButtonClassName } from "./propsDecoder-
|
|
2
|
+
import { X as themeButtonClassName } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
3
3
|
import { useId } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/api/types/discounts.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as clsx } from "./clsx-DgIEfj3H.mjs";
|
|
3
|
-
import { A as formatDate, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, L as getCardOrientation, N as formatEventPrice, R as getContainerClass, T as buildEventRuntimeFilters, U as getEventAvailability, V as resolveEventLinkProps, X as themeButtonClassName, yt as assertNever, z as groupEventsByDate } from "./propsDecoder-
|
|
4
|
-
import { a as EventCardClient, i as EventPaginatedListView, n as useEventPagination, o as EventFilters, r as toError, t as useEventFilters } from "./useEventFilters-
|
|
3
|
+
import { A as formatDate, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, L as getCardOrientation, N as formatEventPrice, R as getContainerClass, T as buildEventRuntimeFilters, U as getEventAvailability, V as resolveEventLinkProps, X as themeButtonClassName, yt as assertNever, z as groupEventsByDate } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
4
|
+
import { a as EventCardClient, i as EventPaginatedListView, n as useEventPagination, o as EventFilters, r as toError, t as useEventFilters } from "./useEventFilters-rc8VLeLV.mjs";
|
|
5
5
|
import { n as useBlockApi } from "./context-CJz1Vlsz.mjs";
|
|
6
6
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { T as buildEventRuntimeFilters } from "./propsDecoder-
|
|
3
|
-
import { i as EventPaginatedListView, n as useEventPagination, o as EventFilters, t as useEventFilters } from "./useEventFilters-
|
|
2
|
+
import { T as buildEventRuntimeFilters } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
3
|
+
import { i as EventPaginatedListView, n as useEventPagination, o as EventFilters, t as useEventFilters } from "./useEventFilters-rc8VLeLV.mjs";
|
|
4
4
|
import { useId, useMemo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { J as isRecord } from "./propsDecoder-
|
|
2
|
+
import { J as isRecord } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/shared/LeafletStaticMap.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { X as themeButtonClassName, yt as assertNever } from "./propsDecoder-
|
|
2
|
+
import { X as themeButtonClassName, yt as assertNever } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
3
3
|
import { n as useBlockApi } from "./context-CJz1Vlsz.mjs";
|
|
4
4
|
import { useEffect, useReducer, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DgIEfj3H.mjs";
|
|
2
|
-
import { Wt as formatCurrencyAmount } from "./propsDecoder-
|
|
3
|
-
import { a as CheckIcon } from "./scrollToBlock-
|
|
2
|
+
import { Wt as formatCurrencyAmount } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
3
|
+
import { a as CheckIcon } from "./scrollToBlock-D_7t8yWb.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/shared/utils/formatting.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
2
2
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
3
3
|
const decode = defineIslandPropsDecoder("accordion");
|
|
4
4
|
function parseDefaultValues(value) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as unsafeAsAppointmentResourceId, f as unsafeAsAppointmentServiceId, g as unsafeAsPassId, m as unsafeAsFormId, p as unsafeAsCustomerPassId } from "./colorStyles-BWpj_h4C.mjs";
|
|
3
|
-
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-
|
|
4
|
-
import { Ct as okWith, Et as addLocalScheduleDays, Nt as parseBookingLocalDate, Pt as resolveBookingTimeZoneId, Tt as reportWorkflowSuccess, Wt as formatCurrencyAmount, X as themeButtonClassName, _t as toSelectedCollectionOptionKind, at as formatBookingCentsAsCurrencyInput, bt as clearWorkflowFeedback, ct as getBookingServiceSlidingScale, dt as parseBookingCurrencyInputToCents, ft as prepareBookingSubmission, gt as resolveDefaultBookingServiceId, ht as resolveBookingSiteId, it as deriveBookingFormViewState, jt as formatLocalScheduleDate, kt as formatBookingInstant, lt as getBookingSuccessMessage, mt as resolveBookingPaymentStep, ot as formatBookingSubmissionPreparationError, pt as resolveAppointmentCheckoutVerificationState, rt as logger, st as getBookingRedirectStateFromLocation, t as defineIslandPropsDecoder, ut as isBookingServiceSlidingAmountInRange, vt as BOOKING_FORM_DATA_RESERVED_KEYS, wt as reportWorkflowError, xt as err, yt as assertNever } from "./propsDecoder-
|
|
3
|
+
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-1ncrfd4S.mjs";
|
|
4
|
+
import { Ct as okWith, Et as addLocalScheduleDays, Nt as parseBookingLocalDate, Pt as resolveBookingTimeZoneId, Tt as reportWorkflowSuccess, Wt as formatCurrencyAmount, X as themeButtonClassName, _t as toSelectedCollectionOptionKind, at as formatBookingCentsAsCurrencyInput, bt as clearWorkflowFeedback, ct as getBookingServiceSlidingScale, dt as parseBookingCurrencyInputToCents, ft as prepareBookingSubmission, gt as resolveDefaultBookingServiceId, ht as resolveBookingSiteId, it as deriveBookingFormViewState, jt as formatLocalScheduleDate, kt as formatBookingInstant, lt as getBookingSuccessMessage, mt as resolveBookingPaymentStep, ot as formatBookingSubmissionPreparationError, pt as resolveAppointmentCheckoutVerificationState, rt as logger, st as getBookingRedirectStateFromLocation, t as defineIslandPropsDecoder, ut as isBookingServiceSlidingAmountInRange, vt as BOOKING_FORM_DATA_RESERVED_KEYS, wt as reportWorkflowError, xt as err, yt as assertNever } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
5
5
|
import { n as useBlockApi, t as BlockApiProvider } from "./context-CJz1Vlsz.mjs";
|
|
6
6
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
7
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
8
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
9
|
-
import { n as SpinnerNode, t as StepIndicator } from "./StepIndicator-
|
|
7
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-D_7t8yWb.mjs";
|
|
8
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BDFRp8Y7.mjs";
|
|
9
|
+
import { n as SpinnerNode, t as StepIndicator } from "./StepIndicator-D8gVYkK-.mjs";
|
|
10
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
11
11
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
12
12
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -7475,8 +7475,6 @@ const VARIANT_ROLES = [
|
|
|
7475
7475
|
"secondary",
|
|
7476
7476
|
"outline",
|
|
7477
7477
|
"ghost",
|
|
7478
|
-
"link",
|
|
7479
|
-
"tertiary",
|
|
7480
7478
|
"accent"
|
|
7481
7479
|
];
|
|
7482
7480
|
/**
|
|
@@ -7485,7 +7483,7 @@ const VARIANT_ROLES = [
|
|
|
7485
7483
|
* IDs become class selectors, so keep the contract deliberately narrower than
|
|
7486
7484
|
* an arbitrary string and shared with every authoring/runtime boundary.
|
|
7487
7485
|
*/
|
|
7488
|
-
const buttonVariantIdSchema = z$1.string().min(1).max(50).regex(/^[a-z0-9-]+$/, "Button variant IDs may contain lowercase letters, numbers, and hyphens only");
|
|
7486
|
+
const buttonVariantIdSchema = z$1.string().min(1).max(50).regex(/^[a-z0-9-]+$/, "Button variant IDs may contain lowercase letters, numbers, and hyphens only").refine((value) => value !== "link" && value !== "tertiary", { message: "Retired button role IDs are not valid variant IDs" });
|
|
7489
7487
|
function parseOpaqueButtonColourToken(value) {
|
|
7490
7488
|
const token = parseThemeColorToken(value);
|
|
7491
7489
|
if (token === null) return null;
|
|
@@ -8000,7 +7998,7 @@ function canonicalPaletteHashInput(colors, mode) {
|
|
|
8000
7998
|
return `${mode}|${paletteColorFingerprint(colors)}`;
|
|
8001
7999
|
}
|
|
8002
8000
|
/**
|
|
8003
|
-
*
|
|
8001
|
+
* Stable curated-catalogue identity. Do not reorder roles: the order comes
|
|
8004
8002
|
* from PALETTE_TOKEN_NAMES through canonicalPaletteHashInput.
|
|
8005
8003
|
*/
|
|
8006
8004
|
function paletteValueKey(colors, mode) {
|
|
@@ -8993,6 +8991,60 @@ const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
|
|
|
8993
8991
|
* palette context and happens in `parseThemeColorReference`.
|
|
8994
8992
|
*/
|
|
8995
8993
|
const tokenOrCssColorValueSchema = z$1.string();
|
|
8994
|
+
const BREAKPOINT_LG = 1024;
|
|
8995
|
+
const BREAKPOINT_XL = 1280;
|
|
8996
|
+
const BREAKPOINT_LG_DOWN = BREAKPOINT_LG - 1;
|
|
8997
|
+
function mqUp(px) {
|
|
8998
|
+
return `(min-width: ${px}px)`;
|
|
8999
|
+
}
|
|
9000
|
+
function mqDown(px) {
|
|
9001
|
+
return `(max-width: ${px}px)`;
|
|
9002
|
+
}
|
|
9003
|
+
function mqBetween(minPx, maxPx) {
|
|
9004
|
+
return `${mqUp(minPx)} and ${mqDown(maxPx)}`;
|
|
9005
|
+
}
|
|
9006
|
+
mqUp(640);
|
|
9007
|
+
mqUp(768);
|
|
9008
|
+
mqUp(BREAKPOINT_LG);
|
|
9009
|
+
mqUp(BREAKPOINT_XL);
|
|
9010
|
+
mqDown(639);
|
|
9011
|
+
mqDown(767);
|
|
9012
|
+
mqDown(BREAKPOINT_LG_DOWN);
|
|
9013
|
+
mqBetween(640, BREAKPOINT_LG_DOWN);
|
|
9014
|
+
mqDown(640);
|
|
9015
|
+
mqDown(768);
|
|
9016
|
+
//#endregion
|
|
9017
|
+
//#region ../theme-core/src/header/scrollTreatment.ts
|
|
9018
|
+
const headerScrollTreatmentSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
9019
|
+
kind: z$1.literal("contrast-glass"),
|
|
9020
|
+
backgroundTone: z$1.enum(["light", "dark"])
|
|
9021
|
+
})]).optional();
|
|
9022
|
+
//#endregion
|
|
9023
|
+
//#region ../theme-core/src/header/containerSchema.ts
|
|
9024
|
+
const headerContainerSchema = z$1.object({
|
|
9025
|
+
rounded: z$1.enum([
|
|
9026
|
+
"none",
|
|
9027
|
+
"sm",
|
|
9028
|
+
"md",
|
|
9029
|
+
"lg",
|
|
9030
|
+
"xl",
|
|
9031
|
+
"2xl"
|
|
9032
|
+
]).default("xl"),
|
|
9033
|
+
border: z$1.boolean().default(true),
|
|
9034
|
+
shadow: z$1.boolean().default(true),
|
|
9035
|
+
padding: z$1.enum([
|
|
9036
|
+
"sm",
|
|
9037
|
+
"md",
|
|
9038
|
+
"lg"
|
|
9039
|
+
]).default("md"),
|
|
9040
|
+
tint: z$1.string().nullable().optional(),
|
|
9041
|
+
opacity: z$1.number().min(0).max(1).default(.12)
|
|
9042
|
+
}).optional();
|
|
9043
|
+
const headerInteractionPaletteSchema = z$1.enum([
|
|
9044
|
+
"primary",
|
|
9045
|
+
"secondary",
|
|
9046
|
+
"accent"
|
|
9047
|
+
]);
|
|
8996
9048
|
//#endregion
|
|
8997
9049
|
//#region ../theme-core/src/schema.ts
|
|
8998
9050
|
const axesSchema = z$1.object({
|
|
@@ -9402,25 +9454,6 @@ const navFontWeight = z$1.enum([
|
|
|
9402
9454
|
]);
|
|
9403
9455
|
const headerMaxWidth = z$1.enum(["container", "full"]);
|
|
9404
9456
|
const headerBarFrame = z$1.enum(["full-bleed", "inset-shell"]);
|
|
9405
|
-
const headerContainerSchema = z$1.object({
|
|
9406
|
-
rounded: z$1.enum([
|
|
9407
|
-
"none",
|
|
9408
|
-
"sm",
|
|
9409
|
-
"md",
|
|
9410
|
-
"lg",
|
|
9411
|
-
"xl",
|
|
9412
|
-
"2xl"
|
|
9413
|
-
]).default("xl"),
|
|
9414
|
-
border: z$1.boolean().default(true),
|
|
9415
|
-
shadow: z$1.boolean().default(true),
|
|
9416
|
-
padding: z$1.enum([
|
|
9417
|
-
"sm",
|
|
9418
|
-
"md",
|
|
9419
|
-
"lg"
|
|
9420
|
-
]).default("md"),
|
|
9421
|
-
tint: z$1.string().nullable().optional(),
|
|
9422
|
-
opacity: z$1.number().min(0).max(1).default(.12)
|
|
9423
|
-
}).optional();
|
|
9424
9457
|
const headerBorderSchema = componentBorderSchema.extend({ position: z$1.enum([
|
|
9425
9458
|
"bottom",
|
|
9426
9459
|
"top",
|
|
@@ -9547,6 +9580,7 @@ const headerSchema = z$1.object({
|
|
|
9547
9580
|
shrinkOnScroll: z$1.boolean(),
|
|
9548
9581
|
maxWidth: headerMaxWidth,
|
|
9549
9582
|
barFrame: headerBarFrame.optional(),
|
|
9583
|
+
scrollTreatment: headerScrollTreatmentSchema,
|
|
9550
9584
|
logoOverride: mediaSchema$1.nullable().optional(),
|
|
9551
9585
|
background: headerBackgroundSchema.default({
|
|
9552
9586
|
type: "color",
|
|
@@ -9559,6 +9593,7 @@ const headerSchema = z$1.object({
|
|
|
9559
9593
|
navFontRole: z$1.enum(["body", "heading"]).optional(),
|
|
9560
9594
|
navTypography: z$1.enum(["body", "heading"]).optional(),
|
|
9561
9595
|
navTextSize: navLinkStyleSchema.shape.textSize,
|
|
9596
|
+
interactionPalette: headerInteractionPaletteSchema.optional(),
|
|
9562
9597
|
navPlacement: z$1.enum(["end", "center"]).optional(),
|
|
9563
9598
|
container: headerContainerSchema,
|
|
9564
9599
|
border: headerBorderSchema,
|
|
@@ -9866,6 +9901,59 @@ function themeButtonClassName(spec) {
|
|
|
9866
9901
|
spec.extraClassName
|
|
9867
9902
|
].filter(Boolean).join(" ");
|
|
9868
9903
|
}
|
|
9904
|
+
shadeBackgroundEffect({
|
|
9905
|
+
id: "darken-background",
|
|
9906
|
+
name: "Darken on Hover",
|
|
9907
|
+
description: "Darkens the background color on hover",
|
|
9908
|
+
label: "Darken Amount (shade step)",
|
|
9909
|
+
shadeDirection: 1
|
|
9910
|
+
});
|
|
9911
|
+
shadeBackgroundEffect({
|
|
9912
|
+
id: "lighten-background",
|
|
9913
|
+
name: "Lighten on Hover",
|
|
9914
|
+
description: "Lightens the background color on hover",
|
|
9915
|
+
label: "Lighten Amount (shade step)",
|
|
9916
|
+
shadeDirection: -1
|
|
9917
|
+
});
|
|
9918
|
+
function shadeBackgroundEffect(config) {
|
|
9919
|
+
return {
|
|
9920
|
+
id: config.id,
|
|
9921
|
+
name: config.name,
|
|
9922
|
+
description: config.description,
|
|
9923
|
+
category: "background",
|
|
9924
|
+
pseudoElement: "none",
|
|
9925
|
+
applicableTo: ["button"],
|
|
9926
|
+
customizableOption: {
|
|
9927
|
+
name: "amount",
|
|
9928
|
+
type: "select",
|
|
9929
|
+
label: config.label,
|
|
9930
|
+
default: 100,
|
|
9931
|
+
options: [
|
|
9932
|
+
0,
|
|
9933
|
+
100,
|
|
9934
|
+
200,
|
|
9935
|
+
300,
|
|
9936
|
+
400,
|
|
9937
|
+
500,
|
|
9938
|
+
600,
|
|
9939
|
+
700,
|
|
9940
|
+
800,
|
|
9941
|
+
900
|
|
9942
|
+
]
|
|
9943
|
+
},
|
|
9944
|
+
isApplicable: (buttonConfig) => buttonConfig.background.type === "solid",
|
|
9945
|
+
generateCSS: ({ themeId, variantId, options, tokens, buttonConfig }) => {
|
|
9946
|
+
if (buttonConfig.background.type !== "solid") return "";
|
|
9947
|
+
const amount = (options.amount || 100) * config.shadeDirection;
|
|
9948
|
+
const baseToken = buttonConfig.background.colorToken ?? "primary-500";
|
|
9949
|
+
return `
|
|
9950
|
+
:where([data-theme-scope="${themeId}"]) .${variantId}:hover {
|
|
9951
|
+
background-color: ${tokens.getColor(tokens.adjustShade(baseToken, amount))};
|
|
9952
|
+
}
|
|
9953
|
+
`;
|
|
9954
|
+
}
|
|
9955
|
+
};
|
|
9956
|
+
}
|
|
9869
9957
|
buttonSizeNameSchema.options;
|
|
9870
9958
|
//#endregion
|
|
9871
9959
|
//#region ../theme-core/src/buttons/styles/domain.ts
|
|
@@ -14387,6 +14475,12 @@ const mediaBaseSchema = z.object({
|
|
|
14387
14475
|
poster: mediaPosterSchema.optional(),
|
|
14388
14476
|
transform: transformSchema.optional()
|
|
14389
14477
|
});
|
|
14478
|
+
/**
|
|
14479
|
+
* Canonical identifier carried by media values that are safe to persist.
|
|
14480
|
+
* Parsing trims boundary input so downstream writers cannot retain whitespace-only
|
|
14481
|
+
* identifiers or independently disagree about normalization.
|
|
14482
|
+
*/
|
|
14483
|
+
const mediaIdentifierSchema = z.string().trim().min(1).brand();
|
|
14390
14484
|
const imageMediaSchema = mediaBaseSchema.extend({ type: z.literal("image") });
|
|
14391
14485
|
const videoMediaSchema = mediaBaseSchema.extend({ type: z.literal("video") });
|
|
14392
14486
|
const audioMediaSchema = mediaBaseSchema.extend({ type: z.literal("audio") });
|
|
@@ -14401,6 +14495,15 @@ const mediaSchema = z.discriminatedUnion("type", [
|
|
|
14401
14495
|
spreadsheetMediaSchema,
|
|
14402
14496
|
archiveMediaSchema
|
|
14403
14497
|
]);
|
|
14498
|
+
const persistableMediaBaseSchema = mediaBaseSchema.extend({ identifier: mediaIdentifierSchema });
|
|
14499
|
+
z.discriminatedUnion("type", [
|
|
14500
|
+
persistableMediaBaseSchema.extend({ type: z.literal("image") }),
|
|
14501
|
+
persistableMediaBaseSchema.extend({ type: z.literal("video") }),
|
|
14502
|
+
persistableMediaBaseSchema.extend({ type: z.literal("audio") }),
|
|
14503
|
+
persistableMediaBaseSchema.extend({ type: z.literal("document") }),
|
|
14504
|
+
persistableMediaBaseSchema.extend({ type: z.literal("spreadsheet") }),
|
|
14505
|
+
persistableMediaBaseSchema.extend({ type: z.literal("archive") })
|
|
14506
|
+
]);
|
|
14404
14507
|
//#endregion
|
|
14405
14508
|
//#region ../blocks/src/system/manifest/richTextSchema.ts
|
|
14406
14509
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
2
2
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
3
3
|
import { n as normalizeCarouselProps, t as CarouselNodeClient } from "./carousel.client-CpwTUhIo.mjs";
|
|
4
4
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
3
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
2
|
+
import { t as CartController } from "./shop-commerce-DA7_Rq5p.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-WL-E1znM.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
3
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BF7i6Ijg.mjs";
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-DA7_Rq5p.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-WL-E1znM.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|