@teambit/react 0.0.1129 → 0.0.1131

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 (23) hide show
  1. package/artifacts/env-template/public/{246.be41cd9d6ce996e54007.js → 733.37026e4f09ac5bbb7c7f.js} +2 -2
  2. package/artifacts/env-template/public/{924.25c2604cc76c1395378b.js → 924.3c1080d746a3789291ea.js} +4 -4
  3. package/artifacts/env-template/public/assets-manifest.json +14 -14
  4. package/artifacts/env-template/public/{compositions.3f69a6d2b1fddc4810cf.js → compositions.66cc3cb0975fe6f241a0.js} +1 -1
  5. package/artifacts/env-template/public/compositions.html +1 -1
  6. package/artifacts/env-template/public/{overview.af24c52f552f9697c7bf.js → overview.f189b58974c7da51c231.js} +1 -1
  7. package/artifacts/env-template/public/overview.html +1 -1
  8. package/artifacts/env-template/public/{peers.e1a7a5264a6abd1710b9.js → peers.f0d9a1532713690464a0.js} +1 -1
  9. package/artifacts/env-template/public/{preview-root.f9e457d5945d888f6c97.js → preview-root.ef67a6442e9103a22003.js} +1 -1
  10. package/artifacts/env-template/public/static/css/{924.a758a929.css → 924.cc84ee54.css} +1 -1
  11. package/dist/{preview-1691723880005.js → preview-1691983057527.js} +2 -2
  12. package/dist/templates/react-app/files/app-plugin.d.ts +1 -1
  13. package/dist/templates/react-app/files/app-plugin.js +6 -11
  14. package/dist/templates/react-app/files/app-plugin.js.map +1 -1
  15. package/dist/templates/react-app/index.js +1 -1
  16. package/dist/templates/react-app/index.js.map +1 -1
  17. package/package-tar/teambit-react-0.0.1131.tgz +0 -0
  18. package/package.json +36 -36
  19. package/templates/react-app/files/app-plugin.ts +6 -10
  20. package/templates/react-app/index.ts +1 -1
  21. package/package-tar/teambit-react-0.0.1129.tgz +0 -0
  22. /package/{compositions-1691723880005.js → compositions-1691983057527.js} +0 -0
  23. /package/{overview-1691723880005.js → overview-1691983057527.js} +0 -0
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react",
3
- "version": "0.0.1129",
3
+ "version": "0.0.1131",
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": "0.0.1129"
9
+ "version": "0.0.1131"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -91,46 +91,46 @@
91
91
  "@teambit/component-id": "0.0.427",
92
92
  "@teambit/react.rendering.ssr": "0.0.3",
93
93
  "@teambit/compositions.ui.hooks.use-composition": "0.0.172",
94
- "@teambit/builder": "0.0.1129",
95
- "@teambit/bundler": "0.0.1129",
96
- "@teambit/compiler": "0.0.1129",
94
+ "@teambit/builder": "0.0.1131",
95
+ "@teambit/bundler": "0.0.1131",
96
+ "@teambit/compiler": "0.0.1131",
97
97
  "@teambit/component.modules.component-url": "0.0.151",
98
- "@teambit/component": "0.0.1129",
99
- "@teambit/dependency-resolver": "0.0.1129",
100
- "@teambit/envs": "0.0.1129",
101
- "@teambit/eslint": "0.0.1129",
102
- "@teambit/formatter": "0.0.680",
103
- "@teambit/jest": "0.0.1129",
104
- "@teambit/linter": "0.0.1129",
105
- "@teambit/logger": "0.0.848",
106
- "@teambit/pkg": "0.0.1129",
107
- "@teambit/prettier": "0.0.680",
108
- "@teambit/preview": "0.0.1129",
98
+ "@teambit/component": "0.0.1131",
99
+ "@teambit/dependency-resolver": "0.0.1131",
100
+ "@teambit/envs": "0.0.1131",
101
+ "@teambit/eslint": "0.0.1131",
102
+ "@teambit/formatter": "0.0.682",
103
+ "@teambit/jest": "0.0.1131",
104
+ "@teambit/linter": "0.0.1131",
105
+ "@teambit/logger": "0.0.850",
106
+ "@teambit/pkg": "0.0.1131",
107
+ "@teambit/prettier": "0.0.682",
108
+ "@teambit/preview": "0.0.1131",
109
109
  "@teambit/react.ui.compositions-app": "0.0.12",
110
- "@teambit/react.ui.docs-app": "0.0.208",
110
+ "@teambit/react.ui.docs-app": "1.0.1",
111
111
  "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.31",
112
- "@teambit/schema": "0.0.1129",
113
- "@teambit/tester": "0.0.1129",
114
- "@teambit/typescript": "0.0.1129",
115
- "@teambit/webpack": "0.0.1129",
116
- "@teambit/workspace-config-files": "0.0.109",
117
- "@teambit/workspace": "0.0.1129",
118
- "@teambit/application": "0.0.771",
119
- "@teambit/cli": "0.0.755",
120
- "@teambit/generator": "0.0.1129",
121
- "@teambit/graphql": "0.0.1129",
112
+ "@teambit/schema": "0.0.1131",
113
+ "@teambit/tester": "0.0.1131",
114
+ "@teambit/typescript": "0.0.1131",
115
+ "@teambit/webpack": "0.0.1131",
116
+ "@teambit/workspace-config-files": "0.0.111",
117
+ "@teambit/workspace": "0.0.1131",
118
+ "@teambit/application": "0.0.773",
119
+ "@teambit/cli": "0.0.757",
120
+ "@teambit/generator": "0.0.1131",
121
+ "@teambit/graphql": "0.0.1131",
122
122
  "@teambit/react.ui.highlighter-provider": "0.0.200",
123
- "@teambit/compositions": "0.0.1129",
124
- "@teambit/ui": "0.0.1129",
125
- "@teambit/react.eslint-config-bit-react": "1.0.1",
126
- "@teambit/mdx.modules.mdx-loader": "0.0.513",
127
- "@teambit/react.babel.bit-react-transformer": "0.0.530",
128
- "@teambit/webpack.modules.generate-style-loaders": "0.0.110",
129
- "@teambit/webpack.modules.style-regexps": "0.0.139",
123
+ "@teambit/compositions": "0.0.1131",
124
+ "@teambit/ui": "0.0.1131",
125
+ "@teambit/react.eslint-config-bit-react": "1.0.3",
126
+ "@teambit/mdx.modules.mdx-loader": "1.0.1",
127
+ "@teambit/react.babel.bit-react-transformer": "1.0.1",
128
+ "@teambit/webpack.modules.generate-style-loaders": "1.0.0",
129
+ "@teambit/webpack.modules.style-regexps": "1.0.0",
130
130
  "@teambit/bit-error": "0.0.402",
131
131
  "@teambit/toolbox.network.get-port": "1.0.0",
132
132
  "@teambit/ui-foundation.ui.pages.static-error": "0.0.87",
133
- "@teambit/config": "0.0.769"
133
+ "@teambit/config": "0.0.771"
134
134
  },
135
135
  "devDependencies": {
136
136
  "@types/react": "^17.0.8",
@@ -152,7 +152,7 @@
152
152
  "@teambit/react.content.react-overview": "1.95.0"
153
153
  },
154
154
  "peerDependencies": {
155
- "@teambit/legacy": "1.0.537",
155
+ "@teambit/legacy": "1.0.540",
156
156
  "react-dom": "^16.8.0 || ^17.0.0",
157
157
  "react": "^16.8.0 || ^17.0.0"
158
158
  },
@@ -1,13 +1,9 @@
1
1
  import { ComponentContext } from '@teambit/generator';
2
2
 
3
- export function appPlugin({ name, namePascalCase: Name }: ComponentContext) {
4
- return `import { ReactAppOptions } from '@teambit/react';
5
-
6
- export const ${Name}App: ReactAppOptions = {
7
- name: '${name}',
8
- entry: [require.resolve('./${name}.app-root')]
9
- };
10
-
11
- export default ${Name}App;
12
- `;
3
+ export function appPlugin({ name }: ComponentContext) {
4
+ return `/** @type {import("@teambit/react.apps.react-app-types").ReactAppOptions} */
5
+ module.exports.default = {
6
+ name: "${name}",
7
+ entry: [require.resolve("./${name}.app-root")],
8
+ };`;
13
9
  }
@@ -22,7 +22,7 @@ export const reactAppTemplate: ComponentTemplate = {
22
22
  content: docFile(context),
23
23
  },
24
24
  {
25
- relativePath: `${context.name}.react-app.ts`,
25
+ relativePath: `${context.name}.react-app.cjs`,
26
26
  content: appPlugin(context),
27
27
  },
28
28
  {