@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
@@ -12,8 +12,8 @@ var vite = require('vite');
12
12
  var viteBundleAnalyzer = require('vite-bundle-analyzer');
13
13
  var assets = require('@commercetools-frontend/assets');
14
14
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
15
- var paths = require('./paths-b76fc753.cjs.dev.js');
16
- var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-d502a5fe.cjs.dev.js');
15
+ var paths = require('./paths-ec3e3a7d.cjs.dev.js');
16
+ var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-06ce5d83.cjs.dev.js');
17
17
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
18
18
  var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
19
19
  var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
@@ -25,11 +25,11 @@ var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/inst
25
25
  var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
26
26
  var cliLib = require('@formatjs/cli-lib');
27
27
  var pluginutils = require('@rollup/pluginutils');
28
- var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.cjs.dev.js');
28
+ var i18nMessageComplilation = require('./i18n-message-complilation-3f80e8d6.cjs.dev.js');
29
29
  var fs = require('node:fs');
30
30
  var path = require('node:path');
31
31
  var glob = require('glob');
32
- var vitePluginSvgr = require('./vite-plugin-svgr-7d06f400.cjs.dev.js');
32
+ var vitePluginSvgr = require('./vite-plugin-svgr-53ef97c7.cjs.dev.js');
33
33
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
34
34
  require('fs');
35
35
  require('./does-file-exist-eb86baca.cjs.dev.js');
@@ -79,8 +79,9 @@ function nonNullable(value) {
79
79
  * ↔ `app-shell` under `manualChunks`.
80
80
  */
81
81
  function pluginChunkCycleCheck() {
82
+ var _options$onCycle;
82
83
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
83
- const onCycle = options.onCycle ?? 'error';
84
+ const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
84
85
  return {
85
86
  name: 'vite-plugin-chunk-cycle-check',
86
87
  apply: 'build',
@@ -89,8 +90,8 @@ function pluginChunkCycleCheck() {
89
90
  generateBundle(_, bundle) {
90
91
  const cycles = findChunkCycles(bundle);
91
92
  if (cycles.length === 0) return;
92
- const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => ` ${cycle.join(' → ')}`).join('\n');
93
- const message = `Detected circular imports between output chunks:\n${formatted}\n` + `\nChunk cycles produce TDZ runtime errors (e.g. "X is undefined") ` + `because Rollup emits real ESM and one chunk can observe another ` + `chunk's not-yet-initialized top-level vars mid-evaluation. ` + `Review \`output.manualChunks\` or any plugin assigning chunks.`;
93
+ const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
94
+ const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
94
95
  if (onCycle === 'error') {
95
96
  this.error(message);
96
97
  } else {
@@ -125,7 +126,8 @@ function findChunkCycles(bundle) {
125
126
  const visit = node => {
126
127
  color.set(node, GRAY);
127
128
  pathStack.push(node);
128
- for (const next of graph.get(node) ?? []) {
129
+ for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
130
+ var _graph$get;
129
131
  // Imports may reference assets or chunks outside our map (e.g. CSS).
130
132
  if (!graph.has(next)) continue;
131
133
  const nextColor = color.get(next);
@@ -156,7 +158,7 @@ function findChunkCycles(bundle) {
156
158
  // This script/function is injected into the `index.html` and used by Vite
157
159
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
158
160
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
159
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
161
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
160
162
  function vitePluginDynamicBaseAssetsGlobals() {
161
163
  return {
162
164
  name: 'dynamic-base-assets-globals',
@@ -226,10 +228,10 @@ function pluginPostCleanup(options) {
226
228
  fs__default["default"].unlinkSync(filePath);
227
229
  totalFilesDeleted++;
228
230
  if (verbose) {
229
- console.log(`[post-cleanup] Deleted: ${file}`);
231
+ console.log("[post-cleanup] Deleted: ".concat(file));
230
232
  }
231
233
  } catch (error) {
232
- console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
234
+ console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
233
235
  }
234
236
  }
235
237
  }
@@ -254,7 +256,7 @@ async function run() {
254
256
  const html = mcHtmlTemplate.generateTemplate({
255
257
  // Define the module entry point (path relative from the `/public` folder).
256
258
  // NOTE: that this is different from the development configuration.
257
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
259
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
258
260
  });
259
261
  // Write `index.html` (template) into the `/public` folder.
260
262
  fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -304,7 +306,7 @@ async function run() {
304
306
  switch (hostType) {
305
307
  case 'html':
306
308
  {
307
- return `__CDN_URL__${filename}`;
309
+ return "__CDN_URL__".concat(filename);
308
310
  }
309
311
  case 'css':
310
312
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -314,7 +316,7 @@ async function run() {
314
316
  };
315
317
  default:
316
318
  return {
317
- runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
319
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
318
320
  };
319
321
  }
320
322
  }
@@ -12,8 +12,8 @@ var vite = require('vite');
12
12
  var viteBundleAnalyzer = require('vite-bundle-analyzer');
13
13
  var assets = require('@commercetools-frontend/assets');
14
14
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
15
- var paths = require('./paths-7768b440.cjs.prod.js');
16
- var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-a713d7d3.cjs.prod.js');
15
+ var paths = require('./paths-af1a725a.cjs.prod.js');
16
+ var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-59c3a594.cjs.prod.js');
17
17
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
18
18
  var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
19
19
  var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
@@ -25,11 +25,11 @@ var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/inst
25
25
  var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
26
26
  var cliLib = require('@formatjs/cli-lib');
27
27
  var pluginutils = require('@rollup/pluginutils');
28
- var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.cjs.prod.js');
28
+ var i18nMessageComplilation = require('./i18n-message-complilation-393d344a.cjs.prod.js');
29
29
  var fs = require('node:fs');
30
30
  var path = require('node:path');
31
31
  var glob = require('glob');
32
- var vitePluginSvgr = require('./vite-plugin-svgr-4034a834.cjs.prod.js');
32
+ var vitePluginSvgr = require('./vite-plugin-svgr-5de1cad9.cjs.prod.js');
33
33
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
34
34
  require('fs');
35
35
  require('./does-file-exist-be53305d.cjs.prod.js');
@@ -79,8 +79,9 @@ function nonNullable(value) {
79
79
  * ↔ `app-shell` under `manualChunks`.
80
80
  */
81
81
  function pluginChunkCycleCheck() {
82
+ var _options$onCycle;
82
83
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
83
- const onCycle = options.onCycle ?? 'error';
84
+ const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
84
85
  return {
85
86
  name: 'vite-plugin-chunk-cycle-check',
86
87
  apply: 'build',
@@ -89,8 +90,8 @@ function pluginChunkCycleCheck() {
89
90
  generateBundle(_, bundle) {
90
91
  const cycles = findChunkCycles(bundle);
91
92
  if (cycles.length === 0) return;
92
- const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => ` ${cycle.join(' → ')}`).join('\n');
93
- const message = `Detected circular imports between output chunks:\n${formatted}\n` + `\nChunk cycles produce TDZ runtime errors (e.g. "X is undefined") ` + `because Rollup emits real ESM and one chunk can observe another ` + `chunk's not-yet-initialized top-level vars mid-evaluation. ` + `Review \`output.manualChunks\` or any plugin assigning chunks.`;
93
+ const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
94
+ const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
94
95
  if (onCycle === 'error') {
95
96
  this.error(message);
96
97
  } else {
@@ -125,7 +126,8 @@ function findChunkCycles(bundle) {
125
126
  const visit = node => {
126
127
  color.set(node, GRAY);
127
128
  pathStack.push(node);
128
- for (const next of graph.get(node) ?? []) {
129
+ for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
130
+ var _graph$get;
129
131
  // Imports may reference assets or chunks outside our map (e.g. CSS).
130
132
  if (!graph.has(next)) continue;
131
133
  const nextColor = color.get(next);
@@ -156,7 +158,7 @@ function findChunkCycles(bundle) {
156
158
  // This script/function is injected into the `index.html` and used by Vite
157
159
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
158
160
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
159
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
161
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
160
162
  function vitePluginDynamicBaseAssetsGlobals() {
161
163
  return {
162
164
  name: 'dynamic-base-assets-globals',
@@ -226,10 +228,10 @@ function pluginPostCleanup(options) {
226
228
  fs__default["default"].unlinkSync(filePath);
227
229
  totalFilesDeleted++;
228
230
  if (verbose) {
229
- console.log(`[post-cleanup] Deleted: ${file}`);
231
+ console.log("[post-cleanup] Deleted: ".concat(file));
230
232
  }
231
233
  } catch (error) {
232
- console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
234
+ console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
233
235
  }
234
236
  }
235
237
  }
@@ -254,7 +256,7 @@ async function run() {
254
256
  const html = mcHtmlTemplate.generateTemplate({
255
257
  // Define the module entry point (path relative from the `/public` folder).
256
258
  // NOTE: that this is different from the development configuration.
257
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
259
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
258
260
  });
259
261
  // Write `index.html` (template) into the `/public` folder.
260
262
  fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -304,7 +306,7 @@ async function run() {
304
306
  switch (hostType) {
305
307
  case 'html':
306
308
  {
307
- return `__CDN_URL__${filename}`;
309
+ return "__CDN_URL__".concat(filename);
308
310
  }
309
311
  case 'css':
310
312
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -314,7 +316,7 @@ async function run() {
314
316
  };
315
317
  default:
316
318
  return {
317
- runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
319
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
318
320
  };
319
321
  }
320
322
  }
@@ -10,8 +10,8 @@ import { build } from 'vite';
10
10
  import { analyzer } from 'vite-bundle-analyzer';
11
11
  import { packageLocation } from '@commercetools-frontend/assets';
12
12
  import { generateTemplate } from '@commercetools-frontend/mc-html-template';
13
- import { p as paths } from './paths-39f22b8b.esm.js';
14
- import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-2f528d8f.esm.js';
13
+ import { p as paths } from './paths-7bf7e88e.esm.js';
14
+ import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-526dccbd.esm.js';
15
15
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
16
16
  import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
17
17
  import _Map from '@babel/runtime-corejs3/core-js-stable/map';
@@ -23,11 +23,11 @@ import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instan
23
23
  import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
24
24
  import { compile } from '@formatjs/cli-lib';
25
25
  import { createFilter } from '@rollup/pluginutils';
26
- import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-21d3b0aa.esm.js';
26
+ import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-8aec9d1b.esm.js';
27
27
  import fs from 'node:fs';
28
28
  import path from 'node:path';
29
29
  import { globSync } from 'glob';
30
- import { v as vitePluginSvgr } from './vite-plugin-svgr-de6ee7da.esm.js';
30
+ import { v as vitePluginSvgr } from './vite-plugin-svgr-22c8d518.esm.js';
31
31
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
32
32
  import 'fs';
33
33
  import './does-file-exist-32618334.esm.js';
@@ -56,8 +56,9 @@ function nonNullable(value) {
56
56
  * ↔ `app-shell` under `manualChunks`.
57
57
  */
58
58
  function pluginChunkCycleCheck() {
59
+ var _options$onCycle;
59
60
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
60
- const onCycle = options.onCycle ?? 'error';
61
+ const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
61
62
  return {
62
63
  name: 'vite-plugin-chunk-cycle-check',
63
64
  apply: 'build',
@@ -66,8 +67,8 @@ function pluginChunkCycleCheck() {
66
67
  generateBundle(_, bundle) {
67
68
  const cycles = findChunkCycles(bundle);
68
69
  if (cycles.length === 0) return;
69
- const formatted = _mapInstanceProperty(cycles).call(cycles, cycle => ` ${cycle.join(' → ')}`).join('\n');
70
- const message = `Detected circular imports between output chunks:\n${formatted}\n` + `\nChunk cycles produce TDZ runtime errors (e.g. "X is undefined") ` + `because Rollup emits real ESM and one chunk can observe another ` + `chunk's not-yet-initialized top-level vars mid-evaluation. ` + `Review \`output.manualChunks\` or any plugin assigning chunks.`;
70
+ const formatted = _mapInstanceProperty(cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
71
+ const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
71
72
  if (onCycle === 'error') {
72
73
  this.error(message);
73
74
  } else {
@@ -102,7 +103,8 @@ function findChunkCycles(bundle) {
102
103
  const visit = node => {
103
104
  color.set(node, GRAY);
104
105
  pathStack.push(node);
105
- for (const next of graph.get(node) ?? []) {
106
+ for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
107
+ var _graph$get;
106
108
  // Imports may reference assets or chunks outside our map (e.g. CSS).
107
109
  if (!graph.has(next)) continue;
108
110
  const nextColor = color.get(next);
@@ -133,7 +135,7 @@ function findChunkCycles(bundle) {
133
135
  // This script/function is injected into the `index.html` and used by Vite
134
136
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
135
137
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
136
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
138
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
137
139
  function vitePluginDynamicBaseAssetsGlobals() {
138
140
  return {
139
141
  name: 'dynamic-base-assets-globals',
@@ -203,10 +205,10 @@ function pluginPostCleanup(options) {
203
205
  fs.unlinkSync(filePath);
204
206
  totalFilesDeleted++;
205
207
  if (verbose) {
206
- console.log(`[post-cleanup] Deleted: ${file}`);
208
+ console.log("[post-cleanup] Deleted: ".concat(file));
207
209
  }
208
210
  } catch (error) {
209
- console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
211
+ console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
210
212
  }
211
213
  }
212
214
  }
@@ -231,7 +233,7 @@ async function run() {
231
233
  const html = generateTemplate({
232
234
  // Define the module entry point (path relative from the `/public` folder).
233
235
  // NOTE: that this is different from the development configuration.
234
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
236
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
235
237
  });
236
238
  // Write `index.html` (template) into the `/public` folder.
237
239
  fs$1.writeFileSync(paths.appIndexHtml, html, {
@@ -281,7 +283,7 @@ async function run() {
281
283
  switch (hostType) {
282
284
  case 'html':
283
285
  {
284
- return `__CDN_URL__${filename}`;
286
+ return "__CDN_URL__".concat(filename);
285
287
  }
286
288
  case 'css':
287
289
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -291,7 +293,7 @@ async function run() {
291
293
  };
292
294
  default:
293
295
  return {
294
- runtime: `window.__toCdnUrl(${_JSON$stringify(filename)})`
296
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify(filename), ")")
295
297
  };
296
298
  }
297
299
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "27.8.0";
8
+ var version = "27.9.1";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "27.8.0";
8
+ var version = "27.9.1";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -1,7 +1,7 @@
1
1
  export { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "27.8.0";
4
+ var version = "27.9.1";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -1,10 +1,11 @@
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 fs = require('fs');
5
6
  var chalk = require('chalk');
6
7
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
7
- var paths = require('./paths-b76fc753.cjs.dev.js');
8
+ var paths = require('./paths-ec3e3a7d.cjs.dev.js');
8
9
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
9
10
  require('path');
10
11
  require('./does-file-exist-eb86baca.cjs.dev.js');
@@ -12,6 +13,7 @@ require('node:fs');
12
13
 
13
14
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
15
 
16
+ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
15
17
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
16
18
  var fs__default = /*#__PURE__*/_interopDefault(fs);
17
19
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -31,7 +33,8 @@ async function run(options) {
31
33
  const transformerFn = require(transformerPath);
32
34
  transformerFn(compiled);
33
35
  } catch (error) {
34
- throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
36
+ var _context;
37
+ throw new Error(_concatInstanceProperty__default["default"](_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
35
38
  }
36
39
  } else if (options.printSecurityHeaders) {
37
40
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -1,8 +1,9 @@
1
+ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
1
2
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
2
3
  import fs from 'fs';
3
4
  import chalk from 'chalk';
4
5
  import { compileHtml } from '@commercetools-frontend/mc-html-template';
5
- import { p as paths } from './paths-39f22b8b.esm.js';
6
+ import { p as paths } from './paths-7bf7e88e.esm.js';
6
7
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
7
8
  import 'path';
8
9
  import './does-file-exist-32618334.esm.js';
@@ -23,7 +24,8 @@ async function run(options) {
23
24
  const transformerFn = require(transformerPath);
24
25
  transformerFn(compiled);
25
26
  } catch (error) {
26
- throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
27
+ var _context;
28
+ throw new Error(_concatInstanceProperty(_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
27
29
  }
28
30
  } else if (options.printSecurityHeaders) {
29
31
  console.log(_JSON$stringify(compiled.headers));
@@ -1,10 +1,11 @@
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 fs = require('fs');
5
6
  var chalk = require('chalk');
6
7
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
7
- var paths = require('./paths-7768b440.cjs.prod.js');
8
+ var paths = require('./paths-af1a725a.cjs.prod.js');
8
9
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
9
10
  require('path');
10
11
  require('./does-file-exist-be53305d.cjs.prod.js');
@@ -12,6 +13,7 @@ require('node:fs');
12
13
 
13
14
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
15
 
16
+ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
15
17
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
16
18
  var fs__default = /*#__PURE__*/_interopDefault(fs);
17
19
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -31,7 +33,8 @@ async function run(options) {
31
33
  const transformerFn = require(transformerPath);
32
34
  transformerFn(compiled);
33
35
  } catch (error) {
34
- throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
36
+ var _context;
37
+ throw new Error(_concatInstanceProperty__default["default"](_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
35
38
  }
36
39
  } else if (options.printSecurityHeaders) {
37
40
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -7,9 +7,10 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
7
7
  var chalk = require('chalk');
8
8
  var prompts = require('prompts');
9
9
  var applicationConfig = require('@commercetools-frontend/application-config');
10
- var configSyncHelpers = require('./config-sync-helpers-99d009c2.cjs.dev.js');
11
- var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
12
- var graphqlRequests = require('./graphql-requests-f3dc11f7.cjs.dev.js');
10
+ var configSyncHelpers = require('./config-sync-helpers-36985f8c.cjs.dev.js');
11
+ var credentialsStorage$1 = require('./credentials-storage-1826f1a2.cjs.dev.js');
12
+ var graphqlRequests = require('./graphql-requests-1ea68584.cjs.dev.js');
13
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
13
14
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
14
15
  require('lodash/omit');
15
16
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -21,7 +22,6 @@ require('@babel/runtime-corejs3/helpers/defineProperty');
21
22
  require('@babel/runtime-corejs3/core-js-stable/instance/repeat');
22
23
  require('@babel/runtime-corejs3/core-js-stable/set');
23
24
  require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
24
- require('@babel/runtime-corejs3/core-js-stable/instance/bind');
25
25
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
26
26
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
27
27
  require('@babel/runtime-corejs3/helpers/classCallCheck');
@@ -36,7 +36,7 @@ require('graphql');
36
36
  require('graphql-request');
37
37
  require('@commercetools-frontend/constants');
38
38
  require('@commercetools/http-user-agent');
39
- require('./package-29009841.cjs.dev.js');
39
+ require('./package-98adb0d5.cjs.dev.js');
40
40
 
41
41
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
42
42
 
@@ -59,7 +59,7 @@ async function promptForOrganization(_ref) {
59
59
  customViewId
60
60
  });
61
61
  if (userOrganizations.total === 0) {
62
- 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 ${entityType} to be configured to.`);
62
+ 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 ".concat(entityType, " to be configured to."));
63
63
  }
64
64
  if (userOrganizations.total === 1) {
65
65
  const _userOrganizations$re = _slicedToArray(userOrganizations.results, 1),
@@ -82,7 +82,7 @@ async function promptForOrganization(_ref) {
82
82
  }),
83
83
  selectedOrganizationId = _await$prompts.organizationId;
84
84
  if (!selectedOrganizationId) {
85
- throw new Error(`No Organization selected, aborting.`);
85
+ throw new Error("No Organization selected, aborting.");
86
86
  }
87
87
  const organizationName = _findInstanceProperty__default["default"](organizationChoices).call(organizationChoices, _ref2 => {
88
88
  let value = _ref2.value;
@@ -130,7 +130,7 @@ async function createOrUpdateCustomApplication(_ref4) {
130
130
  entityType: 'Custom Application'
131
131
  });
132
132
  const confirmed = await confirmAction({
133
- message: `You are about to create a new Custom Application in the "${chalk__default["default"].green(organization.name)}" organization. Are you sure you want to proceed?`,
133
+ message: "You are about to create a new Custom Application in the \"".concat(chalk__default["default"].green(organization.name), "\" organization. Are you sure you want to proceed?"),
134
134
  dryRun: options.dryRun,
135
135
  dryRunMessage: 'Using "--dry-run", no data will be created.'
136
136
  });
@@ -148,15 +148,15 @@ async function createOrUpdateCustomApplication(_ref4) {
148
148
 
149
149
  // Check for changes
150
150
  if (!status.configDiff) {
151
- console.log(chalk__default["default"].green(`Custom Application up-to-date.`));
152
- console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default["default"].gray(status.link)}".`);
151
+ console.log(chalk__default["default"].green("Custom Application up-to-date."));
152
+ console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(status.link), "\"."));
153
153
  return;
154
154
  }
155
155
  console.log('Changes detected:');
156
156
  console.log(status.configDiff);
157
157
  console.log();
158
158
  const confirmed = await confirmAction({
159
- message: `You are about to update the Custom Application "${chalk__default["default"].green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`,
159
+ message: "You are about to update the Custom Application \"".concat(chalk__default["default"].green(localCustomEntityData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"),
160
160
  dryRun: options.dryRun,
161
161
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
162
162
  });
@@ -191,7 +191,7 @@ async function createOrUpdateCustomView(_ref5) {
191
191
  entityType: 'Custom View'
192
192
  });
193
193
  const confirmed = await confirmAction({
194
- message: `You are about to create a new Custom View in the "${chalk__default["default"].green(organization.name)}" organization. Are you sure you want to proceed?`,
194
+ message: "You are about to create a new Custom View in the \"".concat(chalk__default["default"].green(organization.name), "\" organization. Are you sure you want to proceed?"),
195
195
  dryRun: options.dryRun,
196
196
  dryRunMessage: 'Using "--dry-run", no data will be created.'
197
197
  });
@@ -209,15 +209,15 @@ async function createOrUpdateCustomView(_ref5) {
209
209
 
210
210
  // Check for changes
211
211
  if (!status.configDiff) {
212
- console.log(chalk__default["default"].green(`Custom View up-to-date.`));
213
- console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default["default"].gray(status.link)}".`);
212
+ console.log(chalk__default["default"].green("Custom View up-to-date."));
213
+ console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk__default["default"].gray(status.link), "\"."));
214
214
  return;
215
215
  }
216
216
  console.log('Changes detected:');
217
217
  console.log(status.configDiff);
218
218
  console.log();
219
219
  const confirmed = await confirmAction({
220
- message: `You are about to update the Custom View "${chalk__default["default"].green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`,
220
+ message: "You are about to update the Custom View \"".concat(chalk__default["default"].green(localCustomEntityData.defaultLabel), "\" with the changes above. Are you sure you want to proceed?"),
221
221
  dryRun: options.dryRun,
222
222
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
223
223
  });
@@ -238,11 +238,11 @@ async function run(options) {
238
238
  mcApiUrl = _applicationConfig$en.mcApiUrl,
239
239
  applicationIdentifier = _applicationConfig$en.applicationIdentifier,
240
240
  customViewId = _applicationConfig$en.customViewId;
241
- console.log(`Using Merchant Center environment "${chalk__default["default"].green(mcApiUrl)}".`);
241
+ console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
242
242
  console.log();
243
243
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
244
244
  if (!isSessionValid) {
245
- throw new Error(`You don't have a valid session. Please, run the "mc-scripts login" command to authenticate yourself.`);
245
+ throw new Error("You don't have a valid session. Please, run the \"mc-scripts login\" command to authenticate yourself.");
246
246
  }
247
247
  if (configSyncHelpers.isCustomViewData(localCustomEntityData)) {
248
248
  await createOrUpdateCustomView({