@teambit/react 0.0.767 → 0.0.770
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/react.application.ts +4 -4
- package/artifacts/env-template/public/22.js +4 -4
- package/artifacts/env-template/public/740.js +37 -0
- package/artifacts/env-template/public/875.js +58 -58
- package/artifacts/env-template/public/assets-manifest.json +8 -8
- package/artifacts/env-template/public/{compositions.65cdac3c67d734437566.js → compositions.ea9fbaf55ee8db8eb0d4.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/overview.f357668726e28897a548.js +5 -0
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{preview-root.65f7614139a4a7d6fbfa.js → preview-root.13d8cb2a4a025f53011e.js} +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +2 -2
- package/{compositions-1655782086029.js → compositions-1656041300679.js} +0 -0
- package/dist/apps/web/react.application.js +4 -4
- package/dist/apps/web/react.application.js.map +1 -1
- package/dist/templates/react-env/files/main.runtime.js +11 -10
- package/dist/templates/react-env/files/main.runtime.js.map +1 -1
- package/{overview-1655782086029.js → overview-1656041300679.js} +0 -0
- package/package-tar/teambit-react-0.0.770.tgz +0 -0
- package/package.json +31 -31
- package/{preview-1655782086029.js → preview-1656041300679.js} +2 -2
- package/templates/react-env/files/main.runtime.ts +11 -10
- package/artifacts/env-template/public/607.js +0 -46
- package/artifacts/env-template/public/overview.0445a5a61099a9aa1ac7.js +0 -5
- package/package-tar/teambit-react-0.0.767.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["mainRuntimeFile","namePascalCase","Name","name"],"sources":["main.runtime.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ReactAspect, ReactMain } from '@teambit/react';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { ${Name}Aspect } from './${name}.aspect';\n//import {\n// previewConfigTransformer,\n// devServerConfigTransformer\n//} from './webpack/webpack-transformers';\n//import {\n// devConfigTransformer,\n// buildConfigTransformer,\n//} from \"./typescript/ts-transformer\";\n\nexport class ${Name}Main {\n static slots = [];\n\n static dependencies = [ReactAspect, EnvsAspect];\n\n static runtime = MainRuntime;\n\n //const webpackModifiers: UseWebpackModifiers = {\n
|
|
1
|
+
{"version":3,"names":["mainRuntimeFile","namePascalCase","Name","name"],"sources":["main.runtime.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ReactAspect, ReactMain, UseTypescriptModifiers } from '@teambit/react';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { ${Name}Aspect } from './${name}.aspect';\n//import {\n// previewConfigTransformer,\n// devServerConfigTransformer\n//} from './webpack/webpack-transformers';\n//import {\n// devConfigTransformer,\n// buildConfigTransformer,\n//} from \"./typescript/ts-transformer\";\n\nexport class ${Name}Main {\n static slots = [];\n\n static dependencies = [ReactAspect, EnvsAspect];\n\n static runtime = MainRuntime;\n\n static async provider([react, envs]: [ReactMain, EnvsMain]) {\n\n //const webpackModifiers: UseWebpackModifiers = {\n // previewConfig: [previewConfigTransformer],\n // devServerConfig: [devServerConfigTransformer],\n //};\n\n //const tsModifiers: UseTypescriptModifiers = {\n // devConfig: [devConfigTransformer],\n // buildConfig: [buildConfigTransformer],\n //};\n\n const ${Name}Env = react.compose([\n /**\n * Uncomment to override the config files for TypeScript, Webpack or Jest\n * Your config gets merged with the defaults\n */\n\n // react.useTypescript(tsModifiers), // note: this cannot be used in conjunction with react.overrideCompiler\n // react.useWebpack(webpackModifiers),\n // react.overrideJestConfig(require.resolve('./jest/jest.config')),\n\n /**\n * override the ESLint default config here then check your files for lint errors\n * @example\n * bit lint\n * bit lint --fix\n */\n //react.useEslint({\n // transformers: [\n // (config) => {\n // config.setRule('no-console', ['error']);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override the Prettier default config here the check your formatting\n * @example\n * bit format --check\n * bit format\n */\n //react.usePrettier({\n // transformers: [\n // (config) => {\n // config.setKey('tabWidth', 2);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override dependencies here\n * @example\n * Uncomment types to include version 17.0.3 of the types package\n */\n react.overrideDependencies({\n devDependencies: {\n // '@types/react': '17.0.3'\n }\n })\n ]);\n envs.registerEnv(${Name}Env);\n return new ${Name}Main();\n }\n}\n\n${Name}Aspect.addRuntime(${Name}Main);\n`;\n}\n"],"mappings":";;;;;;;AAEO,SAASA,eAAT,CAAyB;EAAEC,cAAc,EAAEC,IAAlB;EAAwBC;AAAxB,CAAzB,EAA2E;EAChF,OAAQ;AACV;AACA;AACA,WAAWD,IAAK,oBAAmBC,IAAK;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeD,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAYA,IAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBA,IAAK;AAC5B,iBAAiBA,IAAK;AACtB;AACA;AACA;AACA,EAAEA,IAAK,qBAAoBA,IAAK;AAChC,CAzFE;AA0FD"}
|
|
File without changes
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.770",
|
|
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.770"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"react-error-boundary": "^3.0.0",
|
|
@@ -80,39 +80,39 @@
|
|
|
80
80
|
"@teambit/react.instructions.react.adding-compositions": "0.0.6",
|
|
81
81
|
"@teambit/react.instructions.react.adding-tests": "0.0.6",
|
|
82
82
|
"@teambit/design.ui.pages.standalone-not-found-page": "0.0.358",
|
|
83
|
-
"@teambit/preview": "0.0.
|
|
83
|
+
"@teambit/preview": "0.0.770",
|
|
84
84
|
"@teambit/react.ui.error-fallback": "0.0.111",
|
|
85
85
|
"@teambit/react.ui.loader-fallback": "0.0.89",
|
|
86
86
|
"@teambit/compositions.ui.hooks.use-composition": "0.0.163",
|
|
87
87
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
88
|
-
"@teambit/builder": "0.0.
|
|
89
|
-
"@teambit/bundler": "0.0.
|
|
90
|
-
"@teambit/compiler": "0.0.
|
|
88
|
+
"@teambit/builder": "0.0.770",
|
|
89
|
+
"@teambit/bundler": "0.0.770",
|
|
90
|
+
"@teambit/compiler": "0.0.770",
|
|
91
91
|
"@teambit/component.modules.component-url": "0.0.124",
|
|
92
|
-
"@teambit/component": "0.0.
|
|
93
|
-
"@teambit/dependency-resolver": "0.0.
|
|
94
|
-
"@teambit/envs": "0.0.
|
|
95
|
-
"@teambit/eslint": "0.0.
|
|
96
|
-
"@teambit/formatter": "0.0.
|
|
97
|
-
"@teambit/jest": "0.0.
|
|
98
|
-
"@teambit/linter": "0.0.
|
|
99
|
-
"@teambit/logger": "0.0.
|
|
100
|
-
"@teambit/pkg": "0.0.
|
|
101
|
-
"@teambit/prettier": "0.0.
|
|
92
|
+
"@teambit/component": "0.0.770",
|
|
93
|
+
"@teambit/dependency-resolver": "0.0.770",
|
|
94
|
+
"@teambit/envs": "0.0.770",
|
|
95
|
+
"@teambit/eslint": "0.0.770",
|
|
96
|
+
"@teambit/formatter": "0.0.321",
|
|
97
|
+
"@teambit/jest": "0.0.770",
|
|
98
|
+
"@teambit/linter": "0.0.770",
|
|
99
|
+
"@teambit/logger": "0.0.602",
|
|
100
|
+
"@teambit/pkg": "0.0.770",
|
|
101
|
+
"@teambit/prettier": "0.0.321",
|
|
102
102
|
"@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.21",
|
|
103
|
-
"@teambit/schema": "0.0.
|
|
104
|
-
"@teambit/tester": "0.0.
|
|
105
|
-
"@teambit/typescript": "0.0.
|
|
106
|
-
"@teambit/webpack": "0.0.
|
|
107
|
-
"@teambit/workspace": "0.0.
|
|
108
|
-
"@teambit/application": "0.0.
|
|
109
|
-
"@teambit/cli": "0.0.
|
|
110
|
-
"@teambit/generator": "0.0.
|
|
111
|
-
"@teambit/graphql": "0.0.
|
|
103
|
+
"@teambit/schema": "0.0.770",
|
|
104
|
+
"@teambit/tester": "0.0.770",
|
|
105
|
+
"@teambit/typescript": "0.0.770",
|
|
106
|
+
"@teambit/webpack": "0.0.770",
|
|
107
|
+
"@teambit/workspace": "0.0.770",
|
|
108
|
+
"@teambit/application": "0.0.412",
|
|
109
|
+
"@teambit/cli": "0.0.509",
|
|
110
|
+
"@teambit/generator": "0.0.770",
|
|
111
|
+
"@teambit/graphql": "0.0.770",
|
|
112
112
|
"@teambit/react.ui.highlighter-provider": "0.0.189",
|
|
113
|
-
"@teambit/compositions": "0.0.
|
|
114
|
-
"@teambit/ui": "0.0.
|
|
115
|
-
"@teambit/react.eslint-config-bit-react": "0.0.
|
|
113
|
+
"@teambit/compositions": "0.0.770",
|
|
114
|
+
"@teambit/ui": "0.0.770",
|
|
115
|
+
"@teambit/react.eslint-config-bit-react": "0.0.583",
|
|
116
116
|
"@teambit/mdx.modules.mdx-loader": "0.0.489",
|
|
117
117
|
"@teambit/react.babel.bit-react-transformer": "0.0.501",
|
|
118
118
|
"@teambit/webpack.modules.generate-style-loaders": "0.0.103",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@teambit/component-id": "0.0.402",
|
|
121
121
|
"@teambit/toolbox.network.get-port": "0.0.113",
|
|
122
122
|
"@teambit/react.modules.prerenderer-puppeteer": "0.0.2",
|
|
123
|
-
"@teambit/config": "0.0.
|
|
123
|
+
"@teambit/config": "0.0.522"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@types/react": "^17.0.8",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"@teambit/react.content.react-overview": "1.95.0"
|
|
140
140
|
},
|
|
141
141
|
"peerDependencies": {
|
|
142
|
-
"@teambit/legacy": "1.0.
|
|
142
|
+
"@teambit/legacy": "1.0.289",
|
|
143
143
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
144
144
|
"react": "^16.8.0 || ^17.0.0"
|
|
145
145
|
},
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"@types/jest": "^26.0.0"
|
|
204
204
|
},
|
|
205
205
|
"peerDependencies": {
|
|
206
|
-
"@teambit/legacy": "1.0.
|
|
206
|
+
"@teambit/legacy": "1.0.289",
|
|
207
207
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
208
208
|
"react": "^16.8.0 || ^17.0.0"
|
|
209
209
|
}
|
|
@@ -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.770/dist/react.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.770/dist/react.docs.mdx')]
|
|
@@ -2,7 +2,7 @@ import { ComponentContext } from '@teambit/generator';
|
|
|
2
2
|
|
|
3
3
|
export function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext) {
|
|
4
4
|
return `import { MainRuntime } from '@teambit/cli';
|
|
5
|
-
import { ReactAspect, ReactMain } from '@teambit/react';
|
|
5
|
+
import { ReactAspect, ReactMain, UseTypescriptModifiers } from '@teambit/react';
|
|
6
6
|
import { EnvsAspect, EnvsMain } from '@teambit/envs';
|
|
7
7
|
import { ${Name}Aspect } from './${name}.aspect';
|
|
8
8
|
//import {
|
|
@@ -21,17 +21,18 @@ export class ${Name}Main {
|
|
|
21
21
|
|
|
22
22
|
static runtime = MainRuntime;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
// previewConfig: [previewConfigTransformer],
|
|
26
|
-
// devServerConfig: [devServerConfigTransformer],
|
|
27
|
-
//};
|
|
24
|
+
static async provider([react, envs]: [ReactMain, EnvsMain]) {
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
//const webpackModifiers: UseWebpackModifiers = {
|
|
27
|
+
// previewConfig: [previewConfigTransformer],
|
|
28
|
+
// devServerConfig: [devServerConfigTransformer],
|
|
29
|
+
//};
|
|
30
|
+
|
|
31
|
+
//const tsModifiers: UseTypescriptModifiers = {
|
|
32
|
+
// devConfig: [devConfigTransformer],
|
|
33
|
+
// buildConfig: [buildConfigTransformer],
|
|
34
|
+
//};
|
|
33
35
|
|
|
34
|
-
static async provider([react, envs]: [ReactMain, EnvsMain]) {
|
|
35
36
|
const ${Name}Env = react.compose([
|
|
36
37
|
/**
|
|
37
38
|
* Uncomment to override the config files for TypeScript, Webpack or Jest
|