@builder.io/ai-utils 0.0.52 → 0.0.54
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 +5 -1
- package/dist/settings.d.ts +8 -0
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export interface ContentUpdateEvent {
|
|
|
98
98
|
type: "assistant.content.update";
|
|
99
99
|
data: ContentUpdatePatch[];
|
|
100
100
|
}
|
|
101
|
-
export type ContentUpdatePatch = ContentTsCodePatch | ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch;
|
|
101
|
+
export type ContentUpdatePatch = ContentTsCodePatch | ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch | ContentSetTagNamePatch;
|
|
102
102
|
export interface NodeData {
|
|
103
103
|
/**
|
|
104
104
|
* When dealing with some builder nodes that contain virtual children like Columns, and PersonalizationContainer,
|
|
@@ -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
|
|
@@ -126,6 +127,9 @@ interface ContentPatchBase {
|
|
|
126
127
|
export interface ContentTsCodePatch extends ContentPatchBase {
|
|
127
128
|
type: "ts_code";
|
|
128
129
|
}
|
|
130
|
+
export interface ContentSetTagNamePatch extends ContentPatchBase {
|
|
131
|
+
type: "set_tag_name";
|
|
132
|
+
}
|
|
129
133
|
export interface ContentInsertBeforePatch extends ContentPatchBase {
|
|
130
134
|
type: "insert_before";
|
|
131
135
|
snapshotBuilderId?: string;
|
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.
|