@innovastudio/contentbuilder 1.5.23 → 1.5.24

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.5.23",
4
+ "version": "1.5.24",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -92574,13 +92574,14 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
92574
92574
  boxes = this.doc.querySelectorAll(this.blockContainer);
92575
92575
  }
92576
92576
  boxes.forEach(box => {
92577
- box.insertAdjacentHTML('afterbegin', `
92578
- <div class="is-block block-dummy" style="top: 0%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92579
- <div class="is-block block-dummy" style="top: 20%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92580
- <div class="is-block block-dummy" style="top: 40%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92581
- <div class="is-block block-dummy" style="top: 60%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92582
- <div class="is-block block-dummy" style="top: 80%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92583
- `);
92577
+ // box.insertAdjacentHTML('afterbegin', `
92578
+ // <div class="is-block block-dummy" style="top: 0%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92579
+ // <div class="is-block block-dummy" style="top: 20%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92580
+ // <div class="is-block block-dummy" style="top: 40%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92581
+ // <div class="is-block block-dummy" style="top: 60%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92582
+ // <div class="is-block block-dummy" style="top: 80%; left: 0%; width: 100%; height: 20%;background:#eee;opacity:0"></div>
92583
+ // `);
92584
+
92584
92585
  const obj = new Sortable(box, {
92585
92586
  scroll: true,
92586
92587
  group: 'shared',
@@ -92678,9 +92679,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
92678
92679
  bw = '540px';
92679
92680
  }
92680
92681
  }
92682
+ let containerClass = ''; // container's 'size-18 leading-14' is not for print
92683
+ if (this.isContentBox) containerClass = ' size-18 leading-14';
92681
92684
  const blockTemplate = `
92682
92685
  <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${bw};">
92683
- <div class="is-container container-new">
92686
+ <div class="is-container container-new${containerClass}">
92684
92687
  [%CONTENT%]
92685
92688
  </div>
92686
92689
  </div>
@@ -92730,9 +92733,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
92730
92733
  bw = '540px';
92731
92734
  }
92732
92735
  }
92736
+ let containerClass = ''; // container's 'size-18 leading-14' is not for print
92737
+ if (this.isContentBox) containerClass = ' size-18 leading-14';
92733
92738
  const blockTemplate = `
92734
92739
  <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${bw};">
92735
- <div class="is-container container-new">
92740
+ <div class="is-container container-new${containerClass}">
92736
92741
  [%CONTENT%]
92737
92742
  </div>
92738
92743
  </div>