@teambit/workspace 1.0.1195 → 1.0.1197
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.1197/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1197/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.1197",
|
|
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.1197"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -30,42 +30,26 @@
|
|
|
30
30
|
"reset-css": "5.0.1",
|
|
31
31
|
"@teambit/component-id": "1.2.4",
|
|
32
32
|
"@teambit/harmony": "0.4.12",
|
|
33
|
-
"@teambit/legacy.extension-data": "0.0.175",
|
|
34
|
-
"@teambit/legacy.scope": "0.0.173",
|
|
35
33
|
"@teambit/component-version": "1.0.4",
|
|
36
|
-
"@teambit/legacy.consumer-component": "0.0.174",
|
|
37
|
-
"@teambit/legacy.consumer": "0.0.173",
|
|
38
34
|
"@teambit/bit-error": "0.0.404",
|
|
39
35
|
"@teambit/lane-id": "0.0.312",
|
|
40
|
-
"@teambit/legacy.bit-map": "0.0.230",
|
|
41
36
|
"@teambit/toolbox.fs.last-modified": "0.0.21",
|
|
42
37
|
"@teambit/toolbox.path.path": "0.0.23",
|
|
43
38
|
"@teambit/graph.cleargraph": "0.0.11",
|
|
44
39
|
"@teambit/logger": "0.0.1494",
|
|
45
|
-
"@teambit/cli": "0.0.1404",
|
|
46
|
-
"@teambit/config-store": "0.0.285",
|
|
47
40
|
"@teambit/legacy.constants": "0.0.46",
|
|
48
41
|
"@teambit/component.ui.component-status-resolver": "0.0.510",
|
|
49
42
|
"@teambit/harmony.modules.load-trace": "0.0.15",
|
|
50
43
|
"@teambit/harmony.modules.resolved-component": "0.0.528",
|
|
51
44
|
"@teambit/legacy.utils": "0.0.52",
|
|
52
|
-
"@teambit/scope.remotes": "0.0.173",
|
|
53
|
-
"@teambit/config": "0.0.1579",
|
|
54
45
|
"@teambit/harmony.modules.requireable-component": "0.0.528",
|
|
55
46
|
"@teambit/harmony.modules.runtimes": "0.0.1",
|
|
56
47
|
"@teambit/toolbox.modules.module-resolver": "0.0.27",
|
|
57
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.406",
|
|
58
|
-
"@teambit/global-config": "0.0.1408",
|
|
59
|
-
"@teambit/legacy.consumer-config": "0.0.173",
|
|
60
|
-
"@teambit/variants": "0.0.1672",
|
|
61
48
|
"@teambit/component-issues": "0.0.188",
|
|
62
|
-
"@teambit/component.sources": "0.0.225",
|
|
63
49
|
"@teambit/dependencies.modules.packages-excluder": "1.0.8",
|
|
64
50
|
"@teambit/git.modules.git-executable": "0.0.47",
|
|
65
51
|
"@teambit/harmony.modules.in-memory-cache": "0.0.51",
|
|
66
52
|
"@teambit/legacy-bit-id": "1.1.3",
|
|
67
|
-
"@teambit/legacy.component-list": "0.0.227",
|
|
68
|
-
"@teambit/legacy.scope-api": "0.0.228",
|
|
69
53
|
"@teambit/toolbox.path.is-path-inside": "0.0.516",
|
|
70
54
|
"@teambit/workspace.modules.match-pattern": "0.0.536",
|
|
71
55
|
"@teambit/component.ui.component-drawer": "0.0.510",
|
|
@@ -102,23 +86,38 @@
|
|
|
102
86
|
"@teambit/workspace.hooks.use-url-change-broadcaster": "0.0.6",
|
|
103
87
|
"@teambit/workspace.ui.preserve-workspace-mode": "0.0.7",
|
|
104
88
|
"@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/
|
|
109
|
-
"@teambit/scope": "
|
|
110
|
-
"@teambit/
|
|
111
|
-
"@teambit/
|
|
112
|
-
"@teambit/
|
|
113
|
-
"@teambit/
|
|
114
|
-
"@teambit/
|
|
115
|
-
"@teambit/
|
|
116
|
-
"@teambit/
|
|
117
|
-
"@teambit/
|
|
118
|
-
"@teambit/
|
|
119
|
-
"@teambit/
|
|
120
|
-
"@teambit/
|
|
121
|
-
"@teambit/
|
|
89
|
+
"@teambit/component": "1.0.1197",
|
|
90
|
+
"@teambit/dependency-resolver": "1.0.1197",
|
|
91
|
+
"@teambit/envs": "1.0.1197",
|
|
92
|
+
"@teambit/legacy.extension-data": "0.0.176",
|
|
93
|
+
"@teambit/legacy.scope": "0.0.174",
|
|
94
|
+
"@teambit/legacy.consumer-component": "0.0.175",
|
|
95
|
+
"@teambit/legacy.consumer": "0.0.174",
|
|
96
|
+
"@teambit/legacy.bit-map": "0.0.231",
|
|
97
|
+
"@teambit/objects": "0.0.704",
|
|
98
|
+
"@teambit/scope": "1.0.1197",
|
|
99
|
+
"@teambit/graph": "1.0.1197",
|
|
100
|
+
"@teambit/cli": "0.0.1405",
|
|
101
|
+
"@teambit/config-store": "0.0.286",
|
|
102
|
+
"@teambit/isolator": "1.0.1197",
|
|
103
|
+
"@teambit/component-tree": "1.0.1197",
|
|
104
|
+
"@teambit/watcher": "1.0.1197",
|
|
105
|
+
"@teambit/scope.remotes": "0.0.174",
|
|
106
|
+
"@teambit/aspect-loader": "1.0.1197",
|
|
107
|
+
"@teambit/config": "0.0.1580",
|
|
108
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.407",
|
|
109
|
+
"@teambit/graphql": "1.0.1197",
|
|
110
|
+
"@teambit/bundler": "1.0.1197",
|
|
111
|
+
"@teambit/global-config": "0.0.1409",
|
|
112
|
+
"@teambit/legacy.consumer-config": "0.0.174",
|
|
113
|
+
"@teambit/ui": "1.0.1197",
|
|
114
|
+
"@teambit/variants": "0.0.1673",
|
|
115
|
+
"@teambit/component.sources": "0.0.226",
|
|
116
|
+
"@teambit/legacy.component-list": "0.0.228",
|
|
117
|
+
"@teambit/legacy.scope-api": "0.0.229",
|
|
118
|
+
"@teambit/command-bar": "1.0.1197",
|
|
119
|
+
"@teambit/sidebar": "1.0.1197",
|
|
120
|
+
"@teambit/pubsub": "1.0.1197"
|
|
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';
|