@riverbankcms/sdk 0.126.0 → 0.128.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-Dbvb7GIr.mjs} +64 -68
- package/dist/{PreviewEditorUI-Ctt1yTJr.mjs → PreviewEditorUI-e9O9l20X.mjs} +3 -3
- package/dist/{PreviewQueryProvider-DgFDIwvK.mjs → PreviewQueryProvider-B1kbhaJD.mjs} +1 -1
- package/dist/SdkPreviewModeRuntime-BZHt6e9w.mjs +11006 -0
- package/dist/{SiteChromeCustomizeContext-C87qlKWw.mjs → SiteChromeCustomizeContext-CvuGbHJX.mjs} +51247 -20733
- package/dist/_dts/ai/src/contracts/proposals.d.ts +486 -36
- package/dist/_dts/api/src/bookingClosures.d.ts +19 -3
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -3
- package/dist/_dts/api/src/bookingRecords.d.ts +0 -13
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/communications.d.ts +2 -1
- package/dist/_dts/api/src/contactFormSummary.d.ts +15 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -10
- package/dist/_dts/api/src/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/footerSettings.d.ts +11 -0
- package/dist/_dts/api/src/index.d.ts +2 -1
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +48 -0
- package/dist/_dts/api/src/participantMessaging.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +7 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +7 -5
- package/dist/_dts/api/src/siteOperations.d.ts +12 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +3 -2
- 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/client/form.d.ts +1 -0
- package/dist/_dts/blocks/src/client/newsletter-form.d.ts +1 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -8
- 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/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +41 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +14 -23
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +109 -23
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +0 -13
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -108
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -54
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +26 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- 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/newsletter-form.interactive.d.ts +29 -78
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +27 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +21 -0
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +3 -1
- package/dist/_dts/content-editor/src/FooterEngagementEditorFields.d.ts +31 -0
- package/dist/_dts/content-editor/src/FooterEngagementEditorPanel.d.ts +17 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +3 -0
- package/dist/_dts/content-editor/src/footerEngagementDraft.d.ts +57 -0
- package/dist/_dts/content-editor/src/footerEngagementEditor.d.ts +11 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +13 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- 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/content-editor/src/useFooterComposerState.d.ts +35 -0
- package/dist/_dts/core/src/footer-arrangement.d.ts +2 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +118 -0
- package/dist/_dts/core/src/footer-composition.d.ts +7 -116
- package/dist/_dts/core/src/footer-engagement.d.ts +30 -0
- package/dist/_dts/core/src/index.d.ts +4 -0
- package/dist/_dts/core/src/newsletter-signup-destination.d.ts +38 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +200 -159
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +72 -2
- package/dist/_dts/db/src/schemas/standard-contact.d.ts +114 -0
- 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/blocks/previewBatchLoaderParams.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/HeaderMenuControls.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -4
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +13 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +8 -4
- 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/preview-next/src/client/widgets/widgetOverrides.d.ts +6 -5
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +9 -0
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +3 -5
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +15 -3
- package/dist/_dts/sdk/src/client/combineAbortSignals.d.ts +2 -0
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -15
- package/dist/_dts/sdk/src/client/types.d.ts +10 -2
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +11 -0
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/event-registration-content.d.ts +16 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -15
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -18
- package/dist/_dts/sdk/src/public-api/teamMemberContracts.d.ts +17 -0
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +7 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/mediaAssets.d.ts +8 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +8 -1
- package/dist/_dts/site-commands/src/commands.d.ts +16 -2
- 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 +31 -0
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +11 -0
- package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +8 -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 +6272 -5706
- package/dist/client/{courseRegistration-BcemLAdN.mjs → CourseRegistrationWizard-xRmA7REV.mjs} +329 -49
- package/dist/client/{DiscountCodeDisclosure-DS0AuFWW.mjs → DiscountCodeDisclosure-B9vriL5C.mjs} +1 -1
- package/dist/client/{EventCombined.client-DtMxLr7q.mjs → EventCombined.client-BgVnVTlz.mjs} +2 -2
- package/dist/client/{EventListing.client-BdLSRNg1.mjs → EventListing.client-CqdsO7jO.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BrpC6vsT.mjs → LeafletStaticMap-CKPxot9M.mjs} +1 -1
- package/dist/client/{StepIndicator-CBYPFVoy.mjs → StepIndicator-DGCYuBJ1.mjs} +2 -2
- package/dist/client/{accordion-BqqwPJWM.mjs → accordion-BfN5Eqd-.mjs} +1 -1
- package/dist/client/{bookingForm-SneP3yxC.mjs → bookingForm-DOvCpBFP.mjs} +5 -5
- package/dist/client/bookings.mjs +126 -23
- package/dist/client/{carousel-BTIR9L3I.mjs → carousel-DPNmiH0f.mjs} +1 -1
- package/dist/client/{cart-bqiqd8SX.mjs → cart--egVXlrR.mjs} +3 -3
- package/dist/client/{checkout-WbTFV5v4.mjs → checkout-DywWtMcq.mjs} +3 -3
- package/dist/client/client.mjs +6111 -5794
- package/dist/client/courseRegistration-Dk9qFVwt.mjs +46 -0
- package/dist/client/{eventCalendar-CsxIw0V_.mjs → eventCalendar-Bkz2HjlS.mjs} +4 -4
- package/dist/client/{eventCombined-B6XMoHfa.mjs → eventCombined-D4kipYWg.mjs} +2 -2
- package/dist/client/{eventDetails-BJaoPPfo.mjs → eventDetails-Dz_5ix2Q.mjs} +56 -35
- package/dist/client/{eventListing-DgwdYHRT.mjs → eventListing-D0vm-zST.mjs} +2 -2
- package/dist/client/{eventRegistration-C0O3folu.mjs → eventRegistration-Cw1E4Q4p.mjs} +58 -6
- package/dist/client/{form-Bk9txGFt.mjs → form-C2Zf1n3K.mjs} +1 -1
- package/dist/client/{headerSection-yIBt0yTv.mjs → headerSection-CP05gzdc.mjs} +2 -2
- package/dist/client/hooks.mjs +1013 -935
- package/dist/client/{locationMap-C-3KIpv-.mjs → locationMap-Cl3x9PYJ.mjs} +2 -2
- package/dist/client/{newsletterForm-CzB8g8h2.mjs → newsletterForm-DyEJoClm.mjs} +26 -20
- package/dist/client/{pricing-C1QeDes_.mjs → pricing-DGuNR1W4.mjs} +1 -1
- package/dist/client/{productDetail-w7SBp5uc.mjs → productDetail-Cq-HrGew.mjs} +3 -3
- package/dist/client/{productList-D0tGKHGf.mjs → productList-DbB3jwqd.mjs} +3 -3
- package/dist/client/{propsDecoder-Bcin2DB3.mjs → propsDecoder-CiTuhUwY.mjs} +257 -142
- package/dist/client/rendering/client.mjs +1342 -1122
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +6622 -6321
- package/dist/client/{scrollToBlock-h-o_STf_.mjs → scrollToBlock-CShkRqab.mjs} +1 -1
- package/dist/client/{shop-BGzmL8O_.mjs → shop-Cu4Ib-ZA.mjs} +5 -5
- package/dist/client/{shop-commerce-lX8QxjX-.mjs → shop-commerce-BzpsOdh7.mjs} +4 -4
- package/dist/client/{shop-commerce-store-CEurARtu.mjs → shop-commerce-store-DaE7Fhj8.mjs} +1 -1
- package/dist/client/{shopShared-DXxH8xxw.mjs → shopShared-cF0c20vB.mjs} +2 -2
- package/dist/client/{useEventFilters-B591g9vd.mjs → useEventFilters-QZ3HMgaJ.mjs} +2 -2
- package/dist/client/{usePolling-BvnChV4m.mjs → usePolling-BKf0GcE-.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/{previewAuthStore-Dev9CdG9.mjs → previewAuthStore-BesgU5Xu.mjs} +1 -1
- package/dist/{sdk-runtime-M__i3Jce.mjs → sdk-runtime-Cn_QSCOg.mjs} +2 -2
- package/dist/{separator-VSlnI9bc.mjs → separator-CEoGABRc.mjs} +1 -1
- package/dist/server/components.mjs +1750 -1614
- package/dist/server/config-validation.mjs +1010 -935
- package/dist/server/config.mjs +1010 -935
- package/dist/server/data.mjs +1013 -935
- package/dist/server/index.mjs +40 -16
- package/dist/server/next.mjs +1790 -1632
- package/dist/server/page-converter.mjs +1012 -938
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1746 -1601
- package/dist/server/rendering.mjs +1759 -1615
- package/dist/server/routing.mjs +1123 -975
- package/dist/server/server.mjs +1053 -951
- package/dist/server/theme-bridge.mjs +151 -118
- package/dist/server/theme.mjs +111 -23
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-CvW1vdQ4.mjs +0 -39468
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +0 -8
- package/dist/client/MagicLinkForm-Bt3IuLMy.mjs +0 -327
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-CiTuhUwY.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-CiTuhUwY.mjs";
|
|
2
|
+
import { t as CartController } from "./shop-commerce-BzpsOdh7.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-cF0c20vB.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-CiTuhUwY.mjs";
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-BzpsOdh7.mjs";
|
|
3
|
+
import { t as mountShopBlockIsland } from "./shopShared-cF0c20vB.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|