@configuratorware/configurator-admingui 1.32.1-beta.2 → 1.33.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 (monaco) {
76
+ }).then(function () {
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.32.1-beta.2",
3
+ "version": "1.33.0",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@babel/polyfill": "^7.12.1",
8
- "@hot-loader/react-dom": "^17.0.2",
8
+ "@hot-loader/react-dom": "^16.14.0",
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.33.0",
19
- "monaco-editor-webpack-plugin": "^7.0.1",
18
+ "monaco-editor": "^0.20.0",
19
+ "monaco-editor-webpack-plugin": "^1.9.1",
20
20
  "prop-types": "^15.7.2",
21
21
  "qs": "^6.10.1",
22
- "react": "^17.0.2",
23
- "react-dom": "^17.0.2",
24
- "react-file-drop": "^3.1.5",
22
+ "react": "^16.14.0",
23
+ "react-dom": "^16.14.0",
24
+ "react-file-drop": "^0.2.8",
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": "^2.0.0",
32
- "redhotmagma-visualization": "1.32.1-beta.2",
31
+ "react-sortable-hoc": "^1.11.0",
32
+ "redhotmagma-visualization": "1.33.0",
33
33
  "redux": "^4.1.0",
34
34
  "redux-logger": "^3.0.6",
35
35
  "redux-persist": "^5.10.0",
@@ -39,20 +39,27 @@
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",
42
48
  "babel-loader": "^8.0.5",
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",
49
+ "babel-plugin-module-resolver": "^4.1.0",
50
+ "css-loader": "^2.1.0",
51
+ "file-loader": "^3.0.1",
52
+ "mini-css-extract-plugin": "^0.5.0",
53
+ "node-sass": "^4.11.0",
47
54
  "optimize-css-assets-webpack-plugin": "^5.0.1",
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"
55
+ "sass-loader": "^7.1.0",
56
+ "style-loader": "^0.23.1",
57
+ "terser-webpack-plugin": "^1.2.1",
58
+ "url-loader": "^1.1.2"
53
59
  },
54
60
  "scripts": {
55
61
  "copy-public": "node ./scripts/cpFavicon.js",
56
62
  "install": "npm run copy-public"
57
- }
63
+ },
64
+ "readme": "# configurator-admingui\n\n## Setup for development\n1. Follow the \"preparation\", \"install\" and \"start development\" steps in frontend/README.md\n1. Open the core app in the browser: http://localhost:3000\n\n## Ready to build the artifacts\n- run `pnpm build` from project scope (does not build workspace dependencies automatically)\n- or run `pnpm build` from workspace root\n"
58
65
  }
@@ -23,19 +23,11 @@ const moduleRules = [
23
23
  },
24
24
  {
25
25
  test: /\.(png|jpg|gif|svg)$/,
26
- loader: 'url-loader',
27
- options: {
28
- limit: 16384,
29
- name: 'images/[name].[hash].[ext]',
30
- },
26
+ loader: 'url-loader?limit=16384&name=images/[name].[hash].[ext]',
31
27
  },
32
28
  {
33
29
  test: /\.ttf$/,
34
- loader: 'url-loader',
35
- options: {
36
- limit: 16384,
37
- name: 'fonts/[name].[hash].[ext]',
38
- },
30
+ loader: 'url-loader?limit=16384&name=fonts/[name].[hash].[ext]',
39
31
  },
40
32
  ];
41
33
 
@@ -73,7 +65,7 @@ function getDevConfig(dirname, options = {}) {
73
65
  filename: 'bundle.js',
74
66
  publicPath: '/',
75
67
  },
76
- devtool: 'eval-cheap-module-source-map',
68
+ devtool: 'cheap-module-eval-source-map',
77
69
  devServer: {
78
70
  hot: true,
79
71
  contentBase: BUILD_DIR,
@@ -112,10 +104,7 @@ function getDevConfig(dirname, options = {}) {
112
104
  'react/lib/ExecutionEnvironment': true,
113
105
  'react/lib/ReactContext': true,
114
106
  },
115
- optimization: {
116
- moduleIds: 'named',
117
- },
118
- plugins: [new webpack.HotModuleReplacementPlugin(), monaco],
107
+ plugins: [new webpack.HotModuleReplacementPlugin(), new webpack.NamedModulesPlugin(), monaco],
119
108
  };
120
109
  }
121
110
 
@@ -123,17 +112,17 @@ function importPluginsForBuild() {
123
112
  try {
124
113
  const TerserPlugin = require('terser-webpack-plugin');
125
114
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
126
- const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
115
+ const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
127
116
  return {
128
117
  TerserPlugin,
129
118
  MiniCssExtractPlugin,
130
- CssMinimizerPlugin,
119
+ OptimizeCSSAssetsPlugin,
131
120
  };
132
121
  } catch (e) {
133
122
  const packages = [
134
123
  'terser-webpack-plugin',
135
124
  'mini-css-extract-plugin',
136
- 'css-minimizer-webpack-plugin',
125
+ 'optimize-css-assets-webpack-plugin',
137
126
  ];
138
127
  console.error(
139
128
  'To use the build script, please install the following packages: ' + packages.join(', ')
@@ -146,14 +135,14 @@ function getProdConfig(dirname) {
146
135
  const BUILD_DIR = path.resolve(dirname, 'public');
147
136
  const APP_DIR = path.resolve(dirname, 'src');
148
137
 
149
- const { TerserPlugin, MiniCssExtractPlugin, CssMinimizerPlugin } = importPluginsForBuild();
138
+ const { TerserPlugin, MiniCssExtractPlugin, OptimizeCSSAssetsPlugin } = importPluginsForBuild();
150
139
 
151
140
  const extractSass = new MiniCssExtractPlugin({
152
141
  filename: 'bundle.css',
153
142
  chunkFilename: 'bundle.[name].css',
154
143
  });
155
144
 
156
- const optimizeCss = new CssMinimizerPlugin();
145
+ const optimizeCss = new OptimizeCSSAssetsPlugin({});
157
146
 
158
147
  const minimizer = new TerserPlugin({
159
148
  extractComments: true,
@@ -199,9 +188,9 @@ function getProdConfig(dirname) {
199
188
  ],
200
189
  noParse: moduleNoParse,
201
190
  },
202
- plugins: [env, extractSass, monaco],
191
+ plugins: [env, extractSass, optimizeCss, monaco],
203
192
  optimization: {
204
- minimizer: [minimizer, optimizeCss],
193
+ minimizer: [minimizer],
205
194
  },
206
195
  };
207
196
  }
@@ -27,7 +27,7 @@ const MonacoEditor = withStyles({
27
27
  useEffect(() => {
28
28
  let editor;
29
29
  import('monaco-editor/esm/vs/editor/editor.api')
30
- .then((monaco) => {
30
+ .then(() => {
31
31
  if (ref.current) {
32
32
  editor = monaco.editor.create(ref.current, {
33
33
  value,