@innovastudio/contentbuilder 1.0.63 → 1.0.65

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -9120,8 +9120,8 @@ class HtmlUtil {
9120
9120
  Array.prototype.forEach.call(emptystyles, emptystyle => {
9121
9121
  emptystyle.removeAttribute('style');
9122
9122
  });
9123
- dom$E.removeEmptyStyle(tmp);
9124
- dom$E.cleanEmptySpans(tmp);
9123
+ dom$E.removeEmptyStyle(tmp); // dom.cleanEmptySpans(tmp);
9124
+
9125
9125
  elms = tmp.querySelectorAll('[data-keep]');
9126
9126
  dom$E.removeAttributes(elms, 'data-keep'); //Cleanup button <span contenteditable="false"><a contenteditable="true">button</a></span>
9127
9127
 
@@ -39989,6 +39989,10 @@ class Image {
39989
39989
  resize = false;
39990
39990
  }
39991
39991
 
39992
+ if (this.builder.opts.maxEmbedImageWidth === -1) {
39993
+ resize = false;
39994
+ }
39995
+
39992
39996
  if (!resize) {
39993
39997
  // NEW: this is to prevent using MegaPixImage (problem with some PNG. PNG doesn't need to resize, so no need to use MegaPixImage)
39994
39998
  let tmpCanvasNoCrop = document.getElementById('myTmpCanvasNoCrop');