@bettercms-ai/sdk 1.29.0 → 1.30.1
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/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _bettercms_ai_types from '@bettercms-ai/types';
|
|
2
|
-
import { ContentPageResult, Content, DeliveredLayout, ContentModelField, Fieldset, BetterCMSErrorCode, LayoutStructureDocument, LayoutDataDocument, PageLayoutOverrideDocument, ManagementLayoutCommand, AuthUser, AuthSession, SignInInput, SignUpInput, Perspective, DeliveryEntry, DeliveryList, DeliveryPage, DeliveryComponent, PageMetaJson, DeliveryEntrySeo, SiteSeoDefaults, Page, MediaAsset, FormField, Form, FormSubmission, Workspace, ApiKey, ApiKeyPermission, ApiKeyTokenType } from '@bettercms-ai/types';
|
|
2
|
+
import { ContentPageResult, Content, DeliveredLayout, ContentModelField, Fieldset, BetterCMSErrorCode, ComponentPreview, LayoutStructureDocument, LayoutDataDocument, PageLayoutOverrideDocument, ManagementLayoutCommand, AuthUser, AuthSession, SignInInput, SignUpInput, Perspective, DeliveryEntry, DeliveryList, DeliveryPage, DeliveryComponent, PageMetaJson, DeliveryEntrySeo, SiteSeoDefaults, Page, MediaAsset, FormField, Form, FormSubmission, Workspace, ApiKey, ApiKeyPermission, ApiKeyTokenType } from '@bettercms-ai/types';
|
|
3
3
|
export { ApiError, ApiKey, ApiKeyPermission, ApiKeyTokenType, AssertEqual, AuthSession, AuthUser, BetterCMSErrorCode, BlockType, ButtonBlock, ButtonProps, ColumnsBlock, ColumnsProps, Content, ContentBlock, ContentEntry, ContentModel, ContentModelField, ContentPageResult, ContentResponse, DeepReadonly, DeliveryComponent, DeliveryEntry, DeliveryList, DeliveryPage, Form, FormBlock, FormField, FormProps, FormSubmission, HeadingBlock, HeadingProps, ImageBlock, ImageProps, MediaAsset, Page, PageMetaJson, PaginatedResult, Perspective, Redirect, SignInInput, SignUpInput, SiteSeoDefaults, SpacerBlock, SpacerProps, TextBlock, TextProps, VideoBlock, VideoProps, Workspace, getBlockType, isBlock } from '@bettercms-ai/types';
|
|
4
4
|
export { ImageFit, ImageFormat, ImageSource, ImageUrlBuilder, ImageUrlOptions, imageUrl, default as imageUrlBuilder, imageValueObjectPosition, imageValueUrl } from '@bettercms-ai/image-url';
|
|
5
5
|
|
|
@@ -766,6 +766,8 @@ interface ManagedComponent {
|
|
|
766
766
|
}>;
|
|
767
767
|
}> | null;
|
|
768
768
|
thumbnail?: string | null;
|
|
769
|
+
/** How an instance reads as a row in a parent's slot list. @see ComponentPreview */
|
|
770
|
+
preview?: ComponentPreview | null;
|
|
769
771
|
/** Send it back as `ifMatch` on updateComponent. */
|
|
770
772
|
optimisticVersion?: number;
|
|
771
773
|
}
|
|
@@ -785,6 +787,8 @@ interface ManagedComponentInput {
|
|
|
785
787
|
group?: string;
|
|
786
788
|
groupId?: string | null;
|
|
787
789
|
description?: string;
|
|
790
|
+
/** title/subtitle/media name top-level prop keys (422 `preview_key_unknown` otherwise); null clears it. */
|
|
791
|
+
preview?: ComponentPreview | null;
|
|
788
792
|
blockJson?: unknown[];
|
|
789
793
|
props?: unknown[];
|
|
790
794
|
/**
|
|
@@ -797,6 +801,7 @@ interface ManagedComponentInput {
|
|
|
797
801
|
/** Update only: prop chrome by prop path (`cta.label`). Any of these, or `override`, needs `ifMatch`. */
|
|
798
802
|
propUi?: Record<string, Record<string, unknown> | null>;
|
|
799
803
|
propGroup?: Record<string, Record<string, unknown> | null>;
|
|
804
|
+
propTab?: Record<string, Record<string, unknown> | null>;
|
|
800
805
|
propLabel?: Record<string, string>;
|
|
801
806
|
/** Replace chrome a person shaped; without it that is a 409 `ui_human_owned`. */
|
|
802
807
|
override?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _bettercms_ai_types from '@bettercms-ai/types';
|
|
2
|
-
import { ContentPageResult, Content, DeliveredLayout, ContentModelField, Fieldset, BetterCMSErrorCode, LayoutStructureDocument, LayoutDataDocument, PageLayoutOverrideDocument, ManagementLayoutCommand, AuthUser, AuthSession, SignInInput, SignUpInput, Perspective, DeliveryEntry, DeliveryList, DeliveryPage, DeliveryComponent, PageMetaJson, DeliveryEntrySeo, SiteSeoDefaults, Page, MediaAsset, FormField, Form, FormSubmission, Workspace, ApiKey, ApiKeyPermission, ApiKeyTokenType } from '@bettercms-ai/types';
|
|
2
|
+
import { ContentPageResult, Content, DeliveredLayout, ContentModelField, Fieldset, BetterCMSErrorCode, ComponentPreview, LayoutStructureDocument, LayoutDataDocument, PageLayoutOverrideDocument, ManagementLayoutCommand, AuthUser, AuthSession, SignInInput, SignUpInput, Perspective, DeliveryEntry, DeliveryList, DeliveryPage, DeliveryComponent, PageMetaJson, DeliveryEntrySeo, SiteSeoDefaults, Page, MediaAsset, FormField, Form, FormSubmission, Workspace, ApiKey, ApiKeyPermission, ApiKeyTokenType } from '@bettercms-ai/types';
|
|
3
3
|
export { ApiError, ApiKey, ApiKeyPermission, ApiKeyTokenType, AssertEqual, AuthSession, AuthUser, BetterCMSErrorCode, BlockType, ButtonBlock, ButtonProps, ColumnsBlock, ColumnsProps, Content, ContentBlock, ContentEntry, ContentModel, ContentModelField, ContentPageResult, ContentResponse, DeepReadonly, DeliveryComponent, DeliveryEntry, DeliveryList, DeliveryPage, Form, FormBlock, FormField, FormProps, FormSubmission, HeadingBlock, HeadingProps, ImageBlock, ImageProps, MediaAsset, Page, PageMetaJson, PaginatedResult, Perspective, Redirect, SignInInput, SignUpInput, SiteSeoDefaults, SpacerBlock, SpacerProps, TextBlock, TextProps, VideoBlock, VideoProps, Workspace, getBlockType, isBlock } from '@bettercms-ai/types';
|
|
4
4
|
export { ImageFit, ImageFormat, ImageSource, ImageUrlBuilder, ImageUrlOptions, imageUrl, default as imageUrlBuilder, imageValueObjectPosition, imageValueUrl } from '@bettercms-ai/image-url';
|
|
5
5
|
|
|
@@ -766,6 +766,8 @@ interface ManagedComponent {
|
|
|
766
766
|
}>;
|
|
767
767
|
}> | null;
|
|
768
768
|
thumbnail?: string | null;
|
|
769
|
+
/** How an instance reads as a row in a parent's slot list. @see ComponentPreview */
|
|
770
|
+
preview?: ComponentPreview | null;
|
|
769
771
|
/** Send it back as `ifMatch` on updateComponent. */
|
|
770
772
|
optimisticVersion?: number;
|
|
771
773
|
}
|
|
@@ -785,6 +787,8 @@ interface ManagedComponentInput {
|
|
|
785
787
|
group?: string;
|
|
786
788
|
groupId?: string | null;
|
|
787
789
|
description?: string;
|
|
790
|
+
/** title/subtitle/media name top-level prop keys (422 `preview_key_unknown` otherwise); null clears it. */
|
|
791
|
+
preview?: ComponentPreview | null;
|
|
788
792
|
blockJson?: unknown[];
|
|
789
793
|
props?: unknown[];
|
|
790
794
|
/**
|
|
@@ -797,6 +801,7 @@ interface ManagedComponentInput {
|
|
|
797
801
|
/** Update only: prop chrome by prop path (`cta.label`). Any of these, or `override`, needs `ifMatch`. */
|
|
798
802
|
propUi?: Record<string, Record<string, unknown> | null>;
|
|
799
803
|
propGroup?: Record<string, Record<string, unknown> | null>;
|
|
804
|
+
propTab?: Record<string, Record<string, unknown> | null>;
|
|
800
805
|
propLabel?: Record<string, string>;
|
|
801
806
|
/** Replace chrome a person shaped; without it that is a 409 `ui_human_owned`. */
|
|
802
807
|
override?: boolean;
|