@commercetools-frontend/mc-scripts 24.13.0 → 25.1.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.
Files changed (76) hide show
  1. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
  2. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
  3. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
  4. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +14 -13
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +14 -13
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +14 -13
  7. package/dist/{build-f737874d.cjs.dev.js → build-0a5986d1.cjs.dev.js} +7 -7
  8. package/dist/{build-85028596.esm.js → build-dbcd0936.esm.js} +7 -7
  9. package/dist/{build-136a1b89.cjs.prod.js → build-ec10df64.cjs.prod.js} +7 -7
  10. package/dist/{build-vite-e26f6c9f.cjs.dev.js → build-vite-16b1a575.cjs.dev.js} +8 -9
  11. package/dist/{build-vite-85211835.esm.js → build-vite-59e1f185.esm.js} +8 -9
  12. package/dist/{build-vite-4a6c90c2.cjs.prod.js → build-vite-5d317720.cjs.prod.js} +8 -9
  13. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  14. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  15. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  16. package/dist/{compile-html-adfef598.esm.js → compile-html-025cd493.esm.js} +2 -4
  17. package/dist/{compile-html-b80f9651.cjs.prod.js → compile-html-50fd05ec.cjs.prod.js} +2 -5
  18. package/dist/{compile-html-8679f721.cjs.dev.js → compile-html-f4ac88cc.cjs.dev.js} +2 -5
  19. package/dist/{config-sync-c2f0d0d2.cjs.prod.js → config-sync-ce05c66c.cjs.prod.js} +70 -78
  20. package/dist/{config-sync-a6d29e7e.cjs.dev.js → config-sync-dbb43993.cjs.dev.js} +72 -80
  21. package/dist/{config-sync-ca738e38.esm.js → config-sync-e7f53a98.esm.js} +71 -79
  22. package/dist/{create-postcss-config-2a12c11b.esm.js → create-postcss-config-0a86560d.esm.js} +1 -1
  23. package/dist/{create-postcss-config-7ea95e6f.cjs.dev.js → create-postcss-config-381b636b.cjs.dev.js} +1 -1
  24. package/dist/{create-postcss-config-43a47b87.cjs.prod.js → create-postcss-config-91c09596.cjs.prod.js} +1 -1
  25. package/dist/{create-webpack-config-for-development-01784333.cjs.prod.js → create-webpack-config-for-development-37677a49.cjs.prod.js} +6 -6
  26. package/dist/{create-webpack-config-for-development-09988fe4.cjs.dev.js → create-webpack-config-for-development-488742b2.cjs.dev.js} +6 -6
  27. package/dist/{create-webpack-config-for-development-ca57ea56.esm.js → create-webpack-config-for-development-df3f7f7f.esm.js} +6 -6
  28. package/dist/{create-webpack-config-for-production-d1699ee5.cjs.dev.js → create-webpack-config-for-production-46d817cc.cjs.dev.js} +7 -7
  29. package/dist/{create-webpack-config-for-production-58d046e9.cjs.prod.js → create-webpack-config-for-production-aad64e2a.cjs.prod.js} +7 -7
  30. package/dist/{create-webpack-config-for-production-7b4166fc.esm.js → create-webpack-config-for-production-e22f78d2.esm.js} +7 -7
  31. package/dist/{credentials-storage-381abf27.cjs.prod.js → credentials-storage-0b89aa0e.cjs.prod.js} +1 -1
  32. package/dist/{credentials-storage-7285d7b4.esm.js → credentials-storage-4464313c.esm.js} +1 -1
  33. package/dist/{credentials-storage-de220814.cjs.dev.js → credentials-storage-cbb5c559.cjs.dev.js} +1 -1
  34. package/dist/{deployment-previews-set-6baa8fc7.cjs.dev.js → deployment-previews-set-4edd48db.cjs.dev.js} +22 -28
  35. package/dist/{deployment-previews-set-86ea8608.cjs.prod.js → deployment-previews-set-636fb1a3.cjs.prod.js} +22 -28
  36. package/dist/{deployment-previews-set-8b33d390.esm.js → deployment-previews-set-bbef95d2.esm.js} +22 -27
  37. package/dist/{graphql-requests-73d961d9.cjs.dev.js → graphql-requests-0a6eeb3a.cjs.prod.js} +5 -8
  38. package/dist/{graphql-requests-b6ca7894.esm.js → graphql-requests-14074b2b.esm.js} +5 -8
  39. package/dist/{graphql-requests-4ff022ec.cjs.prod.js → graphql-requests-23f7ddb1.cjs.dev.js} +5 -8
  40. package/dist/{i18n-message-complilation-8aec9d1b.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +1 -1
  41. package/dist/{i18n-message-complilation-3f80e8d6.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +1 -1
  42. package/dist/{i18n-message-complilation-393d344a.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +1 -1
  43. package/dist/{login-5c212340.esm.js → login-1b222f33.esm.js} +27 -30
  44. package/dist/{login-b4e3433c.cjs.prod.js → login-54ebae96.cjs.prod.js} +28 -31
  45. package/dist/{login-856475d9.cjs.dev.js → login-a6fd5fbf.cjs.dev.js} +28 -31
  46. package/dist/{optimizations-ea21b802.cjs.prod.js → optimizations-7789145e.cjs.dev.js} +5 -8
  47. package/dist/{optimizations-ea71a24a.esm.js → optimizations-bf991634.esm.js} +5 -7
  48. package/dist/{optimizations-ebbeaf88.cjs.dev.js → optimizations-fb93514f.cjs.prod.js} +5 -8
  49. package/dist/{package-85c56dad.esm.js → package-a34835d9.esm.js} +9 -11
  50. package/dist/{package-36c179b4.cjs.prod.js → package-d8b1f4c0.cjs.dev.js} +9 -11
  51. package/dist/{package-483f057b.cjs.dev.js → package-e1f7242c.cjs.prod.js} +9 -11
  52. package/dist/{paths-7bf7e88e.esm.js → paths-39f22b8b.esm.js} +4 -9
  53. package/dist/{paths-af1a725a.cjs.prod.js → paths-7768b440.cjs.prod.js} +4 -10
  54. package/dist/{paths-ec3e3a7d.cjs.dev.js → paths-b76fc753.cjs.dev.js} +4 -10
  55. package/dist/{serve-04a03d5f.cjs.dev.js → serve-38456e1b.cjs.dev.js} +7 -6
  56. package/dist/{serve-fb1a0f5a.esm.js → serve-be1f9439.esm.js} +6 -6
  57. package/dist/{serve-2a863026.cjs.prod.js → serve-cc4a766d.cjs.prod.js} +7 -6
  58. package/dist/{start-33cc9cbb.cjs.prod.js → start-0be8a294.cjs.prod.js} +8 -9
  59. package/dist/{start-e28d1fec.cjs.dev.js → start-37ec4a7e.cjs.dev.js} +8 -9
  60. package/dist/{start-654d09ae.esm.js → start-890895df.esm.js} +8 -9
  61. package/dist/{start-vite-eea72ba9.cjs.dev.js → start-vite-068e9f73.cjs.dev.js} +3 -4
  62. package/dist/{start-vite-d548c121.cjs.prod.js → start-vite-29078b3a.cjs.prod.js} +3 -4
  63. package/dist/{start-vite-d649d1f3.esm.js → start-vite-7d1161e8.esm.js} +3 -4
  64. package/dist/{vite-plugin-svgr-53ef97c7.cjs.dev.js → vite-plugin-svgr-4034a834.cjs.prod.js} +4 -4
  65. package/dist/{vite-plugin-svgr-5de1cad9.cjs.prod.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +4 -4
  66. package/dist/{vite-plugin-svgr-22c8d518.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +4 -4
  67. package/package.json +9 -11
  68. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  69. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  70. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  71. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +6 -6
  72. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +6 -6
  73. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +6 -6
  74. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
  75. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
  76. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
@@ -1,5 +1,4 @@
1
1
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
2
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
3
2
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
4
3
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
5
4
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -8,7 +7,7 @@ import chalk from 'chalk';
8
7
  import omit from 'lodash/omit';
9
8
  import prompts from 'prompts';
10
9
  import { sanitizeSvg, processConfig } from '@commercetools-frontend/application-config';
11
- import { C as CredentialsStorage } from './credentials-storage-7285d7b4.esm.js';
10
+ import { C as CredentialsStorage } from './credentials-storage-4464313c.esm.js';
12
11
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
13
12
  import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
14
13
  import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
@@ -18,9 +17,10 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
18
17
  import _repeatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/repeat';
19
18
  import _Set from '@babel/runtime-corejs3/core-js-stable/set';
20
19
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
20
+ import _bindInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/bind';
21
21
  import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
22
22
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
23
- import { f as fetchCustomApplication, a as fetchUserOrganizations, c as createCustomApplication, u as updateCustomApplication, b as fetchCustomView, d as createCustomView, e as updateCustomView } from './graphql-requests-b6ca7894.esm.js';
23
+ import { f as fetchCustomApplication, a as fetchUserOrganizations, c as createCustomApplication, u as updateCustomApplication, b as fetchCustomView, d as createCustomView, e as updateCustomView } from './graphql-requests-14074b2b.esm.js';
24
24
  import '@babel/runtime-corejs3/helpers/classCallCheck';
25
25
  import '@babel/runtime-corejs3/helpers/createClass';
26
26
  import '@babel/runtime-corejs3/core-js-stable/date/now';
@@ -33,20 +33,20 @@ import 'graphql';
33
33
  import 'graphql-request';
34
34
  import '@commercetools-frontend/constants';
35
35
  import '@commercetools/http-user-agent';
36
- import './package-85c56dad.esm.js';
36
+ import './package-a34835d9.esm.js';
37
37
 
38
38
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
39
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context21, _context22; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context21 = ownKeys(Object(t), !0)).call(_context21, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context22 = ownKeys(Object(t))).call(_context22, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
39
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
40
40
 
41
41
  // Since not all terminal supports colors, to make things more consistent for testing purposes,
42
42
  // during tests the color used is appended before the string instead of coloring it.
43
43
  const isTest = process.env.NODE_ENV === 'test';
44
44
  const red = str => {
45
- if (isTest) return "<color-red>".concat(str, "</color-red>");
45
+ if (isTest) return `<color-red>${str}</color-red>`;
46
46
  return chalk.red(str);
47
47
  };
48
48
  const green = str => {
49
- if (isTest) return "<color-green>".concat(str, "</color-green>");
49
+ if (isTest) return `<color-green>${str}</color-green>`;
50
50
  return chalk.green(str);
51
51
  };
52
52
 
@@ -62,21 +62,19 @@ const getStringDiff = _ref => {
62
62
  _ref$indentLevel = _ref.indentLevel,
63
63
  indentLevel = _ref$indentLevel === void 0 ? 0 : _ref$indentLevel;
64
64
  if (!previousValue && nextValue) {
65
- var _context2, _context3;
66
- return _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = "".concat(indent(indentLevel))).call(_context3, label, " added: ")).call(_context2, green(nextValue));
65
+ return `${indent(indentLevel)}${label} added: ${green(nextValue)}`;
67
66
  }
68
67
  if (previousValue && !nextValue) {
69
- var _context4, _context5;
70
- return _concatInstanceProperty(_context4 = _concatInstanceProperty(_context5 = "".concat(indent(indentLevel))).call(_context5, label, " removed: ")).call(_context4, red(previousValue));
68
+ return `${indent(indentLevel)}${label} removed: ${red(previousValue)}`;
71
69
  }
72
70
  if (previousValue && nextValue && previousValue !== nextValue) {
73
- var _context6, _context7, _context8;
74
- return _concatInstanceProperty(_context6 = _concatInstanceProperty(_context7 = _concatInstanceProperty(_context8 = "".concat(indent(indentLevel))).call(_context8, label, " changed: ")).call(_context7, red(previousValue), " => ")).call(_context6, green(nextValue));
71
+ return `${indent(indentLevel)}${label} changed: ${red(previousValue)} => ${green(nextValue)}`;
75
72
  }
76
73
  return null;
77
74
  };
78
75
  // NOTE: this assumes that the array values are scalar values (not objects).
79
76
  const getArrayDiff = _ref2 => {
77
+ var _context2, _context3;
80
78
  let previousValue = _ref2.previousValue,
81
79
  nextValue = _ref2.nextValue,
82
80
  label = _ref2.label,
@@ -84,7 +82,7 @@ const getArrayDiff = _ref2 => {
84
82
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
85
83
  const oldArraySet = new _Set(previousValue);
86
84
  const arrayDiff = [];
87
- nextValue === null || nextValue === void 0 || _forEachInstanceProperty(nextValue).call(nextValue, item => {
85
+ ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty(_context3 = Function.call).call(_context3, _forEachInstanceProperty(_context2), _context2))?.(item => {
88
86
  if (oldArraySet.has(item)) {
89
87
  oldArraySet.delete(item);
90
88
  } else {
@@ -105,7 +103,7 @@ const getArrayDiff = _ref2 => {
105
103
  return arrayDiff.join('\n');
106
104
  };
107
105
  const getPermissionsDiff = _ref3 => {
108
- var _context1;
106
+ var _context4;
109
107
  let previousValue = _ref3.previousValue,
110
108
  nextValue = _ref3.nextValue;
111
109
  const permissionDiff = ['permissions changed'];
@@ -118,12 +116,10 @@ const getPermissionsDiff = _ref3 => {
118
116
  }, {});
119
117
  const indentLevel = 1;
120
118
  _forEachInstanceProperty(nextValue).call(nextValue, newPermission => {
121
- var _context9;
122
- const currentDiff = [_concatInstanceProperty(_context9 = "".concat(indent(indentLevel), "\"")).call(_context9, newPermission.name, "\" changed")];
119
+ const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
123
120
  // if the permission name is not in the old config, it means it is a new addition.
124
121
  if (!mappedOldPermissions[newPermission.name]) {
125
- var _context0;
126
- permissionDiff.push(_concatInstanceProperty(_context0 = "".concat(indent(indentLevel), "\"")).call(_context0, green(newPermission.name), "\" was added"));
122
+ permissionDiff.push(`${indent(indentLevel)}"${green(newPermission.name)}" was added`);
127
123
  }
128
124
 
129
125
  // if permission name is in the old config, now we check if there was a change
@@ -140,22 +136,21 @@ const getPermissionsDiff = _ref3 => {
140
136
  });
141
137
 
142
138
  // if there are old permissions left, it means they were deleted in the new Permissions.
143
- _forEachInstanceProperty(_context1 = _Object$keys(mappedOldPermissions)).call(_context1, oldPermissionName => {
144
- var _context10;
145
- permissionDiff.push(_concatInstanceProperty(_context10 = "".concat(indent(indentLevel), "\"")).call(_context10, red(oldPermissionName), "\" was removed"));
139
+ _forEachInstanceProperty(_context4 = _Object$keys(mappedOldPermissions)).call(_context4, oldPermissionName => {
140
+ permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
146
141
  });
147
142
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
148
143
  return null;
149
144
  };
150
145
  const getLabelAllLocalesDiff = _ref5 => {
151
- var _context14;
146
+ var _context5;
152
147
  let _ref5$previousValue = _ref5.previousValue,
153
148
  previousValue = _ref5$previousValue === void 0 ? [] : _ref5$previousValue,
154
149
  _ref5$nextValue = _ref5.nextValue,
155
150
  nextValue = _ref5$nextValue === void 0 ? [] : _ref5$nextValue,
156
151
  _ref5$indentLevel = _ref5.indentLevel,
157
152
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
158
- const labelAllLocalesDiff = ["".concat(indent(indentLevel - 1), "labelAllLocales changed")];
153
+ const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
159
154
  const mappedOldLabelAllLocales = _reduceInstanceProperty(previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
160
155
  let locale = _ref6.locale,
161
156
  value = _ref6.value;
@@ -167,8 +162,7 @@ const getLabelAllLocalesDiff = _ref5 => {
167
162
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
168
163
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
169
164
  if (oldLocaleValue !== newLabelAllLocale.value) {
170
- var _context11, _context12, _context13;
171
- labelAllLocalesDiff.push(_concatInstanceProperty(_context11 = _concatInstanceProperty(_context12 = _concatInstanceProperty(_context13 = "".concat(indent(indentLevel), "locale \"")).call(_context13, newLabelAllLocale.locale, "\" changed: ")).call(_context12, red(oldLocaleValue), " => ")).call(_context11, green(newLabelAllLocale.value)));
165
+ labelAllLocalesDiff.push(`${indent(indentLevel)}locale "${newLabelAllLocale.locale}" changed: ${red(oldLocaleValue)} => ${green(newLabelAllLocale.value)}`);
172
166
  }
173
167
  delete mappedOldLabelAllLocales[newLabelAllLocale.locale];
174
168
  } else {
@@ -182,7 +176,7 @@ const getLabelAllLocalesDiff = _ref5 => {
182
176
  }
183
177
  }
184
178
  });
185
- _forEachInstanceProperty(_context14 = _Object$keys(mappedOldLabelAllLocales)).call(_context14, key => {
179
+ _forEachInstanceProperty(_context5 = _Object$keys(mappedOldLabelAllLocales)).call(_context5, key => {
186
180
  const localeDiff = getStringDiff({
187
181
  previousValue: key,
188
182
  label: 'locale',
@@ -196,14 +190,14 @@ const getLabelAllLocalesDiff = _ref5 => {
196
190
  return null;
197
191
  };
198
192
  const getTypeSettingsDiff = _ref7 => {
199
- var _context15;
193
+ var _context6;
200
194
  let previousValue = _ref7.previousValue,
201
195
  nextValue = _ref7.nextValue;
202
196
  const nonNullablePreviousValue = previousValue || {};
203
197
  const nonNullableNextValue = nextValue || {};
204
198
  const indentLevel = 1;
205
- const typeSettingsDiff = ["".concat(indent(indentLevel - 1), "type settings changed")];
206
- _forEachInstanceProperty(_context15 = _Object$keys(nonNullablePreviousValue)).call(_context15, key => {
199
+ const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
200
+ _forEachInstanceProperty(_context6 = _Object$keys(nonNullablePreviousValue)).call(_context6, key => {
207
201
  const typeSettingDiff = getStringDiff({
208
202
  previousValue: nonNullablePreviousValue[key],
209
203
  nextValue: nonNullableNextValue[key],
@@ -253,7 +247,7 @@ const getMainMenuLinkDiff = _ref9 => {
253
247
  indentLevel: 2
254
248
  });
255
249
  if (mainMenuLinkPermissionsDiff.length > 0) {
256
- mainMenuLinkDiff.push("".concat(indent(1), "permissions changed"));
250
+ mainMenuLinkDiff.push(`${indent(1)}permissions changed`);
257
251
  mainMenuLinkDiff.push(mainMenuLinkPermissionsDiff);
258
252
  }
259
253
  const menuLabelsDiff = getLabelAllLocalesDiff({
@@ -269,7 +263,7 @@ const getMainMenuLinkDiff = _ref9 => {
269
263
  return null;
270
264
  };
271
265
  const getSubmenuLinksDiff = _ref0 => {
272
- var _context20;
266
+ var _context8;
273
267
  let previousValue = _ref0.previousValue,
274
268
  nextValue = _ref0.nextValue;
275
269
  const submenuLinksDiff = ['submenuLink changed'];
@@ -280,17 +274,16 @@ const getSubmenuLinksDiff = _ref0 => {
280
274
  const previousOrder = getOrder(previousValue);
281
275
  const newOrder = getOrder(nextValue);
282
276
  if (previousOrder !== newOrder) {
283
- var _context16, _context17;
284
- submenuLinksDiff.push("".concat(indent(1), "submenu order changed"));
285
- submenuLinksDiff.push(_concatInstanceProperty(_context16 = "".concat(indent(2), "previous order: [")).call(_context16, previousOrder, "]"));
286
- submenuLinksDiff.push(_concatInstanceProperty(_context17 = "".concat(indent(2), "new order: [")).call(_context17, newOrder, "]"));
277
+ submenuLinksDiff.push(`${indent(1)}submenu order changed`);
278
+ submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
279
+ submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
287
280
  }
288
281
  _forEachInstanceProperty(nextValue).call(nextValue, newSubmenuLink => {
289
282
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
290
283
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
291
- var _context18, _context19;
292
- const submenuLinkDiff = [_concatInstanceProperty(_context18 = "".concat(indent(1), "menu link \"")).call(_context18, newSubmenuLink.uriPath, "\" changed")];
293
- _forEachInstanceProperty(_context19 = _Object$keys(mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context19, key => {
284
+ var _context7;
285
+ const submenuLinkDiff = [`${indent(1)}menu link "${newSubmenuLink.uriPath}" changed`];
286
+ _forEachInstanceProperty(_context7 = _Object$keys(mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
294
287
  switch (key) {
295
288
  case 'defaultLabel':
296
289
  {
@@ -314,7 +307,7 @@ const getSubmenuLinksDiff = _ref0 => {
314
307
  indentLevel: 3
315
308
  });
316
309
  if (submenuLinkPermissionsDiff.length > 0) {
317
- submenuLinkDiff.push("".concat(indent(2), "permissions changed"));
310
+ submenuLinkDiff.push(`${indent(2)}permissions changed`);
318
311
  submenuLinkDiff.push(submenuLinkPermissionsDiff);
319
312
  }
320
313
  break;
@@ -349,7 +342,7 @@ const getSubmenuLinksDiff = _ref0 => {
349
342
  }
350
343
  }
351
344
  });
352
- _forEachInstanceProperty(_context20 = _Object$keys(mappedSubmenuLinks)).call(_context20, key => {
345
+ _forEachInstanceProperty(_context8 = _Object$keys(mappedSubmenuLinks)).call(_context8, key => {
353
346
  const linksDiff = getStringDiff({
354
347
  previousValue: key,
355
348
  label: 'menu link',
@@ -524,18 +517,17 @@ const getCustomViewConfigDiff = (oldConfig, newConfig) => {
524
517
 
525
518
  const credentialsStorage = new CredentialsStorage();
526
519
  const getMcUrlLink = _ref => {
527
- var _context, _context2, _context3;
528
520
  let mcApiUrl = _ref.mcApiUrl,
529
521
  organizationId = _ref.organizationId,
530
522
  customEntityId = _ref.customEntityId,
531
523
  isCustomView = _ref.isCustomView;
532
524
  const mcUrl = mcApiUrl.replace('mc-api', 'mc');
533
- const customEntityLink = _concatInstanceProperty(_context = _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = "".concat(mcUrl, "/account/organizations/")).call(_context3, organizationId, "/custom-")).call(_context2, isCustomView ? 'views' : 'applications', "/owned/")).call(_context, customEntityId);
525
+ const customEntityLink = `${mcUrl}/account/organizations/${organizationId}/custom-${isCustomView ? 'views' : 'applications'}/owned/${customEntityId}`;
534
526
  return customEntityLink;
535
527
  };
536
528
  const isCustomViewData = data => data.entryPointUriPath === undefined;
537
529
  async function createOrUpdateCustomApplication(_ref2) {
538
- var _context6;
530
+ var _context3;
539
531
  let mcApiUrl = _ref2.mcApiUrl,
540
532
  localCustomEntityData = _ref2.localCustomEntityData,
541
533
  applicationIdentifier = _ref2.applicationIdentifier,
@@ -546,14 +538,14 @@ async function createOrUpdateCustomApplication(_ref2) {
546
538
  applicationIdentifier
547
539
  });
548
540
  if (!fetchedCustomApplication) {
549
- var _context5;
541
+ var _context2;
550
542
  const userOrganizations = await fetchUserOrganizations({
551
543
  mcApiUrl,
552
544
  applicationIdentifier
553
545
  });
554
546
  let organizationId, organizationName;
555
547
  if (userOrganizations.total === 0) {
556
- throw new Error("It seems you are not an admin of any Organization. Please make sure to be part of the Administrators team of the Organization you want the Custom Application to be configured to.");
548
+ throw new Error(`It seems you are not an admin of any Organization. Please make sure to be part of the Administrators team of the Organization you want the Custom Application to be configured to.`);
557
549
  }
558
550
  if (userOrganizations.total === 1) {
559
551
  const _userOrganizations$re = _slicedToArray(userOrganizations.results, 1),
@@ -561,8 +553,8 @@ async function createOrUpdateCustomApplication(_ref2) {
561
553
  organizationId = organization.id;
562
554
  organizationName = organization.name;
563
555
  } else {
564
- var _context4;
565
- const organizationChoices = _mapInstanceProperty(_context4 = userOrganizations.results).call(_context4, organization => ({
556
+ var _context;
557
+ const organizationChoices = _mapInstanceProperty(_context = userOrganizations.results).call(_context, organization => ({
566
558
  title: organization.name,
567
559
  value: organization.id
568
560
  }));
@@ -575,7 +567,7 @@ async function createOrUpdateCustomApplication(_ref2) {
575
567
  }),
576
568
  selectedOrganizationId = _await$prompts.organizationId;
577
569
  if (!selectedOrganizationId) {
578
- throw new Error("No Organization selected, aborting.");
570
+ throw new Error(`No Organization selected, aborting.`);
579
571
  }
580
572
  organizationId = selectedOrganizationId;
581
573
  organizationName = _findInstanceProperty(organizationChoices).call(organizationChoices, _ref3 => {
@@ -586,7 +578,7 @@ async function createOrUpdateCustomApplication(_ref2) {
586
578
  const _await$prompts2 = await prompts({
587
579
  type: 'text',
588
580
  name: 'confirmation',
589
- message: _filterInstanceProperty(_context5 = ["You are about to create a new Custom Application in the \"".concat(chalk.green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
581
+ message: _filterInstanceProperty(_context2 = [`You are about to create a new Custom Application in the "${chalk.green(organizationName)}" organization. Are you sure you want to proceed?`, options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context2, Boolean).join('\n'),
590
582
  initial: 'yes'
591
583
  }),
592
584
  confirmation = _await$prompts2.confirmation;
@@ -597,7 +589,7 @@ async function createOrUpdateCustomApplication(_ref2) {
597
589
  const data = omit(localCustomEntityData, ['id']);
598
590
  if (options.dryRun) {
599
591
  console.log();
600
- console.log("The following payload would be used to create a new Custom Application.");
592
+ console.log(`The following payload would be used to create a new Custom Application.`);
601
593
  console.log();
602
594
  console.log(chalk.gray(_JSON$stringify(data, null, 2)));
603
595
  return;
@@ -621,8 +613,8 @@ async function createOrUpdateCustomApplication(_ref2) {
621
613
  organizationId,
622
614
  customEntityId: createdCustomApplication.id
623
615
  });
624
- console.log(chalk.green("Custom Application created.\nPlease update the \"env.production.applicationId\" field in your local Custom Application config file with the following value: \"".concat(chalk.green(createdCustomApplication.id), "\".")));
625
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk.gray(customAppLink), "\"."));
616
+ console.log(chalk.green(`Custom Application created.\nPlease update the "env.production.applicationId" field in your local Custom Application config file with the following value: "${chalk.green(createdCustomApplication.id)}".`));
617
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk.gray(customAppLink)}".`);
626
618
  return;
627
619
  }
628
620
  const customAppLink = getMcUrlLink({
@@ -632,8 +624,8 @@ async function createOrUpdateCustomApplication(_ref2) {
632
624
  });
633
625
  const configDiff = getCustomApplicationConfigDiff(fetchedCustomApplication.application, localCustomEntityData);
634
626
  if (!configDiff) {
635
- console.log(chalk.green("Custom Application up-to-date."));
636
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk.gray(customAppLink), "\"."));
627
+ console.log(chalk.green(`Custom Application up-to-date.`));
628
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk.gray(customAppLink)}".`);
637
629
  return;
638
630
  }
639
631
  console.log('Changes detected:');
@@ -642,7 +634,7 @@ async function createOrUpdateCustomApplication(_ref2) {
642
634
  const _await$prompts3 = await prompts({
643
635
  type: 'text',
644
636
  name: 'confirmation',
645
- message: _filterInstanceProperty(_context6 = ["You are about to update the Custom Application \"".concat(chalk.green(localCustomEntityData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
637
+ message: _filterInstanceProperty(_context3 = [`You are about to update the Custom Application "${chalk.green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`, options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context3, Boolean).join('\n'),
646
638
  initial: 'yes'
647
639
  }),
648
640
  confirmation = _await$prompts3.confirmation;
@@ -653,7 +645,7 @@ async function createOrUpdateCustomApplication(_ref2) {
653
645
  const data = omit(localCustomEntityData, ['id']);
654
646
  if (options.dryRun) {
655
647
  console.log();
656
- console.log("The following payload would be used to update the Custom Application \"".concat(chalk.green(data.entryPointUriPath), "\"."));
648
+ console.log(`The following payload would be used to update the Custom Application "${chalk.green(data.entryPointUriPath)}".`);
657
649
  console.log();
658
650
  console.log(chalk.gray(_JSON$stringify(data, null, 2)));
659
651
  return;
@@ -665,11 +657,11 @@ async function createOrUpdateCustomApplication(_ref2) {
665
657
  applicationId: fetchedCustomApplication.application.id,
666
658
  applicationIdentifier
667
659
  });
668
- console.log(chalk.green("Custom Application updated."));
669
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk.gray(customAppLink), "\"."));
660
+ console.log(chalk.green(`Custom Application updated.`));
661
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk.gray(customAppLink)}".`);
670
662
  }
671
663
  async function createOrUpdateCustomView(_ref4) {
672
- var _fetchedCustomView$cu, _context9, _fetchedCustomView$cu2;
664
+ var _context6;
673
665
  let mcApiUrl = _ref4.mcApiUrl,
674
666
  localCustomEntityData = _ref4.localCustomEntityData,
675
667
  customViewId = _ref4.customViewId,
@@ -681,7 +673,7 @@ async function createOrUpdateCustomView(_ref4) {
681
673
  applicationIdentifier
682
674
  });
683
675
  if (!fetchedCustomView) {
684
- var _context8;
676
+ var _context5;
685
677
  const userOrganizations = await fetchUserOrganizations({
686
678
  mcApiUrl,
687
679
  customViewId,
@@ -689,7 +681,7 @@ async function createOrUpdateCustomView(_ref4) {
689
681
  });
690
682
  let organizationId, organizationName;
691
683
  if (userOrganizations.total === 0) {
692
- throw new Error("It seems you are not an admin of any Organization. Please make sure to be part of the Administrators team of the Organization you want the Custom View to be configured to.");
684
+ throw new Error(`It seems you are not an admin of any Organization. Please make sure to be part of the Administrators team of the Organization you want the Custom View to be configured to.`);
693
685
  }
694
686
  if (userOrganizations.total === 1) {
695
687
  const _userOrganizations$re2 = _slicedToArray(userOrganizations.results, 1),
@@ -697,8 +689,8 @@ async function createOrUpdateCustomView(_ref4) {
697
689
  organizationId = organization.id;
698
690
  organizationName = organization.name;
699
691
  } else {
700
- var _context7;
701
- const organizationChoices = _mapInstanceProperty(_context7 = userOrganizations.results).call(_context7, organization => ({
692
+ var _context4;
693
+ const organizationChoices = _mapInstanceProperty(_context4 = userOrganizations.results).call(_context4, organization => ({
702
694
  title: organization.name,
703
695
  value: organization.id
704
696
  }));
@@ -711,7 +703,7 @@ async function createOrUpdateCustomView(_ref4) {
711
703
  }),
712
704
  selectedOrganizationId = _await$prompts4.organizationId;
713
705
  if (!selectedOrganizationId) {
714
- throw new Error("No Organization selected, aborting.");
706
+ throw new Error(`No Organization selected, aborting.`);
715
707
  }
716
708
  organizationId = selectedOrganizationId;
717
709
  organizationName = _findInstanceProperty(organizationChoices).call(organizationChoices, _ref5 => {
@@ -722,7 +714,7 @@ async function createOrUpdateCustomView(_ref4) {
722
714
  const _await$prompts5 = await prompts({
723
715
  type: 'text',
724
716
  name: 'confirmation',
725
- message: _filterInstanceProperty(_context8 = ["You are about to create a new Custom View in the \"".concat(chalk.green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context8, Boolean).join('\n'),
717
+ message: _filterInstanceProperty(_context5 = [`You are about to create a new Custom View in the "${chalk.green(organizationName)}" organization. Are you sure you want to proceed?`, options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
726
718
  initial: 'yes'
727
719
  }),
728
720
  confirmation = _await$prompts5.confirmation;
@@ -733,7 +725,7 @@ async function createOrUpdateCustomView(_ref4) {
733
725
  const data = omit(localCustomEntityData, ['id']);
734
726
  if (options.dryRun) {
735
727
  console.log();
736
- console.log("The following payload would be used to create a new Custom View.");
728
+ console.log(`The following payload would be used to create a new Custom View.`);
737
729
  console.log();
738
730
  console.log(chalk.gray(_JSON$stringify(data, null, 2)));
739
731
  return;
@@ -758,20 +750,20 @@ async function createOrUpdateCustomView(_ref4) {
758
750
  customEntityId: createdCustomView.id,
759
751
  isCustomView: true
760
752
  });
761
- console.log(chalk.green("Custom View created.\nPlease update the \"env.production.customViewId\" field in your local Custom View config file with the following value: \"".concat(chalk.green(createdCustomView.id), "\".")));
762
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk.gray(customViewLink), "\"."));
753
+ console.log(chalk.green(`Custom View created.\nPlease update the "env.production.customViewId" field in your local Custom View config file with the following value: "${chalk.green(createdCustomView.id)}".`));
754
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk.gray(customViewLink)}".`);
763
755
  return;
764
756
  }
765
757
  const customViewLink = getMcUrlLink({
766
758
  mcApiUrl,
767
759
  organizationId: fetchedCustomView.organizationId,
768
- customEntityId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu = fetchedCustomView.customView) === null || _fetchedCustomView$cu === void 0 ? void 0 : _fetchedCustomView$cu.id) || '',
760
+ customEntityId: fetchedCustomView?.customView?.id || '',
769
761
  isCustomView: true
770
762
  });
771
763
  const configDiff = getCustomViewConfigDiff(fetchedCustomView.customView, localCustomEntityData);
772
764
  if (!configDiff) {
773
- console.log(chalk.green("Custom View up-to-date."));
774
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk.gray(customViewLink), "\"."));
765
+ console.log(chalk.green(`Custom View up-to-date.`));
766
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk.gray(customViewLink)}".`);
775
767
  return;
776
768
  }
777
769
  console.log('Changes detected:');
@@ -780,7 +772,7 @@ async function createOrUpdateCustomView(_ref4) {
780
772
  const _await$prompts6 = await prompts({
781
773
  type: 'text',
782
774
  name: 'confirmation',
783
- message: _filterInstanceProperty(_context9 = ["You are about to update the Custom View \"".concat(chalk.green(localCustomEntityData.defaultLabel), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context9, Boolean).join('\n'),
775
+ message: _filterInstanceProperty(_context6 = [`You are about to update the Custom View "${chalk.green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`, options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
784
776
  initial: 'yes'
785
777
  }),
786
778
  confirmation = _await$prompts6.confirmation;
@@ -791,7 +783,7 @@ async function createOrUpdateCustomView(_ref4) {
791
783
  const data = omit(localCustomEntityData, ['id']);
792
784
  if (options.dryRun) {
793
785
  console.log();
794
- console.log("The following payload would be used to update the Custom View \"".concat(chalk.green(data.defaultLabel), "\"."));
786
+ console.log(`The following payload would be used to update the Custom View "${chalk.green(data.defaultLabel)}".`);
795
787
  console.log();
796
788
  console.log(chalk.gray(_JSON$stringify(data, null, 2)));
797
789
  return;
@@ -800,11 +792,11 @@ async function createOrUpdateCustomView(_ref4) {
800
792
  mcApiUrl,
801
793
  organizationId: fetchedCustomView.organizationId,
802
794
  data: omit(localCustomEntityData, ['id']),
803
- customViewId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu2 = fetchedCustomView.customView) === null || _fetchedCustomView$cu2 === void 0 ? void 0 : _fetchedCustomView$cu2.id) || '',
795
+ customViewId: fetchedCustomView?.customView?.id || '',
804
796
  applicationIdentifier
805
797
  });
806
- console.log(chalk.green("Custom View updated."));
807
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk.gray(customViewLink), "\"."));
798
+ console.log(chalk.green(`Custom View updated.`));
799
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk.gray(customViewLink)}".`);
808
800
  }
809
801
  async function run(options) {
810
802
  const applicationConfig = await processConfig();
@@ -813,11 +805,11 @@ async function run(options) {
813
805
  mcApiUrl = _applicationConfig$en.mcApiUrl,
814
806
  applicationIdentifier = _applicationConfig$en.applicationIdentifier,
815
807
  customViewId = _applicationConfig$en.customViewId;
816
- console.log("Using Merchant Center environment \"".concat(chalk.green(mcApiUrl), "\"."));
808
+ console.log(`Using Merchant Center environment "${chalk.green(mcApiUrl)}".`);
817
809
  console.log();
818
810
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
819
811
  if (!isSessionValid) {
820
- throw new Error("You don't have a valid session. Please, run the \"mc-scripts login\" command to authenticate yourself.");
812
+ throw new Error(`You don't have a valid session. Please, run the "mc-scripts login" command to authenticate yourself.`);
821
813
  }
822
814
  if (isCustomViewData(localCustomEntityData)) {
823
815
  createOrUpdateCustomView({
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
2
2
  import path from 'path';
3
- import { p as pkgJson } from './package-85c56dad.esm.js';
3
+ import { p as pkgJson } from './package-a34835d9.esm.js';
4
4
 
5
5
  // This function aims to return the same result as `require.resolve`.
6
6
  // However, resolving a path to a `.css` file does not return the real
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  var path = require('path');
5
- var _package = require('./package-483f057b.cjs.dev.js');
5
+ var _package = require('./package-d8b1f4c0.cjs.dev.js');
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  var path = require('path');
5
- var _package = require('./package-36c179b4.cjs.prod.js');
5
+ var _package = require('./package-e1f7242c.cjs.prod.js');
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
8
 
@@ -25,10 +25,10 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
25
25
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
26
26
  var applicationConfig = require('@commercetools-frontend/application-config');
27
27
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
28
- var createPostcssConfig = require('./create-postcss-config-43a47b87.cjs.prod.js');
28
+ var createPostcssConfig = require('./create-postcss-config-91c09596.cjs.prod.js');
29
29
  var hasJsxRuntime = require('./has-jsx-runtime-c3202df5.cjs.prod.js');
30
- var optimizations = require('./optimizations-ea21b802.cjs.prod.js');
31
- var paths = require('./paths-af1a725a.cjs.prod.js');
30
+ var optimizations = require('./optimizations-fb93514f.cjs.prod.js');
31
+ var paths = require('./paths-7768b440.cjs.prod.js');
32
32
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
33
33
 
34
34
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -152,7 +152,7 @@ function createWebpackConfigForDevelopment() {
152
152
  // https://github.com/facebook/create-react-app/issues/290
153
153
  // `web` extension prefixes have been added for better support
154
154
  // for React Native Web.
155
- extensions: _mapInstanceProperty__default["default"](_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => ".".concat(ext)),
155
+ extensions: _mapInstanceProperty__default["default"](_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => `.${ext}`),
156
156
  // NOTE: this is meant to be a temporary list of fallback/polyfills for certain
157
157
  // nodejs modules. With Webpack <5 these polyfills were included by default in Webpack,
158
158
  // however now it's not the case anymore.
@@ -306,9 +306,9 @@ function createWebpackConfigForDevelopment() {
306
306
  name: 'prefixIds',
307
307
  params: {
308
308
  delim: '',
309
- prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
309
+ prefix: (_, info) => `svg${crypto__default["default"].createHash('shake256', {
310
310
  outputLength: 6
311
- }).update(info.path || '').digest('hex'))
311
+ }).update(info.path || '').digest('hex')}`
312
312
  }
313
313
  }]
314
314
  }
@@ -25,10 +25,10 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
25
25
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
26
26
  var applicationConfig = require('@commercetools-frontend/application-config');
27
27
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
28
- var createPostcssConfig = require('./create-postcss-config-7ea95e6f.cjs.dev.js');
28
+ var createPostcssConfig = require('./create-postcss-config-381b636b.cjs.dev.js');
29
29
  var hasJsxRuntime = require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
30
- var optimizations = require('./optimizations-ebbeaf88.cjs.dev.js');
31
- var paths = require('./paths-ec3e3a7d.cjs.dev.js');
30
+ var optimizations = require('./optimizations-7789145e.cjs.dev.js');
31
+ var paths = require('./paths-b76fc753.cjs.dev.js');
32
32
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
33
33
 
34
34
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -152,7 +152,7 @@ function createWebpackConfigForDevelopment() {
152
152
  // https://github.com/facebook/create-react-app/issues/290
153
153
  // `web` extension prefixes have been added for better support
154
154
  // for React Native Web.
155
- extensions: _mapInstanceProperty__default["default"](_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => ".".concat(ext)),
155
+ extensions: _mapInstanceProperty__default["default"](_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => `.${ext}`),
156
156
  // NOTE: this is meant to be a temporary list of fallback/polyfills for certain
157
157
  // nodejs modules. With Webpack <5 these polyfills were included by default in Webpack,
158
158
  // however now it's not the case anymore.
@@ -306,9 +306,9 @@ function createWebpackConfigForDevelopment() {
306
306
  name: 'prefixIds',
307
307
  params: {
308
308
  delim: '',
309
- prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
309
+ prefix: (_, info) => `svg${crypto__default["default"].createHash('shake256', {
310
310
  outputLength: 6
311
- }).update(info.path || '').digest('hex'))
311
+ }).update(info.path || '').digest('hex')}`
312
312
  }
313
313
  }]
314
314
  }
@@ -23,10 +23,10 @@ import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
23
23
  import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
24
24
  import { processConfig } from '@commercetools-frontend/application-config';
25
25
  import { replaceHtmlPlaceholders } from '@commercetools-frontend/mc-html-template';
26
- import { c as createPostcssConfig } from './create-postcss-config-2a12c11b.esm.js';
26
+ import { c as createPostcssConfig } from './create-postcss-config-0a86560d.esm.js';
27
27
  import { h as hasJsxRuntime } from './has-jsx-runtime-e3ecb09b.esm.js';
28
- import { g as getWepbackCacheGroups } from './optimizations-ea71a24a.esm.js';
29
- import { p as paths } from './paths-7bf7e88e.esm.js';
28
+ import { g as getWepbackCacheGroups } from './optimizations-bf991634.esm.js';
29
+ import { p as paths } from './paths-39f22b8b.esm.js';
30
30
  import { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
31
31
 
32
32
  let LocalHtmlWebpackPlugin = /*#__PURE__*/function () {
@@ -127,7 +127,7 @@ function createWebpackConfigForDevelopment() {
127
127
  // https://github.com/facebook/create-react-app/issues/290
128
128
  // `web` extension prefixes have been added for better support
129
129
  // for React Native Web.
130
- extensions: _mapInstanceProperty(_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => ".".concat(ext)),
130
+ extensions: _mapInstanceProperty(_context = ['js', 'mjs', 'cjs', 'ts', 'tsx', 'json', 'jsx']).call(_context, ext => `.${ext}`),
131
131
  // NOTE: this is meant to be a temporary list of fallback/polyfills for certain
132
132
  // nodejs modules. With Webpack <5 these polyfills were included by default in Webpack,
133
133
  // however now it's not the case anymore.
@@ -281,9 +281,9 @@ function createWebpackConfigForDevelopment() {
281
281
  name: 'prefixIds',
282
282
  params: {
283
283
  delim: '',
284
- prefix: (_, info) => "svg".concat(crypto.createHash('shake256', {
284
+ prefix: (_, info) => `svg${crypto.createHash('shake256', {
285
285
  outputLength: 6
286
- }).update(info.path || '').digest('hex'))
286
+ }).update(info.path || '').digest('hex')}`
287
287
  }
288
288
  }]
289
289
  }