@builder.io/ai-utils 0.0.18 → 0.0.19
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 +6 -3
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -86,15 +86,18 @@ export interface ContentUpdateEvent {
|
|
|
86
86
|
type: "assistant.content.update";
|
|
87
87
|
data: ContentUpdatePatch[];
|
|
88
88
|
}
|
|
89
|
-
export type ContentUpdatePatch =
|
|
89
|
+
export type ContentUpdatePatch = ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch;
|
|
90
90
|
interface ContentPatchBase {
|
|
91
91
|
id: string;
|
|
92
92
|
patchId: string;
|
|
93
93
|
value: string;
|
|
94
94
|
ts: number;
|
|
95
95
|
}
|
|
96
|
-
export interface
|
|
97
|
-
type: "
|
|
96
|
+
export interface ContentInsertBeforePatch extends ContentPatchBase {
|
|
97
|
+
type: "insert_before";
|
|
98
|
+
}
|
|
99
|
+
export interface ContentInsertAfterPatch extends ContentPatchBase {
|
|
100
|
+
type: "insert_after";
|
|
98
101
|
}
|
|
99
102
|
export interface ContentPropsUpdatePatch extends ContentPatchBase {
|
|
100
103
|
type: "props";
|