@commercetools-frontend/mc-scripts 27.9.1 → 27.9.2

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-cdeab3a8.cjs.prod.js → build-ac598c6f.cjs.prod.js} +8 -8
  8. package/dist/{build-5a0c84e7.esm.js → build-d46960df.esm.js} +8 -8
  9. package/dist/{build-b9cbc1d1.cjs.dev.js → build-d4b1fdc5.cjs.dev.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-2b56a941.cjs.dev.js → config-sync-1167a32c.cjs.dev.js} +17 -17
  20. package/dist/{config-sync-7031a7de.esm.js → config-sync-2745185a.esm.js} +17 -17
  21. package/dist/{config-sync-41bc7f5e.cjs.prod.js → config-sync-4b0feccb.cjs.prod.js} +17 -17
  22. package/dist/{config-sync-ci-6d12f2f3.cjs.dev.js → config-sync-ci-198a99b7.cjs.dev.js} +19 -25
  23. package/dist/{config-sync-ci-ea943de9.cjs.prod.js → config-sync-ci-59c9bb6f.cjs.prod.js} +19 -25
  24. package/dist/{config-sync-ci-1866c188.esm.js → config-sync-ci-9fd513b8.esm.js} +19 -24
  25. package/dist/{config-sync-helpers-79ccaaad.cjs.prod.js → config-sync-helpers-1f124caa.cjs.prod.js} +46 -55
  26. package/dist/{config-sync-helpers-36985f8c.cjs.dev.js → config-sync-helpers-41951889.cjs.dev.js} +48 -57
  27. package/dist/{config-sync-helpers-875ef4a4.esm.js → config-sync-helpers-6c78e679.esm.js} +47 -56
  28. package/dist/{create-postcss-config-1eeb3d9d.cjs.prod.js → create-postcss-config-10a7d74d.cjs.prod.js} +1 -1
  29. package/dist/{create-postcss-config-390e8a52.esm.js → create-postcss-config-19ba9dbb.esm.js} +1 -1
  30. package/dist/{create-postcss-config-13cb1cb8.cjs.dev.js → create-postcss-config-ea4e550d.cjs.dev.js} +1 -1
  31. package/dist/{create-webpack-config-for-development-dd95f3d5.esm.js → create-webpack-config-for-development-11a27bf0.esm.js} +7 -7
  32. package/dist/{create-webpack-config-for-development-6608b4e4.cjs.prod.js → create-webpack-config-for-development-32dfe76e.cjs.prod.js} +7 -7
  33. package/dist/{create-webpack-config-for-development-9a3a3a93.cjs.dev.js → create-webpack-config-for-development-c88f0c97.cjs.dev.js} +7 -7
  34. package/dist/{create-webpack-config-for-production-2e6e5036.cjs.prod.js → create-webpack-config-for-production-52b409ec.cjs.prod.js} +8 -8
  35. package/dist/{create-webpack-config-for-production-29b34b8c.cjs.dev.js → create-webpack-config-for-production-6a2efe24.cjs.dev.js} +8 -8
  36. package/dist/{create-webpack-config-for-production-31bb3d24.esm.js → create-webpack-config-for-production-70f06772.esm.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-a04efad3.cjs.dev.js → deployment-previews-set-26fd1791.cjs.dev.js} +22 -28
  41. package/dist/{deployment-previews-set-410cecf1.esm.js → deployment-previews-set-3c1d36bf.esm.js} +22 -27
  42. package/dist/{deployment-previews-set-bebd7a04.cjs.prod.js → deployment-previews-set-64129683.cjs.prod.js} +22 -28
  43. package/dist/{graphql-requests-1ea68584.cjs.dev.js → graphql-requests-409eb664.cjs.dev.js} +5 -8
  44. package/dist/{graphql-requests-98b1b779.cjs.prod.js → graphql-requests-561ccac0.cjs.prod.js} +5 -8
  45. package/dist/{graphql-requests-c491206a.esm.js → graphql-requests-f6c2f942.esm.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-a99d14e6.cjs.prod.js → login-63b5a86e.cjs.prod.js} +58 -37
  50. package/dist/{login-cd99208a.cjs.dev.js → login-c9031d14.cjs.dev.js} +58 -37
  51. package/dist/{login-b935aede.esm.js → login-d164278d.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-15124b28.esm.js → package-1ae014de.esm.js} +1 -1
  56. package/dist/{package-98adb0d5.cjs.dev.js → package-484213a4.cjs.dev.js} +1 -1
  57. package/dist/{package-90af7dfe.cjs.prod.js → package-b6a1b738.cjs.prod.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-08895b5f.esm.js → start-8d12a788.esm.js} +9 -10
  65. package/dist/{start-d9bd5dfb.cjs.prod.js → start-ad28cbc1.cjs.prod.js} +9 -10
  66. package/dist/{start-a0945fde.cjs.dev.js → start-ffd9a387.cjs.dev.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 +9 -9
  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.2";
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.2";
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.2";
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));
@@ -7,10 +7,9 @@ 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-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');
10
+ var configSyncHelpers = require('./config-sync-helpers-41951889.cjs.dev.js');
11
+ var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
12
+ var graphqlRequests = require('./graphql-requests-409eb664.cjs.dev.js');
14
13
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
15
14
  require('lodash/omit');
16
15
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -22,6 +21,7 @@ require('@babel/runtime-corejs3/helpers/defineProperty');
22
21
  require('@babel/runtime-corejs3/core-js-stable/instance/repeat');
23
22
  require('@babel/runtime-corejs3/core-js-stable/set');
24
23
  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-98adb0d5.cjs.dev.js');
39
+ require('./package-484213a4.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 ".concat(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 ${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 \"".concat(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 "${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 \"".concat(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 "${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 \"".concat(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 "${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 \"".concat(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 "${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 \"".concat(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 "${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 \"".concat(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 "${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 \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
241
+ console.log(`Using Merchant Center environment "${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({