@innovastudio/contentbox 1.5.88 → 1.5.90
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.5.
|
4
|
+
"version": "1.5.90",
|
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.
|
55
|
+
"@innovastudio/contentbuilder": "^1.4.111",
|
56
56
|
"js-beautify": "^1.14.0"
|
57
57
|
}
|
58
58
|
}
|
@@ -64929,11 +64929,23 @@ class Image$1 {
|
|
64929
64929
|
var elementWidth = activeImage.parentNode.offsetWidth - paddingX - borderX;
|
64930
64930
|
//var elementHeight = activeImage.parentNode.offsetHeight - paddingY - borderY;
|
64931
64931
|
|
64932
|
+
let currentWidth;
|
64932
64933
|
if (!bCircular) {
|
64933
|
-
|
64934
|
-
|
64935
|
-
|
64934
|
+
const parentWidth = elementWidth; //activeImage.parentNode.offsetWidth;
|
64935
|
+
currentWidth = activeImage.offsetWidth;
|
64936
|
+
const percentage = currentWidth / parentWidth * 100;
|
64936
64937
|
activeImage.style.width = percentage + '%';
|
64938
|
+
} else {
|
64939
|
+
const _screenwidth = window.innerWidth;
|
64940
|
+
currentWidth = activeImage.offsetWidth;
|
64941
|
+
const percentage = currentWidth / _screenwidth * 100;
|
64942
|
+
activeImage.style.width = percentage + 'vw';
|
64943
|
+
activeImage.style.height = percentage + 'vw';
|
64944
|
+
const img = activeImage.querySelector('img');
|
64945
|
+
if (img) {
|
64946
|
+
img.style.width = '100%';
|
64947
|
+
img.style.height = '100%';
|
64948
|
+
}
|
64937
64949
|
}
|
64938
64950
|
if (this.builder.opts.emailMode) {
|
64939
64951
|
//activeImage.setAttribute('width', percentage + '%');
|
@@ -93311,7 +93323,7 @@ class Dictation {
|
|
93311
93323
|
const btnScopeOthers = this.modalCommand.querySelector('.scope-others');
|
93312
93324
|
const btnScopeImage = this.modalCommand.querySelector('.scope-image');
|
93313
93325
|
btnScopeBlock.disabled = true;
|
93314
|
-
if (this.builder.textToImageUrl) btnScopeImage.style.display = ''; // show generate image button
|
93326
|
+
if (this.builder.textToImageUrl && !this.builder.hideImageGeneration) btnScopeImage.style.display = ''; // show generate image button
|
93315
93327
|
|
93316
93328
|
const assistModeBtns = modalCommand.querySelectorAll('.div-assistant-mode button');
|
93317
93329
|
assistModeBtns.forEach(btn => {
|
@@ -117866,6 +117878,7 @@ class ContentBox {
|
|
117866
117878
|
AIToolbar: true,
|
117867
117879
|
sendCommandUrl: '',
|
117868
117880
|
// http://localhost:8081/answer
|
117881
|
+
hideImageGeneration: false,
|
117869
117882
|
|
117870
117883
|
/* To enable asset manager */
|
117871
117884
|
// listFilesUrl: '',
|
@@ -118441,6 +118454,7 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
118441
118454
|
similarityThreshold: this.settings.similarityThreshold,
|
118442
118455
|
useMediaRecorder: this.settings.useMediaRecorder,
|
118443
118456
|
encoderPath: this.settings.encoderPath,
|
118457
|
+
hideImageGeneration: this.settings.hideImageGeneration,
|
118444
118458
|
listFilesUrl: this.settings.listFilesUrl,
|
118445
118459
|
listFoldersUrl: this.settings.listFoldersUrl,
|
118446
118460
|
deleteFilesUrl: this.settings.deleteFilesUrl,
|