@commercetools-frontend/mc-scripts 0.0.0-CRAFT-1791-20251006162610

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 (121) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts +2 -0
  4. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +7 -0
  5. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.js +7 -0
  6. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +7 -0
  7. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +5 -0
  8. package/application-runtime/package.json +4 -0
  9. package/bin/cli.js +8 -0
  10. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts +2 -0
  11. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +199 -0
  12. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.js +7 -0
  13. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +199 -0
  14. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +184 -0
  15. package/cli/package.json +4 -0
  16. package/config/create-webpack-config-for-development.js +8 -0
  17. package/config/create-webpack-config-for-production.js +8 -0
  18. package/config/vendors-to-transpile.js +6 -0
  19. package/dist/build-2a0a18bd.esm.js +155 -0
  20. package/dist/build-521f3f9f.cjs.prod.js +169 -0
  21. package/dist/build-988fc0f7.cjs.dev.js +169 -0
  22. package/dist/build-vite-16b1a575.cjs.dev.js +238 -0
  23. package/dist/build-vite-59e1f185.esm.js +208 -0
  24. package/dist/build-vite-5d317720.cjs.prod.js +238 -0
  25. package/dist/commercetools-frontend-mc-scripts.cjs.d.ts +2 -0
  26. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +29 -0
  27. package/dist/commercetools-frontend-mc-scripts.cjs.js +7 -0
  28. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +29 -0
  29. package/dist/commercetools-frontend-mc-scripts.esm.js +21 -0
  30. package/dist/compile-html-025cd493.esm.js +34 -0
  31. package/dist/compile-html-50fd05ec.cjs.prod.js +42 -0
  32. package/dist/compile-html-f4ac88cc.cjs.dev.js +42 -0
  33. package/dist/config-sync-70a16916.cjs.dev.js +852 -0
  34. package/dist/config-sync-72c20d80.cjs.prod.js +846 -0
  35. package/dist/config-sync-bc895390.esm.js +830 -0
  36. package/dist/create-postcss-config-cb7be312.cjs.dev.js +81 -0
  37. package/dist/create-postcss-config-dde0ccf1.esm.js +75 -0
  38. package/dist/create-postcss-config-edca0c33.cjs.prod.js +81 -0
  39. package/dist/create-webpack-config-for-development-1aed1cc0.cjs.prod.js +465 -0
  40. package/dist/create-webpack-config-for-development-a95f3634.esm.js +440 -0
  41. package/dist/create-webpack-config-for-development-d003697b.cjs.dev.js +465 -0
  42. package/dist/create-webpack-config-for-production-15fbe7db.cjs.dev.js +523 -0
  43. package/dist/create-webpack-config-for-production-764c482f.cjs.prod.js +523 -0
  44. package/dist/create-webpack-config-for-production-9f42c336.esm.js +493 -0
  45. package/dist/credentials-storage-66c1e51f.cjs.prod.js +95 -0
  46. package/dist/credentials-storage-d001f726.esm.js +83 -0
  47. package/dist/credentials-storage-e7884d17.cjs.dev.js +95 -0
  48. package/dist/declarations/src/application-runtime.d.ts +1 -0
  49. package/dist/declarations/src/cli.d.ts +4 -0
  50. package/dist/declarations/src/config/create-postcss-config.d.ts +4 -0
  51. package/dist/declarations/src/config/create-webpack-config-for-development.d.ts +10 -0
  52. package/dist/declarations/src/config/create-webpack-config-for-production.d.ts +10 -0
  53. package/dist/declarations/src/config/vendors-to-transpile.d.ts +2 -0
  54. package/dist/declarations/src/deprecated-entry-points.d.ts +7 -0
  55. package/dist/declarations/src/index.d.ts +3 -0
  56. package/dist/declarations/src/postcss.d.ts +1 -0
  57. package/dist/declarations/src/types.d.ts +94 -0
  58. package/dist/declarations/src/version.d.ts +2 -0
  59. package/dist/declarations/src/webpack-loaders/i18n-message-compilation-loader.d.ts +3 -0
  60. package/dist/declarations/src/webpack.d.ts +2 -0
  61. package/dist/deployment-previews-set-17e8ed48.cjs.prod.js +202 -0
  62. package/dist/deployment-previews-set-3648972f.esm.js +191 -0
  63. package/dist/deployment-previews-set-37aef990.cjs.dev.js +202 -0
  64. package/dist/does-file-exist-32618334.esm.js +12 -0
  65. package/dist/does-file-exist-be53305d.cjs.prod.js +18 -0
  66. package/dist/does-file-exist-eb86baca.cjs.dev.js +18 -0
  67. package/dist/graphql-requests-6a47ad5b.esm.js +247 -0
  68. package/dist/graphql-requests-779b867b.cjs.dev.js +270 -0
  69. package/dist/graphql-requests-8086eba7.cjs.prod.js +270 -0
  70. package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +15 -0
  71. package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +15 -0
  72. package/dist/has-jsx-runtime-e3ecb09b.esm.js +13 -0
  73. package/dist/i18n-message-complilation-21d3b0aa.esm.js +15 -0
  74. package/dist/i18n-message-complilation-7311cb29.cjs.dev.js +23 -0
  75. package/dist/i18n-message-complilation-7762da61.cjs.prod.js +23 -0
  76. package/dist/login-0a728449.esm.js +229 -0
  77. package/dist/login-817a5a26.cjs.dev.js +270 -0
  78. package/dist/login-85c25393.cjs.prod.js +270 -0
  79. package/dist/optimizations-7789145e.cjs.dev.js +85 -0
  80. package/dist/optimizations-bf991634.esm.js +67 -0
  81. package/dist/optimizations-fb93514f.cjs.prod.js +85 -0
  82. package/dist/package-7e170dc4.cjs.dev.js +160 -0
  83. package/dist/package-940b0a2a.cjs.prod.js +160 -0
  84. package/dist/package-99e547a7.esm.js +158 -0
  85. package/dist/paths-39f22b8b.esm.js +36 -0
  86. package/dist/paths-7768b440.cjs.prod.js +44 -0
  87. package/dist/paths-b76fc753.cjs.dev.js +44 -0
  88. package/dist/serve-1036c2de.esm.js +55 -0
  89. package/dist/serve-50d33f0b.cjs.dev.js +64 -0
  90. package/dist/serve-8a506da6.cjs.prod.js +64 -0
  91. package/dist/start-1d677ad8.cjs.dev.js +177 -0
  92. package/dist/start-2a7ae03d.esm.js +164 -0
  93. package/dist/start-f56cb5f7.cjs.prod.js +177 -0
  94. package/dist/start-vite-068e9f73.cjs.dev.js +128 -0
  95. package/dist/start-vite-29078b3a.cjs.prod.js +128 -0
  96. package/dist/start-vite-7d1161e8.esm.js +116 -0
  97. package/dist/vendors-to-transpile-04a49d40.cjs.prod.js +5 -0
  98. package/dist/vendors-to-transpile-6ab4ea06.cjs.dev.js +5 -0
  99. package/dist/vendors-to-transpile-7dc84a72.esm.js +3 -0
  100. package/dist/vite-plugin-svgr-4034a834.cjs.prod.js +151 -0
  101. package/dist/vite-plugin-svgr-7d06f400.cjs.dev.js +151 -0
  102. package/dist/vite-plugin-svgr-de6ee7da.esm.js +125 -0
  103. package/package.json +156 -0
  104. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts +2 -0
  105. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +12 -0
  106. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.js +7 -0
  107. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +12 -0
  108. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +4 -0
  109. package/postcss/package.json +4 -0
  110. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts +2 -0
  111. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +57 -0
  112. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.js +7 -0
  113. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +57 -0
  114. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +48 -0
  115. package/webpack/package.json +4 -0
  116. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts +3 -0
  117. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +30 -0
  118. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.js +7 -0
  119. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +30 -0
  120. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +26 -0
  121. package/webpack-loaders/i18n-message-compilation-loader/package.json +4 -0
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
+ var path = require('path');
5
+ var _package = require('./package-7e170dc4.cjs.dev.js');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
+
9
+ var path__default = /*#__PURE__*/_interopDefault(path);
10
+
11
+ // This function aims to return the same result as `require.resolve`.
12
+ // However, resolving a path to a `.css` file does not return the real
13
+ // path when this file is executed within a Jest environment, because
14
+ // of the `identity-obj-proxy` resolver.
15
+ // Therefore, we trick it by resolving the package entry point and
16
+ // constructing the real path manually.
17
+ const safeResolvePath = (packageName, fileRelativePath) => {
18
+ const defaultPackageEntryPoint = require.resolve(packageName);
19
+ const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
20
+ _defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
21
+ pathToPackage = _defaultPackageEntryP2[0];
22
+ return path__default["default"].join(pathToPackage, fileRelativePath);
23
+ };
24
+ function createPostcssConfig() {
25
+ let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
26
+ _ref$postcssImportPat = _ref.postcssImportPaths,
27
+ postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
28
+ _ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
29
+ postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
30
+ _ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
31
+ postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
32
+ return {
33
+ parser: false,
34
+ map: false,
35
+ plugins: [
36
+ /**
37
+ * Plugin to transform `@import` rules by inlining content.
38
+ * https://github.com/postcss/postcss-import
39
+ */
40
+ require('postcss-import')({
41
+ path: postcssImportPaths
42
+ }),
43
+ /**
44
+ * Plugin to parse CSS and add vendor prefixes to CSS rules
45
+ * using values from "[Can I Use](https://caniuse.com/)".
46
+ * https://github.com/postcss/autoprefixer
47
+ */
48
+ require('autoprefixer')({
49
+ // Enables `-ms-` prefixes for Grid Layout including some
50
+ // limited autoplacement support.
51
+ // https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
52
+ grid: 'autoplace',
53
+ overrideBrowserslist: process.env.NODE_ENV === 'production' ? _package.pkgJson.browserslist.production : _package.pkgJson.browserslist.development
54
+ }),
55
+ /**
56
+ * Plugin to enable Custom Media Queries in CSS, following
57
+ * the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
58
+ * https://github.com/postcss/postcss-custom-media
59
+ */
60
+ require('postcss-custom-media')({
61
+ importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
62
+ }),
63
+ /**
64
+ * Plugin to enable Custom Properties in CSS, following
65
+ * the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
66
+ * https://github.com/postcss/postcss-custom-properties
67
+ */
68
+ require('postcss-custom-properties')({
69
+ preserve: false,
70
+ importFrom: [...postcssCustomPropertiesPaths]
71
+ }),
72
+ /**
73
+ * Plugin to `console.log()` the messages (warnings, etc.)
74
+ * registered by other PostCSS plugins.
75
+ * https://github.com/postcss/postcss-reporter
76
+ */
77
+ require('postcss-reporter')()]
78
+ };
79
+ }
80
+
81
+ exports.createPostcssConfig = createPostcssConfig;
@@ -0,0 +1,75 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
2
+ import path from 'path';
3
+ import { p as pkgJson } from './package-99e547a7.esm.js';
4
+
5
+ // This function aims to return the same result as `require.resolve`.
6
+ // However, resolving a path to a `.css` file does not return the real
7
+ // path when this file is executed within a Jest environment, because
8
+ // of the `identity-obj-proxy` resolver.
9
+ // Therefore, we trick it by resolving the package entry point and
10
+ // constructing the real path manually.
11
+ const safeResolvePath = (packageName, fileRelativePath) => {
12
+ const defaultPackageEntryPoint = require.resolve(packageName);
13
+ const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
14
+ _defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
15
+ pathToPackage = _defaultPackageEntryP2[0];
16
+ return path.join(pathToPackage, fileRelativePath);
17
+ };
18
+ function createPostcssConfig() {
19
+ let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
20
+ _ref$postcssImportPat = _ref.postcssImportPaths,
21
+ postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
22
+ _ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
23
+ postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
24
+ _ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
25
+ postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
26
+ return {
27
+ parser: false,
28
+ map: false,
29
+ plugins: [
30
+ /**
31
+ * Plugin to transform `@import` rules by inlining content.
32
+ * https://github.com/postcss/postcss-import
33
+ */
34
+ require('postcss-import')({
35
+ path: postcssImportPaths
36
+ }),
37
+ /**
38
+ * Plugin to parse CSS and add vendor prefixes to CSS rules
39
+ * using values from "[Can I Use](https://caniuse.com/)".
40
+ * https://github.com/postcss/autoprefixer
41
+ */
42
+ require('autoprefixer')({
43
+ // Enables `-ms-` prefixes for Grid Layout including some
44
+ // limited autoplacement support.
45
+ // https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
46
+ grid: 'autoplace',
47
+ overrideBrowserslist: process.env.NODE_ENV === 'production' ? pkgJson.browserslist.production : pkgJson.browserslist.development
48
+ }),
49
+ /**
50
+ * Plugin to enable Custom Media Queries in CSS, following
51
+ * the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
52
+ * https://github.com/postcss/postcss-custom-media
53
+ */
54
+ require('postcss-custom-media')({
55
+ importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
56
+ }),
57
+ /**
58
+ * Plugin to enable Custom Properties in CSS, following
59
+ * the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
60
+ * https://github.com/postcss/postcss-custom-properties
61
+ */
62
+ require('postcss-custom-properties')({
63
+ preserve: false,
64
+ importFrom: [...postcssCustomPropertiesPaths]
65
+ }),
66
+ /**
67
+ * Plugin to `console.log()` the messages (warnings, etc.)
68
+ * registered by other PostCSS plugins.
69
+ * https://github.com/postcss/postcss-reporter
70
+ */
71
+ require('postcss-reporter')()]
72
+ };
73
+ }
74
+
75
+ export { createPostcssConfig as c };
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
+ var path = require('path');
5
+ var _package = require('./package-940b0a2a.cjs.prod.js');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
+
9
+ var path__default = /*#__PURE__*/_interopDefault(path);
10
+
11
+ // This function aims to return the same result as `require.resolve`.
12
+ // However, resolving a path to a `.css` file does not return the real
13
+ // path when this file is executed within a Jest environment, because
14
+ // of the `identity-obj-proxy` resolver.
15
+ // Therefore, we trick it by resolving the package entry point and
16
+ // constructing the real path manually.
17
+ const safeResolvePath = (packageName, fileRelativePath) => {
18
+ const defaultPackageEntryPoint = require.resolve(packageName);
19
+ const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
20
+ _defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
21
+ pathToPackage = _defaultPackageEntryP2[0];
22
+ return path__default["default"].join(pathToPackage, fileRelativePath);
23
+ };
24
+ function createPostcssConfig() {
25
+ let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
26
+ _ref$postcssImportPat = _ref.postcssImportPaths,
27
+ postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
28
+ _ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
29
+ postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
30
+ _ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
31
+ postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
32
+ return {
33
+ parser: false,
34
+ map: false,
35
+ plugins: [
36
+ /**
37
+ * Plugin to transform `@import` rules by inlining content.
38
+ * https://github.com/postcss/postcss-import
39
+ */
40
+ require('postcss-import')({
41
+ path: postcssImportPaths
42
+ }),
43
+ /**
44
+ * Plugin to parse CSS and add vendor prefixes to CSS rules
45
+ * using values from "[Can I Use](https://caniuse.com/)".
46
+ * https://github.com/postcss/autoprefixer
47
+ */
48
+ require('autoprefixer')({
49
+ // Enables `-ms-` prefixes for Grid Layout including some
50
+ // limited autoplacement support.
51
+ // https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
52
+ grid: 'autoplace',
53
+ overrideBrowserslist: _package.pkgJson.browserslist.production
54
+ }),
55
+ /**
56
+ * Plugin to enable Custom Media Queries in CSS, following
57
+ * the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
58
+ * https://github.com/postcss/postcss-custom-media
59
+ */
60
+ require('postcss-custom-media')({
61
+ importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
62
+ }),
63
+ /**
64
+ * Plugin to enable Custom Properties in CSS, following
65
+ * the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
66
+ * https://github.com/postcss/postcss-custom-properties
67
+ */
68
+ require('postcss-custom-properties')({
69
+ preserve: false,
70
+ importFrom: [...postcssCustomPropertiesPaths]
71
+ }),
72
+ /**
73
+ * Plugin to `console.log()` the messages (warnings, etc.)
74
+ * registered by other PostCSS plugins.
75
+ * https://github.com/postcss/postcss-reporter
76
+ */
77
+ require('postcss-reporter')()]
78
+ };
79
+ }
80
+
81
+ exports.createPostcssConfig = createPostcssConfig;