@configuratorware/configurator-admingui 1.35.3 → 1.36.0-beta.0
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.
|
@@ -73,7 +73,7 @@ var MonacoEditor = (0, _withStyles["default"])({
|
|
|
73
73
|
var editor;
|
|
74
74
|
Promise.resolve().then(function () {
|
|
75
75
|
return _interopRequireWildcard(require('monaco-editor/esm/vs/editor/editor.api'));
|
|
76
|
-
}).then(function () {
|
|
76
|
+
}).then(function (monaco) {
|
|
77
77
|
if (ref.current) {
|
|
78
78
|
editor = monaco.editor.create(ref.current, {
|
|
79
79
|
value: value,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0-beta.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/polyfill": "^7.12.1",
|
|
8
|
-
"@hot-loader/react-dom": "^
|
|
8
|
+
"@hot-loader/react-dom": "^17.0.2",
|
|
9
9
|
"@material-ui/core": "^3.9.4",
|
|
10
10
|
"@material-ui/icons": "^3.0.2",
|
|
11
11
|
"@tweenjs/tween.js": "^17.6.0",
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
"css-element-queries": "^1.2.3",
|
|
16
16
|
"downshift": "^3.4.8",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"monaco-editor": "^0.
|
|
19
|
-
"monaco-editor-webpack-plugin": "^
|
|
18
|
+
"monaco-editor": "^0.33.0",
|
|
19
|
+
"monaco-editor-webpack-plugin": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
21
21
|
"qs": "^6.10.1",
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-dom": "^
|
|
24
|
-
"react-file-drop": "^
|
|
22
|
+
"react": "^17.0.2",
|
|
23
|
+
"react-dom": "^17.0.2",
|
|
24
|
+
"react-file-drop": "^3.1.5",
|
|
25
25
|
"react-hot-loader": "^4.13.0",
|
|
26
26
|
"react-i18nify": "^1.11.18",
|
|
27
27
|
"react-mde": "^11.5.0",
|
|
28
28
|
"react-redux": "^7.2.4",
|
|
29
29
|
"react-redux-i18n": "^1.9.3",
|
|
30
30
|
"react-router": "^3.2.6",
|
|
31
|
-
"react-sortable-hoc": "^
|
|
32
|
-
"redhotmagma-visualization": "1.
|
|
31
|
+
"react-sortable-hoc": "^2.0.0",
|
|
32
|
+
"redhotmagma-visualization": "1.36.0-beta.0",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -39,23 +39,17 @@
|
|
|
39
39
|
"validate.js": "^0.12.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@babel/cli": "^7.2.3",
|
|
43
|
-
"@babel/core": "^7.2.2",
|
|
44
|
-
"@babel/plugin-proposal-class-properties": "^7.2.3",
|
|
45
|
-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
46
|
-
"@babel/preset-env": "^7.2.3",
|
|
47
|
-
"@babel/preset-react": "^7.0.0",
|
|
48
42
|
"babel-loader": "^8.0.5",
|
|
49
|
-
"
|
|
50
|
-
"css-
|
|
51
|
-
"file-loader": "^
|
|
52
|
-
"mini-css-extract-plugin": "^
|
|
53
|
-
"node-sass": "^4.11.0",
|
|
43
|
+
"css-loader": "^5.2.7",
|
|
44
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
45
|
+
"file-loader": "^6.2.0",
|
|
46
|
+
"mini-css-extract-plugin": "^2.1.0",
|
|
54
47
|
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
|
55
|
-
"sass
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
48
|
+
"sass": "^1.53.0",
|
|
49
|
+
"sass-loader": "^13.0.2",
|
|
50
|
+
"style-loader": "^2.0.0",
|
|
51
|
+
"terser-webpack-plugin": "^5.1.4",
|
|
52
|
+
"url-loader": "^4.1.1"
|
|
59
53
|
},
|
|
60
54
|
"scripts": {
|
|
61
55
|
"copy-public": "node ./scripts/cpFavicon.js",
|
|
@@ -23,11 +23,19 @@ const moduleRules = [
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
test: /\.(png|jpg|gif|svg)$/,
|
|
26
|
-
loader: 'url-loader
|
|
26
|
+
loader: 'url-loader',
|
|
27
|
+
options: {
|
|
28
|
+
limit: 16384,
|
|
29
|
+
name: 'images/[name].[hash].[ext]',
|
|
30
|
+
},
|
|
27
31
|
},
|
|
28
32
|
{
|
|
29
33
|
test: /\.ttf$/,
|
|
30
|
-
loader: 'url-loader
|
|
34
|
+
loader: 'url-loader',
|
|
35
|
+
options: {
|
|
36
|
+
limit: 16384,
|
|
37
|
+
name: 'fonts/[name].[hash].[ext]',
|
|
38
|
+
},
|
|
31
39
|
},
|
|
32
40
|
];
|
|
33
41
|
|
|
@@ -65,7 +73,7 @@ function getDevConfig(dirname, options = {}) {
|
|
|
65
73
|
filename: 'bundle.js',
|
|
66
74
|
publicPath: '/',
|
|
67
75
|
},
|
|
68
|
-
devtool: 'cheap-module-
|
|
76
|
+
devtool: 'eval-cheap-module-source-map',
|
|
69
77
|
devServer: {
|
|
70
78
|
hot: true,
|
|
71
79
|
contentBase: BUILD_DIR,
|
|
@@ -104,7 +112,10 @@ function getDevConfig(dirname, options = {}) {
|
|
|
104
112
|
'react/lib/ExecutionEnvironment': true,
|
|
105
113
|
'react/lib/ReactContext': true,
|
|
106
114
|
},
|
|
107
|
-
|
|
115
|
+
optimization: {
|
|
116
|
+
moduleIds: 'named',
|
|
117
|
+
},
|
|
118
|
+
plugins: [new webpack.HotModuleReplacementPlugin(), monaco],
|
|
108
119
|
};
|
|
109
120
|
}
|
|
110
121
|
|
|
@@ -112,17 +123,17 @@ function importPluginsForBuild() {
|
|
|
112
123
|
try {
|
|
113
124
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
114
125
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
115
|
-
const
|
|
126
|
+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
116
127
|
return {
|
|
117
128
|
TerserPlugin,
|
|
118
129
|
MiniCssExtractPlugin,
|
|
119
|
-
|
|
130
|
+
CssMinimizerPlugin,
|
|
120
131
|
};
|
|
121
132
|
} catch (e) {
|
|
122
133
|
const packages = [
|
|
123
134
|
'terser-webpack-plugin',
|
|
124
135
|
'mini-css-extract-plugin',
|
|
125
|
-
'
|
|
136
|
+
'css-minimizer-webpack-plugin',
|
|
126
137
|
];
|
|
127
138
|
console.error(
|
|
128
139
|
'To use the build script, please install the following packages: ' + packages.join(', ')
|
|
@@ -135,14 +146,14 @@ function getProdConfig(dirname) {
|
|
|
135
146
|
const BUILD_DIR = path.resolve(dirname, 'public');
|
|
136
147
|
const APP_DIR = path.resolve(dirname, 'src');
|
|
137
148
|
|
|
138
|
-
const { TerserPlugin, MiniCssExtractPlugin,
|
|
149
|
+
const { TerserPlugin, MiniCssExtractPlugin, CssMinimizerPlugin } = importPluginsForBuild();
|
|
139
150
|
|
|
140
151
|
const extractSass = new MiniCssExtractPlugin({
|
|
141
152
|
filename: 'bundle.css',
|
|
142
153
|
chunkFilename: 'bundle.[name].css',
|
|
143
154
|
});
|
|
144
155
|
|
|
145
|
-
const optimizeCss = new
|
|
156
|
+
const optimizeCss = new CssMinimizerPlugin();
|
|
146
157
|
|
|
147
158
|
const minimizer = new TerserPlugin({
|
|
148
159
|
extractComments: true,
|
|
@@ -188,9 +199,9 @@ function getProdConfig(dirname) {
|
|
|
188
199
|
],
|
|
189
200
|
noParse: moduleNoParse,
|
|
190
201
|
},
|
|
191
|
-
plugins: [env, extractSass,
|
|
202
|
+
plugins: [env, extractSass, monaco],
|
|
192
203
|
optimization: {
|
|
193
|
-
minimizer: [minimizer],
|
|
204
|
+
minimizer: [minimizer, optimizeCss],
|
|
194
205
|
},
|
|
195
206
|
};
|
|
196
207
|
}
|