unlayer-types 1.469.0 → 1.471.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 +38 -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,26 @@ 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
|
+
logos?: {
|
|
2064
|
+
primary?: string;
|
|
2065
|
+
secondary?: string;
|
|
2066
|
+
};
|
|
2067
|
+
voice?: string;
|
|
2068
|
+
guidelines?: string;
|
|
2069
|
+
}
|
|
2046
2070
|
export interface TextEditorCustomButton {
|
|
2047
2071
|
name: string;
|
|
2048
2072
|
icon: string;
|
|
@@ -2203,6 +2227,13 @@ declare module "packages/editor/src/engine/config/features" {
|
|
|
2203
2227
|
* other error that requires user/input/configuration changes.
|
|
2204
2228
|
*/
|
|
2205
2229
|
fallbackModels?: AIFallbackModels;
|
|
2230
|
+
/**
|
|
2231
|
+
* Brand context applied to every AI Assistant text and design
|
|
2232
|
+
* generation. Invalid colors are ignored. Company and font names
|
|
2233
|
+
* are capped at 200 characters; other text fields at 2,000. Set to
|
|
2234
|
+
* `null` to explicitly disable the saved project Brand Context.
|
|
2235
|
+
*/
|
|
2236
|
+
brand?: AIBrand | null;
|
|
2206
2237
|
/**
|
|
2207
2238
|
* Disable full-template, page, and body generation in the AI
|
|
2208
2239
|
* Assistant when set to `false` — usually for cost or latency
|
|
@@ -2407,6 +2438,13 @@ declare module "packages/editor/src/engine/config/features" {
|
|
|
2407
2438
|
* other error that requires user/input/configuration changes.
|
|
2408
2439
|
*/
|
|
2409
2440
|
fallbackModels?: AIFallbackModels;
|
|
2441
|
+
/**
|
|
2442
|
+
* Brand context applied to every AI Assistant text and design
|
|
2443
|
+
* generation. Invalid colors are ignored. Company and font names
|
|
2444
|
+
* are capped at 200 characters; other text fields at 2,000. Set to
|
|
2445
|
+
* `null` to explicitly disable the saved project Brand Context.
|
|
2446
|
+
*/
|
|
2447
|
+
brand?: AIBrand | null;
|
|
2410
2448
|
/**
|
|
2411
2449
|
* Disable full-template, page, and body generation in the AI
|
|
2412
2450
|
* Assistant when set to `false` — usually for cost or latency
|
package/package.json
CHANGED