@teambit/component 0.0.676 → 0.0.679

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+
3
+ export const Logo = () => (
4
+ <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>
5
+ <img style={{ width: 70 }} src="https://static.bit.dev/bit-icons/components.svg" />
6
+ </div>
7
+ );
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Handles component data and versioning
2
+ description: Composable, independent and reusable piece of software.
3
3
  labels: ['component', 'bit', 'extension', 'aspect']
4
4
  ---
5
5
 
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Logo: () => JSX.Element;
@@ -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"]}
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Handles component data and versioning
2
+ description: Composable, independent and reusable piece of software.
3
3
  labels: ['component', 'bit', 'extension', 'aspect']
4
4
  ---
5
5
 
@@ -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: "https://harmony-docs.bit.dev/aspects/aspects-overview"
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;;AAeO,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,EAAC;AAHP,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\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://harmony-docs.bit.dev/aspects/aspects-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"]}
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"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "0.0.676",
3
+ "version": "0.0.679",
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.676"
9
+ "version": "0.0.679"
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.401",
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.676",
33
- "@teambit/legacy-bit-id": "0.0.398",
32
+ "@teambit/aspect-loader": "0.0.679",
33
+ "@teambit/legacy-bit-id": "0.0.399",
34
34
  "@teambit/toolbox.string.capitalize": "0.0.483",
35
- "@teambit/cli": "0.0.453",
36
- "@teambit/config": "0.0.466",
37
- "@teambit/express": "0.0.549",
38
- "@teambit/graphql": "0.0.676",
35
+ "@teambit/cli": "0.0.454",
36
+ "@teambit/config": "0.0.467",
37
+ "@teambit/express": "0.0.550",
38
+ "@teambit/graphql": "0.0.679",
39
39
  "@teambit/bit-error": "0.0.394",
40
- "@teambit/command-bar": "0.0.676",
41
- "@teambit/preview": "0.0.676",
42
- "@teambit/pubsub": "0.0.676",
40
+ "@teambit/command-bar": "0.0.679",
41
+ "@teambit/preview": "0.0.679",
42
+ "@teambit/pubsub": "0.0.679",
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.111",
47
- "@teambit/ui": "0.0.676",
48
- "@teambit/component-issues": "0.0.46",
46
+ "@teambit/ui-foundation.ui.use-box.menu": "0.0.113",
47
+ "@teambit/ui": "0.0.679",
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.16",
52
- "@teambit/lanes.ui.lanes": "0.0.14",
51
+ "@teambit/component-descriptor": "0.0.19",
52
+ "@teambit/lanes.ui.lanes": "0.0.17",
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.353",
57
- "@teambit/design.ui.pages.server-error": "0.0.353",
58
- "@teambit/compositions": "0.0.676",
59
- "@teambit/deprecation": "0.0.676",
60
- "@teambit/envs": "0.0.676",
56
+ "@teambit/compositions": "0.0.679",
57
+ "@teambit/deprecation": "0.0.679",
58
+ "@teambit/envs": "0.0.679",
61
59
  "@teambit/legacy-component-log": "0.0.392",
62
- "@teambit/component.ui.version-dropdown": "0.0.499",
60
+ "@teambit/design.ui.pages.not-found": "0.0.354",
61
+ "@teambit/design.ui.pages.server-error": "0.0.354",
62
+ "@teambit/component.ui.version-dropdown": "0.0.502",
63
63
  "@teambit/ui-foundation.ui.full-loader": "0.0.486",
64
- "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.111",
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.232",
84
+ "@teambit/legacy": "1.0.233",
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.232",
112
+ "@teambit/legacy": "1.0.233",
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.679/dist/component.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.679/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="https://harmony-docs.bit.dev/aspects/aspects-overview"
39
+ link={`https://bit.dev/docs/extending-bit/aspect-overview`}
39
40
  />
40
41
  );
41
42
  }
@@ -1 +0,0 @@
1
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.676/dist/component.docs.mdx')]