@builder.io/ai-utils 0.0.19 → 0.0.20

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.
Files changed (2) hide show
  1. package/dist/events.d.ts +10 -2
  2. package/package.json +1 -1
package/dist/events.d.ts CHANGED
@@ -74,9 +74,17 @@ export interface ContentCreatePatch {
74
74
  element: BuilderElement;
75
75
  }
76
76
  export interface ContentApplySnapshot {
77
+ /**
78
+ * The id of the BuilderContent to apply the snapshot to
79
+ */
77
80
  id: string;
78
- blocks?: BuilderElement[];
79
- content?: BuilderContent;
81
+ /**
82
+ * Each snapshot can be either a full BuilderContent or individual BuilderElements.
83
+ * Order matters, as the snapshots will be applied in the order they are listed.
84
+ * The builder app will handle the logic of applying the snapshots in the correct order
85
+ * and to the right content/elements.
86
+ */
87
+ snapshots: (BuilderElement | BuilderContent)[];
80
88
  }
81
89
  export interface ContentApplySnapshotEvent {
82
90
  type: "assistant.content.applysnapshot";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",