@innovastudio/contentbox 1.0.33 → 1.0.37

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/contentbox",
3
- "version": "1.0.33",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@ashthornton/asscroll": "^2.0.4",
42
- "@innovastudio/contentbuilder": "^1.0.63",
42
+ "@innovastudio/contentbuilder": "^1.0.65",
43
43
  "axios": "^0.21.4",
44
44
  "cors": "^2.8.5",
45
45
  "express": "^4.17.1",
@@ -311,7 +311,7 @@ class SideBar {
311
311
  this.builderStuff = builderStuff;
312
312
 
313
313
  if (this.builder.useSidebar) {
314
- html += '<div class="is-sidebar active" style="transform: translate3d(0,0,0);display: flex;flex-direction: column;">';
314
+ html += '<div class="is-sidebar active" style="transform: translate3d(0,0,0);display: flex;flex-direction: column;opacity:opacity: 0.0001;">';
315
315
  var sideIndex = 0;
316
316
  this.builder.sidebarData.buttons.map(button => {
317
317
  if (button.name == 'section') {
@@ -19192,8 +19192,8 @@ class HtmlUtil {
19192
19192
  Array.prototype.forEach.call(emptystyles, emptystyle => {
19193
19193
  emptystyle.removeAttribute('style');
19194
19194
  });
19195
- dom$E.removeEmptyStyle(tmp);
19196
- dom$E.cleanEmptySpans(tmp);
19195
+ dom$E.removeEmptyStyle(tmp); // dom.cleanEmptySpans(tmp);
19196
+
19197
19197
  elms = tmp.querySelectorAll('[data-keep]');
19198
19198
  dom$E.removeAttributes(elms, 'data-keep'); //Cleanup button <span contenteditable="false"><a contenteditable="true">button</a></span>
19199
19199
 
@@ -50061,6 +50061,10 @@ class Image {
50061
50061
  resize = false;
50062
50062
  }
50063
50063
 
50064
+ if (this.builder.opts.maxEmbedImageWidth === -1) {
50065
+ resize = false;
50066
+ }
50067
+
50064
50068
  if (!resize) {
50065
50069
  // NEW: this is to prevent using MegaPixImage (problem with some PNG. PNG doesn't need to resize, so no need to use MegaPixImage)
50066
50070
  let tmpCanvasNoCrop = document.getElementById('myTmpCanvasNoCrop');
@@ -73727,6 +73731,7 @@ class ContentBox {
73727
73731
  if (!builderStuff) {
73728
73732
  builderStuff = document.createElement('div');
73729
73733
  builderStuff.id = '_cbhtml';
73734
+ builderStuff.style.visibility = 'hidden';
73730
73735
  builderStuff.className = 'is-ui';
73731
73736
  document.body.appendChild(builderStuff);
73732
73737
  builderStuff = document.querySelector('#_cbhtml');
@@ -73979,7 +73984,8 @@ class ContentBox {
73979
73984
  if (elm) elm.parentNode.removeChild(elm);
73980
73985
  this.wrapperEl.style.opacity = 1;
73981
73986
  let sidebar = builderStuff.querySelector('.is-sidebar');
73982
- if (sidebar) sidebar.style.opacity = 1; // Remove the page-overlay
73987
+ if (sidebar) sidebar.style.opacity = 1;
73988
+ this.builderStuff.style.visibility = 'visible'; // Remove the page-overlay
73983
73989
 
73984
73990
  pageOverlay = builderStuff.querySelectorAll('.page-overlay');
73985
73991
  pageOverlay.forEach(elm => {
@@ -74401,7 +74407,7 @@ class ContentBox {
74401
74407
  if (localStorage.getItem('_zoom') !== null) {
74402
74408
  zoom = localStorage.getItem('_zoom');
74403
74409
  } else {
74404
- zoom = 1;
74410
+ zoom = this.settings.zoom; //1;
74405
74411
  }
74406
74412
 
74407
74413
  let leftadj;