@innovastudio/contentbox 1.6.44 → 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
|
}
|
|
@@ -14926,15 +14926,17 @@ class PanelBlock {
|
|
|
14926
14926
|
elms.forEach(target => {
|
|
14927
14927
|
target.classList.add('block-steady');
|
|
14928
14928
|
this.builder.editor.eb.common.clearBreakpoint(target);
|
|
14929
|
-
this.builder.editor.eb.common.applyPixels(target);
|
|
14930
|
-
|
|
14929
|
+
this.builder.editor.eb.common.applyPixels(target); // this.builder.editor.eb.common.applyPercentage(target);
|
|
14930
|
+
|
|
14931
|
+
this.builder.editor.eb.resizable.updateBlockStyle(target);
|
|
14931
14932
|
});
|
|
14932
14933
|
} else {
|
|
14933
14934
|
elms.forEach(target => {
|
|
14934
14935
|
target.classList.remove('block-steady');
|
|
14935
14936
|
this.builder.editor.eb.common.clearBreakpoint(target);
|
|
14936
|
-
this.builder.editor.eb.common.applyPixels(target);
|
|
14937
|
-
|
|
14937
|
+
this.builder.editor.eb.common.applyPixels(target); // this.builder.editor.eb.common.applyPercentage(target);
|
|
14938
|
+
|
|
14939
|
+
this.builder.editor.eb.resizable.updateBlockStyle(target);
|
|
14938
14940
|
});
|
|
14939
14941
|
}
|
|
14940
14942
|
});
|
|
@@ -42787,19 +42789,27 @@ const renderSnippetPanel = (builder, snippetOpen) => {
|
|
|
42787
42789
|
if (activeBuilderArea) {
|
|
42788
42790
|
dom.addClass(activeBuilderArea, 'builder-active');
|
|
42789
42791
|
}
|
|
42790
|
-
|
|
42791
|
-
|
|
42792
|
-
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
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);
|
|
42803
42813
|
}
|
|
42804
42814
|
});
|
|
42805
42815
|
if (builder.opts.snippetList === '#divSnippetList') {
|
|
@@ -114632,7 +114642,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
114632
114642
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
|
114633
114643
|
this.sortableOnCanvas = [];
|
|
114634
114644
|
}
|
|
114635
|
-
if (this.sortableOnPage)
|
|
114645
|
+
if (this.sortableOnPage) {
|
|
114646
|
+
this.sortableOnPage.destroy();
|
|
114647
|
+
this.sortableOnPage = null;
|
|
114648
|
+
}
|
|
114636
114649
|
}
|
|
114637
114650
|
}
|
|
114638
114651
|
});
|
|
@@ -117890,7 +117903,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
117890
117903
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
|
117891
117904
|
this.sortableOnCanvas = [];
|
|
117892
117905
|
}
|
|
117893
|
-
if (this.sortableOnPage)
|
|
117906
|
+
if (this.sortableOnPage) {
|
|
117907
|
+
this.sortableOnPage.destroy();
|
|
117908
|
+
this.sortableOnPage = null;
|
|
117909
|
+
}
|
|
117894
117910
|
}
|
|
117895
117911
|
});
|
|
117896
117912
|
this.sortableOnCanvas.push(obj);
|
|
@@ -117966,7 +117982,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
117966
117982
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
|
117967
117983
|
this.sortableOnCanvas = [];
|
|
117968
117984
|
}
|
|
117969
|
-
if (this.sortableOnPage)
|
|
117985
|
+
if (this.sortableOnPage) {
|
|
117986
|
+
this.sortableOnPage.destroy();
|
|
117987
|
+
this.sortableOnPage = null;
|
|
117988
|
+
}
|
|
117970
117989
|
return;
|
|
117971
117990
|
}
|
|
117972
117991
|
if (itemEl.getAttribute('data-id')) {
|
|
@@ -118120,7 +118139,10 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
118120
118139
|
dummies.forEach(elm => elm.parentNode.removeChild(elm));
|
|
118121
118140
|
this.sortableOnCanvas = [];
|
|
118122
118141
|
}
|
|
118123
|
-
if (this.sortableOnPage)
|
|
118142
|
+
if (this.sortableOnPage) {
|
|
118143
|
+
this.sortableOnPage.destroy();
|
|
118144
|
+
this.sortableOnPage = null;
|
|
118145
|
+
}
|
|
118124
118146
|
}
|
|
118125
118147
|
});
|
|
118126
118148
|
}
|