@teambit/react 1.0.847 → 1.0.848

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 (24) hide show
  1. package/artifacts/env-template/public/{467.43a29f6e3375ae730bef.js → 123.9fc1d27c1d24f60c9e81.js} +1 -1
  2. package/artifacts/env-template/public/{252.ef92e2e1cc9cf5b4d8e8.js → 624.5389fd77d1a18ec6e567.js} +2 -2
  3. package/artifacts/env-template/public/assets-manifest.json +14 -14
  4. package/artifacts/env-template/public/{compositions.c3453c49def2dea1525b.js → compositions.30b5b86103dcf0aaa5f9.js} +3 -3
  5. package/artifacts/env-template/public/compositions.html +1 -1
  6. package/artifacts/env-template/public/overview.770e77fb90bd508a1cef.js +2 -0
  7. package/artifacts/env-template/public/overview.html +1 -1
  8. package/artifacts/env-template/public/{peers.70f0ee7023ac41dd66de.js → peers.2235fe80d0d8c7cda8d8.js} +1 -1
  9. package/artifacts/env-template/public/{preview-root.e4bd943bca941957535b.js → preview-root.9837974b7b324f55571f.js} +1 -1
  10. package/{compositions-1765819114106.js → compositions-1765995878631.js} +2 -2
  11. package/dist/{preview-1765819114106.js → preview-1765995878631.js} +2 -2
  12. package/dist/webpack/mdx-pre-loader.cjs +21 -0
  13. package/dist/webpack/webpack.config.base.d.ts +1 -1
  14. package/dist/webpack/webpack.config.base.js +14 -3
  15. package/dist/webpack/webpack.config.base.js.map +1 -1
  16. package/dist/webpack/webpack.config.component.dev.js +12 -1
  17. package/dist/webpack/webpack.config.component.dev.js.map +1 -1
  18. package/{overview-1765819114106.js → overview-1765995878631.js} +2 -2
  19. package/package.json +42 -41
  20. package/webpack/mdx-pre-loader.cjs +21 -0
  21. package/webpack/webpack.config.base.ts +9 -3
  22. package/webpack/webpack.config.component.dev.ts +7 -1
  23. package/artifacts/env-template/public/overview.d4013818290922bb8c49.js +0 -2
  24. /package/artifacts/env-template/public/static/css/{252.c259d51b.css → 624.c259d51b.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_path","data","_interopRequireDefault","require","_componentId","_reactRefreshWebpackPlugin","e","__esModule","default","matchNothingRegex","_default","workDir","envId","module","rules","test","enforce","include","path","join","descriptionData","componentId","value","use","resolve","ComponentID","isValidObject","loader","options","babelrc","configFile","plugins","compact","minified","presets","ReactRefreshWebpackPlugin","overlay","sockPath","entry"],"sources":["webpack.config.component.dev.ts"],"sourcesContent":["import path from 'path';\nimport type { Configuration } from 'webpack';\nimport { ComponentID } from '@teambit/component-id';\n// Make sure the bit-react-transformer is a dependency\n// TODO: remove it once we can set policy from component to component then set it via the component.json\nimport '@teambit/react.babel.bit-react-transformer';\nimport ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';\n\nconst matchNothingRegex = 'a^';\n\n// This is the production and development configuration.\n// It is focused on developer experience, fast rebuilds, and a minimal bundle.\n// eslint-disable-next-line complexity\n// export default function (workDir: string, envId: string): Configuration {\nexport default function (workDir: string, envId: string): Configuration {\n return {\n module: {\n rules: [\n {\n test: /\\.js$/,\n enforce: 'pre',\n // limit loader to files in the current project,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: (value) => !!value },\n use: [require.resolve('source-map-loader')],\n },\n {\n test: /\\.js$/,\n // limit loader to files in the current project,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: ComponentID.isValidObject },\n use: [\n require.resolve('@pmmmwh/react-refresh-webpack-plugin/loader'),\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n plugins: [\n require.resolve('react-refresh/babel'),\n // for component highlighting in preview.\n [require.resolve('@teambit/react.babel.bit-react-transformer')],\n ],\n // turn off all optimizations (only slow down for node_modules)\n compact: false,\n minified: false,\n },\n },\n ],\n },\n // MDX support (move to the mdx aspect and extend from there)\n {\n test: /\\.mdx?$/,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: (value) => !!value },\n use: [\n require.resolve('@pmmmwh/react-refresh-webpack-plugin/loader'),\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n presets: [require.resolve('@babel/preset-react'), require.resolve('@babel/preset-env')],\n plugins: [require.resolve('react-refresh/babel')],\n },\n },\n {\n loader: require.resolve('@teambit/mdx.modules.mdx-loader'),\n },\n ],\n },\n ],\n },\n plugins: [\n // No need here as we have `hot: true` in the dev server\n // new webpack.HotModuleReplacementPlugin({}),\n new ReactRefreshWebpackPlugin({\n overlay: {\n sockPath: `_hmr/${envId}`,\n // TODO - react-error-overlay not showing runtime errors - https://github.com/teambit/bit/issues/5452\n entry: require.resolve('./overlay/webpackHotDevClient'),\n module: require.resolve('./overlay/refreshOverlayInterop'),\n },\n\n // we use '@pmmmwh/react-refresh-webpack-plugin/loader' directly where relevant.\n // FYI, original defaults of the plugin are:\n // include: /\\.([cm]js|[jt]sx?|flow)$/i, exclude: /node_modules/,\n include: matchNothingRegex,\n }),\n ],\n };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,aAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGAE,OAAA;AACA,SAAAE,2BAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,0BAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6E,SAAAC,uBAAAI,CAAA,WAAAA,CA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eAAe,EAAE;UAAEC,WAAW,EAAGC,KAAK,IAAK,CAAC,CAACA;QAAM,CAAC;QACpDC,GAAG,EAAE,CACHpB,OAAO,CAACqB,OAAO,CAAC,6CAA6C,CAAC,EAC9D;UACEG,MAAM,EAAExB,OAAO,CAACqB,OAAO,CAAC,cAAc,CAAC;UACvCI,OAAO,EAAE;YACPC,OAAO,EAAE,KAAK;YACdC,UAAU,EAAE,KAAK;YACjBI,OAAO,EAAE,CAAC/B,OAAO,CAACqB,OAAO,CAAC,qBAAqB,CAAC,EAAErB,OAAO,CAACqB,OAAO,CAAC,mBAAmB,CAAC,CAAC;YACvFO,OAAO,EAAE,CAAC5B,OAAO,CAACqB,OAAO,CAAC,qBAAqB,CAAC;UAClD;QACF,CAAC,EACD;UACEG,MAAM,EAAExB,OAAO,CAACqB,OAAO,CAAC,iCAAiC;QAC3D,CAAC;MAEL,CAAC;IAEL,CAAC;IACDO,OAAO,EAAE;IACP;IACA;IACA,KAAII,oCAAyB,EAAC;MAC5BC,OAAO,EAAE;QACPC,QAAQ,EAAE,QAAQzB,KAAK,EAAE;QACzB;QACA0B,KAAK,EAAEnC,OAAO,CAACqB,OAAO,CAAC,+BAA+B,CAAC;QACvDX,MAAM,EAAEV,OAAO,CAACqB,OAAO,CAAC,iCAAiC;MAC3D,CAAC;MAED;MACA;MACA;MACAP,OAAO,EAAER;IACX,CAAC,CAAC;EAEN,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_path","data","_interopRequireDefault","require","_componentId","_reactRefreshWebpackPlugin","_mdxModules","e","__esModule","default","matchNothingRegex","_default","workDir","envId","module","rules","test","enforce","include","path","join","descriptionData","componentId","value","use","resolve","ComponentID","isValidObject","loader","options","babelrc","configFile","plugins","compact","minified","presets","mdxOptions","ReactRefreshWebpackPlugin","overlay","sockPath","entry"],"sources":["webpack.config.component.dev.ts"],"sourcesContent":["import path from 'path';\nimport type { Configuration } from 'webpack';\nimport { ComponentID } from '@teambit/component-id';\n// Make sure the bit-react-transformer is a dependency\n// TODO: remove it once we can set policy from component to component then set it via the component.json\nimport '@teambit/react.babel.bit-react-transformer';\nimport ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';\nimport { mdxOptions } from '@teambit/mdx.modules.mdx-v3-options';\n\nconst matchNothingRegex = 'a^';\n\n// This is the production and development configuration.\n// It is focused on developer experience, fast rebuilds, and a minimal bundle.\n// eslint-disable-next-line complexity\n// export default function (workDir: string, envId: string): Configuration {\nexport default function (workDir: string, envId: string): Configuration {\n return {\n module: {\n rules: [\n {\n test: /\\.js$/,\n enforce: 'pre',\n // limit loader to files in the current project,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: (value) => !!value },\n use: [require.resolve('source-map-loader')],\n },\n {\n test: /\\.js$/,\n // limit loader to files in the current project,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: ComponentID.isValidObject },\n use: [\n require.resolve('@pmmmwh/react-refresh-webpack-plugin/loader'),\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n plugins: [\n require.resolve('react-refresh/babel'),\n // for component highlighting in preview.\n [require.resolve('@teambit/react.babel.bit-react-transformer')],\n ],\n // turn off all optimizations (only slow down for node_modules)\n compact: false,\n minified: false,\n },\n },\n ],\n },\n // MDX support (move to the mdx aspect and extend from there)\n {\n test: /\\.mdx?$/,\n // to skip any files linked from other projects (like Bit itself)\n include: path.join(workDir, 'node_modules'),\n // only apply to packages with componentId in their package.json (ie. bit components)\n descriptionData: { componentId: (value) => !!value },\n use: [\n require.resolve('@pmmmwh/react-refresh-webpack-plugin/loader'),\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n presets: [require.resolve('@babel/preset-react'), require.resolve('@babel/preset-env')],\n plugins: [require.resolve('react-refresh/babel')],\n },\n },\n {\n loader: require.resolve('@mdx-js/loader'),\n options: mdxOptions,\n },\n {\n // inlined @teambit/mdx.modules.mdx-pre-loader in CJS format\n loader: require.resolve('./mdx-pre-loader.cjs'),\n },\n ],\n },\n ],\n },\n plugins: [\n // No need here as we have `hot: true` in the dev server\n // new webpack.HotModuleReplacementPlugin({}),\n new ReactRefreshWebpackPlugin({\n overlay: {\n sockPath: `_hmr/${envId}`,\n // TODO - react-error-overlay not showing runtime errors - https://github.com/teambit/bit/issues/5452\n entry: require.resolve('./overlay/webpackHotDevClient'),\n module: require.resolve('./overlay/refreshOverlayInterop'),\n },\n\n // we use '@pmmmwh/react-refresh-webpack-plugin/loader' directly where relevant.\n // FYI, original defaults of the plugin are:\n // include: /\\.([cm]js|[jt]sx?|flow)$/i, exclude: /node_modules/,\n include: matchNothingRegex,\n }),\n ],\n };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,aAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGAE,OAAA;AACA,SAAAE,2BAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,0BAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,YAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,WAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiE,SAAAC,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAJ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DC,GAAG,EAAE,CACHrB,OAAO,CAACsB,OAAO,CAAC,6CAA6C,CAAC,EAC9D;UACEG,MAAM,EAAEzB,OAAO,CAACsB,OAAO,CAAC,cAAc,CAAC;UACvCI,OAAO,EAAE;YACPC,OAAO,EAAE,KAAK;YACdC,UAAU,EAAE,KAAK;YACjBI,OAAO,EAAE,CAAChC,OAAO,CAACsB,OAAO,CAAC,qBAAqB,CAAC,EAAEtB,OAAO,CAACsB,OAAO,CAAC,mBAAmB,CAAC,CAAC;YACvFO,OAAO,EAAE,CAAC7B,OAAO,CAACsB,OAAO,CAAC,qBAAqB,CAAC;UAClD;QACF,CAAC,EACD;UACEG,MAAM,EAAEzB,OAAO,CAACsB,OAAO,CAAC,gBAAgB,CAAC;UACzCI,OAAO,EAAEO;QACX,CAAC,EACD;UACE;UACAR,MAAM,EAAEzB,OAAO,CAACsB,OAAO,CAAC,sBAAsB;QAChD,CAAC;MAEL,CAAC;IAEL,CAAC;IACDO,OAAO,EAAE;IACP;IACA;IACA,KAAIK,oCAAyB,EAAC;MAC5BC,OAAO,EAAE;QACPC,QAAQ,EAAE,QAAQ1B,KAAK,EAAE;QACzB;QACA2B,KAAK,EAAErC,OAAO,CAACsB,OAAO,CAAC,+BAA+B,CAAC;QACvDX,MAAM,EAAEX,OAAO,CAACsB,OAAO,CAAC,iCAAiC;MAC3D,CAAC;MAED;MACA;MACA;MACAP,OAAO,EAAER;IACX,CAAC,CAAC;EAEN,CAAC;AACH","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
 
2
- import { linkModules } from '/home/circleci/.bvm/versions/1.13.9/bit-1.13.9/node_modules/@teambit/preview/dist/preview-modules.js';
2
+ import { linkModules } from '/home/circleci/.bvm/versions/1.13.10/bit-1.13.10/node_modules/@teambit/preview/dist/preview-modules.js';
3
3
 
4
4
  // strip leading/trailing slashes from any id we compare
5
5
  function __bitNormalizeId(id) {
@@ -44,7 +44,7 @@ function __bitSurfaceToOverlay(err, componentId) {
44
44
  }, 0);
45
45
  }
46
46
 
47
- import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-0557d705b67dd1e1bccbac0bd34835a41036cf72.mjs";
47
+ import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-cf72038aae23437751eb71da99348a78344bd209.mjs";
48
48
  (async function initializeModules() {
49
49
 
50
50
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react",
3
- "version": "1.0.847",
3
+ "version": "1.0.848",
4
4
  "homepage": "https://bit.cloud/teambit/react/react",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.react",
8
8
  "name": "react",
9
- "version": "1.0.847"
9
+ "version": "1.0.848"
10
10
  },
11
11
  "dependencies": {
12
12
  "eslint": "8.56.0",
@@ -25,6 +25,7 @@
25
25
  "webpack": "5.97.1",
26
26
  "@babel/preset-env": "7.28.3",
27
27
  "@babel/preset-react": "7.27.1",
28
+ "@mdx-js/loader": "^3.1.1",
28
29
  "@svgr/webpack": "8.1.0",
29
30
  "babel-loader": "9.1.2",
30
31
  "css-loader": "6.2.0",
@@ -65,22 +66,12 @@
65
66
  "@teambit/compositions.ui.hooks.use-composition": "0.0.177",
66
67
  "@teambit/design.ui.input.option-button": "1.0.13",
67
68
  "@teambit/design.ui.tooltip": "0.0.382",
68
- "@teambit/semantics.entities.semantic-schema": "0.0.96",
69
69
  "@teambit/harmony": "0.4.7",
70
- "@teambit/component.modules.component-url": "0.0.183",
71
70
  "@teambit/defender.eslint-linter": "1.0.56",
72
- "@teambit/defender.eslint.config-mutator": "0.0.118",
73
71
  "@teambit/defender.jest-tester": "2.0.17",
74
72
  "@teambit/defender.prettier-formatter": "1.0.23",
75
- "@teambit/defender.prettier.config-mutator": "0.0.112",
76
- "@teambit/logger": "0.0.1383",
77
- "@teambit/react.ui.compositions-app": "0.0.25",
78
- "@teambit/react.ui.docs-app": "1.0.34",
79
73
  "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.43",
80
- "@teambit/toolbox.path.path": "0.0.12",
81
74
  "@teambit/typescript.typescript-compiler": "2.0.63",
82
- "@teambit/worker": "0.0.1594",
83
- "@teambit/cli": "0.0.1290",
84
75
  "@teambit/react.ui.highlighter-provider": "0.0.220",
85
76
  "@bitdev/react.generators.react-templates": "4.0.2",
86
77
  "@teambit/react.instructions.react.adding-compositions": "0.0.7",
@@ -88,39 +79,49 @@
88
79
  "@teambit/api-reference.renderers.react": "0.0.69",
89
80
  "@teambit/dependencies.modules.packages-excluder": "1.0.8",
90
81
  "@teambit/react.jest.react-jest": "1.0.37",
91
- "@teambit/react.eslint-config-bit-react": "2.0.5",
92
- "@teambit/mdx.modules.mdx-loader": "1.0.15",
93
- "@teambit/react.babel.bit-react-transformer": "1.0.43",
94
- "@teambit/webpack.modules.generate-style-loaders": "1.0.22",
95
- "@teambit/webpack.modules.style-regexps": "1.0.16",
82
+ "@teambit/mdx.modules.mdx-v3-options": "0.0.2",
96
83
  "@teambit/component-id": "1.2.4",
97
84
  "@teambit/bit-error": "0.0.404",
98
- "@teambit/toolbox.network.get-port": "1.0.16",
99
85
  "@teambit/react.rendering.ssr": "1.0.3",
100
86
  "@teambit/ui-foundation.ui.pages.static-error": "0.0.110",
101
- "@teambit/typescript": "1.0.847",
102
- "@teambit/builder": "1.0.847",
103
- "@teambit/bundler": "1.0.847",
104
- "@teambit/compiler": "1.0.847",
105
- "@teambit/component": "1.0.847",
106
- "@teambit/dependency-resolver": "1.0.847",
107
- "@teambit/dev-files": "1.0.847",
108
- "@teambit/envs": "1.0.847",
109
- "@teambit/formatter": "1.0.847",
110
- "@teambit/linter": "1.0.847",
111
- "@teambit/pkg": "1.0.847",
112
- "@teambit/preview": "1.0.847",
113
- "@teambit/schema": "1.0.847",
114
- "@teambit/tester": "1.0.847",
115
- "@teambit/webpack": "1.0.847",
116
- "@teambit/workspace-config-files": "1.0.847",
117
- "@teambit/workspace": "1.0.847",
118
- "@teambit/application": "1.0.847",
119
- "@teambit/generator": "1.0.848",
120
- "@teambit/graphql": "1.0.847",
121
- "@teambit/api-reference": "1.0.847",
122
- "@teambit/compositions": "1.0.847",
123
- "@teambit/ui": "1.0.847"
87
+ "@teambit/semantics.entities.semantic-schema": "0.0.97",
88
+ "@teambit/typescript": "1.0.848",
89
+ "@teambit/builder": "1.0.848",
90
+ "@teambit/bundler": "1.0.848",
91
+ "@teambit/compiler": "1.0.848",
92
+ "@teambit/component.modules.component-url": "0.0.184",
93
+ "@teambit/component": "1.0.848",
94
+ "@teambit/defender.eslint.config-mutator": "0.0.119",
95
+ "@teambit/defender.prettier.config-mutator": "0.0.113",
96
+ "@teambit/dependency-resolver": "1.0.848",
97
+ "@teambit/dev-files": "1.0.848",
98
+ "@teambit/envs": "1.0.848",
99
+ "@teambit/formatter": "1.0.848",
100
+ "@teambit/linter": "1.0.848",
101
+ "@teambit/logger": "0.0.1384",
102
+ "@teambit/pkg": "1.0.848",
103
+ "@teambit/preview": "1.0.848",
104
+ "@teambit/react.ui.compositions-app": "0.0.26",
105
+ "@teambit/react.ui.docs-app": "1.0.35",
106
+ "@teambit/schema": "1.0.848",
107
+ "@teambit/tester": "1.0.848",
108
+ "@teambit/toolbox.path.path": "0.0.13",
109
+ "@teambit/webpack": "1.0.848",
110
+ "@teambit/worker": "0.0.1595",
111
+ "@teambit/workspace-config-files": "1.0.848",
112
+ "@teambit/workspace": "1.0.848",
113
+ "@teambit/application": "1.0.848",
114
+ "@teambit/cli": "0.0.1291",
115
+ "@teambit/generator": "1.0.849",
116
+ "@teambit/graphql": "1.0.848",
117
+ "@teambit/api-reference": "1.0.848",
118
+ "@teambit/compositions": "1.0.848",
119
+ "@teambit/ui": "1.0.848",
120
+ "@teambit/react.eslint-config-bit-react": "2.0.6",
121
+ "@teambit/react.babel.bit-react-transformer": "1.0.44",
122
+ "@teambit/webpack.modules.generate-style-loaders": "1.0.23",
123
+ "@teambit/webpack.modules.style-regexps": "1.0.17",
124
+ "@teambit/toolbox.network.get-port": "1.0.17"
124
125
  },
125
126
  "devDependencies": {
126
127
  "@types/react": "^17.0.8",
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Inlined from @teambit/mdx.modules.mdx-pre-loader in CJS format.
5
+ *
6
+ * This loader is inlined to avoid an external dependency and to ensure compatibility across environments
7
+ * where the original package may not be available or may introduce unnecessary overhead.
8
+ *
9
+ * Loader purpose: Transforms MDX admonition syntax from ':::type content' to ':::type[content]'
10
+ * for MDX v3 compatibility.
11
+ */
12
+
13
+ function t(r) {
14
+ return r.replace(/:::(\w+) (.+)/g, ":::$1[$2]")
15
+ }
16
+
17
+ function e(r) {
18
+ return this.resourcePath.endsWith(".mdx") ? t(r) : r
19
+ }
20
+
21
+ module.exports = e;
@@ -11,8 +11,9 @@ import { postCssConfig } from './postcss.config';
11
11
  // Make sure the bit-react-transformer is a dependency
12
12
  // TODO: remove it once we can set policy from component to component then set it via the component.json
13
13
  import '@teambit/react.babel.bit-react-transformer';
14
- // Make sure the mdx-loader is a dependency
15
- import '@teambit/mdx.modules.mdx-loader';
14
+ // eslint-disable-next-line import/no-unresolved
15
+ import '@mdx-js/loader';
16
+ import { mdxOptions } from '@teambit/mdx.modules.mdx-v3-options';
16
17
 
17
18
  const styleLoaderPath = require.resolve('style-loader');
18
19
 
@@ -157,7 +158,12 @@ export default function (isEnvProduction = false): Configuration {
157
158
  },
158
159
  },
159
160
  {
160
- loader: require.resolve('@teambit/mdx.modules.mdx-loader'),
161
+ loader: require.resolve('@mdx-js/loader'),
162
+ options: mdxOptions,
163
+ },
164
+ {
165
+ // inlined @teambit/mdx.modules.mdx-pre-loader in CJS format
166
+ loader: require.resolve('./mdx-pre-loader.cjs'),
161
167
  },
162
168
  ],
163
169
  },
@@ -5,6 +5,7 @@ import { ComponentID } from '@teambit/component-id';
5
5
  // TODO: remove it once we can set policy from component to component then set it via the component.json
6
6
  import '@teambit/react.babel.bit-react-transformer';
7
7
  import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
8
+ import { mdxOptions } from '@teambit/mdx.modules.mdx-v3-options';
8
9
 
9
10
  const matchNothingRegex = 'a^';
10
11
 
@@ -71,7 +72,12 @@ export default function (workDir: string, envId: string): Configuration {
71
72
  },
72
73
  },
73
74
  {
74
- loader: require.resolve('@teambit/mdx.modules.mdx-loader'),
75
+ loader: require.resolve('@mdx-js/loader'),
76
+ options: mdxOptions,
77
+ },
78
+ {
79
+ // inlined @teambit/mdx.modules.mdx-pre-loader in CJS format
80
+ loader: require.resolve('./mdx-pre-loader.cjs'),
75
81
  },
76
82
  ],
77
83
  },
@@ -1,2 +0,0 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{78234:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bvm_versions_1_13_9_bit_1_13_9_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82378),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_0557d705b67dd1e1bccbac0bd34835a41036cf72_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52252);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}(function(){var _initializeModules=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:(0,_home_circleci_bvm_versions_1_13_9_bit_1_13_9_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_0557d705b67dd1e1bccbac0bd34835a41036cf72_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context.a(2)}},_callee)}));function initializeModules(){return _initializeModules.apply(this,arguments)}return initializeModules})()()},94891:()=>{},91044:()=>{},38954:()=>{},71220:()=>{},38854:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[252,320,467,518,866],()=>__webpack_exec__(78234));var __webpack_exports__=__webpack_require__.O()}]);