@teambit/react 1.0.951 → 1.0.953
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.
- package/artifacts/env-template/public/{252.9de18b929171b16a2b43.js → 109.72c11eaf3f9e3830f543.js} +2 -2
- package/artifacts/env-template/public/{596.5219fbf70877df73c101.js → 464.f82ae2866b13c3e80d80.js} +1 -1
- package/artifacts/env-template/public/assets-manifest.json +14 -14
- package/artifacts/env-template/public/{compositions.a4e36f8409d7873a37b5.js → compositions.fdafd28d3b4da743105a.js} +4 -4
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.302bc73375d09078ad7f.js → overview.658943f6a4b0174bdb6c.js} +2 -2
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.0ad3275eafec203d3686.js → peers.56510ce5e0e569cf749a.js} +1 -1
- package/artifacts/env-template/public/{preview-root.cfc7d20c266769d3f236.js → preview-root.abb7522dcfadb0641f45.js} +1 -1
- package/{compositions-1776432715724.js → compositions-1776590287251.js} +8 -5
- package/dist/{preview-1776432715724.js → preview-1776590287251.js} +2 -2
- package/dist/webpack/overlay/refreshOverlayInterop.d.ts +1 -1
- package/dist/webpack/overlay/refreshOverlayInterop.js +11 -1
- package/dist/webpack/overlay/refreshOverlayInterop.js.map +1 -1
- package/dist/webpack/webpack.config.base.js +6 -1
- package/dist/webpack/webpack.config.base.js.map +1 -1
- package/dist/webpack/webpack.config.component.dev.js +0 -2
- package/dist/webpack/webpack.config.component.dev.js.map +1 -1
- package/{overview-1776432715724.js → overview-1776590287251.js} +8 -5
- package/package.json +33 -32
- package/webpack/overlay/refreshOverlayInterop.js +23 -1
- package/webpack/webpack.config.base.ts +10 -1
- package/webpack/webpack.config.component.dev.ts +0 -2
- /package/artifacts/env-template/public/static/css/{252.e36b1b17.css → 109.e36b1b17.css} +0 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.953",
|
|
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.
|
|
9
|
+
"version": "1.0.953"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"eslint": "8.56.0",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"graphql-tag": "2.12.1",
|
|
18
18
|
"lodash.flatten": "4.4.0",
|
|
19
19
|
"chalk": "4.1.2",
|
|
20
|
-
"lodash.compact": "3.0.1",
|
|
21
20
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
22
21
|
"postcss-preset-env": "7.8.2",
|
|
23
22
|
"postcss-normalize": "10.0.0",
|
|
@@ -26,6 +25,7 @@
|
|
|
26
25
|
"webpack": "5.97.1",
|
|
27
26
|
"@babel/preset-env": "7.28.3",
|
|
28
27
|
"@babel/preset-react": "7.27.1",
|
|
28
|
+
"@babel/preset-typescript": "7.27.1",
|
|
29
29
|
"@mdx-js/loader": "^3.1.1",
|
|
30
30
|
"@svgr/webpack": "8.1.0",
|
|
31
31
|
"babel-loader": "9.2.1",
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
42
42
|
"react-refresh": "0.10.0",
|
|
43
43
|
"source-map-loader": "3.0.0",
|
|
44
|
-
"
|
|
45
|
-
"url-join": "4.0.1",
|
|
44
|
+
"lodash.compact": "3.0.1",
|
|
46
45
|
"react-error-overlay": "6.0.9",
|
|
47
46
|
"strip-ansi": "6.0.0",
|
|
47
|
+
"express": "4.21.2",
|
|
48
|
+
"url-join": "4.0.1",
|
|
48
49
|
"@babel/runtime": "7.23.2",
|
|
49
50
|
"less": "^4.1.1",
|
|
50
51
|
"sass": "1.63.6",
|
|
@@ -88,41 +89,41 @@
|
|
|
88
89
|
"@teambit/react.instructions.react.adding-compositions": "0.0.7",
|
|
89
90
|
"@teambit/react.instructions.react.adding-tests": "0.0.6",
|
|
90
91
|
"@teambit/api-reference.renderers.react": "0.0.69",
|
|
92
|
+
"@teambit/react.eslint-config-bit-react": "2.0.10",
|
|
91
93
|
"@teambit/dependencies.modules.packages-excluder": "1.0.8",
|
|
92
94
|
"@teambit/react.jest.react-jest": "1.0.38",
|
|
93
|
-
"@teambit/react.eslint-config-bit-react": "2.0.10",
|
|
94
|
-
"@teambit/bit-error": "0.0.404",
|
|
95
|
-
"@teambit/toolbox.network.get-port": "1.0.20",
|
|
96
95
|
"@teambit/mdx.modules.mdx-v3-options": "0.0.2",
|
|
97
96
|
"@teambit/react.babel.bit-react-transformer": "1.0.47",
|
|
98
97
|
"@teambit/webpack.modules.generate-style-loaders": "1.0.25",
|
|
99
98
|
"@teambit/webpack.modules.style-regexps": "1.0.20",
|
|
100
99
|
"@teambit/component-id": "1.2.4",
|
|
100
|
+
"@teambit/bit-error": "0.0.404",
|
|
101
|
+
"@teambit/toolbox.network.get-port": "1.0.20",
|
|
101
102
|
"@teambit/react.rendering.ssr": "1.0.3",
|
|
102
103
|
"@teambit/ui-foundation.ui.pages.static-error": "0.0.110",
|
|
103
|
-
"@teambit/typescript": "1.0.
|
|
104
|
-
"@teambit/builder": "1.0.
|
|
105
|
-
"@teambit/bundler": "1.0.
|
|
106
|
-
"@teambit/compiler": "1.0.
|
|
107
|
-
"@teambit/component": "1.0.
|
|
108
|
-
"@teambit/dependency-resolver": "1.0.
|
|
109
|
-
"@teambit/dev-files": "1.0.
|
|
110
|
-
"@teambit/envs": "1.0.
|
|
111
|
-
"@teambit/formatter": "1.0.
|
|
112
|
-
"@teambit/linter": "1.0.
|
|
113
|
-
"@teambit/pkg": "1.0.
|
|
114
|
-
"@teambit/preview": "1.0.
|
|
115
|
-
"@teambit/schema": "1.0.
|
|
116
|
-
"@teambit/tester": "1.0.
|
|
117
|
-
"@teambit/webpack": "1.0.
|
|
118
|
-
"@teambit/workspace-config-files": "1.0.
|
|
119
|
-
"@teambit/workspace": "1.0.
|
|
120
|
-
"@teambit/application": "1.0.
|
|
121
|
-
"@teambit/generator": "1.0.
|
|
122
|
-
"@teambit/graphql": "1.0.
|
|
123
|
-
"@teambit/api-reference": "1.0.
|
|
124
|
-
"@teambit/compositions": "1.0.
|
|
125
|
-
"@teambit/ui": "1.0.
|
|
104
|
+
"@teambit/typescript": "1.0.953",
|
|
105
|
+
"@teambit/builder": "1.0.953",
|
|
106
|
+
"@teambit/bundler": "1.0.953",
|
|
107
|
+
"@teambit/compiler": "1.0.953",
|
|
108
|
+
"@teambit/component": "1.0.953",
|
|
109
|
+
"@teambit/dependency-resolver": "1.0.953",
|
|
110
|
+
"@teambit/dev-files": "1.0.953",
|
|
111
|
+
"@teambit/envs": "1.0.953",
|
|
112
|
+
"@teambit/formatter": "1.0.953",
|
|
113
|
+
"@teambit/linter": "1.0.953",
|
|
114
|
+
"@teambit/pkg": "1.0.953",
|
|
115
|
+
"@teambit/preview": "1.0.953",
|
|
116
|
+
"@teambit/schema": "1.0.953",
|
|
117
|
+
"@teambit/tester": "1.0.953",
|
|
118
|
+
"@teambit/webpack": "1.0.953",
|
|
119
|
+
"@teambit/workspace-config-files": "1.0.953",
|
|
120
|
+
"@teambit/workspace": "1.0.953",
|
|
121
|
+
"@teambit/application": "1.0.953",
|
|
122
|
+
"@teambit/generator": "1.0.954",
|
|
123
|
+
"@teambit/graphql": "1.0.953",
|
|
124
|
+
"@teambit/api-reference": "1.0.953",
|
|
125
|
+
"@teambit/compositions": "1.0.953",
|
|
126
|
+
"@teambit/ui": "1.0.953"
|
|
126
127
|
},
|
|
127
128
|
"devDependencies": {
|
|
128
129
|
"@types/react": "^17.0.8",
|
|
@@ -131,12 +132,12 @@
|
|
|
131
132
|
"@types/jest": "^26.0.0",
|
|
132
133
|
"@types/lodash": "4.14.165",
|
|
133
134
|
"@types/lodash.flatten": "4.4.6",
|
|
134
|
-
"@types/lodash.compact": "3.0.6",
|
|
135
135
|
"@types/postcss-normalize": "9.0.1",
|
|
136
136
|
"@types/webpack": "5.28.5",
|
|
137
137
|
"@types/mini-css-extract-plugin": "2.2.0",
|
|
138
138
|
"@types/react-dev-utils": "9.0.15",
|
|
139
139
|
"@types/react-dom": "^17.0.5",
|
|
140
|
+
"@types/lodash.compact": "3.0.6",
|
|
140
141
|
"@types/express": "4.17.21",
|
|
141
142
|
"@types/url-join": "4.0.0",
|
|
142
143
|
"@types/node": "12.20.4",
|
|
@@ -11,9 +11,31 @@
|
|
|
11
11
|
// @remove-on-eject-end
|
|
12
12
|
'use strict';
|
|
13
13
|
|
|
14
|
-
const {
|
|
14
|
+
const {
|
|
15
|
+
dismissBuildError,
|
|
16
|
+
dismissRuntimeErrors,
|
|
17
|
+
reportBuildError,
|
|
18
|
+
reportRuntimeError,
|
|
19
|
+
setEditorHandler,
|
|
20
|
+
} = require('react-error-overlay');
|
|
21
|
+
const launchEditorEndpoint = require('./launchEditorEndpoint');
|
|
22
|
+
|
|
23
|
+
setEditorHandler(function editorHandler(errorLocation) {
|
|
24
|
+
// Keep this in sync with the error overlay middleware endpoint.
|
|
25
|
+
fetch(
|
|
26
|
+
launchEditorEndpoint +
|
|
27
|
+
'?fileName=' +
|
|
28
|
+
window.encodeURIComponent(errorLocation.fileName) +
|
|
29
|
+
'&lineNumber=' +
|
|
30
|
+
window.encodeURIComponent(errorLocation.lineNumber || 1) +
|
|
31
|
+
'&colNumber=' +
|
|
32
|
+
window.encodeURIComponent(errorLocation.colNumber || 1)
|
|
33
|
+
);
|
|
34
|
+
});
|
|
15
35
|
|
|
16
36
|
module.exports = {
|
|
37
|
+
clearCompileError: dismissBuildError,
|
|
17
38
|
clearRuntimeErrors: dismissRuntimeErrors,
|
|
39
|
+
showCompileError: reportBuildError,
|
|
18
40
|
handleRuntimeError: reportRuntimeError,
|
|
19
41
|
};
|
|
@@ -71,6 +71,11 @@ export default function (isEnvProduction = false): Configuration {
|
|
|
71
71
|
// `web` extension prefixes have been added for better support
|
|
72
72
|
// for React Native Web.
|
|
73
73
|
extensions: moduleFileExtensions.map((ext) => `.${ext}`),
|
|
74
|
+
extensionAlias: {
|
|
75
|
+
'.js': ['.ts', '.tsx', '.js', '.jsx'],
|
|
76
|
+
'.mjs': ['.mts', '.mjs'],
|
|
77
|
+
'.cjs': ['.cts', '.cjs'],
|
|
78
|
+
},
|
|
74
79
|
|
|
75
80
|
alias: {
|
|
76
81
|
'react/jsx-dev-runtime': require.resolve('react/jsx-dev-runtime'),
|
|
@@ -134,7 +139,11 @@ export default function (isEnvProduction = false): Configuration {
|
|
|
134
139
|
options: {
|
|
135
140
|
babelrc: false,
|
|
136
141
|
configFile: false,
|
|
137
|
-
presets: [
|
|
142
|
+
presets: [
|
|
143
|
+
require.resolve('@babel/preset-env'),
|
|
144
|
+
require.resolve('@babel/preset-typescript'),
|
|
145
|
+
require.resolve('@babel/preset-react'),
|
|
146
|
+
],
|
|
138
147
|
// This is a feature of `babel-loader` for webpack (not Babel itself).
|
|
139
148
|
// It enables caching results in ./node_modules/.cache/babel-loader/
|
|
140
149
|
// directory for faster rebuilds.
|
|
@@ -89,8 +89,6 @@ export default function (workDir: string, envId: string): Configuration {
|
|
|
89
89
|
new ReactRefreshWebpackPlugin({
|
|
90
90
|
overlay: {
|
|
91
91
|
sockPath: `_hmr/${envId}`,
|
|
92
|
-
// TODO - react-error-overlay not showing runtime errors - https://github.com/teambit/bit/issues/5452
|
|
93
|
-
entry: require.resolve('./overlay/webpackHotDevClient'),
|
|
94
92
|
module: require.resolve('./overlay/refreshOverlayInterop'),
|
|
95
93
|
},
|
|
96
94
|
|
|
File without changes
|