@configuratorware/configurator-frontendgui 1.33.1 → 1.33.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.
@@ -242,7 +242,7 @@ var ImageEditDialog = /*#__PURE__*/function (_React$Component) {
242
242
  }
243
243
 
244
244
  var extension = file.name.toLowerCase().match(/\.([0-9a-z]+)$/i)[1];
245
- var allowedFormats = (0, _configuration.getConf)('designer.allowedImageUploadFormats');
245
+ var allowedFormats = (0, _configuration.getConf)('designer.allowedImageUploadFormats').split(',');
246
246
 
247
247
  if (allowedFormats.indexOf(extension) === -1) {
248
248
  error = (0, _i18n.t)('fileUpload.uploadFormatError', {
@@ -178,8 +178,8 @@ var applicationConfiguration = {
178
178
  // the default canvas dpi as project specific option
179
179
  maxColorAmount: 10,
180
180
  // the default max number of colors in the colorizing feature
181
- allowedImageUploadFormats: [// the image formats users can upload to designareas / designer items
182
- 'jpg', 'jpeg', 'svg', 'png', 'pdf', 'bmp', 'tif', 'tiff', 'eps', 'ai', 'gif']
181
+ allowedImageUploadFormats: 'jpg,jpeg,svg,png,pdf,bmp,tif,tiff,eps,ai,gif' // the image formats users can upload to designareas / designer items
182
+
183
183
  },
184
184
  vectorizeImageQuality: 45000,
185
185
  renderPreviewImagesForCheckout: true,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-frontendgui",
3
- "version": "1.33.1",
3
+ "version": "1.33.2",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./index.js",
7
7
  "dependencies": {
8
8
  "@babel/polyfill": "^7.12.1",
9
- "@configuratorware/scripts": "1.33.1",
9
+ "@configuratorware/scripts": "1.33.2",
10
10
  "@hot-loader/react-dom": "^17.0.1",
11
11
  "@material-ui/core": "^4.12.2",
12
12
  "@material-ui/icons": "^4.11.2",
@@ -39,8 +39,8 @@
39
39
  "react-router-dom": "^5.2.0",
40
40
  "react-swipeable": "^5.5.1",
41
41
  "react-zoom-pan-pinch": "^2.1.3",
42
- "redhotmagma-graphics-editor": "1.33.1",
43
- "redhotmagma-visualization": "1.33.1",
42
+ "redhotmagma-graphics-editor": "1.33.2",
43
+ "redhotmagma-visualization": "1.33.2",
44
44
  "redux": "^4.1.0",
45
45
  "redux-logger": "^3.0.6",
46
46
  "redux-persist": "^5.10.0",
@@ -209,8 +209,7 @@ class ImageEditDialog extends React.Component {
209
209
 
210
210
  const extension = file.name.toLowerCase().match(/\.([0-9a-z]+)$/i)[1];
211
211
 
212
- const allowedFormats = getConf('designer.allowedImageUploadFormats');
213
-
212
+ const allowedFormats = getConf('designer.allowedImageUploadFormats').split(',');
214
213
  if (allowedFormats.indexOf(extension) === -1) {
215
214
  error = t('fileUpload.uploadFormatError', { formats: allowedFormats.join(', ').toUpperCase() });
216
215
  }
@@ -193,20 +193,7 @@ let applicationConfiguration = {
193
193
  designer: {
194
194
  dpi: 300, // the default canvas dpi as project specific option
195
195
  maxColorAmount: 10, // the default max number of colors in the colorizing feature
196
- allowedImageUploadFormats: [
197
- // the image formats users can upload to designareas / designer items
198
- 'jpg',
199
- 'jpeg',
200
- 'svg',
201
- 'png',
202
- 'pdf',
203
- 'bmp',
204
- 'tif',
205
- 'tiff',
206
- 'eps',
207
- 'ai',
208
- 'gif',
209
- ],
196
+ allowedImageUploadFormats: 'jpg,jpeg,svg,png,pdf,bmp,tif,tiff,eps,ai,gif', // the image formats users can upload to designareas / designer items
210
197
  },
211
198
 
212
199
  vectorizeImageQuality: 45000,