@teambit/react 0.0.599 → 0.0.607

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.
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function HighlighterWidget(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Logo: () => JSX.Element;
@@ -14,7 +14,9 @@ function appPlugin({
14
14
  export const ${Name}App: ReactAppOptions = {
15
15
  name: '${name}',
16
16
  entry: [require.resolve('./${name}.app-root')],
17
- prerenderRoutes: ['/'],
17
+ prerender: {
18
+ routes: ['/']
19
+ }
18
20
  };
19
21
 
20
22
  export default ${Name}App;
@@ -1 +1 @@
1
- {"version":3,"sources":["app-plugin.ts"],"names":["appPlugin","name","namePascalCase","Name"],"mappings":";;;;;;;AAEO,SAASA,SAAT,CAAmB;AAAEC,EAAAA,IAAF;AAAQC,EAAAA,cAAc,EAAEC;AAAxB,CAAnB,EAAqE;AAC1E,SAAQ;AACV;AACA,eAAeA,IAAK;AACpB,WAAWF,IAAK;AAChB,+BAA+BA,IAAK;AACpC;AACA;AACA;AACA,iBAAiBE,IAAK;AACtB,CATE;AAUD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function appPlugin({ name, namePascalCase: Name }: ComponentContext) {\n return `import { ReactAppOptions } from '@teambit/react';\n\nexport const ${Name}App: ReactAppOptions = {\n name: '${name}',\n entry: [require.resolve('./${name}.app-root')],\n prerenderRoutes: ['/'],\n};\n\nexport default ${Name}App;\n`;\n}\n"]}
1
+ {"version":3,"sources":["app-plugin.ts"],"names":["appPlugin","name","namePascalCase","Name"],"mappings":";;;;;;;AAEO,SAASA,SAAT,CAAmB;AAAEC,EAAAA,IAAF;AAAQC,EAAAA,cAAc,EAAEC;AAAxB,CAAnB,EAAqE;AAC1E,SAAQ;AACV;AACA,eAAeA,IAAK;AACpB,WAAWF,IAAK;AAChB,+BAA+BA,IAAK;AACpC;AACA;AACA;AACA;AACA;AACA,iBAAiBE,IAAK;AACtB,CAXE;AAYD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function appPlugin({ name, namePascalCase: Name }: ComponentContext) {\n return `import { ReactAppOptions } from '@teambit/react';\n\nexport const ${Name}App: ReactAppOptions = {\n name: '${name}',\n entry: [require.resolve('./${name}.app-root')],\n prerender: {\n routes: ['/']\n }\n};\n\nexport default ${Name}App;\n`;\n}\n"]}
@@ -26,7 +26,7 @@ export function ${Name}App() {
26
26
  {/* about page component */}
27
27
  </Route>
28
28
 
29
- </Switch>
29
+ </Routes>
30
30
 
31
31
  {/* footer component */}
32
32
 
@@ -1 +1 @@
1
- {"version":3,"sources":["app.ts"],"names":["appFile","namePascalCase","Name"],"mappings":";;;;;;;AAEO,SAASA,OAAT,CAAiB;AAAEC,EAAAA,cAAc,EAAEC;AAAlB,CAAjB,EAA6D;AAClE,SAAQ;AACV;AACA;AACA,kBAAkBA,IAAK;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAzBE;AA0BD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function appFile({ namePascalCase: Name }: ComponentContext) {\n return `import React from 'react';\nimport { BrowserRouter, Routes, Route } from 'react-router-dom';\n\nexport function ${Name}App() {\n return (\n <BrowserRouter>\n\n {/* header component */}\n\n <Routes>\n <Route path=\"/\" element={<div>Hello World!!</div>}>\n {/* home page component */}\n </Route>\n\n <Route path=\"/about\">\n {/* about page component */}\n </Route>\n\n </Switch>\n\n {/* footer component */}\n\n </BrowserRouter>\n );\n}\n`;\n}\n"]}
1
+ {"version":3,"sources":["app.ts"],"names":["appFile","namePascalCase","Name"],"mappings":";;;;;;;AAEO,SAASA,OAAT,CAAiB;AAAEC,EAAAA,cAAc,EAAEC;AAAlB,CAAjB,EAA6D;AAClE,SAAQ;AACV;AACA;AACA,kBAAkBA,IAAK;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAzBE;AA0BD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function appFile({ namePascalCase: Name }: ComponentContext) {\n return `import React from 'react';\nimport { BrowserRouter, Routes, Route } from 'react-router-dom';\n\nexport function ${Name}App() {\n return (\n <BrowserRouter>\n\n {/* header component */}\n\n <Routes>\n <Route path=\"/\" element={<div>Hello World!!</div>}>\n {/* home page component */}\n </Route>\n\n <Route path=\"/about\">\n {/* about page component */}\n </Route>\n\n </Routes>\n\n {/* footer component */}\n\n </BrowserRouter>\n );\n}\n`;\n}\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react",
3
- "version": "0.0.599",
3
+ "version": "0.0.607",
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.599"
9
+ "version": "0.0.607"
10
10
  },
11
11
  "dependencies": {
12
12
  "react-error-boundary": "^3.0.0",
@@ -79,47 +79,47 @@
79
79
  "@teambit/react.instructions.react.adding-compositions": "0.0.6",
80
80
  "@teambit/react.instructions.react.adding-tests": "0.0.6",
81
81
  "@teambit/design.ui.pages.standalone-not-found-page": "0.0.355",
82
- "@teambit/preview": "0.0.599",
82
+ "@teambit/preview": "0.0.607",
83
83
  "@teambit/react.ui.error-fallback": "0.0.109",
84
84
  "@teambit/react.ui.loader-fallback": "0.0.88",
85
85
  "@teambit/compositions.ui.hooks.use-composition": "0.0.162",
86
86
  "@teambit/design.ui.input.option-button": "0.0.26",
87
87
  "@teambit/design.ui.tooltip": "0.0.352",
88
- "@teambit/builder": "0.0.599",
89
- "@teambit/bundler": "0.0.599",
90
- "@teambit/compiler": "0.0.599",
88
+ "@teambit/builder": "0.0.607",
89
+ "@teambit/bundler": "0.0.607",
90
+ "@teambit/compiler": "0.0.607",
91
91
  "@teambit/component.modules.component-url": "0.0.119",
92
- "@teambit/component": "0.0.599",
93
- "@teambit/envs": "0.0.599",
94
- "@teambit/eslint": "0.0.599",
95
- "@teambit/formatter": "0.0.150",
96
- "@teambit/jest": "0.0.599",
97
- "@teambit/linter": "0.0.599",
98
- "@teambit/pkg": "0.0.599",
99
- "@teambit/prettier": "0.0.150",
92
+ "@teambit/component": "0.0.607",
93
+ "@teambit/envs": "0.0.607",
94
+ "@teambit/eslint": "0.0.607",
95
+ "@teambit/formatter": "0.0.158",
96
+ "@teambit/jest": "0.0.607",
97
+ "@teambit/linter": "0.0.607",
98
+ "@teambit/pkg": "0.0.607",
99
+ "@teambit/prettier": "0.0.158",
100
100
  "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.20",
101
- "@teambit/schema": "0.0.599",
102
- "@teambit/tester": "0.0.599",
103
- "@teambit/typescript": "0.0.599",
104
- "@teambit/webpack": "0.0.599",
105
- "@teambit/workspace": "0.0.599",
106
- "@teambit/application": "0.0.241",
107
- "@teambit/cli": "0.0.411",
108
- "@teambit/dependency-resolver": "0.0.599",
109
- "@teambit/generator": "0.0.599",
110
- "@teambit/graphql": "0.0.599",
101
+ "@teambit/schema": "0.0.607",
102
+ "@teambit/tester": "0.0.607",
103
+ "@teambit/typescript": "0.0.607",
104
+ "@teambit/webpack": "0.0.607",
105
+ "@teambit/workspace": "0.0.607",
106
+ "@teambit/application": "0.0.249",
107
+ "@teambit/cli": "0.0.419",
108
+ "@teambit/dependency-resolver": "0.0.607",
109
+ "@teambit/generator": "0.0.607",
110
+ "@teambit/graphql": "0.0.607",
111
111
  "@teambit/react.ui.highlighter-provider": "0.0.178",
112
- "@teambit/compositions": "0.0.599",
113
- "@teambit/ui": "0.0.599",
114
- "@teambit/react.eslint-config-bit-react": "0.0.490",
112
+ "@teambit/compositions": "0.0.607",
113
+ "@teambit/ui": "0.0.607",
114
+ "@teambit/react.eslint-config-bit-react": "0.0.496",
115
115
  "@teambit/mdx.modules.mdx-loader": "0.0.488",
116
116
  "@teambit/react.babel.bit-react-transformer": "0.0.494",
117
117
  "@teambit/webpack.modules.generate-style-loaders": "0.0.102",
118
118
  "@teambit/webpack.modules.style-regexps": "0.0.131",
119
119
  "@teambit/component-id": "0.0.398",
120
- "@teambit/isolator": "0.0.599",
120
+ "@teambit/isolator": "0.0.607",
121
121
  "@teambit/toolbox.network.get-port": "0.0.112",
122
- "@teambit/config": "0.0.423"
122
+ "@teambit/config": "0.0.431"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@types/react": "^17.0.8",
@@ -137,7 +137,7 @@
137
137
  "@teambit/react.aspect-docs.react": "0.0.131"
138
138
  },
139
139
  "peerDependencies": {
140
- "@teambit/legacy": "1.0.198",
140
+ "@teambit/legacy": "1.0.202",
141
141
  "react-dom": "^16.8.0 || ^17.0.0",
142
142
  "react": "^16.8.0 || ^17.0.0"
143
143
  },
@@ -199,7 +199,7 @@
199
199
  "@types/jest": "^26.0.0"
200
200
  },
201
201
  "peerDependencies": {
202
- "@teambit/legacy": "1.0.198",
202
+ "@teambit/legacy": "1.0.202",
203
203
  "react-dom": "^16.8.0 || ^17.0.0",
204
204
  "react": "^16.8.0 || ^17.0.0"
205
205
  }
@@ -6,7 +6,9 @@ export function appPlugin({ name, namePascalCase: Name }: ComponentContext) {
6
6
  export const ${Name}App: ReactAppOptions = {
7
7
  name: '${name}',
8
8
  entry: [require.resolve('./${name}.app-root')],
9
- prerenderRoutes: ['/'],
9
+ prerender: {
10
+ routes: ['/']
11
+ }
10
12
  };
11
13
 
12
14
  export default ${Name}App;
@@ -19,7 +19,7 @@ export function ${Name}App() {
19
19
  {/* about page component */}
20
20
  </Route>
21
21
 
22
- </Switch>
22
+ </Routes>
23
23
 
24
24
  {/* footer component */}
25
25