@commercetools-frontend/mc-scripts 22.2.1 → 22.3.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 (62) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +51 -41
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +51 -41
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +51 -41
  4. package/dist/{build-72d9896f.esm.js → build-8227e71d.esm.js} +22 -31
  5. package/dist/{build-4773d61a.cjs.dev.js → build-a888cacd.cjs.dev.js} +22 -31
  6. package/dist/{build-0ef080b9.cjs.prod.js → build-a9f085a0.cjs.prod.js} +22 -31
  7. package/dist/{build-vite-2dc2b366.cjs.prod.js → build-vite-1ba28dd8.cjs.prod.js} +18 -19
  8. package/dist/{build-vite-290aaf04.esm.js → build-vite-9de4820c.esm.js} +18 -19
  9. package/dist/{build-vite-b5c7ac91.cjs.dev.js → build-vite-e7a6315c.cjs.dev.js} +18 -19
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +2 -3
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +2 -3
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +2 -3
  13. package/dist/{compile-html-41195e35.cjs.dev.js → compile-html-079067bd.cjs.prod.js} +1 -7
  14. package/dist/{compile-html-5abd78aa.cjs.prod.js → compile-html-3ff2fed0.cjs.dev.js} +1 -7
  15. package/dist/{compile-html-f9de842c.esm.js → compile-html-606b302e.esm.js} +1 -7
  16. package/dist/{config-sync-8e8e18a9.cjs.prod.js → config-sync-058dca05.cjs.prod.js} +81 -193
  17. package/dist/{config-sync-c914ca7a.cjs.dev.js → config-sync-866d8c22.cjs.dev.js} +83 -194
  18. package/dist/{config-sync-54299066.esm.js → config-sync-dc5a68ed.esm.js} +83 -194
  19. package/dist/{create-postcss-config-f39f54b5.esm.js → create-postcss-config-9d266de4.esm.js} +9 -13
  20. package/dist/{create-postcss-config-a0659cf5.cjs.dev.js → create-postcss-config-a29e83fc.cjs.dev.js} +9 -13
  21. package/dist/{create-postcss-config-6277233e.cjs.prod.js → create-postcss-config-d4f8ca51.cjs.prod.js} +9 -13
  22. package/dist/{create-webpack-config-for-development-629a8982.cjs.prod.js → create-webpack-config-for-development-02fa9041.cjs.prod.js} +46 -37
  23. package/dist/{create-webpack-config-for-development-9539f804.esm.js → create-webpack-config-for-development-17376d1f.esm.js} +46 -37
  24. package/dist/{create-webpack-config-for-development-9aa85081.cjs.dev.js → create-webpack-config-for-development-ac4ad0b2.cjs.dev.js} +46 -37
  25. package/dist/{create-webpack-config-for-production-84e2db7d.cjs.prod.js → create-webpack-config-for-production-190c7797.cjs.prod.js} +37 -32
  26. package/dist/{create-webpack-config-for-production-4476fc5f.esm.js → create-webpack-config-for-production-25d7c593.esm.js} +37 -32
  27. package/dist/{create-webpack-config-for-production-0fac47e1.cjs.dev.js → create-webpack-config-for-production-c1ec1058.cjs.dev.js} +37 -32
  28. package/dist/{credentials-storage-5939dd35.esm.js → credentials-storage-5a3b88be.esm.js} +3 -15
  29. package/dist/{credentials-storage-da0754c9.cjs.dev.js → credentials-storage-5d3da1c0.cjs.prod.js} +3 -15
  30. package/dist/{credentials-storage-fc0c59c3.cjs.prod.js → credentials-storage-6c51d561.cjs.dev.js} +3 -15
  31. package/dist/declarations/src/generated/settings.d.ts +90 -1172
  32. package/dist/{has-jsx-runtime-0b03b72e.cjs.prod.js → has-jsx-runtime-aa5d21ee.cjs.dev.js} +0 -2
  33. package/dist/{has-jsx-runtime-3d4bb633.cjs.dev.js → has-jsx-runtime-c3202df5.cjs.prod.js} +0 -2
  34. package/dist/{has-jsx-runtime-8314226e.esm.js → has-jsx-runtime-e3ecb09b.esm.js} +0 -2
  35. package/dist/{login-9f821336.cjs.dev.js → login-0dc4f62a.cjs.prod.js} +12 -23
  36. package/dist/{login-d1c2268a.esm.js → login-1b051481.esm.js} +12 -23
  37. package/dist/{login-f747390f.cjs.prod.js → login-9f35d543.cjs.dev.js} +12 -23
  38. package/dist/{package-83202e32.cjs.prod.js → package-46d27f5f.cjs.dev.js} +15 -13
  39. package/dist/{package-e6713e98.esm.js → package-4fcd2667.esm.js} +15 -13
  40. package/dist/{package-cc5b8665.cjs.dev.js → package-6ee0354d.cjs.prod.js} +15 -13
  41. package/dist/{paths-284c77fb.cjs.prod.js → paths-854af5ef.cjs.prod.js} +8 -12
  42. package/dist/{paths-db35ac0f.cjs.dev.js → paths-d1febc82.cjs.dev.js} +8 -12
  43. package/dist/{paths-55c5d5a2.esm.js → paths-ded20ae1.esm.js} +8 -12
  44. package/dist/{serve-b8063204.cjs.dev.js → serve-12571b42.cjs.prod.js} +1 -2
  45. package/dist/{serve-660e2ee0.esm.js → serve-65b5a149.esm.js} +1 -2
  46. package/dist/{serve-41077dad.cjs.prod.js → serve-7339c495.cjs.dev.js} +1 -2
  47. package/dist/{start-33fd6d70.cjs.dev.js → start-216f84b7.cjs.dev.js} +26 -34
  48. package/dist/{start-93205b87.esm.js → start-4a922c4f.esm.js} +26 -34
  49. package/dist/{start-f93c62f9.cjs.prod.js → start-b2e2dab7.cjs.prod.js} +26 -34
  50. package/dist/{start-vite-8f03b0df.cjs.dev.js → start-vite-3966d625.cjs.dev.js} +18 -17
  51. package/dist/{start-vite-324af14d.cjs.prod.js → start-vite-5c78605b.cjs.prod.js} +18 -17
  52. package/dist/{start-vite-7d10ae71.esm.js → start-vite-cf0213a1.esm.js} +18 -17
  53. package/dist/{vite-plugin-svgr-f17db78a.esm.js → vite-plugin-svgr-5c953fe7.esm.js} +1 -6
  54. package/dist/{vite-plugin-svgr-fdb37ccf.cjs.dev.js → vite-plugin-svgr-5eb1c511.cjs.dev.js} +1 -6
  55. package/dist/{vite-plugin-svgr-9a4e7f77.cjs.prod.js → vite-plugin-svgr-a732f8df.cjs.prod.js} +1 -6
  56. package/package.json +31 -17
  57. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  58. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  59. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  60. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +6 -6
  61. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +6 -6
  62. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +6 -6
@@ -4,10 +4,8 @@ function hasJsxRuntime() {
4
4
  if (process.env.ENABLE_NEW_JSX_TRANSFORM !== 'true') {
5
5
  return false;
6
6
  }
7
-
8
7
  try {
9
8
  require.resolve('react/jsx-runtime');
10
-
11
9
  return true;
12
10
  } catch (e) {
13
11
  return false;
@@ -4,10 +4,8 @@ function hasJsxRuntime() {
4
4
  if (process.env.ENABLE_NEW_JSX_TRANSFORM !== 'true') {
5
5
  return false;
6
6
  }
7
-
8
7
  try {
9
8
  require.resolve('react/jsx-runtime');
10
-
11
9
  return true;
12
10
  } catch (e) {
13
11
  return false;
@@ -2,10 +2,8 @@ function hasJsxRuntime() {
2
2
  if (process.env.ENABLE_NEW_JSX_TRANSFORM !== 'true') {
3
3
  return false;
4
4
  }
5
-
6
5
  try {
7
6
  require.resolve('react/jsx-runtime');
8
-
9
7
  return true;
10
8
  } catch (e) {
11
9
  return false;
@@ -5,9 +5,9 @@ var prompts = require('prompts');
5
5
  var applicationConfig = require('@commercetools-frontend/application-config');
6
6
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
7
7
  var fetch = require('node-fetch');
8
- var credentialsStorage$1 = require('./credentials-storage-da0754c9.cjs.dev.js');
8
+ var credentialsStorage$1 = require('./credentials-storage-5d3da1c0.cjs.prod.js');
9
9
  require('@commercetools/http-user-agent');
10
- require('./package-cc5b8665.cjs.dev.js');
10
+ require('./package-6ee0354d.cjs.prod.js');
11
11
  require('@babel/runtime-corejs3/helpers/classCallCheck');
12
12
  require('@babel/runtime-corejs3/helpers/createClass');
13
13
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -32,56 +32,45 @@ const getAuthToken = async (mcApiUrl, payload) => {
32
32
  },
33
33
  body: _JSON$stringify__default["default"](payload)
34
34
  });
35
-
36
35
  if (!response.ok) {
37
36
  const text = await response.text();
38
37
  let parsed;
39
-
40
38
  try {
41
39
  parsed = JSON.parse(text);
42
40
  } catch (error) {}
43
-
44
41
  const errorMessage = parsed ? parsed.message : text;
45
42
  throw new Error(errorMessage);
46
43
  }
47
-
48
44
  const authToken = await response.json();
49
45
  return authToken;
50
46
  };
51
47
 
52
48
  const credentialsStorage = new credentialsStorage$1.CredentialsStorage();
53
-
54
49
  async function run() {
55
50
  const applicationConfig$1 = applicationConfig.processConfig();
56
51
  const mcApiUrl = applicationConfig$1.env.mcApiUrl;
57
52
  console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
58
53
  console.log();
59
-
60
54
  if (credentialsStorage.isSessionValid(mcApiUrl)) {
61
55
  console.log("You already have a valid session.");
62
56
  return;
63
57
  }
64
-
65
58
  console.log("Enter the login credentials:");
66
-
67
59
  const _await$prompts = await prompts__default["default"]({
68
- type: 'text',
69
- name: 'email',
70
- message: 'Email'
71
- }),
72
- email = _await$prompts.email;
73
-
60
+ type: 'text',
61
+ name: 'email',
62
+ message: 'Email'
63
+ }),
64
+ email = _await$prompts.email;
74
65
  const _await$prompts2 = await prompts__default["default"]({
75
- type: 'invisible',
76
- name: 'password',
77
- message: 'Password (hidden)'
78
- }),
79
- password = _await$prompts2.password;
80
-
66
+ type: 'invisible',
67
+ name: 'password',
68
+ message: 'Password (hidden)'
69
+ }),
70
+ password = _await$prompts2.password;
81
71
  if (!email || !password) {
82
72
  throw new Error("Missing email or password values. Aborting.");
83
73
  }
84
-
85
74
  const credentials = await getAuthToken(mcApiUrl, {
86
75
  email,
87
76
  password
@@ -3,9 +3,9 @@ import prompts from 'prompts';
3
3
  import { processConfig } from '@commercetools-frontend/application-config';
4
4
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
5
5
  import fetch from 'node-fetch';
6
- import { u as userAgent, C as CredentialsStorage } from './credentials-storage-5939dd35.esm.js';
6
+ import { u as userAgent, C as CredentialsStorage } from './credentials-storage-5a3b88be.esm.js';
7
7
  import '@commercetools/http-user-agent';
8
- import './package-e6713e98.esm.js';
8
+ import './package-4fcd2667.esm.js';
9
9
  import '@babel/runtime-corejs3/helpers/classCallCheck';
10
10
  import '@babel/runtime-corejs3/helpers/createClass';
11
11
  import '@babel/runtime-corejs3/core-js-stable/date/now';
@@ -23,56 +23,45 @@ const getAuthToken = async (mcApiUrl, payload) => {
23
23
  },
24
24
  body: _JSON$stringify(payload)
25
25
  });
26
-
27
26
  if (!response.ok) {
28
27
  const text = await response.text();
29
28
  let parsed;
30
-
31
29
  try {
32
30
  parsed = JSON.parse(text);
33
31
  } catch (error) {}
34
-
35
32
  const errorMessage = parsed ? parsed.message : text;
36
33
  throw new Error(errorMessage);
37
34
  }
38
-
39
35
  const authToken = await response.json();
40
36
  return authToken;
41
37
  };
42
38
 
43
39
  const credentialsStorage = new CredentialsStorage();
44
-
45
40
  async function run() {
46
41
  const applicationConfig = processConfig();
47
42
  const mcApiUrl = applicationConfig.env.mcApiUrl;
48
43
  console.log("Using Merchant Center environment \"".concat(chalk.green(mcApiUrl), "\"."));
49
44
  console.log();
50
-
51
45
  if (credentialsStorage.isSessionValid(mcApiUrl)) {
52
46
  console.log("You already have a valid session.");
53
47
  return;
54
48
  }
55
-
56
49
  console.log("Enter the login credentials:");
57
-
58
50
  const _await$prompts = await prompts({
59
- type: 'text',
60
- name: 'email',
61
- message: 'Email'
62
- }),
63
- email = _await$prompts.email;
64
-
51
+ type: 'text',
52
+ name: 'email',
53
+ message: 'Email'
54
+ }),
55
+ email = _await$prompts.email;
65
56
  const _await$prompts2 = await prompts({
66
- type: 'invisible',
67
- name: 'password',
68
- message: 'Password (hidden)'
69
- }),
70
- password = _await$prompts2.password;
71
-
57
+ type: 'invisible',
58
+ name: 'password',
59
+ message: 'Password (hidden)'
60
+ }),
61
+ password = _await$prompts2.password;
72
62
  if (!email || !password) {
73
63
  throw new Error("Missing email or password values. Aborting.");
74
64
  }
75
-
76
65
  const credentials = await getAuthToken(mcApiUrl, {
77
66
  email,
78
67
  password
@@ -5,9 +5,9 @@ var prompts = require('prompts');
5
5
  var applicationConfig = require('@commercetools-frontend/application-config');
6
6
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
7
7
  var fetch = require('node-fetch');
8
- var credentialsStorage$1 = require('./credentials-storage-fc0c59c3.cjs.prod.js');
8
+ var credentialsStorage$1 = require('./credentials-storage-6c51d561.cjs.dev.js');
9
9
  require('@commercetools/http-user-agent');
10
- require('./package-83202e32.cjs.prod.js');
10
+ require('./package-46d27f5f.cjs.dev.js');
11
11
  require('@babel/runtime-corejs3/helpers/classCallCheck');
12
12
  require('@babel/runtime-corejs3/helpers/createClass');
13
13
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -32,56 +32,45 @@ const getAuthToken = async (mcApiUrl, payload) => {
32
32
  },
33
33
  body: _JSON$stringify__default["default"](payload)
34
34
  });
35
-
36
35
  if (!response.ok) {
37
36
  const text = await response.text();
38
37
  let parsed;
39
-
40
38
  try {
41
39
  parsed = JSON.parse(text);
42
40
  } catch (error) {}
43
-
44
41
  const errorMessage = parsed ? parsed.message : text;
45
42
  throw new Error(errorMessage);
46
43
  }
47
-
48
44
  const authToken = await response.json();
49
45
  return authToken;
50
46
  };
51
47
 
52
48
  const credentialsStorage = new credentialsStorage$1.CredentialsStorage();
53
-
54
49
  async function run() {
55
50
  const applicationConfig$1 = applicationConfig.processConfig();
56
51
  const mcApiUrl = applicationConfig$1.env.mcApiUrl;
57
52
  console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
58
53
  console.log();
59
-
60
54
  if (credentialsStorage.isSessionValid(mcApiUrl)) {
61
55
  console.log("You already have a valid session.");
62
56
  return;
63
57
  }
64
-
65
58
  console.log("Enter the login credentials:");
66
-
67
59
  const _await$prompts = await prompts__default["default"]({
68
- type: 'text',
69
- name: 'email',
70
- message: 'Email'
71
- }),
72
- email = _await$prompts.email;
73
-
60
+ type: 'text',
61
+ name: 'email',
62
+ message: 'Email'
63
+ }),
64
+ email = _await$prompts.email;
74
65
  const _await$prompts2 = await prompts__default["default"]({
75
- type: 'invisible',
76
- name: 'password',
77
- message: 'Password (hidden)'
78
- }),
79
- password = _await$prompts2.password;
80
-
66
+ type: 'invisible',
67
+ name: 'password',
68
+ message: 'Password (hidden)'
69
+ }),
70
+ password = _await$prompts2.password;
81
71
  if (!email || !password) {
82
72
  throw new Error("Missing email or password values. Aborting.");
83
73
  }
84
-
85
74
  const credentials = await getAuthToken(mcApiUrl, {
86
75
  email,
87
76
  password
@@ -2,7 +2,7 @@
2
2
 
3
3
  var pkgJson = {
4
4
  name: "@commercetools-frontend/mc-scripts",
5
- version: "22.2.1",
5
+ version: "22.3.0",
6
6
  description: "Configuration and scripts for developing a MC application",
7
7
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
8
8
  repository: {
@@ -60,12 +60,13 @@ var pkgJson = {
60
60
  "@babel/core": "^7.20.12",
61
61
  "@babel/runtime": "^7.20.13",
62
62
  "@babel/runtime-corejs3": "^7.20.13",
63
- "@commercetools-frontend/application-config": "22.2.1",
64
- "@commercetools-frontend/assets": "22.2.1",
65
- "@commercetools-frontend/babel-preset-mc-app": "22.2.1",
66
- "@commercetools-frontend/constants": "22.2.1",
67
- "@commercetools-frontend/mc-dev-authentication": "22.2.1",
68
- "@commercetools-frontend/mc-html-template": "22.2.1",
63
+ "@commercetools-frontend/application-components": "22.3.0",
64
+ "@commercetools-frontend/application-config": "22.3.0",
65
+ "@commercetools-frontend/assets": "22.3.0",
66
+ "@commercetools-frontend/babel-preset-mc-app": "22.3.0",
67
+ "@commercetools-frontend/constants": "22.3.0",
68
+ "@commercetools-frontend/mc-dev-authentication": "22.3.0",
69
+ "@commercetools-frontend/mc-html-template": "22.3.0",
69
70
  "@commercetools/http-user-agent": "3.0.0",
70
71
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
71
72
  "@rollup/plugin-graphql": "2.0.3",
@@ -77,7 +78,7 @@ var pkgJson = {
77
78
  "@types/svgo": "^2.6.4",
78
79
  "@types/webpack-bundle-analyzer": "^4.6.0",
79
80
  "@vitejs/plugin-react": "4.0.0",
80
- "@vitejs/plugin-react-swc": "3.3.0",
81
+ "@vitejs/plugin-react-swc": "3.3.1",
81
82
  autoprefixer: "^10.4.13",
82
83
  "babel-loader": "8.3.0",
83
84
  browserslist: "^4.21.5",
@@ -96,8 +97,9 @@ var pkgJson = {
96
97
  "json-loader": "0.5.7",
97
98
  lodash: "4.17.21",
98
99
  "mini-css-extract-plugin": "2.7.5",
100
+ moment: "^2.29.4",
99
101
  "moment-locales-webpack-plugin": "1.2.0",
100
- "node-fetch": "2.6.9",
102
+ "node-fetch": "2.6.11",
101
103
  postcss: "8.4.23",
102
104
  "postcss-custom-media": "8.0.2",
103
105
  "postcss-custom-properties": "12.1.4",
@@ -113,13 +115,13 @@ var pkgJson = {
113
115
  shelljs: "0.8.5",
114
116
  "style-loader": "3.3.2",
115
117
  "svg-url-loader": "7.1.1",
116
- "terser-webpack-plugin": "5.3.7",
118
+ "terser-webpack-plugin": "5.3.8",
117
119
  "thread-loader": "3.0.4",
118
120
  url: "^0.11.0",
119
- vite: "4.3.2",
120
- webpack: "5.80.0",
121
+ vite: "4.3.5",
122
+ webpack: "5.82.1",
121
123
  "webpack-bundle-analyzer": "4.8.0",
122
- "webpack-dev-server": "4.13.3",
124
+ "webpack-dev-server": "4.15.0",
123
125
  webpackbar: "5.0.2"
124
126
  },
125
127
  devDependencies: {
@@ -1,6 +1,6 @@
1
1
  var pkgJson = {
2
2
  name: "@commercetools-frontend/mc-scripts",
3
- version: "22.2.1",
3
+ version: "22.3.0",
4
4
  description: "Configuration and scripts for developing a MC application",
5
5
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  repository: {
@@ -58,12 +58,13 @@ var pkgJson = {
58
58
  "@babel/core": "^7.20.12",
59
59
  "@babel/runtime": "^7.20.13",
60
60
  "@babel/runtime-corejs3": "^7.20.13",
61
- "@commercetools-frontend/application-config": "22.2.1",
62
- "@commercetools-frontend/assets": "22.2.1",
63
- "@commercetools-frontend/babel-preset-mc-app": "22.2.1",
64
- "@commercetools-frontend/constants": "22.2.1",
65
- "@commercetools-frontend/mc-dev-authentication": "22.2.1",
66
- "@commercetools-frontend/mc-html-template": "22.2.1",
61
+ "@commercetools-frontend/application-components": "22.3.0",
62
+ "@commercetools-frontend/application-config": "22.3.0",
63
+ "@commercetools-frontend/assets": "22.3.0",
64
+ "@commercetools-frontend/babel-preset-mc-app": "22.3.0",
65
+ "@commercetools-frontend/constants": "22.3.0",
66
+ "@commercetools-frontend/mc-dev-authentication": "22.3.0",
67
+ "@commercetools-frontend/mc-html-template": "22.3.0",
67
68
  "@commercetools/http-user-agent": "3.0.0",
68
69
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
69
70
  "@rollup/plugin-graphql": "2.0.3",
@@ -75,7 +76,7 @@ var pkgJson = {
75
76
  "@types/svgo": "^2.6.4",
76
77
  "@types/webpack-bundle-analyzer": "^4.6.0",
77
78
  "@vitejs/plugin-react": "4.0.0",
78
- "@vitejs/plugin-react-swc": "3.3.0",
79
+ "@vitejs/plugin-react-swc": "3.3.1",
79
80
  autoprefixer: "^10.4.13",
80
81
  "babel-loader": "8.3.0",
81
82
  browserslist: "^4.21.5",
@@ -94,8 +95,9 @@ var pkgJson = {
94
95
  "json-loader": "0.5.7",
95
96
  lodash: "4.17.21",
96
97
  "mini-css-extract-plugin": "2.7.5",
98
+ moment: "^2.29.4",
97
99
  "moment-locales-webpack-plugin": "1.2.0",
98
- "node-fetch": "2.6.9",
100
+ "node-fetch": "2.6.11",
99
101
  postcss: "8.4.23",
100
102
  "postcss-custom-media": "8.0.2",
101
103
  "postcss-custom-properties": "12.1.4",
@@ -111,13 +113,13 @@ var pkgJson = {
111
113
  shelljs: "0.8.5",
112
114
  "style-loader": "3.3.2",
113
115
  "svg-url-loader": "7.1.1",
114
- "terser-webpack-plugin": "5.3.7",
116
+ "terser-webpack-plugin": "5.3.8",
115
117
  "thread-loader": "3.0.4",
116
118
  url: "^0.11.0",
117
- vite: "4.3.2",
118
- webpack: "5.80.0",
119
+ vite: "4.3.5",
120
+ webpack: "5.82.1",
119
121
  "webpack-bundle-analyzer": "4.8.0",
120
- "webpack-dev-server": "4.13.3",
122
+ "webpack-dev-server": "4.15.0",
121
123
  webpackbar: "5.0.2"
122
124
  },
123
125
  devDependencies: {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var pkgJson = {
4
4
  name: "@commercetools-frontend/mc-scripts",
5
- version: "22.2.1",
5
+ version: "22.3.0",
6
6
  description: "Configuration and scripts for developing a MC application",
7
7
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
8
8
  repository: {
@@ -60,12 +60,13 @@ var pkgJson = {
60
60
  "@babel/core": "^7.20.12",
61
61
  "@babel/runtime": "^7.20.13",
62
62
  "@babel/runtime-corejs3": "^7.20.13",
63
- "@commercetools-frontend/application-config": "22.2.1",
64
- "@commercetools-frontend/assets": "22.2.1",
65
- "@commercetools-frontend/babel-preset-mc-app": "22.2.1",
66
- "@commercetools-frontend/constants": "22.2.1",
67
- "@commercetools-frontend/mc-dev-authentication": "22.2.1",
68
- "@commercetools-frontend/mc-html-template": "22.2.1",
63
+ "@commercetools-frontend/application-components": "22.3.0",
64
+ "@commercetools-frontend/application-config": "22.3.0",
65
+ "@commercetools-frontend/assets": "22.3.0",
66
+ "@commercetools-frontend/babel-preset-mc-app": "22.3.0",
67
+ "@commercetools-frontend/constants": "22.3.0",
68
+ "@commercetools-frontend/mc-dev-authentication": "22.3.0",
69
+ "@commercetools-frontend/mc-html-template": "22.3.0",
69
70
  "@commercetools/http-user-agent": "3.0.0",
70
71
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
71
72
  "@rollup/plugin-graphql": "2.0.3",
@@ -77,7 +78,7 @@ var pkgJson = {
77
78
  "@types/svgo": "^2.6.4",
78
79
  "@types/webpack-bundle-analyzer": "^4.6.0",
79
80
  "@vitejs/plugin-react": "4.0.0",
80
- "@vitejs/plugin-react-swc": "3.3.0",
81
+ "@vitejs/plugin-react-swc": "3.3.1",
81
82
  autoprefixer: "^10.4.13",
82
83
  "babel-loader": "8.3.0",
83
84
  browserslist: "^4.21.5",
@@ -96,8 +97,9 @@ var pkgJson = {
96
97
  "json-loader": "0.5.7",
97
98
  lodash: "4.17.21",
98
99
  "mini-css-extract-plugin": "2.7.5",
100
+ moment: "^2.29.4",
99
101
  "moment-locales-webpack-plugin": "1.2.0",
100
- "node-fetch": "2.6.9",
102
+ "node-fetch": "2.6.11",
101
103
  postcss: "8.4.23",
102
104
  "postcss-custom-media": "8.0.2",
103
105
  "postcss-custom-properties": "12.1.4",
@@ -113,13 +115,13 @@ var pkgJson = {
113
115
  shelljs: "0.8.5",
114
116
  "style-loader": "3.3.2",
115
117
  "svg-url-loader": "7.1.1",
116
- "terser-webpack-plugin": "5.3.7",
118
+ "terser-webpack-plugin": "5.3.8",
117
119
  "thread-loader": "3.0.4",
118
120
  url: "^0.11.0",
119
- vite: "4.3.2",
120
- webpack: "5.80.0",
121
+ vite: "4.3.5",
122
+ webpack: "5.82.1",
121
123
  "webpack-bundle-analyzer": "4.8.0",
122
- "webpack-dev-server": "4.13.3",
124
+ "webpack-dev-server": "4.15.0",
123
125
  webpackbar: "5.0.2"
124
126
  },
125
127
  devDependencies: {
@@ -12,32 +12,28 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
12
12
  var fs__default = /*#__PURE__*/_interopDefault(fs);
13
13
  var path__default = /*#__PURE__*/_interopDefault(path);
14
14
 
15
- const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx']; // Make sure any symlinks in the project folder are resolved:
16
- // https://github.com/facebook/create-react-app/issues/637
15
+ const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
17
16
 
17
+ // Make sure any symlinks in the project folder are resolved:
18
+ // https://github.com/facebook/create-react-app/issues/637
18
19
  const appDirectory = fs__default["default"].realpathSync(process.cwd());
20
+ const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath);
19
21
 
20
- const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath); // Resolve file paths in the order given
21
-
22
-
22
+ // Resolve file paths in the order given
23
23
  const resolveModule = (resolveFn, filePath) => {
24
24
  const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => {
25
25
  var _context;
26
-
27
26
  return fs__default["default"].existsSync(resolveFn(_concatInstanceProperty__default["default"](_context = "".concat(filePath, ".")).call(_context, extension)));
28
27
  });
29
-
30
28
  if (extension) {
31
29
  var _context2;
32
-
33
30
  return resolveFn(_concatInstanceProperty__default["default"](_context2 = "".concat(filePath, ".")).call(_context2, extension));
34
31
  }
35
-
36
32
  return resolveFn("".concat(filePath, ".js"));
37
- }; // Resolve the absolute path of the caller location. This is necessary
38
- // to point to files within that folder.
39
-
33
+ };
40
34
 
35
+ // Resolve the absolute path of the caller location. This is necessary
36
+ // to point to files within that folder.
41
37
  const paths = {
42
38
  appPackageJson: resolveApp('package.json'),
43
39
  appBuild: resolveApp('public'),
@@ -12,32 +12,28 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
12
12
  var fs__default = /*#__PURE__*/_interopDefault(fs);
13
13
  var path__default = /*#__PURE__*/_interopDefault(path);
14
14
 
15
- const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx']; // Make sure any symlinks in the project folder are resolved:
16
- // https://github.com/facebook/create-react-app/issues/637
15
+ const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
17
16
 
17
+ // Make sure any symlinks in the project folder are resolved:
18
+ // https://github.com/facebook/create-react-app/issues/637
18
19
  const appDirectory = fs__default["default"].realpathSync(process.cwd());
20
+ const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath);
19
21
 
20
- const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath); // Resolve file paths in the order given
21
-
22
-
22
+ // Resolve file paths in the order given
23
23
  const resolveModule = (resolveFn, filePath) => {
24
24
  const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => {
25
25
  var _context;
26
-
27
26
  return fs__default["default"].existsSync(resolveFn(_concatInstanceProperty__default["default"](_context = "".concat(filePath, ".")).call(_context, extension)));
28
27
  });
29
-
30
28
  if (extension) {
31
29
  var _context2;
32
-
33
30
  return resolveFn(_concatInstanceProperty__default["default"](_context2 = "".concat(filePath, ".")).call(_context2, extension));
34
31
  }
35
-
36
32
  return resolveFn("".concat(filePath, ".js"));
37
- }; // Resolve the absolute path of the caller location. This is necessary
38
- // to point to files within that folder.
39
-
33
+ };
40
34
 
35
+ // Resolve the absolute path of the caller location. This is necessary
36
+ // to point to files within that folder.
41
37
  const paths = {
42
38
  appPackageJson: resolveApp('package.json'),
43
39
  appBuild: resolveApp('public'),
@@ -3,32 +3,28 @@ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
3
3
  import fs from 'fs';
4
4
  import path from 'path';
5
5
 
6
- const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx']; // Make sure any symlinks in the project folder are resolved:
7
- // https://github.com/facebook/create-react-app/issues/637
6
+ const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
8
7
 
8
+ // Make sure any symlinks in the project folder are resolved:
9
+ // https://github.com/facebook/create-react-app/issues/637
9
10
  const appDirectory = fs.realpathSync(process.cwd());
11
+ const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
10
12
 
11
- const resolveApp = relativePath => path.resolve(appDirectory, relativePath); // Resolve file paths in the order given
12
-
13
-
13
+ // Resolve file paths in the order given
14
14
  const resolveModule = (resolveFn, filePath) => {
15
15
  const extension = _findInstanceProperty(moduleFileExtensions).call(moduleFileExtensions, extension => {
16
16
  var _context;
17
-
18
17
  return fs.existsSync(resolveFn(_concatInstanceProperty(_context = "".concat(filePath, ".")).call(_context, extension)));
19
18
  });
20
-
21
19
  if (extension) {
22
20
  var _context2;
23
-
24
21
  return resolveFn(_concatInstanceProperty(_context2 = "".concat(filePath, ".")).call(_context2, extension));
25
22
  }
26
-
27
23
  return resolveFn("".concat(filePath, ".js"));
28
- }; // Resolve the absolute path of the caller location. This is necessary
29
- // to point to files within that folder.
30
-
24
+ };
31
25
 
26
+ // Resolve the absolute path of the caller location. This is necessary
27
+ // to point to files within that folder.
32
28
  const paths = {
33
29
  appPackageJson: resolveApp('package.json'),
34
30
  appBuild: resolveApp('public'),
@@ -2,7 +2,7 @@
2
2
 
3
3
  var http = require('http');
4
4
  var serveHandler = require('serve-handler');
5
- var paths = require('./paths-db35ac0f.cjs.dev.js');
5
+ var paths = require('./paths-854af5ef.cjs.prod.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
8
8
  require('fs');
@@ -14,7 +14,6 @@ var http__default = /*#__PURE__*/_interopDefault(http);
14
14
  var serveHandler__default = /*#__PURE__*/_interopDefault(serveHandler);
15
15
 
16
16
  const port = 3001;
17
-
18
17
  async function run() {
19
18
  const server = http__default["default"].createServer((request, response) => {
20
19
  // You pass two more arguments for config and middleware
@@ -1,13 +1,12 @@
1
1
  import http from 'http';
2
2
  import serveHandler from 'serve-handler';
3
- import { p as paths } from './paths-55c5d5a2.esm.js';
3
+ import { p as paths } from './paths-ded20ae1.esm.js';
4
4
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
5
5
  import '@babel/runtime-corejs3/core-js-stable/instance/concat';
6
6
  import 'fs';
7
7
  import 'path';
8
8
 
9
9
  const port = 3001;
10
-
11
10
  async function run() {
12
11
  const server = http.createServer((request, response) => {
13
12
  // You pass two more arguments for config and middleware
@@ -2,7 +2,7 @@
2
2
 
3
3
  var http = require('http');
4
4
  var serveHandler = require('serve-handler');
5
- var paths = require('./paths-284c77fb.cjs.prod.js');
5
+ var paths = require('./paths-d1febc82.cjs.dev.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
8
8
  require('fs');
@@ -14,7 +14,6 @@ var http__default = /*#__PURE__*/_interopDefault(http);
14
14
  var serveHandler__default = /*#__PURE__*/_interopDefault(serveHandler);
15
15
 
16
16
  const port = 3001;
17
-
18
17
  async function run() {
19
18
  const server = http__default["default"].createServer((request, response) => {
20
19
  // You pass two more arguments for config and middleware