@commercetools-frontend/mc-scripts 27.9.6 → 27.10.0

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 (52) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +7 -7
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +7 -7
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +7 -7
  4. package/dist/{build-73d1b30a.cjs.prod.js → build-4d0acb04.cjs.prod.js} +3 -3
  5. package/dist/{build-3f0ab974.esm.js → build-59481cb8.esm.js} +3 -3
  6. package/dist/{build-b2996bd2.cjs.dev.js → build-d42e183f.cjs.dev.js} +3 -3
  7. package/dist/{build-vite-377f721f.cjs.prod.js → build-vite-0b37a521.cjs.prod.js} +67 -1
  8. package/dist/{build-vite-2ea8a241.esm.js → build-vite-782c1634.esm.js} +64 -1
  9. package/dist/{build-vite-e4eeb1a3.cjs.dev.js → build-vite-dfe4ce01.cjs.dev.js} +67 -1
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  13. package/dist/{config-sync-73e5f8cd.cjs.dev.js → config-sync-725a610b.cjs.dev.js} +3 -3
  14. package/dist/{config-sync-3a9f7388.esm.js → config-sync-a0fbcc7b.esm.js} +3 -3
  15. package/dist/{config-sync-405e8cad.cjs.prod.js → config-sync-b136a872.cjs.prod.js} +3 -3
  16. package/dist/{config-sync-ci-e0575324.esm.js → config-sync-ci-3ef68289.esm.js} +3 -3
  17. package/dist/{config-sync-ci-3c003863.cjs.dev.js → config-sync-ci-ae603bb0.cjs.dev.js} +3 -3
  18. package/dist/{config-sync-ci-96ffeb0c.cjs.prod.js → config-sync-ci-ec4ece11.cjs.prod.js} +3 -3
  19. package/dist/{config-sync-helpers-cbcb07de.cjs.prod.js → config-sync-helpers-44aca57a.cjs.prod.js} +1 -1
  20. package/dist/{config-sync-helpers-2c4435e3.cjs.dev.js → config-sync-helpers-d54c236e.cjs.dev.js} +1 -1
  21. package/dist/{config-sync-helpers-a9017692.esm.js → config-sync-helpers-e5428026.esm.js} +1 -1
  22. package/dist/{create-postcss-config-72de84c3.cjs.prod.js → create-postcss-config-55b02771.cjs.prod.js} +1 -1
  23. package/dist/{create-postcss-config-ae2052ca.cjs.dev.js → create-postcss-config-80d0820a.cjs.dev.js} +1 -1
  24. package/dist/{create-postcss-config-589ab552.esm.js → create-postcss-config-aa23d79b.esm.js} +1 -1
  25. package/dist/{create-webpack-config-for-development-3a71dbd9.esm.js → create-webpack-config-for-development-34e8a3cd.esm.js} +1 -1
  26. package/dist/{create-webpack-config-for-development-0c8493a7.cjs.prod.js → create-webpack-config-for-development-5370e67d.cjs.prod.js} +1 -1
  27. package/dist/{create-webpack-config-for-development-0a45fb16.cjs.dev.js → create-webpack-config-for-development-952a2e1a.cjs.dev.js} +1 -1
  28. package/dist/{create-webpack-config-for-production-bfffea63.cjs.dev.js → create-webpack-config-for-production-3b44ca40.cjs.dev.js} +1 -1
  29. package/dist/{create-webpack-config-for-production-ce0a4730.cjs.prod.js → create-webpack-config-for-production-8d271aa8.cjs.prod.js} +1 -1
  30. package/dist/{create-webpack-config-for-production-8ca3f79b.esm.js → create-webpack-config-for-production-bfa24d34.esm.js} +1 -1
  31. package/dist/{deployment-previews-set-77470ae4.cjs.prod.js → deployment-previews-set-654750b1.cjs.prod.js} +2 -2
  32. package/dist/{deployment-previews-set-7305914f.cjs.dev.js → deployment-previews-set-9632a214.cjs.dev.js} +2 -2
  33. package/dist/{deployment-previews-set-62483d21.esm.js → deployment-previews-set-d9c1a198.esm.js} +2 -2
  34. package/dist/{graphql-requests-c0cd64c5.cjs.prod.js → graphql-requests-0fcb8f53.cjs.prod.js} +1 -1
  35. package/dist/{graphql-requests-5120d009.esm.js → graphql-requests-86edba25.esm.js} +1 -1
  36. package/dist/{graphql-requests-29d4af29.cjs.dev.js → graphql-requests-989848b0.cjs.dev.js} +1 -1
  37. package/dist/{login-0cbbf684.cjs.dev.js → login-6c9e6ca4.cjs.dev.js} +1 -1
  38. package/dist/{login-2adaca14.cjs.prod.js → login-c3a26054.cjs.prod.js} +1 -1
  39. package/dist/{login-87541705.esm.js → login-fd730e9f.esm.js} +1 -1
  40. package/dist/{package-ddfc2379.esm.js → package-19604f26.esm.js} +1 -1
  41. package/dist/{package-27562b4c.cjs.prod.js → package-41934c27.cjs.prod.js} +1 -1
  42. package/dist/{package-2b40cba1.cjs.dev.js → package-fe66e14b.cjs.dev.js} +1 -1
  43. package/dist/{start-392a2c28.cjs.prod.js → start-8098feca.cjs.prod.js} +3 -3
  44. package/dist/{start-20aaf669.esm.js → start-81f19f98.esm.js} +3 -3
  45. package/dist/{start-01222882.cjs.dev.js → start-fb605a87.cjs.dev.js} +3 -3
  46. package/package.json +8 -8
  47. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  48. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  49. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  50. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
  51. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
  52. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var commander = require('commander');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-2b40cba1.cjs.dev.js');
13
+ var _package = require('../../dist/package-fe66e14b.cjs.dev.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
15
15
  require('node:fs');
16
16
 
@@ -72,7 +72,7 @@ async function run() {
72
72
  console.log('Experimental Vite bundler enabled! 🚀');
73
73
  console.log('');
74
74
  }
75
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-698c9e82.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-01222882.cjs.dev.js'); });
75
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-698c9e82.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-fb605a87.cjs.dev.js'); });
76
76
  await startCommand.default();
77
77
  });
78
78
 
@@ -91,7 +91,7 @@ async function run() {
91
91
  console.log('Experimental Vite bundler enabled! 🚀');
92
92
  console.log('');
93
93
  }
94
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-e4eeb1a3.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-b2996bd2.cjs.dev.js'); });
94
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-dfe4ce01.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-d42e183f.cjs.dev.js'); });
95
95
  await buildCommand.default();
96
96
  const shouldAlsoCompile = !options.buildOnly;
97
97
  if (shouldAlsoCompile) {
@@ -157,7 +157,7 @@ async function run() {
157
157
 
158
158
  // Do this as the first thing so that any code reading it knows the right env.
159
159
  process.env.NODE_ENV = 'production';
160
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-0cbbf684.cjs.dev.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-6c9e6ca4.cjs.dev.js'); });
161
161
  await loginCommand.default(options);
162
162
  });
163
163
 
@@ -171,7 +171,7 @@ async function run() {
171
171
 
172
172
  // Do this as the first thing so that any code reading it knows the right env.
173
173
  process.env.NODE_ENV = 'production';
174
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-73e5f8cd.cjs.dev.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-725a610b.cjs.dev.js'); });
175
175
  await configSyncCommand.default(options);
176
176
  });
177
177
 
@@ -184,7 +184,7 @@ async function run() {
184
184
 
185
185
  // Do this as the first thing so that any code reading it knows the right env.
186
186
  process.env.NODE_ENV = 'production';
187
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-3c003863.cjs.dev.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-ae603bb0.cjs.dev.js'); });
188
188
  await configSyncCICommand.default(options);
189
189
  });
190
190
 
@@ -198,7 +198,7 @@ async function run() {
198
198
 
199
199
  // Do this as the first thing so that any code reading it knows the right env.
200
200
  process.env.NODE_ENV = 'production';
201
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-7305914f.cjs.dev.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-9632a214.cjs.dev.js'); });
202
202
  await deploymentsSetCommand.default(options);
203
203
  });
204
204
  commander.program.parse();
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var commander = require('commander');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-27562b4c.cjs.prod.js');
13
+ var _package = require('../../dist/package-41934c27.cjs.prod.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
15
15
  require('node:fs');
16
16
 
@@ -72,7 +72,7 @@ async function run() {
72
72
  console.log('Experimental Vite bundler enabled! 🚀');
73
73
  console.log('');
74
74
  }
75
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-dd8a1e26.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-392a2c28.cjs.prod.js'); });
75
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-dd8a1e26.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-8098feca.cjs.prod.js'); });
76
76
  await startCommand.default();
77
77
  });
78
78
 
@@ -91,7 +91,7 @@ async function run() {
91
91
  console.log('Experimental Vite bundler enabled! 🚀');
92
92
  console.log('');
93
93
  }
94
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-377f721f.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-73d1b30a.cjs.prod.js'); });
94
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-0b37a521.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-4d0acb04.cjs.prod.js'); });
95
95
  await buildCommand.default();
96
96
  const shouldAlsoCompile = !options.buildOnly;
97
97
  if (shouldAlsoCompile) {
@@ -157,7 +157,7 @@ async function run() {
157
157
 
158
158
  // Do this as the first thing so that any code reading it knows the right env.
159
159
  process.env.NODE_ENV = 'production';
160
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-2adaca14.cjs.prod.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-c3a26054.cjs.prod.js'); });
161
161
  await loginCommand.default(options);
162
162
  });
163
163
 
@@ -171,7 +171,7 @@ async function run() {
171
171
 
172
172
  // Do this as the first thing so that any code reading it knows the right env.
173
173
  process.env.NODE_ENV = 'production';
174
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-405e8cad.cjs.prod.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-b136a872.cjs.prod.js'); });
175
175
  await configSyncCommand.default(options);
176
176
  });
177
177
 
@@ -184,7 +184,7 @@ async function run() {
184
184
 
185
185
  // Do this as the first thing so that any code reading it knows the right env.
186
186
  process.env.NODE_ENV = 'production';
187
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-96ffeb0c.cjs.prod.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-ec4ece11.cjs.prod.js'); });
188
188
  await configSyncCICommand.default(options);
189
189
  });
190
190
 
@@ -198,7 +198,7 @@ async function run() {
198
198
 
199
199
  // Do this as the first thing so that any code reading it knows the right env.
200
200
  process.env.NODE_ENV = 'production';
201
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-77470ae4.cjs.prod.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-654750b1.cjs.prod.js'); });
202
202
  await deploymentsSetCommand.default(options);
203
203
  });
204
204
  commander.program.parse();
@@ -6,7 +6,7 @@ import path from 'path';
6
6
  import { program } from 'commander';
7
7
  import dotenv from 'dotenv';
8
8
  import dotenvExpand from 'dotenv-expand';
9
- import { p as pkgJson } from '../../dist/package-ddfc2379.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-19604f26.esm.js';
10
10
  import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
11
11
  import 'node:fs';
12
12
 
@@ -40,7 +40,7 @@ async function run() {
40
40
  console.log('Experimental Vite bundler enabled! 🚀');
41
41
  console.log('');
42
42
  }
43
- const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-4b0df191.esm.js') : await import('../../dist/start-20aaf669.esm.js');
43
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-4b0df191.esm.js') : await import('../../dist/start-81f19f98.esm.js');
44
44
  await startCommand.default();
45
45
  });
46
46
 
@@ -59,7 +59,7 @@ async function run() {
59
59
  console.log('Experimental Vite bundler enabled! 🚀');
60
60
  console.log('');
61
61
  }
62
- const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-2ea8a241.esm.js') : await import('../../dist/build-3f0ab974.esm.js');
62
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-782c1634.esm.js') : await import('../../dist/build-59481cb8.esm.js');
63
63
  await buildCommand.default();
64
64
  const shouldAlsoCompile = !options.buildOnly;
65
65
  if (shouldAlsoCompile) {
@@ -125,7 +125,7 @@ async function run() {
125
125
 
126
126
  // Do this as the first thing so that any code reading it knows the right env.
127
127
  process.env.NODE_ENV = 'production';
128
- const loginCommand = await import('../../dist/login-87541705.esm.js');
128
+ const loginCommand = await import('../../dist/login-fd730e9f.esm.js');
129
129
  await loginCommand.default(options);
130
130
  });
131
131
 
@@ -139,7 +139,7 @@ async function run() {
139
139
 
140
140
  // Do this as the first thing so that any code reading it knows the right env.
141
141
  process.env.NODE_ENV = 'production';
142
- const configSyncCommand = await import('../../dist/config-sync-3a9f7388.esm.js');
142
+ const configSyncCommand = await import('../../dist/config-sync-a0fbcc7b.esm.js');
143
143
  await configSyncCommand.default(options);
144
144
  });
145
145
 
@@ -152,7 +152,7 @@ async function run() {
152
152
 
153
153
  // Do this as the first thing so that any code reading it knows the right env.
154
154
  process.env.NODE_ENV = 'production';
155
- const configSyncCICommand = await import('../../dist/config-sync-ci-e0575324.esm.js');
155
+ const configSyncCICommand = await import('../../dist/config-sync-ci-3ef68289.esm.js');
156
156
  await configSyncCICommand.default(options);
157
157
  });
158
158
 
@@ -166,7 +166,7 @@ async function run() {
166
166
 
167
167
  // Do this as the first thing so that any code reading it knows the right env.
168
168
  process.env.NODE_ENV = 'production';
169
- const deploymentsSetCommand = await import('../../dist/deployment-previews-set-62483d21.esm.js');
169
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-d9c1a198.esm.js');
170
170
  await deploymentsSetCommand.default(options);
171
171
  });
172
172
  program.parse();
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-ce0a4730.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-8d271aa8.cjs.prod.js');
14
14
  var paths = require('./paths-7768b440.cjs.prod.js');
15
15
  var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -41,9 +41,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
41
41
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
43
43
  require('fs');
44
- require('./create-postcss-config-72de84c3.cjs.prod.js');
44
+ require('./create-postcss-config-55b02771.cjs.prod.js');
45
45
  require('@babel/runtime-corejs3/helpers/slicedToArray');
46
- require('./package-27562b4c.cjs.prod.js');
46
+ require('./package-41934c27.cjs.prod.js');
47
47
  require('./optimizations-da5a0cfa.cjs.prod.js');
48
48
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
49
49
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -8,7 +8,7 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
8
8
  import printBuildError from 'react-dev-utils/printBuildError';
9
9
  import webpack from 'webpack';
10
10
  import { packageLocation } from '@commercetools-frontend/assets';
11
- import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-8ca3f79b.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-bfa24d34.esm.js';
12
12
  import { p as paths } from './paths-39f22b8b.esm.js';
13
13
  import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
14
14
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
@@ -39,9 +39,9 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
39
39
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
40
40
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
41
41
  import 'fs';
42
- import './create-postcss-config-589ab552.esm.js';
42
+ import './create-postcss-config-aa23d79b.esm.js';
43
43
  import '@babel/runtime-corejs3/helpers/slicedToArray';
44
- import './package-ddfc2379.esm.js';
44
+ import './package-19604f26.esm.js';
45
45
  import './optimizations-54382f7b.esm.js';
46
46
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
47
47
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-bfffea63.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-3b44ca40.cjs.dev.js');
14
14
  var paths = require('./paths-b76fc753.cjs.dev.js');
15
15
  var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -41,9 +41,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
41
41
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
43
43
  require('fs');
44
- require('./create-postcss-config-ae2052ca.cjs.dev.js');
44
+ require('./create-postcss-config-80d0820a.cjs.dev.js');
45
45
  require('@babel/runtime-corejs3/helpers/slicedToArray');
46
- require('./package-2b40cba1.cjs.dev.js');
46
+ require('./package-fe66e14b.cjs.dev.js');
47
47
  require('./optimizations-56be74d6.cjs.dev.js');
48
48
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
49
49
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -26,6 +26,9 @@ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
26
26
  var cliLib = require('@formatjs/cli-lib');
27
27
  var pluginutils = require('@rollup/pluginutils');
28
28
  var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.cjs.prod.js');
29
+ var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
30
+ var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
31
+ var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
29
32
  var fs = require('node:fs');
30
33
  var path = require('node:path');
31
34
  var glob = require('glob');
@@ -57,6 +60,9 @@ var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfIns
57
60
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
58
61
  var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
59
62
  var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
63
+ var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
64
+ var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
65
+ var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
60
66
  var fs__default = /*#__PURE__*/_interopDefault(fs);
61
67
  var path__default = /*#__PURE__*/_interopDefault(path);
62
68
 
@@ -202,6 +208,56 @@ function vitePluginI18nMessageCompilation() {
202
208
  };
203
209
  }
204
210
 
211
+ /**
212
+ * Only a candidate filter: which links are actually rewritten is decided by
213
+ * matching `href` against the CSS assets Vite really emitted (see
214
+ * `transformIndexHtml`). That check matters, because the built HTML also
215
+ * carries stylesheet links this plugin must never touch -- the Inter/Nimbus
216
+ * font link and the `<noscript>` Open Sans fallback -- which would otherwise
217
+ * gain `data-mc-css` and start gating app reveal on a third-party request.
218
+ */
219
+ const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
220
+ const REL_STYLESHEET_RE = /\brel="stylesheet"/;
221
+ const HREF_RE = /\bhref="([^"]*)"/;
222
+
223
+ /**
224
+ * Rewrites Vite's render-blocking stylesheet links into preloads marked
225
+ * `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
226
+ * `window.onAppLoaded()` on them so the app is never revealed unstyled.
227
+ */
228
+ function pluginNonBlockingCss() {
229
+ return {
230
+ name: 'vite-plugin-non-blocking-css',
231
+ apply: 'build',
232
+ // No `enforce`: this must run after Vite's own `vite:build-html`, which
233
+ // injects the stylesheet tags during `generateBundle` and only then applies
234
+ // the normal- and post-order `transformIndexHtml` hooks.
235
+ transformIndexHtml(html, ctx) {
236
+ var _context;
237
+ // `ctx.bundle` is only set for the build, not the dev server.
238
+ if (!ctx.bundle) {
239
+ return html;
240
+ }
241
+
242
+ // Only rewrite links pointing at CSS this build actually emitted. Anything
243
+ // else in the template -- fonts, the noscript fallback, icons -- is left
244
+ // exactly as authored.
245
+ const emittedCssFileNames = _filterInstanceProperty__default["default"](_context = _Object$keys__default["default"](ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty__default["default"](fileName).call(fileName, '.css'));
246
+ if (emittedCssFileNames.length === 0) {
247
+ return html;
248
+ }
249
+ return html.replace(STYLESHEET_LINK_RE, tag => {
250
+ const href = HREF_RE.exec(tag)?.[1];
251
+
252
+ // `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
253
+ // placeholder prefix from `experimental.renderBuiltUrl`.
254
+ const isEmittedCss = href ? _someInstanceProperty__default["default"](emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty__default["default"](href).call(href, fileName)) : false;
255
+ return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
256
+ });
257
+ }
258
+ };
259
+ }
260
+
205
261
  /**
206
262
  * A simple Vite plugin to clean up files matching glob patterns after build.
207
263
  * Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
@@ -243,6 +299,8 @@ function pluginPostCleanup(options) {
243
299
  async function run() {
244
300
  var _context;
245
301
  const DEFAULT_PORT = _parseInt__default["default"](String(process.env.HTTP_PORT), 10) || 3001;
302
+ const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
303
+ const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
246
304
 
247
305
  // Ensure the `/public` folder exists.
248
306
  fs__default$1["default"].mkdirSync(paths.paths.appBuild, {
@@ -342,10 +400,18 @@ async function run() {
342
400
  patterns: ['*.react-*.svg'],
343
401
  verbose: true // logs the files that are removed
344
402
  }), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
403
+ // Rewrite Vite's render-blocking stylesheet links into preloads that
404
+ // `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
405
+ // first paint. Must stay after Vite's own `vite:build-html`.
406
+ pluginNonBlockingCss(),
345
407
  // Fail the build if the emitted chunk graph contains circular imports.
346
408
  // Chunk cycles are silent at build time but crash at runtime with TDZ
347
409
  // errors (historical "aM is undefined" from the icons/app-shell split).
348
- pluginChunkCycleCheck(), process.env.ANALYZE_BUNDLE === 'true' && viteBundleAnalyzer.analyzer({
410
+ pluginChunkCycleCheck(), shouldAnalyze && viteBundleAnalyzer.analyzer(analyzeOutput ? {
411
+ analyzerMode: 'json',
412
+ defaultSizes: 'stat',
413
+ fileName: analyzeOutput
414
+ } : {
349
415
  defaultSizes: 'stat',
350
416
  openAnalyzer: true
351
417
  }), process.env.ANALYZE_BUNDLE_TREE === 'true' && rollupPluginVisualizer.visualizer({
@@ -24,6 +24,9 @@ import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
24
24
  import { compile } from '@formatjs/cli-lib';
25
25
  import { createFilter } from '@rollup/pluginutils';
26
26
  import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-21d3b0aa.esm.js';
27
+ import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
28
+ import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
29
+ import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
27
30
  import fs from 'node:fs';
28
31
  import path from 'node:path';
29
32
  import { globSync } from 'glob';
@@ -179,6 +182,56 @@ function vitePluginI18nMessageCompilation() {
179
182
  };
180
183
  }
181
184
 
185
+ /**
186
+ * Only a candidate filter: which links are actually rewritten is decided by
187
+ * matching `href` against the CSS assets Vite really emitted (see
188
+ * `transformIndexHtml`). That check matters, because the built HTML also
189
+ * carries stylesheet links this plugin must never touch -- the Inter/Nimbus
190
+ * font link and the `<noscript>` Open Sans fallback -- which would otherwise
191
+ * gain `data-mc-css` and start gating app reveal on a third-party request.
192
+ */
193
+ const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
194
+ const REL_STYLESHEET_RE = /\brel="stylesheet"/;
195
+ const HREF_RE = /\bhref="([^"]*)"/;
196
+
197
+ /**
198
+ * Rewrites Vite's render-blocking stylesheet links into preloads marked
199
+ * `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
200
+ * `window.onAppLoaded()` on them so the app is never revealed unstyled.
201
+ */
202
+ function pluginNonBlockingCss() {
203
+ return {
204
+ name: 'vite-plugin-non-blocking-css',
205
+ apply: 'build',
206
+ // No `enforce`: this must run after Vite's own `vite:build-html`, which
207
+ // injects the stylesheet tags during `generateBundle` and only then applies
208
+ // the normal- and post-order `transformIndexHtml` hooks.
209
+ transformIndexHtml(html, ctx) {
210
+ var _context;
211
+ // `ctx.bundle` is only set for the build, not the dev server.
212
+ if (!ctx.bundle) {
213
+ return html;
214
+ }
215
+
216
+ // Only rewrite links pointing at CSS this build actually emitted. Anything
217
+ // else in the template -- fonts, the noscript fallback, icons -- is left
218
+ // exactly as authored.
219
+ const emittedCssFileNames = _filterInstanceProperty(_context = _Object$keys(ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty(fileName).call(fileName, '.css'));
220
+ if (emittedCssFileNames.length === 0) {
221
+ return html;
222
+ }
223
+ return html.replace(STYLESHEET_LINK_RE, tag => {
224
+ const href = HREF_RE.exec(tag)?.[1];
225
+
226
+ // `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
227
+ // placeholder prefix from `experimental.renderBuiltUrl`.
228
+ const isEmittedCss = href ? _someInstanceProperty(emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty(href).call(href, fileName)) : false;
229
+ return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
230
+ });
231
+ }
232
+ };
233
+ }
234
+
182
235
  /**
183
236
  * A simple Vite plugin to clean up files matching glob patterns after build.
184
237
  * Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
@@ -220,6 +273,8 @@ function pluginPostCleanup(options) {
220
273
  async function run() {
221
274
  var _context;
222
275
  const DEFAULT_PORT = _parseInt(String(process.env.HTTP_PORT), 10) || 3001;
276
+ const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
277
+ const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
223
278
 
224
279
  // Ensure the `/public` folder exists.
225
280
  fs$1.mkdirSync(paths.appBuild, {
@@ -319,10 +374,18 @@ async function run() {
319
374
  patterns: ['*.react-*.svg'],
320
375
  verbose: true // logs the files that are removed
321
376
  }), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
377
+ // Rewrite Vite's render-blocking stylesheet links into preloads that
378
+ // `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
379
+ // first paint. Must stay after Vite's own `vite:build-html`.
380
+ pluginNonBlockingCss(),
322
381
  // Fail the build if the emitted chunk graph contains circular imports.
323
382
  // Chunk cycles are silent at build time but crash at runtime with TDZ
324
383
  // errors (historical "aM is undefined" from the icons/app-shell split).
325
- pluginChunkCycleCheck(), process.env.ANALYZE_BUNDLE === 'true' && analyzer({
384
+ pluginChunkCycleCheck(), shouldAnalyze && analyzer(analyzeOutput ? {
385
+ analyzerMode: 'json',
386
+ defaultSizes: 'stat',
387
+ fileName: analyzeOutput
388
+ } : {
326
389
  defaultSizes: 'stat',
327
390
  openAnalyzer: true
328
391
  }), process.env.ANALYZE_BUNDLE_TREE === 'true' && visualizer({
@@ -26,6 +26,9 @@ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
26
26
  var cliLib = require('@formatjs/cli-lib');
27
27
  var pluginutils = require('@rollup/pluginutils');
28
28
  var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.cjs.dev.js');
29
+ var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
30
+ var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
31
+ var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
29
32
  var fs = require('node:fs');
30
33
  var path = require('node:path');
31
34
  var glob = require('glob');
@@ -57,6 +60,9 @@ var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfIns
57
60
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
58
61
  var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
59
62
  var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
63
+ var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
64
+ var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
65
+ var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
60
66
  var fs__default = /*#__PURE__*/_interopDefault(fs);
61
67
  var path__default = /*#__PURE__*/_interopDefault(path);
62
68
 
@@ -202,6 +208,56 @@ function vitePluginI18nMessageCompilation() {
202
208
  };
203
209
  }
204
210
 
211
+ /**
212
+ * Only a candidate filter: which links are actually rewritten is decided by
213
+ * matching `href` against the CSS assets Vite really emitted (see
214
+ * `transformIndexHtml`). That check matters, because the built HTML also
215
+ * carries stylesheet links this plugin must never touch -- the Inter/Nimbus
216
+ * font link and the `<noscript>` Open Sans fallback -- which would otherwise
217
+ * gain `data-mc-css` and start gating app reveal on a third-party request.
218
+ */
219
+ const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
220
+ const REL_STYLESHEET_RE = /\brel="stylesheet"/;
221
+ const HREF_RE = /\bhref="([^"]*)"/;
222
+
223
+ /**
224
+ * Rewrites Vite's render-blocking stylesheet links into preloads marked
225
+ * `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
226
+ * `window.onAppLoaded()` on them so the app is never revealed unstyled.
227
+ */
228
+ function pluginNonBlockingCss() {
229
+ return {
230
+ name: 'vite-plugin-non-blocking-css',
231
+ apply: 'build',
232
+ // No `enforce`: this must run after Vite's own `vite:build-html`, which
233
+ // injects the stylesheet tags during `generateBundle` and only then applies
234
+ // the normal- and post-order `transformIndexHtml` hooks.
235
+ transformIndexHtml(html, ctx) {
236
+ var _context;
237
+ // `ctx.bundle` is only set for the build, not the dev server.
238
+ if (!ctx.bundle) {
239
+ return html;
240
+ }
241
+
242
+ // Only rewrite links pointing at CSS this build actually emitted. Anything
243
+ // else in the template -- fonts, the noscript fallback, icons -- is left
244
+ // exactly as authored.
245
+ const emittedCssFileNames = _filterInstanceProperty__default["default"](_context = _Object$keys__default["default"](ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty__default["default"](fileName).call(fileName, '.css'));
246
+ if (emittedCssFileNames.length === 0) {
247
+ return html;
248
+ }
249
+ return html.replace(STYLESHEET_LINK_RE, tag => {
250
+ const href = HREF_RE.exec(tag)?.[1];
251
+
252
+ // `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
253
+ // placeholder prefix from `experimental.renderBuiltUrl`.
254
+ const isEmittedCss = href ? _someInstanceProperty__default["default"](emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty__default["default"](href).call(href, fileName)) : false;
255
+ return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
256
+ });
257
+ }
258
+ };
259
+ }
260
+
205
261
  /**
206
262
  * A simple Vite plugin to clean up files matching glob patterns after build.
207
263
  * Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
@@ -243,6 +299,8 @@ function pluginPostCleanup(options) {
243
299
  async function run() {
244
300
  var _context;
245
301
  const DEFAULT_PORT = _parseInt__default["default"](String(process.env.HTTP_PORT), 10) || 3001;
302
+ const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
303
+ const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
246
304
 
247
305
  // Ensure the `/public` folder exists.
248
306
  fs__default$1["default"].mkdirSync(paths.paths.appBuild, {
@@ -342,10 +400,18 @@ async function run() {
342
400
  patterns: ['*.react-*.svg'],
343
401
  verbose: true // logs the files that are removed
344
402
  }), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
403
+ // Rewrite Vite's render-blocking stylesheet links into preloads that
404
+ // `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
405
+ // first paint. Must stay after Vite's own `vite:build-html`.
406
+ pluginNonBlockingCss(),
345
407
  // Fail the build if the emitted chunk graph contains circular imports.
346
408
  // Chunk cycles are silent at build time but crash at runtime with TDZ
347
409
  // errors (historical "aM is undefined" from the icons/app-shell split).
348
- pluginChunkCycleCheck(), process.env.ANALYZE_BUNDLE === 'true' && viteBundleAnalyzer.analyzer({
410
+ pluginChunkCycleCheck(), shouldAnalyze && viteBundleAnalyzer.analyzer(analyzeOutput ? {
411
+ analyzerMode: 'json',
412
+ defaultSizes: 'stat',
413
+ fileName: analyzeOutput
414
+ } : {
349
415
  defaultSizes: 'stat',
350
416
  openAnalyzer: true
351
417
  }), process.env.ANALYZE_BUNDLE_TREE === 'true' && rollupPluginVisualizer.visualizer({
@@ -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.6";
8
+ var version = "27.10.0";
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.6";
8
+ var version = "27.10.0";
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.6";
4
+ var version = "27.10.0";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -7,9 +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-2c4435e3.cjs.dev.js');
10
+ var configSyncHelpers = require('./config-sync-helpers-d54c236e.cjs.dev.js');
11
11
  var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
12
- var graphqlRequests = require('./graphql-requests-29d4af29.cjs.dev.js');
12
+ var graphqlRequests = require('./graphql-requests-989848b0.cjs.dev.js');
13
13
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
14
14
  require('lodash/omit');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -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-2b40cba1.cjs.dev.js');
39
+ require('./package-fe66e14b.cjs.dev.js');
40
40
 
41
41
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
42
42
 
@@ -5,9 +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-a9017692.esm.js';
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-e5428026.esm.js';
9
9
  import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
10
- import { f as fetchUserOrganizations } from './graphql-requests-5120d009.esm.js';
10
+ import { f as fetchUserOrganizations } from './graphql-requests-86edba25.esm.js';
11
11
  import '@babel/runtime-corejs3/core-js-stable/json/stringify';
12
12
  import 'lodash/omit';
13
13
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -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-ddfc2379.esm.js';
37
+ import './package-19604f26.esm.js';
38
38
 
39
39
  const credentialsStorage = new CredentialsStorage();
40
40
  async function promptForOrganization(_ref) {