@unlayer/types 1.485.0 → 1.488.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/dist/editor/editor.d.ts +1 -1
- package/dist/editor/types.d.ts +3 -3
- package/dist/tools/social.d.ts +15 -0
- package/package.json +1 -1
package/dist/editor/editor.d.ts
CHANGED
|
@@ -552,5 +552,5 @@ type WidgetComponentClass = any & {
|
|
|
552
552
|
schema?: Record<string, unknown> | null;
|
|
553
553
|
};
|
|
554
554
|
|
|
555
|
-
type AIFeatureType = 'full_template_gen' | 'block_edit' | 'html_import' | 'image_import' | 'image_generation';
|
|
555
|
+
type AIFeatureType = 'full_template_gen' | 'block_edit' | 'html_import' | 'image_import' | 'image_generation' | 'image_edit';
|
|
556
556
|
/** Token usage payload reported by the AI Assistant pipeline. */
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -84,9 +84,9 @@ export interface AIAssistantEventContext {
|
|
|
84
84
|
endUserId: string | number | null;
|
|
85
85
|
/** Partner-facing classification of the AI feature used this turn
|
|
86
86
|
* ('full_template_gen' | 'block_edit' | 'html_import' |
|
|
87
|
-
* 'image_import' | 'image_generation'), derived from
|
|
88
|
-
* internal data type. Null when the turn has no
|
|
89
|
-
* classification. */
|
|
87
|
+
* 'image_import' | 'image_generation' | 'image_edit'), derived from
|
|
88
|
+
* the turn's internal data type. Null when the turn has no
|
|
89
|
+
* partner-facing classification. */
|
|
90
90
|
featureType: AIFeatureType | null;
|
|
91
91
|
}
|
|
92
92
|
/** Snapshot of a generation request. Same shape that drives the
|
package/dist/tools/social.d.ts
CHANGED
|
@@ -17,6 +17,21 @@ export type SocialValues<
|
|
|
17
17
|
url: string;
|
|
18
18
|
imgUrl?: string;
|
|
19
19
|
}[];
|
|
20
|
+
editor?: {
|
|
21
|
+
data?: {
|
|
22
|
+
customIcons?: {
|
|
23
|
+
name: string;
|
|
24
|
+
url: string;
|
|
25
|
+
icons: Record<string, string>;
|
|
26
|
+
}[];
|
|
27
|
+
customOptions?: {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
showDefaultIcons?: boolean;
|
|
32
|
+
showDefaultOptions?: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
20
35
|
};
|
|
21
36
|
spacing: number | `${number}px` | `${number}%` | "auto";
|
|
22
37
|
align: "left" | "center" | "right" | "justify";
|