@innovastudio/contentbox 1.4.57 → 1.4.58
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.58",
|
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.63",
|
50
50
|
"js-beautify": "^1.14.0"
|
51
51
|
}
|
52
52
|
}
|
@@ -4620,9 +4620,11 @@ class EditSection {
|
|
4620
4620
|
}
|
4621
4621
|
|
4622
4622
|
sectionBottom() {
|
4623
|
-
const activeSection = this.builder.activeSection;
|
4624
|
-
let nodes = this.builder.wrapperEl.querySelectorAll('.is-section:not(.is-static)'); // let first = nodes[0];
|
4623
|
+
const activeSection = this.builder.activeSection; // let nodes = this.builder.wrapperEl.querySelectorAll('.is-section:not(.is-static)');
|
4625
4624
|
|
4625
|
+
let nodes = Array.from(this.builder.wrapperEl.children).filter(item => {
|
4626
|
+
return item.classList.contains('is-section');
|
4627
|
+
});
|
4626
4628
|
let last = nodes[nodes.length - 1];
|
4627
4629
|
activeSection.parentNode.insertBefore(activeSection, last.nextElementSibling); //Trigger Render event
|
4628
4630
|
|
@@ -30833,7 +30835,7 @@ const renderQuickAdd = builder => {
|
|
30833
30835
|
elm = quickadd.querySelector('.add-button');
|
30834
30836
|
if (elm) dom.addEventListener(elm, 'click', () => {
|
30835
30837
|
const mode = quickadd.getAttribute('data-mode');
|
30836
|
-
let html = `<div
|
30838
|
+
let html = `<div>
|
30837
30839
|
<a href="#" role="button" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid border-transparent ml-1 mr-1 mt-2 mb-2 hover:border-transparent rounded bg-gray-200 hover:bg-gray-300 tracking-50 uppercase py-2 size-14 px-6 font-semibold text-gray-600 leading-relaxed">Read More</a>
|
30838
30840
|
</div>`;
|
30839
30841
|
|
@@ -30846,7 +30848,7 @@ const renderQuickAdd = builder => {
|
|
30846
30848
|
elm = quickadd.querySelector('.add-twobutton');
|
30847
30849
|
if (elm) dom.addEventListener(elm, 'click', () => {
|
30848
30850
|
const mode = quickadd.getAttribute('data-mode');
|
30849
|
-
let html = `<div
|
30851
|
+
let html = `<div>
|
30850
30852
|
<a href="#" role="button" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid border-transparent ml-1 mr-1 mt-2 mb-2 hover:border-transparent rounded bg-gray-200 hover:bg-gray-300 tracking-50 uppercase py-2 size-14 px-6 font-semibold text-gray-600 leading-relaxed">Read More</a>
|
30851
30853
|
<a href="#" role="button" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid ml-1 mr-1 mt-2 mb-2 rounded tracking-50 uppercase py-2 size-14 px-6 border-current hover:border-transparent hover:text-white font-semibold text-indigo-500 hover:bg-indigo-500 leading-relaxed">Get Started</a>
|
30852
30854
|
</div>`;
|
@@ -100232,6 +100234,7 @@ class ContentBox {
|
|
100232
100234
|
zoom: 0.6,
|
100233
100235
|
shortenHTML: true,
|
100234
100236
|
advancedTimeline: false,
|
100237
|
+
livePreviewOpen: false,
|
100235
100238
|
contentStyleWithSample: false,
|
100236
100239
|
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],
|
100237
100240
|
contentStyles: {
|
@@ -103205,6 +103208,10 @@ class ContentBox {
|
|
103205
103208
|
|
103206
103209
|
if (localStorage.getItem('_livepreview') != null) {
|
103207
103210
|
this.openPreview();
|
103211
|
+
} else {
|
103212
|
+
if (this.settings.livePreviewOpen) {
|
103213
|
+
this.openPreview();
|
103214
|
+
}
|
103208
103215
|
}
|
103209
103216
|
|
103210
103217
|
if (localStorage.getItem('_disableanimation') != null) {
|
@@ -104790,7 +104797,8 @@ class ContentBox {
|
|
104790
104797
|
let html = this.html(); // this.builderStuff.parentNode.removeChild(this.builderStuff);
|
104791
104798
|
|
104792
104799
|
this.builderStuff.innerHTML = '';
|
104793
|
-
dom.removeClass(document.body, 'sidebar-active');
|
104800
|
+
dom.removeClass(document.body, 'sidebar-active');
|
104801
|
+
document.body.removeAttribute('data-skrollrr-off'); // Remove special css
|
104794
104802
|
|
104795
104803
|
const cbContentStyle = this.doc.querySelector('#_contentbox_css');
|
104796
104804
|
if (cbContentStyle) cbContentStyle.parentNode.removeChild(cbContentStyle);
|