@teambit/component 0.0.1043 → 0.0.1045
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/{preview-1682566814488.js → preview-1682911859633.js} +2 -2
- package/dist/ui/component-model/component-model.d.ts +12 -1
- package/dist/ui/component-model/component-model.js.map +1 -1
- package/package-tar/teambit-component-0.0.1045.tgz +0 -0
- package/package.json +17 -17
- package/ui/component-model/component-model.ts +14 -1
- package/package-tar/teambit-component-0.0.1043.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.1045/dist/component.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.1045/dist/component.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -35,7 +35,18 @@ export declare type ComponentPreview = {
|
|
|
35
35
|
};
|
|
36
36
|
export declare type ComponentServer = {
|
|
37
37
|
env: string;
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Full dev server url.
|
|
40
|
+
*/
|
|
41
|
+
url?: string;
|
|
42
|
+
/**
|
|
43
|
+
* host of the component server (used mostly by cloud providers for remote scopes)
|
|
44
|
+
*/
|
|
45
|
+
host?: string;
|
|
46
|
+
/**
|
|
47
|
+
* This is used mostly by cloud to proxy requests to the correct scope.
|
|
48
|
+
*/
|
|
49
|
+
basePath?: string;
|
|
39
50
|
};
|
|
40
51
|
export declare class ComponentModel {
|
|
41
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentModel","constructor","id","displayName","packageName","server","compositions","tags","buildStatus","issuesCount","elementsUrl","status","deprecation","environment","description","labels","host","size","latest","preview","logs","version","from","env","ComponentID","fromObject","Composition","fromArray","TagMap","map","tag","Tag","log","hash","message","parents","componentsProps","rawComponent","empty","name","scope","url"],"sources":["component-model.ts"],"sourcesContent":["import { Composition, CompositionProps } from '@teambit/compositions';\nimport { DeprecationInfo } from '@teambit/deprecation';\nimport { Descriptor } from '@teambit/envs';\nimport { ComponentID, ComponentIdObj } from '@teambit/component-id';\nimport { LegacyComponentLog } from '@teambit/legacy-component-log';\nimport { ComponentPreviewSize } from '@teambit/preview';\nimport { Tag } from '../../tag';\nimport { TagMap } from '../../tag-map';\nimport { TagProps } from '../../tag/tag';\n// import { Snap } from '../../snap';\n\n// ADDING MORE PROPERTIES HERE IS NOT ALLOWED!!! IF YOU NEED DATA PLEASE ADD A NEW\n// HOOK FROM YOUR ASPECT!!!\n// TODO: remove all properties from here to their rightful place in their aspects.\nexport type ComponentModelProps = {\n id: ComponentIdObj;\n description: string;\n buildStatus?: string;\n server?: ComponentServer;\n displayName: string;\n packageName: string; // pkg aspect\n elementsUrl?: string; // pkg aspect\n compositions?: CompositionProps[];\n tags?: TagProps[];\n issuesCount?: number; // component/issues aspect\n status?: any; // workspace aspect.\n deprecation?: DeprecationInfo; // deprecation aspect\n env?: Descriptor; // env aspect.\n labels?: string[];\n host?: string;\n latest?: string;\n preview?: ComponentPreview;\n logs?: LegacyComponentLog[];\n size?: ComponentPreviewSize;\n};\n\nexport type ComponentPreview = {\n includesEnvTemplate?: boolean;\n isScaling?: boolean;\n skipIncludes?: boolean;\n legacyHeader?: boolean;\n};\n\nexport type ComponentServer = {\n env: string;\n url
|
|
1
|
+
{"version":3,"names":["ComponentModel","constructor","id","displayName","packageName","server","compositions","tags","buildStatus","issuesCount","elementsUrl","status","deprecation","environment","description","labels","host","size","latest","preview","logs","version","from","env","ComponentID","fromObject","Composition","fromArray","TagMap","map","tag","Tag","log","hash","message","parents","componentsProps","rawComponent","empty","name","scope","url"],"sources":["component-model.ts"],"sourcesContent":["import { Composition, CompositionProps } from '@teambit/compositions';\nimport { DeprecationInfo } from '@teambit/deprecation';\nimport { Descriptor } from '@teambit/envs';\nimport { ComponentID, ComponentIdObj } from '@teambit/component-id';\nimport { LegacyComponentLog } from '@teambit/legacy-component-log';\nimport { ComponentPreviewSize } from '@teambit/preview';\nimport { Tag } from '../../tag';\nimport { TagMap } from '../../tag-map';\nimport { TagProps } from '../../tag/tag';\n// import { Snap } from '../../snap';\n\n// ADDING MORE PROPERTIES HERE IS NOT ALLOWED!!! IF YOU NEED DATA PLEASE ADD A NEW\n// HOOK FROM YOUR ASPECT!!!\n// TODO: remove all properties from here to their rightful place in their aspects.\nexport type ComponentModelProps = {\n id: ComponentIdObj;\n description: string;\n buildStatus?: string;\n server?: ComponentServer;\n displayName: string;\n packageName: string; // pkg aspect\n elementsUrl?: string; // pkg aspect\n compositions?: CompositionProps[];\n tags?: TagProps[];\n issuesCount?: number; // component/issues aspect\n status?: any; // workspace aspect.\n deprecation?: DeprecationInfo; // deprecation aspect\n env?: Descriptor; // env aspect.\n labels?: string[];\n host?: string;\n latest?: string;\n preview?: ComponentPreview;\n logs?: LegacyComponentLog[];\n size?: ComponentPreviewSize;\n};\n\nexport type ComponentPreview = {\n includesEnvTemplate?: boolean;\n isScaling?: boolean;\n skipIncludes?: boolean;\n legacyHeader?: boolean;\n};\n\nexport type ComponentServer = {\n env: string;\n /**\n * Full dev server url.\n */\n url?: string;\n\n /**\n * host of the component server (used mostly by cloud providers for remote scopes)\n */\n host?: string;\n\n /**\n * This is used mostly by cloud to proxy requests to the correct scope.\n */\n basePath?: string;\n};\n\nexport class ComponentModel {\n constructor(\n /**\n * id of the component\n */\n readonly id: ComponentID,\n\n /**\n * display name of the component.\n */\n readonly displayName: string,\n\n /**\n * package name of the component.\n */\n readonly packageName: string,\n\n /**\n * the component server.\n */\n readonly server: ComponentServer | undefined,\n\n /**\n * array of compositions\n */\n readonly compositions: Composition[],\n\n /**\n * tags of the component.\n */\n readonly tags: TagMap,\n\n /**\n * component build status\n */\n readonly buildStatus?: string,\n\n /**\n * issues of component.\n */\n readonly issuesCount?: number,\n /**\n * elements url\n */\n readonly elementsUrl?: string,\n /**\n * status of component.\n */\n readonly status?: any,\n\n /**\n * deprecation info of the component.\n */\n readonly deprecation?: DeprecationInfo,\n\n /**\n * env descriptor.\n */\n readonly environment?: Descriptor,\n\n /**\n * description of the component.\n */\n\n readonly description = '',\n\n readonly labels: string[] = [],\n\n /**\n * host of the component\n */\n readonly host?: string,\n\n /**\n *\n * size preview\n */\n readonly size?: ComponentPreviewSize,\n\n /**\n * latest version of component\n */\n readonly latest?: string,\n\n readonly preview?: ComponentPreview,\n\n readonly logs?: LegacyComponentLog[]\n ) {}\n\n get version() {\n if (!this.id.version) return 'new';\n return this.id.version;\n }\n\n /**\n * create an instance of a component from a plain object.\n */\n static from({\n id,\n server,\n displayName,\n compositions = [],\n packageName,\n elementsUrl,\n tags = [],\n deprecation,\n buildStatus,\n env,\n status,\n issuesCount,\n description,\n labels,\n host,\n latest,\n preview,\n size,\n logs,\n }: ComponentModelProps) {\n return new ComponentModel(\n ComponentID.fromObject(id),\n displayName,\n packageName,\n server,\n Composition.fromArray(compositions),\n TagMap.fromArray(tags.map((tag) => Tag.fromObject(tag))),\n buildStatus,\n issuesCount,\n elementsUrl,\n status,\n deprecation,\n env,\n description,\n labels,\n host,\n size,\n latest,\n preview,\n logs?.map((log) => log ?? { hash: '[error]', tag: '[error]', message: '', parents: [] })\n );\n }\n\n static fromArray(componentsProps: ComponentModelProps[]) {\n return componentsProps.map((rawComponent) => ComponentModel.from(rawComponent));\n }\n\n static empty() {\n return new ComponentModel(\n ComponentID.fromObject({ name: 'root', scope: 'temp' }),\n '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AAEG,GAAG,IAAKA,GAAG,aAAHA,GAAG,cAAHA,GAAG,GAAI;MAAEC,IAAI,EAAE,SAAS;MAAEH,GAAG,EAAE,SAAS;MAAEI,OAAO,EAAE,EAAE;MAAEC,OAAO,EAAE;IAAG,CAAC,CAAC,CACzF;EACH;EAEA,OAAOR,SAAS,CAACS,eAAsC,EAAE;IACvD,OAAOA,eAAe,CAACP,GAAG,CAAEQ,YAAY,IAAKrC,cAAc,CAACsB,IAAI,CAACe,YAAY,CAAC,CAAC;EACjF;EAEA,OAAOC,KAAK,GAAG;IACb,OAAO,IAAItC,cAAc,CACvBwB,0BAAW,CAACC,UAAU,CAAC;MAAEc,IAAI,EAAE,MAAM;MAAEC,KAAK,EAAE;IAAO,CAAC,CAAC,EACvD,EAAE,EACF,EAAE,EACF;MAAEjB,GAAG,EAAE,EAAE;MAAEkB,GAAG,EAAE;IAAG,CAAC,EACpB,EAAE,EACFb,gBAAM,CAACU,KAAK,EAAE,CACf;EACH;AACF;AAAC"}
|
|
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.1045",
|
|
4
4
|
"homepage": "https://bit.cloud/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.1045"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/any-fs": "0.0.5",
|
|
@@ -26,46 +26,46 @@
|
|
|
26
26
|
"@teambit/legacy-bit-id": "0.0.423",
|
|
27
27
|
"@teambit/harmony": "0.4.6",
|
|
28
28
|
"@teambit/base-react.navigation.link": "2.0.27",
|
|
29
|
+
"@teambit/design.ui.empty-box": "0.0.363",
|
|
30
|
+
"@teambit/documenter.ui.heading": "4.1.1",
|
|
31
|
+
"@teambit/documenter.ui.separator": "4.1.1",
|
|
29
32
|
"@teambit/design.ui.pages.not-found": "0.0.366",
|
|
30
33
|
"@teambit/design.ui.pages.server-error": "0.0.366",
|
|
31
34
|
"@teambit/design.ui.styles.ellipsis": "0.0.357",
|
|
32
35
|
"@teambit/explorer.ui.command-bar": "2.0.3",
|
|
33
|
-
"@teambit/design.ui.empty-box": "0.0.363",
|
|
34
|
-
"@teambit/documenter.ui.heading": "4.1.1",
|
|
35
|
-
"@teambit/documenter.ui.separator": "4.1.1",
|
|
36
36
|
"@teambit/design.navigation.responsive-navbar": "0.0.5",
|
|
37
37
|
"@teambit/base-ui.layout.breakpoints": "1.0.0",
|
|
38
38
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.497",
|
|
39
|
-
"@teambit/aspect-loader": "0.0.
|
|
40
|
-
"@teambit/graph": "0.0.
|
|
39
|
+
"@teambit/aspect-loader": "0.0.1045",
|
|
40
|
+
"@teambit/graph": "0.0.1045",
|
|
41
41
|
"@teambit/toolbox.path.match-patterns": "0.0.9",
|
|
42
42
|
"@teambit/toolbox.string.capitalize": "0.0.490",
|
|
43
43
|
"@teambit/cli": "0.0.703",
|
|
44
44
|
"@teambit/express": "0.0.801",
|
|
45
|
-
"@teambit/graphql": "0.0.
|
|
45
|
+
"@teambit/graphql": "0.0.1045",
|
|
46
46
|
"@teambit/bit-error": "0.0.402",
|
|
47
|
-
"@teambit/command-bar": "0.0.
|
|
47
|
+
"@teambit/command-bar": "0.0.1045",
|
|
48
48
|
"@teambit/component-package-version": "0.0.422",
|
|
49
49
|
"@teambit/component.ui.deprecation-icon": "0.0.504",
|
|
50
|
-
"@teambit/preview": "0.0.
|
|
51
|
-
"@teambit/pubsub": "0.0.
|
|
52
|
-
"@teambit/react-router": "0.0.
|
|
50
|
+
"@teambit/preview": "0.0.1045",
|
|
51
|
+
"@teambit/pubsub": "0.0.1045",
|
|
52
|
+
"@teambit/react-router": "0.0.1045",
|
|
53
53
|
"@teambit/ui-foundation.ui.is-browser": "0.0.495",
|
|
54
54
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.497",
|
|
55
55
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
|
|
56
56
|
"@teambit/ui-foundation.ui.use-box.menu": "0.0.133",
|
|
57
|
-
"@teambit/ui": "0.0.
|
|
57
|
+
"@teambit/ui": "0.0.1045",
|
|
58
58
|
"@teambit/component-issues": "0.0.89",
|
|
59
59
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.500",
|
|
60
60
|
"@teambit/cli-table": "0.0.41",
|
|
61
61
|
"@teambit/component-descriptor": "0.0.272",
|
|
62
62
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.496",
|
|
63
|
-
"@teambit/
|
|
64
|
-
"@teambit/
|
|
65
|
-
"@teambit/
|
|
63
|
+
"@teambit/harmony.ui.aspect-box": "0.0.497",
|
|
64
|
+
"@teambit/compositions": "0.0.1045",
|
|
65
|
+
"@teambit/deprecation": "0.0.1045",
|
|
66
|
+
"@teambit/envs": "0.0.1045",
|
|
66
67
|
"@teambit/legacy-component-log": "0.0.399",
|
|
67
68
|
"@teambit/envs.ui.env-icon": "0.0.495",
|
|
68
|
-
"@teambit/harmony.ui.aspect-box": "0.0.497",
|
|
69
69
|
"@teambit/component.ui.version-dropdown": "0.0.760",
|
|
70
70
|
"@teambit/lanes.hooks.use-lanes": "0.0.166",
|
|
71
71
|
"@teambit/lanes.ui.models.lanes-model": "0.0.119",
|
|
@@ -43,7 +43,20 @@ export type ComponentPreview = {
|
|
|
43
43
|
|
|
44
44
|
export type ComponentServer = {
|
|
45
45
|
env: string;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Full dev server url.
|
|
48
|
+
*/
|
|
49
|
+
url?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* host of the component server (used mostly by cloud providers for remote scopes)
|
|
53
|
+
*/
|
|
54
|
+
host?: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* This is used mostly by cloud to proxy requests to the correct scope.
|
|
58
|
+
*/
|
|
59
|
+
basePath?: string;
|
|
47
60
|
};
|
|
48
61
|
|
|
49
62
|
export class ComponentModel {
|
|
Binary file
|