@innovastudio/contentbox 1.5.88 → 1.5.89

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.5.88",
4
+ "version": "1.5.89",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -52,7 +52,7 @@
52
52
  "ws": "^8.13.0"
53
53
  },
54
54
  "dependencies": {
55
- "@innovastudio/contentbuilder": "^1.4.108",
55
+ "@innovastudio/contentbuilder": "^1.4.110",
56
56
  "js-beautify": "^1.14.0"
57
57
  }
58
58
  }
@@ -93311,7 +93311,7 @@ class Dictation {
93311
93311
  const btnScopeOthers = this.modalCommand.querySelector('.scope-others');
93312
93312
  const btnScopeImage = this.modalCommand.querySelector('.scope-image');
93313
93313
  btnScopeBlock.disabled = true;
93314
- if (this.builder.textToImageUrl) btnScopeImage.style.display = ''; // show generate image button
93314
+ if (this.builder.textToImageUrl && !this.builder.hideImageGeneration) btnScopeImage.style.display = ''; // show generate image button
93315
93315
 
93316
93316
  const assistModeBtns = modalCommand.querySelectorAll('.div-assistant-mode button');
93317
93317
  assistModeBtns.forEach(btn => {
@@ -117866,6 +117866,7 @@ class ContentBox {
117866
117866
  AIToolbar: true,
117867
117867
  sendCommandUrl: '',
117868
117868
  // http://localhost:8081/answer
117869
+ hideImageGeneration: false,
117869
117870
 
117870
117871
  /* To enable asset manager */
117871
117872
  // listFilesUrl: '',
@@ -118441,6 +118442,7 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
118441
118442
  similarityThreshold: this.settings.similarityThreshold,
118442
118443
  useMediaRecorder: this.settings.useMediaRecorder,
118443
118444
  encoderPath: this.settings.encoderPath,
118445
+ hideImageGeneration: this.settings.hideImageGeneration,
118444
118446
  listFilesUrl: this.settings.listFilesUrl,
118445
118447
  listFoldersUrl: this.settings.listFoldersUrl,
118446
118448
  deleteFilesUrl: this.settings.deleteFilesUrl,