unlayer-types 1.469.0 → 1.470.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/embed.d.ts +32 -0
- package/package.json +1 -1
package/embed.d.ts
CHANGED
|
@@ -2021,6 +2021,10 @@ declare module "packages/editor/src/state/types/types" {
|
|
|
2021
2021
|
isAIGenerating?: boolean;
|
|
2022
2022
|
};
|
|
2023
2023
|
}
|
|
2024
|
+
declare module "packages/editor/src/engine/config/normalizeFeaturesAIBrand" {
|
|
2025
|
+
import type { Features } from "packages/editor/src/engine/config/features";
|
|
2026
|
+
export function normalizeFeaturesAIBrand(features: Features): Features;
|
|
2027
|
+
}
|
|
2024
2028
|
declare module "packages/editor/src/engine/config/features" {
|
|
2025
2029
|
import type { AIProvider } from '@libs/ai/types/types';
|
|
2026
2030
|
import { Resolution, Language } from "packages/editor/src/state/types/types";
|
|
@@ -2043,6 +2047,22 @@ declare module "packages/editor/src/engine/config/features" {
|
|
|
2043
2047
|
export type AIImageProvider = Extract<AIProvider, 'google' | 'openai'>;
|
|
2044
2048
|
export type AIImageModel = `${AIImageProvider}/${string}` | (string & {});
|
|
2045
2049
|
export type AIImageFallbackModels = boolean | AIImageModel[];
|
|
2050
|
+
export interface AIBrand {
|
|
2051
|
+
companyName?: string;
|
|
2052
|
+
productDescription?: string;
|
|
2053
|
+
targetAudience?: string;
|
|
2054
|
+
colors?: {
|
|
2055
|
+
primary?: string;
|
|
2056
|
+
secondary?: string;
|
|
2057
|
+
accent?: string;
|
|
2058
|
+
};
|
|
2059
|
+
fonts?: {
|
|
2060
|
+
heading?: string;
|
|
2061
|
+
body?: string;
|
|
2062
|
+
};
|
|
2063
|
+
voice?: string;
|
|
2064
|
+
guidelines?: string;
|
|
2065
|
+
}
|
|
2046
2066
|
export interface TextEditorCustomButton {
|
|
2047
2067
|
name: string;
|
|
2048
2068
|
icon: string;
|
|
@@ -2203,6 +2223,12 @@ declare module "packages/editor/src/engine/config/features" {
|
|
|
2203
2223
|
* other error that requires user/input/configuration changes.
|
|
2204
2224
|
*/
|
|
2205
2225
|
fallbackModels?: AIFallbackModels;
|
|
2226
|
+
/**
|
|
2227
|
+
* Brand context applied to every AI Assistant text and design
|
|
2228
|
+
* generation. Invalid colors are ignored. Company and font names
|
|
2229
|
+
* are capped at 200 characters; other text fields at 2,000.
|
|
2230
|
+
*/
|
|
2231
|
+
brand?: AIBrand;
|
|
2206
2232
|
/**
|
|
2207
2233
|
* Disable full-template, page, and body generation in the AI
|
|
2208
2234
|
* Assistant when set to `false` — usually for cost or latency
|
|
@@ -2407,6 +2433,12 @@ declare module "packages/editor/src/engine/config/features" {
|
|
|
2407
2433
|
* other error that requires user/input/configuration changes.
|
|
2408
2434
|
*/
|
|
2409
2435
|
fallbackModels?: AIFallbackModels;
|
|
2436
|
+
/**
|
|
2437
|
+
* Brand context applied to every AI Assistant text and design
|
|
2438
|
+
* generation. Invalid colors are ignored. Company and font names
|
|
2439
|
+
* are capped at 200 characters; other text fields at 2,000.
|
|
2440
|
+
*/
|
|
2441
|
+
brand?: AIBrand;
|
|
2410
2442
|
/**
|
|
2411
2443
|
* Disable full-template, page, and body generation in the AI
|
|
2412
2444
|
* Assistant when set to `false` — usually for cost or latency
|
package/package.json
CHANGED