@innovastudio/contentbox 1.2.24 → 1.2.27
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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovastudio/contentbox",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "1.2.27",
|
|
5
4
|
"description": "",
|
|
6
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
7
6
|
"files": [
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
"webpack-dev-server": "^4.0.0"
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
49
|
-
"@innovastudio/contentbuilder": "^1.1.
|
|
48
|
+
"@innovastudio/contentbuilder": "^1.1.23",
|
|
50
49
|
"js-beautify": "^1.14.0"
|
|
51
50
|
}
|
|
52
51
|
}
|
|
@@ -2423,7 +2423,9 @@ class EditSection {
|
|
|
2423
2423
|
const activeSection = this.builder.activeSection;
|
|
2424
2424
|
activeSection.removeAttribute('data-bottom-top');
|
|
2425
2425
|
activeSection.removeAttribute('data-300-bottom');
|
|
2426
|
-
activeSection.removeAttribute('data-400-bottom');
|
|
2426
|
+
activeSection.removeAttribute('data-400-bottom'); //remove old (backward compatible)
|
|
2427
|
+
|
|
2428
|
+
activeSection.removeAttribute('data-center-top');
|
|
2427
2429
|
activeSection.removeAttribute('data-anim-start');
|
|
2428
2430
|
activeSection.style.transform = '';
|
|
2429
2431
|
|
|
@@ -2436,10 +2438,10 @@ class EditSection {
|
|
|
2436
2438
|
activeSection.setAttribute('data-300-bottom', 'transform:translateX(0%) translateY(0%) scale(1)');
|
|
2437
2439
|
} else if (s === 'slide-left') {
|
|
2438
2440
|
activeSection.setAttribute('data-bottom-top', 'transform:translateX(100%) translateY(0%) scale(1)');
|
|
2439
|
-
activeSection.setAttribute('data-
|
|
2441
|
+
activeSection.setAttribute('data-center-top', 'transform:translateX(0%) translateY(0%) scale(1)'); //400 is shorter than 300
|
|
2440
2442
|
} else if (s === 'slide-right') {
|
|
2441
2443
|
activeSection.setAttribute('data-bottom-top', 'transform:translateX(-100%) translateY(0%) scale(1)');
|
|
2442
|
-
activeSection.setAttribute('data-
|
|
2444
|
+
activeSection.setAttribute('data-center-top', 'transform:translateX(0%) translateY(0%) scale(1)');
|
|
2443
2445
|
}
|
|
2444
2446
|
|
|
2445
2447
|
activeSection.setAttribute('data-anim-start', s);
|
|
@@ -15334,8 +15336,8 @@ class Util {
|
|
|
15334
15336
|
|
|
15335
15337
|
let builderActive = document.querySelector('.builder-active');
|
|
15336
15338
|
if (builderActive) this.builder.applyBehaviorOn(builderActive);
|
|
15337
|
-
cellElement = rowElement.
|
|
15338
|
-
cellElement.click(); //change active block to the newly created
|
|
15339
|
+
cellElement = rowElement.querySelector('div');
|
|
15340
|
+
if (cellElement) cellElement.click(); //change active block to the newly created
|
|
15339
15341
|
// Change to row selection
|
|
15340
15342
|
|
|
15341
15343
|
rowElement.className = rowElement.className.replace('row-outline', ''); // columnTool = parent.document.querySelector('.is-column-tool');
|
|
@@ -27714,7 +27716,7 @@ class Dropdown {
|
|
|
27714
27716
|
let dropdown = document.querySelector('.is-selectbox-options[data-group="' + groupname + '"]');
|
|
27715
27717
|
if (this.opts.dropdown) dropdown = this.opts.dropdown;
|
|
27716
27718
|
dom$C.addEventListener(selectbox, 'click', () => {
|
|
27717
|
-
if (dropdown.style.display === 'none') {
|
|
27719
|
+
if (dropdown.style.display === 'none' || dropdown.style.display === '') {
|
|
27718
27720
|
let dropdowns = document.querySelectorAll('.is-selectbox-options');
|
|
27719
27721
|
Array.prototype.forEach.call(dropdowns, elm => {
|
|
27720
27722
|
elm.style.display = 'none';
|