@innovastudio/contentbox 1.2.18 → 1.2.21
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovastudio/contentbox",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
28
28
|
"@rollup/plugin-image": "^2.1.1",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
30
|
+
"axios": "^0.21.4",
|
|
30
31
|
"babel-loader": "^8.2.2",
|
|
31
32
|
"concurrently": "^6.3.0",
|
|
33
|
+
"cors": "^2.8.5",
|
|
32
34
|
"css-loader": "^6.2.0",
|
|
35
|
+
"express": "^4.17.1",
|
|
36
|
+
"express-session": "^1.17.2",
|
|
37
|
+
"formidable-serverless": "^1.1.1",
|
|
33
38
|
"mini-css-extract-plugin": "^2.2.0",
|
|
34
39
|
"rollup": "^2.59.0",
|
|
35
40
|
"rollup-plugin-terser": "^7.0.2",
|
|
36
41
|
"sass": "^1.38.1",
|
|
37
42
|
"sass-loader": "^12.1.0",
|
|
43
|
+
"sharp": "^0.30.3",
|
|
38
44
|
"webpack": "^5.51.1",
|
|
39
45
|
"webpack-cli": "^4.8.0",
|
|
40
46
|
"webpack-dev-server": "^4.0.0"
|
|
41
47
|
},
|
|
42
48
|
"dependencies": {
|
|
43
|
-
"@innovastudio/contentbuilder": "^1.1.
|
|
44
|
-
"
|
|
45
|
-
"cors": "^2.8.5",
|
|
46
|
-
"express": "^4.17.1",
|
|
47
|
-
"express-session": "^1.17.2",
|
|
48
|
-
"formidable-serverless": "^1.1.1",
|
|
49
|
-
"js-beautify": "^1.14.0",
|
|
50
|
-
"sharp": "^0.30.3"
|
|
49
|
+
"@innovastudio/contentbuilder": "^1.1.20",
|
|
50
|
+
"js-beautify": "^1.14.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -79674,10 +79674,8 @@ class ContentBuilder {
|
|
|
79674
79674
|
Additional Cleanup:
|
|
79675
79675
|
- Remove empty elements (empty p, etc)
|
|
79676
79676
|
*/
|
|
79677
|
-
|
|
79678
|
-
|
|
79679
|
-
x.remove();
|
|
79680
|
-
});
|
|
79677
|
+
this.activeCol.find('h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty').remove(); // this.activeCol.querySelectorAll('*:empty').forEach((x)=>{x.remove();}); // Makes <img> removed
|
|
79678
|
+
|
|
79681
79679
|
/*
|
|
79682
79680
|
Additional Cleanup:
|
|
79683
79681
|
Fix HTML structure. The problem:
|
|
@@ -79725,10 +79723,9 @@ class ContentBuilder {
|
|
|
79725
79723
|
|
|
79726
79724
|
elmActive.outerHTML = elmActive.innerHTML; //fix
|
|
79727
79725
|
// Re-clean empty elements
|
|
79726
|
+
// this.activeCol.querySelectorAll('*:empty').forEach((x)=>{x.remove();}); // Makes <img> removed
|
|
79728
79727
|
|
|
79729
|
-
this.activeCol.
|
|
79730
|
-
x.remove();
|
|
79731
|
-
}); //place cursor
|
|
79728
|
+
this.activeCol.find('h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty').remove(); //place cursor
|
|
79732
79729
|
|
|
79733
79730
|
if (elmClosestElement) dom$J.moveCursorToElement(elmClosestElement.previousElementSibling);else dom$J.moveCursorToElement(this.activeCol);
|
|
79734
79731
|
let builderActive = document.querySelector('.builder-active');
|