@commercetools-frontend/mc-scripts 27.8.0 → 27.9.1

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 (85) 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 +17 -17
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +17 -17
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +17 -17
  7. package/dist/{build-5cf73f12.esm.js → build-5a0c84e7.esm.js} +8 -8
  8. package/dist/{build-37bc930a.cjs.dev.js → build-b9cbc1d1.cjs.dev.js} +8 -8
  9. package/dist/{build-cd4fa021.cjs.prod.js → build-cdeab3a8.cjs.prod.js} +8 -8
  10. package/dist/{build-vite-e4eeb1a3.cjs.dev.js → build-vite-0e8f3463.cjs.dev.js} +16 -14
  11. package/dist/{build-vite-377f721f.cjs.prod.js → build-vite-aa0e7242.cjs.prod.js} +16 -14
  12. package/dist/{build-vite-2ea8a241.esm.js → build-vite-ce3c4fb6.esm.js} +16 -14
  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-f4ac88cc.cjs.dev.js → compile-html-8679f721.cjs.dev.js} +5 -2
  17. package/dist/{compile-html-025cd493.esm.js → compile-html-adfef598.esm.js} +4 -2
  18. package/dist/{compile-html-50fd05ec.cjs.prod.js → compile-html-b80f9651.cjs.prod.js} +5 -2
  19. package/dist/{config-sync-ce00b14f.cjs.dev.js → config-sync-2b56a941.cjs.dev.js} +17 -17
  20. package/dist/{config-sync-b4cdfff2.cjs.prod.js → config-sync-41bc7f5e.cjs.prod.js} +17 -17
  21. package/dist/{config-sync-92843fd3.esm.js → config-sync-7031a7de.esm.js} +17 -17
  22. package/dist/{config-sync-ci-5f63ed76.esm.js → config-sync-ci-1866c188.esm.js} +25 -20
  23. package/dist/{config-sync-ci-887a171d.cjs.dev.js → config-sync-ci-6d12f2f3.cjs.dev.js} +27 -22
  24. package/dist/{config-sync-ci-f154ff74.cjs.prod.js → config-sync-ci-ea943de9.cjs.prod.js} +27 -22
  25. package/dist/{config-sync-helpers-99d009c2.cjs.dev.js → config-sync-helpers-36985f8c.cjs.dev.js} +57 -48
  26. package/dist/{config-sync-helpers-2a1ad393.cjs.prod.js → config-sync-helpers-79ccaaad.cjs.prod.js} +55 -46
  27. package/dist/{config-sync-helpers-131446d1.esm.js → config-sync-helpers-875ef4a4.esm.js} +56 -47
  28. package/dist/{create-postcss-config-2552844c.cjs.dev.js → create-postcss-config-13cb1cb8.cjs.dev.js} +1 -1
  29. package/dist/{create-postcss-config-94621a5d.cjs.prod.js → create-postcss-config-1eeb3d9d.cjs.prod.js} +1 -1
  30. package/dist/{create-postcss-config-fd5f1790.esm.js → create-postcss-config-390e8a52.esm.js} +1 -1
  31. package/dist/{create-webpack-config-for-development-1a51db3d.cjs.prod.js → create-webpack-config-for-development-6608b4e4.cjs.prod.js} +15 -10
  32. package/dist/{create-webpack-config-for-development-7be672b8.cjs.dev.js → create-webpack-config-for-development-9a3a3a93.cjs.dev.js} +15 -10
  33. package/dist/{create-webpack-config-for-development-1d8ac187.esm.js → create-webpack-config-for-development-dd95f3d5.esm.js} +15 -9
  34. package/dist/{create-webpack-config-for-production-659d28ad.cjs.dev.js → create-webpack-config-for-production-29b34b8c.cjs.dev.js} +8 -8
  35. package/dist/{create-webpack-config-for-production-d8a4b779.cjs.prod.js → create-webpack-config-for-production-2e6e5036.cjs.prod.js} +8 -8
  36. package/dist/{create-webpack-config-for-production-25dbb5e6.esm.js → create-webpack-config-for-production-31bb3d24.esm.js} +8 -8
  37. package/dist/{credentials-storage-fd195144.cjs.dev.js → credentials-storage-1826f1a2.cjs.dev.js} +1 -1
  38. package/dist/{credentials-storage-ea1c16dc.cjs.prod.js → credentials-storage-60a63c81.cjs.prod.js} +1 -1
  39. package/dist/{credentials-storage-67deadc3.esm.js → credentials-storage-bfaa78f0.esm.js} +1 -1
  40. package/dist/{deployment-previews-set-3dae0f4a.esm.js → deployment-previews-set-410cecf1.esm.js} +27 -22
  41. package/dist/{deployment-previews-set-92355471.cjs.dev.js → deployment-previews-set-a04efad3.cjs.dev.js} +28 -22
  42. package/dist/{deployment-previews-set-d8d80d4c.cjs.prod.js → deployment-previews-set-bebd7a04.cjs.prod.js} +28 -22
  43. package/dist/{graphql-requests-f3dc11f7.cjs.dev.js → graphql-requests-1ea68584.cjs.dev.js} +8 -5
  44. package/dist/{graphql-requests-4d1d361b.cjs.prod.js → graphql-requests-98b1b779.cjs.prod.js} +8 -5
  45. package/dist/{graphql-requests-ab8202cb.esm.js → graphql-requests-c491206a.esm.js} +8 -5
  46. package/dist/{i18n-message-complilation-7311cb29.cjs.dev.js → i18n-message-complilation-393d344a.cjs.prod.js} +1 -1
  47. package/dist/{i18n-message-complilation-7762da61.cjs.prod.js → i18n-message-complilation-3f80e8d6.cjs.dev.js} +1 -1
  48. package/dist/{i18n-message-complilation-21d3b0aa.esm.js → i18n-message-complilation-8aec9d1b.esm.js} +1 -1
  49. package/dist/{login-389005dc.cjs.prod.js → login-a99d14e6.cjs.prod.js} +38 -60
  50. package/dist/{login-093e2fe2.esm.js → login-b935aede.esm.js} +37 -58
  51. package/dist/{login-3d0c7aec.cjs.dev.js → login-cd99208a.cjs.dev.js} +38 -60
  52. package/dist/{optimizations-da5a0cfa.cjs.prod.js → optimizations-09a6638c.cjs.prod.js} +8 -5
  53. package/dist/{optimizations-54382f7b.esm.js → optimizations-1b3f8157.esm.js} +7 -5
  54. package/dist/{optimizations-56be74d6.cjs.dev.js → optimizations-640ffcac.cjs.dev.js} +8 -5
  55. package/dist/{package-92325d69.esm.js → package-15124b28.esm.js} +3 -4
  56. package/dist/{package-29009841.cjs.dev.js → package-90af7dfe.cjs.prod.js} +3 -4
  57. package/dist/{package-8c1a8425.cjs.prod.js → package-98adb0d5.cjs.dev.js} +3 -4
  58. package/dist/{paths-39f22b8b.esm.js → paths-7bf7e88e.esm.js} +9 -4
  59. package/dist/{paths-7768b440.cjs.prod.js → paths-af1a725a.cjs.prod.js} +10 -4
  60. package/dist/{paths-b76fc753.cjs.dev.js → paths-ec3e3a7d.cjs.dev.js} +10 -4
  61. package/dist/{serve-b1c12985.cjs.dev.js → serve-760fc169.cjs.dev.js} +13 -14
  62. package/dist/{serve-3837602d.cjs.prod.js → serve-87ef7d4f.cjs.prod.js} +13 -14
  63. package/dist/{serve-22475fec.esm.js → serve-ddf30b4c.esm.js} +13 -13
  64. package/dist/{start-5fcaad9b.esm.js → start-08895b5f.esm.js} +11 -13
  65. package/dist/{start-ec6bcea2.cjs.dev.js → start-a0945fde.cjs.dev.js} +11 -13
  66. package/dist/{start-925a7852.cjs.prod.js → start-d9bd5dfb.cjs.prod.js} +11 -13
  67. package/dist/{start-vite-dd8a1e26.cjs.prod.js → start-vite-00514c35.cjs.prod.js} +5 -4
  68. package/dist/{start-vite-698c9e82.cjs.dev.js → start-vite-10e49e5c.cjs.dev.js} +5 -4
  69. package/dist/{start-vite-4b0df191.esm.js → start-vite-745d3123.esm.js} +5 -4
  70. package/dist/{try-load-nimbus-plugins-a713d7d3.cjs.prod.js → try-load-nimbus-plugins-06ce5d83.cjs.dev.js} +1 -1
  71. package/dist/{try-load-nimbus-plugins-2f528d8f.esm.js → try-load-nimbus-plugins-526dccbd.esm.js} +1 -1
  72. package/dist/{try-load-nimbus-plugins-d502a5fe.cjs.dev.js → try-load-nimbus-plugins-59c3a594.cjs.prod.js} +1 -1
  73. package/dist/{vite-plugin-svgr-de6ee7da.esm.js → vite-plugin-svgr-22c8d518.esm.js} +4 -4
  74. package/dist/{vite-plugin-svgr-4034a834.cjs.prod.js → vite-plugin-svgr-53ef97c7.cjs.dev.js} +4 -4
  75. package/dist/{vite-plugin-svgr-7d06f400.cjs.dev.js → vite-plugin-svgr-5de1cad9.cjs.prod.js} +4 -4
  76. package/package.json +32 -31
  77. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  78. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  79. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  80. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +7 -8
  81. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +7 -8
  82. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +7 -8
  83. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
  84. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
  85. 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,6 @@
1
1
  'use strict';
2
2
 
3
+ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
3
4
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
4
5
  var chalk = require('chalk');
5
6
  var omit = require('lodash/omit');
@@ -12,16 +13,16 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
13
  var _repeatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/repeat');
13
14
  var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
14
15
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
15
- var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
16
16
  var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
17
17
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
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-4d1d361b.cjs.prod.js');
21
+ var graphqlRequests = require('./graphql-requests-98b1b779.cjs.prod.js');
22
22
 
23
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
25
+ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
25
26
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
26
27
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
27
28
  var omit__default = /*#__PURE__*/_interopDefault(omit);
@@ -33,14 +34,13 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
33
34
  var _repeatInstanceProperty__default = /*#__PURE__*/_interopDefault(_repeatInstanceProperty);
34
35
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
35
36
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
36
- var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
37
37
  var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInstanceProperty);
38
38
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
39
39
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
40
40
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
41
41
 
42
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; }
43
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context21, _context22; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context21 = ownKeys(Object(t), !0)).call(_context21, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context22 = ownKeys(Object(t))).call(_context22, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
44
44
  const red = str => {
45
45
  return chalk__default["default"].red(str);
46
46
  };
@@ -60,19 +60,21 @@ const getStringDiff = _ref => {
60
60
  _ref$indentLevel = _ref.indentLevel,
61
61
  indentLevel = _ref$indentLevel === void 0 ? 0 : _ref$indentLevel;
62
62
  if (!previousValue && nextValue) {
63
- return `${indent(indentLevel)}${label} added: ${green(nextValue)}`;
63
+ var _context2, _context3;
64
+ return _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(indent(indentLevel))).call(_context3, label, " added: ")).call(_context2, green(nextValue));
64
65
  }
65
66
  if (previousValue && !nextValue) {
66
- return `${indent(indentLevel)}${label} removed: ${red(previousValue)}`;
67
+ var _context4, _context5;
68
+ return _concatInstanceProperty__default["default"](_context4 = _concatInstanceProperty__default["default"](_context5 = "".concat(indent(indentLevel))).call(_context5, label, " removed: ")).call(_context4, red(previousValue));
67
69
  }
68
70
  if (previousValue && nextValue && previousValue !== nextValue) {
69
- return `${indent(indentLevel)}${label} changed: ${red(previousValue)} => ${green(nextValue)}`;
71
+ var _context6, _context7, _context8;
72
+ return _concatInstanceProperty__default["default"](_context6 = _concatInstanceProperty__default["default"](_context7 = _concatInstanceProperty__default["default"](_context8 = "".concat(indent(indentLevel))).call(_context8, label, " changed: ")).call(_context7, red(previousValue), " => ")).call(_context6, green(nextValue));
70
73
  }
71
74
  return null;
72
75
  };
73
76
  // NOTE: this assumes that the array values are scalar values (not objects).
74
77
  const getArrayDiff = _ref2 => {
75
- var _context2, _context3;
76
78
  let previousValue = _ref2.previousValue,
77
79
  nextValue = _ref2.nextValue,
78
80
  label = _ref2.label,
@@ -80,7 +82,7 @@ const getArrayDiff = _ref2 => {
80
82
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
81
83
  const oldArraySet = new _Set__default["default"](previousValue);
82
84
  const arrayDiff = [];
83
- ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _forEachInstanceProperty__default["default"](_context2), _context2))?.(item => {
85
+ nextValue === null || nextValue === void 0 || _forEachInstanceProperty__default["default"](nextValue).call(nextValue, item => {
84
86
  if (oldArraySet.has(item)) {
85
87
  oldArraySet.delete(item);
86
88
  } else {
@@ -101,7 +103,7 @@ const getArrayDiff = _ref2 => {
101
103
  return arrayDiff.join('\n');
102
104
  };
103
105
  const getPermissionsDiff = _ref3 => {
104
- var _context4;
106
+ var _context1;
105
107
  let previousValue = _ref3.previousValue,
106
108
  nextValue = _ref3.nextValue;
107
109
  const permissionDiff = ['permissions changed'];
@@ -114,10 +116,12 @@ const getPermissionsDiff = _ref3 => {
114
116
  }, {});
115
117
  const indentLevel = 1;
116
118
  _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newPermission => {
117
- const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
119
+ var _context9;
120
+ const currentDiff = [_concatInstanceProperty__default["default"](_context9 = "".concat(indent(indentLevel), "\"")).call(_context9, newPermission.name, "\" changed")];
118
121
  // if the permission name is not in the old config, it means it is a new addition.
119
122
  if (!mappedOldPermissions[newPermission.name]) {
120
- permissionDiff.push(`${indent(indentLevel)}"${green(newPermission.name)}" was added`);
123
+ var _context0;
124
+ permissionDiff.push(_concatInstanceProperty__default["default"](_context0 = "".concat(indent(indentLevel), "\"")).call(_context0, green(newPermission.name), "\" was added"));
121
125
  }
122
126
 
123
127
  // if permission name is in the old config, now we check if there was a change
@@ -134,21 +138,22 @@ const getPermissionsDiff = _ref3 => {
134
138
  });
135
139
 
136
140
  // 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 => {
138
- permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
141
+ _forEachInstanceProperty__default["default"](_context1 = _Object$keys__default["default"](mappedOldPermissions)).call(_context1, oldPermissionName => {
142
+ var _context10;
143
+ permissionDiff.push(_concatInstanceProperty__default["default"](_context10 = "".concat(indent(indentLevel), "\"")).call(_context10, red(oldPermissionName), "\" was removed"));
139
144
  });
140
145
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
141
146
  return null;
142
147
  };
143
148
  const getLabelAllLocalesDiff = _ref5 => {
144
- var _context5;
149
+ var _context14;
145
150
  let _ref5$previousValue = _ref5.previousValue,
146
151
  previousValue = _ref5$previousValue === void 0 ? [] : _ref5$previousValue,
147
152
  _ref5$nextValue = _ref5.nextValue,
148
153
  nextValue = _ref5$nextValue === void 0 ? [] : _ref5$nextValue,
149
154
  _ref5$indentLevel = _ref5.indentLevel,
150
155
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
151
- const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
156
+ const labelAllLocalesDiff = ["".concat(indent(indentLevel - 1), "labelAllLocales changed")];
152
157
  const mappedOldLabelAllLocales = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
153
158
  let locale = _ref6.locale,
154
159
  value = _ref6.value;
@@ -160,7 +165,8 @@ const getLabelAllLocalesDiff = _ref5 => {
160
165
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
161
166
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
162
167
  if (oldLocaleValue !== newLabelAllLocale.value) {
163
- labelAllLocalesDiff.push(`${indent(indentLevel)}locale "${newLabelAllLocale.locale}" changed: ${red(oldLocaleValue)} => ${green(newLabelAllLocale.value)}`);
168
+ var _context11, _context12, _context13;
169
+ labelAllLocalesDiff.push(_concatInstanceProperty__default["default"](_context11 = _concatInstanceProperty__default["default"](_context12 = _concatInstanceProperty__default["default"](_context13 = "".concat(indent(indentLevel), "locale \"")).call(_context13, newLabelAllLocale.locale, "\" changed: ")).call(_context12, red(oldLocaleValue), " => ")).call(_context11, green(newLabelAllLocale.value)));
164
170
  }
165
171
  delete mappedOldLabelAllLocales[newLabelAllLocale.locale];
166
172
  } else {
@@ -174,7 +180,7 @@ const getLabelAllLocalesDiff = _ref5 => {
174
180
  }
175
181
  }
176
182
  });
177
- _forEachInstanceProperty__default["default"](_context5 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context5, key => {
183
+ _forEachInstanceProperty__default["default"](_context14 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context14, key => {
178
184
  const localeDiff = getStringDiff({
179
185
  previousValue: key,
180
186
  label: 'locale',
@@ -188,14 +194,14 @@ const getLabelAllLocalesDiff = _ref5 => {
188
194
  return null;
189
195
  };
190
196
  const getTypeSettingsDiff = _ref7 => {
191
- var _context6;
197
+ var _context15;
192
198
  let previousValue = _ref7.previousValue,
193
199
  nextValue = _ref7.nextValue;
194
200
  const nonNullablePreviousValue = previousValue || {};
195
201
  const nonNullableNextValue = nextValue || {};
196
202
  const indentLevel = 1;
197
- const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
198
- _forEachInstanceProperty__default["default"](_context6 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context6, key => {
203
+ const typeSettingsDiff = ["".concat(indent(indentLevel - 1), "type settings changed")];
204
+ _forEachInstanceProperty__default["default"](_context15 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context15, key => {
199
205
  const typeSettingDiff = getStringDiff({
200
206
  previousValue: nonNullablePreviousValue[key],
201
207
  nextValue: nonNullableNextValue[key],
@@ -245,7 +251,7 @@ const getMainMenuLinkDiff = _ref9 => {
245
251
  indentLevel: 2
246
252
  });
247
253
  if (mainMenuLinkPermissionsDiff.length > 0) {
248
- mainMenuLinkDiff.push(`${indent(1)}permissions changed`);
254
+ mainMenuLinkDiff.push("".concat(indent(1), "permissions changed"));
249
255
  mainMenuLinkDiff.push(mainMenuLinkPermissionsDiff);
250
256
  }
251
257
  const menuLabelsDiff = getLabelAllLocalesDiff({
@@ -261,7 +267,7 @@ const getMainMenuLinkDiff = _ref9 => {
261
267
  return null;
262
268
  };
263
269
  const getSubmenuLinksDiff = _ref0 => {
264
- var _context8;
270
+ var _context20;
265
271
  let previousValue = _ref0.previousValue,
266
272
  nextValue = _ref0.nextValue;
267
273
  const submenuLinksDiff = ['submenuLink changed'];
@@ -272,16 +278,17 @@ const getSubmenuLinksDiff = _ref0 => {
272
278
  const previousOrder = getOrder(previousValue);
273
279
  const newOrder = getOrder(nextValue);
274
280
  if (previousOrder !== newOrder) {
275
- submenuLinksDiff.push(`${indent(1)}submenu order changed`);
276
- submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
277
- submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
281
+ var _context16, _context17;
282
+ submenuLinksDiff.push("".concat(indent(1), "submenu order changed"));
283
+ submenuLinksDiff.push(_concatInstanceProperty__default["default"](_context16 = "".concat(indent(2), "previous order: [")).call(_context16, previousOrder, "]"));
284
+ submenuLinksDiff.push(_concatInstanceProperty__default["default"](_context17 = "".concat(indent(2), "new order: [")).call(_context17, newOrder, "]"));
278
285
  }
279
286
  _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newSubmenuLink => {
280
287
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
281
288
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
282
- var _context7;
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 => {
289
+ var _context18, _context19;
290
+ const submenuLinkDiff = [_concatInstanceProperty__default["default"](_context18 = "".concat(indent(1), "menu link \"")).call(_context18, newSubmenuLink.uriPath, "\" changed")];
291
+ _forEachInstanceProperty__default["default"](_context19 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context19, key => {
285
292
  switch (key) {
286
293
  case 'defaultLabel':
287
294
  {
@@ -305,7 +312,7 @@ const getSubmenuLinksDiff = _ref0 => {
305
312
  indentLevel: 3
306
313
  });
307
314
  if (submenuLinkPermissionsDiff.length > 0) {
308
- submenuLinkDiff.push(`${indent(2)}permissions changed`);
315
+ submenuLinkDiff.push("".concat(indent(2), "permissions changed"));
309
316
  submenuLinkDiff.push(submenuLinkPermissionsDiff);
310
317
  }
311
318
  break;
@@ -340,7 +347,7 @@ const getSubmenuLinksDiff = _ref0 => {
340
347
  }
341
348
  }
342
349
  });
343
- _forEachInstanceProperty__default["default"](_context8 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context8, key => {
350
+ _forEachInstanceProperty__default["default"](_context20 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context20, key => {
344
351
  const linksDiff = getStringDiff({
345
352
  previousValue: key,
346
353
  label: 'menu link',
@@ -514,12 +521,13 @@ const getCustomViewConfigDiff = (oldConfig, newConfig) => {
514
521
  };
515
522
 
516
523
  const getMcUrlLink = _ref => {
524
+ var _context, _context2, _context3;
517
525
  let mcApiUrl = _ref.mcApiUrl,
518
526
  organizationId = _ref.organizationId,
519
527
  customEntityId = _ref.customEntityId,
520
528
  isCustomView = _ref.isCustomView;
521
529
  const mcUrl = mcApiUrl.replace('mc-api', 'mc');
522
- const customEntityLink = `${mcUrl}/account/organizations/${organizationId}/custom-${isCustomView ? 'views' : 'applications'}/owned/${customEntityId}`;
530
+ const customEntityLink = _concatInstanceProperty__default["default"](_context = _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(mcUrl, "/account/organizations/")).call(_context3, organizationId, "/custom-")).call(_context2, isCustomView ? 'views' : 'applications', "/owned/")).call(_context, customEntityId);
523
531
  return customEntityLink;
524
532
  };
525
533
  const isCustomViewData = data => data.entryPointUriPath === undefined;
@@ -530,7 +538,7 @@ async function performCreateCustomApplication(_ref2) {
530
538
  localCustomEntityData = _ref2.localCustomEntityData,
531
539
  applicationIdentifier = _ref2.applicationIdentifier,
532
540
  dryRun = _ref2.dryRun;
533
- console.log(`Creating Custom Application in organization "${chalk__default["default"].green(organizationName)}"...`);
541
+ console.log("Creating Custom Application in organization \"".concat(chalk__default["default"].green(organizationName), "\"..."));
534
542
  const data = omit__default["default"](localCustomEntityData, ['id']);
535
543
  if (dryRun) {
536
544
  console.log();
@@ -553,9 +561,9 @@ async function performCreateCustomApplication(_ref2) {
553
561
  customEntityId: createdCustomApplication.id
554
562
  });
555
563
  console.log(chalk__default["default"].green('Custom Application created successfully.'));
556
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomApplication.id)}`);
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)}`);
564
+ console.log("ID: ".concat(chalk__default["default"].cyan(createdCustomApplication.id)));
565
+ console.log("Please update the \"env.production.applicationId\" field in your local Custom Application config file with the ID above.");
566
+ console.log("URL: ".concat(chalk__default["default"].gray(customAppLink)));
559
567
  return createdCustomApplication.id;
560
568
  }
561
569
  async function performUpdateCustomApplication(_ref3) {
@@ -568,7 +576,7 @@ async function performUpdateCustomApplication(_ref3) {
568
576
  const data = omit__default["default"](localCustomEntityData, ['id']);
569
577
  if (dryRun) {
570
578
  console.log();
571
- console.log(`Dry run - would update Custom Application "${chalk__default["default"].green(data.entryPointUriPath)}" with:`);
579
+ console.log("Dry run - would update Custom Application \"".concat(chalk__default["default"].green(data.entryPointUriPath), "\" with:"));
572
580
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
573
581
  return;
574
582
  }
@@ -586,7 +594,7 @@ async function performUpdateCustomApplication(_ref3) {
586
594
  customEntityId: applicationId
587
595
  });
588
596
  console.log(chalk__default["default"].green('Custom Application updated successfully.'));
589
- console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
597
+ console.log("URL: ".concat(chalk__default["default"].gray(customAppLink)));
590
598
  }
591
599
  async function performCreateCustomView(_ref4) {
592
600
  let mcApiUrl = _ref4.mcApiUrl,
@@ -595,7 +603,7 @@ async function performCreateCustomView(_ref4) {
595
603
  localCustomEntityData = _ref4.localCustomEntityData,
596
604
  applicationIdentifier = _ref4.applicationIdentifier,
597
605
  dryRun = _ref4.dryRun;
598
- console.log(`Creating Custom View in organization "${chalk__default["default"].green(organizationName)}"...`);
606
+ console.log("Creating Custom View in organization \"".concat(chalk__default["default"].green(organizationName), "\"..."));
599
607
  const data = omit__default["default"](localCustomEntityData, ['id']);
600
608
  if (dryRun) {
601
609
  console.log();
@@ -619,9 +627,9 @@ async function performCreateCustomView(_ref4) {
619
627
  isCustomView: true
620
628
  });
621
629
  console.log(chalk__default["default"].green('Custom View created successfully.'));
622
- console.log(`ID: ${chalk__default["default"].cyan(createdCustomView.id)}`);
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)}`);
630
+ console.log("ID: ".concat(chalk__default["default"].cyan(createdCustomView.id)));
631
+ console.log("Please update the \"env.production.customViewId\" field in your local Custom View config file with the ID above.");
632
+ console.log("URL: ".concat(chalk__default["default"].gray(customViewLink)));
625
633
  return createdCustomView.id;
626
634
  }
627
635
  async function performUpdateCustomView(_ref5) {
@@ -634,7 +642,7 @@ async function performUpdateCustomView(_ref5) {
634
642
  const data = omit__default["default"](localCustomEntityData, ['id']);
635
643
  if (dryRun) {
636
644
  console.log();
637
- console.log(`Dry run - would update Custom View "${chalk__default["default"].green(data.defaultLabel)}" with:`);
645
+ console.log("Dry run - would update Custom View \"".concat(chalk__default["default"].green(data.defaultLabel), "\" with:"));
638
646
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
639
647
  return;
640
648
  }
@@ -653,7 +661,7 @@ async function performUpdateCustomView(_ref5) {
653
661
  isCustomView: true
654
662
  });
655
663
  console.log(chalk__default["default"].green('Custom View updated successfully.'));
656
- console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
664
+ console.log("URL: ".concat(chalk__default["default"].gray(customViewLink)));
657
665
  }
658
666
  async function checkCustomApplicationStatus(_ref6) {
659
667
  let mcApiUrl = _ref6.mcApiUrl,
@@ -685,6 +693,7 @@ async function checkCustomApplicationStatus(_ref6) {
685
693
  };
686
694
  }
687
695
  async function checkCustomViewStatus(_ref7) {
696
+ var _fetchedCustomView$cu, _fetchedCustomView$cu2;
688
697
  let mcApiUrl = _ref7.mcApiUrl,
689
698
  customViewId = _ref7.customViewId,
690
699
  applicationIdentifier = _ref7.applicationIdentifier,
@@ -703,13 +712,13 @@ async function checkCustomViewStatus(_ref7) {
703
712
  const customViewLink = getMcUrlLink({
704
713
  mcApiUrl,
705
714
  organizationId: fetchedCustomView.organizationId,
706
- customEntityId: fetchedCustomView?.customView?.id || '',
715
+ customEntityId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu = fetchedCustomView.customView) === null || _fetchedCustomView$cu === void 0 ? void 0 : _fetchedCustomView$cu.id) || '',
707
716
  isCustomView: true
708
717
  });
709
718
  return {
710
719
  exists: true,
711
720
  organizationId: fetchedCustomView.organizationId,
712
- customViewId: fetchedCustomView?.customView?.id || '',
721
+ customViewId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu2 = fetchedCustomView.customView) === null || _fetchedCustomView$cu2 === void 0 ? void 0 : _fetchedCustomView$cu2.id) || '',
713
722
  configDiff,
714
723
  link: customViewLink
715
724
  };