@innovastudio/contentbox 1.6.88 → 1.6.90
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.90",
|
|
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.76",
|
|
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();
|
|
@@ -40694,12 +40697,17 @@ class HtmlUtil {
|
|
|
40694
40697
|
modelContent.style.maxWidth = this.builder.blockCodeEditorMaxWidth;
|
|
40695
40698
|
codeEditor.style.height = this.builder.blockCodeEditorHeight;
|
|
40696
40699
|
}
|
|
40700
|
+
const row = this.builder.doc.querySelector('.row-active'); // row-select class cannot be used during code editing
|
|
40701
|
+
if (row) row.classList.remove('row-active');
|
|
40697
40702
|
util.showModal(viewhtml, true, () => {
|
|
40698
40703
|
if (btn) {
|
|
40699
40704
|
btn.removeAttribute('data-focus');
|
|
40700
40705
|
btn.focus();
|
|
40701
40706
|
}
|
|
40707
|
+
const cell = util.cellSelected();
|
|
40708
|
+
if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
|
|
40702
40709
|
});
|
|
40710
|
+
|
|
40703
40711
|
if (btn) btn.setAttribute('data-focus', true);
|
|
40704
40712
|
this._view(mode, area);
|
|
40705
40713
|
}
|
|
@@ -40835,7 +40843,13 @@ class HtmlUtil {
|
|
|
40835
40843
|
this.builder.codeEditorArea = area;
|
|
40836
40844
|
let codeEditor = viewhtml.querySelector('.input-code-editor');
|
|
40837
40845
|
codeEditor.style.opacity = '';
|
|
40846
|
+
|
|
40847
|
+
// const row = this.builder.doc.querySelector('.row-active');
|
|
40848
|
+
// if(row) row.classList.remove('row-active');
|
|
40849
|
+
// util.showModal(viewhtml, true);
|
|
40850
|
+
// this.builder.codeEditor.focus();
|
|
40838
40851
|
}
|
|
40852
|
+
|
|
40839
40853
|
fromViewToActual(html) {
|
|
40840
40854
|
for (var key in hash$1) {
|
|
40841
40855
|
html = html.replace(key, hash$1[key]);
|
|
@@ -77082,7 +77096,7 @@ class Video {
|
|
|
77082
77096
|
if (elm.tagName.toLowerCase() === 'video') {
|
|
77083
77097
|
if (elm.closest('[data-html]')) {
|
|
77084
77098
|
this.builder.activeVideo = null;
|
|
77085
|
-
this.videoTool.style.display = '';
|
|
77099
|
+
// this.videoTool.style.display = '';
|
|
77086
77100
|
return;
|
|
77087
77101
|
}
|
|
77088
77102
|
this.renderTool();
|
|
@@ -127600,15 +127614,16 @@ class AnimateScroll {
|
|
|
127600
127614
|
elm.removeAttribute('data-hidden-onstart');
|
|
127601
127615
|
elm.style.transform = '';
|
|
127602
127616
|
elm.style.transition = '';
|
|
127603
|
-
elm.style.opacity = '';
|
|
127604
|
-
|
|
127617
|
+
elm.style.opacity = ''; // this.restart();
|
|
127618
|
+
// console.log(elm)
|
|
127605
127619
|
});
|
|
127606
127620
|
elms = section.querySelectorAll('.is-animated');
|
|
127607
127621
|
elms.forEach(elm => {
|
|
127608
127622
|
// if(elm.classList.contains('is-overlay-bg')) return;
|
|
127609
127623
|
this.cleanupBasic(elm);
|
|
127610
127624
|
this.cleanupDelay(elm);
|
|
127611
|
-
});
|
|
127625
|
+
});
|
|
127626
|
+
this.restart(); // setTimeout(()=>{
|
|
127612
127627
|
// // if (this.builder.win.skrollrr) {
|
|
127613
127628
|
// // this.builder.win.skrollrr.refresh();
|
|
127614
127629
|
// // }
|
|
@@ -130736,7 +130751,7 @@ class Timeline {
|
|
|
130736
130751
|
if (activeCol) section = activeCol.closest('.is-section');
|
|
130737
130752
|
let elms; // elms = section.querySelectorAll('*');
|
|
130738
130753
|
|
|
130739
|
-
elms =
|
|
130754
|
+
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
130755
|
elms.forEach(elm => {
|
|
130741
130756
|
elm.removeAttribute('data-center');
|
|
130742
130757
|
elm.removeAttribute('data-center-top');
|