@innovastudio/contentbuilder 1.4.100 → 1.4.102
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -79466,6 +79466,7 @@ class ContentBuilder {
|
|
79466
79466
|
useMediaRecorder: true,
|
79467
79467
|
// do not change
|
79468
79468
|
encoderPath: '',
|
79469
|
+
imageAutoUpscale: true,
|
79469
79470
|
headlineList: ['We create simple and effective designs.', 'Ultimate Experiences With Story, Emotion, And Purpose.', 'Build Anything Beautifully', 'With Less Stuff and More Compassion', 'We\'re [CompanyName]. Full stack development with a spark of creativity.', 'Transforming your digital experience with [CompanyName]. Achieve your online goals with our customized solutions.', 'Revolutionizing web development with [CompanyName]. Unleash your digital potential with our high-performance solutions.', 'Creative and Inspiring'],
|
79470
79471
|
shortCommandList: {
|
79471
79472
|
undo: ['undo'],
|
@@ -80899,7 +80900,7 @@ class ContentBuilder {
|
|
80899
80900
|
Array.prototype.forEach.call(forms, formUpload => {
|
80900
80901
|
if (this.dom.hasClass(formUpload, 'please-wait')) {
|
80901
80902
|
this.dom.removeClass(formUpload, 'please-wait');
|
80902
|
-
formUpload.parentNode.parentNode.querySelector('input[type="text"]').value = s;
|
80903
|
+
if (s) formUpload.parentNode.parentNode.querySelector('input[type="text"]').value = s;
|
80903
80904
|
formUpload.parentNode.parentNode.querySelector('input[type="file"]').value = '';
|
80904
80905
|
}
|
80905
80906
|
});
|
@@ -82082,9 +82083,11 @@ class ContentBuilder {
|
|
82082
82083
|
return;
|
82083
82084
|
}
|
82084
82085
|
const imageUrl = result.url;
|
82085
|
-
|
82086
|
-
|
82087
|
-
|
82086
|
+
if (this.imageAutoUpscale) {
|
82087
|
+
this.upscaleImage(imageUrl, callback);
|
82088
|
+
} else {
|
82089
|
+
callback([imageUrl]);
|
82090
|
+
}
|
82088
82091
|
} catch (error) {
|
82089
82092
|
if (error.name === 'AbortError') ; else {
|
82090
82093
|
// CORS or code errors goes here
|