@riverbankcms/sdk 0.60.16 → 0.62.2
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/bookingManagementEndpoints.d.ts +41 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +100 -3
- package/dist/_dts/api/src/bookings.d.ts +2 -1
- package/dist/_dts/api/src/endpoints.d.ts +96 -0
- package/dist/_dts/api/src/index.d.ts +5 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +113 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +51 -47
- package/dist/_dts/api/src/types.d.ts +1 -0
- 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/shared/contract-schemas.d.ts +7 -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 +34 -6
- 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/customizeFacetControls.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +14 -0
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +9 -7
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -3
- 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/rendering/helpers/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- 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/schema.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +515 -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 +119 -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 +6 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +12 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeAppearancePresets.d.ts +67 -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 +22 -3
- package/dist/_dts/theme-core/src/siteChrome.d.ts +11 -0
- package/dist/cli/index.mjs +4310 -3464
- package/dist/client/bookings.mjs +310 -310
- package/dist/client/client.mjs +61329 -60359
- package/dist/client/hooks.mjs +1254 -731
- package/dist/client/rendering/client.mjs +5959 -5226
- package/dist/client/rendering/islands.mjs +3842 -3275
- package/dist/client/rendering.mjs +7495 -6519
- package/dist/preview-next/before-render.mjs +118 -0
- package/dist/preview-next/client/runtime.mjs +4489 -2773
- package/dist/preview-next/middleware.mjs +136 -0
- package/dist/server/components.mjs +1342 -765
- package/dist/server/config-validation.mjs +1256 -733
- package/dist/server/config.mjs +1256 -733
- package/dist/server/data.mjs +1254 -731
- package/dist/server/index.mjs +191 -18
- package/dist/server/next.mjs +1339 -760
- package/dist/server/page-converter.mjs +1088 -734
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1338 -762
- package/dist/server/rendering.mjs +1351 -770
- package/dist/server/routing.mjs +1340 -754
- package/dist/server/server.mjs +1260 -734
- package/dist/server/theme-bridge.mjs +198 -34
- package/dist/server/theme.mjs +6 -0
- package/dist/styles/index.css +28 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Media } from "../../lib/media";
|
|
2
2
|
import type { TipTapNode } from "../manifest/richTextSchema";
|
|
3
3
|
import type { SystemBlockDefinition } from "../registry";
|
|
4
4
|
import type { SemanticSpacing } from "../spacing";
|
|
@@ -8,9 +8,9 @@ type MediaTextAlignment = "left" | "center";
|
|
|
8
8
|
type MediaTextImagePosition = "left" | "right";
|
|
9
9
|
type MediaTextAspectRatio = "auto" | "16/9" | "4/3" | "1/1" | "3/4";
|
|
10
10
|
export declare const mediaTextFrameCapability: readonly ["plain", "panel", "flush-panel"];
|
|
11
|
-
export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
12
|
-
readonly description: "Two columns:
|
|
13
|
-
readonly tags: readonly ["media", "image", "carousel", "text", "two-column", "layout"];
|
|
11
|
+
export declare const mediaTextManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
12
|
+
readonly description: "Two columns: media/carousel + rich text (with optional section title).";
|
|
13
|
+
readonly tags: readonly ["media", "image", "video", "carousel", "text", "two-column", "layout"];
|
|
14
14
|
readonly icon: "Columns";
|
|
15
15
|
readonly layout: import("..").NodeDefinition;
|
|
16
16
|
readonly variants: {
|
|
@@ -30,9 +30,9 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
30
30
|
readonly additionalFields: readonly [{
|
|
31
31
|
readonly id: "images";
|
|
32
32
|
readonly type: "repeater";
|
|
33
|
-
readonly label: "
|
|
33
|
+
readonly label: "Media";
|
|
34
34
|
readonly required: false;
|
|
35
|
-
readonly itemLabel: "
|
|
35
|
+
readonly itemLabel: "Media";
|
|
36
36
|
readonly minItems: 0;
|
|
37
37
|
readonly maxItems: 6;
|
|
38
38
|
readonly allowConversion: true;
|
|
@@ -45,9 +45,9 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
45
45
|
readonly fields: [{
|
|
46
46
|
readonly id: "image";
|
|
47
47
|
readonly type: "media";
|
|
48
|
-
readonly label: "
|
|
48
|
+
readonly label: "Media";
|
|
49
49
|
readonly required: true;
|
|
50
|
-
readonly mediaKinds: ["image"];
|
|
50
|
+
readonly mediaKinds: ["image", "video"];
|
|
51
51
|
}];
|
|
52
52
|
};
|
|
53
53
|
}, {
|
|
@@ -1814,8 +1814,8 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
1814
1814
|
readonly label: string;
|
|
1815
1815
|
readonly required: boolean;
|
|
1816
1816
|
readonly description?: string | undefined;
|
|
1817
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
1818
1817
|
readonly defaultValue?: any;
|
|
1818
|
+
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
1819
1819
|
readonly ui?: {
|
|
1820
1820
|
widget?: string | undefined;
|
|
1821
1821
|
preset?: "disclosure" | undefined;
|
|
@@ -1928,8 +1928,8 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
1928
1928
|
readonly label: string;
|
|
1929
1929
|
readonly required: boolean;
|
|
1930
1930
|
readonly description?: string | undefined;
|
|
1931
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
1932
1931
|
readonly defaultValue?: any;
|
|
1932
|
+
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
1933
1933
|
readonly ui?: {
|
|
1934
1934
|
widget?: string | undefined;
|
|
1935
1935
|
preset?: "disclosure" | undefined;
|
|
@@ -2035,8 +2035,8 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
2035
2035
|
readonly label: string;
|
|
2036
2036
|
readonly required: boolean;
|
|
2037
2037
|
readonly description?: string | undefined;
|
|
2038
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2039
2038
|
readonly defaultValue?: any;
|
|
2039
|
+
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2040
2040
|
readonly ui?: {
|
|
2041
2041
|
widget?: string | undefined;
|
|
2042
2042
|
preset?: "disclosure" | undefined;
|
|
@@ -2142,8 +2142,8 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
2142
2142
|
readonly label: string;
|
|
2143
2143
|
readonly required: boolean;
|
|
2144
2144
|
readonly description?: string | undefined;
|
|
2145
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2146
2145
|
readonly defaultValue?: any;
|
|
2146
|
+
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2147
2147
|
readonly ui?: {
|
|
2148
2148
|
widget?: string | undefined;
|
|
2149
2149
|
preset?: "disclosure" | undefined;
|
|
@@ -2245,8 +2245,8 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
2245
2245
|
}, ...import("..").FieldDefinition[], {
|
|
2246
2246
|
readonly id: "aspectRatio";
|
|
2247
2247
|
readonly type: "select";
|
|
2248
|
-
readonly label: "
|
|
2249
|
-
readonly description: "Crop
|
|
2248
|
+
readonly label: "Media aspect ratio";
|
|
2249
|
+
readonly description: "Crop media to a consistent aspect ratio.";
|
|
2250
2250
|
readonly required: false;
|
|
2251
2251
|
readonly defaultValue: "auto";
|
|
2252
2252
|
readonly multiple: false;
|
|
@@ -2389,14 +2389,14 @@ export declare const mediaTextManifest: import("..").DefinedBlockManifest<{
|
|
|
2389
2389
|
label: string;
|
|
2390
2390
|
required: boolean;
|
|
2391
2391
|
description?: string | undefined;
|
|
2392
|
-
visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2393
2392
|
defaultValue?: any;
|
|
2393
|
+
visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
2394
2394
|
schema: {
|
|
2395
2395
|
fields: import("..").FieldDefinition[];
|
|
2396
2396
|
};
|
|
2397
2397
|
__boxStyleType?: "card" | undefined;
|
|
2398
2398
|
}];
|
|
2399
|
-
}
|
|
2399
|
+
}>>;
|
|
2400
2400
|
export type MediaTextContent = {
|
|
2401
2401
|
title?: string | null;
|
|
2402
2402
|
titleAlignment?: MediaTextAlignment | null;
|
|
@@ -2405,7 +2405,7 @@ export type MediaTextContent = {
|
|
|
2405
2405
|
ratio?: ImageColSize | null;
|
|
2406
2406
|
aspectRatio?: MediaTextAspectRatio | null;
|
|
2407
2407
|
images?: Array<{
|
|
2408
|
-
image:
|
|
2408
|
+
image: Media | null;
|
|
2409
2409
|
}> | null;
|
|
2410
2410
|
carouselTransition?: "slide" | "fade" | null;
|
|
2411
2411
|
carouselAutoplay?: boolean | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from "../registry";
|
|
2
2
|
import type { SectionStylesContent } from "../fields/boxStyles";
|
|
3
3
|
import { newsletterFormBlockRuntime } from "../runtime/nodes/newsletter-form.interactive";
|
|
4
|
-
export declare const newsletterSignupManifest: import("..").DefinedBlockManifest<{
|
|
4
|
+
export declare const newsletterSignupManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
5
5
|
readonly id: "block.newsletter-signup";
|
|
6
6
|
readonly title: "Newsletter Signup";
|
|
7
7
|
readonly titleSource: "title";
|
|
@@ -9,9 +9,6 @@ export declare const newsletterSignupManifest: import("..").DefinedBlockManifest
|
|
|
9
9
|
readonly category: "interactive";
|
|
10
10
|
readonly fragments: readonly [{
|
|
11
11
|
readonly fragment: import("..").DefinedFragment<{
|
|
12
|
-
readonly id: "newsletterCopy";
|
|
13
|
-
readonly title: "Newsletter Copy";
|
|
14
|
-
readonly description: "Optional title and description for newsletter signup blocks.";
|
|
15
12
|
readonly fields: readonly [{
|
|
16
13
|
readonly id: "title";
|
|
17
14
|
readonly type: "text";
|
|
@@ -23,14 +20,10 @@ export declare const newsletterSignupManifest: import("..").DefinedBlockManifest
|
|
|
23
20
|
readonly label: "Subtitle";
|
|
24
21
|
readonly description: "Optional description below the title.";
|
|
25
22
|
}];
|
|
26
|
-
readonly layout: readonly [import("..").NodeDefinition, import("..").NodeDefinition];
|
|
27
23
|
}>;
|
|
28
24
|
readonly fieldPriority: 0;
|
|
29
25
|
}, {
|
|
30
26
|
readonly fragment: import("..").DefinedFragment<{
|
|
31
|
-
readonly id: "newsletterForm";
|
|
32
|
-
readonly title: "Newsletter Form";
|
|
33
|
-
readonly description: "Newsletter subscription form with preset field configurations.";
|
|
34
27
|
readonly fields: readonly [{
|
|
35
28
|
readonly id: "listId";
|
|
36
29
|
readonly type: "reference";
|
|
@@ -95,7 +88,6 @@ export declare const newsletterSignupManifest: import("..").DefinedBlockManifest
|
|
|
95
88
|
readonly label: "Tags (optional)";
|
|
96
89
|
readonly description: "Optional tags to apply on subscribe (comma or semicolon separated).";
|
|
97
90
|
}];
|
|
98
|
-
readonly layout: readonly [import("..").NodeDefinition];
|
|
99
91
|
}>;
|
|
100
92
|
readonly fieldPriority: 1;
|
|
101
93
|
}];
|
|
@@ -128,7 +120,7 @@ export declare const newsletterSignupManifest: import("..").DefinedBlockManifest
|
|
|
128
120
|
};
|
|
129
121
|
readonly tags: readonly ["newsletter", "signup", "email", "subscribe", "subscription", "mailchimp", "marketing", "lead-capture"];
|
|
130
122
|
readonly icon: "Mail";
|
|
131
|
-
}
|
|
123
|
+
}>>;
|
|
132
124
|
/**
|
|
133
125
|
* Rich text document structure (ProseMirror format)
|
|
134
126
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SystemBlockDefinition } from '../registry';
|
|
2
2
|
import { type SectionStylesContent } from '../fields/boxStyles';
|
|
3
3
|
import { productDetailBlockRuntime } from '../runtime/nodes/shop.interactive';
|
|
4
|
-
export declare const productDetailManifest: import("..").DefinedBlockManifest<{
|
|
4
|
+
export declare const productDetailManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
5
5
|
readonly id: "block.product-detail";
|
|
6
6
|
readonly version: "1.0.0";
|
|
7
7
|
readonly title: "Product Detail";
|
|
@@ -29121,7 +29121,7 @@ export declare const productDetailManifest: import("..").DefinedBlockManifest<{
|
|
|
29121
29121
|
readonly tags: readonly ["shop", "product", "detail", "cart"];
|
|
29122
29122
|
readonly icon: "Package";
|
|
29123
29123
|
readonly layout: readonly [import("..").NodeDefinition];
|
|
29124
|
-
}
|
|
29124
|
+
}>>;
|
|
29125
29125
|
export type ProductDetailContent = {
|
|
29126
29126
|
heading?: string | null;
|
|
29127
29127
|
productSlug?: string | null;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { SystemBlockDefinition } from '../registry';
|
|
3
3
|
import { type SectionStylesContent } from '../fields/boxStyles';
|
|
4
4
|
import { productListBlockRuntime } from '../runtime/nodes/shop.interactive';
|
|
5
|
-
export declare const productListManifest: import("..").DefinedBlockManifest<{
|
|
5
|
+
export declare const productListManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
6
6
|
readonly id: "block.product-list";
|
|
7
7
|
readonly version: "1.0.0";
|
|
8
8
|
readonly title: "Product List";
|
|
@@ -29152,7 +29152,7 @@ export declare const productListManifest: import("..").DefinedBlockManifest<{
|
|
|
29152
29152
|
readonly tags: readonly ["shop", "products", "cart", "storefront"];
|
|
29153
29153
|
readonly icon: "ShoppingBag";
|
|
29154
29154
|
readonly layout: readonly [import("..").NodeDefinition];
|
|
29155
|
-
}
|
|
29155
|
+
}>>;
|
|
29156
29156
|
export type ProductListContent = {
|
|
29157
29157
|
heading?: string | null;
|
|
29158
29158
|
layout?: 'grid' | 'list' | null;
|
|
@@ -33,8 +33,8 @@ export declare const bookingInstalmentPlanSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
33
33
|
remainderDueCount: z.ZodNumber;
|
|
34
34
|
intervalUnit: z.ZodEnum<{
|
|
35
35
|
month: "month";
|
|
36
|
-
day: "day";
|
|
37
36
|
week: "week";
|
|
37
|
+
day: "day";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
40
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -47,8 +47,8 @@ export declare const bookingInstalmentPlanSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
47
47
|
intervalCount: z.ZodNumber;
|
|
48
48
|
intervalUnit: z.ZodEnum<{
|
|
49
49
|
month: "month";
|
|
50
|
-
day: "day";
|
|
51
50
|
week: "week";
|
|
51
|
+
day: "day";
|
|
52
52
|
}>;
|
|
53
53
|
}, z.core.$strip>, z.ZodObject<{
|
|
54
54
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
@@ -56,8 +56,8 @@ export declare const bookingInstalmentPlanSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
56
56
|
intervalCount: z.ZodNumber;
|
|
57
57
|
intervalUnit: z.ZodEnum<{
|
|
58
58
|
month: "month";
|
|
59
|
-
day: "day";
|
|
60
59
|
week: "week";
|
|
60
|
+
day: "day";
|
|
61
61
|
}>;
|
|
62
62
|
}, z.core.$strip>]>;
|
|
63
63
|
export declare const bookingFlexibleBalanceDueDateRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -97,8 +97,8 @@ export declare const blockBookingPaymentCollectionOptionSchema: z.ZodUnion<reado
|
|
|
97
97
|
remainderDueCount: z.ZodNumber;
|
|
98
98
|
intervalUnit: z.ZodEnum<{
|
|
99
99
|
month: "month";
|
|
100
|
-
day: "day";
|
|
101
100
|
week: "week";
|
|
101
|
+
day: "day";
|
|
102
102
|
}>;
|
|
103
103
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
104
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -111,8 +111,8 @@ export declare const blockBookingPaymentCollectionOptionSchema: z.ZodUnion<reado
|
|
|
111
111
|
intervalCount: z.ZodNumber;
|
|
112
112
|
intervalUnit: z.ZodEnum<{
|
|
113
113
|
month: "month";
|
|
114
|
-
day: "day";
|
|
115
114
|
week: "week";
|
|
115
|
+
day: "day";
|
|
116
116
|
}>;
|
|
117
117
|
}, z.core.$strip>, z.ZodObject<{
|
|
118
118
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
@@ -120,8 +120,8 @@ export declare const blockBookingPaymentCollectionOptionSchema: z.ZodUnion<reado
|
|
|
120
120
|
intervalCount: z.ZodNumber;
|
|
121
121
|
intervalUnit: z.ZodEnum<{
|
|
122
122
|
month: "month";
|
|
123
|
-
day: "day";
|
|
124
123
|
week: "week";
|
|
124
|
+
day: "day";
|
|
125
125
|
}>;
|
|
126
126
|
}, z.core.$strip>]>;
|
|
127
127
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -158,8 +158,8 @@ export declare const blockBookingPaymentTermsSchema: z.ZodObject<{
|
|
|
158
158
|
remainderDueCount: z.ZodNumber;
|
|
159
159
|
intervalUnit: z.ZodEnum<{
|
|
160
160
|
month: "month";
|
|
161
|
-
day: "day";
|
|
162
161
|
week: "week";
|
|
162
|
+
day: "day";
|
|
163
163
|
}>;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
165
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -172,8 +172,8 @@ export declare const blockBookingPaymentTermsSchema: z.ZodObject<{
|
|
|
172
172
|
intervalCount: z.ZodNumber;
|
|
173
173
|
intervalUnit: z.ZodEnum<{
|
|
174
174
|
month: "month";
|
|
175
|
-
day: "day";
|
|
176
175
|
week: "week";
|
|
176
|
+
day: "day";
|
|
177
177
|
}>;
|
|
178
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
179
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
@@ -181,8 +181,8 @@ export declare const blockBookingPaymentTermsSchema: z.ZodObject<{
|
|
|
181
181
|
intervalCount: z.ZodNumber;
|
|
182
182
|
intervalUnit: z.ZodEnum<{
|
|
183
183
|
month: "month";
|
|
184
|
-
day: "day";
|
|
185
184
|
week: "week";
|
|
185
|
+
day: "day";
|
|
186
186
|
}>;
|
|
187
187
|
}, z.core.$strip>]>;
|
|
188
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -18,7 +18,7 @@ import { shopBlockRuntime } from "../runtime/nodes/shop.interactive";
|
|
|
18
18
|
* - Purchase creates customer on-demand via email
|
|
19
19
|
* - Stripe handles payment security
|
|
20
20
|
*/
|
|
21
|
-
export declare const shopManifest: import("..").DefinedBlockManifest<{
|
|
21
|
+
export declare const shopManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
22
22
|
readonly id: "block.shop";
|
|
23
23
|
readonly version: "1.0.0";
|
|
24
24
|
readonly title: "Passes & Memberships";
|
|
@@ -29235,7 +29235,7 @@ export declare const shopManifest: import("..").DefinedBlockManifest<{
|
|
|
29235
29235
|
readonly tags: readonly ["shop", "passes", "memberships", "booking", "purchase", "store"];
|
|
29236
29236
|
readonly icon: "ShoppingBag";
|
|
29237
29237
|
readonly layout: readonly [import("..").NodeDefinition];
|
|
29238
|
-
}
|
|
29238
|
+
}>>;
|
|
29239
29239
|
export type ShopContent = {
|
|
29240
29240
|
showPasses?: boolean | null;
|
|
29241
29241
|
showMemberships?: boolean | null;
|
|
@@ -9,14 +9,8 @@ export type SingleButtonContent = {
|
|
|
9
9
|
} | null;
|
|
10
10
|
};
|
|
11
11
|
export declare const singleButtonManifest: import("..").DefinedBlockManifest<{
|
|
12
|
-
readonly
|
|
13
|
-
readonly title: "Single Button";
|
|
14
|
-
readonly category: "marketing";
|
|
15
|
-
readonly fragments: readonly [{
|
|
12
|
+
readonly fragments: readonly [Omit<{
|
|
16
13
|
readonly fragment: import("..").DefinedFragment<{
|
|
17
|
-
readonly id: "singleButton";
|
|
18
|
-
readonly title: "Single Button Content";
|
|
19
|
-
readonly description: "Heading and primary button for the single button block.";
|
|
20
14
|
readonly fields: readonly [{
|
|
21
15
|
readonly id: "title";
|
|
22
16
|
readonly type: "text";
|
|
@@ -29,16 +23,23 @@ export declare const singleButtonManifest: import("..").DefinedBlockManifest<{
|
|
|
29
23
|
readonly groupLabel: "Button";
|
|
30
24
|
readonly flattenInRepeater: false;
|
|
31
25
|
}>];
|
|
32
|
-
readonly layout: readonly [import("..").NodeDefinition, import("..").NodeDefinition];
|
|
33
26
|
}>;
|
|
34
27
|
readonly fieldPriority: 0;
|
|
28
|
+
}, "fragment"> & {
|
|
29
|
+
readonly fragment: {
|
|
30
|
+
readonly fields: readonly [{
|
|
31
|
+
readonly id: "title";
|
|
32
|
+
readonly type: "text";
|
|
33
|
+
readonly label: "Title";
|
|
34
|
+
readonly required: true;
|
|
35
|
+
readonly maxLength: 120;
|
|
36
|
+
}, import("../fields/button").ButtonGroupField<{
|
|
37
|
+
readonly showGroupLabel: true;
|
|
38
|
+
readonly groupId: "button";
|
|
39
|
+
readonly groupLabel: "Button";
|
|
40
|
+
readonly flattenInRepeater: false;
|
|
41
|
+
}>];
|
|
42
|
+
};
|
|
35
43
|
}];
|
|
36
|
-
readonly layout: import("..").NodeDefinition;
|
|
37
|
-
readonly description: "A simple block with a title and a single button.";
|
|
38
|
-
readonly tags: readonly ["button", "cta", "action", "link", "simple"];
|
|
39
|
-
readonly icon: "MousePointerClick";
|
|
40
|
-
readonly styleTokens: {
|
|
41
|
-
readonly spacing: "md";
|
|
42
|
-
};
|
|
43
44
|
}>;
|
|
44
45
|
export declare const singleButtonBlockDefinition: SystemBlockDefinition<SingleButtonContent>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { NodeDefinition } from "../node";
|
|
2
2
|
import type { SystemBlockDefinition } from "../registry";
|
|
3
|
-
export declare const siteFooterManifest: import("..").DefinedBlockManifest<{
|
|
3
|
+
export declare const siteFooterManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
4
4
|
readonly id: "block.site-footer";
|
|
5
5
|
readonly title: "Site Footer";
|
|
6
6
|
readonly category: "layout";
|
|
7
7
|
readonly fragments: readonly [{
|
|
8
8
|
readonly fragment: import("..").DefinedFragment<{
|
|
9
|
-
readonly id: "footerBottomText";
|
|
10
|
-
readonly title: "Footer Text";
|
|
11
|
-
readonly description: "Rich text content for the main footer body and optional bottom bar.";
|
|
12
9
|
readonly fields: readonly [{
|
|
13
10
|
readonly id: "bodyText";
|
|
14
11
|
readonly type: "richText";
|
|
@@ -26,7 +23,6 @@ export declare const siteFooterManifest: import("..").DefinedBlockManifest<{
|
|
|
26
23
|
readonly variant: "limited";
|
|
27
24
|
};
|
|
28
25
|
}];
|
|
29
|
-
readonly layout: readonly [NodeDefinition, NodeDefinition];
|
|
30
26
|
}>;
|
|
31
27
|
readonly fieldPriority: 0;
|
|
32
28
|
}];
|
|
@@ -47,7 +43,7 @@ export declare const siteFooterManifest: import("..").DefinedBlockManifest<{
|
|
|
47
43
|
readonly spacing: "md";
|
|
48
44
|
};
|
|
49
45
|
readonly paletteHidden: true;
|
|
50
|
-
}
|
|
46
|
+
}>>;
|
|
51
47
|
export type SiteFooterVariant = "simple" | "columns" | "split";
|
|
52
48
|
export type SiteFooterContent = {
|
|
53
49
|
bodyText?: unknown;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import type { NodeDefinition } from "../node";
|
|
2
1
|
import type { SystemBlockDefinition } from "../registry";
|
|
3
2
|
export declare const siteHeaderManifest: import("..").DefinedBlockManifest<{
|
|
4
|
-
readonly id: "block.site-header";
|
|
5
|
-
readonly title: "Site Header";
|
|
6
|
-
readonly category: "layout";
|
|
7
3
|
readonly skipSectionStyles: true;
|
|
8
|
-
readonly managesOwnWrapper: true;
|
|
9
|
-
readonly layout: NodeDefinition;
|
|
10
|
-
readonly description: "Site-wide header with logo, navigation, and optional CTA.";
|
|
11
|
-
readonly styleTokens: {
|
|
12
|
-
readonly spacing: "sm";
|
|
13
|
-
};
|
|
14
|
-
readonly paletteHidden: true;
|
|
15
4
|
}>;
|
|
16
5
|
export type SiteHeaderManifest = typeof siteHeaderManifest;
|
|
17
6
|
export type SiteHeaderVariant = "classic" | "centered" | "transparent" | "floating" | "editorial";
|
|
@@ -9,7 +9,7 @@ type LayoutWidth = "full" | "lg-3-4-left";
|
|
|
9
9
|
type ThumbnailPadding = "none" | "sm" | "md" | "lg";
|
|
10
10
|
type StackImagePosition = "left" | "right" | "alternate";
|
|
11
11
|
type StackContentAlignment = "top" | "center";
|
|
12
|
-
export declare const teamMembersManifest: import("..").DefinedBlockManifest<{
|
|
12
|
+
export declare const teamMembersManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
13
13
|
readonly id: "block.team-members";
|
|
14
14
|
readonly title: "Team Members";
|
|
15
15
|
readonly category: "content";
|
|
@@ -27,8 +27,8 @@ export declare const teamMembersManifest: import("..").DefinedBlockManifest<{
|
|
|
27
27
|
readonly label: string;
|
|
28
28
|
readonly required: boolean;
|
|
29
29
|
readonly description?: string | undefined;
|
|
30
|
-
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
31
30
|
readonly defaultValue?: any;
|
|
31
|
+
readonly visibleRoles?: ("admin" | "designer" | "author")[] | undefined;
|
|
32
32
|
readonly itemLabel: string;
|
|
33
33
|
readonly itemLabelSource?: string | undefined;
|
|
34
34
|
readonly minItems: number;
|
|
@@ -64,7 +64,7 @@ export declare const teamMembersManifest: import("..").DefinedBlockManifest<{
|
|
|
64
64
|
readonly styleTokens: {
|
|
65
65
|
readonly spacing: "lg";
|
|
66
66
|
};
|
|
67
|
-
}
|
|
67
|
+
}>>;
|
|
68
68
|
type ManualTeamMemberItem = {
|
|
69
69
|
_type: "teamMember";
|
|
70
70
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NodeDefinition } from '../node';
|
|
2
2
|
import { type CardStylesContent, type ContainerStylesContent, type SectionStylesContent } from '../fields/boxStyles';
|
|
3
3
|
import type { SystemBlockDefinition } from '../registry';
|
|
4
|
-
export declare const testimonialsManifest: import("..").DefinedBlockManifest<{
|
|
4
|
+
export declare const testimonialsManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
5
5
|
readonly id: "block.testimonials";
|
|
6
6
|
readonly title: "Testimonials";
|
|
7
7
|
readonly category: "marketing";
|
|
@@ -39,7 +39,7 @@ export declare const testimonialsManifest: import("..").DefinedBlockManifest<{
|
|
|
39
39
|
readonly animation: true;
|
|
40
40
|
readonly paletteHidden: false;
|
|
41
41
|
};
|
|
42
|
-
}
|
|
42
|
+
}>>;
|
|
43
43
|
export type TestimonialsBlockContent = {
|
|
44
44
|
variant?: 'carousel' | 'grid' | null;
|
|
45
45
|
heading?: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeDefinition } from "../node";
|
|
2
2
|
import type { SystemBlockDefinition } from "../registry";
|
|
3
|
-
export declare const videoGridManifest: import("..").DefinedBlockManifest<{
|
|
3
|
+
export declare const videoGridManifest: import("..").DefinedBlockManifest<import("..").BlockContentShapeInput<{
|
|
4
4
|
readonly id: "block.video-grid";
|
|
5
5
|
readonly title: "Video Grid";
|
|
6
6
|
readonly category: "media";
|
|
@@ -14,7 +14,7 @@ export declare const videoGridManifest: import("..").DefinedBlockManifest<{
|
|
|
14
14
|
readonly background: "surface";
|
|
15
15
|
readonly spacing: "md";
|
|
16
16
|
};
|
|
17
|
-
}
|
|
17
|
+
}>>;
|
|
18
18
|
export type VideoGridContent = {
|
|
19
19
|
heading?: string | null;
|
|
20
20
|
subheading?: string | null;
|
|
@@ -25,6 +25,24 @@ export type EventContentTypeSlug = (typeof EVENT_CONTENT_TYPE_SLUGS)[number];
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const EVENT_CATEGORY_BADGE_TOKENS: readonly ["primary", "secondary", "accent"];
|
|
27
27
|
export type EventCategoryBadgeToken = (typeof EVENT_CATEGORY_BADGE_TOKENS)[number];
|
|
28
|
+
export declare const eventCalendarDisplayModeValues: readonly ["combined", "month", "week", "list", "timetable"];
|
|
29
|
+
export type EventCalendarDisplayMode = (typeof eventCalendarDisplayModeValues)[number];
|
|
30
|
+
export declare const eventCalendarListLayoutValues: readonly ["stack", "grid", "compact"];
|
|
31
|
+
export type EventCalendarListLayout = (typeof eventCalendarListLayoutValues)[number];
|
|
32
|
+
export declare const eventCalendarListLayoutOptions: readonly [{
|
|
33
|
+
readonly id: "stack";
|
|
34
|
+
readonly label: "Stack";
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "grid";
|
|
37
|
+
readonly label: "Grid";
|
|
38
|
+
}, {
|
|
39
|
+
readonly id: "compact";
|
|
40
|
+
readonly label: "Compact";
|
|
41
|
+
}];
|
|
42
|
+
export declare const eventCalendarListLayoutCompatibleDisplayModeValues: readonly ["combined", "list"];
|
|
43
|
+
export declare function isEventCalendarDisplayMode(value: unknown): value is EventCalendarDisplayMode;
|
|
44
|
+
export declare function isEventCalendarListLayout(value: unknown): value is EventCalendarListLayout;
|
|
45
|
+
export declare function eventCalendarListLayoutAppliesToDisplayMode(displayMode: EventCalendarDisplayMode): boolean;
|
|
28
46
|
/**
|
|
29
47
|
* Check if a content type slug represents an event type
|
|
30
48
|
*/
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { LayoutVariantKey } from '@riverbankcms/theme-core/site-styles';
|
|
2
|
+
export type CustomizeFacetValueOption<TValue extends string = string> = Readonly<{
|
|
3
|
+
value: TValue;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type EventCalendarListLayoutCustomizeFacetTarget = Readonly<{
|
|
8
|
+
kind: 'event-calendar-list-layout-content';
|
|
9
|
+
}>;
|
|
10
|
+
export type CustomizeFacetTarget = EventCalendarListLayoutCustomizeFacetTarget;
|
|
11
|
+
export type CustomizeFacetDefinition<TBlockKind extends string = string, TFacetId extends string = string, TValue extends string = string> = Readonly<{
|
|
12
|
+
blockKind: TBlockKind;
|
|
13
|
+
id: TFacetId;
|
|
14
|
+
label: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
values: readonly CustomizeFacetValueOption<TValue>[];
|
|
17
|
+
defaultValue: TValue;
|
|
18
|
+
target: CustomizeFacetTarget;
|
|
19
|
+
appliesToLayoutVariants?: readonly string[];
|
|
20
|
+
}>;
|
|
21
|
+
export type CustomizeFacetCycleDirection = 'prev' | 'next';
|
|
22
|
+
export type CustomizeFacetContent = Record<string, unknown>;
|
|
23
|
+
export declare function defineCustomizeFacet<const Definition extends CustomizeFacetDefinition>(definition: Definition): Definition;
|
|
24
|
+
export declare const eventCalendarListLayoutFacet: {
|
|
25
|
+
readonly blockKind: "block.event-calendar";
|
|
26
|
+
readonly id: "eventCalendar.listLayout";
|
|
27
|
+
readonly label: "List style";
|
|
28
|
+
readonly values: {
|
|
29
|
+
value: "compact" | "stack" | "grid";
|
|
30
|
+
label: "Stack" | "Grid" | "Compact";
|
|
31
|
+
}[];
|
|
32
|
+
readonly defaultValue: "stack";
|
|
33
|
+
readonly target: {
|
|
34
|
+
readonly kind: "event-calendar-list-layout-content";
|
|
35
|
+
};
|
|
36
|
+
readonly appliesToLayoutVariants: readonly ["combined", "list"];
|
|
37
|
+
};
|
|
38
|
+
export declare const systemCustomizeFacetDefinitions: readonly [{
|
|
39
|
+
readonly blockKind: "block.event-calendar";
|
|
40
|
+
readonly id: "eventCalendar.listLayout";
|
|
41
|
+
readonly label: "List style";
|
|
42
|
+
readonly values: {
|
|
43
|
+
value: "compact" | "stack" | "grid";
|
|
44
|
+
label: "Stack" | "Grid" | "Compact";
|
|
45
|
+
}[];
|
|
46
|
+
readonly defaultValue: "stack";
|
|
47
|
+
readonly target: {
|
|
48
|
+
readonly kind: "event-calendar-list-layout-content";
|
|
49
|
+
};
|
|
50
|
+
readonly appliesToLayoutVariants: readonly ["combined", "list"];
|
|
51
|
+
}];
|
|
52
|
+
export type SystemCustomizeFacetDefinition = (typeof systemCustomizeFacetDefinitions)[number];
|
|
53
|
+
export type SystemCustomizeFacetId = SystemCustomizeFacetDefinition['id'];
|
|
54
|
+
export type SystemCustomizeFacetValue = SystemCustomizeFacetDefinition['values'][number]['value'];
|
|
55
|
+
export type SystemCustomizeFacetBlockKind = SystemCustomizeFacetDefinition['blockKind'];
|
|
56
|
+
export type SystemCustomizeFacetSelection = {
|
|
57
|
+
[Definition in SystemCustomizeFacetDefinition as Definition['id']]: Readonly<{
|
|
58
|
+
facetId: Definition['id'];
|
|
59
|
+
value: Definition['values'][number]['value'];
|
|
60
|
+
}>;
|
|
61
|
+
}[SystemCustomizeFacetId];
|
|
62
|
+
export type SystemCustomizeFacetTransition = {
|
|
63
|
+
[Definition in SystemCustomizeFacetDefinition as Definition['id']]: Readonly<{
|
|
64
|
+
facetId: Definition['id'];
|
|
65
|
+
value: Definition['values'][number]['value'];
|
|
66
|
+
fromValue: Definition['values'][number]['value'];
|
|
67
|
+
}>;
|
|
68
|
+
}[SystemCustomizeFacetId];
|
|
69
|
+
export type SystemCustomizeFacetHistorySelection = {
|
|
70
|
+
[Definition in SystemCustomizeFacetDefinition as Definition['id']]: Readonly<{
|
|
71
|
+
facetId: Definition['id'];
|
|
72
|
+
fromValue: Definition['values'][number]['value'];
|
|
73
|
+
toValue: Definition['values'][number]['value'];
|
|
74
|
+
}>;
|
|
75
|
+
}[SystemCustomizeFacetId];
|
|
76
|
+
export type ParseSystemCustomizeFacetSelectionResult = Readonly<{
|
|
77
|
+
success: true;
|
|
78
|
+
data: SystemCustomizeFacetSelection;
|
|
79
|
+
definition: SystemCustomizeFacetDefinition;
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
success: false;
|
|
82
|
+
error: Readonly<{
|
|
83
|
+
kind: 'unknown-facet';
|
|
84
|
+
facetId: unknown;
|
|
85
|
+
}> | Readonly<{
|
|
86
|
+
kind: 'invalid-value';
|
|
87
|
+
facetId: SystemCustomizeFacetId;
|
|
88
|
+
value: unknown;
|
|
89
|
+
definition: SystemCustomizeFacetDefinition;
|
|
90
|
+
}>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const systemCustomizeFacetIds: [SystemCustomizeFacetId, ...SystemCustomizeFacetId[]];
|
|
93
|
+
export declare const systemCustomizeFacetValues: [SystemCustomizeFacetValue, ...SystemCustomizeFacetValue[]];
|
|
94
|
+
export declare function isSystemCustomizeFacetId(value: unknown): value is SystemCustomizeFacetId;
|
|
95
|
+
export declare function parseSystemCustomizeFacetSelection(facetId: unknown, value: unknown): ParseSystemCustomizeFacetSelectionResult;
|
|
96
|
+
export declare function systemCustomizeFacetDefinitionForId(facetId: SystemCustomizeFacetId): SystemCustomizeFacetDefinition;
|
|
97
|
+
export declare function systemCustomizeFacetDefinitionForBlock(blockKind: string, facetId: SystemCustomizeFacetId): SystemCustomizeFacetDefinition | null;
|
|
98
|
+
export declare function systemCustomizeFacetDefinitionsForBlock(blockKind: string): readonly SystemCustomizeFacetDefinition[];
|
|
99
|
+
export declare function isSystemCustomizeFacetValue(definition: SystemCustomizeFacetDefinition, value: unknown): value is SystemCustomizeFacetValue;
|
|
100
|
+
export declare function systemCustomizeFacetLabelForValue(definition: SystemCustomizeFacetDefinition, value: SystemCustomizeFacetValue): string;
|
|
101
|
+
export declare function systemCustomizeFacetAppliesToLayoutVariant(definition: SystemCustomizeFacetDefinition, layoutVariantKey: LayoutVariantKey | string | null | undefined): boolean;
|
|
102
|
+
export declare function systemCustomizeFacetCurrentValue(definition: SystemCustomizeFacetDefinition, content: CustomizeFacetContent): SystemCustomizeFacetValue;
|
|
103
|
+
export declare function systemCustomizeFacetNextValue(definition: SystemCustomizeFacetDefinition, currentValue: SystemCustomizeFacetValue, direction: CustomizeFacetCycleDirection): SystemCustomizeFacetValue | null;
|
|
104
|
+
export declare function systemCustomizeFacetApplyContentPatch(definition: SystemCustomizeFacetDefinition, content: CustomizeFacetContent, value: SystemCustomizeFacetValue): CustomizeFacetContent;
|
|
105
|
+
export declare function systemCustomizeFacetRollbackContentPatch(definition: SystemCustomizeFacetDefinition, currentContent: CustomizeFacetContent, previousContent: CustomizeFacetContent): CustomizeFacetContent;
|