@teambit/react 0.0.960 → 0.0.961
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/artifacts/__bit_junit.xml +2 -2
- package/artifacts/env-template/public/{136.d2bfedb61bf5d2ea77ec.js → 623.27f03245f7b7c1e9291b.js} +2 -2
- package/artifacts/env-template/public/assets-manifest.json +10 -10
- package/artifacts/env-template/public/{compositions.2cc11d42097609f91aac.js → compositions.f0a14d3fef859caeb943.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.011dfb69ca31f606afa8.js → overview.67f13e74d161ab0a85af.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.d304975596b7813658e4.js → peers.58b8f0963f6ea67d20dd.js} +1 -1
- package/artifacts/env-template/public/{preview-root.4516547c142bbc9ff37e.js → preview-root.018190ce20871ee6b4ed.js} +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +1 -1
- package/artifacts/schema.json +117 -117
- package/{compositions-1673926142131.js → compositions-1674012591081.js} +0 -0
- package/dist/{preview-1673926142131.js → preview-1674012591081.js} +2 -2
- package/dist/templates/react-hook/files/index-file.spec.js +2 -1
- package/dist/templates/react-hook/files/index-file.spec.js.map +1 -1
- package/{overview-1673926142131.js → overview-1674012591081.js} +0 -0
- package/package-tar/teambit-react-0.0.961.tgz +0 -0
- package/package.json +30 -30
- package/templates/react-hook/files/index-file.spec.ts +1 -0
- package/package-tar/teambit-react-0.0.960.tgz +0 -0
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.961/dist/react.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.961/dist/react.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -25,7 +25,8 @@ describe('templates: react-hook, index-file', () => {
|
|
|
25
25
|
name: 'use-foo-bar',
|
|
26
26
|
namePascalCase: 'UseFooBar',
|
|
27
27
|
nameCamelCase: 'useFooBar',
|
|
28
|
-
componentId: _componentId().ComponentID.fromString('baz.qux/use/foo/bar')
|
|
28
|
+
componentId: _componentId().ComponentID.fromString('baz.qux/use/foo/bar'),
|
|
29
|
+
aspectId: _componentId().ComponentID.fromString('baz.qux/use/foo/my-aspect')
|
|
29
30
|
};
|
|
30
31
|
const result = (0, _indexFile().indexFile)(ctx);
|
|
31
32
|
expect(result.content).toEqual(useFoobarSnapshot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFoobarSnapshot","describe","it","ctx","name","namePascalCase","nameCamelCase","componentId","ComponentID","fromString","result","indexFile","expect","content","toEqual"],"sources":["index-file.spec.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport type { ComponentContext } from '@teambit/generator';\nimport { indexFile } from './index-file';\n\n// react hook convention is `useX` (lowercase \"use\")\n// it is required to enable hook-specific linting rules\nconst useFoobarSnapshot = `export { useFooBar } from './use-foo-bar';\n`; // trailing line break\n\ndescribe('templates: react-hook, index-file', () => {\n it('should match snapshot', () => {\n const ctx: ComponentContext = {\n name: 'use-foo-bar',\n namePascalCase: 'UseFooBar',\n nameCamelCase: 'useFooBar',\n componentId: ComponentID.fromString('baz.qux/use/foo/bar'),\n };\n\n const result = indexFile(ctx);\n\n expect(result.content).toEqual(useFoobarSnapshot);\n });\n});\n"],"mappings":";;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;AACA;AACA,MAAMA,iBAAiB,GAAI;AAC3B,CAAC,CAAC,CAAC;;AAEHC,QAAQ,CAAC,mCAAmC,EAAE,MAAM;EAClDC,EAAE,CAAC,uBAAuB,EAAE,MAAM;IAChC,MAAMC,GAAqB,GAAG;MAC5BC,IAAI,EAAE,aAAa;MACnBC,cAAc,EAAE,WAAW;MAC3BC,aAAa,EAAE,WAAW;MAC1BC,WAAW,EAAEC,0BAAW,CAACC,UAAU,CAAC,qBAAqB;
|
|
1
|
+
{"version":3,"names":["useFoobarSnapshot","describe","it","ctx","name","namePascalCase","nameCamelCase","componentId","ComponentID","fromString","aspectId","result","indexFile","expect","content","toEqual"],"sources":["index-file.spec.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport type { ComponentContext } from '@teambit/generator';\nimport { indexFile } from './index-file';\n\n// react hook convention is `useX` (lowercase \"use\")\n// it is required to enable hook-specific linting rules\nconst useFoobarSnapshot = `export { useFooBar } from './use-foo-bar';\n`; // trailing line break\n\ndescribe('templates: react-hook, index-file', () => {\n it('should match snapshot', () => {\n const ctx: ComponentContext = {\n name: 'use-foo-bar',\n namePascalCase: 'UseFooBar',\n nameCamelCase: 'useFooBar',\n componentId: ComponentID.fromString('baz.qux/use/foo/bar'),\n aspectId: ComponentID.fromString('baz.qux/use/foo/my-aspect'),\n };\n\n const result = indexFile(ctx);\n\n expect(result.content).toEqual(useFoobarSnapshot);\n });\n});\n"],"mappings":";;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;AACA;AACA,MAAMA,iBAAiB,GAAI;AAC3B,CAAC,CAAC,CAAC;;AAEHC,QAAQ,CAAC,mCAAmC,EAAE,MAAM;EAClDC,EAAE,CAAC,uBAAuB,EAAE,MAAM;IAChC,MAAMC,GAAqB,GAAG;MAC5BC,IAAI,EAAE,aAAa;MACnBC,cAAc,EAAE,WAAW;MAC3BC,aAAa,EAAE,WAAW;MAC1BC,WAAW,EAAEC,0BAAW,CAACC,UAAU,CAAC,qBAAqB,CAAC;MAC1DC,QAAQ,EAAEF,0BAAW,CAACC,UAAU,CAAC,2BAA2B;IAC9D,CAAC;IAED,MAAME,MAAM,GAAG,IAAAC,sBAAS,EAACT,GAAG,CAAC;IAE7BU,MAAM,CAACF,MAAM,CAACG,OAAO,CAAC,CAACC,OAAO,CAACf,iBAAiB,CAAC;EACnD,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
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.961",
|
|
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.961"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -84,37 +84,37 @@
|
|
|
84
84
|
"@teambit/react.rendering.ssr": "0.0.3",
|
|
85
85
|
"@teambit/compositions.ui.hooks.use-composition": "0.0.172",
|
|
86
86
|
"@teambit/design.ui.tooltip": "0.0.361",
|
|
87
|
-
"@teambit/builder": "0.0.
|
|
88
|
-
"@teambit/bundler": "0.0.
|
|
89
|
-
"@teambit/compiler": "0.0.
|
|
87
|
+
"@teambit/builder": "0.0.961",
|
|
88
|
+
"@teambit/bundler": "0.0.961",
|
|
89
|
+
"@teambit/compiler": "0.0.961",
|
|
90
90
|
"@teambit/component.modules.component-url": "0.0.148",
|
|
91
|
-
"@teambit/component": "0.0.
|
|
92
|
-
"@teambit/dependency-resolver": "0.0.
|
|
93
|
-
"@teambit/envs": "0.0.
|
|
94
|
-
"@teambit/eslint": "0.0.
|
|
95
|
-
"@teambit/formatter": "0.0.
|
|
96
|
-
"@teambit/jest": "0.0.
|
|
97
|
-
"@teambit/linter": "0.0.
|
|
98
|
-
"@teambit/logger": "0.0.
|
|
99
|
-
"@teambit/pkg": "0.0.
|
|
100
|
-
"@teambit/prettier": "0.0.
|
|
101
|
-
"@teambit/preview": "0.0.
|
|
91
|
+
"@teambit/component": "0.0.961",
|
|
92
|
+
"@teambit/dependency-resolver": "0.0.961",
|
|
93
|
+
"@teambit/envs": "0.0.961",
|
|
94
|
+
"@teambit/eslint": "0.0.961",
|
|
95
|
+
"@teambit/formatter": "0.0.512",
|
|
96
|
+
"@teambit/jest": "0.0.961",
|
|
97
|
+
"@teambit/linter": "0.0.961",
|
|
98
|
+
"@teambit/logger": "0.0.737",
|
|
99
|
+
"@teambit/pkg": "0.0.961",
|
|
100
|
+
"@teambit/prettier": "0.0.512",
|
|
101
|
+
"@teambit/preview": "0.0.961",
|
|
102
102
|
"@teambit/react.ui.compositions-app": "0.0.12",
|
|
103
103
|
"@teambit/react.ui.docs-app": "0.0.204",
|
|
104
104
|
"@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.31",
|
|
105
|
-
"@teambit/schema": "0.0.
|
|
106
|
-
"@teambit/tester": "0.0.
|
|
107
|
-
"@teambit/typescript": "0.0.
|
|
108
|
-
"@teambit/webpack": "0.0.
|
|
109
|
-
"@teambit/workspace": "0.0.
|
|
110
|
-
"@teambit/application": "0.0.
|
|
111
|
-
"@teambit/cli": "0.0.
|
|
112
|
-
"@teambit/generator": "0.0.
|
|
113
|
-
"@teambit/graphql": "0.0.
|
|
105
|
+
"@teambit/schema": "0.0.961",
|
|
106
|
+
"@teambit/tester": "0.0.961",
|
|
107
|
+
"@teambit/typescript": "0.0.961",
|
|
108
|
+
"@teambit/webpack": "0.0.961",
|
|
109
|
+
"@teambit/workspace": "0.0.961",
|
|
110
|
+
"@teambit/application": "0.0.603",
|
|
111
|
+
"@teambit/cli": "0.0.644",
|
|
112
|
+
"@teambit/generator": "0.0.961",
|
|
113
|
+
"@teambit/graphql": "0.0.961",
|
|
114
114
|
"@teambit/react.ui.highlighter-provider": "0.0.200",
|
|
115
|
-
"@teambit/compositions": "0.0.
|
|
116
|
-
"@teambit/ui": "0.0.
|
|
117
|
-
"@teambit/react.eslint-config-bit-react": "0.0.
|
|
115
|
+
"@teambit/compositions": "0.0.961",
|
|
116
|
+
"@teambit/ui": "0.0.961",
|
|
117
|
+
"@teambit/react.eslint-config-bit-react": "0.0.716",
|
|
118
118
|
"@teambit/mdx.modules.mdx-loader": "0.0.500",
|
|
119
119
|
"@teambit/react.babel.bit-react-transformer": "0.0.527",
|
|
120
120
|
"@teambit/webpack.modules.generate-style-loaders": "0.0.110",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@teambit/toolbox.network.get-port": "0.0.121",
|
|
125
125
|
"@teambit/react.modules.prerenderer-puppeteer": "0.0.9",
|
|
126
126
|
"@teambit/ui-foundation.ui.pages.static-error": "0.0.86",
|
|
127
|
-
"@teambit/config": "0.0.
|
|
127
|
+
"@teambit/config": "0.0.657"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"@types/react": "^17.0.8",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@teambit/react.content.react-overview": "1.95.0"
|
|
147
147
|
},
|
|
148
148
|
"peerDependencies": {
|
|
149
|
-
"@teambit/legacy": "1.0.
|
|
149
|
+
"@teambit/legacy": "1.0.425",
|
|
150
150
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
151
151
|
"react": "^16.8.0 || ^17.0.0"
|
|
152
152
|
},
|
|
@@ -14,6 +14,7 @@ describe('templates: react-hook, index-file', () => {
|
|
|
14
14
|
namePascalCase: 'UseFooBar',
|
|
15
15
|
nameCamelCase: 'useFooBar',
|
|
16
16
|
componentId: ComponentID.fromString('baz.qux/use/foo/bar'),
|
|
17
|
+
aspectId: ComponentID.fromString('baz.qux/use/foo/my-aspect'),
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
const result = indexFile(ctx);
|
|
Binary file
|