@innovastudio/contentbuilder 1.5.151 → 1.5.153

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
@@ -45,6 +45,7 @@ interface ContentBuilderOptions {
45
45
  onRender?: () => void;
46
46
  onContentClick?: () => void;
47
47
  onChange?: () => void;
48
+ onType?: () => void;
48
49
  onAdd?: () => void;
49
50
  upload?: (file: File) => Promise<any>;
50
51
  uploadFile?: (e: Event) => Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.151",
4
+ "version": "1.5.153",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -87401,6 +87401,7 @@ ${answer}
87401
87401
  temperature,
87402
87402
  topP,
87403
87403
  num,
87404
+ customData: this.builder.settings.customData,
87404
87405
  metadata: this.builder.settings.metadata || {}
87405
87406
  };
87406
87407
 
@@ -98611,10 +98612,9 @@ Please obtain a license at: https://innovastudio.com/contentbox`);
98611
98612
  let inputCheckStatus = {
98612
98613
  model: modelId,
98613
98614
  endpoint: statusEndpoint,
98614
- request_id: requestId
98615
- // customData: this.customData
98615
+ request_id: requestId,
98616
+ customData: this.customData
98616
98617
  };
98617
-
98618
98618
  let status;
98619
98619
  do {
98620
98620
  const response = await fetch(this.checkRequestStatusUrl_Fal, {
@@ -99598,6 +99598,11 @@ Please obtain a license at: https://innovastudio.com/contentbox`);
99598
99598
  this.elmTool.hide();
99599
99599
  }
99600
99600
  typing() {
99601
+ // Lightweight: Just mark content changed for auto-save
99602
+ if (this.opts.onType) {
99603
+ this.opts.onType();
99604
+ }
99605
+
99601
99606
  // console.log('typing');
99602
99607
  if (this.timeoutId) clearTimeout(this.timeoutId);
99603
99608
  this.timeoutId = setTimeout(() => {