@innovastudio/contentbox 1.6.45 → 1.6.46
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.6.
|
4
|
+
"version": "1.6.46",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"ws": "^8.13.0"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@innovastudio/contentbuilder": "^1.5.
|
55
|
+
"@innovastudio/contentbuilder": "^1.5.30",
|
56
56
|
"js-beautify": "^1.14.0"
|
57
57
|
}
|
58
58
|
}
|
@@ -42789,19 +42789,27 @@ const renderSnippetPanel = (builder, snippetOpen) => {
|
|
42789
42789
|
if (activeBuilderArea) {
|
42790
42790
|
dom.addClass(activeBuilderArea, 'builder-active');
|
42791
42791
|
}
|
42792
|
-
|
42793
|
-
|
42794
|
-
|
42795
|
-
|
42796
|
-
|
42797
|
-
|
42798
|
-
|
42799
|
-
|
42800
|
-
|
42801
|
-
|
42802
|
-
|
42803
|
-
|
42804
|
-
|
42792
|
+
},
|
42793
|
+
onUnchoose: () => {
|
42794
|
+
setTimeout(() => {
|
42795
|
+
// Give time for onAdd to finish
|
42796
|
+
// Destroy placed in onUnchoose in case a snippet is just clicked (no drag/drop) so that onAdd is not triggered.
|
42797
|
+
// destroy
|
42798
|
+
if (builder.sortableOnCanvas) {
|
42799
|
+
builder.sortableOnCanvas.forEach(obj => {
|
42800
|
+
if (obj) {
|
42801
|
+
obj.destroy();
|
42802
|
+
}
|
42803
|
+
});
|
42804
|
+
builder.sortableOnCanvas = [];
|
42805
|
+
}
|
42806
|
+
if (builder.sortableOnPage) {
|
42807
|
+
builder.sortableOnPage.destroy();
|
42808
|
+
builder.sortableOnPage = null;
|
42809
|
+
}
|
42810
|
+
let dummies = builder.doc.querySelectorAll('.block-dummy');
|
42811
|
+
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
42812
|
+
}, 10);
|
42805
42813
|
}
|
42806
42814
|
});
|
42807
42815
|
if (builder.opts.snippetList === '#divSnippetList') {
|
@@ -114634,7 +114642,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
114634
114642
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
114635
114643
|
this.sortableOnCanvas = [];
|
114636
114644
|
}
|
114637
|
-
if (this.sortableOnPage)
|
114645
|
+
if (this.sortableOnPage) {
|
114646
|
+
this.sortableOnPage.destroy();
|
114647
|
+
this.sortableOnPage = null;
|
114648
|
+
}
|
114638
114649
|
}
|
114639
114650
|
}
|
114640
114651
|
});
|
@@ -117892,7 +117903,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
117892
117903
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
117893
117904
|
this.sortableOnCanvas = [];
|
117894
117905
|
}
|
117895
|
-
if (this.sortableOnPage)
|
117906
|
+
if (this.sortableOnPage) {
|
117907
|
+
this.sortableOnPage.destroy();
|
117908
|
+
this.sortableOnPage = null;
|
117909
|
+
}
|
117896
117910
|
}
|
117897
117911
|
});
|
117898
117912
|
this.sortableOnCanvas.push(obj);
|
@@ -117968,7 +117982,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
117968
117982
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
117969
117983
|
this.sortableOnCanvas = [];
|
117970
117984
|
}
|
117971
|
-
if (this.sortableOnPage)
|
117985
|
+
if (this.sortableOnPage) {
|
117986
|
+
this.sortableOnPage.destroy();
|
117987
|
+
this.sortableOnPage = null;
|
117988
|
+
}
|
117972
117989
|
return;
|
117973
117990
|
}
|
117974
117991
|
if (itemEl.getAttribute('data-id')) {
|
@@ -118122,7 +118139,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
118122
118139
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
118123
118140
|
this.sortableOnCanvas = [];
|
118124
118141
|
}
|
118125
|
-
if (this.sortableOnPage)
|
118142
|
+
if (this.sortableOnPage) {
|
118143
|
+
this.sortableOnPage.destroy();
|
118144
|
+
this.sortableOnPage = null;
|
118145
|
+
}
|
118126
118146
|
}
|
118127
118147
|
});
|
118128
118148
|
}
|