@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
|
@@ -114,6 +114,7 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
114
114
|
base: "base";
|
|
115
115
|
"muted-band": "muted-band";
|
|
116
116
|
"accent-band": "accent-band";
|
|
117
|
+
"brand-depth-band": "brand-depth-band";
|
|
117
118
|
"hero-image": "hero-image";
|
|
118
119
|
}>;
|
|
119
120
|
contentFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -224,6 +225,11 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
224
225
|
default: "default";
|
|
225
226
|
"accent-quote": "accent-quote";
|
|
226
227
|
}>>;
|
|
228
|
+
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
default: "default";
|
|
230
|
+
quiet: "quiet";
|
|
231
|
+
"brand-depth": "brand-depth";
|
|
232
|
+
}>>;
|
|
227
233
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
228
234
|
pill: "pill";
|
|
229
235
|
plain: "plain";
|
|
@@ -302,6 +308,7 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
302
308
|
base: "base";
|
|
303
309
|
"muted-band": "muted-band";
|
|
304
310
|
"accent-band": "accent-band";
|
|
311
|
+
"brand-depth-band": "brand-depth-band";
|
|
305
312
|
"hero-image": "hero-image";
|
|
306
313
|
}>;
|
|
307
314
|
contentFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -412,6 +419,11 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
412
419
|
default: "default";
|
|
413
420
|
"accent-quote": "accent-quote";
|
|
414
421
|
}>>;
|
|
422
|
+
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
423
|
+
default: "default";
|
|
424
|
+
quiet: "quiet";
|
|
425
|
+
"brand-depth": "brand-depth";
|
|
426
|
+
}>>;
|
|
415
427
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
416
428
|
pill: "pill";
|
|
417
429
|
plain: "plain";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Theme } from '../schema';
|
|
2
|
+
import { type SiteChromeLookDiagnostics } from './customizableSurfaces';
|
|
3
|
+
import { type Brand } from './types';
|
|
4
|
+
export declare const footerLookIdValues: readonly ["footer-muted-grounding", "site-footer-brand-two-band"];
|
|
5
|
+
export type FooterLookIdValue = typeof footerLookIdValues[number];
|
|
6
|
+
export type FooterLookId = Brand<FooterLookIdValue, 'FooterLookId'>;
|
|
7
|
+
export declare function asFooterLookId(value: FooterLookIdValue): FooterLookId;
|
|
8
|
+
export type FooterLookDefinition = Readonly<{
|
|
9
|
+
id: FooterLookId;
|
|
10
|
+
label: string;
|
|
11
|
+
maxRecommendedNavDensity?: Extract<FooterSelectionContext['navDensity'], 'sparse' | 'balanced'>;
|
|
12
|
+
allowedContentPresence?: readonly Exclude<FooterSelectionContext['contentPresence'], 'unknown'>[];
|
|
13
|
+
compile: (theme: Theme) => Theme['footer'];
|
|
14
|
+
}>;
|
|
15
|
+
export type FooterSelectionContext = Readonly<{
|
|
16
|
+
navDensity: 'unknown' | 'sparse' | 'balanced' | 'dense';
|
|
17
|
+
contentPresence: 'unknown' | 'default-footer' | 'footer-blocks' | 'default-and-blocks';
|
|
18
|
+
}>;
|
|
19
|
+
export type RejectedFooterLookReason = 'footer-nav-too-dense' | 'footer-content-incompatible';
|
|
20
|
+
export type RejectedFooterLook = Readonly<{
|
|
21
|
+
lookId: FooterLookId;
|
|
22
|
+
reasons: readonly RejectedFooterLookReason[];
|
|
23
|
+
}>;
|
|
24
|
+
export type FooterSelectionResult = Readonly<{
|
|
25
|
+
selectedLookId: FooterLookId;
|
|
26
|
+
selectedLook: FooterLookDefinition;
|
|
27
|
+
footer: Theme['footer'];
|
|
28
|
+
rejected: readonly RejectedFooterLook[];
|
|
29
|
+
}>;
|
|
30
|
+
export type FooterLookDiagnostics = SiteChromeLookDiagnostics<FooterLookId, RejectedFooterLookReason>;
|
|
31
|
+
export type FooterLookResolutionInput = Readonly<{
|
|
32
|
+
theme: Theme;
|
|
33
|
+
recommendedLookIds: readonly FooterLookId[];
|
|
34
|
+
context?: Partial<FooterSelectionContext>;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const defaultFooterSelectionContext: FooterSelectionContext;
|
|
37
|
+
export declare const guaranteedFallbackFooterLookId: FooterLookId;
|
|
38
|
+
/** Uses the generated theme's footer branch as-is: the canonical calm Look. */
|
|
39
|
+
declare function mutedGroundingFooter(theme: Theme): Theme['footer'];
|
|
40
|
+
/** Applies a high-contrast brand band with a darker full-bleed bottom bar. */
|
|
41
|
+
declare function brandTwoBandFooter(theme: Theme): Theme['footer'];
|
|
42
|
+
export declare const footerLookCatalog: readonly [{
|
|
43
|
+
readonly id: FooterLookId;
|
|
44
|
+
readonly label: "Muted grounding footer";
|
|
45
|
+
readonly compile: typeof mutedGroundingFooter;
|
|
46
|
+
}, {
|
|
47
|
+
readonly id: FooterLookId;
|
|
48
|
+
readonly label: "Two-band brand footer";
|
|
49
|
+
readonly maxRecommendedNavDensity: "balanced";
|
|
50
|
+
readonly allowedContentPresence: readonly ["default-footer", "default-and-blocks"];
|
|
51
|
+
readonly compile: typeof brandTwoBandFooter;
|
|
52
|
+
}];
|
|
53
|
+
export declare function getFooterLook(id: FooterLookId): FooterLookDefinition | null;
|
|
54
|
+
export declare function findFooterLook(id: FooterLookId): FooterLookDefinition | undefined;
|
|
55
|
+
export declare function getFooterLookOrThrow(id: FooterLookId): FooterLookDefinition;
|
|
56
|
+
export declare function resolveFooterLook(input: FooterLookResolutionInput): FooterSelectionResult;
|
|
57
|
+
export declare function footerLookDiagnosticsFromSelectionResult(result: FooterSelectionResult): FooterLookDiagnostics;
|
|
58
|
+
export declare function footerLookRejectionReasonLabel(reason: RejectedFooterLookReason): string;
|
|
59
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CompositionBudgetIssue } from './compositionBudget';
|
|
2
2
|
import { type ThemeV2StyleAuthority } from './designState';
|
|
3
3
|
import { type PageDesignIntent } from './pageDesignIntent';
|
|
4
|
+
import { type HeaderOpeningSectionRepair } from './headerOpeningSection';
|
|
5
|
+
import type { HeaderOpeningSectionContext } from './headerLooks';
|
|
4
6
|
import { type CompiledPageRuntime } from './runtimeCompiler';
|
|
5
7
|
import { type BlockDesignCapabilityMap, type BlockDesignPlan, type DesignBlockId, type DesignRepairResult, type DesignResolutionIssue, type GeneratedPageDesignIntent, type ResolvedPageDesignPlan, type SiteStyleId } from './types';
|
|
6
8
|
import type { CuratedSiteStyle } from './curatedSiteStyles';
|
|
@@ -41,6 +43,8 @@ export type GeneratedDesignPipelineSuccess<TBlockId extends DesignBlockId = Desi
|
|
|
41
43
|
intent: GeneratedPageDesignIntent<TBlockId>;
|
|
42
44
|
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
43
45
|
resolved: ResolvedPageDesignPlan<TBlockId>;
|
|
46
|
+
headerOpeningSectionContext: HeaderOpeningSectionContext;
|
|
47
|
+
headerOpeningSectionRepairs: readonly HeaderOpeningSectionRepair[];
|
|
44
48
|
repairs: readonly DesignRepairResult<TBlockId>[];
|
|
45
49
|
compositionIssues: readonly [];
|
|
46
50
|
compiledRuntime: CompiledPageRuntime<TBlockId>;
|
|
@@ -39,6 +39,7 @@ export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
|
|
|
39
39
|
base: "base";
|
|
40
40
|
"muted-band": "muted-band";
|
|
41
41
|
"accent-band": "accent-band";
|
|
42
|
+
"brand-depth-band": "brand-depth-band";
|
|
42
43
|
"hero-image": "hero-image";
|
|
43
44
|
}>;
|
|
44
45
|
}, z.core.$strict>], "kind">;
|
|
@@ -181,6 +182,7 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
|
|
|
181
182
|
base: "base";
|
|
182
183
|
"muted-band": "muted-band";
|
|
183
184
|
"accent-band": "accent-band";
|
|
185
|
+
"brand-depth-band": "brand-depth-band";
|
|
184
186
|
"hero-image": "hero-image";
|
|
185
187
|
}>;
|
|
186
188
|
}, z.core.$strict>], "kind">;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { Theme } from '../schema';
|
|
2
|
+
import { type SiteChromeLookDiagnostics } from './customizableSurfaces';
|
|
3
|
+
import { type Brand } from './types';
|
|
4
|
+
export declare const headerLookIdValues: readonly ["clean-base", "brand-solid", "editorial-line", "centered-calm", "practical-utility", "minimal-transparent", "transparent-overlay", "floating-glass"];
|
|
5
|
+
export type HeaderLookIdValue = typeof headerLookIdValues[number];
|
|
6
|
+
export type HeaderLookId = Brand<HeaderLookIdValue, 'HeaderLookId'>;
|
|
7
|
+
export declare function asHeaderLookId(value: HeaderLookIdValue): HeaderLookId;
|
|
8
|
+
export type HeaderLookVisualTreatment = 'solid-neutral' | 'solid-brand' | 'light-editorial' | 'minimal-transparent' | 'transparent-overlay' | 'floating-glass';
|
|
9
|
+
export type HeaderLookLayoutBehavior = 'normal-flow' | 'sticky' | 'sticky-shrink' | 'fixed-overlay' | 'fixed-floating';
|
|
10
|
+
export type HeaderLookOpeningRequirement = 'none' | 'reserved-space-ok' | 'requires-image-hero-with-contrast-overlay';
|
|
11
|
+
export type HeaderLogoShape = 'none' | 'text-only' | 'horizontal' | 'square' | 'tall';
|
|
12
|
+
export type HeaderLookDefinition = Readonly<{
|
|
13
|
+
id: HeaderLookId;
|
|
14
|
+
label: string;
|
|
15
|
+
visualTreatment: HeaderLookVisualTreatment;
|
|
16
|
+
layoutBehavior: HeaderLookLayoutBehavior;
|
|
17
|
+
openingRequirement: HeaderLookOpeningRequirement;
|
|
18
|
+
maxRecommendedNavItems?: number;
|
|
19
|
+
allowedLogoShapes?: readonly HeaderLogoShape[];
|
|
20
|
+
requiresProminentCta?: boolean;
|
|
21
|
+
compile: (theme: Theme) => Theme['header'];
|
|
22
|
+
}>;
|
|
23
|
+
export type HeaderOpeningSectionContext = Readonly<{
|
|
24
|
+
kind: 'unknown';
|
|
25
|
+
canAdjust: false;
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
kind: 'plain';
|
|
28
|
+
canAdjust: false;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'image-hero';
|
|
31
|
+
hasContrastOverlay: boolean;
|
|
32
|
+
hasTopSpacing: boolean;
|
|
33
|
+
canAdjust: false;
|
|
34
|
+
}>;
|
|
35
|
+
export type HeaderLogoContext = Readonly<{
|
|
36
|
+
shape: HeaderLogoShape;
|
|
37
|
+
}>;
|
|
38
|
+
export type HeaderNavigationContext = Readonly<{
|
|
39
|
+
itemCount: number;
|
|
40
|
+
}>;
|
|
41
|
+
export type HeaderCtaContext = Readonly<{
|
|
42
|
+
importance: 'low' | 'medium' | 'high';
|
|
43
|
+
}>;
|
|
44
|
+
export type HeaderBannerContext = Readonly<{
|
|
45
|
+
persistentVisibility: 'none' | 'possible' | 'visible';
|
|
46
|
+
shellCanOffsetOverlayHeader: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
export type HeaderSelectionContext = Readonly<{
|
|
49
|
+
openingSection: HeaderOpeningSectionContext;
|
|
50
|
+
logo: HeaderLogoContext;
|
|
51
|
+
navigation: HeaderNavigationContext;
|
|
52
|
+
cta: HeaderCtaContext;
|
|
53
|
+
banner: HeaderBannerContext;
|
|
54
|
+
}>;
|
|
55
|
+
export type RejectedHeaderLookReason = 'requires-image-hero-with-contrast-overlay' | 'requires-opening-section-top-spacing' | 'requires-banner-offset-shell' | 'too-many-nav-items' | 'logo-shape-incompatible' | 'cta-treatment-unavailable';
|
|
56
|
+
export type RejectedHeaderLook = Readonly<{
|
|
57
|
+
lookId: HeaderLookId;
|
|
58
|
+
reasons: readonly RejectedHeaderLookReason[];
|
|
59
|
+
}>;
|
|
60
|
+
export type HeaderSelectionResult = Readonly<{
|
|
61
|
+
selectedLookId: HeaderLookId;
|
|
62
|
+
selectedLook: HeaderLookDefinition;
|
|
63
|
+
header: Theme['header'];
|
|
64
|
+
rejected: readonly RejectedHeaderLook[];
|
|
65
|
+
}>;
|
|
66
|
+
export type HeaderLookDiagnostics = SiteChromeLookDiagnostics<HeaderLookId, RejectedHeaderLookReason>;
|
|
67
|
+
export type HeaderLookResolutionInput = Readonly<{
|
|
68
|
+
theme: Theme;
|
|
69
|
+
recommendedLookIds: readonly HeaderLookId[];
|
|
70
|
+
context?: Partial<HeaderSelectionContext>;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const defaultHeaderSelectionContext: HeaderSelectionContext;
|
|
73
|
+
declare function solidBrandHeader(theme: Theme): Theme['header'];
|
|
74
|
+
declare function cleanBaseHeader(theme: Theme): Theme['header'];
|
|
75
|
+
declare function editorialLineHeader(theme: Theme): Theme['header'];
|
|
76
|
+
declare function centeredCalmHeader(theme: Theme): Theme['header'];
|
|
77
|
+
declare function practicalUtilityHeader(theme: Theme): Theme['header'];
|
|
78
|
+
declare function minimalTransparentHeader(theme: Theme): Theme['header'];
|
|
79
|
+
declare function transparentOverlayHeader(theme: Theme): Theme['header'];
|
|
80
|
+
declare function floatingGlassHeader(theme: Theme): Theme['header'];
|
|
81
|
+
export declare const headerLookCatalog: readonly [{
|
|
82
|
+
readonly id: HeaderLookId;
|
|
83
|
+
readonly label: "Clean base";
|
|
84
|
+
readonly visualTreatment: "solid-neutral";
|
|
85
|
+
readonly layoutBehavior: "sticky";
|
|
86
|
+
readonly openingRequirement: "none";
|
|
87
|
+
readonly compile: typeof cleanBaseHeader;
|
|
88
|
+
}, {
|
|
89
|
+
readonly id: HeaderLookId;
|
|
90
|
+
readonly label: "Brand solid";
|
|
91
|
+
readonly visualTreatment: "solid-brand";
|
|
92
|
+
readonly layoutBehavior: "sticky-shrink";
|
|
93
|
+
readonly openingRequirement: "none";
|
|
94
|
+
readonly compile: typeof solidBrandHeader;
|
|
95
|
+
}, {
|
|
96
|
+
readonly id: HeaderLookId;
|
|
97
|
+
readonly label: "Editorial line";
|
|
98
|
+
readonly visualTreatment: "light-editorial";
|
|
99
|
+
readonly layoutBehavior: "sticky";
|
|
100
|
+
readonly openingRequirement: "none";
|
|
101
|
+
readonly maxRecommendedNavItems: 6;
|
|
102
|
+
readonly compile: typeof editorialLineHeader;
|
|
103
|
+
}, {
|
|
104
|
+
readonly id: HeaderLookId;
|
|
105
|
+
readonly label: "Centered calm";
|
|
106
|
+
readonly visualTreatment: "light-editorial";
|
|
107
|
+
readonly layoutBehavior: "normal-flow";
|
|
108
|
+
readonly openingRequirement: "none";
|
|
109
|
+
readonly maxRecommendedNavItems: 5;
|
|
110
|
+
readonly allowedLogoShapes: readonly ["none", "text-only", "horizontal", "square"];
|
|
111
|
+
readonly compile: typeof centeredCalmHeader;
|
|
112
|
+
}, {
|
|
113
|
+
readonly id: HeaderLookId;
|
|
114
|
+
readonly label: "Practical utility";
|
|
115
|
+
readonly visualTreatment: "solid-neutral";
|
|
116
|
+
readonly layoutBehavior: "sticky-shrink";
|
|
117
|
+
readonly openingRequirement: "none";
|
|
118
|
+
readonly requiresProminentCta: true;
|
|
119
|
+
readonly compile: typeof practicalUtilityHeader;
|
|
120
|
+
}, {
|
|
121
|
+
readonly id: HeaderLookId;
|
|
122
|
+
readonly label: "Minimal transparent";
|
|
123
|
+
readonly visualTreatment: "minimal-transparent";
|
|
124
|
+
readonly layoutBehavior: "normal-flow";
|
|
125
|
+
readonly openingRequirement: "reserved-space-ok";
|
|
126
|
+
readonly compile: typeof minimalTransparentHeader;
|
|
127
|
+
}, {
|
|
128
|
+
readonly id: HeaderLookId;
|
|
129
|
+
readonly label: "Transparent overlay";
|
|
130
|
+
readonly visualTreatment: "transparent-overlay";
|
|
131
|
+
readonly layoutBehavior: "fixed-overlay";
|
|
132
|
+
readonly openingRequirement: "requires-image-hero-with-contrast-overlay";
|
|
133
|
+
readonly maxRecommendedNavItems: 5;
|
|
134
|
+
readonly allowedLogoShapes: readonly ["none", "text-only", "horizontal"];
|
|
135
|
+
readonly compile: typeof transparentOverlayHeader;
|
|
136
|
+
}, {
|
|
137
|
+
readonly id: HeaderLookId;
|
|
138
|
+
readonly label: "Floating glass";
|
|
139
|
+
readonly visualTreatment: "floating-glass";
|
|
140
|
+
readonly layoutBehavior: "fixed-floating";
|
|
141
|
+
readonly openingRequirement: "requires-image-hero-with-contrast-overlay";
|
|
142
|
+
readonly maxRecommendedNavItems: 5;
|
|
143
|
+
readonly allowedLogoShapes: readonly ["none", "text-only", "horizontal"];
|
|
144
|
+
readonly compile: typeof floatingGlassHeader;
|
|
145
|
+
}];
|
|
146
|
+
export declare const guaranteedFallbackHeaderLookId: HeaderLookId;
|
|
147
|
+
export declare function getHeaderLook(id: HeaderLookId): HeaderLookDefinition | null;
|
|
148
|
+
export declare function findHeaderLook(id: HeaderLookId): HeaderLookDefinition | undefined;
|
|
149
|
+
export declare function getHeaderLookOrThrow(id: HeaderLookId): HeaderLookDefinition;
|
|
150
|
+
export declare function headerLookRequiresImageHeroOpening(look: HeaderLookDefinition): boolean;
|
|
151
|
+
export declare function headerLookUsesOverlayLayout(look: HeaderLookDefinition): boolean;
|
|
152
|
+
export declare function resolveHeaderLook(input: HeaderLookResolutionInput): HeaderSelectionResult;
|
|
153
|
+
export declare function headerLookDiagnosticsFromSelectionResult(result: HeaderSelectionResult): HeaderLookDiagnostics;
|
|
154
|
+
export declare function headerLookRejectionReasonLabel(reason: RejectedHeaderLookReason): string;
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BlockDesignPlan, DesignBlockId, ResolvedBlockDesignPlan } from './types';
|
|
2
|
+
import type { HeaderLookId, HeaderOpeningSectionContext } from './headerLooks';
|
|
3
|
+
export type HeaderOpeningSectionRepair = 'promote-opening-hero-surface' | 'add-opening-contrast-overlay' | 'add-opening-top-spacing';
|
|
4
|
+
export type HeaderOpeningSectionPlan<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
5
|
+
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
6
|
+
repairs: readonly HeaderOpeningSectionRepair[];
|
|
7
|
+
}>;
|
|
8
|
+
export declare function planGeneratedHeaderOpeningSection<TBlockId extends DesignBlockId>(input: Readonly<{
|
|
9
|
+
plan: readonly BlockDesignPlan<TBlockId>[];
|
|
10
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
11
|
+
}>): HeaderOpeningSectionPlan<TBlockId>;
|
|
12
|
+
export declare function deriveHeaderOpeningSectionContext(input: Readonly<{
|
|
13
|
+
openingBlock: ResolvedBlockDesignPlan | null;
|
|
14
|
+
openingContent?: Record<string, unknown> | null;
|
|
15
|
+
}>): HeaderOpeningSectionContext;
|
|
@@ -5,9 +5,13 @@ export * from './contentTemplateDesignIntent';
|
|
|
5
5
|
export * from './contentTemplateRuntimeCompiler';
|
|
6
6
|
export * from './curatedChoices';
|
|
7
7
|
export * from './curatedSiteStyles';
|
|
8
|
+
export * from './customizableSurfaces';
|
|
8
9
|
export * from './designState';
|
|
10
|
+
export * from './footerLooks';
|
|
9
11
|
export * from './generatedSchemas';
|
|
10
12
|
export * from './generatedDesignPipeline';
|
|
13
|
+
export * from './headerLooks';
|
|
14
|
+
export * from './headerOpeningSection';
|
|
11
15
|
export * from './lookResolution';
|
|
12
16
|
export * from './pageDesignAuthority';
|
|
13
17
|
export * from './pageDesignEditorErrors';
|
|
@@ -15,8 +19,10 @@ export * from './pageDesignEditorModel';
|
|
|
15
19
|
export * from './pageDesignIntent';
|
|
16
20
|
export * from './previewCustomization';
|
|
17
21
|
export * from './rawStyleFields';
|
|
22
|
+
export * from './records';
|
|
18
23
|
export * from './resolver';
|
|
19
24
|
export * from './runtimeCompiler';
|
|
25
|
+
export * from './siteStyleBlockPolicies';
|
|
20
26
|
export * from './sourceCatalogs';
|
|
21
27
|
export * from './styleTags';
|
|
22
28
|
export * from './tokenRecipes';
|
|
@@ -36,6 +36,9 @@ export type PageDesignPublishPlan = Readonly<{
|
|
|
36
36
|
/** Persisted as content_versions.data for the page-owned published design row. */
|
|
37
37
|
versionData: PublishedPageDesignVersionDataV1;
|
|
38
38
|
}>;
|
|
39
|
+
export type PublishedPageDesignVersionDataPlan = Result<PublishedPageDesignVersionDataV1, Extract<PageDesignPublishBlocker, {
|
|
40
|
+
kind: 'missing-published-block-content';
|
|
41
|
+
}>>;
|
|
39
42
|
export type PageDesignRuntimePairingIssue = Readonly<{
|
|
40
43
|
kind: 'missing-current-block';
|
|
41
44
|
persisted: PublishedPageBlockSnapshot;
|
|
@@ -258,6 +261,10 @@ export declare function buildPageDesignPublishPlan(input: Readonly<{
|
|
|
258
261
|
authority: PageDesignAuthority;
|
|
259
262
|
blockSequence: readonly PageBlockSnapshot[];
|
|
260
263
|
}>): Result<PageDesignPublishPlan, PageDesignPublishBlocker>;
|
|
264
|
+
export declare function buildPublishedPageDesignVersionData(input: Readonly<{
|
|
265
|
+
pageId: DesignPageId;
|
|
266
|
+
blockSequence: readonly PageBlockSnapshot[];
|
|
267
|
+
}>): PublishedPageDesignVersionDataPlan;
|
|
261
268
|
export declare function buildPageDesignRuntimePairingPlan(input: Readonly<{
|
|
262
269
|
versionData: PublishedPageDesignVersionDataV1;
|
|
263
270
|
currentBlockSequence: readonly PageBlockSnapshot[];
|
|
@@ -53,6 +53,10 @@ export type PageDesignEditorLayoutOption = Readonly<{
|
|
|
53
53
|
label: string;
|
|
54
54
|
profile: BlockLayoutDesignProfile;
|
|
55
55
|
}>;
|
|
56
|
+
export type PageDesignEditorLooksForLayout = Readonly<{
|
|
57
|
+
layoutVariantKey: LayoutVariantKey;
|
|
58
|
+
availableLooks: readonly PageDesignEditorLookOption[];
|
|
59
|
+
}>;
|
|
56
60
|
export type PageDesignEditorBlockContentRevision = Readonly<{
|
|
57
61
|
contentId: string | null;
|
|
58
62
|
}>;
|
|
@@ -62,6 +66,7 @@ export type PageDesignEditorBlock<TBlockId extends DesignBlockId = DesignBlockId
|
|
|
62
66
|
contentRevision?: PageDesignEditorBlockContentRevision;
|
|
63
67
|
layout: PageDesignEditorSelection<LayoutVariantKey> | null;
|
|
64
68
|
availableLayouts: readonly PageDesignEditorLayoutOption[];
|
|
69
|
+
availableLooksByLayout: readonly PageDesignEditorLooksForLayout[];
|
|
65
70
|
look: PageDesignEditorChoice<AppearancePresetId>;
|
|
66
71
|
availableLooks: readonly PageDesignEditorLookOption[];
|
|
67
72
|
}>;
|
|
@@ -164,3 +169,23 @@ export declare function resolveVisiblePromotedFieldPathsForEditorBlock(input: Re
|
|
|
164
169
|
block: PageDesignEditorBlock;
|
|
165
170
|
promotedFieldPaths?: readonly string[];
|
|
166
171
|
}>): readonly string[];
|
|
172
|
+
export type PageDesignLayoutLookIntentChange = Readonly<{
|
|
173
|
+
kind: 'preserve-auto';
|
|
174
|
+
}> | Readonly<{
|
|
175
|
+
kind: 'preserve-supported-pin';
|
|
176
|
+
appearancePresetId: AppearancePresetId;
|
|
177
|
+
}> | Readonly<{
|
|
178
|
+
kind: 'reset-incompatible-pin';
|
|
179
|
+
previousAppearancePresetId: AppearancePresetId;
|
|
180
|
+
}>;
|
|
181
|
+
export type PageDesignLayoutLookCompatibilityPlan = Readonly<{
|
|
182
|
+
kind: 'layout-unavailable';
|
|
183
|
+
layoutVariantKey: LayoutVariantKey;
|
|
184
|
+
}> | Readonly<{
|
|
185
|
+
kind: 'layout-supported';
|
|
186
|
+
layout: PageDesignEditorSelection<LayoutVariantKey>;
|
|
187
|
+
availableLooks: readonly PageDesignEditorLookOption[];
|
|
188
|
+
look: PageDesignEditorChoice<AppearancePresetId>;
|
|
189
|
+
lookIntentChange: PageDesignLayoutLookIntentChange;
|
|
190
|
+
}>;
|
|
191
|
+
export declare function planPageDesignLayoutLookCompatibility(block: PageDesignEditorBlock, layoutVariantKey: LayoutVariantKey): PageDesignLayoutLookCompatibilityPlan;
|
|
@@ -3,6 +3,8 @@ import { type Theme } from '../schema';
|
|
|
3
3
|
import { type ButtonPersonalityId } from '../buttons/personalities';
|
|
4
4
|
import { type PaletteOverrides, type PaletteVariantId } from '../palette/variants';
|
|
5
5
|
import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
6
|
+
import { type FooterLookId, type FooterSelectionContext, type FooterSelectionResult } from './footerLooks';
|
|
7
|
+
import { type HeaderSelectionContext, type HeaderLookId, type HeaderSelectionResult } from './headerLooks';
|
|
6
8
|
import { type CompiledBlockRuntimeFields, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing } from './runtimeCompiler';
|
|
7
9
|
import type { AppearancePresetId, DesignBlockId, SiteStyleId } from './types';
|
|
8
10
|
/**
|
|
@@ -16,7 +18,7 @@ import type { AppearancePresetId, DesignBlockId, SiteStyleId } from './types';
|
|
|
16
18
|
export { defineBlockDesignMetadata, type BlockDesignMetadata, type BlockDesignMetadataInput, type BlockDesignMetadataMap, type BlockFlowBoundaryPreference, type BlockFlowContract, type BlockFlowSurfaceBehavior, type BlockFlowWeight, type BlockLayoutBoundaryBias, type BlockLayoutDesignProfile, type BlockLayoutDesignProfileInput, type BlockLayoutFamily, type BlockLayoutVisualWeight, type PageFlowRole, } from './blockFlow';
|
|
17
19
|
export { buildPageDesignEditorReadModel, boundaryOptions, pageFlowPresets, type BoundaryOption, type PageDesignEditorBlock, type PageDesignEditorBoundary, type PageDesignEditorChoice, type PageDesignEditorIssue, type PageDesignEditorReadModel, type PageDesignEditorSelection, type PageFlowPreset, } from './pageDesignEditorModel';
|
|
18
20
|
export { autoDesignChoice, reducePageDesignIntentForUserAction, resolvePageDesignBlockLookChoice, resolvePageDesignBoundaryChoice, userPinnedDesignChoice, type PageDesignChoice, type PageDesignIntent, type PageDesignUserAction, } from './pageDesignIntent';
|
|
19
|
-
export { repairDesignIssue, resolveBlockDesignPlan
|
|
21
|
+
export { repairDesignIssue, resolveBlockDesignPlan } from './resolver';
|
|
20
22
|
export { cycleableOptionsFromResolved, deriveDesignCustomizationScope, recommendedDesignOption, type CycleableDesignOption, type CycleableOptions, type DesignCustomizationAuthority, type DesignCustomizationScope, type DesignCustomizationSurface, type DesignCustomizationUnsupportedReason, type DesignOptionIssue, type ResolvedDesignOption, } from './previewCustomization';
|
|
21
23
|
export { compileBlockRuntimeFields, compilePageRuntimeFields, compileTokenRecipes, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, } from './runtimeCompiler';
|
|
22
24
|
export { defaultCuratedChoice, requireEntriesForCuratedChoices, resolveCuratedChoice, type CuratedChoice, type CuratedChoiceResolution, } from './curatedChoices';
|
|
@@ -52,13 +54,25 @@ export type SiteThemeSelectionsInput = Readonly<{
|
|
|
52
54
|
buttonPersonalityId: ButtonPersonalityId | null;
|
|
53
55
|
paletteVariantId: PaletteVariantId | null;
|
|
54
56
|
paletteOverrides: PaletteOverrides | null;
|
|
57
|
+
headerLookId?: HeaderLookId | null;
|
|
58
|
+
footerLookId?: FooterLookId | null;
|
|
59
|
+
headerSelectionContext?: Partial<HeaderSelectionContext>;
|
|
60
|
+
footerSelectionContext?: Partial<FooterSelectionContext>;
|
|
55
61
|
}>;
|
|
56
62
|
export type SiteThemeSelectionsResult = Readonly<{
|
|
57
63
|
theme: CuratedSiteStyleTheme;
|
|
64
|
+
requestedSelections: Readonly<{
|
|
65
|
+
headerLookId: HeaderLookId | null;
|
|
66
|
+
footerLookId: FooterLookId | null;
|
|
67
|
+
}>;
|
|
58
68
|
resolvedSelections: Readonly<{
|
|
59
69
|
buttonPersonalityId: ButtonPersonalityId;
|
|
60
70
|
paletteVariantId: PaletteVariantId;
|
|
71
|
+
headerLookId: HeaderLookId;
|
|
72
|
+
footerLookId: FooterLookId;
|
|
61
73
|
}>;
|
|
74
|
+
headerSelection: HeaderSelectionResult;
|
|
75
|
+
footerSelection: FooterSelectionResult;
|
|
62
76
|
warnings: ReadonlyArray<SelectionFallbackWarning>;
|
|
63
77
|
}>;
|
|
64
78
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
@@ -74,6 +74,14 @@ export declare const defaultDesignRuntimeRules: {
|
|
|
74
74
|
readonly headingColor: "primaryForeground";
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
readonly 'brand-depth-band': {
|
|
78
|
+
readonly background: {
|
|
79
|
+
readonly type: "color";
|
|
80
|
+
readonly color: "primary-800";
|
|
81
|
+
readonly textColor: "primaryForeground";
|
|
82
|
+
readonly headingColor: "primaryForeground";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
77
85
|
readonly 'hero-image': {
|
|
78
86
|
readonly background: {
|
|
79
87
|
readonly type: "image";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { BlockLayoutDesignProfile } from './blockFlow';
|
|
2
|
+
import { autoDesignChoice, type PageDesignBlockDescriptor, type PageDesignIntent, type PageDesignUserPinnedChoice } from './pageDesignIntent';
|
|
3
|
+
import { type AppearancePresetId, type BoundaryOptionId, type DesignBlockId, type LayoutVariantKey, type SiteStyleId } from './types';
|
|
4
|
+
export declare const defaultPolicyPageFlowPresetId: import("@riverbankcms/blocks").PageFlowPresetId;
|
|
5
|
+
export type OpenSiteStyleBlockPolicy = Readonly<{
|
|
6
|
+
kind: 'open';
|
|
7
|
+
}>;
|
|
8
|
+
export type LockedLookAndLayoutsSiteStyleBlockPolicy = Readonly<{
|
|
9
|
+
kind: 'locked-look-and-layouts';
|
|
10
|
+
blockKind: string;
|
|
11
|
+
lookId: AppearancePresetId;
|
|
12
|
+
allowedLayoutVariantKeys: readonly LayoutVariantKey[];
|
|
13
|
+
defaultLayoutVariantKey: LayoutVariantKey;
|
|
14
|
+
defaultBoundaryAfter?: Readonly<{
|
|
15
|
+
optionId: BoundaryOptionId;
|
|
16
|
+
mode: 'default-only';
|
|
17
|
+
}>;
|
|
18
|
+
customize: Readonly<{
|
|
19
|
+
hideDisallowedLooks: true;
|
|
20
|
+
hideDisallowedLayouts: true;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
export type SiteStyleBlockPolicy = OpenSiteStyleBlockPolicy | LockedLookAndLayoutsSiteStyleBlockPolicy;
|
|
24
|
+
type RegisteredSiteStyleBlockPolicy = LockedLookAndLayoutsSiteStyleBlockPolicy & Readonly<{
|
|
25
|
+
siteStyleId: SiteStyleId;
|
|
26
|
+
}>;
|
|
27
|
+
export type BlockPolicyDescriptor<TBlockId extends DesignBlockId = DesignBlockId> = PageDesignBlockDescriptor<TBlockId> & Readonly<{
|
|
28
|
+
currentLayoutVariantKey?: LayoutVariantKey | null;
|
|
29
|
+
layoutProfiles?: readonly BlockLayoutDesignProfile[] | null;
|
|
30
|
+
}>;
|
|
31
|
+
export type BlockContentVariantPolicyPlan = Readonly<{
|
|
32
|
+
kind: 'unchanged';
|
|
33
|
+
}> | Readonly<{
|
|
34
|
+
kind: 'set-variant';
|
|
35
|
+
variantKey: LayoutVariantKey;
|
|
36
|
+
}>;
|
|
37
|
+
export type PageDesignPolicyAuditIssue<TBlockId extends DesignBlockId = DesignBlockId> = Readonly<{
|
|
38
|
+
kind: 'missing-page-design-authority';
|
|
39
|
+
siteStyleId: SiteStyleId;
|
|
40
|
+
policyBlockCount: number;
|
|
41
|
+
}> | Readonly<{
|
|
42
|
+
kind: 'missing-required-look-pin';
|
|
43
|
+
blockId: TBlockId;
|
|
44
|
+
blockKind: string;
|
|
45
|
+
requiredLookId: AppearancePresetId;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
kind: 'unsupported-look-pin';
|
|
48
|
+
blockId: TBlockId;
|
|
49
|
+
blockKind: string;
|
|
50
|
+
actualLookId: AppearancePresetId;
|
|
51
|
+
requiredLookId: AppearancePresetId;
|
|
52
|
+
}> | Readonly<{
|
|
53
|
+
kind: 'unsupported-layout-variant';
|
|
54
|
+
blockId: TBlockId;
|
|
55
|
+
blockKind: string;
|
|
56
|
+
actualLayoutVariantKey: LayoutVariantKey;
|
|
57
|
+
defaultLayoutVariantKey: LayoutVariantKey;
|
|
58
|
+
}>;
|
|
59
|
+
export declare function siteStyleBlockPolicies(): readonly RegisteredSiteStyleBlockPolicy[];
|
|
60
|
+
export declare function buildInitialPolicyPageDesignIntent(siteStyleId: SiteStyleId): PageDesignIntent;
|
|
61
|
+
export declare function hasPolicyForBlocks(input: Readonly<{
|
|
62
|
+
siteStyleId: SiteStyleId;
|
|
63
|
+
blocks: readonly PageDesignBlockDescriptor[];
|
|
64
|
+
}>): boolean;
|
|
65
|
+
export declare function deriveSiteStyleBlockPolicy(input: Readonly<{
|
|
66
|
+
siteStyleId: SiteStyleId;
|
|
67
|
+
blockKind: string;
|
|
68
|
+
}>): SiteStyleBlockPolicy;
|
|
69
|
+
export declare function isLayoutVariantAllowedByPolicy(policy: SiteStyleBlockPolicy, layoutVariantKey: LayoutVariantKey): boolean;
|
|
70
|
+
export declare function normalizeLayoutVariantForPolicy(policy: SiteStyleBlockPolicy, layoutVariantKey: LayoutVariantKey | null | undefined): LayoutVariantKey | null;
|
|
71
|
+
export declare function filterLayoutProfilesForPolicy(policy: SiteStyleBlockPolicy, layoutProfiles: readonly BlockLayoutDesignProfile[]): readonly BlockLayoutDesignProfile[];
|
|
72
|
+
export declare function isLookAllowedByPolicy(policy: SiteStyleBlockPolicy, lookId: AppearancePresetId): boolean;
|
|
73
|
+
export declare function filterLookIdsForPolicy<TLook extends Readonly<{
|
|
74
|
+
id: AppearancePresetId;
|
|
75
|
+
}>>(policy: SiteStyleBlockPolicy, looks: readonly TLook[]): readonly TLook[];
|
|
76
|
+
export declare function applySiteStyleBlockPoliciesToPageDesignIntent<TBlockId extends DesignBlockId>(intent: PageDesignIntent<TBlockId>, blocks: readonly PageDesignBlockDescriptor<TBlockId>[]): PageDesignIntent<TBlockId>;
|
|
77
|
+
export declare function planBlockContentVariantPolicyUpdate(input: Readonly<{
|
|
78
|
+
policy: SiteStyleBlockPolicy;
|
|
79
|
+
content: Readonly<Record<string, unknown>>;
|
|
80
|
+
}>): BlockContentVariantPolicyPlan;
|
|
81
|
+
export declare function applyBlockContentVariantPolicy(input: Readonly<{
|
|
82
|
+
policy: SiteStyleBlockPolicy;
|
|
83
|
+
content: Readonly<Record<string, unknown>>;
|
|
84
|
+
}>): Readonly<Record<string, unknown>>;
|
|
85
|
+
export declare function auditPageDesignIntentPolicy<TBlockId extends DesignBlockId>(input: Readonly<{
|
|
86
|
+
intent: PageDesignIntent<TBlockId>;
|
|
87
|
+
blocks: readonly BlockPolicyDescriptor<TBlockId>[];
|
|
88
|
+
}>): readonly PageDesignPolicyAuditIssue<TBlockId>[];
|
|
89
|
+
export declare function auditPageDesignAuthorityPolicy<TBlockId extends DesignBlockId>(input: Readonly<{
|
|
90
|
+
siteStyleId: SiteStyleId;
|
|
91
|
+
intent: PageDesignIntent<TBlockId> | null;
|
|
92
|
+
blocks: readonly BlockPolicyDescriptor<TBlockId>[];
|
|
93
|
+
}>): readonly PageDesignPolicyAuditIssue<TBlockId>[];
|
|
94
|
+
export declare function assertRegisteredSiteStyleBlockPoliciesAreValid(): void;
|
|
95
|
+
export declare function autoChoiceAllowedByPolicy(policy: SiteStyleBlockPolicy): ReturnType<typeof autoDesignChoice> | PageDesignUserPinnedChoice<AppearancePresetId>;
|
|
96
|
+
export {};
|
|
@@ -21,7 +21,7 @@ export type AdvancedDesignOptionCatalog = DesignOptionCatalog<'advanced', SiteSt
|
|
|
21
21
|
export type DesignOptionCatalogForSource<TSource extends DesignChoiceSource> = TSource extends 'generated' ? GeneratedDesignOptionCatalog : TSource extends 'user' ? UserDesignOptionCatalog : TSource extends 'advanced' ? AdvancedDesignOptionCatalog : never;
|
|
22
22
|
export declare const generatedDesignOptionCatalog: {
|
|
23
23
|
readonly source: "generated";
|
|
24
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
24
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
25
25
|
readonly contentFrames: readonly [{
|
|
26
26
|
readonly kind: "plain";
|
|
27
27
|
}, Readonly<{
|
|
@@ -42,7 +42,7 @@ export declare const generatedDesignOptionCatalog: {
|
|
|
42
42
|
};
|
|
43
43
|
export declare const userDesignOptionCatalog: {
|
|
44
44
|
readonly source: "user";
|
|
45
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
45
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
46
46
|
readonly contentFrames: readonly [{
|
|
47
47
|
readonly kind: "plain";
|
|
48
48
|
}, Readonly<{
|
|
@@ -74,7 +74,7 @@ export declare const userDesignOptionCatalog: {
|
|
|
74
74
|
};
|
|
75
75
|
export declare const advancedDesignOptionCatalog: {
|
|
76
76
|
readonly source: "advanced";
|
|
77
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
77
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
78
78
|
readonly contentFrames: readonly [{
|
|
79
79
|
readonly kind: "plain";
|
|
80
80
|
}, Readonly<{
|
|
@@ -107,7 +107,7 @@ export declare const advancedDesignOptionCatalog: {
|
|
|
107
107
|
export declare const designOptionCatalogs: {
|
|
108
108
|
readonly generated: {
|
|
109
109
|
readonly source: "generated";
|
|
110
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
110
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
111
111
|
readonly contentFrames: readonly [{
|
|
112
112
|
readonly kind: "plain";
|
|
113
113
|
}, Readonly<{
|
|
@@ -128,7 +128,7 @@ export declare const designOptionCatalogs: {
|
|
|
128
128
|
};
|
|
129
129
|
readonly user: {
|
|
130
130
|
readonly source: "user";
|
|
131
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
131
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
132
132
|
readonly contentFrames: readonly [{
|
|
133
133
|
readonly kind: "plain";
|
|
134
134
|
}, Readonly<{
|
|
@@ -160,7 +160,7 @@ export declare const designOptionCatalogs: {
|
|
|
160
160
|
};
|
|
161
161
|
readonly advanced: {
|
|
162
162
|
readonly source: "advanced";
|
|
163
|
-
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "hero-image"];
|
|
163
|
+
readonly sectionSurfaces: readonly ["base", "muted-band", "accent-band", "brand-depth-band", "hero-image"];
|
|
164
164
|
readonly contentFrames: readonly [{
|
|
165
165
|
readonly kind: "plain";
|
|
166
166
|
}, Readonly<{
|