@innovastudio/contentbuilder 1.4.100 → 1.4.102

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.100",
4
+ "version": "1.4.102",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -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
- //callback([imageUrl]);
82087
- this.upscaleImage(imageUrl, callback);
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