@teambit/react 0.0.738 → 0.0.741
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/apps/web/compute-results.ts +18 -0
- package/apps/web/react.application.ts +14 -4
- package/artifacts/env-template/public/7.js +34 -0
- package/artifacts/env-template/public/assets-manifest.json +8 -8
- package/artifacts/env-template/public/{compositions.eb4e1edea0a4802cad5a.js → compositions.4d09788ea29660f2f0bb.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.37b3198678667237c71a.js → overview.6b518357dda2ccb97ff6.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{preview-root.0a3624f6e3564141db0b.js → preview-root.1e046ff5674d2ebaa6d7.js} +1 -1
- package/artifacts/env-template/public/service-worker.js +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +2 -2
- package/{compositions-1653227849497.js → compositions-1653494536947.js} +0 -0
- package/dist/apps/web/compute-results.d.ts +7 -0
- package/dist/apps/web/compute-results.js +21 -0
- package/dist/apps/web/compute-results.js.map +1 -0
- package/dist/apps/web/react.application.d.ts +1 -0
- package/dist/apps/web/react.application.js +25 -7
- package/dist/apps/web/react.application.js.map +1 -1
- package/dist/react.env.d.ts +4 -2
- package/dist/react.env.js +10 -29
- package/dist/react.env.js.map +1 -1
- package/dist/react.main.runtime.d.ts +3 -2
- package/dist/react.main.runtime.js +13 -3
- package/dist/react.main.runtime.js.map +1 -1
- package/dist/webpack/webpack.config.base.prod.d.ts +1 -1
- package/dist/webpack/webpack.config.base.prod.js +1 -13
- package/dist/webpack/webpack.config.base.prod.js.map +1 -1
- package/{overview-1653227849497.js → overview-1653494536947.js} +0 -0
- package/package-tar/teambit-react-0.0.741.tgz +0 -0
- package/package.json +32 -39
- package/{preview-1653227849497.js → preview-1653494536947.js} +2 -2
- package/webpack/webpack.config.base.prod.ts +1 -5
- package/artifacts/env-template/public/756.js +0 -34
- package/dist/webpack/get-exposed-rules.d.ts +0 -3
- package/dist/webpack/get-exposed-rules.js +0 -60
- package/dist/webpack/get-exposed-rules.js.map +0 -1
- package/dist/webpack/get-externals.d.ts +0 -1
- package/dist/webpack/get-externals.js +0 -42
- package/dist/webpack/get-externals.js.map +0 -1
- package/dist/webpack/resolve-peer.d.ts +0 -14
- package/dist/webpack/resolve-peer.js +0 -108
- package/dist/webpack/resolve-peer.js.map +0 -1
- package/dist/webpack/transformers.d.ts +0 -10
- package/dist/webpack/transformers.js +0 -66
- package/dist/webpack/transformers.js.map +0 -1
- package/package-tar/teambit-react-0.0.738.tgz +0 -0
- package/webpack/get-exposed-rules.ts +0 -14
- package/webpack/get-externals.ts +0 -8
- package/webpack/resolve-peer.ts +0 -60
- package/webpack/transformers.ts +0 -37
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.741",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/react/react",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.react",
|
|
8
8
|
"name": "react",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.741"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"react-error-boundary": "^3.0.0",
|
|
@@ -17,11 +17,7 @@
|
|
|
17
17
|
"ramda": "0.27.1",
|
|
18
18
|
"lodash.flatten": "4.4.0",
|
|
19
19
|
"@testing-library/jest-dom": "5.16.2",
|
|
20
|
-
"camelcase": "6.2.0",
|
|
21
|
-
"expose-loader": "3.1.0",
|
|
22
20
|
"postcss-preset-env": "6.7.0",
|
|
23
|
-
"enhanced-resolve": "4.5.0",
|
|
24
|
-
"find-root": "1.1.0",
|
|
25
21
|
"css-minimizer-webpack-plugin": "3.0.2",
|
|
26
22
|
"terser-webpack-plugin": "5.2.0",
|
|
27
23
|
"webpack": "5.51.1",
|
|
@@ -41,6 +37,7 @@
|
|
|
41
37
|
"@babel/core": "7.12.17",
|
|
42
38
|
"@babel/plugin-transform-modules-commonjs": "7.12.13",
|
|
43
39
|
"@babel/preset-env": "7.12.17",
|
|
40
|
+
"camelcase": "6.2.0",
|
|
44
41
|
"react-error-overlay": "6.0.9",
|
|
45
42
|
"strip-ansi": "6.0.0",
|
|
46
43
|
"prerender-spa-plugin-next": "4.2.0",
|
|
@@ -84,42 +81,39 @@
|
|
|
84
81
|
"@teambit/react.instructions.react.adding-compositions": "0.0.6",
|
|
85
82
|
"@teambit/react.instructions.react.adding-tests": "0.0.6",
|
|
86
83
|
"@teambit/design.ui.pages.standalone-not-found-page": "0.0.356",
|
|
87
|
-
"@teambit/preview": "0.0.
|
|
84
|
+
"@teambit/preview": "0.0.741",
|
|
88
85
|
"@teambit/react.ui.error-fallback": "0.0.111",
|
|
89
86
|
"@teambit/react.ui.loader-fallback": "0.0.89",
|
|
90
87
|
"@teambit/compositions.ui.hooks.use-composition": "0.0.163",
|
|
91
88
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
92
|
-
"@teambit/builder": "0.0.
|
|
93
|
-
"@teambit/bundler": "0.0.
|
|
94
|
-
"@teambit/compiler": "0.0.
|
|
89
|
+
"@teambit/builder": "0.0.741",
|
|
90
|
+
"@teambit/bundler": "0.0.741",
|
|
91
|
+
"@teambit/compiler": "0.0.741",
|
|
95
92
|
"@teambit/component.modules.component-url": "0.0.124",
|
|
96
|
-
"@teambit/component": "0.0.
|
|
97
|
-
"@teambit/
|
|
98
|
-
"@teambit/
|
|
99
|
-
"@teambit/
|
|
100
|
-
"@teambit/
|
|
101
|
-
"@teambit/
|
|
102
|
-
"@teambit/
|
|
103
|
-
"@teambit/
|
|
104
|
-
"@teambit/
|
|
93
|
+
"@teambit/component": "0.0.741",
|
|
94
|
+
"@teambit/dependency-resolver": "0.0.741",
|
|
95
|
+
"@teambit/envs": "0.0.741",
|
|
96
|
+
"@teambit/eslint": "0.0.741",
|
|
97
|
+
"@teambit/formatter": "0.0.292",
|
|
98
|
+
"@teambit/jest": "0.0.741",
|
|
99
|
+
"@teambit/linter": "0.0.741",
|
|
100
|
+
"@teambit/logger": "0.0.584",
|
|
101
|
+
"@teambit/pkg": "0.0.741",
|
|
102
|
+
"@teambit/prettier": "0.0.292",
|
|
105
103
|
"@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.21",
|
|
106
|
-
"@teambit/schema": "0.0.
|
|
107
|
-
"@teambit/tester": "0.0.
|
|
108
|
-
"@teambit/typescript": "0.0.
|
|
109
|
-
"@teambit/webpack": "0.0.
|
|
110
|
-
"@teambit/workspace": "0.0.
|
|
111
|
-
"@teambit/application": "0.0.
|
|
112
|
-
"@teambit/cli": "0.0.
|
|
113
|
-
"@teambit/
|
|
114
|
-
"@teambit/
|
|
115
|
-
"@teambit/graphql": "0.0.738",
|
|
104
|
+
"@teambit/schema": "0.0.741",
|
|
105
|
+
"@teambit/tester": "0.0.741",
|
|
106
|
+
"@teambit/typescript": "0.0.741",
|
|
107
|
+
"@teambit/webpack": "0.0.741",
|
|
108
|
+
"@teambit/workspace": "0.0.741",
|
|
109
|
+
"@teambit/application": "0.0.383",
|
|
110
|
+
"@teambit/cli": "0.0.492",
|
|
111
|
+
"@teambit/generator": "0.0.741",
|
|
112
|
+
"@teambit/graphql": "0.0.741",
|
|
116
113
|
"@teambit/react.ui.highlighter-provider": "0.0.189",
|
|
117
|
-
"@teambit/compositions": "0.0.
|
|
118
|
-
"@teambit/ui": "0.0.
|
|
119
|
-
"@teambit/react.eslint-config-bit-react": "0.0.
|
|
120
|
-
"@teambit/webpack.modules.generate-expose-loaders": "0.0.3",
|
|
121
|
-
"@teambit/webpack.modules.generate-externals": "0.0.3",
|
|
122
|
-
"@teambit/webpack.modules.config-mutator": "0.0.138",
|
|
114
|
+
"@teambit/compositions": "0.0.741",
|
|
115
|
+
"@teambit/ui": "0.0.741",
|
|
116
|
+
"@teambit/react.eslint-config-bit-react": "0.0.566",
|
|
123
117
|
"@teambit/mdx.modules.mdx-loader": "0.0.489",
|
|
124
118
|
"@teambit/react.babel.bit-react-transformer": "0.0.501",
|
|
125
119
|
"@teambit/webpack.modules.generate-style-loaders": "0.0.103",
|
|
@@ -127,7 +121,7 @@
|
|
|
127
121
|
"@teambit/component-id": "0.0.402",
|
|
128
122
|
"@teambit/toolbox.network.get-port": "0.0.113",
|
|
129
123
|
"@teambit/react.modules.prerenderer-puppeteer": "0.0.2",
|
|
130
|
-
"@teambit/config": "0.0.
|
|
124
|
+
"@teambit/config": "0.0.505"
|
|
131
125
|
},
|
|
132
126
|
"devDependencies": {
|
|
133
127
|
"@types/react": "^17.0.8",
|
|
@@ -135,7 +129,6 @@
|
|
|
135
129
|
"@types/fs-extra": "9.0.7",
|
|
136
130
|
"@types/lodash": "4.14.165",
|
|
137
131
|
"@types/lodash.flatten": "4.4.6",
|
|
138
|
-
"@types/find-root": "1.1.2",
|
|
139
132
|
"@types/webpack": "5.28.0",
|
|
140
133
|
"@types/mini-css-extract-plugin": "2.2.0",
|
|
141
134
|
"@types/react-dev-utils": "9.0.10",
|
|
@@ -147,7 +140,7 @@
|
|
|
147
140
|
"@teambit/react.content.react-overview": "1.95.0"
|
|
148
141
|
},
|
|
149
142
|
"peerDependencies": {
|
|
150
|
-
"@teambit/legacy": "1.0.
|
|
143
|
+
"@teambit/legacy": "1.0.272",
|
|
151
144
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
152
145
|
"react": "^16.8.0 || ^17.0.0"
|
|
153
146
|
},
|
|
@@ -211,7 +204,7 @@
|
|
|
211
204
|
"@types/jest": "^26.0.0"
|
|
212
205
|
},
|
|
213
206
|
"peerDependencies": {
|
|
214
|
-
"@teambit/legacy": "1.0.
|
|
207
|
+
"@teambit/legacy": "1.0.272",
|
|
215
208
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
216
209
|
"react": "^16.8.0 || ^17.0.0"
|
|
217
210
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.741/dist/react.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.741/dist/react.docs.mdx')]
|
|
@@ -2,15 +2,12 @@ import WorkboxWebpackPlugin from 'workbox-webpack-plugin';
|
|
|
2
2
|
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
|
|
3
3
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
4
4
|
import { Configuration } from 'webpack';
|
|
5
|
-
import { getExternals } from './get-externals';
|
|
6
5
|
// import { WebpackManifestPlugin } from 'webpack-manifest-plugin';
|
|
7
6
|
|
|
8
7
|
// This is the production and development configuration.
|
|
9
8
|
// It is focused on developer experience, fast rebuilds, and a minimal bundle.
|
|
10
9
|
// eslint-disable-next-line complexity
|
|
11
|
-
export default function (
|
|
12
|
-
const externals = externalizePeer ? (getExternals(peers) as any) : undefined;
|
|
13
|
-
|
|
10
|
+
export default function (dev?: boolean): Configuration {
|
|
14
11
|
const optimization = dev
|
|
15
12
|
? undefined
|
|
16
13
|
: {
|
|
@@ -97,7 +94,6 @@ export default function (externalizePeer: boolean, peers: string[], dev?: boolea
|
|
|
97
94
|
};
|
|
98
95
|
|
|
99
96
|
return {
|
|
100
|
-
externals,
|
|
101
97
|
optimization,
|
|
102
98
|
|
|
103
99
|
plugins: [
|