@innovastudio/contentbuilder 1.5.152 → 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.152",
4
+ "version": "1.5.153",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -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(() => {