@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,
@@ -25,12 +25,6 @@ var initialState = _objectSpread({}, (0, _Reducer.getDefaultEntityState)({
25
25
  identifier: true
26
26
  }
27
27
  },
28
- email: {
29
- value: '',
30
- constraints: {
31
- presence: true
32
- }
33
- },
34
28
  users: {
35
29
  value: [],
36
30
  schema: {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-admingui",
3
- "version": "1.35.3",
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": "^16.14.0",
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.20.0",
19
- "monaco-editor-webpack-plugin": "^1.9.1",
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": "^16.14.0",
23
- "react-dom": "^16.14.0",
24
- "react-file-drop": "^0.2.8",
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": "^1.11.0",
32
- "redhotmagma-visualization": "1.35.3",
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
- "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",
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-loader": "^7.1.0",
56
- "style-loader": "^0.23.1",
57
- "terser-webpack-plugin": "^1.2.1",
58
- "url-loader": "^1.1.2"
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?limit=16384&name=images/[name].[hash].[ext]',
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?limit=16384&name=fonts/[name].[hash].[ext]',
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-eval-source-map',
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
- plugins: [new webpack.HotModuleReplacementPlugin(), new webpack.NamedModulesPlugin(), monaco],
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 OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
126
+ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
116
127
  return {
117
128
  TerserPlugin,
118
129
  MiniCssExtractPlugin,
119
- OptimizeCSSAssetsPlugin,
130
+ CssMinimizerPlugin,
120
131
  };
121
132
  } catch (e) {
122
133
  const packages = [
123
134
  'terser-webpack-plugin',
124
135
  'mini-css-extract-plugin',
125
- 'optimize-css-assets-webpack-plugin',
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, OptimizeCSSAssetsPlugin } = importPluginsForBuild();
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 OptimizeCSSAssetsPlugin({});
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, optimizeCss, monaco],
202
+ plugins: [env, extractSass, monaco],
192
203
  optimization: {
193
- minimizer: [minimizer],
204
+ minimizer: [minimizer, optimizeCss],
194
205
  },
195
206
  };
196
207
  }
@@ -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(() => {
30
+ .then((monaco) => {
31
31
  if (ref.current) {
32
32
  editor = monaco.editor.create(ref.current, {
33
33
  value,
@@ -7,7 +7,6 @@ const initialState = {
7
7
  {
8
8
  id: null,
9
9
  identifier: { value: '', constraints: { identifier: true } },
10
- email: { value: '', constraints: { presence: true } },
11
10
  users: {
12
11
  value: [],
13
12
  schema: {