@innovastudio/contentbox 1.4.65 → 1.4.66

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/contentbox",
3
3
  "type": "module",
4
- "version": "1.4.65",
4
+ "version": "1.4.66",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.3.74",
49
+ "@innovastudio/contentbuilder": "^1.3.75",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -35675,14 +35675,14 @@ const renderSnippetPanel = builder => {
35675
35675
 
35676
35676
  builder.sectionDropSetup();
35677
35677
  },
35678
- onMove: evt => {
35678
+ onMove: () => {
35679
35679
  let emptyinfo = builder.doc.querySelector('.row-add-initial'); // if there is empty info, remove it during snippet drag drop
35680
35680
  // if(emptyinfo) emptyinfo.parentNode.removeChild(emptyinfo);
35681
35681
 
35682
- if (emptyinfo) emptyinfo.style.display = 'none';
35683
- if (builder.sortableOnPage) if (evt.related.getBoundingClientRect().top < 0 || evt.related.getBoundingClientRect().top > window.innerHeight) {
35684
- return false;
35685
- }
35682
+ if (emptyinfo) emptyinfo.style.display = 'none'; // if(builder.sortableOnPage) if(evt.related.getBoundingClientRect().top<0 ||
35683
+ // evt.related.getBoundingClientRect().top>window.innerHeight) {
35684
+ // return false;
35685
+ // }
35686
35686
  },
35687
35687
  onStart: () => {
35688
35688
  // Remove .builder-active during dragging (because this class makes rows have border-right/left 120px)
@@ -89790,6 +89790,8 @@ class ContentBuilder {
89790
89790
  if (oldCss) oldCss.parentNode.removeChild(oldCss);
89791
89791
  this.builderStuff.insertAdjacentHTML('afterbegin', newCss);
89792
89792
  }
89793
+
89794
+ this.sectionDropSetup(); // enable drop as section (ContentBox)
89793
89795
  },
89794
89796
  onStart: () => {
89795
89797
  this.uo.saveForUndo(); // Even if cancelled, saveForUndo will make sure not to save if there is no change
@@ -89798,6 +89800,8 @@ class ContentBuilder {
89798
89800
  },
89799
89801
  onEnd: () => {
89800
89802
  this.util.checkEmpty(); // for multiple instances check
89803
+
89804
+ if (this.sortableOnPage) this.sortableOnPage.destroy(); // enable drop as section (ContentBox)
89801
89805
  },
89802
89806
  onAdd: evt => {
89803
89807
  var itemEl = evt.item;
@@ -103670,6 +103674,9 @@ class ContentBox {
103670
103674
  min-height: unset !important;
103671
103675
  background: rgba(204, 204, 204, 0.15) !important;
103672
103676
  }
103677
+ .is-wrapper > .sortable-ghost * {
103678
+ opacity: 0 !important;
103679
+ }
103673
103680
 
103674
103681
  /* toggle tool */
103675
103682
  .is-wrapper.is-clean-edit.hard-select .box-select .is-box-tool,