@riverbankcms/sdk 0.60.16 → 0.62.4
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/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +59 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +101 -4
- package/dist/_dts/api/src/bookings.d.ts +2 -1
- package/dist/_dts/api/src/calendar.d.ts +11 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
- package/dist/_dts/api/src/endpoints.d.ts +206 -6
- package/dist/_dts/api/src/index.d.ts +9 -2
- package/dist/_dts/api/src/participantMessaging.d.ts +113 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
- package/dist/_dts/api/src/siteMembers.d.ts +10 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +76 -51
- package/dist/_dts/api/src/types.d.ts +3 -1
- package/dist/_dts/api/src/url.d.ts +3 -3
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +66 -62
- package/dist/_dts/blocks/src/lib/media.d.ts +60 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +0 -21
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +2 -6
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +0 -10
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +0 -10
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +15 -15
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +5 -10
- package/dist/_dts/blocks/src/system/blocks/embed.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +0 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +43 -27
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +24 -15
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +132 -12
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -10
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +2 -24
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +2 -3
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +0 -13
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +17 -17
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -10
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +16 -15
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -6
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +18 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +105 -0
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +29 -5
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/library/blogFeaturedPost.d.ts +0 -24
- package/dist/_dts/blocks/src/system/fragments/library/bodyCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/bookingForm.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/columnContent.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/ctaCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/faqAccordion.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/footerBottomText.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/formCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/formEmbed.d.ts +0 -18
- package/dist/_dts/blocks/src/system/fragments/library/headerCta.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heading.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/heroLayoutControls.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/image.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/newsletterCopy.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/quote.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/richText.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/singleButton.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/spinner.d.ts +0 -5
- package/dist/_dts/blocks/src/system/fragments/library/teamMember.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +0 -31
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsHeading.d.ts +0 -4
- package/dist/_dts/blocks/src/system/fragments/library/videoEmbed.d.ts +0 -6
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +11 -3
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +4 -0
- package/dist/_dts/blocks/src/system/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +10 -10
- package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +2 -2
- package/dist/_dts/content-model/src/referenceFields.d.ts +7 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +242 -6
- package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +9 -0
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +5 -1
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/media-core/src/videoSlotPolicy.d.ts +38 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
- package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +14 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +8 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +13 -2
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/prompt/examples/features-grid.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/prompt/examples/pricing.d.ts +5 -5
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
- package/dist/_dts/theme-core/src/schema.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +451 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +61 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +5 -563
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +448 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
- package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +6 -6
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +23 -5
- package/dist/_dts/theme-core/src/siteChrome.d.ts +53 -0
- package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
- package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
- package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
- package/dist/cli/index.mjs +5149 -3635
- package/dist/client/bookings.mjs +711 -560
- package/dist/client/client.mjs +10110 -8168
- package/dist/client/hooks.mjs +3861 -2739
- package/dist/client/rendering/client.mjs +8606 -7009
- package/dist/client/rendering/islands.mjs +25202 -23768
- package/dist/client/rendering.mjs +10661 -8713
- package/dist/preview-next/before-render.mjs +256 -6
- package/dist/preview-next/client/runtime.mjs +7700 -4016
- package/dist/preview-next/editor-base.css +31 -0
- package/dist/preview-next/middleware.mjs +267 -6
- package/dist/server/components.mjs +4501 -3270
- package/dist/server/config-validation.mjs +4089 -2967
- package/dist/server/config.mjs +4089 -2967
- package/dist/server/data.mjs +3861 -2739
- package/dist/server/index.mjs +322 -24
- package/dist/server/next.mjs +4274 -3041
- package/dist/server/page-converter.mjs +3520 -2717
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4500 -3270
- package/dist/server/rendering.mjs +4526 -3291
- package/dist/server/routing.mjs +4006 -2723
- package/dist/server/server.mjs +3897 -2772
- package/dist/server/theme-bridge.mjs +1435 -788
- package/dist/server/theme.mjs +628 -497
- package/dist/styles/index.css +61 -9
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
- package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
|
@@ -12,6 +12,7 @@ export * from "./responsive/breakpoints";
|
|
|
12
12
|
export { ThemeFontLoader, ThemeFontLoaderFromTheme, getThemeFontLoadingOptions, type ThemeFontLoadingOptions, type ThemeFontLoaderFromThemeProps, } from "./ThemeFontLoader";
|
|
13
13
|
export { ThemeScopeCore, type ThemeScopeCoreProps } from "./ThemeScopeCore";
|
|
14
14
|
export { type ThemeDataAttrs } from "./themeScopeUtils";
|
|
15
|
+
export { getStandaloneHeaderShellClassName, planSiteTopShell, renderSiteTopChrome, type SiteChromeLayoutNodes, type SiteTopShellPlan, type SiteTopShellBehavior, } from "./siteChrome";
|
|
15
16
|
export { buildThemeRuntime } from "./runtime/buildThemeRuntime";
|
|
16
17
|
export { buildThemeRuntimeFromBridge, type ThemeBridgeConfigMinimal, } from "./runtime/buildThemeRuntimeFromBridge";
|
|
17
18
|
export type { CornerStyle, ShadowSize, TextTransform, FontWeight, HoverTransform, HoverColor, GradientStyle, GradientSharpness, GradientDirection, ButtonVariant, ButtonSystem, } from "./buttons/types";
|
|
@@ -797,6 +797,7 @@ export declare const mockThemes: {
|
|
|
797
797
|
} | null | undefined;
|
|
798
798
|
spacing?: "none" | "compact" | "medium" | "spacious" | "comfortable" | "cozy" | null | undefined;
|
|
799
799
|
minHeight?: "none" | "hero" | "banner" | "immersive" | null | undefined;
|
|
800
|
+
tileTreatment?: "default" | "quiet" | "brand-depth" | null | undefined;
|
|
800
801
|
eyebrowTreatment?: "pill" | "plain" | "accent-pill" | "pill-bounce" | "accent-pill-bounce" | null | undefined;
|
|
801
802
|
} | null | undefined;
|
|
802
803
|
containerStyles?: {
|
|
@@ -1767,6 +1768,7 @@ export declare const mockThemes: {
|
|
|
1767
1768
|
} | null | undefined;
|
|
1768
1769
|
spacing?: "none" | "compact" | "medium" | "spacious" | "comfortable" | "cozy" | null | undefined;
|
|
1769
1770
|
minHeight?: "none" | "hero" | "banner" | "immersive" | null | undefined;
|
|
1771
|
+
tileTreatment?: "default" | "quiet" | "brand-depth" | null | undefined;
|
|
1770
1772
|
eyebrowTreatment?: "pill" | "plain" | "accent-pill" | "pill-bounce" | "accent-pill-bounce" | null | undefined;
|
|
1771
1773
|
} | null | undefined;
|
|
1772
1774
|
containerStyles?: {
|
|
@@ -2737,6 +2739,7 @@ export declare const mockThemes: {
|
|
|
2737
2739
|
} | null | undefined;
|
|
2738
2740
|
spacing?: "none" | "compact" | "medium" | "spacious" | "comfortable" | "cozy" | null | undefined;
|
|
2739
2741
|
minHeight?: "none" | "hero" | "banner" | "immersive" | null | undefined;
|
|
2742
|
+
tileTreatment?: "default" | "quiet" | "brand-depth" | null | undefined;
|
|
2740
2743
|
eyebrowTreatment?: "pill" | "plain" | "accent-pill" | "pill-bounce" | "accent-pill-bounce" | null | undefined;
|
|
2741
2744
|
} | null | undefined;
|
|
2742
2745
|
containerStyles?: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type StyleTags } from '../../site-styles/styleTags';
|
|
3
|
+
import { PALETTE_TOKEN_NAMES, paletteTokenNameSchema, type PaletteTokenName } from '../../tokens/themeColorTokens';
|
|
4
|
+
export { PALETTE_TOKEN_NAMES, paletteTokenNameSchema, type PaletteTokenName, };
|
|
3
5
|
/**
|
|
4
6
|
* Branded ID for a palette variant in the curated library. Shape matches the
|
|
5
7
|
* `Brand<T, TBrand>` convention in `site-styles/types.ts`. Use the helper at
|
|
@@ -10,27 +12,6 @@ export type PaletteVariantId<T extends string = string> = T & {
|
|
|
10
12
|
};
|
|
11
13
|
export declare function asPaletteVariantId<const T extends string>(value: T): PaletteVariantId<T>;
|
|
12
14
|
export declare const paletteVariantIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PaletteVariantId<string>, string>>;
|
|
13
|
-
/**
|
|
14
|
-
* Known palette role token names. Closed union so unknown tokens can't be
|
|
15
|
-
* persisted via `paletteOverrides`. Add a new role here intentionally.
|
|
16
|
-
*/
|
|
17
|
-
export declare const PALETTE_TOKEN_NAMES: readonly ["primary", "primaryForeground", "secondary", "accent", "success", "warning", "destructive", "background", "surface", "surfaceAlt", "muted", "text", "border"];
|
|
18
|
-
export type PaletteTokenName = (typeof PALETTE_TOKEN_NAMES)[number];
|
|
19
|
-
export declare const paletteTokenNameSchema: z.ZodEnum<{
|
|
20
|
-
success: "success";
|
|
21
|
-
text: "text";
|
|
22
|
-
surface: "surface";
|
|
23
|
-
warning: "warning";
|
|
24
|
-
border: "border";
|
|
25
|
-
background: "background";
|
|
26
|
-
primary: "primary";
|
|
27
|
-
secondary: "secondary";
|
|
28
|
-
primaryForeground: "primaryForeground";
|
|
29
|
-
accent: "accent";
|
|
30
|
-
destructive: "destructive";
|
|
31
|
-
surfaceAlt: "surfaceAlt";
|
|
32
|
-
muted: "muted";
|
|
33
|
-
}>;
|
|
34
15
|
export type HexColor = string & {
|
|
35
16
|
readonly __brand: 'HexColor';
|
|
36
17
|
};
|
|
@@ -176,6 +176,11 @@ export declare const sectionStylesOverrideSchema: z.ZodObject<{
|
|
|
176
176
|
banner: "banner";
|
|
177
177
|
immersive: "immersive";
|
|
178
178
|
}>>>;
|
|
179
|
+
tileTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
180
|
+
default: "default";
|
|
181
|
+
quiet: "quiet";
|
|
182
|
+
"brand-depth": "brand-depth";
|
|
183
|
+
}>>>;
|
|
179
184
|
eyebrowTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
180
185
|
pill: "pill";
|
|
181
186
|
plain: "plain";
|
|
@@ -479,6 +484,11 @@ declare const blockStyleOverridesSchema: z.ZodObject<{
|
|
|
479
484
|
banner: "banner";
|
|
480
485
|
immersive: "immersive";
|
|
481
486
|
}>>>;
|
|
487
|
+
tileTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
488
|
+
default: "default";
|
|
489
|
+
quiet: "quiet";
|
|
490
|
+
"brand-depth": "brand-depth";
|
|
491
|
+
}>>>;
|
|
482
492
|
eyebrowTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
483
493
|
pill: "pill";
|
|
484
494
|
plain: "plain";
|
|
@@ -811,6 +821,11 @@ declare const blockThemeOverrideSchema: z.ZodObject<{
|
|
|
811
821
|
banner: "banner";
|
|
812
822
|
immersive: "immersive";
|
|
813
823
|
}>>>;
|
|
824
|
+
tileTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
825
|
+
default: "default";
|
|
826
|
+
quiet: "quiet";
|
|
827
|
+
"brand-depth": "brand-depth";
|
|
828
|
+
}>>>;
|
|
814
829
|
eyebrowTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
815
830
|
pill: "pill";
|
|
816
831
|
plain: "plain";
|
|
@@ -4323,6 +4338,11 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
4323
4338
|
banner: "banner";
|
|
4324
4339
|
immersive: "immersive";
|
|
4325
4340
|
}>>>;
|
|
4341
|
+
tileTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4342
|
+
default: "default";
|
|
4343
|
+
quiet: "quiet";
|
|
4344
|
+
"brand-depth": "brand-depth";
|
|
4345
|
+
}>>>;
|
|
4326
4346
|
eyebrowTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4327
4347
|
pill: "pill";
|
|
4328
4348
|
plain: "plain";
|
|
@@ -6400,6 +6420,11 @@ export declare const themesTurnSchema: z.ZodObject<{
|
|
|
6400
6420
|
banner: "banner";
|
|
6401
6421
|
immersive: "immersive";
|
|
6402
6422
|
}>>>;
|
|
6423
|
+
tileTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6424
|
+
default: "default";
|
|
6425
|
+
quiet: "quiet";
|
|
6426
|
+
"brand-depth": "brand-depth";
|
|
6427
|
+
}>>>;
|
|
6403
6428
|
eyebrowTreatment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6404
6429
|
pill: "pill";
|
|
6405
6430
|
plain: "plain";
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import type { AppearancePresetTarget, BlockAppearancePreset } from './appearancePresetTypes';
|
|
2
|
+
export declare const appearancePresets: readonly [{
|
|
3
|
+
readonly kind: "block-design";
|
|
4
|
+
readonly id: "hero-immersive-image";
|
|
5
|
+
readonly target: "hero";
|
|
6
|
+
readonly label: "Immersive image hero";
|
|
7
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
8
|
+
readonly constraints: {
|
|
9
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
10
|
+
};
|
|
11
|
+
readonly design: {
|
|
12
|
+
readonly sectionSurface: "hero-image";
|
|
13
|
+
readonly contentFrame: {
|
|
14
|
+
readonly kind: "plain";
|
|
15
|
+
};
|
|
16
|
+
readonly itemSurface: "none";
|
|
17
|
+
readonly transitionAfter: "soft-fade-short";
|
|
18
|
+
readonly emphasis: "high";
|
|
19
|
+
readonly sectionHeight: "hero";
|
|
20
|
+
readonly imageSurfaceTreatment: {
|
|
21
|
+
readonly kind: "neutral-wash";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
readonly kind: "block-design";
|
|
26
|
+
readonly id: "hero-brand-scrim";
|
|
27
|
+
readonly target: "hero";
|
|
28
|
+
readonly label: "Brand scrim image hero";
|
|
29
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
30
|
+
readonly constraints: {
|
|
31
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
32
|
+
};
|
|
33
|
+
readonly optionGroups: readonly [{
|
|
34
|
+
readonly id: "image-surface-treatment";
|
|
35
|
+
readonly label: "Treatment";
|
|
36
|
+
readonly selectedOptionId: "brand-scrim-primary";
|
|
37
|
+
readonly options: readonly [{
|
|
38
|
+
readonly id: "brand-scrim-primary";
|
|
39
|
+
readonly label: "Brand scrim";
|
|
40
|
+
readonly designPatch: {
|
|
41
|
+
readonly imageSurfaceTreatment: {
|
|
42
|
+
readonly kind: "brand-scrim";
|
|
43
|
+
readonly token: "primary";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
readonly id: "neutral-scrim";
|
|
48
|
+
readonly label: "Neutral scrim";
|
|
49
|
+
readonly designPatch: {
|
|
50
|
+
readonly imageSurfaceTreatment: {
|
|
51
|
+
readonly kind: "neutral-scrim";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}];
|
|
55
|
+
}];
|
|
56
|
+
readonly layoutPatches: readonly [{
|
|
57
|
+
readonly constraints: {
|
|
58
|
+
readonly layoutVariantKeys: readonly ["micro"];
|
|
59
|
+
};
|
|
60
|
+
readonly designPatch: {
|
|
61
|
+
readonly sectionHeight: "banner";
|
|
62
|
+
};
|
|
63
|
+
}];
|
|
64
|
+
readonly design: {
|
|
65
|
+
readonly sectionSurface: "hero-image";
|
|
66
|
+
readonly contentFrame: {
|
|
67
|
+
readonly kind: "plain";
|
|
68
|
+
};
|
|
69
|
+
readonly itemSurface: "none";
|
|
70
|
+
readonly transitionAfter: "soft-fade-short";
|
|
71
|
+
readonly emphasis: "high";
|
|
72
|
+
readonly sectionHeight: "immersive";
|
|
73
|
+
readonly imageSurfaceTreatment: {
|
|
74
|
+
readonly kind: "brand-scrim";
|
|
75
|
+
readonly token: "primary";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
readonly kind: "block-design";
|
|
80
|
+
readonly id: "hero-brand-scrim-fixed-frame";
|
|
81
|
+
readonly target: "hero";
|
|
82
|
+
readonly label: "Fixed-frame brand scrim hero";
|
|
83
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
84
|
+
readonly constraints: {
|
|
85
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
86
|
+
};
|
|
87
|
+
readonly optionGroups: readonly [{
|
|
88
|
+
readonly id: "image-surface-treatment";
|
|
89
|
+
readonly label: "Treatment";
|
|
90
|
+
readonly selectedOptionId: "brand-scrim-primary";
|
|
91
|
+
readonly options: readonly [{
|
|
92
|
+
readonly id: "brand-scrim-primary";
|
|
93
|
+
readonly label: "Brand scrim";
|
|
94
|
+
readonly designPatch: {
|
|
95
|
+
readonly imageSurfaceTreatment: {
|
|
96
|
+
readonly kind: "brand-scrim";
|
|
97
|
+
readonly token: "primary";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
readonly id: "neutral-scrim";
|
|
102
|
+
readonly label: "Neutral scrim";
|
|
103
|
+
readonly designPatch: {
|
|
104
|
+
readonly imageSurfaceTreatment: {
|
|
105
|
+
readonly kind: "neutral-scrim";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}];
|
|
109
|
+
}];
|
|
110
|
+
readonly layoutPatches: readonly [{
|
|
111
|
+
readonly constraints: {
|
|
112
|
+
readonly layoutVariantKeys: readonly ["micro"];
|
|
113
|
+
};
|
|
114
|
+
readonly designPatch: {
|
|
115
|
+
readonly sectionHeight: "banner";
|
|
116
|
+
};
|
|
117
|
+
}];
|
|
118
|
+
readonly design: {
|
|
119
|
+
readonly sectionSurface: "hero-image";
|
|
120
|
+
readonly contentFrame: {
|
|
121
|
+
readonly kind: "plain";
|
|
122
|
+
};
|
|
123
|
+
readonly itemSurface: "none";
|
|
124
|
+
readonly transitionAfter: "soft-fade-short";
|
|
125
|
+
readonly emphasis: "high";
|
|
126
|
+
readonly sectionHeight: "immersive";
|
|
127
|
+
readonly imageSurfaceTreatment: {
|
|
128
|
+
readonly kind: "brand-scrim";
|
|
129
|
+
readonly token: "primary";
|
|
130
|
+
};
|
|
131
|
+
readonly imageSurfaceMotion: "fixed-frame";
|
|
132
|
+
readonly eyebrowTreatment: "accent-pill-bounce";
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
readonly kind: "block-design";
|
|
136
|
+
readonly id: "hero-brand-depth-expressive";
|
|
137
|
+
readonly target: "hero";
|
|
138
|
+
readonly label: "Expressive brand-depth hero";
|
|
139
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
140
|
+
readonly constraints: {
|
|
141
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
142
|
+
};
|
|
143
|
+
readonly design: {
|
|
144
|
+
readonly sectionSurface: "brand-depth-band";
|
|
145
|
+
readonly contentFrame: {
|
|
146
|
+
readonly kind: "plain";
|
|
147
|
+
};
|
|
148
|
+
readonly itemSurface: "none";
|
|
149
|
+
readonly transitionAfter: "soft-fade-short";
|
|
150
|
+
readonly emphasis: "high";
|
|
151
|
+
readonly eyebrowTreatment: "accent-pill-bounce";
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
readonly kind: "block-design";
|
|
155
|
+
readonly id: "hero-contained-intro";
|
|
156
|
+
readonly target: "hero";
|
|
157
|
+
readonly label: "Contained intro hero";
|
|
158
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
159
|
+
readonly design: {
|
|
160
|
+
readonly sectionSurface: "muted-band";
|
|
161
|
+
readonly contentFrame: Readonly<{
|
|
162
|
+
kind: "panel";
|
|
163
|
+
treatment: "inset";
|
|
164
|
+
}>;
|
|
165
|
+
readonly itemSurface: "none";
|
|
166
|
+
readonly transitionAfter: "none";
|
|
167
|
+
readonly emphasis: "high";
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
readonly kind: "block-design";
|
|
171
|
+
readonly id: "body-text-editorial-intro";
|
|
172
|
+
readonly target: "body-text";
|
|
173
|
+
readonly label: "Editorial intro copy";
|
|
174
|
+
readonly blockKinds: readonly ["block.body-text"];
|
|
175
|
+
readonly design: {
|
|
176
|
+
readonly sectionSurface: "base";
|
|
177
|
+
readonly contentFrame: {
|
|
178
|
+
readonly kind: "plain";
|
|
179
|
+
};
|
|
180
|
+
readonly itemSurface: "none";
|
|
181
|
+
readonly transitionAfter: "soft-fade-short";
|
|
182
|
+
readonly emphasis: "high";
|
|
183
|
+
};
|
|
184
|
+
}, {
|
|
185
|
+
readonly kind: "block-design";
|
|
186
|
+
readonly id: "body-text-brand-depth-intro";
|
|
187
|
+
readonly target: "body-text";
|
|
188
|
+
readonly label: "Brand-depth intro copy";
|
|
189
|
+
readonly blockKinds: readonly ["block.body-text"];
|
|
190
|
+
readonly design: {
|
|
191
|
+
readonly sectionSurface: "brand-depth-band";
|
|
192
|
+
readonly contentFrame: {
|
|
193
|
+
readonly kind: "plain";
|
|
194
|
+
};
|
|
195
|
+
readonly itemSurface: "none";
|
|
196
|
+
readonly transitionAfter: "soft-fade-short";
|
|
197
|
+
readonly emphasis: "high";
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
readonly kind: "block-design";
|
|
201
|
+
readonly id: "offerings-calm-list";
|
|
202
|
+
readonly target: "offerings";
|
|
203
|
+
readonly label: "Calm offerings list";
|
|
204
|
+
readonly blockKinds: readonly ["block.event-listing", "block.event-calendar", "block.event-spotlight", "block.product-list"];
|
|
205
|
+
readonly design: {
|
|
206
|
+
readonly sectionSurface: "muted-band";
|
|
207
|
+
readonly contentFrame: {
|
|
208
|
+
readonly kind: "plain";
|
|
209
|
+
};
|
|
210
|
+
readonly itemSurface: "none";
|
|
211
|
+
readonly transitionAfter: "soft-fade-short";
|
|
212
|
+
readonly emphasis: "medium";
|
|
213
|
+
};
|
|
214
|
+
}, {
|
|
215
|
+
readonly kind: "block-design";
|
|
216
|
+
readonly id: "events-base-calendar";
|
|
217
|
+
readonly target: "events";
|
|
218
|
+
readonly label: "Base event calendar";
|
|
219
|
+
readonly blockKinds: readonly ["block.event-calendar", "block.event-listing"];
|
|
220
|
+
readonly design: {
|
|
221
|
+
readonly sectionSurface: "base";
|
|
222
|
+
readonly contentFrame: {
|
|
223
|
+
readonly kind: "plain";
|
|
224
|
+
};
|
|
225
|
+
readonly itemSurface: "none";
|
|
226
|
+
readonly transitionAfter: "none";
|
|
227
|
+
readonly emphasis: "medium";
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
readonly kind: "block-design";
|
|
231
|
+
readonly id: "schedule-details-accent-section";
|
|
232
|
+
readonly target: "events";
|
|
233
|
+
readonly label: "Accent schedule details";
|
|
234
|
+
readonly blockKinds: readonly ["block.event-details", "block.course-details"];
|
|
235
|
+
readonly design: {
|
|
236
|
+
readonly sectionSurface: "accent-band";
|
|
237
|
+
readonly contentFrame: {
|
|
238
|
+
readonly kind: "plain";
|
|
239
|
+
};
|
|
240
|
+
readonly itemSurface: "none";
|
|
241
|
+
readonly transitionAfter: "none";
|
|
242
|
+
readonly emphasis: "medium";
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
readonly kind: "block-design";
|
|
246
|
+
readonly id: "schedule-details-brand-depth";
|
|
247
|
+
readonly target: "events";
|
|
248
|
+
readonly label: "Brand-depth schedule details";
|
|
249
|
+
readonly blockKinds: readonly ["block.event-details", "block.course-details"];
|
|
250
|
+
readonly design: {
|
|
251
|
+
readonly sectionSurface: "brand-depth-band";
|
|
252
|
+
readonly contentFrame: {
|
|
253
|
+
readonly kind: "plain";
|
|
254
|
+
};
|
|
255
|
+
readonly itemSurface: "none";
|
|
256
|
+
readonly transitionAfter: "none";
|
|
257
|
+
readonly emphasis: "medium";
|
|
258
|
+
readonly tileTreatment: "brand-depth";
|
|
259
|
+
};
|
|
260
|
+
}, {
|
|
261
|
+
readonly kind: "block-design";
|
|
262
|
+
readonly id: "media-text-flush-feature";
|
|
263
|
+
readonly target: "media-text";
|
|
264
|
+
readonly label: "Flush media feature";
|
|
265
|
+
readonly blockKinds: readonly ["block.media-text"];
|
|
266
|
+
readonly design: {
|
|
267
|
+
readonly sectionSurface: "muted-band";
|
|
268
|
+
readonly contentFrame: Readonly<{
|
|
269
|
+
kind: "flush-panel";
|
|
270
|
+
treatment: import("@riverbankcms/blocks").FlushFrameTreatment;
|
|
271
|
+
bleed: "start";
|
|
272
|
+
}>;
|
|
273
|
+
readonly itemSurface: "none";
|
|
274
|
+
readonly transitionAfter: "none";
|
|
275
|
+
readonly emphasis: "high";
|
|
276
|
+
};
|
|
277
|
+
}, {
|
|
278
|
+
readonly kind: "block-design";
|
|
279
|
+
readonly id: "media-text-quiet-story";
|
|
280
|
+
readonly target: "media-text";
|
|
281
|
+
readonly label: "Quiet media story";
|
|
282
|
+
readonly blockKinds: readonly ["block.media-text"];
|
|
283
|
+
readonly design: {
|
|
284
|
+
readonly sectionSurface: "base";
|
|
285
|
+
readonly contentFrame: {
|
|
286
|
+
readonly kind: "plain";
|
|
287
|
+
};
|
|
288
|
+
readonly itemSurface: "none";
|
|
289
|
+
readonly transitionAfter: "soft-fade-short";
|
|
290
|
+
readonly emphasis: "medium";
|
|
291
|
+
};
|
|
292
|
+
}, {
|
|
293
|
+
readonly kind: "block-design";
|
|
294
|
+
readonly id: "testimonials-carded-proof";
|
|
295
|
+
readonly target: "testimonials";
|
|
296
|
+
readonly label: "Carded social proof";
|
|
297
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
298
|
+
readonly design: {
|
|
299
|
+
readonly sectionSurface: "base";
|
|
300
|
+
readonly contentFrame: {
|
|
301
|
+
readonly kind: "plain";
|
|
302
|
+
};
|
|
303
|
+
readonly itemSurface: "default";
|
|
304
|
+
readonly transitionAfter: "none";
|
|
305
|
+
readonly emphasis: "medium";
|
|
306
|
+
};
|
|
307
|
+
}, {
|
|
308
|
+
readonly kind: "block-design";
|
|
309
|
+
readonly id: "testimonials-contained-proof";
|
|
310
|
+
readonly target: "testimonials";
|
|
311
|
+
readonly label: "Contained social proof";
|
|
312
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
313
|
+
readonly design: {
|
|
314
|
+
readonly sectionSurface: "muted-band";
|
|
315
|
+
readonly contentFrame: Readonly<{
|
|
316
|
+
kind: "panel";
|
|
317
|
+
treatment: "raised";
|
|
318
|
+
}>;
|
|
319
|
+
readonly itemSurface: "raised";
|
|
320
|
+
readonly transitionAfter: "soft-fade-short";
|
|
321
|
+
readonly emphasis: "high";
|
|
322
|
+
};
|
|
323
|
+
}, {
|
|
324
|
+
readonly kind: "block-design";
|
|
325
|
+
readonly id: "testimonials-dark-proof";
|
|
326
|
+
readonly target: "testimonials";
|
|
327
|
+
readonly label: "Dark proof panel";
|
|
328
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
329
|
+
readonly design: {
|
|
330
|
+
readonly sectionSurface: "accent-band";
|
|
331
|
+
readonly contentFrame: Readonly<{
|
|
332
|
+
kind: "panel";
|
|
333
|
+
treatment: "raised";
|
|
334
|
+
}>;
|
|
335
|
+
readonly itemSurface: "raised";
|
|
336
|
+
readonly transitionAfter: "soft-fade-short";
|
|
337
|
+
readonly emphasis: "high";
|
|
338
|
+
};
|
|
339
|
+
}, {
|
|
340
|
+
readonly kind: "block-design";
|
|
341
|
+
readonly id: "testimonials-accent-quote-proof";
|
|
342
|
+
readonly target: "testimonials";
|
|
343
|
+
readonly label: "Accent quote proof";
|
|
344
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
345
|
+
readonly design: {
|
|
346
|
+
readonly sectionSurface: "accent-band";
|
|
347
|
+
readonly contentFrame: {
|
|
348
|
+
readonly kind: "plain";
|
|
349
|
+
};
|
|
350
|
+
readonly itemSurface: "raised";
|
|
351
|
+
readonly transitionAfter: "soft-fade-short";
|
|
352
|
+
readonly emphasis: "high";
|
|
353
|
+
readonly testimonialCardTreatment: "accent-quote";
|
|
354
|
+
};
|
|
355
|
+
}, {
|
|
356
|
+
readonly kind: "block-design";
|
|
357
|
+
readonly id: "faq-base-accordion";
|
|
358
|
+
readonly target: "faq";
|
|
359
|
+
readonly label: "Base accordion FAQ";
|
|
360
|
+
readonly blockKinds: readonly ["block.faq"];
|
|
361
|
+
readonly design: {
|
|
362
|
+
readonly sectionSurface: "base";
|
|
363
|
+
readonly contentFrame: {
|
|
364
|
+
readonly kind: "plain";
|
|
365
|
+
};
|
|
366
|
+
readonly itemSurface: "default";
|
|
367
|
+
readonly transitionAfter: "none";
|
|
368
|
+
readonly emphasis: "medium";
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
371
|
+
readonly kind: "block-design";
|
|
372
|
+
readonly id: "faq-contained-help";
|
|
373
|
+
readonly target: "faq";
|
|
374
|
+
readonly label: "Contained help panel";
|
|
375
|
+
readonly blockKinds: readonly ["block.faq"];
|
|
376
|
+
readonly design: {
|
|
377
|
+
readonly sectionSurface: "muted-band";
|
|
378
|
+
readonly contentFrame: Readonly<{
|
|
379
|
+
kind: "panel";
|
|
380
|
+
treatment: "inset";
|
|
381
|
+
}>;
|
|
382
|
+
readonly itemSurface: "default";
|
|
383
|
+
readonly transitionAfter: "none";
|
|
384
|
+
readonly emphasis: "low";
|
|
385
|
+
};
|
|
386
|
+
}, {
|
|
387
|
+
readonly kind: "block-design";
|
|
388
|
+
readonly id: "contact-form-panel";
|
|
389
|
+
readonly target: "contact-form";
|
|
390
|
+
readonly label: "Contact form panel";
|
|
391
|
+
readonly blockKinds: readonly ["block.form"];
|
|
392
|
+
readonly design: {
|
|
393
|
+
readonly sectionSurface: "muted-band";
|
|
394
|
+
readonly contentFrame: Readonly<{
|
|
395
|
+
kind: "panel";
|
|
396
|
+
treatment: "raised";
|
|
397
|
+
}>;
|
|
398
|
+
readonly itemSurface: "none";
|
|
399
|
+
readonly transitionAfter: "soft-fade-short";
|
|
400
|
+
readonly emphasis: "medium";
|
|
401
|
+
};
|
|
402
|
+
}, {
|
|
403
|
+
readonly kind: "block-design";
|
|
404
|
+
readonly id: "contact-form-dark-card";
|
|
405
|
+
readonly target: "contact-form";
|
|
406
|
+
readonly label: "Dark form card";
|
|
407
|
+
readonly blockKinds: readonly ["block.form"];
|
|
408
|
+
readonly design: {
|
|
409
|
+
readonly sectionSurface: "accent-band";
|
|
410
|
+
readonly contentFrame: Readonly<{
|
|
411
|
+
kind: "panel";
|
|
412
|
+
treatment: "raised";
|
|
413
|
+
}>;
|
|
414
|
+
readonly itemSurface: "none";
|
|
415
|
+
readonly transitionAfter: "soft-fade-short";
|
|
416
|
+
readonly emphasis: "high";
|
|
417
|
+
};
|
|
418
|
+
}, {
|
|
419
|
+
readonly kind: "block-design";
|
|
420
|
+
readonly id: "contact-form-brand-depth-card";
|
|
421
|
+
readonly target: "contact-form";
|
|
422
|
+
readonly label: "Brand-depth form card";
|
|
423
|
+
readonly blockKinds: readonly ["block.form"];
|
|
424
|
+
readonly design: {
|
|
425
|
+
readonly sectionSurface: "brand-depth-band";
|
|
426
|
+
readonly contentFrame: Readonly<{
|
|
427
|
+
kind: "panel";
|
|
428
|
+
treatment: "raised";
|
|
429
|
+
}>;
|
|
430
|
+
readonly itemSurface: "none";
|
|
431
|
+
readonly transitionAfter: "none";
|
|
432
|
+
readonly emphasis: "high";
|
|
433
|
+
};
|
|
434
|
+
}, {
|
|
435
|
+
readonly kind: "block-design";
|
|
436
|
+
readonly id: "cta-accent-band";
|
|
437
|
+
readonly target: "cta";
|
|
438
|
+
readonly label: "Accent CTA band";
|
|
439
|
+
readonly blockKinds: readonly ["block.cta-full"];
|
|
440
|
+
readonly design: {
|
|
441
|
+
readonly sectionSurface: "accent-band";
|
|
442
|
+
readonly contentFrame: {
|
|
443
|
+
readonly kind: "plain";
|
|
444
|
+
};
|
|
445
|
+
readonly itemSurface: "none";
|
|
446
|
+
readonly transitionAfter: "none";
|
|
447
|
+
readonly emphasis: "high";
|
|
448
|
+
};
|
|
449
|
+
}];
|
|
450
|
+
export type BlockAppearancePresetBlockKind = (typeof appearancePresets)[number]['blockKinds'][number];
|
|
451
|
+
export declare function getAppearancePresetsForTarget(target: AppearancePresetTarget): readonly BlockAppearancePreset[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BlockLayoutDesignProfile } from './blockFlow';
|
|
2
|
+
import type { BlockAppearanceDesign, BlockAppearancePreset, BlockAppearancePresetConstraints } from './appearancePresetTypes';
|
|
3
|
+
import type { BlockDesignPlan } from './types';
|
|
4
|
+
export declare function defineBlockAppearancePreset<const TPreset extends BlockAppearancePreset>(preset: TPreset): TPreset;
|
|
5
|
+
export declare function layoutProfileSupportsConstraints(profile: BlockLayoutDesignProfile, constraints: BlockAppearancePresetConstraints): boolean;
|
|
6
|
+
export declare function resolveBlockAppearancePresetDesign(preset: BlockAppearancePreset, layoutProfile?: BlockLayoutDesignProfile | null): BlockAppearanceDesign;
|
|
7
|
+
export declare function blockDesignPlanFromAppearancePreset<TBlockId extends string, TPurpose extends string>(preset: BlockAppearancePreset, input: Readonly<{
|
|
8
|
+
blockId: TBlockId;
|
|
9
|
+
blockKind: string;
|
|
10
|
+
purpose: TPurpose;
|
|
11
|
+
layoutProfile?: BlockLayoutDesignProfile | null;
|
|
12
|
+
}>): BlockDesignPlan<TBlockId, TPurpose>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { BlockLayoutFamily } from './blockFlow';
|
|
2
|
+
import type { ContentFrameIntent, EyebrowTreatment, HeroLegibilityStrategy, ImageSurfaceMotion, ImageSurfaceTreatment, NonEmptyReadonlyArray, SectionHeightIntent, SiteStyleEmphasis, SiteStyleItemSurfaceIntent, SiteStyleSectionTransitionIntent, SiteStyleSurfaceIntent, TestimonialCardTreatment, TileTreatment } from './types';
|
|
3
|
+
export type AppearancePresetTarget = 'hero' | 'body-text' | 'offerings' | 'events' | 'media-text' | 'testimonials' | 'faq' | 'contact-form' | 'cta';
|
|
4
|
+
export type BlockAppearanceDesign = Readonly<{
|
|
5
|
+
sectionSurface: SiteStyleSurfaceIntent;
|
|
6
|
+
contentFrame: ContentFrameIntent;
|
|
7
|
+
itemSurface: SiteStyleItemSurfaceIntent;
|
|
8
|
+
transitionAfter: SiteStyleSectionTransitionIntent;
|
|
9
|
+
emphasis: SiteStyleEmphasis;
|
|
10
|
+
sectionHeight?: SectionHeightIntent;
|
|
11
|
+
heroLegibility?: HeroLegibilityStrategy;
|
|
12
|
+
imageSurfaceTreatment?: ImageSurfaceTreatment;
|
|
13
|
+
imageSurfaceMotion?: ImageSurfaceMotion;
|
|
14
|
+
testimonialCardTreatment?: TestimonialCardTreatment;
|
|
15
|
+
tileTreatment?: TileTreatment;
|
|
16
|
+
eyebrowTreatment?: EyebrowTreatment;
|
|
17
|
+
}>;
|
|
18
|
+
export type BlockAppearancePresetConstraints = Readonly<{
|
|
19
|
+
layoutFamilies?: readonly BlockLayoutFamily[];
|
|
20
|
+
layoutVariantKeys?: readonly string[];
|
|
21
|
+
}>;
|
|
22
|
+
export type BlockAppearanceOptionDesignPatch = Readonly<Partial<Pick<BlockAppearanceDesign, 'heroLegibility' | 'imageSurfaceTreatment' | 'imageSurfaceMotion' | 'sectionHeight' | 'testimonialCardTreatment' | 'tileTreatment' | 'eyebrowTreatment'>>>;
|
|
23
|
+
export type BlockAppearanceLayoutDesignPatch = BlockAppearanceOptionDesignPatch;
|
|
24
|
+
export type BlockAppearanceOption = Readonly<{
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
designPatch: BlockAppearanceOptionDesignPatch;
|
|
28
|
+
}>;
|
|
29
|
+
export type BlockAppearanceOptionGroup = Readonly<{
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
options: NonEmptyReadonlyArray<BlockAppearanceOption>;
|
|
33
|
+
selectedOptionId: string;
|
|
34
|
+
}>;
|
|
35
|
+
export type BlockAppearanceLayoutPatch = Readonly<{
|
|
36
|
+
constraints: BlockAppearancePresetConstraints;
|
|
37
|
+
designPatch: BlockAppearanceLayoutDesignPatch;
|
|
38
|
+
}>;
|
|
39
|
+
export type BlockAppearancePreset = Readonly<{
|
|
40
|
+
kind: 'block-design';
|
|
41
|
+
id: string;
|
|
42
|
+
target: AppearancePresetTarget;
|
|
43
|
+
label: string;
|
|
44
|
+
blockKinds: readonly string[];
|
|
45
|
+
constraints?: BlockAppearancePresetConstraints;
|
|
46
|
+
/**
|
|
47
|
+
* Author-time curated defaults. Page design intent pins only the preset today;
|
|
48
|
+
* option-level user pinning needs a separate persistence model before these
|
|
49
|
+
* become editable controls.
|
|
50
|
+
*/
|
|
51
|
+
optionGroups?: readonly BlockAppearanceOptionGroup[];
|
|
52
|
+
/**
|
|
53
|
+
* Layout-aware defaults keep a Look's visual recipe stable while preventing
|
|
54
|
+
* contradictions such as compact/micro layouts inheriting immersive height.
|
|
55
|
+
*/
|
|
56
|
+
layoutPatches?: readonly BlockAppearanceLayoutPatch[];
|
|
57
|
+
design: BlockAppearanceDesign;
|
|
58
|
+
}>;
|
|
59
|
+
export type AppearancePreset = BlockAppearancePreset;
|
|
60
|
+
export type BlockAppearancePresetTarget = BlockAppearancePreset['target'];
|
|
61
|
+
export declare const appearancePresetTargets: readonly ["hero", "body-text", "offerings", "events", "media-text", "testimonials", "faq", "contact-form", "cta"];
|