@innovastudio/contentbox 1.5.87 → 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.87",
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 => {
@@ -115479,6 +115479,7 @@ class ContentBox {
115479
115479
  // onPluginsLoaded: function () { },
115480
115480
  coverImageHandler: '',
115481
115481
  // onUploadCoverImage: function () { },
115482
+ showSelectCover: true,
115482
115483
  customval: '',
115483
115484
  enableAnimation: false,
115484
115485
  colors: ['#ff8f00', '#ef6c00', '#d84315', '#c62828', '#58362f', '#37474f', '#353535', '#f9a825', '#9e9d24', '#558b2f', '#ad1457', '#6a1b9a', '#4527a0', '#616161', '#00b8c9', '#009666', '#2e7d32', '#0277bd', '#1565c0', '#283593', '#9e9e9e'],
@@ -117865,6 +117866,7 @@ class ContentBox {
117865
117866
  AIToolbar: true,
117866
117867
  sendCommandUrl: '',
117867
117868
  // http://localhost:8081/answer
117869
+ hideImageGeneration: false,
117868
117870
 
117869
117871
  /* To enable asset manager */
117870
117872
  // listFilesUrl: '',
@@ -118440,6 +118442,7 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
118440
118442
  similarityThreshold: this.settings.similarityThreshold,
118441
118443
  useMediaRecorder: this.settings.useMediaRecorder,
118442
118444
  encoderPath: this.settings.encoderPath,
118445
+ hideImageGeneration: this.settings.hideImageGeneration,
118443
118446
  listFilesUrl: this.settings.listFilesUrl,
118444
118447
  listFoldersUrl: this.settings.listFoldersUrl,
118445
118448
  deleteFilesUrl: this.settings.deleteFilesUrl,
@@ -120814,9 +120817,11 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
120814
120817
  boxTool.style.left = 'calc(50% - 60px)';
120815
120818
 
120816
120819
  if (this.onImageSelectClick || this.imageselect) {
120817
- boxTool.style.width = '160px';
120818
- box.querySelector('.is-select-image').style.display = 'inline-block';
120819
- boxTool.style.left = 'calc(50% - 80px)';
120820
+ if (this.showSelectCover) {
120821
+ boxTool.style.width = '160px';
120822
+ box.querySelector('.is-select-image').style.display = 'inline-block';
120823
+ boxTool.style.left = 'calc(50% - 80px)';
120824
+ }
120820
120825
  }
120821
120826
 
120822
120827
  if (box.querySelector('.is-overlay-content[data-module]').getAttribute('data-module') === 'video-bg') {
@@ -120833,9 +120838,11 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
120833
120838
  boxTool.style.left = 'calc(50% - 40px)';
120834
120839
 
120835
120840
  if (this.onImageSelectClick || this.imageselect) {
120836
- boxTool.style.width = '120px';
120837
- box.querySelector('.is-select-image').style.display = 'inline-block';
120838
- boxTool.style.left = 'calc(50% - 60px)';
120841
+ if (this.showSelectCover) {
120842
+ boxTool.style.width = '120px';
120843
+ box.querySelector('.is-select-image').style.display = 'inline-block';
120844
+ boxTool.style.left = 'calc(50% - 60px)';
120845
+ }
120839
120846
  }
120840
120847
  }
120841
120848
  } // box info