@commercetools-frontend/mc-scripts 27.5.1 → 27.5.3

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 (88) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +19 -39
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +19 -39
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +11 -11
  4. package/dist/{build-7c7442bd.cjs.prod.js → build-BP3m-wjz.cjs.prod.js} +23 -23
  5. package/dist/{build-2cbde331.cjs.dev.js → build-Dq8dqtsd.cjs.dev.js} +23 -23
  6. package/dist/{build-4ab9306b.esm.js → build-GEMI3W9m.esm.js} +7 -7
  7. package/dist/{build-vite-1526e4f8.esm.js → build-vite-CO8mi4hd.esm.js} +20 -10
  8. package/dist/{build-vite-71889a4a.cjs.prod.js → build-vite-D67xSRU1.cjs.prod.js} +46 -36
  9. package/dist/{build-vite-2fb9320e.cjs.dev.js → build-vite-Dxi3rfHf.cjs.dev.js} +46 -36
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +2 -4
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +2 -4
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +2 -2
  13. package/dist/{compile-html-025cd493.esm.js → compile-html-BVvy3IQD.esm.js} +2 -2
  14. package/dist/{compile-html-f4ac88cc.cjs.dev.js → compile-html-DZlUpFXg.cjs.prod.js} +8 -8
  15. package/dist/{compile-html-50fd05ec.cjs.prod.js → compile-html-Ds1YojsY.cjs.dev.js} +8 -8
  16. package/dist/{config-sync-d5c4aa9b.esm.js → config-sync-Bu7U5gn5.esm.js} +5 -5
  17. package/dist/{config-sync-7ae74804.cjs.dev.js → config-sync-Cd0sSSrd.cjs.dev.js} +22 -22
  18. package/dist/{config-sync-d3d5d721.cjs.prod.js → config-sync-D6xLjo9S.cjs.prod.js} +22 -22
  19. package/dist/{config-sync-ci-d3104a62.cjs.prod.js → config-sync-ci-CXgQcemF.cjs.prod.js} +21 -21
  20. package/dist/{config-sync-ci-9c50ed6f.esm.js → config-sync-ci-Dq7bAqeu.esm.js} +5 -5
  21. package/dist/{config-sync-ci-732e0c5d.cjs.dev.js → config-sync-ci-SDsF-Onw.cjs.dev.js} +21 -21
  22. package/dist/{config-sync-helpers-ea628bce.cjs.prod.js → config-sync-helpers-9kvPwuoy.cjs.prod.js} +47 -47
  23. package/dist/{config-sync-helpers-bea5f027.esm.js → config-sync-helpers-BLXJp1-D.esm.js} +3 -3
  24. package/dist/{config-sync-helpers-178da465.cjs.dev.js → config-sync-helpers-DUK45F_R.cjs.dev.js} +47 -47
  25. package/dist/{create-postcss-config-f6a5f68b.esm.js → create-postcss-config-CN9_8Usa.esm.js} +1 -1
  26. package/dist/{create-postcss-config-3f3bda09.cjs.prod.js → create-postcss-config-DAShdAyB.cjs.prod.js} +3 -3
  27. package/dist/{create-postcss-config-e4c767b4.cjs.dev.js → create-postcss-config-NN2FAhvH.cjs.dev.js} +3 -3
  28. package/dist/{create-webpack-config-for-development-c6e48557.esm.js → create-webpack-config-for-development-5HpRHV9G.esm.js} +5 -5
  29. package/dist/{create-webpack-config-for-development-4a2616e9.cjs.prod.js → create-webpack-config-for-development-CxGehl7I.cjs.prod.js} +25 -25
  30. package/dist/{create-webpack-config-for-development-a2df037a.cjs.dev.js → create-webpack-config-for-development-hxSNyq2_.cjs.dev.js} +25 -25
  31. package/dist/{create-webpack-config-for-production-04a7a9f8.esm.js → create-webpack-config-for-production-BY0UNoNz.esm.js} +5 -5
  32. package/dist/{create-webpack-config-for-production-443f6fe7.cjs.prod.js → create-webpack-config-for-production-CW0DlZBz.cjs.prod.js} +32 -32
  33. package/dist/{create-webpack-config-for-production-12e257fc.cjs.dev.js → create-webpack-config-for-production-Edp9dzmw.cjs.dev.js} +32 -32
  34. package/dist/{credentials-storage-fd195144.cjs.dev.js → credentials-storage-B0tDCH7i.cjs.dev.js} +10 -10
  35. package/dist/{credentials-storage-67deadc3.esm.js → credentials-storage-B79bb0Ns.esm.js} +1 -1
  36. package/dist/{credentials-storage-ea1c16dc.cjs.prod.js → credentials-storage-C3TlK0a8.cjs.prod.js} +10 -10
  37. package/dist/{deployment-previews-set-491442d7.cjs.dev.js → deployment-previews-set-BuHX8wKo.cjs.dev.js} +22 -22
  38. package/dist/{deployment-previews-set-4b020cb4.esm.js → deployment-previews-set-C2OPIfy-.esm.js} +4 -4
  39. package/dist/{deployment-previews-set-2b334c11.cjs.prod.js → deployment-previews-set-nvkAPwYw.cjs.prod.js} +22 -22
  40. package/dist/{does-file-exist-be53305d.cjs.prod.js → does-file-exist-DrcZIPe6.cjs.dev.js} +2 -2
  41. package/dist/{does-file-exist-eb86baca.cjs.dev.js → does-file-exist-DrcZIPe6.cjs.prod.js} +2 -2
  42. package/dist/{graphql-requests-bd7a3fe9.cjs.dev.js → graphql-requests-BeUd4g3v.cjs.dev.js} +9 -9
  43. package/dist/{graphql-requests-6ead2029.cjs.prod.js → graphql-requests-D0rtMo7K.cjs.prod.js} +9 -9
  44. package/dist/{graphql-requests-87338c52.esm.js → graphql-requests-DCLX_2y0.esm.js} +4 -4
  45. package/dist/{i18n-message-complilation-7311cb29.cjs.dev.js → i18n-message-complilation-CdVhuyWk.cjs.dev.js} +3 -3
  46. package/dist/{i18n-message-complilation-7762da61.cjs.prod.js → i18n-message-complilation-CdVhuyWk.cjs.prod.js} +3 -3
  47. package/dist/{login-2d10deff.cjs.dev.js → login-BagHOLO1.cjs.prod.js} +42 -60
  48. package/dist/{login-26cfe1af.cjs.prod.js → login-DKzmRa46.cjs.dev.js} +42 -60
  49. package/dist/{login-ab249036.esm.js → login-DZVfG3Jq.esm.js} +3 -3
  50. package/dist/{optimizations-da5a0cfa.cjs.prod.js → optimizations-CEaq4axa.cjs.dev.js} +8 -8
  51. package/dist/{optimizations-56be74d6.cjs.dev.js → optimizations-CEaq4axa.cjs.prod.js} +8 -8
  52. package/dist/{optimizations-54382f7b.esm.js → optimizations-Cjrg77Gu.esm.js} +1 -1
  53. package/dist/package-B1Y3_DDl.cjs.dev.js +17 -0
  54. package/dist/package-BiK3ergJ.esm.js +15 -0
  55. package/dist/package-DxhqRLHb.cjs.prod.js +12 -0
  56. package/dist/{paths-b76fc753.cjs.dev.js → paths-B0WM5jb9.cjs.dev.js} +5 -5
  57. package/dist/{paths-39f22b8b.esm.js → paths-Cg5Vq6RE.esm.js} +1 -1
  58. package/dist/{paths-7768b440.cjs.prod.js → paths-DtvtCG0U.cjs.prod.js} +5 -5
  59. package/dist/{serve-b1c12985.cjs.dev.js → serve-BwNRk6vi.cjs.prod.js} +13 -13
  60. package/dist/{serve-3837602d.cjs.prod.js → serve-BxRJOSeR.cjs.dev.js} +13 -13
  61. package/dist/{serve-22475fec.esm.js → serve-fXDv4-Pm.esm.js} +2 -2
  62. package/dist/{start-19facf6d.cjs.prod.js → start-CQgQhNhU.cjs.prod.js} +17 -17
  63. package/dist/{start-9b1252f9.cjs.dev.js → start-OjGog63p.cjs.dev.js} +17 -17
  64. package/dist/{start-3c1e5902.esm.js → start-suUcoYml.esm.js} +7 -7
  65. package/dist/{start-vite-7d1161e8.esm.js → start-vite-BOrX5xsW.esm.js} +3 -3
  66. package/dist/{start-vite-29078b3a.cjs.prod.js → start-vite-Bf9UIg63.cjs.prod.js} +14 -14
  67. package/dist/{start-vite-068e9f73.cjs.dev.js → start-vite-CeaoWKrT.cjs.dev.js} +14 -14
  68. package/dist/{vite-plugin-svgr-4034a834.cjs.prod.js → vite-plugin-svgr-CRRIY_Py.cjs.dev.js} +6 -24
  69. package/dist/{vite-plugin-svgr-7d06f400.cjs.dev.js → vite-plugin-svgr-CRRIY_Py.cjs.prod.js} +6 -24
  70. package/package.json +8 -8
  71. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -4
  72. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -4
  73. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  74. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +8 -10
  75. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +8 -10
  76. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +8 -8
  77. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +2 -2
  78. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +2 -2
  79. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
  80. package/dist/package-62998a4b.cjs.prod.js +0 -167
  81. package/dist/package-a686a0ee.esm.js +0 -165
  82. package/dist/package-fe1840f3.cjs.dev.js +0 -167
  83. /package/dist/{does-file-exist-32618334.esm.js → does-file-exist-C7l6j7NP.esm.js} +0 -0
  84. /package/dist/{i18n-message-complilation-21d3b0aa.esm.js → i18n-message-complilation-BRZ7ffQI.esm.js} +0 -0
  85. /package/dist/{vendors-to-transpile-04a49d40.cjs.prod.js → vendors-to-transpile-DLHlk7c-.cjs.dev.js} +0 -0
  86. /package/dist/{vendors-to-transpile-6ab4ea06.cjs.dev.js → vendors-to-transpile-DLHlk7c-.cjs.prod.js} +0 -0
  87. /package/dist/{vendors-to-transpile-7dc84a72.esm.js → vendors-to-transpile-uu9TNPDO.esm.js} +0 -0
  88. /package/dist/{vite-plugin-svgr-de6ee7da.esm.js → vite-plugin-svgr-B1JerYlQ.esm.js} +0 -0
@@ -18,9 +18,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
18
18
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
19
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
20
20
  var applicationConfig = require('@commercetools-frontend/application-config');
21
- var graphqlRequests = require('./graphql-requests-6ead2029.cjs.prod.js');
21
+ var graphqlRequests = require('./graphql-requests-D0rtMo7K.cjs.prod.js');
22
22
 
23
- function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
23
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
24
24
 
25
25
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
26
26
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -39,19 +39,19 @@ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInsta
39
39
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
40
40
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
41
41
 
42
- function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
43
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
42
+ function ownKeys(e, r) { var t = _Object$keys__default.default(e); if (_Object$getOwnPropertySymbols__default.default) { var o = _Object$getOwnPropertySymbols__default.default(e); r && (o = _filterInstanceProperty__default.default(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default.default(e, r).enumerable; })), t.push.apply(t, o); } return t; }
43
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default.default(_context9 = ownKeys(Object(t), true)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default.default ? _Object$defineProperties__default.default(e, _Object$getOwnPropertyDescriptors__default.default(t)) : _forEachInstanceProperty__default.default(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default.default(e, r, _Object$getOwnPropertyDescriptor__default.default(t, r)); }); } return e; }
44
44
  const red = str => {
45
- return chalk__default["default"].red(str);
45
+ return chalk__default.default.red(str);
46
46
  };
47
47
  const green = str => {
48
- return chalk__default["default"].green(str);
48
+ return chalk__default.default.green(str);
49
49
  };
50
50
 
51
51
  // Two spaces are used for indentation.
52
52
  const indent = indentLevel => {
53
53
  var _context;
54
- return _repeatInstanceProperty__default["default"](_context = ' ').call(_context, indentLevel);
54
+ return _repeatInstanceProperty__default.default(_context = ' ').call(_context, indentLevel);
55
55
  };
56
56
  const getStringDiff = _ref => {
57
57
  let previousValue = _ref.previousValue,
@@ -78,9 +78,9 @@ const getArrayDiff = _ref2 => {
78
78
  label = _ref2.label,
79
79
  _ref2$indentLevel = _ref2.indentLevel,
80
80
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
81
- const oldArraySet = new _Set__default["default"](previousValue);
81
+ const oldArraySet = new _Set__default.default(previousValue);
82
82
  const arrayDiff = [];
83
- ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _forEachInstanceProperty__default["default"](_context2), _context2))?.(item => {
83
+ ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default.default(_context3 = Function.call).call(_context3, _forEachInstanceProperty__default.default(_context2), _context2))?.(item => {
84
84
  if (oldArraySet.has(item)) {
85
85
  oldArraySet.delete(item);
86
86
  } else {
@@ -91,7 +91,7 @@ const getArrayDiff = _ref2 => {
91
91
  }));
92
92
  }
93
93
  });
94
- _forEachInstanceProperty__default["default"](oldArraySet).call(oldArraySet, item => {
94
+ _forEachInstanceProperty__default.default(oldArraySet).call(oldArraySet, item => {
95
95
  arrayDiff.push(getStringDiff({
96
96
  previousValue: item,
97
97
  label,
@@ -105,7 +105,7 @@ const getPermissionsDiff = _ref3 => {
105
105
  let previousValue = _ref3.previousValue,
106
106
  nextValue = _ref3.nextValue;
107
107
  const permissionDiff = ['permissions changed'];
108
- const mappedOldPermissions = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousPermission, _ref4) => {
108
+ const mappedOldPermissions = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousPermission, _ref4) => {
109
109
  let name = _ref4.name,
110
110
  oAuthScopes = _ref4.oAuthScopes;
111
111
  return _objectSpread(_objectSpread({}, previousPermission), {}, {
@@ -113,7 +113,7 @@ const getPermissionsDiff = _ref3 => {
113
113
  });
114
114
  }, {});
115
115
  const indentLevel = 1;
116
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newPermission => {
116
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newPermission => {
117
117
  const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
118
118
  // if the permission name is not in the old config, it means it is a new addition.
119
119
  if (!mappedOldPermissions[newPermission.name]) {
@@ -130,11 +130,11 @@ const getPermissionsDiff = _ref3 => {
130
130
  }));
131
131
  delete mappedOldPermissions[newPermission.name];
132
132
  }
133
- _filterInstanceProperty__default["default"](currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
133
+ _filterInstanceProperty__default.default(currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
134
134
  });
135
135
 
136
136
  // if there are old permissions left, it means they were deleted in the new Permissions.
137
- _forEachInstanceProperty__default["default"](_context4 = _Object$keys__default["default"](mappedOldPermissions)).call(_context4, oldPermissionName => {
137
+ _forEachInstanceProperty__default.default(_context4 = _Object$keys__default.default(mappedOldPermissions)).call(_context4, oldPermissionName => {
138
138
  permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
139
139
  });
140
140
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
@@ -149,14 +149,14 @@ const getLabelAllLocalesDiff = _ref5 => {
149
149
  _ref5$indentLevel = _ref5.indentLevel,
150
150
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
151
151
  const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
152
- const mappedOldLabelAllLocales = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
152
+ const mappedOldLabelAllLocales = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
153
153
  let locale = _ref6.locale,
154
154
  value = _ref6.value;
155
155
  return _objectSpread(_objectSpread({}, previousLabelAllLocale), {}, {
156
156
  [locale]: value
157
157
  });
158
158
  }, {});
159
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newLabelAllLocale => {
159
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newLabelAllLocale => {
160
160
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
161
161
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
162
162
  if (oldLocaleValue !== newLabelAllLocale.value) {
@@ -174,7 +174,7 @@ const getLabelAllLocalesDiff = _ref5 => {
174
174
  }
175
175
  }
176
176
  });
177
- _forEachInstanceProperty__default["default"](_context5 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context5, key => {
177
+ _forEachInstanceProperty__default.default(_context5 = _Object$keys__default.default(mappedOldLabelAllLocales)).call(_context5, key => {
178
178
  const localeDiff = getStringDiff({
179
179
  previousValue: key,
180
180
  label: 'locale',
@@ -195,7 +195,7 @@ const getTypeSettingsDiff = _ref7 => {
195
195
  const nonNullableNextValue = nextValue || {};
196
196
  const indentLevel = 1;
197
197
  const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
198
- _forEachInstanceProperty__default["default"](_context6 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context6, key => {
198
+ _forEachInstanceProperty__default.default(_context6 = _Object$keys__default.default(nonNullablePreviousValue)).call(_context6, key => {
199
199
  const typeSettingDiff = getStringDiff({
200
200
  previousValue: nonNullablePreviousValue[key],
201
201
  nextValue: nonNullableNextValue[key],
@@ -256,7 +256,7 @@ const getMainMenuLinkDiff = _ref9 => {
256
256
  if (menuLabelsDiff) {
257
257
  mainMenuLinkDiff.push(menuLabelsDiff);
258
258
  }
259
- const filteredMainMenuLinkDiff = _filterInstanceProperty__default["default"](mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
259
+ const filteredMainMenuLinkDiff = _filterInstanceProperty__default.default(mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
260
260
  if (filteredMainMenuLinkDiff.length > 1) return filteredMainMenuLinkDiff.join('\n');
261
261
  return null;
262
262
  };
@@ -265,10 +265,10 @@ const getSubmenuLinksDiff = _ref0 => {
265
265
  let previousValue = _ref0.previousValue,
266
266
  nextValue = _ref0.nextValue;
267
267
  const submenuLinksDiff = ['submenuLink changed'];
268
- const mappedSubmenuLinks = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
268
+ const mappedSubmenuLinks = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
269
269
  [currentSubmenuLink.uriPath]: currentSubmenuLink
270
270
  }), {});
271
- const getOrder = value => _mapInstanceProperty__default["default"](value).call(value, link => link.uriPath).join(', ');
271
+ const getOrder = value => _mapInstanceProperty__default.default(value).call(value, link => link.uriPath).join(', ');
272
272
  const previousOrder = getOrder(previousValue);
273
273
  const newOrder = getOrder(nextValue);
274
274
  if (previousOrder !== newOrder) {
@@ -276,12 +276,12 @@ const getSubmenuLinksDiff = _ref0 => {
276
276
  submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
277
277
  submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
278
278
  }
279
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newSubmenuLink => {
279
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newSubmenuLink => {
280
280
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
281
281
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
282
282
  var _context7;
283
283
  const submenuLinkDiff = [`${indent(1)}menu link "${newSubmenuLink.uriPath}" changed`];
284
- _forEachInstanceProperty__default["default"](_context7 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
284
+ _forEachInstanceProperty__default.default(_context7 = _Object$keys__default.default(mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
285
285
  switch (key) {
286
286
  case 'defaultLabel':
287
287
  {
@@ -325,7 +325,7 @@ const getSubmenuLinksDiff = _ref0 => {
325
325
  }
326
326
  });
327
327
  delete mappedSubmenuLinks[newSubmenuLink.uriPath];
328
- const filteredSubmenuLinksDiff = _filterInstanceProperty__default["default"](submenuLinkDiff).call(submenuLinkDiff, Boolean);
328
+ const filteredSubmenuLinksDiff = _filterInstanceProperty__default.default(submenuLinkDiff).call(submenuLinkDiff, Boolean);
329
329
  if (filteredSubmenuLinksDiff.length > 1) {
330
330
  submenuLinksDiff.push(filteredSubmenuLinksDiff.join('\n'));
331
331
  }
@@ -340,7 +340,7 @@ const getSubmenuLinksDiff = _ref0 => {
340
340
  }
341
341
  }
342
342
  });
343
- _forEachInstanceProperty__default["default"](_context8 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context8, key => {
343
+ _forEachInstanceProperty__default.default(_context8 = _Object$keys__default.default(mappedSubmenuLinks)).call(_context8, key => {
344
344
  const linksDiff = getStringDiff({
345
345
  previousValue: key,
346
346
  label: 'menu link',
@@ -530,12 +530,12 @@ async function performCreateCustomApplication(_ref2) {
530
530
  localCustomEntityData = _ref2.localCustomEntityData,
531
531
  applicationIdentifier = _ref2.applicationIdentifier,
532
532
  dryRun = _ref2.dryRun;
533
- console.log(`Creating Custom Application in organization "${chalk__default["default"].green(organizationName)}"...`);
534
- const data = omit__default["default"](localCustomEntityData, ['id']);
533
+ console.log(`Creating Custom Application in organization "${chalk__default.default.green(organizationName)}"...`);
534
+ const data = omit__default.default(localCustomEntityData, ['id']);
535
535
  if (dryRun) {
536
536
  console.log();
537
537
  console.log('Dry run - would create Custom Application with:');
538
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
538
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
539
539
  return null;
540
540
  }
541
541
  const createdCustomApplication = await graphqlRequests.createCustomApplication({
@@ -552,10 +552,10 @@ async function performCreateCustomApplication(_ref2) {
552
552
  organizationId,
553
553
  customEntityId: createdCustomApplication.id
554
554
  });
555
- console.log(chalk__default["default"].green('Custom Application created successfully.'));
556
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomApplication.id)}`);
555
+ console.log(chalk__default.default.green('Custom Application created successfully.'));
556
+ console.log(`ID: ${chalk__default.default.cyan(createdCustomApplication.id)}`);
557
557
  console.log(`Please update the "env.production.applicationId" field in your local Custom Application config file with the ID above.`);
558
- console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
558
+ console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
559
559
  return createdCustomApplication.id;
560
560
  }
561
561
  async function performUpdateCustomApplication(_ref3) {
@@ -565,11 +565,11 @@ async function performUpdateCustomApplication(_ref3) {
565
565
  localCustomEntityData = _ref3.localCustomEntityData,
566
566
  applicationIdentifier = _ref3.applicationIdentifier,
567
567
  dryRun = _ref3.dryRun;
568
- const data = omit__default["default"](localCustomEntityData, ['id']);
568
+ const data = omit__default.default(localCustomEntityData, ['id']);
569
569
  if (dryRun) {
570
570
  console.log();
571
- console.log(`Dry run - would update Custom Application "${chalk__default["default"].green(data.entryPointUriPath)}" with:`);
572
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
571
+ console.log(`Dry run - would update Custom Application "${chalk__default.default.green(data.entryPointUriPath)}" with:`);
572
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
573
573
  return;
574
574
  }
575
575
  console.log('Updating Custom Application...');
@@ -585,8 +585,8 @@ async function performUpdateCustomApplication(_ref3) {
585
585
  organizationId,
586
586
  customEntityId: applicationId
587
587
  });
588
- console.log(chalk__default["default"].green('Custom Application updated successfully.'));
589
- console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
588
+ console.log(chalk__default.default.green('Custom Application updated successfully.'));
589
+ console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
590
590
  }
591
591
  async function performCreateCustomView(_ref4) {
592
592
  let mcApiUrl = _ref4.mcApiUrl,
@@ -595,12 +595,12 @@ async function performCreateCustomView(_ref4) {
595
595
  localCustomEntityData = _ref4.localCustomEntityData,
596
596
  applicationIdentifier = _ref4.applicationIdentifier,
597
597
  dryRun = _ref4.dryRun;
598
- console.log(`Creating Custom View in organization "${chalk__default["default"].green(organizationName)}"...`);
599
- const data = omit__default["default"](localCustomEntityData, ['id']);
598
+ console.log(`Creating Custom View in organization "${chalk__default.default.green(organizationName)}"...`);
599
+ const data = omit__default.default(localCustomEntityData, ['id']);
600
600
  if (dryRun) {
601
601
  console.log();
602
602
  console.log('Dry run - would create Custom View with:');
603
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
603
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
604
604
  return null;
605
605
  }
606
606
  const createdCustomView = await graphqlRequests.createCustomView({
@@ -618,10 +618,10 @@ async function performCreateCustomView(_ref4) {
618
618
  customEntityId: createdCustomView.id,
619
619
  isCustomView: true
620
620
  });
621
- console.log(chalk__default["default"].green('Custom View created successfully.'));
622
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomView.id)}`);
621
+ console.log(chalk__default.default.green('Custom View created successfully.'));
622
+ console.log(`ID: ${chalk__default.default.cyan(createdCustomView.id)}`);
623
623
  console.log(`Please update the "env.production.customViewId" field in your local Custom View config file with the ID above.`);
624
- console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
624
+ console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
625
625
  return createdCustomView.id;
626
626
  }
627
627
  async function performUpdateCustomView(_ref5) {
@@ -631,11 +631,11 @@ async function performUpdateCustomView(_ref5) {
631
631
  localCustomEntityData = _ref5.localCustomEntityData,
632
632
  applicationIdentifier = _ref5.applicationIdentifier,
633
633
  dryRun = _ref5.dryRun;
634
- const data = omit__default["default"](localCustomEntityData, ['id']);
634
+ const data = omit__default.default(localCustomEntityData, ['id']);
635
635
  if (dryRun) {
636
636
  console.log();
637
- console.log(`Dry run - would update Custom View "${chalk__default["default"].green(data.defaultLabel)}" with:`);
638
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
637
+ console.log(`Dry run - would update Custom View "${chalk__default.default.green(data.defaultLabel)}" with:`);
638
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
639
639
  return;
640
640
  }
641
641
  console.log('Updating Custom View...');
@@ -652,8 +652,8 @@ async function performUpdateCustomView(_ref5) {
652
652
  customEntityId: customViewId,
653
653
  isCustomView: true
654
654
  });
655
- console.log(chalk__default["default"].green('Custom View updated successfully.'));
656
- console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
655
+ console.log(chalk__default.default.green('Custom View updated successfully.'));
656
+ console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
657
657
  }
658
658
  async function checkCustomApplicationStatus(_ref6) {
659
659
  let mcApiUrl = _ref6.mcApiUrl,
@@ -16,10 +16,10 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
16
16
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
17
17
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
18
18
  import { sanitizeSvg } from '@commercetools-frontend/application-config';
19
- import { c as createCustomApplication, u as updateCustomApplication, a as createCustomView, b as updateCustomView, d as fetchCustomApplication, e as fetchCustomView } from './graphql-requests-87338c52.esm.js';
19
+ import { b as fetchCustomView, d as createCustomView, e as updateCustomView, a as fetchCustomApplication, g as createCustomApplication, h as updateCustomApplication } from './graphql-requests-DCLX_2y0.esm.js';
20
20
 
21
21
  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; }
22
- 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; }
22
+ 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), true)).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; }
23
23
 
24
24
  // Since not all terminal supports colors, to make things more consistent for testing purposes,
25
25
  // during tests the color used is appended before the string instead of coloring it.
@@ -700,4 +700,4 @@ async function checkCustomViewStatus(_ref7) {
700
700
  };
701
701
  }
702
702
 
703
- export { performUpdateCustomApplication as a, checkCustomViewStatus as b, checkCustomApplicationStatus as c, performCreateCustomView as d, performUpdateCustomView as e, isCustomViewData as i, performCreateCustomApplication as p };
703
+ export { performUpdateCustomView as a, checkCustomApplicationStatus as b, checkCustomViewStatus as c, performCreateCustomApplication as d, performUpdateCustomApplication as e, isCustomViewData as i, performCreateCustomView as p };
@@ -18,9 +18,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
18
18
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
19
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
20
20
  var applicationConfig = require('@commercetools-frontend/application-config');
21
- var graphqlRequests = require('./graphql-requests-bd7a3fe9.cjs.dev.js');
21
+ var graphqlRequests = require('./graphql-requests-BeUd4g3v.cjs.dev.js');
22
22
 
23
- function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
23
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
24
24
 
25
25
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
26
26
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -39,25 +39,25 @@ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInsta
39
39
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
40
40
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
41
41
 
42
- function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
43
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
42
+ function ownKeys(e, r) { var t = _Object$keys__default.default(e); if (_Object$getOwnPropertySymbols__default.default) { var o = _Object$getOwnPropertySymbols__default.default(e); r && (o = _filterInstanceProperty__default.default(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default.default(e, r).enumerable; })), t.push.apply(t, o); } return t; }
43
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default.default(_context9 = ownKeys(Object(t), true)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default.default ? _Object$defineProperties__default.default(e, _Object$getOwnPropertyDescriptors__default.default(t)) : _forEachInstanceProperty__default.default(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default.default(e, r, _Object$getOwnPropertyDescriptor__default.default(t, r)); }); } return e; }
44
44
 
45
45
  // Since not all terminal supports colors, to make things more consistent for testing purposes,
46
46
  // during tests the color used is appended before the string instead of coloring it.
47
47
  const isTest = process.env.NODE_ENV === 'test';
48
48
  const red = str => {
49
49
  if (isTest) return `<color-red>${str}</color-red>`;
50
- return chalk__default["default"].red(str);
50
+ return chalk__default.default.red(str);
51
51
  };
52
52
  const green = str => {
53
53
  if (isTest) return `<color-green>${str}</color-green>`;
54
- return chalk__default["default"].green(str);
54
+ return chalk__default.default.green(str);
55
55
  };
56
56
 
57
57
  // Two spaces are used for indentation.
58
58
  const indent = indentLevel => {
59
59
  var _context;
60
- return _repeatInstanceProperty__default["default"](_context = ' ').call(_context, indentLevel);
60
+ return _repeatInstanceProperty__default.default(_context = ' ').call(_context, indentLevel);
61
61
  };
62
62
  const getStringDiff = _ref => {
63
63
  let previousValue = _ref.previousValue,
@@ -84,9 +84,9 @@ const getArrayDiff = _ref2 => {
84
84
  label = _ref2.label,
85
85
  _ref2$indentLevel = _ref2.indentLevel,
86
86
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
87
- const oldArraySet = new _Set__default["default"](previousValue);
87
+ const oldArraySet = new _Set__default.default(previousValue);
88
88
  const arrayDiff = [];
89
- ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _forEachInstanceProperty__default["default"](_context2), _context2))?.(item => {
89
+ ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default.default(_context3 = Function.call).call(_context3, _forEachInstanceProperty__default.default(_context2), _context2))?.(item => {
90
90
  if (oldArraySet.has(item)) {
91
91
  oldArraySet.delete(item);
92
92
  } else {
@@ -97,7 +97,7 @@ const getArrayDiff = _ref2 => {
97
97
  }));
98
98
  }
99
99
  });
100
- _forEachInstanceProperty__default["default"](oldArraySet).call(oldArraySet, item => {
100
+ _forEachInstanceProperty__default.default(oldArraySet).call(oldArraySet, item => {
101
101
  arrayDiff.push(getStringDiff({
102
102
  previousValue: item,
103
103
  label,
@@ -111,7 +111,7 @@ const getPermissionsDiff = _ref3 => {
111
111
  let previousValue = _ref3.previousValue,
112
112
  nextValue = _ref3.nextValue;
113
113
  const permissionDiff = ['permissions changed'];
114
- const mappedOldPermissions = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousPermission, _ref4) => {
114
+ const mappedOldPermissions = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousPermission, _ref4) => {
115
115
  let name = _ref4.name,
116
116
  oAuthScopes = _ref4.oAuthScopes;
117
117
  return _objectSpread(_objectSpread({}, previousPermission), {}, {
@@ -119,7 +119,7 @@ const getPermissionsDiff = _ref3 => {
119
119
  });
120
120
  }, {});
121
121
  const indentLevel = 1;
122
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newPermission => {
122
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newPermission => {
123
123
  const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
124
124
  // if the permission name is not in the old config, it means it is a new addition.
125
125
  if (!mappedOldPermissions[newPermission.name]) {
@@ -136,11 +136,11 @@ const getPermissionsDiff = _ref3 => {
136
136
  }));
137
137
  delete mappedOldPermissions[newPermission.name];
138
138
  }
139
- _filterInstanceProperty__default["default"](currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
139
+ _filterInstanceProperty__default.default(currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
140
140
  });
141
141
 
142
142
  // if there are old permissions left, it means they were deleted in the new Permissions.
143
- _forEachInstanceProperty__default["default"](_context4 = _Object$keys__default["default"](mappedOldPermissions)).call(_context4, oldPermissionName => {
143
+ _forEachInstanceProperty__default.default(_context4 = _Object$keys__default.default(mappedOldPermissions)).call(_context4, oldPermissionName => {
144
144
  permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
145
145
  });
146
146
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
@@ -155,14 +155,14 @@ const getLabelAllLocalesDiff = _ref5 => {
155
155
  _ref5$indentLevel = _ref5.indentLevel,
156
156
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
157
157
  const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
158
- const mappedOldLabelAllLocales = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
158
+ const mappedOldLabelAllLocales = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
159
159
  let locale = _ref6.locale,
160
160
  value = _ref6.value;
161
161
  return _objectSpread(_objectSpread({}, previousLabelAllLocale), {}, {
162
162
  [locale]: value
163
163
  });
164
164
  }, {});
165
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newLabelAllLocale => {
165
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newLabelAllLocale => {
166
166
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
167
167
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
168
168
  if (oldLocaleValue !== newLabelAllLocale.value) {
@@ -180,7 +180,7 @@ const getLabelAllLocalesDiff = _ref5 => {
180
180
  }
181
181
  }
182
182
  });
183
- _forEachInstanceProperty__default["default"](_context5 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context5, key => {
183
+ _forEachInstanceProperty__default.default(_context5 = _Object$keys__default.default(mappedOldLabelAllLocales)).call(_context5, key => {
184
184
  const localeDiff = getStringDiff({
185
185
  previousValue: key,
186
186
  label: 'locale',
@@ -201,7 +201,7 @@ const getTypeSettingsDiff = _ref7 => {
201
201
  const nonNullableNextValue = nextValue || {};
202
202
  const indentLevel = 1;
203
203
  const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
204
- _forEachInstanceProperty__default["default"](_context6 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context6, key => {
204
+ _forEachInstanceProperty__default.default(_context6 = _Object$keys__default.default(nonNullablePreviousValue)).call(_context6, key => {
205
205
  const typeSettingDiff = getStringDiff({
206
206
  previousValue: nonNullablePreviousValue[key],
207
207
  nextValue: nonNullableNextValue[key],
@@ -262,7 +262,7 @@ const getMainMenuLinkDiff = _ref9 => {
262
262
  if (menuLabelsDiff) {
263
263
  mainMenuLinkDiff.push(menuLabelsDiff);
264
264
  }
265
- const filteredMainMenuLinkDiff = _filterInstanceProperty__default["default"](mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
265
+ const filteredMainMenuLinkDiff = _filterInstanceProperty__default.default(mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
266
266
  if (filteredMainMenuLinkDiff.length > 1) return filteredMainMenuLinkDiff.join('\n');
267
267
  return null;
268
268
  };
@@ -271,10 +271,10 @@ const getSubmenuLinksDiff = _ref0 => {
271
271
  let previousValue = _ref0.previousValue,
272
272
  nextValue = _ref0.nextValue;
273
273
  const submenuLinksDiff = ['submenuLink changed'];
274
- const mappedSubmenuLinks = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
274
+ const mappedSubmenuLinks = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
275
275
  [currentSubmenuLink.uriPath]: currentSubmenuLink
276
276
  }), {});
277
- const getOrder = value => _mapInstanceProperty__default["default"](value).call(value, link => link.uriPath).join(', ');
277
+ const getOrder = value => _mapInstanceProperty__default.default(value).call(value, link => link.uriPath).join(', ');
278
278
  const previousOrder = getOrder(previousValue);
279
279
  const newOrder = getOrder(nextValue);
280
280
  if (previousOrder !== newOrder) {
@@ -282,12 +282,12 @@ const getSubmenuLinksDiff = _ref0 => {
282
282
  submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
283
283
  submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
284
284
  }
285
- _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newSubmenuLink => {
285
+ _forEachInstanceProperty__default.default(nextValue).call(nextValue, newSubmenuLink => {
286
286
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
287
287
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
288
288
  var _context7;
289
289
  const submenuLinkDiff = [`${indent(1)}menu link "${newSubmenuLink.uriPath}" changed`];
290
- _forEachInstanceProperty__default["default"](_context7 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
290
+ _forEachInstanceProperty__default.default(_context7 = _Object$keys__default.default(mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
291
291
  switch (key) {
292
292
  case 'defaultLabel':
293
293
  {
@@ -331,7 +331,7 @@ const getSubmenuLinksDiff = _ref0 => {
331
331
  }
332
332
  });
333
333
  delete mappedSubmenuLinks[newSubmenuLink.uriPath];
334
- const filteredSubmenuLinksDiff = _filterInstanceProperty__default["default"](submenuLinkDiff).call(submenuLinkDiff, Boolean);
334
+ const filteredSubmenuLinksDiff = _filterInstanceProperty__default.default(submenuLinkDiff).call(submenuLinkDiff, Boolean);
335
335
  if (filteredSubmenuLinksDiff.length > 1) {
336
336
  submenuLinksDiff.push(filteredSubmenuLinksDiff.join('\n'));
337
337
  }
@@ -346,7 +346,7 @@ const getSubmenuLinksDiff = _ref0 => {
346
346
  }
347
347
  }
348
348
  });
349
- _forEachInstanceProperty__default["default"](_context8 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context8, key => {
349
+ _forEachInstanceProperty__default.default(_context8 = _Object$keys__default.default(mappedSubmenuLinks)).call(_context8, key => {
350
350
  const linksDiff = getStringDiff({
351
351
  previousValue: key,
352
352
  label: 'menu link',
@@ -536,12 +536,12 @@ async function performCreateCustomApplication(_ref2) {
536
536
  localCustomEntityData = _ref2.localCustomEntityData,
537
537
  applicationIdentifier = _ref2.applicationIdentifier,
538
538
  dryRun = _ref2.dryRun;
539
- console.log(`Creating Custom Application in organization "${chalk__default["default"].green(organizationName)}"...`);
540
- const data = omit__default["default"](localCustomEntityData, ['id']);
539
+ console.log(`Creating Custom Application in organization "${chalk__default.default.green(organizationName)}"...`);
540
+ const data = omit__default.default(localCustomEntityData, ['id']);
541
541
  if (dryRun) {
542
542
  console.log();
543
543
  console.log('Dry run - would create Custom Application with:');
544
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
544
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
545
545
  return null;
546
546
  }
547
547
  const createdCustomApplication = await graphqlRequests.createCustomApplication({
@@ -558,10 +558,10 @@ async function performCreateCustomApplication(_ref2) {
558
558
  organizationId,
559
559
  customEntityId: createdCustomApplication.id
560
560
  });
561
- console.log(chalk__default["default"].green('Custom Application created successfully.'));
562
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomApplication.id)}`);
561
+ console.log(chalk__default.default.green('Custom Application created successfully.'));
562
+ console.log(`ID: ${chalk__default.default.cyan(createdCustomApplication.id)}`);
563
563
  console.log(`Please update the "env.production.applicationId" field in your local Custom Application config file with the ID above.`);
564
- console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
564
+ console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
565
565
  return createdCustomApplication.id;
566
566
  }
567
567
  async function performUpdateCustomApplication(_ref3) {
@@ -571,11 +571,11 @@ async function performUpdateCustomApplication(_ref3) {
571
571
  localCustomEntityData = _ref3.localCustomEntityData,
572
572
  applicationIdentifier = _ref3.applicationIdentifier,
573
573
  dryRun = _ref3.dryRun;
574
- const data = omit__default["default"](localCustomEntityData, ['id']);
574
+ const data = omit__default.default(localCustomEntityData, ['id']);
575
575
  if (dryRun) {
576
576
  console.log();
577
- console.log(`Dry run - would update Custom Application "${chalk__default["default"].green(data.entryPointUriPath)}" with:`);
578
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
577
+ console.log(`Dry run - would update Custom Application "${chalk__default.default.green(data.entryPointUriPath)}" with:`);
578
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
579
579
  return;
580
580
  }
581
581
  console.log('Updating Custom Application...');
@@ -591,8 +591,8 @@ async function performUpdateCustomApplication(_ref3) {
591
591
  organizationId,
592
592
  customEntityId: applicationId
593
593
  });
594
- console.log(chalk__default["default"].green('Custom Application updated successfully.'));
595
- console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
594
+ console.log(chalk__default.default.green('Custom Application updated successfully.'));
595
+ console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
596
596
  }
597
597
  async function performCreateCustomView(_ref4) {
598
598
  let mcApiUrl = _ref4.mcApiUrl,
@@ -601,12 +601,12 @@ async function performCreateCustomView(_ref4) {
601
601
  localCustomEntityData = _ref4.localCustomEntityData,
602
602
  applicationIdentifier = _ref4.applicationIdentifier,
603
603
  dryRun = _ref4.dryRun;
604
- console.log(`Creating Custom View in organization "${chalk__default["default"].green(organizationName)}"...`);
605
- const data = omit__default["default"](localCustomEntityData, ['id']);
604
+ console.log(`Creating Custom View in organization "${chalk__default.default.green(organizationName)}"...`);
605
+ const data = omit__default.default(localCustomEntityData, ['id']);
606
606
  if (dryRun) {
607
607
  console.log();
608
608
  console.log('Dry run - would create Custom View with:');
609
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
609
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
610
610
  return null;
611
611
  }
612
612
  const createdCustomView = await graphqlRequests.createCustomView({
@@ -624,10 +624,10 @@ async function performCreateCustomView(_ref4) {
624
624
  customEntityId: createdCustomView.id,
625
625
  isCustomView: true
626
626
  });
627
- console.log(chalk__default["default"].green('Custom View created successfully.'));
628
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomView.id)}`);
627
+ console.log(chalk__default.default.green('Custom View created successfully.'));
628
+ console.log(`ID: ${chalk__default.default.cyan(createdCustomView.id)}`);
629
629
  console.log(`Please update the "env.production.customViewId" field in your local Custom View config file with the ID above.`);
630
- console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
630
+ console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
631
631
  return createdCustomView.id;
632
632
  }
633
633
  async function performUpdateCustomView(_ref5) {
@@ -637,11 +637,11 @@ async function performUpdateCustomView(_ref5) {
637
637
  localCustomEntityData = _ref5.localCustomEntityData,
638
638
  applicationIdentifier = _ref5.applicationIdentifier,
639
639
  dryRun = _ref5.dryRun;
640
- const data = omit__default["default"](localCustomEntityData, ['id']);
640
+ const data = omit__default.default(localCustomEntityData, ['id']);
641
641
  if (dryRun) {
642
642
  console.log();
643
- console.log(`Dry run - would update Custom View "${chalk__default["default"].green(data.defaultLabel)}" with:`);
644
- console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
643
+ console.log(`Dry run - would update Custom View "${chalk__default.default.green(data.defaultLabel)}" with:`);
644
+ console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
645
645
  return;
646
646
  }
647
647
  console.log('Updating Custom View...');
@@ -658,8 +658,8 @@ async function performUpdateCustomView(_ref5) {
658
658
  customEntityId: customViewId,
659
659
  isCustomView: true
660
660
  });
661
- console.log(chalk__default["default"].green('Custom View updated successfully.'));
662
- console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
661
+ console.log(chalk__default.default.green('Custom View updated successfully.'));
662
+ console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
663
663
  }
664
664
  async function checkCustomApplicationStatus(_ref6) {
665
665
  let mcApiUrl = _ref6.mcApiUrl,
@@ -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-a686a0ee.esm.js';
3
+ import { p as pkgJson } from './package-BiK3ergJ.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