@innovastudio/contentbox 1.5.86 → 1.5.88
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +3 -2
- package/public/contentbox/contentbox.esm.js +27 -10
- package/public/contentbox/contentbox.min.js +2 -2
- package/readme.txt +82 -69
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.88",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -18,6 +18,7 @@
|
|
18
18
|
"author": "",
|
19
19
|
"license": "SEE LICENSE IN license.txt",
|
20
20
|
"devDependencies": {
|
21
|
+
"@aws-sdk/client-s3": "^3.414.0",
|
21
22
|
"@babel/core": "^7.15.0",
|
22
23
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
23
24
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
@@ -51,7 +52,7 @@
|
|
51
52
|
"ws": "^8.13.0"
|
52
53
|
},
|
53
54
|
"dependencies": {
|
54
|
-
"@innovastudio/contentbuilder": "^1.4.
|
55
|
+
"@innovastudio/contentbuilder": "^1.4.108",
|
55
56
|
"js-beautify": "^1.14.0"
|
56
57
|
}
|
57
58
|
}
|
@@ -64949,6 +64949,7 @@ class Image$1 {
|
|
64949
64949
|
});
|
64950
64950
|
document.querySelector('.moveable-control-box').style.display = 'none';
|
64951
64951
|
imageResizer.addEventListener('click', () => {
|
64952
|
+
if (!this.builder.activeImage) return;
|
64952
64953
|
this.builder.activeImage.click();
|
64953
64954
|
this.repositionImageTool();
|
64954
64955
|
this.builder.elmTool.repositionElementTool();
|
@@ -97143,6 +97144,15 @@ class ContentBuilder {
|
|
97143
97144
|
if (this.viewImageUrl) {
|
97144
97145
|
src = this.viewImageUrl + '?url=' + src;
|
97145
97146
|
}
|
97147
|
+
if (src.includes('http') && this.viewFileUrl) {
|
97148
|
+
/*
|
97149
|
+
Can be from:
|
97150
|
+
External site,
|
97151
|
+
ex:
|
97152
|
+
http://bucket-name.s3-website-us-east-1.amazonaws.com/readme.txt
|
97153
|
+
*/
|
97154
|
+
src = this.viewFileUrl + '?url=' + src;
|
97155
|
+
}
|
97146
97156
|
const width = 512;
|
97147
97157
|
const height = 512;
|
97148
97158
|
const img = new Image();
|
@@ -97170,7 +97180,7 @@ class ContentBuilder {
|
|
97170
97180
|
body: JSON.stringify(messages)
|
97171
97181
|
});
|
97172
97182
|
const result = await response.json();
|
97173
|
-
callback(
|
97183
|
+
callback(result.url);
|
97174
97184
|
};
|
97175
97185
|
}
|
97176
97186
|
async generateImage(prompt, callback) {
|
@@ -97214,7 +97224,7 @@ class ContentBuilder {
|
|
97214
97224
|
if (this.imageAutoUpscale) {
|
97215
97225
|
this.upscaleImage(imageUrl, callback);
|
97216
97226
|
} else {
|
97217
|
-
callback(
|
97227
|
+
callback(imageUrl);
|
97218
97228
|
}
|
97219
97229
|
} catch (error) {
|
97220
97230
|
if (error.name === 'AbortError') ; else {
|
@@ -115469,6 +115479,7 @@ class ContentBox {
|
|
115469
115479
|
// onPluginsLoaded: function () { },
|
115470
115480
|
coverImageHandler: '',
|
115471
115481
|
// onUploadCoverImage: function () { },
|
115482
|
+
showSelectCover: true,
|
115472
115483
|
customval: '',
|
115473
115484
|
enableAnimation: false,
|
115474
115485
|
colors: ['#ff8f00', '#ef6c00', '#d84315', '#c62828', '#58362f', '#37474f', '#353535', '#f9a825', '#9e9d24', '#558b2f', '#ad1457', '#6a1b9a', '#4527a0', '#616161', '#00b8c9', '#009666', '#2e7d32', '#0277bd', '#1565c0', '#283593', '#9e9e9e'],
|
@@ -117869,7 +117880,8 @@ class ContentBox {
|
|
117869
117880
|
// upscaleImageUrl: '', // To enable AI image generation
|
117870
117881
|
// controlNetUrl: '',
|
117871
117882
|
// saveTextUrl: '',
|
117872
|
-
//
|
117883
|
+
// viewUrl: '',
|
117884
|
+
// viewFileUrl: '',
|
117873
117885
|
// imageModel: 'realistic-vision-v3',
|
117874
117886
|
// imageNegativePrompt: '',
|
117875
117887
|
// imageSteps: 25,
|
@@ -118441,7 +118453,8 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
118441
118453
|
upscaleImageUrl: this.settings.upscaleImageUrl,
|
118442
118454
|
controlNetUrl: this.settings.controlNetUrl,
|
118443
118455
|
saveTextUrl: this.settings.saveTextUrl,
|
118444
|
-
|
118456
|
+
viewUrl: this.settings.viewUrl,
|
118457
|
+
viewFileUrl: this.settings.viewFileUrl,
|
118445
118458
|
imageModel: this.settings.imageModel,
|
118446
118459
|
imageNegativePrompt: this.settings.imageNegativePrompt,
|
118447
118460
|
imageSteps: this.settings.imageSteps,
|
@@ -120802,9 +120815,11 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
120802
120815
|
boxTool.style.left = 'calc(50% - 60px)';
|
120803
120816
|
|
120804
120817
|
if (this.onImageSelectClick || this.imageselect) {
|
120805
|
-
|
120806
|
-
|
120807
|
-
|
120818
|
+
if (this.showSelectCover) {
|
120819
|
+
boxTool.style.width = '160px';
|
120820
|
+
box.querySelector('.is-select-image').style.display = 'inline-block';
|
120821
|
+
boxTool.style.left = 'calc(50% - 80px)';
|
120822
|
+
}
|
120808
120823
|
}
|
120809
120824
|
|
120810
120825
|
if (box.querySelector('.is-overlay-content[data-module]').getAttribute('data-module') === 'video-bg') {
|
@@ -120821,9 +120836,11 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
120821
120836
|
boxTool.style.left = 'calc(50% - 40px)';
|
120822
120837
|
|
120823
120838
|
if (this.onImageSelectClick || this.imageselect) {
|
120824
|
-
|
120825
|
-
|
120826
|
-
|
120839
|
+
if (this.showSelectCover) {
|
120840
|
+
boxTool.style.width = '120px';
|
120841
|
+
box.querySelector('.is-select-image').style.display = 'inline-block';
|
120842
|
+
boxTool.style.left = 'calc(50% - 60px)';
|
120843
|
+
}
|
120827
120844
|
}
|
120828
120845
|
}
|
120829
120846
|
} // box info
|