@innovastudio/contentbox 1.1.8 → 1.1.9
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.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"webpack-dev-server": "^4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@innovastudio/contentbuilder": "^1.0.
|
|
41
|
+
"@innovastudio/contentbuilder": "^1.0.86",
|
|
42
42
|
"axios": "^0.21.4",
|
|
43
43
|
"cors": "^2.8.5",
|
|
44
44
|
"express": "^4.17.1",
|
|
@@ -1667,6 +1667,21 @@ class SideBar {
|
|
|
1667
1667
|
var googleFonts = result[0].googleFonts;
|
|
1668
1668
|
var contentCss = result[0].contentCss;
|
|
1669
1669
|
var contentClass = result[0].contentClass;
|
|
1670
|
+
|
|
1671
|
+
//To Tailwind
|
|
1672
|
+
if (framework == 'tailwind') {
|
|
1673
|
+
html = html.replace(new RegExp(' container', 'g'), ' container');
|
|
1674
|
+
html = html.replace(new RegExp('row clearfix', 'g'), 'flex flex-col md:flex-row');
|
|
1675
|
+
html = html.replace(new RegExp('column full', 'g'), 'w-full px-4');
|
|
1676
|
+
html = html.replace(new RegExp('column half', 'g'), 'w-full md:w-6/12 px-4');
|
|
1677
|
+
html = html.replace(new RegExp('column third', 'g'), 'w-full md:w-4/12 px-4');
|
|
1678
|
+
html = html.replace(new RegExp('column fourth', 'g'), 'w-full md:w-3/12 px-4');
|
|
1679
|
+
html = html.replace(new RegExp('column fifth', 'g'), 'w-full md:w-2/12 px-4'); //not needed
|
|
1680
|
+
html = html.replace(new RegExp('column sixth', 'g'), 'w-full md:w-2/12 px-4');
|
|
1681
|
+
html = html.replace(new RegExp('column two-third', 'g'), 'w-full md:w-8/12 px-4');
|
|
1682
|
+
html = html.replace(new RegExp('column two-fourth', 'g'), 'w-full md:w-9/12 px-4');
|
|
1683
|
+
html = html.replace(new RegExp('column two-sixth', 'g'), 'w-full md:w-10/12 px-4');
|
|
1684
|
+
}
|
|
1670
1685
|
|
|
1671
1686
|
//To Bootstrap
|
|
1672
1687
|
if (framework == 'bootstrap') {
|
|
@@ -73026,6 +73041,11 @@ class ContentBuilder {
|
|
|
73026
73041
|
this.opts.cols = ['col-md-1', 'col-md-2', 'col-md-3', 'col-md-4', 'col-md-5', 'col-md-6', 'col-md-7', 'col-md-8', 'col-md-9', 'col-md-10', 'col-md-11', 'col-md-12'];
|
|
73027
73042
|
this.opts.colequal = [];
|
|
73028
73043
|
this.opts.colsizes = [];
|
|
73044
|
+
} else if (this.opts.framework === 'tailwind') {
|
|
73045
|
+
this.opts.row = 'flex flex-col md:flex-row';
|
|
73046
|
+
this.opts.cols = ['w-full md:w-1/12 px-4', 'w-full md:w-2/12 px-4', 'w-full md:w-3/12 px-4', 'w-full md:w-4/12 px-4', 'w-full md:w-5/12 px-4', 'w-full md:w-6/12 px-4', 'w-full md:w-7/12 px-4', 'w-full md:w-8/12 px-4', 'w-full md:w-9/12 px-4', 'w-full md:w-10/12 px-4', 'w-full md:w-11/12 px-4', 'w-full px-4'];
|
|
73047
|
+
this.opts.colequal = [];
|
|
73048
|
+
this.opts.colsizes = [];
|
|
73029
73049
|
} else if (this.opts.framework === 'foundation') {
|
|
73030
73050
|
this.opts.row = 'row';
|
|
73031
73051
|
this.opts.cols = ['large-1 columns', 'large-2 columns', 'large-3 columns', 'large-4 columns', 'large-5 columns', 'large-6 columns', 'large-7 columns', 'large-8 columns', 'large-9 columns', 'large-10 columns', 'large-11 columns', 'large-12 columns'];
|
|
@@ -73746,10 +73766,10 @@ class ContentBuilder {
|
|
|
73746
73766
|
}
|
|
73747
73767
|
}
|
|
73748
73768
|
|
|
73749
|
-
this.
|
|
73769
|
+
this.cleanHtmlFormatting = true;
|
|
73750
73770
|
let outputHtml = htmlutil.readHtml(area); //for view=false
|
|
73751
73771
|
|
|
73752
|
-
this.
|
|
73772
|
+
this.cleanHtmlFormatting = false;
|
|
73753
73773
|
return outputHtml;
|
|
73754
73774
|
} // ContentBox
|
|
73755
73775
|
|