@innovastudio/contentbox 1.6.89 → 1.6.91
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.91",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"ws": "^8.13.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@innovastudio/contentbuilder": "^1.5.
|
|
57
|
+
"@innovastudio/contentbuilder": "^1.5.77",
|
|
58
58
|
"js-beautify": "^1.14.0",
|
|
59
59
|
"sortablejs": "^1.15.2"
|
|
60
60
|
}
|
|
@@ -40498,6 +40498,9 @@ class HtmlUtil {
|
|
|
40498
40498
|
}
|
|
40499
40499
|
applyHtml(modal) {
|
|
40500
40500
|
const util = this.builder.util;
|
|
40501
|
+
const cell = util.cellSelected();
|
|
40502
|
+
if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
|
|
40503
|
+
|
|
40501
40504
|
let mode = this.builder.codeEditorMode;
|
|
40502
40505
|
let area = this.builder.codeEditorArea;
|
|
40503
40506
|
this.builder.uo.saveForUndo();
|
|
@@ -40563,6 +40566,13 @@ class HtmlUtil {
|
|
|
40563
40566
|
|
|
40564
40567
|
//Trigger Render event
|
|
40565
40568
|
this.builder.opts.onRender();
|
|
40569
|
+
|
|
40570
|
+
// Re-select
|
|
40571
|
+
if (row.firstChild) row.firstChild.click();
|
|
40572
|
+
//Change to row selection
|
|
40573
|
+
row.classList.remove('row-outline');
|
|
40574
|
+
//Hide Column tool (new!)
|
|
40575
|
+
util.hideColumnTool();
|
|
40566
40576
|
}
|
|
40567
40577
|
if (mode === 'full') {
|
|
40568
40578
|
// freeform
|
|
@@ -40694,12 +40704,17 @@ class HtmlUtil {
|
|
|
40694
40704
|
modelContent.style.maxWidth = this.builder.blockCodeEditorMaxWidth;
|
|
40695
40705
|
codeEditor.style.height = this.builder.blockCodeEditorHeight;
|
|
40696
40706
|
}
|
|
40707
|
+
const row = this.builder.doc.querySelector('.row-active'); // row-select class cannot be used during code editing
|
|
40708
|
+
if (row) row.classList.remove('row-active');
|
|
40697
40709
|
util.showModal(viewhtml, true, () => {
|
|
40698
40710
|
if (btn) {
|
|
40699
40711
|
btn.removeAttribute('data-focus');
|
|
40700
40712
|
btn.focus();
|
|
40701
40713
|
}
|
|
40714
|
+
const cell = util.cellSelected();
|
|
40715
|
+
if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
|
|
40702
40716
|
});
|
|
40717
|
+
|
|
40703
40718
|
if (btn) btn.setAttribute('data-focus', true);
|
|
40704
40719
|
this._view(mode, area);
|
|
40705
40720
|
}
|
|
@@ -40835,7 +40850,13 @@ class HtmlUtil {
|
|
|
40835
40850
|
this.builder.codeEditorArea = area;
|
|
40836
40851
|
let codeEditor = viewhtml.querySelector('.input-code-editor');
|
|
40837
40852
|
codeEditor.style.opacity = '';
|
|
40853
|
+
|
|
40854
|
+
// const row = this.builder.doc.querySelector('.row-active');
|
|
40855
|
+
// if(row) row.classList.remove('row-active');
|
|
40856
|
+
// util.showModal(viewhtml, true);
|
|
40857
|
+
// this.builder.codeEditor.focus();
|
|
40838
40858
|
}
|
|
40859
|
+
|
|
40839
40860
|
fromViewToActual(html) {
|
|
40840
40861
|
for (var key in hash$1) {
|
|
40841
40862
|
html = html.replace(key, hash$1[key]);
|
|
@@ -77082,7 +77103,7 @@ class Video {
|
|
|
77082
77103
|
if (elm.tagName.toLowerCase() === 'video') {
|
|
77083
77104
|
if (elm.closest('[data-html]')) {
|
|
77084
77105
|
this.builder.activeVideo = null;
|
|
77085
|
-
this.videoTool.style.display = '';
|
|
77106
|
+
// this.videoTool.style.display = '';
|
|
77086
77107
|
return;
|
|
77087
77108
|
}
|
|
77088
77109
|
this.renderTool();
|
|
@@ -127600,15 +127621,16 @@ class AnimateScroll {
|
|
|
127600
127621
|
elm.removeAttribute('data-hidden-onstart');
|
|
127601
127622
|
elm.style.transform = '';
|
|
127602
127623
|
elm.style.transition = '';
|
|
127603
|
-
elm.style.opacity = '';
|
|
127604
|
-
|
|
127624
|
+
elm.style.opacity = ''; // this.restart();
|
|
127625
|
+
// console.log(elm)
|
|
127605
127626
|
});
|
|
127606
127627
|
elms = section.querySelectorAll('.is-animated');
|
|
127607
127628
|
elms.forEach(elm => {
|
|
127608
127629
|
// if(elm.classList.contains('is-overlay-bg')) return;
|
|
127609
127630
|
this.cleanupBasic(elm);
|
|
127610
127631
|
this.cleanupDelay(elm);
|
|
127611
|
-
});
|
|
127632
|
+
});
|
|
127633
|
+
this.restart(); // setTimeout(()=>{
|
|
127612
127634
|
// // if (this.builder.win.skrollrr) {
|
|
127613
127635
|
// // this.builder.win.skrollrr.refresh();
|
|
127614
127636
|
// // }
|
|
@@ -130736,7 +130758,7 @@ class Timeline {
|
|
|
130736
130758
|
if (activeCol) section = activeCol.closest('.is-section');
|
|
130737
130759
|
let elms; // elms = section.querySelectorAll('*');
|
|
130738
130760
|
|
|
130739
|
-
elms =
|
|
130761
|
+
elms = section.querySelectorAll('[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],' + '[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],' + '[data-in],[data-in-150],[data-in-300],' + '[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out]' + '[data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],' + '[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],' + '[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],' + '[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],' + '[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]');
|
|
130740
130762
|
elms.forEach(elm => {
|
|
130741
130763
|
elm.removeAttribute('data-center');
|
|
130742
130764
|
elm.removeAttribute('data-center-top');
|