@teambit/react 0.0.720 → 0.0.723
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.app-type.ts +1 -1
- package/artifacts/env-template/public/{399.js → 365.js} +2 -2
- package/artifacts/env-template/public/793.js +4 -0
- package/artifacts/env-template/public/assets-manifest.json +8 -8
- package/artifacts/env-template/public/compositions.6879dd897206edaaadf0.js +1 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.85cdaa6d67ab2c0d9f28.js → overview.b5ecd23879fe3d77cbbe.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{preview-root.6342a9856f62d14ba3c9.js → preview-root.639bb6c933946c03b93a.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-1651116285533.js → compositions-1651461816534.js} +0 -0
- package/dist/apps/web/react.app-type.d.ts +1 -1
- package/dist/apps/web/react.app-type.js +3 -1
- package/dist/apps/web/react.app-type.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react.main.runtime.d.ts +9 -2
- package/dist/react.main.runtime.js +18 -4
- package/dist/react.main.runtime.js.map +1 -1
- package/dist/react.templates.js +41 -1
- package/dist/react.templates.js.map +1 -1
- package/dist/templates/react-workspace-analytics/index.d.ts +2 -0
- package/dist/templates/react-workspace-analytics/index.js +52 -0
- package/dist/templates/react-workspace-analytics/index.js.map +1 -0
- package/dist/templates/react-workspace-data-fetching/index.d.ts +2 -0
- package/dist/templates/react-workspace-data-fetching/index.js +52 -0
- package/dist/templates/react-workspace-data-fetching/index.js.map +1 -0
- package/dist/templates/react-workspace-design-system/index.d.ts +2 -0
- package/dist/templates/react-workspace-design-system/index.js +60 -0
- package/dist/templates/react-workspace-design-system/index.js.map +1 -0
- package/dist/templates/react-workspace-wiki/index.d.ts +2 -0
- package/dist/templates/react-workspace-wiki/index.js +53 -0
- package/dist/templates/react-workspace-wiki/index.js.map +1 -0
- package/{overview-1651116285533.js → overview-1651461816534.js} +0 -0
- package/package-tar/teambit-react-0.0.723.tgz +0 -0
- package/package.json +30 -30
- package/{preview-1651116285533.js → preview-1651461816534.js} +2 -2
- package/templates/react-workspace-analytics/index.ts +31 -0
- package/templates/react-workspace-data-fetching/index.ts +35 -0
- package/templates/react-workspace-design-system/index.ts +37 -0
- package/templates/react-workspace-wiki/index.ts +28 -0
- package/artifacts/env-template/public/compositions.7bd20ecabc5d3a90b9d0.js +0 -1
- package/package-tar/teambit-react-0.0.720.tgz +0 -0
|
@@ -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,37 @@
|
|
|
1
|
+
import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';
|
|
2
|
+
import { generateFiles as generateCommonFiles } from '../workspace-common';
|
|
3
|
+
|
|
4
|
+
export const reactWorkspaceDesignSystemTemplate: WorkspaceTemplate = {
|
|
5
|
+
name: 'react-design-system',
|
|
6
|
+
description: 'React workspace with components for a Design System',
|
|
7
|
+
generateFiles: async (context: WorkspaceContext) => {
|
|
8
|
+
return generateCommonFiles(context);
|
|
9
|
+
},
|
|
10
|
+
fork: () => {
|
|
11
|
+
return [
|
|
12
|
+
{
|
|
13
|
+
id: 'teambit.design/examples/sample-app',
|
|
14
|
+
targetName: 'app/sample-app',
|
|
15
|
+
path: 'app/sample-app',
|
|
16
|
+
},
|
|
17
|
+
{ id: 'teambit.design/ui/cards/card', targetName: 'ui/cards/card', path: 'ui/cards/card' },
|
|
18
|
+
{ id: 'teambit.design/ui/heading', targetName: 'ui/heading', path: 'ui/heading' },
|
|
19
|
+
{ id: 'teambit.design/themes/theme-toggler', targetName: 'themes/theme-toggler', path: 'themes/theme-toggler' },
|
|
20
|
+
{
|
|
21
|
+
id: 'teambit.design/themes/base-theme',
|
|
22
|
+
targetName: 'themes/base-theme',
|
|
23
|
+
path: 'themes/base-theme',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'teambit.design/themes/light-theme',
|
|
27
|
+
targetName: 'themes/light-theme',
|
|
28
|
+
path: 'themes/light-theme',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'teambit.design/themes/dark-theme',
|
|
32
|
+
targetName: 'themes/dark-theme',
|
|
33
|
+
path: 'themes/dark-theme',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[]).push([[384],{1432:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_harmony_dist_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(16738),_home_circleci_bit_bit_node_modules_teambit_harmony_dist_index_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_home_circleci_bit_bit_node_modules_teambit_harmony_dist_index_js__WEBPACK_IMPORTED_MODULE_1__),_home_circleci_bit_bit_node_modules_teambit_react_dist_mount_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(677);(0,_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_0__.Bu)("compositions",{mainModule:_home_circleci_bit_bit_node_modules_teambit_react_dist_mount_js__WEBPACK_IMPORTED_MODULE_2__,isSplitComponentBundle:!0,componentMap:{}})}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[283,750,677],()=>__webpack_exec__(1432));var __webpack_exports__=__webpack_require__.O()}]);
|
|
Binary file
|