@builder.io/ai-utils 0.0.50 → 0.0.52
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 +7 -3
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -101,13 +101,14 @@ 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;
|
|
111
|
+
builderId?: string;
|
|
111
112
|
description?: string;
|
|
112
113
|
index: number;
|
|
113
114
|
value: string;
|
|
@@ -127,9 +128,11 @@ export interface ContentTsCodePatch extends ContentPatchBase {
|
|
|
127
128
|
}
|
|
128
129
|
export interface ContentInsertBeforePatch extends ContentPatchBase {
|
|
129
130
|
type: "insert_before";
|
|
131
|
+
snapshotBuilderId?: string;
|
|
130
132
|
}
|
|
131
133
|
export interface ContentInsertAfterPatch extends ContentPatchBase {
|
|
132
134
|
type: "insert_after";
|
|
135
|
+
snapshotBuilderId?: string;
|
|
133
136
|
}
|
|
134
137
|
export interface ContentPropsUpdatePatch extends ContentPatchBase {
|
|
135
138
|
type: "props";
|
|
@@ -139,6 +142,7 @@ export interface ContentStyleUpdatePatch extends ContentPatchBase {
|
|
|
139
142
|
}
|
|
140
143
|
export interface ContentSetChildrenPatch extends ContentPatchBase {
|
|
141
144
|
type: "children";
|
|
145
|
+
snapshotBuilderId?: string;
|
|
142
146
|
}
|
|
143
147
|
export interface ContentDeletePatch extends ContentPatchBase {
|
|
144
148
|
type: "delete";
|