@teambit/component 0.0.677 → 0.0.680
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/component.composition.tsx +7 -0
- package/component.docs.mdx +1 -1
- package/dist/component.composition.d.ts +2 -0
- package/dist/component.composition.js +35 -0
- package/dist/component.composition.js.map +1 -0
- package/dist/component.docs.mdx +1 -1
- 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.680.tgz +0 -0
- package/package.json +26 -26
- package/preview-1647573899025.js +2 -0
- package/ui/aspect-page/aspect-page.tsx +3 -2
- package/package-tar/teambit-component-0.0.677.tgz +0 -0
- package/preview-1647401023351.js +0 -1
package/component.docs.mdx
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Logo = void 0;
|
|
9
|
+
|
|
10
|
+
function _react() {
|
|
11
|
+
const data = _interopRequireDefault(require("react"));
|
|
12
|
+
|
|
13
|
+
_react = function () {
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
|
21
|
+
style: {
|
|
22
|
+
height: '100%',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center'
|
|
25
|
+
}
|
|
26
|
+
}, /*#__PURE__*/_react().default.createElement("img", {
|
|
27
|
+
style: {
|
|
28
|
+
width: 70
|
|
29
|
+
},
|
|
30
|
+
src: "https://static.bit.dev/bit-icons/components.svg"
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
exports.Logo = Logo;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=component.composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["component.composition.tsx"],"names":["Logo","height","display","justifyContent","width"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,MAAM,EAAE,MAAV;AAAkBC,IAAAA,OAAO,EAAE,MAA3B;AAAmCC,IAAAA,cAAc,EAAE;AAAnD;AAAZ,gBACE;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,KAAK,EAAE;AAAT,GAAZ;AAA2B,EAAA,GAAG,EAAC;AAA/B,EADF,CADK","sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/bit-icons/components.svg\" />\n </div>\n);\n"]}
|
package/dist/component.docs.mdx
CHANGED
|
@@ -102,7 +102,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
102
102
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
103
103
|
|
|
104
104
|
const GET_COMPONENT = (0, _client().gql)`
|
|
105
|
-
query($id: String!) {
|
|
105
|
+
query ($id: String!) {
|
|
106
106
|
getHost {
|
|
107
107
|
get(id: $id) {
|
|
108
108
|
aspects {
|
|
@@ -114,7 +114,7 @@ const GET_COMPONENT = (0, _client().gql)`
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`;
|
|
117
|
+
`; // TODO: get the docs domain from the community aspect and pass it here as a prop
|
|
118
118
|
|
|
119
119
|
function AspectPage() {
|
|
120
120
|
var _data$getHost, _data$getHost$get;
|
|
@@ -133,7 +133,7 @@ function AspectPage() {
|
|
|
133
133
|
return /*#__PURE__*/_react().default.createElement(_designUi().EmptyBox, {
|
|
134
134
|
title: "This component is new and doesn\u2019t have any aspects.",
|
|
135
135
|
linkText: "Learn more about component aspects",
|
|
136
|
-
link:
|
|
136
|
+
link: `https://bit.dev/docs/extending-bit/aspect-overview`
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["aspect-page.tsx"],"names":["GET_COMPONENT","AspectPage","component","ComponentContext","data","variables","id","_legacy","name","aspectList","getHost","get","aspects","length","styles","aspectPage","title","separator","map","aspect","index","aspectBox","icon","config"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;AAEA,MAAMA,aAAa,GAAG,kBAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAbA;;
|
|
1
|
+
{"version":3,"sources":["aspect-page.tsx"],"names":["GET_COMPONENT","AspectPage","component","ComponentContext","data","variables","id","_legacy","name","aspectList","getHost","get","aspects","length","styles","aspectPage","title","separator","map","aspect","index","aspectBox","icon","config"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;AAEA,MAAMA,aAAa,GAAG,kBAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAbA,C,CAeA;;AACO,SAASC,UAAT,GAAsB;AAAA;;AAC3B,QAAMC,SAAS,GAAG,yBAAWC,6BAAX,CAAlB;AACA,QAAM;AAAEC,IAAAA;AAAF,MAAW,yCAAaJ,aAAb,EAA4B;AAC3CK,IAAAA,SAAS,EAAE;AAAEC,MAAAA,EAAE,EAAEJ,SAAS,CAACI,EAAV,CAAaC,OAAb,CAAqBC;AAA3B;AADgC,GAA5B,CAAjB;AAGA,QAAMC,UAAU,GAAGL,IAAH,aAAGA,IAAH,wCAAGA,IAAI,CAAEM,OAAT,uEAAG,cAAeC,GAAlB,sDAAG,kBAAoBC,OAAvC;;AAEA,MAAIH,UAAU,IAAIA,UAAU,CAACI,MAAX,KAAsB,CAAxC,EAA2C;AACzC,wBACE,+BAAC,oBAAD;AACE,MAAA,KAAK,EAAC,0DADR;AAEE,MAAA,QAAQ,EAAC,oCAFX;AAGE,MAAA,IAAI,EAAG;AAHT,MADF;AAOD;;AAED,sBACE;AAAK,IAAA,SAAS,EAAEC,4BAAOC;AAAvB,kBACE,yDACE,+BAAC,kBAAD;AAAI,IAAA,SAAS,EAAED,4BAAOE;AAAtB,qBADF,eAEE,+BAAC,0BAAD;AAAW,IAAA,SAAS,EAAEF,4BAAOG;AAA7B,IAFF,EAGGR,UAAU,IACTA,UAAU,CAACS,GAAX,CAAe,CAACC,MAAD,EAASC,KAAT,KAAmB;AAChC,wBACE,+BAAC,sBAAD;AACE,MAAA,GAAG,EAAEA,KADP;AAEE,MAAA,SAAS,EAAEN,4BAAOO,SAFpB;AAGE,MAAA,IAAI,EAAEF,MAAM,CAACb,EAHf;AAIE,MAAA,IAAI,EAAEa,MAAM,CAACG,IAJf;AAKE,MAAA,MAAM,EAAEH,MAAM,CAACI,MALjB;AAME,MAAA,IAAI,EAAEJ,MAAM,CAACf;AANf,MADF;AAUD,GAXD,CAJJ,CADF,CADF;AAqBD","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._legacy.name },\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, index) => {\n return (\n <AspectBox\n key={index}\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"]}
|
|
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.680",
|
|
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.680"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/any-fs": "0.0.5",
|
|
@@ -27,41 +27,41 @@
|
|
|
27
27
|
"@teambit/documenter.ui.heading": "4.1.1",
|
|
28
28
|
"@teambit/documenter.ui.separator": "4.1.1",
|
|
29
29
|
"@teambit/base-ui.routing.routing-provider": "1.0.0",
|
|
30
|
-
"@teambit/component-id": "0.0.
|
|
30
|
+
"@teambit/component-id": "0.0.402",
|
|
31
31
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.488",
|
|
32
|
-
"@teambit/aspect-loader": "0.0.
|
|
33
|
-
"@teambit/legacy-bit-id": "0.0.
|
|
32
|
+
"@teambit/aspect-loader": "0.0.680",
|
|
33
|
+
"@teambit/legacy-bit-id": "0.0.399",
|
|
34
34
|
"@teambit/toolbox.string.capitalize": "0.0.483",
|
|
35
|
-
"@teambit/cli": "0.0.
|
|
36
|
-
"@teambit/config": "0.0.
|
|
37
|
-
"@teambit/express": "0.0.
|
|
38
|
-
"@teambit/graphql": "0.0.
|
|
35
|
+
"@teambit/cli": "0.0.455",
|
|
36
|
+
"@teambit/config": "0.0.468",
|
|
37
|
+
"@teambit/express": "0.0.551",
|
|
38
|
+
"@teambit/graphql": "0.0.680",
|
|
39
39
|
"@teambit/bit-error": "0.0.394",
|
|
40
|
-
"@teambit/command-bar": "0.0.
|
|
41
|
-
"@teambit/preview": "0.0.
|
|
42
|
-
"@teambit/pubsub": "0.0.
|
|
40
|
+
"@teambit/command-bar": "0.0.680",
|
|
41
|
+
"@teambit/preview": "0.0.680",
|
|
42
|
+
"@teambit/pubsub": "0.0.680",
|
|
43
43
|
"@teambit/ui-foundation.ui.is-browser": "0.0.486",
|
|
44
44
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.486",
|
|
45
45
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.488",
|
|
46
|
-
"@teambit/ui-foundation.ui.use-box.menu": "0.0.
|
|
47
|
-
"@teambit/ui": "0.0.
|
|
48
|
-
"@teambit/component-issues": "0.0.
|
|
46
|
+
"@teambit/ui-foundation.ui.use-box.menu": "0.0.113",
|
|
47
|
+
"@teambit/ui": "0.0.680",
|
|
48
|
+
"@teambit/component-issues": "0.0.47",
|
|
49
49
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.487",
|
|
50
50
|
"@teambit/cli-table": "0.0.33",
|
|
51
|
-
"@teambit/component-descriptor": "0.0.
|
|
52
|
-
"@teambit/lanes.ui.lanes": "0.0.
|
|
51
|
+
"@teambit/component-descriptor": "0.0.20",
|
|
52
|
+
"@teambit/lanes.ui.lanes": "0.0.18",
|
|
53
53
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.486",
|
|
54
54
|
"@teambit/design.ui.empty-box": "0.0.353",
|
|
55
55
|
"@teambit/harmony.ui.aspect-box": "0.0.486",
|
|
56
|
-
"@teambit/design.ui.pages.not-found": "0.0.
|
|
57
|
-
"@teambit/design.ui.pages.server-error": "0.0.
|
|
58
|
-
"@teambit/compositions": "0.0.
|
|
59
|
-
"@teambit/deprecation": "0.0.
|
|
60
|
-
"@teambit/envs": "0.0.
|
|
56
|
+
"@teambit/design.ui.pages.not-found": "0.0.354",
|
|
57
|
+
"@teambit/design.ui.pages.server-error": "0.0.354",
|
|
58
|
+
"@teambit/compositions": "0.0.680",
|
|
59
|
+
"@teambit/deprecation": "0.0.680",
|
|
60
|
+
"@teambit/envs": "0.0.680",
|
|
61
61
|
"@teambit/legacy-component-log": "0.0.392",
|
|
62
|
-
"@teambit/component.ui.version-dropdown": "0.0.
|
|
62
|
+
"@teambit/component.ui.version-dropdown": "0.0.503",
|
|
63
63
|
"@teambit/ui-foundation.ui.full-loader": "0.0.486",
|
|
64
|
-
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.
|
|
64
|
+
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.113",
|
|
65
65
|
"@teambit/ui-foundation.ui.react-router.extend-path": "0.0.486"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@apollo/client": "^3.0.0",
|
|
84
|
-
"@teambit/legacy": "1.0.
|
|
84
|
+
"@teambit/legacy": "1.0.234",
|
|
85
85
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
86
86
|
"react": "^16.8.0 || ^17.0.0"
|
|
87
87
|
},
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"react": "-"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@teambit/legacy": "1.0.
|
|
112
|
+
"@teambit/legacy": "1.0.234",
|
|
113
113
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
114
114
|
"react": "^16.8.0 || ^17.0.0"
|
|
115
115
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.680/dist/component.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.680/dist/component.docs.mdx')]
|
|
@@ -9,7 +9,7 @@ import { Separator } from '@teambit/documenter.ui.separator';
|
|
|
9
9
|
import styles from './aspect-page.module.scss';
|
|
10
10
|
|
|
11
11
|
const GET_COMPONENT = gql`
|
|
12
|
-
query($id: String!) {
|
|
12
|
+
query ($id: String!) {
|
|
13
13
|
getHost {
|
|
14
14
|
get(id: $id) {
|
|
15
15
|
aspects {
|
|
@@ -23,6 +23,7 @@ const GET_COMPONENT = gql`
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
+
// TODO: get the docs domain from the community aspect and pass it here as a prop
|
|
26
27
|
export function AspectPage() {
|
|
27
28
|
const component = useContext(ComponentContext);
|
|
28
29
|
const { data } = useDataQuery(GET_COMPONENT, {
|
|
@@ -35,7 +36,7 @@ export function AspectPage() {
|
|
|
35
36
|
<EmptyBox
|
|
36
37
|
title="This component is new and doesn’t have any aspects."
|
|
37
38
|
linkText="Learn more about component aspects"
|
|
38
|
-
link=
|
|
39
|
+
link={`https://bit.dev/docs/extending-bit/aspect-overview`}
|
|
39
40
|
/>
|
|
40
41
|
);
|
|
41
42
|
}
|
|
Binary file
|
package/preview-1647401023351.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.677/dist/component.docs.mdx')]
|