@teambit/react 0.0.721 → 0.0.722

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 (29) hide show
  1. package/artifacts/env-template/public/{477.js → 365.js} +2 -2
  2. package/artifacts/env-template/public/assets-manifest.json +8 -8
  3. package/artifacts/env-template/public/{compositions.e79a0e60ecc2afac0ce6.js → compositions.81e1e6e4442a4eb56325.js} +1 -1
  4. package/artifacts/env-template/public/compositions.html +1 -1
  5. package/artifacts/env-template/public/{overview.0ba660de4543759f70ed.js → overview.84fe8f61752faa965509.js} +1 -1
  6. package/artifacts/env-template/public/overview.html +1 -1
  7. package/artifacts/env-template/public/{preview-root.1b5d5ad3660ca8bd3156.js → preview-root.639bb6c933946c03b93a.js} +1 -1
  8. package/artifacts/env-template/public/service-worker.js +1 -1
  9. package/artifacts/preview/teambit_react_react-preview.js +2 -2
  10. package/{compositions-1651202606218.js → compositions-1651289072753.js} +0 -0
  11. package/dist/react.templates.js +31 -1
  12. package/dist/react.templates.js.map +1 -1
  13. package/dist/templates/react-workspace-analytics/index.d.ts +2 -0
  14. package/dist/templates/react-workspace-analytics/index.js +52 -0
  15. package/dist/templates/react-workspace-analytics/index.js.map +1 -0
  16. package/dist/templates/react-workspace-data-fetching/index.d.ts +2 -0
  17. package/dist/templates/react-workspace-data-fetching/index.js +52 -0
  18. package/dist/templates/react-workspace-data-fetching/index.js.map +1 -0
  19. package/dist/templates/react-workspace-wiki/index.d.ts +2 -0
  20. package/dist/templates/react-workspace-wiki/index.js +53 -0
  21. package/dist/templates/react-workspace-wiki/index.js.map +1 -0
  22. package/{overview-1651202606218.js → overview-1651289072753.js} +0 -0
  23. package/package-tar/teambit-react-0.0.722.tgz +0 -0
  24. package/package.json +30 -30
  25. package/{preview-1651202606218.js → preview-1651289072753.js} +2 -2
  26. package/templates/react-workspace-analytics/index.ts +31 -0
  27. package/templates/react-workspace-data-fetching/index.ts +35 -0
  28. package/templates/react-workspace-wiki/index.ts +28 -0
  29. package/package-tar/teambit-react-0.0.721.tgz +0 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.promise.js");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.reactWorkspaceWikiTemplate = void 0;
9
+
10
+ function _workspaceCommon() {
11
+ const data = require("../workspace-common");
12
+
13
+ _workspaceCommon = function () {
14
+ return data;
15
+ };
16
+
17
+ return data;
18
+ }
19
+
20
+ const reactWorkspaceWikiTemplate = {
21
+ name: 'react-wiki',
22
+ description: 'React workspace with components for a Wiki',
23
+ hidden: true,
24
+ generateFiles: async context => {
25
+ return (0, _workspaceCommon().generateFiles)(context);
26
+ },
27
+ fork: () => {
28
+ return [{
29
+ id: 'teambit.wiki/apps/wiki@1.90.13',
30
+ targetName: 'apps/wiki',
31
+ path: 'apps/wiki'
32
+ }, {
33
+ id: 'teambit.wiki/sections/wiki@1.90.3',
34
+ targetName: 'sections/wiki',
35
+ path: 'sections/wiki'
36
+ }, {
37
+ id: 'teambit.wiki/blocks/header@0.0.40',
38
+ targetName: 'blocks/header',
39
+ path: 'blocks/header@0.0.24'
40
+ }, {
41
+ id: 'teambit.wiki/blocks/footer',
42
+ targetName: 'blocks/footer',
43
+ path: 'blocks/footer'
44
+ }, {
45
+ id: 'teambit.wiki/content/welcome@0.0.40',
46
+ targetName: 'content/welcome',
47
+ path: 'content/welcome'
48
+ }];
49
+ }
50
+ };
51
+ exports.reactWorkspaceWikiTemplate = reactWorkspaceWikiTemplate;
52
+
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["reactWorkspaceWikiTemplate","name","description","hidden","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,0BAA6C,GAAG;AAC3DC,EAAAA,IAAI,EAAE,YADqD;AAE3DC,EAAAA,WAAW,EAAE,4CAF8C;AAG3DC,EAAAA,MAAM,EAAE,IAHmD;AAI3DC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GAN0D;AAO3DC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,gCADN;AAEEC,MAAAA,UAAU,EAAE,WAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AAAEF,MAAAA,EAAE,EAAE,mCAAN;AAA2CC,MAAAA,UAAU,EAAE,eAAvD;AAAwEC,MAAAA,IAAI,EAAE;AAA9E,KANK,EAOL;AAAEF,MAAAA,EAAE,EAAE,mCAAN;AAA2CC,MAAAA,UAAU,EAAE,eAAvD;AAAwEC,MAAAA,IAAI,EAAE;AAA9E,KAPK,EAQL;AAAEF,MAAAA,EAAE,EAAE,4BAAN;AAAoCC,MAAAA,UAAU,EAAE,eAAhD;AAAiEC,MAAAA,IAAI,EAAE;AAAvE,KARK,EASL;AACEF,MAAAA,EAAE,EAAE,qCADN;AAEEC,MAAAA,UAAU,EAAE,iBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KATK,CAAP;AAeD;AAvB0D,CAAtD","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceWikiTemplate: WorkspaceTemplate = {\n name: 'react-wiki',\n description: 'React workspace with components for a Wiki',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.wiki/apps/wiki@1.90.13',\n targetName: 'apps/wiki',\n path: 'apps/wiki',\n },\n { id: 'teambit.wiki/sections/wiki@1.90.3', targetName: 'sections/wiki', path: 'sections/wiki' },\n { id: 'teambit.wiki/blocks/header@0.0.40', targetName: 'blocks/header', path: 'blocks/header@0.0.24' },\n { id: 'teambit.wiki/blocks/footer', targetName: 'blocks/footer', path: 'blocks/footer' },\n {\n id: 'teambit.wiki/content/welcome@0.0.40',\n targetName: 'content/welcome',\n path: 'content/welcome',\n },\n ];\n },\n};\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react",
3
- "version": "0.0.721",
3
+ "version": "0.0.722",
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.721"
9
+ "version": "0.0.722"
10
10
  },
11
11
  "dependencies": {
12
12
  "react-error-boundary": "^3.0.0",
@@ -82,38 +82,38 @@
82
82
  "@teambit/react.instructions.react.adding-compositions": "0.0.6",
83
83
  "@teambit/react.instructions.react.adding-tests": "0.0.6",
84
84
  "@teambit/design.ui.pages.standalone-not-found-page": "0.0.356",
85
- "@teambit/preview": "0.0.721",
85
+ "@teambit/preview": "0.0.722",
86
86
  "@teambit/react.ui.error-fallback": "0.0.111",
87
87
  "@teambit/react.ui.loader-fallback": "0.0.89",
88
88
  "@teambit/compositions.ui.hooks.use-composition": "0.0.163",
89
89
  "@teambit/design.ui.tooltip": "0.0.352",
90
- "@teambit/builder": "0.0.721",
91
- "@teambit/bundler": "0.0.721",
92
- "@teambit/compiler": "0.0.721",
90
+ "@teambit/builder": "0.0.722",
91
+ "@teambit/bundler": "0.0.722",
92
+ "@teambit/compiler": "0.0.722",
93
93
  "@teambit/component.modules.component-url": "0.0.124",
94
- "@teambit/component": "0.0.721",
95
- "@teambit/envs": "0.0.721",
96
- "@teambit/eslint": "0.0.721",
97
- "@teambit/formatter": "0.0.272",
98
- "@teambit/jest": "0.0.721",
99
- "@teambit/linter": "0.0.721",
100
- "@teambit/pkg": "0.0.721",
101
- "@teambit/prettier": "0.0.272",
94
+ "@teambit/component": "0.0.722",
95
+ "@teambit/envs": "0.0.722",
96
+ "@teambit/eslint": "0.0.722",
97
+ "@teambit/formatter": "0.0.273",
98
+ "@teambit/jest": "0.0.722",
99
+ "@teambit/linter": "0.0.722",
100
+ "@teambit/pkg": "0.0.722",
101
+ "@teambit/prettier": "0.0.273",
102
102
  "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.21",
103
- "@teambit/schema": "0.0.721",
104
- "@teambit/tester": "0.0.721",
105
- "@teambit/typescript": "0.0.721",
106
- "@teambit/webpack": "0.0.721",
107
- "@teambit/workspace": "0.0.721",
108
- "@teambit/application": "0.0.363",
109
- "@teambit/cli": "0.0.480",
110
- "@teambit/dependency-resolver": "0.0.721",
111
- "@teambit/generator": "0.0.721",
112
- "@teambit/graphql": "0.0.721",
103
+ "@teambit/schema": "0.0.722",
104
+ "@teambit/tester": "0.0.722",
105
+ "@teambit/typescript": "0.0.722",
106
+ "@teambit/webpack": "0.0.722",
107
+ "@teambit/workspace": "0.0.722",
108
+ "@teambit/application": "0.0.364",
109
+ "@teambit/cli": "0.0.481",
110
+ "@teambit/dependency-resolver": "0.0.722",
111
+ "@teambit/generator": "0.0.722",
112
+ "@teambit/graphql": "0.0.722",
113
113
  "@teambit/react.ui.highlighter-provider": "0.0.189",
114
- "@teambit/compositions": "0.0.721",
115
- "@teambit/ui": "0.0.721",
116
- "@teambit/react.eslint-config-bit-react": "0.0.555",
114
+ "@teambit/compositions": "0.0.722",
115
+ "@teambit/ui": "0.0.722",
116
+ "@teambit/react.eslint-config-bit-react": "0.0.556",
117
117
  "@teambit/webpack.modules.generate-expose-loaders": "0.0.3",
118
118
  "@teambit/webpack.modules.generate-externals": "0.0.3",
119
119
  "@teambit/webpack.modules.config-mutator": "0.0.137",
@@ -123,7 +123,7 @@
123
123
  "@teambit/webpack.modules.style-regexps": "0.0.132",
124
124
  "@teambit/component-id": "0.0.402",
125
125
  "@teambit/toolbox.network.get-port": "0.0.113",
126
- "@teambit/config": "0.0.493"
126
+ "@teambit/config": "0.0.494"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@types/react": "^17.0.8",
@@ -142,7 +142,7 @@
142
142
  "@teambit/react.content.react-overview": "1.95.0"
143
143
  },
144
144
  "peerDependencies": {
145
- "@teambit/legacy": "1.0.260",
145
+ "@teambit/legacy": "1.0.261",
146
146
  "react-dom": "^16.8.0 || ^17.0.0",
147
147
  "react": "^16.8.0 || ^17.0.0"
148
148
  },
@@ -206,7 +206,7 @@
206
206
  "@types/jest": "^26.0.0"
207
207
  },
208
208
  "peerDependencies": {
209
- "@teambit/legacy": "1.0.260",
209
+ "@teambit/legacy": "1.0.261",
210
210
  "react-dom": "^16.8.0 || ^17.0.0",
211
211
  "react": "^16.8.0 || ^17.0.0"
212
212
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.721/dist/react.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.721/dist/react.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.722/dist/react.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.722/dist/react.docs.mdx')]
@@ -0,0 +1,31 @@
1
+ import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';
2
+ import { generateFiles as generateCommonFiles } from '../workspace-common';
3
+
4
+ export const reactWorkspaceAnalyticsTemplate: WorkspaceTemplate = {
5
+ name: 'react-analytics',
6
+ description: 'React workspace with components for an Analytics Application',
7
+ generateFiles: async (context: WorkspaceContext) => {
8
+ return generateCommonFiles(context);
9
+ },
10
+ fork: () => {
11
+ return [
12
+ {
13
+ id: 'teambit.analytics/examples/dashboard',
14
+ targetName: 'examples/dashboard',
15
+ path: 'examples/dashboard',
16
+ },
17
+ { id: 'teambit.analytics/examples/new-users', targetName: 'examples/new-users', path: 'examples/new-users' },
18
+ { id: 'teambit.analytics/examples/revenues', targetName: 'examples/revenues', path: 'examples/revenues' },
19
+ {
20
+ id: 'teambit.analytics/examples/top-frameworks',
21
+ targetName: 'examples/top-frameworks',
22
+ path: 'examples/top-frameworks',
23
+ },
24
+ {
25
+ id: 'teambit.analytics/examples/top-members',
26
+ targetName: 'examples/top-members',
27
+ path: 'examples/top-members',
28
+ },
29
+ ];
30
+ },
31
+ };
@@ -0,0 +1,35 @@
1
+ import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';
2
+ import { generateFiles as generateCommonFiles } from '../workspace-common';
3
+
4
+ export const reactWorkspaceDataFetchingTemplate: WorkspaceTemplate = {
5
+ name: 'react-data-fetching',
6
+ description: 'React workspace with components to show data fetching',
7
+ generateFiles: async (context: WorkspaceContext) => {
8
+ return generateCommonFiles(context);
9
+ },
10
+ fork: () => {
11
+ return [
12
+ {
13
+ id: 'learn-bit-react.data-fetching/pages/books-page',
14
+ targetName: 'pages/books-page',
15
+ path: 'pages/books-page',
16
+ },
17
+ {
18
+ id: 'learn-bit-react.data-fetching/ui/hooks/use-books',
19
+ targetName: 'ui/hooks/use-books',
20
+ path: 'ui/hooks/use-books',
21
+ },
22
+ { id: 'learn-bit-react.data-fetching/ui/book', targetName: 'ui/book', path: 'ui/book' },
23
+ {
24
+ id: 'learn-bit-react.data-fetching/ui/book-list',
25
+ targetName: 'ui/book-list',
26
+ path: 'ui/book-list',
27
+ },
28
+ {
29
+ id: 'learn-bit-react.data-fetching/models/book',
30
+ targetName: 'models/book',
31
+ path: 'models/book',
32
+ },
33
+ ];
34
+ },
35
+ };
@@ -0,0 +1,28 @@
1
+ import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';
2
+ import { generateFiles as generateCommonFiles } from '../workspace-common';
3
+
4
+ export const reactWorkspaceWikiTemplate: WorkspaceTemplate = {
5
+ name: 'react-wiki',
6
+ description: 'React workspace with components for a Wiki',
7
+ hidden: true,
8
+ generateFiles: async (context: WorkspaceContext) => {
9
+ return generateCommonFiles(context);
10
+ },
11
+ fork: () => {
12
+ return [
13
+ {
14
+ id: 'teambit.wiki/apps/wiki@1.90.13',
15
+ targetName: 'apps/wiki',
16
+ path: 'apps/wiki',
17
+ },
18
+ { id: 'teambit.wiki/sections/wiki@1.90.3', targetName: 'sections/wiki', path: 'sections/wiki' },
19
+ { id: 'teambit.wiki/blocks/header@0.0.40', targetName: 'blocks/header', path: 'blocks/header@0.0.24' },
20
+ { id: 'teambit.wiki/blocks/footer', targetName: 'blocks/footer', path: 'blocks/footer' },
21
+ {
22
+ id: 'teambit.wiki/content/welcome@0.0.40',
23
+ targetName: 'content/welcome',
24
+ path: 'content/welcome',
25
+ },
26
+ ];
27
+ },
28
+ };