@teambit/workspace 1.0.1194 → 1.0.1196
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1196/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1196/dist/workspace.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ComponentModelProps } from '@teambit/component';
|
|
1
|
+
import type { ComponentModelProps, DeprecationInfo } from '@teambit/component';
|
|
2
2
|
import { ComponentID, ComponentModel } from '@teambit/component';
|
|
3
3
|
import { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
4
|
-
import type { DeprecationInfo } from '@teambit/deprecation';
|
|
5
4
|
import type { Descriptor } from '@teambit/envs';
|
|
6
5
|
import type { ComponentStatus } from '../../workspace-component/component-status';
|
|
7
6
|
export type WorkspaceModelComponent = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_component","data","require","_componentDescriptor","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","Workspace","constructor","name","path","icon","components","componentDescriptors","getComponent","id","find","component","fullName","from","map","ComponentID","fromObject","aspectList","entries","aspects","aspectObject","aspectId","aspectData","ComponentDescriptor","toString","ComponentModel","empty","exports"],"sources":["workspace-model.ts"],"sourcesContent":["// import { ComponentMeta } from '@teambit/component';\nimport type { ComponentModelProps } from '@teambit/component';\nimport { ComponentID, ComponentModel } from '@teambit/component';\nimport { ComponentDescriptor } from '@teambit/component-descriptor';\nimport type {
|
|
1
|
+
{"version":3,"names":["_component","data","require","_componentDescriptor","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","Workspace","constructor","name","path","icon","components","componentDescriptors","getComponent","id","find","component","fullName","from","map","ComponentID","fromObject","aspectList","entries","aspects","aspectObject","aspectId","aspectData","ComponentDescriptor","toString","ComponentModel","empty","exports"],"sources":["workspace-model.ts"],"sourcesContent":["// import { ComponentMeta } from '@teambit/component';\nimport type { ComponentModelProps, DeprecationInfo } from '@teambit/component';\nimport { ComponentID, ComponentModel } from '@teambit/component';\nimport { ComponentDescriptor } from '@teambit/component-descriptor';\nimport type { Descriptor } from '@teambit/envs';\n\nimport type { ComponentStatus } from '../../workspace-component/component-status';\n\nexport type WorkspaceModelComponent = {\n id: ComponentID;\n status: ComponentStatus;\n deprecation: DeprecationInfo;\n env: Descriptor;\n};\n\nexport type WorkspaceProps = {\n name: string;\n path: string;\n components: (ComponentModelProps & { aspects: Record<string, any> })[];\n icon: string;\n};\n\nexport class Workspace {\n constructor(\n /**\n * name of the workspace.\n */\n readonly name: string,\n\n /**\n * absolute path of the workspace.\n */\n readonly path: string,\n\n /**\n * icon of the workspace.\n */\n readonly icon: string,\n\n /**\n * components container in the workspace.\n */\n readonly components: ComponentModel[],\n\n /**\n * components contained in the workspace.\n */\n readonly componentDescriptors: ComponentDescriptor[]\n ) {}\n\n /**\n * return a component from the workspace.\n */\n getComponent(id: ComponentID) {\n return this.components.find((component) => component.id.fullName === id.fullName);\n }\n\n static from({ name, path, components, icon }: WorkspaceProps) {\n const componentDescriptors = components.map((component) => {\n const id = ComponentID.fromObject(component.id);\n const aspectList = {\n entries: component?.aspects.map((aspectObject) => {\n return {\n ...aspectObject,\n aspectId: aspectObject.aspectId,\n aspectData: aspectObject.data,\n };\n }),\n };\n return ComponentDescriptor.fromObject({ id: id.toString(), aspectList });\n });\n return new Workspace(\n name,\n path,\n icon,\n components.map((value) => {\n return ComponentModel.from(value);\n }),\n componentDescriptors\n );\n }\n\n static empty() {\n return new Workspace('', '', '', [], []);\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,qBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,oBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoE,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,S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,CAAExB,KAAK,IAAK;MACxB,OAAOmC,2BAAc,CAACZ,IAAI,CAACvB,KAAK,CAAC;IACnC,CAAC,CAAC,EACFiB,oBACF,CAAC;EACH;EAEA,OAAOmB,KAAKA,CAAA,EAAG;IACb,OAAO,IAAIzB,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;EAC1C;AACF;AAAC0B,OAAA,CAAA1B,SAAA,GAAAA,SAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1196",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1196"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -102,23 +102,22 @@
|
|
|
102
102
|
"@teambit/workspace.hooks.use-url-change-broadcaster": "0.0.6",
|
|
103
103
|
"@teambit/workspace.ui.preserve-workspace-mode": "0.0.7",
|
|
104
104
|
"@teambit/evangelist.elements.icon": "1.0.5",
|
|
105
|
-
"@teambit/component": "1.0.
|
|
106
|
-
"@teambit/dependency-resolver": "1.0.
|
|
107
|
-
"@teambit/envs": "1.0.
|
|
108
|
-
"@teambit/objects": "0.0.
|
|
109
|
-
"@teambit/scope": "1.0.
|
|
110
|
-
"@teambit/graph": "1.0.
|
|
111
|
-
"@teambit/isolator": "1.0.
|
|
112
|
-
"@teambit/component-tree": "1.0.
|
|
113
|
-
"@teambit/watcher": "1.0.
|
|
114
|
-
"@teambit/aspect-loader": "1.0.
|
|
115
|
-
"@teambit/graphql": "1.0.
|
|
116
|
-
"@teambit/bundler": "1.0.
|
|
117
|
-
"@teambit/ui": "1.0.
|
|
118
|
-
"@teambit/command-bar": "1.0.
|
|
119
|
-
"@teambit/sidebar": "1.0.
|
|
120
|
-
"@teambit/pubsub": "1.0.
|
|
121
|
-
"@teambit/deprecation": "1.0.1194"
|
|
105
|
+
"@teambit/component": "1.0.1196",
|
|
106
|
+
"@teambit/dependency-resolver": "1.0.1196",
|
|
107
|
+
"@teambit/envs": "1.0.1196",
|
|
108
|
+
"@teambit/objects": "0.0.703",
|
|
109
|
+
"@teambit/scope": "1.0.1196",
|
|
110
|
+
"@teambit/graph": "1.0.1196",
|
|
111
|
+
"@teambit/isolator": "1.0.1196",
|
|
112
|
+
"@teambit/component-tree": "1.0.1196",
|
|
113
|
+
"@teambit/watcher": "1.0.1196",
|
|
114
|
+
"@teambit/aspect-loader": "1.0.1196",
|
|
115
|
+
"@teambit/graphql": "1.0.1196",
|
|
116
|
+
"@teambit/bundler": "1.0.1196",
|
|
117
|
+
"@teambit/ui": "1.0.1196",
|
|
118
|
+
"@teambit/command-bar": "1.0.1196",
|
|
119
|
+
"@teambit/sidebar": "1.0.1196",
|
|
120
|
+
"@teambit/pubsub": "1.0.1196"
|
|
122
121
|
},
|
|
123
122
|
"devDependencies": {
|
|
124
123
|
"@types/lodash": "4.14.165",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// import { ComponentMeta } from '@teambit/component';
|
|
2
|
-
import type { ComponentModelProps } from '@teambit/component';
|
|
2
|
+
import type { ComponentModelProps, DeprecationInfo } from '@teambit/component';
|
|
3
3
|
import { ComponentID, ComponentModel } from '@teambit/component';
|
|
4
4
|
import { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
5
|
-
import type { DeprecationInfo } from '@teambit/deprecation';
|
|
6
5
|
import type { Descriptor } from '@teambit/envs';
|
|
7
6
|
|
|
8
7
|
import type { ComponentStatus } from '../../workspace-component/component-status';
|