@innovastudio/contentbox 1.4.46 → 1.4.48
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.4.
|
4
|
+
"version": "1.4.48",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"webpack-dev-server": "^4.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@innovastudio/contentbuilder": "^1.3.
|
49
|
+
"@innovastudio/contentbuilder": "^1.3.54",
|
50
50
|
"js-beautify": "^1.14.0"
|
51
51
|
}
|
52
52
|
}
|
@@ -1001,7 +1001,13 @@ class SideBar {
|
|
1001
1001
|
|
1002
1002
|
viewHtml() {
|
1003
1003
|
const builderStuff = this.builderStuff;
|
1004
|
-
|
1004
|
+
let html;
|
1005
|
+
|
1006
|
+
if (this.builder.actualHTML) {
|
1007
|
+
html = this.builder.html();
|
1008
|
+
} else {
|
1009
|
+
html = this.builder.html(true); //For View
|
1010
|
+
}
|
1005
1011
|
|
1006
1012
|
builderStuff.querySelector('#inpViewHtml').value = html;
|
1007
1013
|
let elms = builderStuff.querySelectorAll('[data-source-active]');
|
@@ -1027,7 +1033,13 @@ class SideBar {
|
|
1027
1033
|
viewHtml2() {
|
1028
1034
|
const builderStuff = this.builderStuff; //document.body.style.overflow = 'hidden';
|
1029
1035
|
|
1030
|
-
let html
|
1036
|
+
let html;
|
1037
|
+
|
1038
|
+
if (this.builder.actualHTML) {
|
1039
|
+
html = this.builder.html();
|
1040
|
+
} else {
|
1041
|
+
html = this.builder.html(true); //For View
|
1042
|
+
}
|
1031
1043
|
|
1032
1044
|
builderStuff.querySelector('#inpViewHtml').value = html;
|
1033
1045
|
}
|
@@ -17757,10 +17769,8 @@ class Util {
|
|
17757
17769
|
dom.addClass(pop, 'active');
|
17758
17770
|
|
17759
17771
|
const handleClickOut = e => {
|
17760
|
-
if (!pop.contains(e.target) && !btn.contains(e.target)) {
|
17772
|
+
if (!pop.contains(e.target) && !btn.contains(e.target) && !e.target.closest('.pickcolormore')) {
|
17761
17773
|
// click outside
|
17762
|
-
const pickcolormore = document.querySelector('.pickcolormore.active');
|
17763
|
-
if (pickcolormore) if (pickcolormore.contains(e.target)) return;
|
17764
17774
|
this.hideRtePop(pop); // hide
|
17765
17775
|
|
17766
17776
|
pop.removeEventListener('keydown', handleKeyDown);
|
@@ -93958,7 +93968,8 @@ class AnimateScroll {
|
|
93958
93968
|
</div>
|
93959
93969
|
|
93960
93970
|
<div class="flex-wrap" style="margin-top:15px;">
|
93961
|
-
<button title="${out('Disable Smooth Animation')}" class="cmd-disable-smoothanim"
|
93971
|
+
<button title="${out('Disable Smooth Animation')}" class="cmd-disable-smoothanim" style="padding-left:15px;padding-right: 15px;">${out('Disable Smooth Animation')}</button>
|
93972
|
+
<button title="${out('Hidden on Start')}" class="cmd-hidden-onstart" style="padding-left:15px;padding-right: 15px;">${out('Hidden on Start')}</button>
|
93962
93973
|
</div>
|
93963
93974
|
|
93964
93975
|
<div style="display:flex;justify-content: flex-end;margin-top: 15px;margin-right: 20px;">
|
@@ -95859,6 +95870,16 @@ class AnimateScroll {
|
|
95859
95870
|
|
95860
95871
|
this.applySimpleScroll();
|
95861
95872
|
});
|
95873
|
+
const btnHiddenOnStart = this.divAnimScrollSimple.querySelector('.cmd-hidden-onstart');
|
95874
|
+
btnHiddenOnStart.addEventListener('click', () => {
|
95875
|
+
if (btnHiddenOnStart.classList.contains('on')) {
|
95876
|
+
btnHiddenOnStart.classList.remove('on');
|
95877
|
+
} else {
|
95878
|
+
btnHiddenOnStart.classList.add('on');
|
95879
|
+
}
|
95880
|
+
|
95881
|
+
this.applySimpleScroll();
|
95882
|
+
});
|
95862
95883
|
const chkLivePreview = this.builder.sidebar.pageQuickSettings.querySelector('.cmd-live-preview');
|
95863
95884
|
chkLivePreview.addEventListener(this.builder.isTouchSupport ? 'touchstart' : 'click', () => {
|
95864
95885
|
if (chkLivePreview.checked) {
|
@@ -96465,6 +96486,14 @@ class AnimateScroll {
|
|
96465
96486
|
} else {
|
96466
96487
|
btn.classList.remove('on');
|
96467
96488
|
}
|
96489
|
+
});
|
96490
|
+
const btnHiddenOnStart = this.modalAnimateScroll.querySelectorAll('.cmd-hidden-onstart');
|
96491
|
+
btnHiddenOnStart.forEach(btn => {
|
96492
|
+
if (activeElement.hasAttribute('data-hidden-onstart')) {
|
96493
|
+
btn.classList.add('on');
|
96494
|
+
} else {
|
96495
|
+
btn.classList.remove('on');
|
96496
|
+
}
|
96468
96497
|
}); // Simple Scroll
|
96469
96498
|
|
96470
96499
|
const inpSimpleScrollX_Start = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-start');
|
@@ -97247,6 +97276,14 @@ class AnimateScroll {
|
|
97247
97276
|
activeElement.removeAttribute('data-smooth-scrolling');
|
97248
97277
|
}
|
97249
97278
|
|
97279
|
+
const btnHiddenOnStart = this.divAnimScrollSimple.querySelector('.cmd-hidden-onstart');
|
97280
|
+
|
97281
|
+
if (btnHiddenOnStart.classList.contains('on')) {
|
97282
|
+
activeElement.setAttribute('data-hidden-onstart', '');
|
97283
|
+
} else {
|
97284
|
+
activeElement.removeAttribute('data-hidden-onstart');
|
97285
|
+
}
|
97286
|
+
|
97250
97287
|
activeElement.style.transform = '';
|
97251
97288
|
activeElement.style.transition = '';
|
97252
97289
|
activeElement.style.opacity = ''; // console.log(activeElement);
|
@@ -98007,6 +98044,7 @@ class ContentBox {
|
|
98007
98044
|
absolutePath: false,
|
98008
98045
|
maxEmbedImageWidth: 1600,
|
98009
98046
|
zoom: 0.6,
|
98047
|
+
actualHTML: false,
|
98010
98048
|
contentStyleWithSample: false,
|
98011
98049
|
contentSizes: [300, 320, 340, 360, 380, 400, 420, 440, 460, 480, 500, 520, 540, 560, 580, 600, 620, 640, 660, 680, 700, 720, 740, 760, 780, 800, 820, 840, 860, 880, 900, 920, 940, 960, 970, 980, 1000, 1020, 1040, 1050, 1060, 1080, 1100, 1120, 1140, 1160, 1180, 1200, 1220, 1240, 1260, 1280, 1300, 1320, 1340, 1360, 1380, 1400, 1420, 1440, 1460, 1480, 1500, 1520, 1540, 1560, 1580, 1600, 1620, 1640, 1660, 1680, 1700, 1720, 1740, 1760, 1780, 1800, 1820, 1840, 1860, 1880, 1900, 1920, 1940, 1960, 1980, 2000, 2020, 2040, 2060, 2080, 2100, 2120, 2140, 2160, 2180, 2200, 2220, 2240, 2260, 2280, 2300, 2320, 2340, 2360, 2380, 2400, 2420, 2440, 2460, 2480, 2500, 2520, 2540, 2560, 2580, 2600, 2620, 2640, 2660, 2680, 2700],
|
98012
98050
|
contentStyles: {
|