@builder.io/ai-utils 0.0.51 → 0.0.53
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/events.d.ts +4 -3
- package/dist/settings.d.ts +8 -0
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -101,10 +101,10 @@ export interface ContentUpdateEvent {
|
|
|
101
101
|
export type ContentUpdatePatch = ContentTsCodePatch | ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch;
|
|
102
102
|
export interface NodeData {
|
|
103
103
|
/**
|
|
104
|
-
* When dealing with
|
|
105
|
-
* we can properly add nodes inside of
|
|
104
|
+
* When dealing with some builder nodes that contain virtual children like Columns, and PersonalizationContainer,
|
|
105
|
+
* we need to store the virtual child index so we can properly add nodes inside one of the children if needed.
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
virtualChildIndex?: number;
|
|
108
108
|
}
|
|
109
109
|
interface ContentPatchBase {
|
|
110
110
|
id: string;
|
|
@@ -112,6 +112,7 @@ interface ContentPatchBase {
|
|
|
112
112
|
description?: string;
|
|
113
113
|
index: number;
|
|
114
114
|
value: string;
|
|
115
|
+
displayValue?: string;
|
|
115
116
|
ts: number;
|
|
116
117
|
/**
|
|
117
118
|
* Any additional data about the patch. For example, this payload could contain the
|
package/dist/settings.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export interface AssistantSettings {
|
|
|
3
3
|
viewId?: string;
|
|
4
4
|
cssOverrides?: string;
|
|
5
5
|
headingText: string;
|
|
6
|
+
headingTitle?: string;
|
|
7
|
+
headingImage?: string;
|
|
8
|
+
suggestedPrompts?: SuggestedPrompt[];
|
|
9
|
+
hideNewChatIfNoMessages?: boolean;
|
|
6
10
|
hideFrameworkPicker?: boolean;
|
|
7
11
|
hideHeader?: boolean;
|
|
8
12
|
messagePlaceholder: string;
|
|
@@ -21,6 +25,10 @@ export interface AssistantSettings {
|
|
|
21
25
|
theme?: "dark" | "light";
|
|
22
26
|
transparentBackground?: boolean;
|
|
23
27
|
}
|
|
28
|
+
export interface SuggestedPrompt {
|
|
29
|
+
text: string;
|
|
30
|
+
type: "modify" | "interactivity" | "data";
|
|
31
|
+
}
|
|
24
32
|
export interface Snippet {
|
|
25
33
|
/**
|
|
26
34
|
* The text that will be displayed in the chat snippet button.
|