@innovastudio/contentbox 1.4.64 → 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.
|
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.
|
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:
|
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
|
-
|
35684
|
-
|
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)
|
@@ -89751,15 +89751,14 @@ class ContentBuilder {
|
|
89751
89751
|
scroll: true,
|
89752
89752
|
// invertSwap: true, /* https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction#swap-threshold */
|
89753
89753
|
group: 'shared',
|
89754
|
-
direction: 'dummy',
|
89755
|
-
// works well with border-right hack & empty-info
|
89754
|
+
// direction: 'dummy', // works well with border-right hack & empty-info
|
89756
89755
|
animation: 300,
|
89757
89756
|
handle: '.row-handle',
|
89758
89757
|
// swapThreshold: 0.1, // this cause drag drop snippet sometimes difficult
|
89759
89758
|
// invertedSwapThreshold: 0.1,
|
89760
89759
|
sort: true,
|
89761
89760
|
//new
|
89762
|
-
swapThreshold: 0.5,
|
89761
|
+
// swapThreshold: 0.5,
|
89763
89762
|
onChoose: () => {
|
89764
89763
|
// Get zoom (scale) value
|
89765
89764
|
let scale;
|
@@ -89791,6 +89790,8 @@ class ContentBuilder {
|
|
89791
89790
|
if (oldCss) oldCss.parentNode.removeChild(oldCss);
|
89792
89791
|
this.builderStuff.insertAdjacentHTML('afterbegin', newCss);
|
89793
89792
|
}
|
89793
|
+
|
89794
|
+
this.sectionDropSetup(); // enable drop as section (ContentBox)
|
89794
89795
|
},
|
89795
89796
|
onStart: () => {
|
89796
89797
|
this.uo.saveForUndo(); // Even if cancelled, saveForUndo will make sure not to save if there is no change
|
@@ -89799,6 +89800,8 @@ class ContentBuilder {
|
|
89799
89800
|
},
|
89800
89801
|
onEnd: () => {
|
89801
89802
|
this.util.checkEmpty(); // for multiple instances check
|
89803
|
+
|
89804
|
+
if (this.sortableOnPage) this.sortableOnPage.destroy(); // enable drop as section (ContentBox)
|
89802
89805
|
},
|
89803
89806
|
onAdd: evt => {
|
89804
89807
|
var itemEl = evt.item;
|
@@ -92284,8 +92287,8 @@ class ContentBuilder {
|
|
92284
92287
|
animation: 150,
|
92285
92288
|
sort: true,
|
92286
92289
|
// draggable: '.dummy',
|
92287
|
-
swapThreshold: 0.1,
|
92288
|
-
invertSwap: true,
|
92290
|
+
// swapThreshold: 0.1,
|
92291
|
+
// invertSwap: true,
|
92289
92292
|
onAdd: evt => {
|
92290
92293
|
var itemEl = evt.item;
|
92291
92294
|
|
@@ -103671,6 +103674,9 @@ class ContentBox {
|
|
103671
103674
|
min-height: unset !important;
|
103672
103675
|
background: rgba(204, 204, 204, 0.15) !important;
|
103673
103676
|
}
|
103677
|
+
.is-wrapper > .sortable-ghost * {
|
103678
|
+
opacity: 0 !important;
|
103679
|
+
}
|
103674
103680
|
|
103675
103681
|
/* toggle tool */
|
103676
103682
|
.is-wrapper.is-clean-edit.hard-select .box-select .is-box-tool,
|