@innovastudio/contentbuilder 1.5.217 → 1.5.219

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/index.d.ts CHANGED
@@ -272,6 +272,15 @@ interface ContentBuilderOptions {
272
272
  headers?: { [key: string]: string };
273
273
 
274
274
  defaultImageGenerationProvider?: string;
275
+
276
+ /* 3D asset generation (image-to-3D). Rides the same provider endpoints
277
+ as image generation; presence of models3D enables the Code Chat tool. */
278
+ default3DGenerationProvider?: string;
279
+ models3D?: { id: string; label?: string }[];
280
+
281
+ /* Let Code Chat screenshot a 3D scene it built and correct it before
282
+ answering. Off by default; needs a code model that reads images. */
283
+ renderSelfCheck?: boolean;
275
284
  imageModel?: string;
276
285
  imageSize?: string;
277
286
  imageGenerationModels?: any[];
@@ -578,6 +587,12 @@ declare class ContentBuilder {
578
587
 
579
588
  generateImage(prompt: string, callback?: () => void): void;
580
589
  openFilePicker(type?: string, callback?: () => void): void;
590
+ /** Is an asset manager configured for this type of file? */
591
+ hasFilePicker(type?: string): boolean;
592
+ /** Upload a file from the user's computer; the callback gets its URL. */
593
+ openFileUpload(type?: string, callback?: (url: string) => void): void;
594
+ /** Select and upload buttons for a URL field in a plugin's settings, in the editor's own order. Select is included only where an asset manager is configured. */
595
+ createFileButtons(type?: string, callback?: (url: string) => void): HTMLButtonElement[];
581
596
  openColorPicker(
582
597
  currentColor: string,
583
598
  callback: (color: string) => void,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@innovastudio/contentbuilder",
4
- "version": "1.5.217",
4
+ "version": "1.5.219",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -62,10 +62,14 @@
62
62
  "webpack-dev-server": "^4.2.1"
63
63
  },
64
64
  "dependencies": {
65
+ "@gltf-transform/core": "^4.5.0",
66
+ "@gltf-transform/extensions": "^4.5.0",
67
+ "@gltf-transform/functions": "^4.5.0",
65
68
  "@monaco-editor/loader": "^1.6.1",
66
69
  "cropperjs": "^1.5.12",
67
70
  "js-beautify": "^1.14.0",
68
71
  "marked": "^17.0.0",
72
+ "meshoptimizer": "^1.2.0",
69
73
  "sortablejs": "^1.15.2"
70
74
  }
71
75
  }