@builder.io/ai-utils 0.0.11 → 0.0.13

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.
@@ -34,17 +34,25 @@ export interface CompletionOptions {
34
34
  */
35
35
  userId: string;
36
36
  /**
37
- * Builder custom components.
37
+ * The active locale of the builder editor.
38
38
  */
39
- builderComponents?: Component[];
39
+ builderActiveLocale?: string;
40
40
  /**
41
- * Builder design tokens.
41
+ * The locale of the provided builder content.
42
42
  */
43
- builderDesignTokens?: Record<string, string>;
43
+ builderContentLocale?: string;
44
44
  /**
45
45
  * Top level Builder content. The data.blocks array contains the BuilderElement.
46
46
  */
47
47
  builderContent?: BuilderContent;
48
+ /**
49
+ * Builder custom components.
50
+ */
51
+ builderComponents?: Component[];
52
+ /**
53
+ * Builder design tokens.
54
+ */
55
+ builderDesignTokens?: Record<string, string>;
48
56
  /**
49
57
  * Builder model.
50
58
  */
package/dist/events.d.ts CHANGED
@@ -55,12 +55,14 @@ export interface ResultEvent {
55
55
  data: any;
56
56
  }
57
57
  export interface BuiderEditorState {
58
+ activeLocale?: string;
59
+ contentLocale?: string;
60
+ content?: BuilderContent;
58
61
  components?: Component[];
59
62
  designTokens?: Record<string, string>;
60
- content?: BuilderContent;
61
- model?: BuilderModel | undefined;
63
+ model?: BuilderModel;
62
64
  selectedIds?: string[];
63
- spaceId?: string | undefined;
65
+ spaceId?: string;
64
66
  }
65
67
  export interface ContentCreateEvent {
66
68
  type: "assistant.content.create";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",