@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
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
export declare const blockAppearancePresets: readonly [{
|
|
2
|
+
readonly kind: "block-design";
|
|
3
|
+
readonly id: "hero-immersive-image";
|
|
4
|
+
readonly target: "hero";
|
|
5
|
+
readonly label: "Immersive image hero";
|
|
6
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
7
|
+
readonly constraints: {
|
|
8
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
9
|
+
};
|
|
10
|
+
readonly design: {
|
|
11
|
+
readonly sectionSurface: "hero-image";
|
|
12
|
+
readonly contentFrame: {
|
|
13
|
+
readonly kind: "plain";
|
|
14
|
+
};
|
|
15
|
+
readonly itemSurface: "none";
|
|
16
|
+
readonly transitionAfter: "soft-fade-short";
|
|
17
|
+
readonly emphasis: "high";
|
|
18
|
+
readonly sectionHeight: "hero";
|
|
19
|
+
readonly imageSurfaceTreatment: {
|
|
20
|
+
readonly kind: "neutral-wash";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
readonly kind: "block-design";
|
|
25
|
+
readonly id: "hero-brand-scrim";
|
|
26
|
+
readonly target: "hero";
|
|
27
|
+
readonly label: "Brand scrim image hero";
|
|
28
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
29
|
+
readonly constraints: {
|
|
30
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
31
|
+
};
|
|
32
|
+
readonly optionGroups: readonly [{
|
|
33
|
+
readonly id: "image-surface-treatment";
|
|
34
|
+
readonly label: "Treatment";
|
|
35
|
+
readonly selectedOptionId: "brand-scrim-primary";
|
|
36
|
+
readonly options: readonly [{
|
|
37
|
+
readonly id: "brand-scrim-primary";
|
|
38
|
+
readonly label: "Brand scrim";
|
|
39
|
+
readonly designPatch: {
|
|
40
|
+
readonly imageSurfaceTreatment: {
|
|
41
|
+
readonly kind: "brand-scrim";
|
|
42
|
+
readonly token: "primary";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
readonly id: "neutral-scrim";
|
|
47
|
+
readonly label: "Neutral scrim";
|
|
48
|
+
readonly designPatch: {
|
|
49
|
+
readonly imageSurfaceTreatment: {
|
|
50
|
+
readonly kind: "neutral-scrim";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}];
|
|
54
|
+
}];
|
|
55
|
+
readonly layoutPatches: readonly [{
|
|
56
|
+
readonly constraints: {
|
|
57
|
+
readonly layoutVariantKeys: readonly ["micro"];
|
|
58
|
+
};
|
|
59
|
+
readonly designPatch: {
|
|
60
|
+
readonly sectionHeight: "banner";
|
|
61
|
+
};
|
|
62
|
+
}];
|
|
63
|
+
readonly design: {
|
|
64
|
+
readonly sectionSurface: "hero-image";
|
|
65
|
+
readonly contentFrame: {
|
|
66
|
+
readonly kind: "plain";
|
|
67
|
+
};
|
|
68
|
+
readonly itemSurface: "none";
|
|
69
|
+
readonly transitionAfter: "soft-fade-short";
|
|
70
|
+
readonly emphasis: "high";
|
|
71
|
+
readonly sectionHeight: "immersive";
|
|
72
|
+
readonly imageSurfaceTreatment: {
|
|
73
|
+
readonly kind: "brand-scrim";
|
|
74
|
+
readonly token: "primary";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
readonly kind: "block-design";
|
|
79
|
+
readonly id: "hero-brand-scrim-fixed-frame";
|
|
80
|
+
readonly target: "hero";
|
|
81
|
+
readonly label: "Fixed-frame brand scrim hero";
|
|
82
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
83
|
+
readonly constraints: {
|
|
84
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
85
|
+
};
|
|
86
|
+
readonly optionGroups: readonly [{
|
|
87
|
+
readonly id: "image-surface-treatment";
|
|
88
|
+
readonly label: "Treatment";
|
|
89
|
+
readonly selectedOptionId: "brand-scrim-primary";
|
|
90
|
+
readonly options: readonly [{
|
|
91
|
+
readonly id: "brand-scrim-primary";
|
|
92
|
+
readonly label: "Brand scrim";
|
|
93
|
+
readonly designPatch: {
|
|
94
|
+
readonly imageSurfaceTreatment: {
|
|
95
|
+
readonly kind: "brand-scrim";
|
|
96
|
+
readonly token: "primary";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
readonly id: "neutral-scrim";
|
|
101
|
+
readonly label: "Neutral scrim";
|
|
102
|
+
readonly designPatch: {
|
|
103
|
+
readonly imageSurfaceTreatment: {
|
|
104
|
+
readonly kind: "neutral-scrim";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}];
|
|
108
|
+
}];
|
|
109
|
+
readonly layoutPatches: readonly [{
|
|
110
|
+
readonly constraints: {
|
|
111
|
+
readonly layoutVariantKeys: readonly ["micro"];
|
|
112
|
+
};
|
|
113
|
+
readonly designPatch: {
|
|
114
|
+
readonly sectionHeight: "banner";
|
|
115
|
+
};
|
|
116
|
+
}];
|
|
117
|
+
readonly design: {
|
|
118
|
+
readonly sectionSurface: "hero-image";
|
|
119
|
+
readonly contentFrame: {
|
|
120
|
+
readonly kind: "plain";
|
|
121
|
+
};
|
|
122
|
+
readonly itemSurface: "none";
|
|
123
|
+
readonly transitionAfter: "soft-fade-short";
|
|
124
|
+
readonly emphasis: "high";
|
|
125
|
+
readonly sectionHeight: "immersive";
|
|
126
|
+
readonly imageSurfaceTreatment: {
|
|
127
|
+
readonly kind: "brand-scrim";
|
|
128
|
+
readonly token: "primary";
|
|
129
|
+
};
|
|
130
|
+
readonly imageSurfaceMotion: "fixed-frame";
|
|
131
|
+
readonly eyebrowTreatment: "accent-pill-bounce";
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
readonly kind: "block-design";
|
|
135
|
+
readonly id: "hero-brand-depth-expressive";
|
|
136
|
+
readonly target: "hero";
|
|
137
|
+
readonly label: "Expressive brand-depth hero";
|
|
138
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
139
|
+
readonly constraints: {
|
|
140
|
+
readonly layoutFamilies: readonly ["centered", "compact"];
|
|
141
|
+
};
|
|
142
|
+
readonly design: {
|
|
143
|
+
readonly sectionSurface: "brand-depth-band";
|
|
144
|
+
readonly contentFrame: {
|
|
145
|
+
readonly kind: "plain";
|
|
146
|
+
};
|
|
147
|
+
readonly itemSurface: "none";
|
|
148
|
+
readonly transitionAfter: "soft-fade-short";
|
|
149
|
+
readonly emphasis: "high";
|
|
150
|
+
readonly eyebrowTreatment: "accent-pill-bounce";
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
readonly kind: "block-design";
|
|
154
|
+
readonly id: "hero-contained-intro";
|
|
155
|
+
readonly target: "hero";
|
|
156
|
+
readonly label: "Contained intro hero";
|
|
157
|
+
readonly blockKinds: readonly ["block.hero"];
|
|
158
|
+
readonly design: {
|
|
159
|
+
readonly sectionSurface: "muted-band";
|
|
160
|
+
readonly contentFrame: Readonly<{
|
|
161
|
+
kind: "panel";
|
|
162
|
+
treatment: "inset";
|
|
163
|
+
}>;
|
|
164
|
+
readonly itemSurface: "none";
|
|
165
|
+
readonly transitionAfter: "none";
|
|
166
|
+
readonly emphasis: "high";
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
readonly kind: "block-design";
|
|
170
|
+
readonly id: "body-text-editorial-intro";
|
|
171
|
+
readonly target: "body-text";
|
|
172
|
+
readonly label: "Editorial intro copy";
|
|
173
|
+
readonly blockKinds: readonly ["block.body-text"];
|
|
174
|
+
readonly design: {
|
|
175
|
+
readonly sectionSurface: "base";
|
|
176
|
+
readonly contentFrame: {
|
|
177
|
+
readonly kind: "plain";
|
|
178
|
+
};
|
|
179
|
+
readonly itemSurface: "none";
|
|
180
|
+
readonly transitionAfter: "soft-fade-short";
|
|
181
|
+
readonly emphasis: "high";
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
readonly kind: "block-design";
|
|
185
|
+
readonly id: "body-text-brand-depth-intro";
|
|
186
|
+
readonly target: "body-text";
|
|
187
|
+
readonly label: "Brand-depth intro copy";
|
|
188
|
+
readonly blockKinds: readonly ["block.body-text"];
|
|
189
|
+
readonly design: {
|
|
190
|
+
readonly sectionSurface: "brand-depth-band";
|
|
191
|
+
readonly contentFrame: {
|
|
192
|
+
readonly kind: "plain";
|
|
193
|
+
};
|
|
194
|
+
readonly itemSurface: "none";
|
|
195
|
+
readonly transitionAfter: "soft-fade-short";
|
|
196
|
+
readonly emphasis: "high";
|
|
197
|
+
};
|
|
198
|
+
}, {
|
|
199
|
+
readonly kind: "block-design";
|
|
200
|
+
readonly id: "offerings-calm-list";
|
|
201
|
+
readonly target: "offerings";
|
|
202
|
+
readonly label: "Calm offerings list";
|
|
203
|
+
readonly blockKinds: readonly ["block.event-listing", "block.event-calendar", "block.event-spotlight", "block.product-list"];
|
|
204
|
+
readonly design: {
|
|
205
|
+
readonly sectionSurface: "muted-band";
|
|
206
|
+
readonly contentFrame: {
|
|
207
|
+
readonly kind: "plain";
|
|
208
|
+
};
|
|
209
|
+
readonly itemSurface: "none";
|
|
210
|
+
readonly transitionAfter: "soft-fade-short";
|
|
211
|
+
readonly emphasis: "medium";
|
|
212
|
+
};
|
|
213
|
+
}, {
|
|
214
|
+
readonly kind: "block-design";
|
|
215
|
+
readonly id: "events-base-calendar";
|
|
216
|
+
readonly target: "events";
|
|
217
|
+
readonly label: "Base event calendar";
|
|
218
|
+
readonly blockKinds: readonly ["block.event-calendar", "block.event-listing"];
|
|
219
|
+
readonly design: {
|
|
220
|
+
readonly sectionSurface: "base";
|
|
221
|
+
readonly contentFrame: {
|
|
222
|
+
readonly kind: "plain";
|
|
223
|
+
};
|
|
224
|
+
readonly itemSurface: "none";
|
|
225
|
+
readonly transitionAfter: "none";
|
|
226
|
+
readonly emphasis: "medium";
|
|
227
|
+
};
|
|
228
|
+
}, {
|
|
229
|
+
readonly kind: "block-design";
|
|
230
|
+
readonly id: "schedule-details-accent-section";
|
|
231
|
+
readonly target: "events";
|
|
232
|
+
readonly label: "Accent schedule details";
|
|
233
|
+
readonly blockKinds: readonly ["block.event-details", "block.course-details"];
|
|
234
|
+
readonly design: {
|
|
235
|
+
readonly sectionSurface: "accent-band";
|
|
236
|
+
readonly contentFrame: {
|
|
237
|
+
readonly kind: "plain";
|
|
238
|
+
};
|
|
239
|
+
readonly itemSurface: "none";
|
|
240
|
+
readonly transitionAfter: "none";
|
|
241
|
+
readonly emphasis: "medium";
|
|
242
|
+
};
|
|
243
|
+
}, {
|
|
244
|
+
readonly kind: "block-design";
|
|
245
|
+
readonly id: "schedule-details-brand-depth";
|
|
246
|
+
readonly target: "events";
|
|
247
|
+
readonly label: "Brand-depth schedule details";
|
|
248
|
+
readonly blockKinds: readonly ["block.event-details", "block.course-details"];
|
|
249
|
+
readonly design: {
|
|
250
|
+
readonly sectionSurface: "brand-depth-band";
|
|
251
|
+
readonly contentFrame: {
|
|
252
|
+
readonly kind: "plain";
|
|
253
|
+
};
|
|
254
|
+
readonly itemSurface: "none";
|
|
255
|
+
readonly transitionAfter: "none";
|
|
256
|
+
readonly emphasis: "medium";
|
|
257
|
+
readonly tileTreatment: "brand-depth";
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
readonly kind: "block-design";
|
|
261
|
+
readonly id: "media-text-flush-feature";
|
|
262
|
+
readonly target: "media-text";
|
|
263
|
+
readonly label: "Flush media feature";
|
|
264
|
+
readonly blockKinds: readonly ["block.media-text"];
|
|
265
|
+
readonly design: {
|
|
266
|
+
readonly sectionSurface: "muted-band";
|
|
267
|
+
readonly contentFrame: Readonly<{
|
|
268
|
+
kind: "flush-panel";
|
|
269
|
+
treatment: import("@riverbankcms/blocks").FlushFrameTreatment;
|
|
270
|
+
bleed: "start";
|
|
271
|
+
}>;
|
|
272
|
+
readonly itemSurface: "none";
|
|
273
|
+
readonly transitionAfter: "none";
|
|
274
|
+
readonly emphasis: "high";
|
|
275
|
+
};
|
|
276
|
+
}, {
|
|
277
|
+
readonly kind: "block-design";
|
|
278
|
+
readonly id: "media-text-quiet-story";
|
|
279
|
+
readonly target: "media-text";
|
|
280
|
+
readonly label: "Quiet media story";
|
|
281
|
+
readonly blockKinds: readonly ["block.media-text"];
|
|
282
|
+
readonly design: {
|
|
283
|
+
readonly sectionSurface: "base";
|
|
284
|
+
readonly contentFrame: {
|
|
285
|
+
readonly kind: "plain";
|
|
286
|
+
};
|
|
287
|
+
readonly itemSurface: "none";
|
|
288
|
+
readonly transitionAfter: "soft-fade-short";
|
|
289
|
+
readonly emphasis: "medium";
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
readonly kind: "block-design";
|
|
293
|
+
readonly id: "testimonials-carded-proof";
|
|
294
|
+
readonly target: "testimonials";
|
|
295
|
+
readonly label: "Carded social proof";
|
|
296
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
297
|
+
readonly design: {
|
|
298
|
+
readonly sectionSurface: "base";
|
|
299
|
+
readonly contentFrame: {
|
|
300
|
+
readonly kind: "plain";
|
|
301
|
+
};
|
|
302
|
+
readonly itemSurface: "default";
|
|
303
|
+
readonly transitionAfter: "none";
|
|
304
|
+
readonly emphasis: "medium";
|
|
305
|
+
};
|
|
306
|
+
}, {
|
|
307
|
+
readonly kind: "block-design";
|
|
308
|
+
readonly id: "testimonials-contained-proof";
|
|
309
|
+
readonly target: "testimonials";
|
|
310
|
+
readonly label: "Contained social proof";
|
|
311
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
312
|
+
readonly design: {
|
|
313
|
+
readonly sectionSurface: "muted-band";
|
|
314
|
+
readonly contentFrame: Readonly<{
|
|
315
|
+
kind: "panel";
|
|
316
|
+
treatment: "raised";
|
|
317
|
+
}>;
|
|
318
|
+
readonly itemSurface: "raised";
|
|
319
|
+
readonly transitionAfter: "soft-fade-short";
|
|
320
|
+
readonly emphasis: "high";
|
|
321
|
+
};
|
|
322
|
+
}, {
|
|
323
|
+
readonly kind: "block-design";
|
|
324
|
+
readonly id: "testimonials-dark-proof";
|
|
325
|
+
readonly target: "testimonials";
|
|
326
|
+
readonly label: "Dark proof panel";
|
|
327
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
328
|
+
readonly design: {
|
|
329
|
+
readonly sectionSurface: "accent-band";
|
|
330
|
+
readonly contentFrame: Readonly<{
|
|
331
|
+
kind: "panel";
|
|
332
|
+
treatment: "raised";
|
|
333
|
+
}>;
|
|
334
|
+
readonly itemSurface: "raised";
|
|
335
|
+
readonly transitionAfter: "soft-fade-short";
|
|
336
|
+
readonly emphasis: "high";
|
|
337
|
+
};
|
|
338
|
+
}, {
|
|
339
|
+
readonly kind: "block-design";
|
|
340
|
+
readonly id: "testimonials-accent-quote-proof";
|
|
341
|
+
readonly target: "testimonials";
|
|
342
|
+
readonly label: "Accent quote proof";
|
|
343
|
+
readonly blockKinds: readonly ["block.testimonials"];
|
|
344
|
+
readonly design: {
|
|
345
|
+
readonly sectionSurface: "accent-band";
|
|
346
|
+
readonly contentFrame: {
|
|
347
|
+
readonly kind: "plain";
|
|
348
|
+
};
|
|
349
|
+
readonly itemSurface: "raised";
|
|
350
|
+
readonly transitionAfter: "soft-fade-short";
|
|
351
|
+
readonly emphasis: "high";
|
|
352
|
+
readonly testimonialCardTreatment: "accent-quote";
|
|
353
|
+
};
|
|
354
|
+
}, {
|
|
355
|
+
readonly kind: "block-design";
|
|
356
|
+
readonly id: "faq-base-accordion";
|
|
357
|
+
readonly target: "faq";
|
|
358
|
+
readonly label: "Base accordion FAQ";
|
|
359
|
+
readonly blockKinds: readonly ["block.faq"];
|
|
360
|
+
readonly design: {
|
|
361
|
+
readonly sectionSurface: "base";
|
|
362
|
+
readonly contentFrame: {
|
|
363
|
+
readonly kind: "plain";
|
|
364
|
+
};
|
|
365
|
+
readonly itemSurface: "default";
|
|
366
|
+
readonly transitionAfter: "none";
|
|
367
|
+
readonly emphasis: "medium";
|
|
368
|
+
};
|
|
369
|
+
}, {
|
|
370
|
+
readonly kind: "block-design";
|
|
371
|
+
readonly id: "faq-contained-help";
|
|
372
|
+
readonly target: "faq";
|
|
373
|
+
readonly label: "Contained help panel";
|
|
374
|
+
readonly blockKinds: readonly ["block.faq"];
|
|
375
|
+
readonly design: {
|
|
376
|
+
readonly sectionSurface: "muted-band";
|
|
377
|
+
readonly contentFrame: Readonly<{
|
|
378
|
+
kind: "panel";
|
|
379
|
+
treatment: "inset";
|
|
380
|
+
}>;
|
|
381
|
+
readonly itemSurface: "default";
|
|
382
|
+
readonly transitionAfter: "none";
|
|
383
|
+
readonly emphasis: "low";
|
|
384
|
+
};
|
|
385
|
+
}, {
|
|
386
|
+
readonly kind: "block-design";
|
|
387
|
+
readonly id: "contact-form-panel";
|
|
388
|
+
readonly target: "contact-form";
|
|
389
|
+
readonly label: "Contact form panel";
|
|
390
|
+
readonly blockKinds: readonly ["block.form"];
|
|
391
|
+
readonly design: {
|
|
392
|
+
readonly sectionSurface: "muted-band";
|
|
393
|
+
readonly contentFrame: Readonly<{
|
|
394
|
+
kind: "panel";
|
|
395
|
+
treatment: "raised";
|
|
396
|
+
}>;
|
|
397
|
+
readonly itemSurface: "none";
|
|
398
|
+
readonly transitionAfter: "soft-fade-short";
|
|
399
|
+
readonly emphasis: "medium";
|
|
400
|
+
};
|
|
401
|
+
}, {
|
|
402
|
+
readonly kind: "block-design";
|
|
403
|
+
readonly id: "contact-form-dark-card";
|
|
404
|
+
readonly target: "contact-form";
|
|
405
|
+
readonly label: "Dark form card";
|
|
406
|
+
readonly blockKinds: readonly ["block.form"];
|
|
407
|
+
readonly design: {
|
|
408
|
+
readonly sectionSurface: "accent-band";
|
|
409
|
+
readonly contentFrame: Readonly<{
|
|
410
|
+
kind: "panel";
|
|
411
|
+
treatment: "raised";
|
|
412
|
+
}>;
|
|
413
|
+
readonly itemSurface: "none";
|
|
414
|
+
readonly transitionAfter: "soft-fade-short";
|
|
415
|
+
readonly emphasis: "high";
|
|
416
|
+
};
|
|
417
|
+
}, {
|
|
418
|
+
readonly kind: "block-design";
|
|
419
|
+
readonly id: "contact-form-brand-depth-card";
|
|
420
|
+
readonly target: "contact-form";
|
|
421
|
+
readonly label: "Brand-depth form card";
|
|
422
|
+
readonly blockKinds: readonly ["block.form"];
|
|
423
|
+
readonly design: {
|
|
424
|
+
readonly sectionSurface: "brand-depth-band";
|
|
425
|
+
readonly contentFrame: Readonly<{
|
|
426
|
+
kind: "panel";
|
|
427
|
+
treatment: "raised";
|
|
428
|
+
}>;
|
|
429
|
+
readonly itemSurface: "none";
|
|
430
|
+
readonly transitionAfter: "none";
|
|
431
|
+
readonly emphasis: "high";
|
|
432
|
+
};
|
|
433
|
+
}, {
|
|
434
|
+
readonly kind: "block-design";
|
|
435
|
+
readonly id: "cta-accent-band";
|
|
436
|
+
readonly target: "cta";
|
|
437
|
+
readonly label: "Accent CTA band";
|
|
438
|
+
readonly blockKinds: readonly ["block.cta-full"];
|
|
439
|
+
readonly design: {
|
|
440
|
+
readonly sectionSurface: "accent-band";
|
|
441
|
+
readonly contentFrame: {
|
|
442
|
+
readonly kind: "plain";
|
|
443
|
+
};
|
|
444
|
+
readonly itemSurface: "none";
|
|
445
|
+
readonly transitionAfter: "none";
|
|
446
|
+
readonly emphasis: "high";
|
|
447
|
+
};
|
|
448
|
+
}];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ButtonPersonalityId, type KnownButtonPersonalityId } from '../buttons/personalities';
|
|
2
2
|
import { type KnownPaletteVariantId, type PaletteVariantId } from '../palette/variants';
|
|
3
3
|
import type { Theme } from '../schema';
|
|
4
|
+
import { type HeaderLookId } from './headerLooks';
|
|
5
|
+
import { type FooterLookId } from './footerLooks';
|
|
4
6
|
import { type CuratedChoice } from './curatedChoices';
|
|
5
7
|
import { type AppearancePresetId, type DesignSystemTemplate, type NonEmptyReadonlyArray, type SiteStyleId } from './types';
|
|
6
8
|
export declare const curatedSiteStyleIdValues: readonly ["site-style:calm-studio", "site-style:clear-professional", "site-style:warm-editorial", "site-style:bright-community", "site-style:quiet-luxury", "site-style:practical-services", "site-style:modern-wellness", "site-style:bold-launch", "site-style:south-west-twerk-school"];
|
|
@@ -11,6 +13,7 @@ type CuratedSiteStyleHeroOverrides = Readonly<{
|
|
|
11
13
|
type CuratedSiteStyleBodyTextOverrides = Readonly<{
|
|
12
14
|
intro?: NonNullable<NonNullable<Theme['bodyText']>['intro']>;
|
|
13
15
|
}>;
|
|
16
|
+
type CuratedSiteStyleInputOverrides = NonNullable<Theme['inputs']>;
|
|
14
17
|
/**
|
|
15
18
|
* Site-style-specific Theme overrides are applied after token recipes,
|
|
16
19
|
* button personality, and palette variant selection have compiled the base
|
|
@@ -21,6 +24,11 @@ export type CuratedSiteStyleThemeOverrides = Readonly<{
|
|
|
21
24
|
typography?: Theme['typography'];
|
|
22
25
|
hero?: CuratedSiteStyleHeroOverrides;
|
|
23
26
|
bodyText?: CuratedSiteStyleBodyTextOverrides;
|
|
27
|
+
/**
|
|
28
|
+
* Inputs are authored as a complete system rather than sparsely merged so
|
|
29
|
+
* site styles can curate accessible, internally consistent control states.
|
|
30
|
+
*/
|
|
31
|
+
inputs?: CuratedSiteStyleInputOverrides;
|
|
24
32
|
}>;
|
|
25
33
|
export type ButtonPersonalityChoice = CuratedChoice<KnownButtonPersonalityId>;
|
|
26
34
|
export type PaletteVariantChoice = CuratedChoice<KnownPaletteVariantId>;
|
|
@@ -33,6 +41,8 @@ export type CuratedSiteStyle = Readonly<{
|
|
|
33
41
|
template: DesignSystemTemplate;
|
|
34
42
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
35
43
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
44
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
45
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
36
46
|
/** Authored picker choices. First item is the default/fallback. */
|
|
37
47
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
38
48
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -54,6 +64,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
54
64
|
template: DesignSystemTemplate;
|
|
55
65
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
56
66
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
67
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
68
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
57
69
|
/** Authored picker choices. First item is the default/fallback. */
|
|
58
70
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
59
71
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -67,6 +79,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
67
79
|
template: DesignSystemTemplate;
|
|
68
80
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
69
81
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
82
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
83
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
70
84
|
/** Authored picker choices. First item is the default/fallback. */
|
|
71
85
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
72
86
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -80,6 +94,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
80
94
|
template: DesignSystemTemplate;
|
|
81
95
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
82
96
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
97
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
98
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
83
99
|
/** Authored picker choices. First item is the default/fallback. */
|
|
84
100
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
85
101
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -93,6 +109,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
93
109
|
template: DesignSystemTemplate;
|
|
94
110
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
95
111
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
112
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
113
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
96
114
|
/** Authored picker choices. First item is the default/fallback. */
|
|
97
115
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
98
116
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -106,6 +124,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
106
124
|
template: DesignSystemTemplate;
|
|
107
125
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
108
126
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
127
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
128
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
109
129
|
/** Authored picker choices. First item is the default/fallback. */
|
|
110
130
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
111
131
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -119,6 +139,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
119
139
|
template: DesignSystemTemplate;
|
|
120
140
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
121
141
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
142
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
143
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
122
144
|
/** Authored picker choices. First item is the default/fallback. */
|
|
123
145
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
124
146
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -132,6 +154,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
132
154
|
template: DesignSystemTemplate;
|
|
133
155
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
134
156
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
157
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
158
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
135
159
|
/** Authored picker choices. First item is the default/fallback. */
|
|
136
160
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
137
161
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -145,6 +169,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
145
169
|
template: DesignSystemTemplate;
|
|
146
170
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
147
171
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
172
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
173
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
148
174
|
/** Authored picker choices. First item is the default/fallback. */
|
|
149
175
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
150
176
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -158,6 +184,8 @@ export declare const curatedSiteStyles: readonly [Readonly<{
|
|
|
158
184
|
template: DesignSystemTemplate;
|
|
159
185
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
160
186
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
187
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
188
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
161
189
|
/** Authored picker choices. First item is the default/fallback. */
|
|
162
190
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
163
191
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -172,6 +200,8 @@ export declare const curatedSiteStylesById: Map<SiteStyleId, Readonly<{
|
|
|
172
200
|
template: DesignSystemTemplate;
|
|
173
201
|
themeOverrides?: CuratedSiteStyleThemeOverrides;
|
|
174
202
|
recommendedAppearancePresetIds: readonly AppearancePresetId[];
|
|
203
|
+
recommendedHeaderLookIds: readonly HeaderLookId[];
|
|
204
|
+
recommendedFooterLookIds: readonly FooterLookId[];
|
|
175
205
|
/** Authored picker choices. First item is the default/fallback. */
|
|
176
206
|
buttonPersonalityChoices: NonEmptyReadonlyArray<ButtonPersonalityChoice>;
|
|
177
207
|
/** Authored picker choices. First item is the default/fallback. */
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type DesignBlockId } from './types';
|
|
2
|
+
export type SiteChromeCustomizableSurface = Readonly<{
|
|
3
|
+
kind: 'site-header';
|
|
4
|
+
}> | Readonly<{
|
|
5
|
+
kind: 'site-footer';
|
|
6
|
+
}>;
|
|
7
|
+
export type BlockCustomizableSurface = Readonly<{
|
|
8
|
+
kind: 'block';
|
|
9
|
+
blockId: DesignBlockId;
|
|
10
|
+
blockKind: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type CustomizableSurface = BlockCustomizableSurface | SiteChromeCustomizableSurface;
|
|
13
|
+
export type SiteChromePersistenceSurface = 'header' | 'footer';
|
|
14
|
+
export type LookPersistenceTarget = Readonly<{
|
|
15
|
+
kind: 'page-design';
|
|
16
|
+
blockId: DesignBlockId;
|
|
17
|
+
}> | Readonly<{
|
|
18
|
+
kind: 'site-chrome';
|
|
19
|
+
surface: SiteChromePersistenceSurface;
|
|
20
|
+
}>;
|
|
21
|
+
export type PreviewLookCustomizationCommand<TLookId> = Readonly<{
|
|
22
|
+
kind: 'inspect';
|
|
23
|
+
surface: CustomizableSurface;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
kind: 'cycle';
|
|
26
|
+
surface: CustomizableSurface;
|
|
27
|
+
direction: 'previous' | 'next';
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
kind: 'select';
|
|
30
|
+
surface: CustomizableSurface;
|
|
31
|
+
lookId: TLookId;
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
kind: 'clear';
|
|
34
|
+
surface: CustomizableSurface;
|
|
35
|
+
}>;
|
|
36
|
+
export type LookCustomizationWritePlan<TLookId> = Readonly<{
|
|
37
|
+
kind: 'no-write';
|
|
38
|
+
command: 'inspect' | 'cycle';
|
|
39
|
+
}> | Readonly<{
|
|
40
|
+
kind: 'write-selection';
|
|
41
|
+
target: LookPersistenceTarget;
|
|
42
|
+
lookId: TLookId;
|
|
43
|
+
}> | Readonly<{
|
|
44
|
+
kind: 'clear-selection';
|
|
45
|
+
target: LookPersistenceTarget;
|
|
46
|
+
}>;
|
|
47
|
+
export type SiteChromeLookRejection<TLookId, TReason> = Readonly<{
|
|
48
|
+
lookId: TLookId;
|
|
49
|
+
reasons: readonly TReason[];
|
|
50
|
+
}>;
|
|
51
|
+
export type SiteChromeLookDiagnostics<TLookId, TReason> = Readonly<{
|
|
52
|
+
surface: SiteChromeCustomizableSurface;
|
|
53
|
+
selectedLookId: TLookId;
|
|
54
|
+
rejected: readonly SiteChromeLookRejection<TLookId, TReason>[];
|
|
55
|
+
}>;
|
|
56
|
+
export type LookCustomizationOption<TLookId, TIssue> = Readonly<{
|
|
57
|
+
kind: 'available';
|
|
58
|
+
lookId: TLookId;
|
|
59
|
+
label: string;
|
|
60
|
+
}> | Readonly<{
|
|
61
|
+
kind: 'selected';
|
|
62
|
+
lookId: TLookId;
|
|
63
|
+
label: string;
|
|
64
|
+
}> | Readonly<{
|
|
65
|
+
kind: 'unavailable';
|
|
66
|
+
lookId: TLookId;
|
|
67
|
+
label: string;
|
|
68
|
+
issue: TIssue;
|
|
69
|
+
}>;
|
|
70
|
+
export type LookCustomizationAdapterSnapshot<TSurface extends CustomizableSurface, TLookId, TIssue> = Readonly<{
|
|
71
|
+
surface: TSurface;
|
|
72
|
+
selectedLookId: TLookId | null;
|
|
73
|
+
options: readonly LookCustomizationOption<TLookId, TIssue>[];
|
|
74
|
+
}>;
|
|
75
|
+
export declare function uniqueLookIds<TLookId>(ids: readonly TLookId[]): readonly TLookId[];
|
|
76
|
+
export type ResolvedLook<TLookId, TLook, TReason, TCompiled> = Readonly<{
|
|
77
|
+
selectedLookId: TLookId;
|
|
78
|
+
selectedLook: TLook;
|
|
79
|
+
compiled: TCompiled;
|
|
80
|
+
rejected: readonly SiteChromeLookRejection<TLookId, TReason>[];
|
|
81
|
+
}>;
|
|
82
|
+
export declare function resolveLook<TLookId, TLook extends Readonly<{
|
|
83
|
+
id: TLookId;
|
|
84
|
+
}>, TContext, TReason, TCompiled>(input: Readonly<{
|
|
85
|
+
recommendedLookIds: readonly TLookId[];
|
|
86
|
+
guaranteedFallbackLookId: TLookId;
|
|
87
|
+
getLookOrThrow: (lookId: TLookId) => TLook;
|
|
88
|
+
context: TContext;
|
|
89
|
+
rejectReasonsForLook: (look: TLook, context: TContext) => readonly TReason[];
|
|
90
|
+
compileLook: (look: TLook) => TCompiled;
|
|
91
|
+
}>): ResolvedLook<TLookId, TLook, TReason, TCompiled>;
|
|
92
|
+
export declare function mergeWithDefaults<TValue extends Readonly<Record<string, unknown>>>(defaults: TValue, partial: Partial<TValue> | undefined): TValue;
|
|
93
|
+
export declare function persistenceTargetForSurface(surface: CustomizableSurface): LookPersistenceTarget;
|
|
94
|
+
export declare function writePlanForLookCustomizationCommand<TLookId>(command: PreviewLookCustomizationCommand<TLookId>): LookCustomizationWritePlan<TLookId>;
|