@builder.io/ai-utils
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -77,5 +77,13 @@ import type { BuilderContent, BuilderElement, Component } from "@builder.io/sdk"; | ||
export interface ContentApplySnapshot { | ||
/** | ||
* The id of the BuilderContent to apply the snapshot to | ||
*/ | ||
id: string; | ||
blocks?: BuilderElement[]; | ||
content?: BuilderContent; | ||
/** | ||
* Each snapshot can be either a full BuilderContent or individual BuilderElements. | ||
* Order matters, as the snapshots will be applied in the order they are listed. | ||
* The builder app will handle the logic of applying the snapshots in the correct order | ||
* and to the right content/elements. | ||
*/ | ||
snapshots: (BuilderElement | BuilderContent)[]; | ||
} | ||
@@ -82,0 +90,0 @@ export interface ContentApplySnapshotEvent { |
{ | ||
"name": "@builder.io/ai-utils", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Builder.io AI utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
19887
635