@innovastudio/contentbuilder 1.4.141 → 1.4.142

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.141",
4
+ "version": "1.4.142",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -79989,7 +79989,14 @@ class ContentBuilder {
79989
79989
  sectionDropSetup() {
79990
79990
  if (this.blockContainer) {
79991
79991
  this.sortableOnCanvas = [];
79992
- const boxes = this.doc.querySelectorAll(this.blockContainer);
79992
+ let wrapper;
79993
+ let boxes;
79994
+ if (this.page && this.page === '.is-wrapper') {
79995
+ wrapper = this.doc.querySelector(this.page);
79996
+ boxes = wrapper.querySelectorAll('.is-box.box-canvas');
79997
+ } else {
79998
+ boxes = this.doc.querySelectorAll(this.blockContainer);
79999
+ }
79993
80000
  boxes.forEach(box => {
79994
80001
  box.insertAdjacentHTML('afterbegin', `
79995
80002
  <div class="is-block block-dummy" style="top: calc(97.2707% - 149.797px); left: calc(50% - 222px); width: 444px; height: 154px;z-index:-1000;visibility:hidden">