@commercetools-frontend/mc-scripts 27.9.1 → 27.9.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 (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 +16 -15
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +16 -15
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +16 -15
  7. package/dist/{build-b9cbc1d1.cjs.dev.js → build-0e40ae4b.cjs.dev.js} +8 -8
  8. package/dist/{build-cdeab3a8.cjs.prod.js → build-30150f3a.cjs.prod.js} +8 -8
  9. package/dist/{build-5a0c84e7.esm.js → build-d34f0880.esm.js} +8 -8
  10. package/dist/{build-vite-ce3c4fb6.esm.js → build-vite-2ea8a241.esm.js} +14 -16
  11. package/dist/{build-vite-aa0e7242.cjs.prod.js → build-vite-377f721f.cjs.prod.js} +14 -16
  12. package/dist/{build-vite-0e8f3463.cjs.dev.js → build-vite-e4eeb1a3.cjs.dev.js} +14 -16
  13. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  14. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  15. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  16. package/dist/{compile-html-adfef598.esm.js → compile-html-025cd493.esm.js} +2 -4
  17. package/dist/{compile-html-b80f9651.cjs.prod.js → compile-html-50fd05ec.cjs.prod.js} +2 -5
  18. package/dist/{compile-html-8679f721.cjs.dev.js → compile-html-f4ac88cc.cjs.dev.js} +2 -5
  19. package/dist/{config-sync-7031a7de.esm.js → config-sync-2d02ffa8.esm.js} +17 -17
  20. package/dist/{config-sync-2b56a941.cjs.dev.js → config-sync-9bb37ec5.cjs.dev.js} +17 -17
  21. package/dist/{config-sync-41bc7f5e.cjs.prod.js → config-sync-a16795bc.cjs.prod.js} +17 -17
  22. package/dist/{config-sync-ci-6d12f2f3.cjs.dev.js → config-sync-ci-7f4935ea.cjs.dev.js} +19 -25
  23. package/dist/{config-sync-ci-1866c188.esm.js → config-sync-ci-b3ea139f.esm.js} +19 -24
  24. package/dist/{config-sync-ci-ea943de9.cjs.prod.js → config-sync-ci-bfd6918d.cjs.prod.js} +19 -25
  25. package/dist/{config-sync-helpers-36985f8c.cjs.dev.js → config-sync-helpers-1bd93aad.cjs.dev.js} +48 -57
  26. package/dist/{config-sync-helpers-79ccaaad.cjs.prod.js → config-sync-helpers-5a1b172b.cjs.prod.js} +46 -55
  27. package/dist/{config-sync-helpers-875ef4a4.esm.js → config-sync-helpers-9439de91.esm.js} +47 -56
  28. package/dist/{create-postcss-config-13cb1cb8.cjs.dev.js → create-postcss-config-24861798.cjs.dev.js} +1 -1
  29. package/dist/{create-postcss-config-390e8a52.esm.js → create-postcss-config-3b68ddee.esm.js} +1 -1
  30. package/dist/{create-postcss-config-1eeb3d9d.cjs.prod.js → create-postcss-config-9acd005d.cjs.prod.js} +1 -1
  31. package/dist/{create-webpack-config-for-development-dd95f3d5.esm.js → create-webpack-config-for-development-7787fa87.esm.js} +7 -7
  32. package/dist/{create-webpack-config-for-development-9a3a3a93.cjs.dev.js → create-webpack-config-for-development-ac4d9b95.cjs.dev.js} +7 -7
  33. package/dist/{create-webpack-config-for-development-6608b4e4.cjs.prod.js → create-webpack-config-for-development-ba55541a.cjs.prod.js} +7 -7
  34. package/dist/{create-webpack-config-for-production-29b34b8c.cjs.dev.js → create-webpack-config-for-production-4f0c062f.cjs.dev.js} +8 -8
  35. package/dist/{create-webpack-config-for-production-31bb3d24.esm.js → create-webpack-config-for-production-6f78b27b.esm.js} +8 -8
  36. package/dist/{create-webpack-config-for-production-2e6e5036.cjs.prod.js → create-webpack-config-for-production-b054a984.cjs.prod.js} +8 -8
  37. package/dist/{credentials-storage-bfaa78f0.esm.js → credentials-storage-67deadc3.esm.js} +1 -1
  38. package/dist/{credentials-storage-60a63c81.cjs.prod.js → credentials-storage-ea1c16dc.cjs.prod.js} +1 -1
  39. package/dist/{credentials-storage-1826f1a2.cjs.dev.js → credentials-storage-fd195144.cjs.dev.js} +1 -1
  40. package/dist/{deployment-previews-set-bebd7a04.cjs.prod.js → deployment-previews-set-370f5bce.cjs.prod.js} +22 -28
  41. package/dist/{deployment-previews-set-410cecf1.esm.js → deployment-previews-set-6ce467f3.esm.js} +22 -27
  42. package/dist/{deployment-previews-set-a04efad3.cjs.dev.js → deployment-previews-set-fa6468e1.cjs.dev.js} +22 -28
  43. package/dist/{graphql-requests-c491206a.esm.js → graphql-requests-0e55505c.esm.js} +5 -8
  44. package/dist/{graphql-requests-1ea68584.cjs.dev.js → graphql-requests-6e742563.cjs.prod.js} +5 -8
  45. package/dist/{graphql-requests-98b1b779.cjs.prod.js → graphql-requests-af3ea6c9.cjs.dev.js} +5 -8
  46. package/dist/{i18n-message-complilation-8aec9d1b.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +1 -1
  47. package/dist/{i18n-message-complilation-3f80e8d6.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +1 -1
  48. package/dist/{i18n-message-complilation-393d344a.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +1 -1
  49. package/dist/{login-cd99208a.cjs.dev.js → login-8b1925fa.cjs.dev.js} +58 -37
  50. package/dist/{login-a99d14e6.cjs.prod.js → login-93faaa9c.cjs.prod.js} +58 -37
  51. package/dist/{login-b935aede.esm.js → login-d6b9b61b.esm.js} +57 -36
  52. package/dist/{optimizations-1b3f8157.esm.js → optimizations-54382f7b.esm.js} +5 -7
  53. package/dist/{optimizations-09a6638c.cjs.prod.js → optimizations-56be74d6.cjs.dev.js} +5 -8
  54. package/dist/{optimizations-640ffcac.cjs.dev.js → optimizations-da5a0cfa.cjs.prod.js} +5 -8
  55. package/dist/{package-98adb0d5.cjs.dev.js → package-2a97179c.cjs.prod.js} +1 -1
  56. package/dist/{package-90af7dfe.cjs.prod.js → package-42b38ba8.cjs.dev.js} +1 -1
  57. package/dist/{package-15124b28.esm.js → package-76b6a39c.esm.js} +1 -1
  58. package/dist/{paths-7bf7e88e.esm.js → paths-39f22b8b.esm.js} +4 -9
  59. package/dist/{paths-af1a725a.cjs.prod.js → paths-7768b440.cjs.prod.js} +4 -10
  60. package/dist/{paths-ec3e3a7d.cjs.dev.js → paths-b76fc753.cjs.dev.js} +4 -10
  61. package/dist/{serve-ddf30b4c.esm.js → serve-22475fec.esm.js} +13 -13
  62. package/dist/{serve-87ef7d4f.cjs.prod.js → serve-3837602d.cjs.prod.js} +14 -13
  63. package/dist/{serve-760fc169.cjs.dev.js → serve-b1c12985.cjs.dev.js} +14 -13
  64. package/dist/{start-a0945fde.cjs.dev.js → start-bf7fee92.cjs.dev.js} +9 -10
  65. package/dist/{start-08895b5f.esm.js → start-d66f7fa7.esm.js} +9 -10
  66. package/dist/{start-d9bd5dfb.cjs.prod.js → start-e2f64f34.cjs.prod.js} +9 -10
  67. package/dist/{start-vite-745d3123.esm.js → start-vite-4b0df191.esm.js} +4 -5
  68. package/dist/{start-vite-10e49e5c.cjs.dev.js → start-vite-698c9e82.cjs.dev.js} +4 -5
  69. package/dist/{start-vite-00514c35.cjs.prod.js → start-vite-dd8a1e26.cjs.prod.js} +4 -5
  70. package/dist/{try-load-nimbus-plugins-526dccbd.esm.js → try-load-nimbus-plugins-2f528d8f.esm.js} +1 -1
  71. package/dist/{try-load-nimbus-plugins-59c3a594.cjs.prod.js → try-load-nimbus-plugins-a713d7d3.cjs.prod.js} +1 -1
  72. package/dist/{try-load-nimbus-plugins-06ce5d83.cjs.dev.js → try-load-nimbus-plugins-d502a5fe.cjs.dev.js} +1 -1
  73. package/dist/{vite-plugin-svgr-5de1cad9.cjs.prod.js → vite-plugin-svgr-4034a834.cjs.prod.js} +4 -4
  74. package/dist/{vite-plugin-svgr-53ef97c7.cjs.dev.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +4 -4
  75. package/dist/{vite-plugin-svgr-22c8d518.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +4 -4
  76. package/package.json +10 -10
  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 -7
  81. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +7 -7
  82. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +7 -7
  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
@@ -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-7bf7e88e.esm.js';
14
- import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-526dccbd.esm.js';
13
+ import { p as paths } from './paths-39f22b8b.esm.js';
14
+ import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-2f528d8f.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-8aec9d1b.esm.js';
26
+ import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-21d3b0aa.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-22c8d518.esm.js';
30
+ import { v as vitePluginSvgr } from './vite-plugin-svgr-de6ee7da.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,9 +56,8 @@ function nonNullable(value) {
56
56
  * ↔ `app-shell` under `manualChunks`.
57
57
  */
58
58
  function pluginChunkCycleCheck() {
59
- var _options$onCycle;
60
59
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
61
- const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
60
+ const onCycle = options.onCycle ?? 'error';
62
61
  return {
63
62
  name: 'vite-plugin-chunk-cycle-check',
64
63
  apply: 'build',
@@ -67,8 +66,8 @@ function pluginChunkCycleCheck() {
67
66
  generateBundle(_, bundle) {
68
67
  const cycles = findChunkCycles(bundle);
69
68
  if (cycles.length === 0) return;
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.";
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.`;
72
71
  if (onCycle === 'error') {
73
72
  this.error(message);
74
73
  } else {
@@ -103,8 +102,7 @@ function findChunkCycles(bundle) {
103
102
  const visit = node => {
104
103
  color.set(node, GRAY);
105
104
  pathStack.push(node);
106
- for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
107
- var _graph$get;
105
+ for (const next of graph.get(node) ?? []) {
108
106
  // Imports may reference assets or chunks outside our map (e.g. CSS).
109
107
  if (!graph.has(next)) continue;
110
108
  const nextColor = color.get(next);
@@ -135,7 +133,7 @@ function findChunkCycles(bundle) {
135
133
  // This script/function is injected into the `index.html` and used by Vite
136
134
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
137
135
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
138
- const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
136
+ const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
139
137
  function vitePluginDynamicBaseAssetsGlobals() {
140
138
  return {
141
139
  name: 'dynamic-base-assets-globals',
@@ -205,10 +203,10 @@ function pluginPostCleanup(options) {
205
203
  fs.unlinkSync(filePath);
206
204
  totalFilesDeleted++;
207
205
  if (verbose) {
208
- console.log("[post-cleanup] Deleted: ".concat(file));
206
+ console.log(`[post-cleanup] Deleted: ${file}`);
209
207
  }
210
208
  } catch (error) {
211
- console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
209
+ console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
212
210
  }
213
211
  }
214
212
  }
@@ -233,7 +231,7 @@ async function run() {
233
231
  const html = generateTemplate({
234
232
  // Define the module entry point (path relative from the `/public` folder).
235
233
  // NOTE: that this is different from the development configuration.
236
- scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
234
+ scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
237
235
  });
238
236
  // Write `index.html` (template) into the `/public` folder.
239
237
  fs$1.writeFileSync(paths.appIndexHtml, html, {
@@ -283,7 +281,7 @@ async function run() {
283
281
  switch (hostType) {
284
282
  case 'html':
285
283
  {
286
- return "__CDN_URL__".concat(filename);
284
+ return `__CDN_URL__${filename}`;
287
285
  }
288
286
  case 'css':
289
287
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -293,7 +291,7 @@ async function run() {
293
291
  };
294
292
  default:
295
293
  return {
296
- runtime: "window.__toCdnUrl(".concat(_JSON$stringify(filename), ")")
294
+ runtime: `window.__toCdnUrl(${_JSON$stringify(filename)})`
297
295
  };
298
296
  }
299
297
  }
@@ -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-af1a725a.cjs.prod.js');
16
- var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-59c3a594.cjs.prod.js');
15
+ var paths = require('./paths-7768b440.cjs.prod.js');
16
+ var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-a713d7d3.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-393d344a.cjs.prod.js');
28
+ var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.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-5de1cad9.cjs.prod.js');
32
+ var vitePluginSvgr = require('./vite-plugin-svgr-4034a834.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,9 +79,8 @@ function nonNullable(value) {
79
79
  * ↔ `app-shell` under `manualChunks`.
80
80
  */
81
81
  function pluginChunkCycleCheck() {
82
- var _options$onCycle;
83
82
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
84
- const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
83
+ const onCycle = options.onCycle ?? 'error';
85
84
  return {
86
85
  name: 'vite-plugin-chunk-cycle-check',
87
86
  apply: 'build',
@@ -90,8 +89,8 @@ function pluginChunkCycleCheck() {
90
89
  generateBundle(_, bundle) {
91
90
  const cycles = findChunkCycles(bundle);
92
91
  if (cycles.length === 0) return;
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.";
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.`;
95
94
  if (onCycle === 'error') {
96
95
  this.error(message);
97
96
  } else {
@@ -126,8 +125,7 @@ function findChunkCycles(bundle) {
126
125
  const visit = node => {
127
126
  color.set(node, GRAY);
128
127
  pathStack.push(node);
129
- for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
130
- var _graph$get;
128
+ for (const next of graph.get(node) ?? []) {
131
129
  // Imports may reference assets or chunks outside our map (e.g. CSS).
132
130
  if (!graph.has(next)) continue;
133
131
  const nextColor = color.get(next);
@@ -158,7 +156,7 @@ function findChunkCycles(bundle) {
158
156
  // This script/function is injected into the `index.html` and used by Vite
159
157
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
160
158
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
161
- const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
159
+ const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
162
160
  function vitePluginDynamicBaseAssetsGlobals() {
163
161
  return {
164
162
  name: 'dynamic-base-assets-globals',
@@ -228,10 +226,10 @@ function pluginPostCleanup(options) {
228
226
  fs__default["default"].unlinkSync(filePath);
229
227
  totalFilesDeleted++;
230
228
  if (verbose) {
231
- console.log("[post-cleanup] Deleted: ".concat(file));
229
+ console.log(`[post-cleanup] Deleted: ${file}`);
232
230
  }
233
231
  } catch (error) {
234
- console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
232
+ console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
235
233
  }
236
234
  }
237
235
  }
@@ -256,7 +254,7 @@ async function run() {
256
254
  const html = mcHtmlTemplate.generateTemplate({
257
255
  // Define the module entry point (path relative from the `/public` folder).
258
256
  // NOTE: that this is different from the development configuration.
259
- scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
257
+ scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
260
258
  });
261
259
  // Write `index.html` (template) into the `/public` folder.
262
260
  fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -306,7 +304,7 @@ async function run() {
306
304
  switch (hostType) {
307
305
  case 'html':
308
306
  {
309
- return "__CDN_URL__".concat(filename);
307
+ return `__CDN_URL__${filename}`;
310
308
  }
311
309
  case 'css':
312
310
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -316,7 +314,7 @@ async function run() {
316
314
  };
317
315
  default:
318
316
  return {
319
- runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
317
+ runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
320
318
  };
321
319
  }
322
320
  }
@@ -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-ec3e3a7d.cjs.dev.js');
16
- var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-06ce5d83.cjs.dev.js');
15
+ var paths = require('./paths-b76fc753.cjs.dev.js');
16
+ var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-d502a5fe.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-3f80e8d6.cjs.dev.js');
28
+ var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.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-53ef97c7.cjs.dev.js');
32
+ var vitePluginSvgr = require('./vite-plugin-svgr-7d06f400.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,9 +79,8 @@ function nonNullable(value) {
79
79
  * ↔ `app-shell` under `manualChunks`.
80
80
  */
81
81
  function pluginChunkCycleCheck() {
82
- var _options$onCycle;
83
82
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
84
- const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
83
+ const onCycle = options.onCycle ?? 'error';
85
84
  return {
86
85
  name: 'vite-plugin-chunk-cycle-check',
87
86
  apply: 'build',
@@ -90,8 +89,8 @@ function pluginChunkCycleCheck() {
90
89
  generateBundle(_, bundle) {
91
90
  const cycles = findChunkCycles(bundle);
92
91
  if (cycles.length === 0) return;
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.";
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.`;
95
94
  if (onCycle === 'error') {
96
95
  this.error(message);
97
96
  } else {
@@ -126,8 +125,7 @@ function findChunkCycles(bundle) {
126
125
  const visit = node => {
127
126
  color.set(node, GRAY);
128
127
  pathStack.push(node);
129
- for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
130
- var _graph$get;
128
+ for (const next of graph.get(node) ?? []) {
131
129
  // Imports may reference assets or chunks outside our map (e.g. CSS).
132
130
  if (!graph.has(next)) continue;
133
131
  const nextColor = color.get(next);
@@ -158,7 +156,7 @@ function findChunkCycles(bundle) {
158
156
  // This script/function is injected into the `index.html` and used by Vite
159
157
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
160
158
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
161
- const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
159
+ const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
162
160
  function vitePluginDynamicBaseAssetsGlobals() {
163
161
  return {
164
162
  name: 'dynamic-base-assets-globals',
@@ -228,10 +226,10 @@ function pluginPostCleanup(options) {
228
226
  fs__default["default"].unlinkSync(filePath);
229
227
  totalFilesDeleted++;
230
228
  if (verbose) {
231
- console.log("[post-cleanup] Deleted: ".concat(file));
229
+ console.log(`[post-cleanup] Deleted: ${file}`);
232
230
  }
233
231
  } catch (error) {
234
- console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
232
+ console.warn(`[post-cleanup] Failed to delete ${file}:`, error);
235
233
  }
236
234
  }
237
235
  }
@@ -256,7 +254,7 @@ async function run() {
256
254
  const html = mcHtmlTemplate.generateTemplate({
257
255
  // Define the module entry point (path relative from the `/public` folder).
258
256
  // NOTE: that this is different from the development configuration.
259
- scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
257
+ scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
260
258
  });
261
259
  // Write `index.html` (template) into the `/public` folder.
262
260
  fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -306,7 +304,7 @@ async function run() {
306
304
  switch (hostType) {
307
305
  case 'html':
308
306
  {
309
- return "__CDN_URL__".concat(filename);
307
+ return `__CDN_URL__${filename}`;
310
308
  }
311
309
  case 'css':
312
310
  // Vite does not support `{ runtime: ... }` for assets referenced from CSS
@@ -316,7 +314,7 @@ async function run() {
316
314
  };
317
315
  default:
318
316
  return {
319
- runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
317
+ runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
320
318
  };
321
319
  }
322
320
  }
@@ -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.9.1";
8
+ var version = "27.9.3";
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.9.1";
8
+ var version = "27.9.3";
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.9.1";
4
+ var version = "27.9.3";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -1,9 +1,8 @@
1
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
2
1
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
3
2
  import fs from 'fs';
4
3
  import chalk from 'chalk';
5
4
  import { compileHtml } from '@commercetools-frontend/mc-html-template';
6
- import { p as paths } from './paths-7bf7e88e.esm.js';
5
+ import { p as paths } from './paths-39f22b8b.esm.js';
7
6
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
8
7
  import 'path';
9
8
  import './does-file-exist-32618334.esm.js';
@@ -24,8 +23,7 @@ async function run(options) {
24
23
  const transformerFn = require(transformerPath);
25
24
  transformerFn(compiled);
26
25
  } catch (error) {
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 : ''));
26
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
29
27
  }
30
28
  } else if (options.printSecurityHeaders) {
31
29
  console.log(_JSON$stringify(compiled.headers));
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
3
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
5
4
  var fs = require('fs');
6
5
  var chalk = require('chalk');
7
6
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
8
- var paths = require('./paths-af1a725a.cjs.prod.js');
7
+ var paths = require('./paths-7768b440.cjs.prod.js');
9
8
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
10
9
  require('path');
11
10
  require('./does-file-exist-be53305d.cjs.prod.js');
@@ -13,7 +12,6 @@ require('node:fs');
13
12
 
14
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
14
 
16
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
17
15
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
18
16
  var fs__default = /*#__PURE__*/_interopDefault(fs);
19
17
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -33,8 +31,7 @@ async function run(options) {
33
31
  const transformerFn = require(transformerPath);
34
32
  transformerFn(compiled);
35
33
  } catch (error) {
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 : ''));
34
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
38
35
  }
39
36
  } else if (options.printSecurityHeaders) {
40
37
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
3
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
5
4
  var fs = require('fs');
6
5
  var chalk = require('chalk');
7
6
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
8
- var paths = require('./paths-ec3e3a7d.cjs.dev.js');
7
+ var paths = require('./paths-b76fc753.cjs.dev.js');
9
8
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
10
9
  require('path');
11
10
  require('./does-file-exist-eb86baca.cjs.dev.js');
@@ -13,7 +12,6 @@ require('node:fs');
13
12
 
14
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
14
 
16
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
17
15
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
18
16
  var fs__default = /*#__PURE__*/_interopDefault(fs);
19
17
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -33,8 +31,7 @@ async function run(options) {
33
31
  const transformerFn = require(transformerPath);
34
32
  transformerFn(compiled);
35
33
  } catch (error) {
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 : ''));
34
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
38
35
  }
39
36
  } else if (options.printSecurityHeaders) {
40
37
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -5,10 +5,9 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
5
5
  import chalk from 'chalk';
6
6
  import prompts from 'prompts';
7
7
  import { processConfig } from '@commercetools-frontend/application-config';
8
- import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-875ef4a4.esm.js';
9
- import { C as CredentialsStorage } from './credentials-storage-bfaa78f0.esm.js';
10
- import { f as fetchUserOrganizations } from './graphql-requests-c491206a.esm.js';
11
- import '@babel/runtime-corejs3/core-js-stable/instance/concat';
8
+ import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-9439de91.esm.js';
9
+ import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
10
+ import { f as fetchUserOrganizations } from './graphql-requests-0e55505c.esm.js';
12
11
  import '@babel/runtime-corejs3/core-js-stable/json/stringify';
13
12
  import 'lodash/omit';
14
13
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -20,6 +19,7 @@ import '@babel/runtime-corejs3/helpers/defineProperty';
20
19
  import '@babel/runtime-corejs3/core-js-stable/instance/repeat';
21
20
  import '@babel/runtime-corejs3/core-js-stable/set';
22
21
  import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
22
+ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
23
23
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
24
24
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
25
25
  import '@babel/runtime-corejs3/helpers/classCallCheck';
@@ -34,7 +34,7 @@ import 'graphql';
34
34
  import 'graphql-request';
35
35
  import '@commercetools-frontend/constants';
36
36
  import '@commercetools/http-user-agent';
37
- import './package-15124b28.esm.js';
37
+ import './package-76b6a39c.esm.js';
38
38
 
39
39
  const credentialsStorage = new CredentialsStorage();
40
40
  async function promptForOrganization(_ref) {
@@ -49,7 +49,7 @@ async function promptForOrganization(_ref) {
49
49
  customViewId
50
50
  });
51
51
  if (userOrganizations.total === 0) {
52
- 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."));
52
+ 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.`);
53
53
  }
54
54
  if (userOrganizations.total === 1) {
55
55
  const _userOrganizations$re = _slicedToArray(userOrganizations.results, 1),
@@ -72,7 +72,7 @@ async function promptForOrganization(_ref) {
72
72
  }),
73
73
  selectedOrganizationId = _await$prompts.organizationId;
74
74
  if (!selectedOrganizationId) {
75
- throw new Error("No Organization selected, aborting.");
75
+ throw new Error(`No Organization selected, aborting.`);
76
76
  }
77
77
  const organizationName = _findInstanceProperty(organizationChoices).call(organizationChoices, _ref2 => {
78
78
  let value = _ref2.value;
@@ -120,7 +120,7 @@ async function createOrUpdateCustomApplication(_ref4) {
120
120
  entityType: 'Custom Application'
121
121
  });
122
122
  const confirmed = await confirmAction({
123
- message: "You are about to create a new Custom Application in the \"".concat(chalk.green(organization.name), "\" organization. Are you sure you want to proceed?"),
123
+ message: `You are about to create a new Custom Application in the "${chalk.green(organization.name)}" organization. Are you sure you want to proceed?`,
124
124
  dryRun: options.dryRun,
125
125
  dryRunMessage: 'Using "--dry-run", no data will be created.'
126
126
  });
@@ -138,15 +138,15 @@ async function createOrUpdateCustomApplication(_ref4) {
138
138
 
139
139
  // Check for changes
140
140
  if (!status.configDiff) {
141
- console.log(chalk.green("Custom Application up-to-date."));
142
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk.gray(status.link), "\"."));
141
+ console.log(chalk.green(`Custom Application up-to-date.`));
142
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk.gray(status.link)}".`);
143
143
  return;
144
144
  }
145
145
  console.log('Changes detected:');
146
146
  console.log(status.configDiff);
147
147
  console.log();
148
148
  const confirmed = await confirmAction({
149
- message: "You are about to update the Custom Application \"".concat(chalk.green(localCustomEntityData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"),
149
+ message: `You are about to update the Custom Application "${chalk.green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`,
150
150
  dryRun: options.dryRun,
151
151
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
152
152
  });
@@ -181,7 +181,7 @@ async function createOrUpdateCustomView(_ref5) {
181
181
  entityType: 'Custom View'
182
182
  });
183
183
  const confirmed = await confirmAction({
184
- message: "You are about to create a new Custom View in the \"".concat(chalk.green(organization.name), "\" organization. Are you sure you want to proceed?"),
184
+ message: `You are about to create a new Custom View in the "${chalk.green(organization.name)}" organization. Are you sure you want to proceed?`,
185
185
  dryRun: options.dryRun,
186
186
  dryRunMessage: 'Using "--dry-run", no data will be created.'
187
187
  });
@@ -199,15 +199,15 @@ async function createOrUpdateCustomView(_ref5) {
199
199
 
200
200
  // Check for changes
201
201
  if (!status.configDiff) {
202
- console.log(chalk.green("Custom View up-to-date."));
203
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk.gray(status.link), "\"."));
202
+ console.log(chalk.green(`Custom View up-to-date.`));
203
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk.gray(status.link)}".`);
204
204
  return;
205
205
  }
206
206
  console.log('Changes detected:');
207
207
  console.log(status.configDiff);
208
208
  console.log();
209
209
  const confirmed = await confirmAction({
210
- message: "You are about to update the Custom View \"".concat(chalk.green(localCustomEntityData.defaultLabel), "\" with the changes above. Are you sure you want to proceed?"),
210
+ message: `You are about to update the Custom View "${chalk.green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`,
211
211
  dryRun: options.dryRun,
212
212
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
213
213
  });
@@ -228,11 +228,11 @@ async function run(options) {
228
228
  mcApiUrl = _applicationConfig$en.mcApiUrl,
229
229
  applicationIdentifier = _applicationConfig$en.applicationIdentifier,
230
230
  customViewId = _applicationConfig$en.customViewId;
231
- console.log("Using Merchant Center environment \"".concat(chalk.green(mcApiUrl), "\"."));
231
+ console.log(`Using Merchant Center environment "${chalk.green(mcApiUrl)}".`);
232
232
  console.log();
233
233
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
234
234
  if (!isSessionValid) {
235
- throw new Error("You don't have a valid session. Please, run the \"mc-scripts login\" command to authenticate yourself.");
235
+ throw new Error(`You don't have a valid session. Please, run the "mc-scripts login" command to authenticate yourself.`);
236
236
  }
237
237
  if (isCustomViewData(localCustomEntityData)) {
238
238
  await createOrUpdateCustomView({