@riverbankcms/sdk 0.79.0 → 0.80.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-QZG37QIF.mjs +2655 -0
- package/dist/{PreviewEditorUI-27KJVEET.mjs → PreviewEditorUI-AXIKSMZA.mjs} +27 -4
- package/dist/SdkPreviewModeRuntime-XE5M4UKM.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +20 -0
- package/dist/_dts/api/src/endpoints.d.ts +24 -0
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/siteInfrastructure.d.ts +124 -0
- package/dist/_dts/api/src/siteOnboarding.d.ts +13 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +10 -1
- package/dist/_dts/block-form/src/client/index.d.ts +2 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +2 -1
- package/dist/_dts/blocks/src/client/header.d.ts +1 -1
- package/dist/_dts/blocks/src/client.d.ts +12 -12
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -1
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +7 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +21 -12
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +4 -2
- package/dist/_dts/blocks/src/system/fragments/library/faqHeading.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +5 -0
- package/dist/_dts/blocks/src/system/node/fragments/headingDecoration.d.ts +1 -4
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -7
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +10 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +9 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +14 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +9 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +6 -4
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +5 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +24 -0
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +34 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewBlockCustomizeSelectionContext.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewOpenEditorButton.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/SelectedBlockCustomizePanel.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeEditorDraftPatch.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/storeTypes.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +44 -0
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +56 -0
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +6 -3
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/siteStyleDefaults.d.ts +220 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +45 -2
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +8 -0
- package/dist/_dts/theme-core/src/blocks/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/blocks/vars/testimonials.d.ts +4 -1
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/core.d.ts +20 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +6 -3
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +105 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +177 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +156 -18
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +15 -0
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +16 -0
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +446 -52
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +86 -17
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +2 -3
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +86 -17
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +110 -1
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +286 -6
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +193 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +2 -8
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +10 -7
- package/dist/_dts/theme-core/src/site-styles/siteStyleThemeCompiler.d.ts +11 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/testimonialQuotePresets.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +7 -29
- package/dist/{PreviewEditorSidebar-56NMJMIK.mjs → chunk-5NZGBSJF.mjs} +1423 -2451
- package/dist/{chunk-4HCW7FHJ.mjs → chunk-7PCYG6YV.mjs} +215 -137
- package/dist/{chunk-K2IIF34C.mjs → chunk-BBLZSQEY.mjs} +24 -0
- package/dist/{chunk-V47ZU33I.mjs → chunk-GYXKAUFV.mjs} +2785 -785
- package/dist/{chunk-GP555I66.mjs → chunk-HTB4BMKD.mjs} +94 -46
- package/dist/{chunk-A3HHFKVT.mjs → chunk-MPBNEVPB.mjs} +1 -1
- package/dist/cli/index.mjs +2100 -545
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +16 -4
- package/dist/client/{accordion-QLA7KBYO.mjs → accordion-QFZMNB7O.mjs} +1 -1
- package/dist/client/{bookingForm-PYZIPA5G.mjs → bookingForm-NCIXFWIG.mjs} +3 -3
- package/dist/client/bookings.mjs +1144 -329
- package/dist/client/{carousel-5EIULWBI.mjs → carousel-EO4BJMWD.mjs} +2 -2
- package/dist/client/{cart-DOP3FNI4.mjs → cart-FTYCLYUW.mjs} +5 -5
- package/dist/client/{checkout-BVMF6FBV.mjs → checkout-NFGLVCOX.mjs} +5 -5
- package/dist/client/{chunk-TYONZMST.mjs → chunk-4W66ALYT.mjs} +1 -1
- package/dist/client/{chunk-44K2U3QI.mjs → chunk-6GVVWSPU.mjs} +4 -4
- package/dist/client/{chunk-UDS3NTWA.mjs → chunk-IWFZSQNZ.mjs} +1 -1
- package/dist/client/{chunk-R5ESWNKX.mjs → chunk-PUOELU4O.mjs} +89 -5
- package/dist/client/{chunk-YLDYVRZL.mjs → chunk-PYRBIURC.mjs} +4 -4
- package/dist/client/{chunk-GG4M2NP6.mjs → chunk-T6UIP6UZ.mjs} +1 -1
- package/dist/client/{chunk-V6M5FCR5.mjs → chunk-VDS5YFLX.mjs} +1 -1
- package/dist/client/{chunk-CCNTDRCF.mjs → chunk-Y37KDO7P.mjs} +1 -1
- package/dist/client/client.mjs +4205 -2324
- package/dist/client/{courseRegistration-E6EAA6NL.mjs → courseRegistration-2EORROPS.mjs} +3 -3
- package/dist/client/{eventCalendar-HBG3HAK6.mjs → eventCalendar-WZI4VL6N.mjs} +5 -5
- package/dist/client/{eventCombined-6K5ZZWAK.mjs → eventCombined-QCB2TCNL.mjs} +5 -5
- package/dist/client/{eventDetails-Q75ICXLT.mjs → eventDetails-TFTATAPH.mjs} +5 -5
- package/dist/client/{eventListing-27P5F7DZ.mjs → eventListing-A2CQEHEQ.mjs} +5 -5
- package/dist/client/{eventRegistration-IQ7AMASR.mjs → eventRegistration-OELPVLUY.mjs} +5 -5
- package/dist/client/{form-JRTD65FN.mjs → form-NTIFD6WQ.mjs} +1 -1
- package/dist/client/{headerSection-7FPSSZHS.mjs → headerSection-7TBNKCLA.mjs} +65 -24
- package/dist/client/hooks.mjs +3354 -2006
- package/dist/client/{locationMap-7NGFNYBH.mjs → locationMap-LRLB5A3H.mjs} +1 -1
- package/dist/client/{newsletterForm-F3BADCI2.mjs → newsletterForm-XI52RZSN.mjs} +1 -1
- package/dist/client/{productDetail-V3HP7ITJ.mjs → productDetail-GSNKBFLY.mjs} +5 -5
- package/dist/client/{productList-L3EGJUF2.mjs → productList-BGCGT4KZ.mjs} +5 -5
- package/dist/client/rendering/client.mjs +2570 -1657
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +4275 -2394
- package/dist/client/{shop-DQUB5E2C.mjs → shop-RQHUCLNY.mjs} +5 -5
- package/dist/preview-next/before-render.mjs +24 -0
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +24 -0
- package/dist/{sdk-runtime-AF6KXJU4.mjs → sdk-runtime-A4LHT2RS.mjs} +6 -6
- package/dist/server/components.mjs +4063 -2293
- package/dist/server/config-validation.mjs +3525 -2176
- package/dist/server/config.mjs +3525 -2176
- package/dist/server/data.mjs +3354 -2006
- package/dist/server/index.mjs +25 -1
- package/dist/server/next.mjs +4006 -2236
- package/dist/server/page-converter.mjs +2747 -1816
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4063 -2293
- package/dist/server/rendering.mjs +4063 -2293
- package/dist/server/routing.mjs +3508 -2111
- package/dist/server/server.mjs +3372 -2024
- package/dist/server/theme-bridge.mjs +1436 -310
- package/dist/server/theme.mjs +409 -219
- package/dist/styles/index.css +300 -33
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-H4BSP6E7.mjs +0 -8
- package/dist/chunk-LCY32PXF.mjs +0 -1175
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Theme } from '../schema';
|
|
2
|
+
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
3
|
+
import { type CompiledTypographySelection } from './typographyPresets';
|
|
4
|
+
import type { SiteStyleId } from './types';
|
|
5
|
+
export type CuratedSiteStyleTheme = Theme & Readonly<{
|
|
6
|
+
siteStyleId: SiteStyleId;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function withSiteStyleMetadata(theme: Theme, siteStyle: CuratedSiteStyle): CuratedSiteStyleTheme;
|
|
9
|
+
export declare function applyTypographySelectionToTheme(theme: Theme, compiledTypography: CompiledTypographySelection): Theme;
|
|
10
|
+
export declare function applySiteStyleThemeOverrides(theme: Theme, siteStyle: CuratedSiteStyle): Theme;
|
|
11
|
+
export declare function compileCuratedSiteStyleBlockTheme(siteStyle: CuratedSiteStyle): CuratedSiteStyleTheme;
|
|
@@ -35,7 +35,7 @@ export declare const generatedDesignOptionCatalog: {
|
|
|
35
35
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
36
36
|
bleed: "start";
|
|
37
37
|
}>];
|
|
38
|
-
readonly itemSurfaces: readonly ["none", "default", "flat", "outlined", "raised"];
|
|
38
|
+
readonly itemSurfaces: readonly ["none", "default", "flat", "outlined", "raised", "inset", "editorial"];
|
|
39
39
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long"];
|
|
40
40
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
41
41
|
readonly detachedCustom: false;
|
|
@@ -121,7 +121,7 @@ export declare const designOptionCatalogs: {
|
|
|
121
121
|
treatment: import("../../../blocks/src/index").FlushFrameTreatment;
|
|
122
122
|
bleed: "start";
|
|
123
123
|
}>];
|
|
124
|
-
readonly itemSurfaces: readonly ["none", "default", "flat", "outlined", "raised"];
|
|
124
|
+
readonly itemSurfaces: readonly ["none", "default", "flat", "outlined", "raised", "inset", "editorial"];
|
|
125
125
|
readonly transitions: readonly ["none", "soft-fade-short", "soft-fade-long"];
|
|
126
126
|
readonly emphases: readonly ["low", "medium", "high"];
|
|
127
127
|
readonly detachedCustom: false;
|
|
@@ -22,8 +22,8 @@ export declare const styleTagsSchema: z.ZodObject<{
|
|
|
22
22
|
}>>;
|
|
23
23
|
motion: z.ZodOptional<z.ZodEnum<{
|
|
24
24
|
standard: "standard";
|
|
25
|
-
subtle: "subtle";
|
|
26
25
|
expressive: "expressive";
|
|
26
|
+
subtle: "subtle";
|
|
27
27
|
}>>;
|
|
28
28
|
era: z.ZodOptional<z.ZodEnum<{
|
|
29
29
|
editorial: "editorial";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reusable testimonial quote-mark treatments for curated site styles.
|
|
3
|
+
*
|
|
4
|
+
* The quote mark is brand identity the site style owns (analogous to the FAQ
|
|
5
|
+
* accordion icon); every curated style declares one. `style` is the coarse
|
|
6
|
+
* selector and the resolver in blocks/vars/testimonials.ts fills in the rest.
|
|
7
|
+
*/
|
|
8
|
+
/** Large display quotation mark in the heading font. Editorial / calm styles. */
|
|
9
|
+
export declare const serifDisplayQuote: {
|
|
10
|
+
readonly style: "serif-display";
|
|
11
|
+
};
|
|
12
|
+
/** Punchy quotation mark in the secondary accent colour. Bold / accent styles. */
|
|
13
|
+
export declare const accentGlyphQuote: {
|
|
14
|
+
readonly style: "accent-glyph";
|
|
15
|
+
};
|
|
@@ -45,8 +45,8 @@ export declare const themeTokenRecipesSchema: z.ZodObject<{
|
|
|
45
45
|
}>;
|
|
46
46
|
motion: z.ZodEnum<{
|
|
47
47
|
none: "none";
|
|
48
|
-
subtle: "subtle";
|
|
49
48
|
expressive: "expressive";
|
|
49
|
+
subtle: "subtle";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const defaultThemeTokenRecipes: {
|
|
@@ -189,7 +189,7 @@ export type ImageSurfaceTreatment = Readonly<{
|
|
|
189
189
|
intensity?: ImageSurfaceTreatmentIntensity;
|
|
190
190
|
}>;
|
|
191
191
|
export type ImageSurfaceTreatmentKind = ImageSurfaceTreatment['kind'];
|
|
192
|
-
export type TestimonialCardTreatment = 'default' | 'accent-quote';
|
|
192
|
+
export type TestimonialCardTreatment = 'default' | 'statement' | 'non-carded' | 'accent-quote' | 'editorial-serif-quote';
|
|
193
193
|
export declare const tileTreatmentValues: readonly ["default", "quiet", "brand-depth"];
|
|
194
194
|
export type TileTreatment = (typeof tileTreatmentValues)[number];
|
|
195
195
|
export declare const eventListTreatmentValues: readonly ["plain", "lined-panel"];
|
|
@@ -200,27 +200,20 @@ export declare const headingDecorationFamilyValues: readonly ["none", "organic-s
|
|
|
200
200
|
export type HeadingDecorationFamily = (typeof headingDecorationFamilyValues)[number];
|
|
201
201
|
export type VisibleHeadingDecorationFamily = Exclude<HeadingDecorationFamily, 'none'>;
|
|
202
202
|
export declare const visibleHeadingDecorationFamilyValues: readonly ["organic-squiggle", "short-center-rule"];
|
|
203
|
-
export declare const
|
|
204
|
-
export type HeadingDecorationPlacement = (typeof headingDecorationPlacementValues)[number];
|
|
205
|
-
export type VisibleHeadingDecorationPlacement = Exclude<HeadingDecorationPlacement, 'none'>;
|
|
206
|
-
export declare const visibleHeadingDecorationPlacementValues: readonly ["after-heading", "between-heading-and-body", "under-centered-heading"];
|
|
207
|
-
export declare const headingDecorationOverrideValues: readonly ["site-default", "on", "off"];
|
|
203
|
+
export declare const headingDecorationOverrideValues: readonly ["site-default", "off"];
|
|
208
204
|
export type HeadingDecorationOverride = (typeof headingDecorationOverrideValues)[number];
|
|
209
205
|
export declare const headingDecorationColorTokenValues: readonly ["text", "primary", "secondary", "accent", "border", "muted"];
|
|
210
206
|
export type HeadingDecorationColorToken = (typeof headingDecorationColorTokenValues)[number];
|
|
211
207
|
export type NoHeadingDecoration = Readonly<{
|
|
212
208
|
family: 'none';
|
|
213
|
-
placement: 'none';
|
|
214
209
|
}>;
|
|
215
210
|
export type VisibleHeadingDecoration = Readonly<{
|
|
216
211
|
family: VisibleHeadingDecorationFamily;
|
|
217
|
-
placement: VisibleHeadingDecorationPlacement;
|
|
218
212
|
colorToken?: HeadingDecorationColorToken;
|
|
219
213
|
}>;
|
|
220
214
|
export type HeadingDecoration = NoHeadingDecoration | VisibleHeadingDecoration;
|
|
221
215
|
export declare const noHeadingDecoration: {
|
|
222
216
|
readonly family: "none";
|
|
223
|
-
readonly placement: "none";
|
|
224
217
|
};
|
|
225
218
|
export declare const accordionIconSetValues: readonly ["plus", "chevron", "caret", "minimal-cross"];
|
|
226
219
|
export type AccordionIconSet = (typeof accordionIconSetValues)[number];
|
|
@@ -255,7 +248,7 @@ export type GeneratedFlushPanelFrameIntent = Readonly<{
|
|
|
255
248
|
export type GeneratedContentFrameIntent = PlainFrameIntent | GeneratedPanelFrameIntent | GeneratedFlushPanelFrameIntent;
|
|
256
249
|
export type UserContentFrameIntent = ContentFrameIntent;
|
|
257
250
|
export type AdvancedContentFrameIntent = ContentFrameIntent | AdvancedDetachedDesignValue;
|
|
258
|
-
export type GeneratedItemSurfaceIntent = Extract<SiteStyleItemSurfaceIntent, 'none' | 'default' | 'flat' | 'outlined' | 'raised'>;
|
|
251
|
+
export type GeneratedItemSurfaceIntent = Extract<SiteStyleItemSurfaceIntent, 'none' | 'default' | 'flat' | 'outlined' | 'raised' | 'inset' | 'editorial'>;
|
|
259
252
|
export type UserItemSurfaceIntent = SiteStyleItemSurfaceIntent;
|
|
260
253
|
export type AdvancedItemSurfaceIntent = SiteStyleItemSurfaceIntent | AdvancedDetachedDesignValue;
|
|
261
254
|
export type GeneratedSectionTransitionIntent = Extract<SiteStyleSectionTransitionIntent, 'none' | 'soft-fade-short' | 'soft-fade-long'>;
|
|
@@ -391,7 +384,6 @@ export type BlockDesignPlan<TBlockId extends string = DesignBlockId, TPurpose ex
|
|
|
391
384
|
tileTreatment?: TileTreatment;
|
|
392
385
|
eventListTreatment?: EventListTreatment;
|
|
393
386
|
eyebrowTreatment?: EyebrowTreatment;
|
|
394
|
-
headingDecoration?: HeadingDecoration;
|
|
395
387
|
accordionIconTreatment?: AccordionIconTreatment | null;
|
|
396
388
|
}>;
|
|
397
389
|
export type ResolvedBlockDesignPlan<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<BlockDesignPlan<TBlockId, TPurpose> & {
|
|
@@ -407,7 +399,6 @@ export type ResolvedBlockDesignPlan<TBlockId extends string = DesignBlockId, TPu
|
|
|
407
399
|
appliedTileTreatment: TileTreatment;
|
|
408
400
|
appliedEventListTreatment: EventListTreatment;
|
|
409
401
|
appliedEyebrowTreatment: EyebrowTreatment;
|
|
410
|
-
appliedHeadingDecoration: HeadingDecoration;
|
|
411
402
|
appliedAccordionIconTreatment: AccordionIconTreatment | null;
|
|
412
403
|
}>;
|
|
413
404
|
export type PageDesignState<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
@@ -430,8 +421,8 @@ export type DesignedBlockDesignCapabilityInput = Readonly<{
|
|
|
430
421
|
tileTreatments?: NonEmptyReadonlyArray<TileTreatment>;
|
|
431
422
|
eventListTreatments?: NonEmptyReadonlyArray<EventListTreatment>;
|
|
432
423
|
eyebrowTreatments?: NonEmptyReadonlyArray<EyebrowTreatment>;
|
|
433
|
-
headingDecorations?: NonEmptyReadonlyArray<VisibleHeadingDecorationFamily>;
|
|
434
424
|
accordionIconSets?: NonEmptyReadonlyArray<AccordionIconSet>;
|
|
425
|
+
headingDecorations?: NonEmptyReadonlyArray<VisibleHeadingDecorationFamily>;
|
|
435
426
|
}>;
|
|
436
427
|
export type DesignedBlockDesignCapability = Readonly<{
|
|
437
428
|
kind: 'designed';
|
|
@@ -445,8 +436,8 @@ export type DesignedBlockDesignCapability = Readonly<{
|
|
|
445
436
|
tileTreatments: NonEmptyReadonlyArray<TileTreatment>;
|
|
446
437
|
eventListTreatments: NonEmptyReadonlyArray<EventListTreatment>;
|
|
447
438
|
eyebrowTreatments: NonEmptyReadonlyArray<EyebrowTreatment>;
|
|
448
|
-
headingDecorations?: NonEmptyReadonlyArray<VisibleHeadingDecorationFamily>;
|
|
449
439
|
accordionIconSets?: NonEmptyReadonlyArray<AccordionIconSet>;
|
|
440
|
+
headingDecorations?: NonEmptyReadonlyArray<VisibleHeadingDecorationFamily>;
|
|
450
441
|
}>;
|
|
451
442
|
export type UnsupportedBlockDesignCapabilityReason = 'site-chrome' | 'transactional' | 'placeholder' | 'legacy-layout' | 'custom-runtime';
|
|
452
443
|
export type NoBlockDesignCapability = Readonly<{
|
|
@@ -457,7 +448,7 @@ export type BlockDesignCapability = DesignedBlockDesignCapability | NoBlockDesig
|
|
|
457
448
|
export type BlockDesignCapabilityMap = Readonly<Partial<Record<string, BlockDesignCapability>>>;
|
|
458
449
|
export declare function defineBlockDesignCapability(capability: DesignedBlockDesignCapabilityInput): DesignedBlockDesignCapability;
|
|
459
450
|
export declare function defineNoBlockDesignCapability(reason: UnsupportedBlockDesignCapabilityReason): NoBlockDesignCapability;
|
|
460
|
-
export type DesignRepairAction = 'fallback-block-design' | 'fallback-section-surface' | 'fallback-content-frame' | 'fallback-item-surface' | 'fallback-section-height' | 'fallback-image-surface-treatment' | 'fallback-image-surface-motion' | 'fallback-testimonial-card-treatment' | 'fallback-tile-treatment' | 'fallback-event-list-treatment' | 'fallback-eyebrow-treatment' | 'fallback-
|
|
451
|
+
export type DesignRepairAction = 'fallback-block-design' | 'fallback-section-surface' | 'fallback-content-frame' | 'fallback-item-surface' | 'fallback-section-height' | 'fallback-image-surface-treatment' | 'fallback-image-surface-motion' | 'fallback-testimonial-card-treatment' | 'fallback-tile-treatment' | 'fallback-event-list-treatment' | 'fallback-eyebrow-treatment' | 'fallback-accordion-icon-treatment' | 'remove-hero-legibility' | 'remove-transition' | 'fallback-hero-legibility' | 'reduce-accent-density' | 'reduce-panel-density' | 'reduce-transition-mix' | 'reduce-primary-ctas' | 'reduce-media-density' | 'reduce-decorative-repetition';
|
|
461
452
|
export type UnsupportedSectionSurfaceIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
462
453
|
kind: 'unsupported-section-surface';
|
|
463
454
|
blockId: TBlockId;
|
|
@@ -570,17 +561,6 @@ export type UnsupportedEyebrowTreatmentIssue<TBlockId extends string = DesignBlo
|
|
|
570
561
|
severity: DesignIssueSeverity;
|
|
571
562
|
allowedRepairActions: readonly ['fallback-eyebrow-treatment'];
|
|
572
563
|
}>;
|
|
573
|
-
export type UnsupportedHeadingDecorationIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
574
|
-
kind: 'unsupported-heading-decoration';
|
|
575
|
-
blockId: TBlockId;
|
|
576
|
-
blockKind: string;
|
|
577
|
-
purpose: TPurpose;
|
|
578
|
-
requested: HeadingDecoration;
|
|
579
|
-
fallback: NoHeadingDecoration;
|
|
580
|
-
policy: DesignResolutionPolicy;
|
|
581
|
-
severity: DesignIssueSeverity;
|
|
582
|
-
allowedRepairActions: readonly ['fallback-heading-decoration'];
|
|
583
|
-
}>;
|
|
584
564
|
export type UnsupportedAccordionIconTreatmentIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
585
565
|
kind: 'unsupported-accordion-icon-treatment';
|
|
586
566
|
blockId: TBlockId;
|
|
@@ -642,7 +622,6 @@ export type BlockDesignCapabilityRequest = Readonly<{
|
|
|
642
622
|
tileTreatment?: TileTreatment;
|
|
643
623
|
eventListTreatment?: EventListTreatment;
|
|
644
624
|
eyebrowTreatment?: EyebrowTreatment;
|
|
645
|
-
headingDecoration?: HeadingDecoration;
|
|
646
625
|
accordionIconTreatment?: AccordionIconTreatment | null;
|
|
647
626
|
}>;
|
|
648
627
|
export type BlockDesignCapabilityFallback = Readonly<{
|
|
@@ -660,7 +639,6 @@ export type BlockDesignCapabilityFallback = Readonly<{
|
|
|
660
639
|
tileTreatment: 'default';
|
|
661
640
|
eventListTreatment: 'plain';
|
|
662
641
|
eyebrowTreatment: 'plain';
|
|
663
|
-
headingDecoration: NoHeadingDecoration;
|
|
664
642
|
accordionIconTreatment: null;
|
|
665
643
|
}>;
|
|
666
644
|
export type MissingBlockDesignCapabilityIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = Readonly<{
|
|
@@ -708,7 +686,7 @@ export type HeroImageWithoutLegibilityIssue<TBlockId extends string = DesignBloc
|
|
|
708
686
|
severity: DesignIssueSeverity;
|
|
709
687
|
allowedRepairActions: readonly ['fallback-hero-legibility'];
|
|
710
688
|
}>;
|
|
711
|
-
export type DesignResolutionIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = UnsupportedSectionSurfaceIssue<TBlockId, TPurpose> | UnsupportedContentFrameIssue<TBlockId, TPurpose> | UnsupportedItemSurfaceIssue<TBlockId, TPurpose> | UnsupportedSectionHeightIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceTreatmentIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceMotionIssue<TBlockId, TPurpose> | UnsupportedTestimonialCardTreatmentIssue<TBlockId, TPurpose> | UnsupportedTileTreatmentIssue<TBlockId, TPurpose> | UnsupportedEventListTreatmentIssue<TBlockId, TPurpose> | UnsupportedEyebrowTreatmentIssue<TBlockId, TPurpose> |
|
|
689
|
+
export type DesignResolutionIssue<TBlockId extends string = DesignBlockId, TPurpose extends string = string> = UnsupportedSectionSurfaceIssue<TBlockId, TPurpose> | UnsupportedContentFrameIssue<TBlockId, TPurpose> | UnsupportedItemSurfaceIssue<TBlockId, TPurpose> | UnsupportedSectionHeightIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceTreatmentIssue<TBlockId, TPurpose> | UnsupportedImageSurfaceMotionIssue<TBlockId, TPurpose> | UnsupportedTestimonialCardTreatmentIssue<TBlockId, TPurpose> | UnsupportedTileTreatmentIssue<TBlockId, TPurpose> | UnsupportedEventListTreatmentIssue<TBlockId, TPurpose> | UnsupportedEyebrowTreatmentIssue<TBlockId, TPurpose> | UnsupportedAccordionIconTreatmentIssue<TBlockId, TPurpose> | ImageSurfaceTreatmentWithoutImageSurfaceIssue<TBlockId, TPurpose> | ImageSurfaceMotionWithoutImageSurfaceIssue<TBlockId, TPurpose> | HeroLegibilityOverriddenByImageSurfaceTreatmentIssue<TBlockId, TPurpose> | MissingBlockDesignCapabilityIssue<TBlockId, TPurpose> | UnsupportedBlockDesignCapabilityIssue<TBlockId, TPurpose> | RemovedTransitionForFlushFrameIssue<TBlockId, TPurpose> | HeroImageWithoutLegibilityIssue<TBlockId, TPurpose>;
|
|
712
690
|
export type DesignRepairResultForIssue<TIssue extends DesignResolutionIssue<string, string>> = {
|
|
713
691
|
[TKind in TIssue['kind']]: Readonly<{
|
|
714
692
|
kind: TKind extends 'removed-transition-for-flush-frame' ? 'repaired' : 'fallbackApplied';
|