@teambit/component 0.0.746 → 0.0.747
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/dist/ui/aspect-page/aspect-page.js +3 -3
- package/dist/ui/aspect-page/aspect-page.js.map +1 -1
- package/package-tar/teambit-component-0.0.747.tgz +0 -0
- package/package.json +13 -13
- package/{preview-1653881205832.js → preview-1653967602594.js} +2 -2
- package/ui/aspect-page/aspect-page.tsx +3 -3
- package/package-tar/teambit-component-0.0.746.tgz +0 -0
|
@@ -124,7 +124,7 @@ function AspectPage() {
|
|
|
124
124
|
data
|
|
125
125
|
} = (0, _uiFoundationUiHooks().useDataQuery)(GET_COMPONENT, {
|
|
126
126
|
variables: {
|
|
127
|
-
id: component.id.
|
|
127
|
+
id: component.id.toString()
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
const aspectList = data === null || data === void 0 ? void 0 : (_data$getHost = data.getHost) === null || _data$getHost === void 0 ? void 0 : (_data$getHost$get = _data$getHost.get) === null || _data$getHost$get === void 0 ? void 0 : _data$getHost$get.aspects;
|
|
@@ -143,9 +143,9 @@ function AspectPage() {
|
|
|
143
143
|
className: _aspectPageModule().default.title
|
|
144
144
|
}, "Configuration"), /*#__PURE__*/_react().default.createElement(_documenterUi2().Separator, {
|
|
145
145
|
className: _aspectPageModule().default.separator
|
|
146
|
-
}), aspectList && aspectList.map(
|
|
146
|
+
}), aspectList && aspectList.map(aspect => {
|
|
147
147
|
return /*#__PURE__*/_react().default.createElement(_harmonyUi().AspectBox, {
|
|
148
|
-
key:
|
|
148
|
+
key: aspect.id,
|
|
149
149
|
className: _aspectPageModule().default.aspectBox,
|
|
150
150
|
name: aspect.id,
|
|
151
151
|
icon: aspect.icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GET_COMPONENT","gql","AspectPage","component","useContext","ComponentContext","data","useDataQuery","variables","id","
|
|
1
|
+
{"version":3,"names":["GET_COMPONENT","gql","AspectPage","component","useContext","ComponentContext","data","useDataQuery","variables","id","toString","aspectList","getHost","get","aspects","length","styles","aspectPage","title","separator","map","aspect","aspectBox","icon","config"],"sources":["aspect-page.tsx"],"sourcesContent":["import { AspectBox } from '@teambit/harmony.ui.aspect-box';\nimport { ComponentContext } from '@teambit/component';\nimport React, { useContext } from 'react';\nimport { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';\nimport { gql } from '@apollo/client';\nimport { EmptyBox } from '@teambit/design.ui.empty-box';\nimport { H1 } from '@teambit/documenter.ui.heading';\nimport { Separator } from '@teambit/documenter.ui.separator';\nimport styles from './aspect-page.module.scss';\n\nconst GET_COMPONENT = gql`\n query ($id: String!) {\n getHost {\n get(id: $id) {\n aspects {\n id\n config\n data\n icon\n }\n }\n }\n }\n`;\n\n// TODO: get the docs domain from the community aspect and pass it here as a prop\nexport function AspectPage() {\n const component = useContext(ComponentContext);\n const { data } = useDataQuery(GET_COMPONENT, {\n variables: { id: component.id.toString() },\n });\n const aspectList = data?.getHost?.get?.aspects;\n\n if (aspectList && aspectList.length === 0) {\n return (\n <EmptyBox\n title=\"This component is new and doesn’t have any aspects.\"\n linkText=\"Learn more about component aspects\"\n link={`https://bit.dev/docs/extending-bit/aspect-overview`}\n />\n );\n }\n\n return (\n <div className={styles.aspectPage}>\n <div>\n <H1 className={styles.title}>Configuration</H1>\n <Separator className={styles.separator} />\n {aspectList &&\n aspectList.map((aspect) => {\n return (\n <AspectBox\n key={aspect.id}\n className={styles.aspectBox}\n name={aspect.id}\n icon={aspect.icon}\n config={aspect.config}\n data={aspect.data}\n />\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;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AOM,SAFpB;MAGE,IAAI,EAAED,MAAM,CAACZ,EAHf;MAIE,IAAI,EAAEY,MAAM,CAACE,IAJf;MAKE,MAAM,EAAEF,MAAM,CAACG,MALjB;MAME,IAAI,EAAEH,MAAM,CAACf;IANf,EADF;EAUD,CAXD,CAJJ,CADF,CADF;AAqBD"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.747",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/component/component",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "component",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.747"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/any-fs": "0.0.5",
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
"@teambit/design.inputs.dropdown": "0.0.7",
|
|
32
32
|
"@teambit/component-id": "0.0.402",
|
|
33
33
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.488",
|
|
34
|
-
"@teambit/aspect-loader": "0.0.
|
|
34
|
+
"@teambit/aspect-loader": "0.0.747",
|
|
35
35
|
"@teambit/legacy-bit-id": "0.0.399",
|
|
36
36
|
"@teambit/toolbox.path.match-patterns": "0.0.1",
|
|
37
37
|
"@teambit/toolbox.string.capitalize": "0.0.483",
|
|
38
38
|
"@teambit/cli": "0.0.493",
|
|
39
39
|
"@teambit/config": "0.0.506",
|
|
40
40
|
"@teambit/express": "0.0.591",
|
|
41
|
-
"@teambit/graphql": "0.0.
|
|
41
|
+
"@teambit/graphql": "0.0.747",
|
|
42
42
|
"@teambit/bit-error": "0.0.394",
|
|
43
|
-
"@teambit/command-bar": "0.0.
|
|
43
|
+
"@teambit/command-bar": "0.0.747",
|
|
44
44
|
"@teambit/component.ui.deprecation-icon": "0.0.493",
|
|
45
|
-
"@teambit/preview": "0.0.
|
|
46
|
-
"@teambit/pubsub": "0.0.
|
|
47
|
-
"@teambit/react-router": "0.0.
|
|
45
|
+
"@teambit/preview": "0.0.747",
|
|
46
|
+
"@teambit/pubsub": "0.0.747",
|
|
47
|
+
"@teambit/react-router": "0.0.747",
|
|
48
48
|
"@teambit/ui-foundation.ui.is-browser": "0.0.486",
|
|
49
49
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.487",
|
|
50
50
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.490",
|
|
51
51
|
"@teambit/ui-foundation.ui.use-box.menu": "0.0.115",
|
|
52
|
-
"@teambit/ui": "0.0.
|
|
52
|
+
"@teambit/ui": "0.0.747",
|
|
53
53
|
"@teambit/component-issues": "0.0.53",
|
|
54
54
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.487",
|
|
55
55
|
"@teambit/cli-table": "0.0.34",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.487",
|
|
59
59
|
"@teambit/design.ui.empty-box": "0.0.353",
|
|
60
60
|
"@teambit/harmony.ui.aspect-box": "0.0.486",
|
|
61
|
-
"@teambit/compositions": "0.0.746",
|
|
62
|
-
"@teambit/deprecation": "0.0.746",
|
|
63
|
-
"@teambit/envs": "0.0.746",
|
|
64
|
-
"@teambit/legacy-component-log": "0.0.392",
|
|
65
61
|
"@teambit/design.ui.pages.not-found": "0.0.355",
|
|
66
62
|
"@teambit/design.ui.pages.server-error": "0.0.355",
|
|
63
|
+
"@teambit/compositions": "0.0.747",
|
|
64
|
+
"@teambit/deprecation": "0.0.747",
|
|
65
|
+
"@teambit/envs": "0.0.747",
|
|
66
|
+
"@teambit/legacy-component-log": "0.0.392",
|
|
67
67
|
"@teambit/design.ui.styles.ellipsis": "0.0.347",
|
|
68
68
|
"@teambit/envs.ui.env-icon": "0.0.486",
|
|
69
69
|
"@teambit/component.ui.version-dropdown": "0.0.546",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.747/dist/component.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.747/dist/component.docs.mdx')]
|
|
@@ -27,7 +27,7 @@ const GET_COMPONENT = gql`
|
|
|
27
27
|
export function AspectPage() {
|
|
28
28
|
const component = useContext(ComponentContext);
|
|
29
29
|
const { data } = useDataQuery(GET_COMPONENT, {
|
|
30
|
-
variables: { id: component.id.
|
|
30
|
+
variables: { id: component.id.toString() },
|
|
31
31
|
});
|
|
32
32
|
const aspectList = data?.getHost?.get?.aspects;
|
|
33
33
|
|
|
@@ -47,10 +47,10 @@ export function AspectPage() {
|
|
|
47
47
|
<H1 className={styles.title}>Configuration</H1>
|
|
48
48
|
<Separator className={styles.separator} />
|
|
49
49
|
{aspectList &&
|
|
50
|
-
aspectList.map((aspect
|
|
50
|
+
aspectList.map((aspect) => {
|
|
51
51
|
return (
|
|
52
52
|
<AspectBox
|
|
53
|
-
key={
|
|
53
|
+
key={aspect.id}
|
|
54
54
|
className={styles.aspectBox}
|
|
55
55
|
name={aspect.id}
|
|
56
56
|
icon={aspect.icon}
|
|
Binary file
|