@commercetools-frontend/mc-scripts 22.14.0 → 22.14.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.
Files changed (50) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +5 -5
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +5 -5
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +5 -5
  4. package/dist/{build-a73f21aa.esm.js → build-62a661fc.esm.js} +4 -3
  5. package/dist/{build-d74a9d7d.cjs.prod.js → build-673ba497.cjs.prod.js} +4 -3
  6. package/dist/{build-26399454.cjs.dev.js → build-e15ef955.cjs.dev.js} +4 -3
  7. package/dist/{build-vite-9de4820c.esm.js → build-vite-878805aa.esm.js} +2 -1
  8. package/dist/{build-vite-1ba28dd8.cjs.prod.js → build-vite-b674f8bd.cjs.prod.js} +2 -1
  9. package/dist/{build-vite-e7a6315c.cjs.dev.js → build-vite-eaddf5a8.cjs.dev.js} +2 -1
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  13. package/dist/{config-sync-747f95ee.cjs.prod.js → config-sync-b9af89d4.cjs.prod.js} +2 -2
  14. package/dist/{config-sync-75aa05d9.cjs.dev.js → config-sync-f157e99c.cjs.dev.js} +2 -2
  15. package/dist/{config-sync-56be7225.esm.js → config-sync-f299da5b.esm.js} +2 -2
  16. package/dist/{create-postcss-config-97275e32.esm.js → create-postcss-config-9c76060a.esm.js} +1 -1
  17. package/dist/{create-postcss-config-d90e70db.cjs.prod.js → create-postcss-config-9ca89418.cjs.prod.js} +1 -1
  18. package/dist/{create-postcss-config-cd0c19be.cjs.dev.js → create-postcss-config-a38f5519.cjs.dev.js} +1 -1
  19. package/dist/{create-webpack-config-for-development-5ed79749.cjs.dev.js → create-webpack-config-for-development-5a0ebbe2.cjs.dev.js} +36 -1
  20. package/dist/{create-webpack-config-for-development-4e195386.esm.js → create-webpack-config-for-development-a2a3c933.esm.js} +35 -1
  21. package/dist/{create-webpack-config-for-development-46f7e4a4.cjs.prod.js → create-webpack-config-for-development-aa4798fd.cjs.prod.js} +36 -1
  22. package/dist/{create-webpack-config-for-production-6da944a7.cjs.dev.js → create-webpack-config-for-production-248296c7.cjs.dev.js} +36 -1
  23. package/dist/{create-webpack-config-for-production-2049ad69.esm.js → create-webpack-config-for-production-32af2687.esm.js} +35 -1
  24. package/dist/{create-webpack-config-for-production-4d4c823d.cjs.prod.js → create-webpack-config-for-production-49a79bf6.cjs.prod.js} +36 -1
  25. package/dist/{credentials-storage-bd71d3bc.cjs.prod.js → credentials-storage-32a14cec.cjs.prod.js} +1 -1
  26. package/dist/{credentials-storage-c53859a4.cjs.dev.js → credentials-storage-8a24802f.cjs.dev.js} +1 -1
  27. package/dist/{credentials-storage-d960c354.esm.js → credentials-storage-beb2066f.esm.js} +1 -1
  28. package/dist/{login-f6ae1f0a.cjs.prod.js → login-1b1c4cf0.cjs.prod.js} +2 -2
  29. package/dist/{login-f94bbb06.cjs.dev.js → login-64bdd8eb.cjs.dev.js} +2 -2
  30. package/dist/{login-92dc6a4c.esm.js → login-6f67c0e1.esm.js} +2 -2
  31. package/dist/{package-89c70cf0.cjs.dev.js → package-3efd1a80.cjs.dev.js} +9 -9
  32. package/dist/{package-aa88ed64.cjs.prod.js → package-4ecafad2.cjs.prod.js} +9 -9
  33. package/dist/{package-b695b8e4.esm.js → package-b6c00a3a.esm.js} +9 -9
  34. package/dist/{start-b84603c1.cjs.dev.js → start-02fe8ce9.cjs.dev.js} +4 -3
  35. package/dist/{start-b48d2685.cjs.prod.js → start-7aa1d29a.cjs.prod.js} +4 -3
  36. package/dist/{start-1ac0ff3c.esm.js → start-e167b292.esm.js} +4 -3
  37. package/dist/{start-vite-3966d625.cjs.dev.js → start-vite-1eace36f.cjs.dev.js} +2 -1
  38. package/dist/{start-vite-cf0213a1.esm.js → start-vite-42ce74bc.esm.js} +2 -1
  39. package/dist/{start-vite-5c78605b.cjs.prod.js → start-vite-e1f2b31e.cjs.prod.js} +2 -1
  40. package/dist/{vite-plugin-svgr-a732f8df.cjs.prod.js → vite-plugin-svgr-12a557b9.cjs.dev.js} +35 -0
  41. package/dist/{vite-plugin-svgr-5eb1c511.cjs.dev.js → vite-plugin-svgr-e52c8492.cjs.prod.js} +35 -0
  42. package/dist/vite-plugin-svgr-e6f228d8.esm.js +84 -0
  43. package/package.json +9 -9
  44. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  45. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  46. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  47. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +5 -4
  48. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -4
  49. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -4
  50. package/dist/vite-plugin-svgr-5c953fe7.esm.js +0 -50
@@ -14,6 +14,7 @@ var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/string
14
14
  var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
15
15
  var _Number$isInteger = require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
16
16
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
17
+ var crypto = require('crypto');
17
18
  var CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
18
19
  var HtmlWebpackPlugin = require('html-webpack-plugin');
19
20
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -28,7 +29,7 @@ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
28
29
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
29
30
  var fs = require('fs');
30
31
  var path = require('path');
31
- var createPostcssConfig = require('./create-postcss-config-cd0c19be.cjs.dev.js');
32
+ var createPostcssConfig = require('./create-postcss-config-a38f5519.cjs.dev.js');
32
33
  var hasJsxRuntime = require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
33
34
  var paths = require('./paths-d1febc82.cjs.dev.js');
34
35
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
@@ -48,6 +49,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
48
49
  var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
49
50
  var _Number$isInteger__default = /*#__PURE__*/_interopDefault(_Number$isInteger);
50
51
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
52
+ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
51
53
  var CssMinimizerPlugin__default = /*#__PURE__*/_interopDefault(CssMinimizerPlugin);
52
54
  var HtmlWebpackPlugin__default = /*#__PURE__*/_interopDefault(HtmlWebpackPlugin);
53
55
  var MiniCssExtractPlugin__default = /*#__PURE__*/_interopDefault(MiniCssExtractPlugin);
@@ -319,6 +321,39 @@ function createWebpackConfigForProduction() {
319
321
  removeViewBox: false
320
322
  }
321
323
  }
324
+ },
325
+ // Avoid collisions with ids in other SVGs,
326
+ // which was causing incorrect masking, gradient directions, etc
327
+ // this is an ongoing issue with both SVGR and SVGO,
328
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
329
+ // see SVGR issues:
330
+ // https://github.com/gregberge/svgr/issues/322
331
+ // https://github.com/gregberge/svgr/issues/210
332
+ // see SVGO issues:
333
+ // https://github.com/svg/svgo/issues/674
334
+ // https://github.com/svg/svgo/issues/1746
335
+ //
336
+ // Initially, a naive counter was implemented based on this github comment:
337
+ // https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
338
+ // But while that implementation insured id’s that are unique,
339
+ // it did not work in cases where the id is both declared and referenced in the same file,
340
+ // because the refernce gets a separate unique ID (a different number from the counter).
341
+ //
342
+ // The current implementation is based on this github comment:
343
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
344
+ // Generates a hash of the filepath of the svg file, resulting in a prefix which is:
345
+ // - Short,
346
+ // - With characters valid for IDs,
347
+ // - The same within a file,
348
+ // - And different in different files.
349
+ {
350
+ name: 'prefixIds',
351
+ params: {
352
+ delim: '',
353
+ prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
354
+ outputLength: 6
355
+ }).update(info.path || '').digest('hex'))
356
+ }
322
357
  }]
323
358
  }
324
359
  }
@@ -12,6 +12,7 @@ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringif
12
12
  import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
13
13
  import _Number$isInteger from '@babel/runtime-corejs3/core-js-stable/number/is-integer';
14
14
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
15
+ import crypto from 'crypto';
15
16
  import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
16
17
  import HtmlWebpackPlugin from 'html-webpack-plugin';
17
18
  import MiniCssExtractPlugin from 'mini-css-extract-plugin';
@@ -26,7 +27,7 @@ import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
26
27
  import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
27
28
  import fs from 'fs';
28
29
  import path from 'path';
29
- import { c as createPostcssConfig } from './create-postcss-config-97275e32.esm.js';
30
+ import { c as createPostcssConfig } from './create-postcss-config-9c76060a.esm.js';
30
31
  import { h as hasJsxRuntime } from './has-jsx-runtime-e3ecb09b.esm.js';
31
32
  import { p as paths } from './paths-ded20ae1.esm.js';
32
33
  import { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
@@ -290,6 +291,39 @@ function createWebpackConfigForProduction() {
290
291
  removeViewBox: false
291
292
  }
292
293
  }
294
+ },
295
+ // Avoid collisions with ids in other SVGs,
296
+ // which was causing incorrect masking, gradient directions, etc
297
+ // this is an ongoing issue with both SVGR and SVGO,
298
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
299
+ // see SVGR issues:
300
+ // https://github.com/gregberge/svgr/issues/322
301
+ // https://github.com/gregberge/svgr/issues/210
302
+ // see SVGO issues:
303
+ // https://github.com/svg/svgo/issues/674
304
+ // https://github.com/svg/svgo/issues/1746
305
+ //
306
+ // Initially, a naive counter was implemented based on this github comment:
307
+ // https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
308
+ // But while that implementation insured id’s that are unique,
309
+ // it did not work in cases where the id is both declared and referenced in the same file,
310
+ // because the refernce gets a separate unique ID (a different number from the counter).
311
+ //
312
+ // The current implementation is based on this github comment:
313
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
314
+ // Generates a hash of the filepath of the svg file, resulting in a prefix which is:
315
+ // - Short,
316
+ // - With characters valid for IDs,
317
+ // - The same within a file,
318
+ // - And different in different files.
319
+ {
320
+ name: 'prefixIds',
321
+ params: {
322
+ delim: '',
323
+ prefix: (_, info) => "svg".concat(crypto.createHash('shake256', {
324
+ outputLength: 6
325
+ }).update(info.path || '').digest('hex'))
326
+ }
293
327
  }]
294
328
  }
295
329
  }
@@ -14,6 +14,7 @@ var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/string
14
14
  var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
15
15
  var _Number$isInteger = require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
16
16
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
17
+ var crypto = require('crypto');
17
18
  var CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
18
19
  var HtmlWebpackPlugin = require('html-webpack-plugin');
19
20
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -28,7 +29,7 @@ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
28
29
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
29
30
  var fs = require('fs');
30
31
  var path = require('path');
31
- var createPostcssConfig = require('./create-postcss-config-d90e70db.cjs.prod.js');
32
+ var createPostcssConfig = require('./create-postcss-config-9ca89418.cjs.prod.js');
32
33
  var hasJsxRuntime = require('./has-jsx-runtime-c3202df5.cjs.prod.js');
33
34
  var paths = require('./paths-854af5ef.cjs.prod.js');
34
35
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
@@ -48,6 +49,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
48
49
  var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
49
50
  var _Number$isInteger__default = /*#__PURE__*/_interopDefault(_Number$isInteger);
50
51
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
52
+ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
51
53
  var CssMinimizerPlugin__default = /*#__PURE__*/_interopDefault(CssMinimizerPlugin);
52
54
  var HtmlWebpackPlugin__default = /*#__PURE__*/_interopDefault(HtmlWebpackPlugin);
53
55
  var MiniCssExtractPlugin__default = /*#__PURE__*/_interopDefault(MiniCssExtractPlugin);
@@ -319,6 +321,39 @@ function createWebpackConfigForProduction() {
319
321
  removeViewBox: false
320
322
  }
321
323
  }
324
+ },
325
+ // Avoid collisions with ids in other SVGs,
326
+ // which was causing incorrect masking, gradient directions, etc
327
+ // this is an ongoing issue with both SVGR and SVGO,
328
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
329
+ // see SVGR issues:
330
+ // https://github.com/gregberge/svgr/issues/322
331
+ // https://github.com/gregberge/svgr/issues/210
332
+ // see SVGO issues:
333
+ // https://github.com/svg/svgo/issues/674
334
+ // https://github.com/svg/svgo/issues/1746
335
+ //
336
+ // Initially, a naive counter was implemented based on this github comment:
337
+ // https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
338
+ // But while that implementation insured id’s that are unique,
339
+ // it did not work in cases where the id is both declared and referenced in the same file,
340
+ // because the refernce gets a separate unique ID (a different number from the counter).
341
+ //
342
+ // The current implementation is based on this github comment:
343
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
344
+ // Generates a hash of the filepath of the svg file, resulting in a prefix which is:
345
+ // - Short,
346
+ // - With characters valid for IDs,
347
+ // - The same within a file,
348
+ // - And different in different files.
349
+ {
350
+ name: 'prefixIds',
351
+ params: {
352
+ delim: '',
353
+ prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
354
+ outputLength: 6
355
+ }).update(info.path || '').digest('hex'))
356
+ }
322
357
  }]
323
358
  }
324
359
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var createHttpUserAgent = require('@commercetools/http-user-agent');
4
- var _package = require('./package-aa88ed64.cjs.prod.js');
4
+ var _package = require('./package-4ecafad2.cjs.prod.js');
5
5
  var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
6
6
  var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
7
7
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var createHttpUserAgent = require('@commercetools/http-user-agent');
4
- var _package = require('./package-89c70cf0.cjs.dev.js');
4
+ var _package = require('./package-3efd1a80.cjs.dev.js');
5
5
  var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
6
6
  var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
7
7
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
@@ -1,5 +1,5 @@
1
1
  import createHttpUserAgent from '@commercetools/http-user-agent';
2
- import { p as pkgJson } from './package-b695b8e4.esm.js';
2
+ import { p as pkgJson } from './package-b6c00a3a.esm.js';
3
3
  import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
4
4
  import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
5
5
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
@@ -14,9 +14,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
14
14
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
15
15
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
16
16
  var fetch = require('node-fetch');
17
- var credentialsStorage$1 = require('./credentials-storage-bd71d3bc.cjs.prod.js');
17
+ var credentialsStorage$1 = require('./credentials-storage-32a14cec.cjs.prod.js');
18
18
  require('@commercetools/http-user-agent');
19
- require('./package-aa88ed64.cjs.prod.js');
19
+ require('./package-4ecafad2.cjs.prod.js');
20
20
  require('@babel/runtime-corejs3/helpers/classCallCheck');
21
21
  require('@babel/runtime-corejs3/helpers/createClass');
22
22
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -14,9 +14,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
14
14
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
15
15
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
16
16
  var fetch = require('node-fetch');
17
- var credentialsStorage$1 = require('./credentials-storage-c53859a4.cjs.dev.js');
17
+ var credentialsStorage$1 = require('./credentials-storage-8a24802f.cjs.dev.js');
18
18
  require('@commercetools/http-user-agent');
19
- require('./package-89c70cf0.cjs.dev.js');
19
+ require('./package-3efd1a80.cjs.dev.js');
20
20
  require('@babel/runtime-corejs3/helpers/classCallCheck');
21
21
  require('@babel/runtime-corejs3/helpers/createClass');
22
22
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -12,9 +12,9 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
12
12
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
13
13
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
14
14
  import fetch from 'node-fetch';
15
- import { u as userAgent, C as CredentialsStorage } from './credentials-storage-d960c354.esm.js';
15
+ import { u as userAgent, C as CredentialsStorage } from './credentials-storage-beb2066f.esm.js';
16
16
  import '@commercetools/http-user-agent';
17
- import './package-b695b8e4.esm.js';
17
+ import './package-b6c00a3a.esm.js';
18
18
  import '@babel/runtime-corejs3/helpers/classCallCheck';
19
19
  import '@babel/runtime-corejs3/helpers/createClass';
20
20
  import '@babel/runtime-corejs3/core-js-stable/date/now';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var pkgJson = {
4
4
  name: "@commercetools-frontend/mc-scripts",
5
- version: "22.14.0",
5
+ version: "22.14.2",
6
6
  description: "Configuration and scripts for developing a MC application",
7
7
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
8
8
  repository: {
@@ -60,13 +60,13 @@ var pkgJson = {
60
60
  "@babel/core": "^7.22.17",
61
61
  "@babel/runtime": "^7.22.15",
62
62
  "@babel/runtime-corejs3": "^7.22.15",
63
- "@commercetools-frontend/application-components": "22.14.0",
64
- "@commercetools-frontend/application-config": "22.14.0",
65
- "@commercetools-frontend/assets": "22.14.0",
66
- "@commercetools-frontend/babel-preset-mc-app": "22.14.0",
67
- "@commercetools-frontend/constants": "22.14.0",
68
- "@commercetools-frontend/mc-dev-authentication": "22.14.0",
69
- "@commercetools-frontend/mc-html-template": "22.14.0",
63
+ "@commercetools-frontend/application-components": "22.14.2",
64
+ "@commercetools-frontend/application-config": "22.14.2",
65
+ "@commercetools-frontend/assets": "22.14.2",
66
+ "@commercetools-frontend/babel-preset-mc-app": "22.14.2",
67
+ "@commercetools-frontend/constants": "22.14.2",
68
+ "@commercetools-frontend/mc-dev-authentication": "22.14.2",
69
+ "@commercetools-frontend/mc-html-template": "22.14.2",
70
70
  "@commercetools/http-user-agent": "3.0.0",
71
71
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
72
72
  "@rollup/plugin-graphql": "2.0.3",
@@ -118,7 +118,7 @@ var pkgJson = {
118
118
  "terser-webpack-plugin": "5.3.8",
119
119
  "thread-loader": "3.0.4",
120
120
  url: "^0.11.0",
121
- vite: "4.4.9",
121
+ vite: "4.4.12",
122
122
  webpack: "5.82.1",
123
123
  "webpack-bundle-analyzer": "4.8.0",
124
124
  "webpack-dev-server": "4.15.0",
@@ -2,7 +2,7 @@
2
2
 
3
3
  var pkgJson = {
4
4
  name: "@commercetools-frontend/mc-scripts",
5
- version: "22.14.0",
5
+ version: "22.14.2",
6
6
  description: "Configuration and scripts for developing a MC application",
7
7
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
8
8
  repository: {
@@ -60,13 +60,13 @@ var pkgJson = {
60
60
  "@babel/core": "^7.22.17",
61
61
  "@babel/runtime": "^7.22.15",
62
62
  "@babel/runtime-corejs3": "^7.22.15",
63
- "@commercetools-frontend/application-components": "22.14.0",
64
- "@commercetools-frontend/application-config": "22.14.0",
65
- "@commercetools-frontend/assets": "22.14.0",
66
- "@commercetools-frontend/babel-preset-mc-app": "22.14.0",
67
- "@commercetools-frontend/constants": "22.14.0",
68
- "@commercetools-frontend/mc-dev-authentication": "22.14.0",
69
- "@commercetools-frontend/mc-html-template": "22.14.0",
63
+ "@commercetools-frontend/application-components": "22.14.2",
64
+ "@commercetools-frontend/application-config": "22.14.2",
65
+ "@commercetools-frontend/assets": "22.14.2",
66
+ "@commercetools-frontend/babel-preset-mc-app": "22.14.2",
67
+ "@commercetools-frontend/constants": "22.14.2",
68
+ "@commercetools-frontend/mc-dev-authentication": "22.14.2",
69
+ "@commercetools-frontend/mc-html-template": "22.14.2",
70
70
  "@commercetools/http-user-agent": "3.0.0",
71
71
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
72
72
  "@rollup/plugin-graphql": "2.0.3",
@@ -118,7 +118,7 @@ var pkgJson = {
118
118
  "terser-webpack-plugin": "5.3.8",
119
119
  "thread-loader": "3.0.4",
120
120
  url: "^0.11.0",
121
- vite: "4.4.9",
121
+ vite: "4.4.12",
122
122
  webpack: "5.82.1",
123
123
  "webpack-bundle-analyzer": "4.8.0",
124
124
  "webpack-dev-server": "4.15.0",
@@ -1,6 +1,6 @@
1
1
  var pkgJson = {
2
2
  name: "@commercetools-frontend/mc-scripts",
3
- version: "22.14.0",
3
+ version: "22.14.2",
4
4
  description: "Configuration and scripts for developing a MC application",
5
5
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  repository: {
@@ -58,13 +58,13 @@ var pkgJson = {
58
58
  "@babel/core": "^7.22.17",
59
59
  "@babel/runtime": "^7.22.15",
60
60
  "@babel/runtime-corejs3": "^7.22.15",
61
- "@commercetools-frontend/application-components": "22.14.0",
62
- "@commercetools-frontend/application-config": "22.14.0",
63
- "@commercetools-frontend/assets": "22.14.0",
64
- "@commercetools-frontend/babel-preset-mc-app": "22.14.0",
65
- "@commercetools-frontend/constants": "22.14.0",
66
- "@commercetools-frontend/mc-dev-authentication": "22.14.0",
67
- "@commercetools-frontend/mc-html-template": "22.14.0",
61
+ "@commercetools-frontend/application-components": "22.14.2",
62
+ "@commercetools-frontend/application-config": "22.14.2",
63
+ "@commercetools-frontend/assets": "22.14.2",
64
+ "@commercetools-frontend/babel-preset-mc-app": "22.14.2",
65
+ "@commercetools-frontend/constants": "22.14.2",
66
+ "@commercetools-frontend/mc-dev-authentication": "22.14.2",
67
+ "@commercetools-frontend/mc-html-template": "22.14.2",
68
68
  "@commercetools/http-user-agent": "3.0.0",
69
69
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
70
70
  "@rollup/plugin-graphql": "2.0.3",
@@ -116,7 +116,7 @@ var pkgJson = {
116
116
  "terser-webpack-plugin": "5.3.8",
117
117
  "thread-loader": "3.0.4",
118
118
  url: "^0.11.0",
119
- vite: "4.4.9",
119
+ vite: "4.4.12",
120
120
  webpack: "5.82.1",
121
121
  "webpack-bundle-analyzer": "4.8.0",
122
122
  "webpack-dev-server": "4.15.0",
@@ -10,7 +10,7 @@ var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
11
11
  var webpack = require('webpack');
12
12
  var WebpackDevServer = require('webpack-dev-server');
13
- var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-5ed79749.cjs.dev.js');
13
+ var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-5a0ebbe2.cjs.dev.js');
14
14
  var paths = require('./paths-d1febc82.cjs.dev.js');
15
15
  var applicationConfig = require('@commercetools-frontend/application-config');
16
16
  var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
@@ -27,6 +27,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/filter');
27
27
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
28
28
  require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
29
29
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
30
+ require('crypto');
30
31
  require('path');
31
32
  require('@pmmmwh/react-refresh-webpack-plugin');
32
33
  require('html-webpack-plugin');
@@ -35,9 +36,9 @@ require('webpackbar');
35
36
  require('@babel/runtime-corejs3/helpers/classCallCheck');
36
37
  require('@babel/runtime-corejs3/helpers/createClass');
37
38
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
38
- require('./create-postcss-config-cd0c19be.cjs.dev.js');
39
+ require('./create-postcss-config-a38f5519.cjs.dev.js');
39
40
  require('@babel/runtime-corejs3/helpers/slicedToArray');
40
- require('./package-89c70cf0.cjs.dev.js');
41
+ require('./package-3efd1a80.cjs.dev.js');
41
42
  require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
42
43
  require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
43
44
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -10,7 +10,7 @@ var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
11
11
  var webpack = require('webpack');
12
12
  var WebpackDevServer = require('webpack-dev-server');
13
- var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-46f7e4a4.cjs.prod.js');
13
+ var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-aa4798fd.cjs.prod.js');
14
14
  var paths = require('./paths-854af5ef.cjs.prod.js');
15
15
  var applicationConfig = require('@commercetools-frontend/application-config');
16
16
  var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
@@ -27,6 +27,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/filter');
27
27
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
28
28
  require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
29
29
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
30
+ require('crypto');
30
31
  require('path');
31
32
  require('@pmmmwh/react-refresh-webpack-plugin');
32
33
  require('html-webpack-plugin');
@@ -35,9 +36,9 @@ require('webpackbar');
35
36
  require('@babel/runtime-corejs3/helpers/classCallCheck');
36
37
  require('@babel/runtime-corejs3/helpers/createClass');
37
38
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
38
- require('./create-postcss-config-d90e70db.cjs.prod.js');
39
+ require('./create-postcss-config-9ca89418.cjs.prod.js');
39
40
  require('@babel/runtime-corejs3/helpers/slicedToArray');
40
- require('./package-aa88ed64.cjs.prod.js');
41
+ require('./package-4ecafad2.cjs.prod.js');
41
42
  require('./has-jsx-runtime-c3202df5.cjs.prod.js');
42
43
  require('./vendors-to-transpile-04a49d40.cjs.prod.js');
43
44
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -8,7 +8,7 @@ import openBrowser from 'react-dev-utils/openBrowser';
8
8
  import { choosePort, prepareUrls, createCompiler } from 'react-dev-utils/WebpackDevServerUtils';
9
9
  import webpack from 'webpack';
10
10
  import WebpackDevServer from 'webpack-dev-server';
11
- import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-4e195386.esm.js';
11
+ import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-a2a3c933.esm.js';
12
12
  import { p as paths } from './paths-ded20ae1.esm.js';
13
13
  import { processConfig } from '@commercetools-frontend/application-config';
14
14
  import { createMcDevAuthenticationMiddleware } from '@commercetools-frontend/mc-dev-authentication';
@@ -25,6 +25,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/filter';
25
25
  import '@babel/runtime-corejs3/core-js-stable/json/stringify';
26
26
  import '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
27
27
  import '@babel/runtime-corejs3/core-js-stable/instance/concat';
28
+ import 'crypto';
28
29
  import 'path';
29
30
  import '@pmmmwh/react-refresh-webpack-plugin';
30
31
  import 'html-webpack-plugin';
@@ -33,9 +34,9 @@ import 'webpackbar';
33
34
  import '@babel/runtime-corejs3/helpers/classCallCheck';
34
35
  import '@babel/runtime-corejs3/helpers/createClass';
35
36
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
36
- import './create-postcss-config-97275e32.esm.js';
37
+ import './create-postcss-config-9c76060a.esm.js';
37
38
  import '@babel/runtime-corejs3/helpers/slicedToArray';
38
- import './package-b695b8e4.esm.js';
39
+ import './package-b6c00a3a.esm.js';
39
40
  import './has-jsx-runtime-e3ecb09b.esm.js';
40
41
  import './vendors-to-transpile-7dc84a72.esm.js';
41
42
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
@@ -13,10 +13,11 @@ var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
13
13
  var paths = require('./paths-d1febc82.cjs.dev.js');
14
14
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
15
15
  var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
16
- var vitePluginSvgr = require('./vite-plugin-svgr-5eb1c511.cjs.dev.js');
16
+ var vitePluginSvgr = require('./vite-plugin-svgr-12a557b9.cjs.dev.js');
17
17
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
18
18
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
19
19
  require('fs');
20
+ require('crypto');
20
21
  require('@rollup/pluginutils');
21
22
 
22
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -11,10 +11,11 @@ import { processHeaders, replaceHtmlPlaceholders, generateTemplate } from '@comm
11
11
  import { p as paths } from './paths-ded20ae1.esm.js';
12
12
  import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
13
13
  import { createMcDevAuthenticationMiddleware } from '@commercetools-frontend/mc-dev-authentication';
14
- import { v as vitePluginSvgr } from './vite-plugin-svgr-5c953fe7.esm.js';
14
+ import { v as vitePluginSvgr } from './vite-plugin-svgr-e6f228d8.esm.js';
15
15
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
16
16
  import '@babel/runtime-corejs3/core-js-stable/instance/concat';
17
17
  import 'fs';
18
+ import 'crypto';
18
19
  import '@rollup/pluginutils';
19
20
 
20
21
  const vitePluginCustomApplication = applicationConfig => {
@@ -13,10 +13,11 @@ var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
13
13
  var paths = require('./paths-854af5ef.cjs.prod.js');
14
14
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
15
15
  var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
16
- var vitePluginSvgr = require('./vite-plugin-svgr-a732f8df.cjs.prod.js');
16
+ var vitePluginSvgr = require('./vite-plugin-svgr-e52c8492.cjs.prod.js');
17
17
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
18
18
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
19
19
  require('fs');
20
+ require('crypto');
20
21
  require('@rollup/pluginutils');
21
22
 
22
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var crypto = require('crypto');
3
4
  var fs = require('fs');
4
5
  var pluginutils = require('@rollup/pluginutils');
5
6
  var vite = require('vite');
@@ -24,6 +25,7 @@ function _interopNamespace(e) {
24
25
  return Object.freeze(n);
25
26
  }
26
27
 
28
+ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
27
29
  var fs__default = /*#__PURE__*/_interopDefault(fs);
28
30
 
29
31
  /**
@@ -49,6 +51,39 @@ function vitePluginSvgr() {
49
51
  removeViewBox: false
50
52
  }
51
53
  }
54
+ },
55
+ // Avoid collisions with ids in other SVGs,
56
+ // which was causing incorrect masking, gradient directions, etc
57
+ // this is an ongoing issue with both SVGR and SVGO,
58
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
59
+ // see SVGR issues:
60
+ // https://github.com/gregberge/svgr/issues/322
61
+ // https://github.com/gregberge/svgr/issues/210
62
+ // see SVGO issues:
63
+ // https://github.com/svg/svgo/issues/674
64
+ // https://github.com/svg/svgo/issues/1746
65
+ //
66
+ // Initially, a naive counter was implemented based on this github comment:
67
+ // https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
68
+ // But while that implementation insured id’s that are unique,
69
+ // it did not work in cases where the id is both declared and referenced in the same file,
70
+ // because the refernce gets a separate unique ID (a different number from the counter).
71
+ //
72
+ // The current implementation is based on this github comment:
73
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
74
+ // Generates a hash of the filepath of the svg file, resulting in a prefix which is:
75
+ // - Short,
76
+ // - With characters valid for IDs,
77
+ // - The same within a file,
78
+ // - And different in different files.
79
+ {
80
+ name: 'prefixIds',
81
+ params: {
82
+ delim: '',
83
+ prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
84
+ outputLength: 6
85
+ }).update(info.path || '').digest('hex'))
86
+ }
52
87
  }]
53
88
  }
54
89
  }, {
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var crypto = require('crypto');
3
4
  var fs = require('fs');
4
5
  var pluginutils = require('@rollup/pluginutils');
5
6
  var vite = require('vite');
@@ -24,6 +25,7 @@ function _interopNamespace(e) {
24
25
  return Object.freeze(n);
25
26
  }
26
27
 
28
+ var crypto__default = /*#__PURE__*/_interopDefault(crypto);
27
29
  var fs__default = /*#__PURE__*/_interopDefault(fs);
28
30
 
29
31
  /**
@@ -49,6 +51,39 @@ function vitePluginSvgr() {
49
51
  removeViewBox: false
50
52
  }
51
53
  }
54
+ },
55
+ // Avoid collisions with ids in other SVGs,
56
+ // which was causing incorrect masking, gradient directions, etc
57
+ // this is an ongoing issue with both SVGR and SVGO,
58
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
59
+ // see SVGR issues:
60
+ // https://github.com/gregberge/svgr/issues/322
61
+ // https://github.com/gregberge/svgr/issues/210
62
+ // see SVGO issues:
63
+ // https://github.com/svg/svgo/issues/674
64
+ // https://github.com/svg/svgo/issues/1746
65
+ //
66
+ // Initially, a naive counter was implemented based on this github comment:
67
+ // https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
68
+ // But while that implementation insured id’s that are unique,
69
+ // it did not work in cases where the id is both declared and referenced in the same file,
70
+ // because the refernce gets a separate unique ID (a different number from the counter).
71
+ //
72
+ // The current implementation is based on this github comment:
73
+ // https://github.com/svg/svgo/issues/913#issuecomment-369373572
74
+ // Generates a hash of the filepath of the svg file, resulting in a prefix which is:
75
+ // - Short,
76
+ // - With characters valid for IDs,
77
+ // - The same within a file,
78
+ // - And different in different files.
79
+ {
80
+ name: 'prefixIds',
81
+ params: {
82
+ delim: '',
83
+ prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
84
+ outputLength: 6
85
+ }).update(info.path || '').digest('hex'))
86
+ }
52
87
  }]
53
88
  }
54
89
  }, {