@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.
Files changed (2) hide show
  1. package/dist/events.d.ts +6 -3
  2. 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 = ContentInsertAdjacentPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch;
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 ContentInsertAdjacentPatch extends ContentPatchBase {
97
- type: "insert_adjacent";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",