@innovastudio/contentbox 1.2.1 → 1.2.2
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.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"webpack-dev-server": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@innovastudio/contentbuilder": "^1.1.
|
|
42
|
+
"@innovastudio/contentbuilder": "^1.1.5",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
44
|
"cors": "^2.8.5",
|
|
45
45
|
"express": "^4.17.1",
|
|
@@ -76811,7 +76811,8 @@ class ContentBuilder {
|
|
|
76811
76811
|
stretch: 'items-stretch'
|
|
76812
76812
|
}
|
|
76813
76813
|
},
|
|
76814
|
-
useCssClasses: false
|
|
76814
|
+
useCssClasses: false,
|
|
76815
|
+
useButtonPlugin: false
|
|
76815
76816
|
}; // obj.preserveSelection = true; (can be set programmatically) to prevent click that clears selection on external custom modal.
|
|
76816
76817
|
|
|
76817
76818
|
this.opts = Object.assign(this, defaults, opts);
|
|
@@ -76874,16 +76875,19 @@ class ContentBuilder {
|
|
|
76874
76875
|
this.opts.onMediaUpload = this.opts.onLargerImageUpload;
|
|
76875
76876
|
} else if (this.opts.onMediaUpload) {
|
|
76876
76877
|
this.opts.onLargerImageUpload = this.opts.onMediaUpload;
|
|
76877
|
-
} //
|
|
76878
|
+
} // useButtonPlugin
|
|
76879
|
+
|
|
76878
76880
|
|
|
76881
|
+
if (this.opts.emailMode) {
|
|
76882
|
+
this.useButtonPlugin = true;
|
|
76883
|
+
}
|
|
76879
76884
|
|
|
76880
|
-
|
|
76881
|
-
|
|
76885
|
+
if (!this.useButtonPlugin) {
|
|
76886
|
+
let _arr = this.plugins.filter(item => {
|
|
76887
|
+
return item.name !== 'buttoneditor';
|
|
76888
|
+
});
|
|
76882
76889
|
|
|
76883
|
-
|
|
76884
|
-
if (plugins[i].name === 'buttoneditor') {
|
|
76885
|
-
this.useButtonPlugin = true;
|
|
76886
|
-
}
|
|
76890
|
+
this.plugins = [..._arr];
|
|
76887
76891
|
} // Alternative settions to define css grid frameworks
|
|
76888
76892
|
|
|
76889
76893
|
|