@teambit/workspace 1.0.330 → 1.0.331
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_workspace_workspace-preview.js +1 -1
- package/artifacts/schema.json +1031 -2883
- package/component-config-file/component-config-file.ts +1 -1
- package/dist/bit-map.d.ts +2 -4
- package/dist/bit-map.js +9 -10
- package/dist/bit-map.js.map +1 -1
- package/dist/component-config-file/component-config-file.d.ts +1 -1
- package/dist/component-config-file/component-config-file.js.map +1 -1
- package/dist/on-component-events.d.ts +1 -1
- package/dist/on-component-events.js.map +1 -1
- package/dist/{preview-1720513025675.js → preview-1720667996237.js} +2 -2
- package/dist/workspace-component/component-status-loader.js +5 -5
- package/dist/workspace-component/component-status-loader.js.map +1 -1
- package/dist/workspace-component/workspace-component-loader.js +38 -38
- package/dist/workspace-component/workspace-component-loader.js.map +1 -1
- package/dist/workspace.d.ts +2 -2
- package/dist/workspace.js +35 -33
- package/dist/workspace.js.map +1 -1
- package/dist/workspace.ui-root.d.ts +2 -2
- package/dist/workspace.ui-root.js.map +1 -1
- package/package.json +38 -31
- package/workspace-component/component-status-loader.ts +2 -2
- package/workspace-component/workspace-component-loader.ts +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BundlerMain } from '@teambit/bundler';
|
|
2
2
|
import { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component';
|
|
3
3
|
import { UIRoot } from '@teambit/ui';
|
|
4
|
-
import { GetBitMapComponentOptions } from '@teambit/legacy
|
|
5
|
-
import { PathOsBased } from '@teambit/
|
|
4
|
+
import { GetBitMapComponentOptions } from '@teambit/legacy.bit-map';
|
|
5
|
+
import { PathOsBased } from '@teambit/toolbox.path.path';
|
|
6
6
|
import { Workspace } from './workspace';
|
|
7
7
|
export declare class WorkspaceUIRoot implements UIRoot {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WorkspaceUIRoot","constructor","workspace","bundler","_defineProperty","ssr","launchBrowserOnStart","prebundle","name","path","configFile","resolveAspects","runtimeName","componentIds","opts","resolvePattern","pattern","byPattern","getConfig","componentDir","componentId","bitMapOptions","options","relative","exports"],"sources":["workspace.ui-root.ts"],"sourcesContent":["import { BundlerMain } from '@teambit/bundler';\nimport { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component';\nimport { UIRoot } from '@teambit/ui';\nimport { GetBitMapComponentOptions } from '@teambit/legacy
|
|
1
|
+
{"version":3,"names":["WorkspaceUIRoot","constructor","workspace","bundler","_defineProperty","ssr","launchBrowserOnStart","prebundle","name","path","configFile","resolveAspects","runtimeName","componentIds","opts","resolvePattern","pattern","byPattern","getConfig","componentDir","componentId","bitMapOptions","options","relative","exports"],"sources":["workspace.ui-root.ts"],"sourcesContent":["import { BundlerMain } from '@teambit/bundler';\nimport { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component';\nimport { UIRoot } from '@teambit/ui';\nimport { GetBitMapComponentOptions } from '@teambit/legacy.bit-map';\nimport { PathOsBased } from '@teambit/toolbox.path.path';\n\nimport { Workspace } from './workspace';\n\nexport class WorkspaceUIRoot implements UIRoot {\n constructor(\n /**\n * workspace extension.\n */\n private workspace: Workspace,\n\n /**\n * bundler extension\n */\n private bundler: BundlerMain\n ) {}\n\n priority = true;\n\n get name() {\n return this.workspace.name;\n }\n\n get path() {\n return this.workspace.path;\n }\n\n get configFile() {\n return 'workspace.json';\n }\n\n buildOptions = {\n ssr: false,\n launchBrowserOnStart: true,\n prebundle: true,\n };\n\n async resolveAspects(runtimeName: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions) {\n return this.workspace.resolveAspects(runtimeName, componentIds, opts);\n }\n\n // TODO: @gilad please implement with variants.\n resolvePattern(pattern: string): Promise<Component[]> {\n return this.workspace.byPattern(pattern);\n }\n\n getConfig() {\n return {};\n }\n\n /**\n * proxy to `workspace.componentDir()`\n */\n componentDir(\n componentId: ComponentID,\n bitMapOptions?: GetBitMapComponentOptions,\n options = { relative: false }\n ): PathOsBased {\n return this.workspace.componentDir(componentId, bitMapOptions, options);\n }\n}\n"],"mappings":";;;;;;;;;AAQO,MAAMA,eAAe,CAAmB;EAC7CC,WAAWA;EACT;AACJ;AACA;EACYC,SAAoB;EAE5B;AACJ;AACA;EACYC,OAAoB,EAC5B;IAAA,KANQD,SAAoB,GAApBA,SAAoB;IAAA,KAKpBC,OAAoB,GAApBA,OAAoB;IAAAC,eAAA,mBAGnB,IAAI;IAAAA,eAAA,uBAcA;MACbC,GAAG,EAAE,KAAK;MACVC,oBAAoB,EAAE,IAAI;MAC1BC,SAAS,EAAE;IACb,CAAC;EApBE;EAIH,IAAIC,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACN,SAAS,CAACM,IAAI;EAC5B;EAEA,IAAIC,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACP,SAAS,CAACO,IAAI;EAC5B;EAEA,IAAIC,UAAUA,CAAA,EAAG;IACf,OAAO,gBAAgB;EACzB;EAQA,MAAMC,cAAcA,CAACC,WAAmB,EAAEC,YAA4B,EAAEC,IAA4B,EAAE;IACpG,OAAO,IAAI,CAACZ,SAAS,CAACS,cAAc,CAACC,WAAW,EAAEC,YAAY,EAAEC,IAAI,CAAC;EACvE;;EAEA;EACAC,cAAcA,CAACC,OAAe,EAAwB;IACpD,OAAO,IAAI,CAACd,SAAS,CAACe,SAAS,CAACD,OAAO,CAAC;EAC1C;EAEAE,SAASA,CAAA,EAAG;IACV,OAAO,CAAC,CAAC;EACX;;EAEA;AACF;AACA;EACEC,YAAYA,CACVC,WAAwB,EACxBC,aAAyC,EACzCC,OAAO,GAAG;IAAEC,QAAQ,EAAE;EAAM,CAAC,EAChB;IACb,OAAO,IAAI,CAACrB,SAAS,CAACiB,YAAY,CAACC,WAAW,EAAEC,aAAa,EAAEC,OAAO,CAAC;EACzE;AACF;AAACE,OAAA,CAAAxB,eAAA,GAAAA,eAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.331",
|
|
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.331"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -51,50 +51,57 @@
|
|
|
51
51
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
52
52
|
"@teambit/workspace.ui.empty-workspace": "0.0.508",
|
|
53
53
|
"@teambit/explorer.ui.component-card": "0.0.30",
|
|
54
|
-
"@teambit/component": "1.0.
|
|
55
|
-
"@teambit/dependency-resolver": "1.0.
|
|
56
|
-
"@teambit/envs": "1.0.
|
|
57
|
-
"@teambit/
|
|
58
|
-
"@teambit/
|
|
59
|
-
"@teambit/
|
|
60
|
-
"@teambit/
|
|
61
|
-
"@teambit/
|
|
62
|
-
"@teambit/
|
|
54
|
+
"@teambit/component": "1.0.331",
|
|
55
|
+
"@teambit/dependency-resolver": "1.0.331",
|
|
56
|
+
"@teambit/envs": "1.0.331",
|
|
57
|
+
"@teambit/legacy.bit-map": "0.0.5",
|
|
58
|
+
"@teambit/toolbox.fs.last-modified": "0.0.1",
|
|
59
|
+
"@teambit/toolbox.path.path": "0.0.2",
|
|
60
|
+
"@teambit/logger": "0.0.1001",
|
|
61
|
+
"@teambit/scope": "1.0.331",
|
|
62
|
+
"@teambit/graph": "1.0.331",
|
|
63
|
+
"@teambit/cli": "0.0.908",
|
|
64
|
+
"@teambit/isolator": "1.0.331",
|
|
65
|
+
"@teambit/component-tree": "1.0.331",
|
|
63
66
|
"@teambit/harmony.modules.resolved-component": "0.0.497",
|
|
64
|
-
"@teambit/
|
|
65
|
-
"@teambit/
|
|
66
|
-
"@teambit/
|
|
67
|
-
"@teambit/
|
|
67
|
+
"@teambit/legacy.utils": "0.0.3",
|
|
68
|
+
"@teambit/watcher": "1.0.331",
|
|
69
|
+
"@teambit/aspect-loader": "1.0.331",
|
|
70
|
+
"@teambit/config": "0.0.1082",
|
|
71
|
+
"@teambit/global-config": "0.0.911",
|
|
68
72
|
"@teambit/harmony.modules.requireable-component": "0.0.497",
|
|
69
73
|
"@teambit/toolbox.modules.module-resolver": "0.0.7",
|
|
70
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
71
|
-
"@teambit/graphql": "1.0.
|
|
72
|
-
"@teambit/bundler": "1.0.
|
|
73
|
-
"@teambit/pubsub": "1.0.
|
|
74
|
-
"@teambit/ui": "1.0.
|
|
75
|
-
"@teambit/variants": "0.0.
|
|
74
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.176",
|
|
75
|
+
"@teambit/graphql": "1.0.331",
|
|
76
|
+
"@teambit/bundler": "1.0.331",
|
|
77
|
+
"@teambit/pubsub": "1.0.331",
|
|
78
|
+
"@teambit/ui": "1.0.331",
|
|
79
|
+
"@teambit/variants": "0.0.1175",
|
|
76
80
|
"@teambit/component-issues": "0.0.150",
|
|
77
81
|
"@teambit/harmony.modules.in-memory-cache": "0.0.1",
|
|
78
|
-
"@teambit/legacy.scope-api": "0.0.
|
|
82
|
+
"@teambit/legacy.scope-api": "0.0.4",
|
|
83
|
+
"@teambit/toolbox.path.is-path-inside": "0.0.496",
|
|
79
84
|
"@teambit/workspace.modules.match-pattern": "0.0.505",
|
|
80
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
81
|
-
"@teambit/lanes.hooks.use-lane-components": "0.0.
|
|
85
|
+
"@teambit/component.ui.component-drawer": "0.0.402",
|
|
86
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.265",
|
|
82
87
|
"@teambit/lanes.hooks.use-lanes": "0.0.264",
|
|
83
88
|
"@teambit/lanes.ui.models.lanes-model": "0.0.216",
|
|
84
|
-
"@teambit/command-bar": "1.0.
|
|
89
|
+
"@teambit/command-bar": "1.0.331",
|
|
85
90
|
"@teambit/component.ui.component-filters.component-filter-context": "0.0.222",
|
|
86
91
|
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.220",
|
|
87
92
|
"@teambit/component.ui.component-filters.env-filter": "0.0.230",
|
|
88
93
|
"@teambit/component.ui.component-filters.show-main-filter": "0.0.213",
|
|
89
|
-
"@teambit/sidebar": "1.0.
|
|
94
|
+
"@teambit/sidebar": "1.0.331",
|
|
90
95
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.509",
|
|
91
|
-
"@teambit/
|
|
92
|
-
"@teambit/
|
|
96
|
+
"@teambit/harmony.modules.concurrency": "0.0.1",
|
|
97
|
+
"@teambit/toolbox.promise.map-pool": "0.0.1",
|
|
98
|
+
"@teambit/component-descriptor": "0.0.422",
|
|
99
|
+
"@teambit/deprecation": "1.0.331",
|
|
93
100
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.222",
|
|
94
101
|
"@teambit/cloud.hooks.use-cloud-scopes": "0.0.3",
|
|
95
102
|
"@teambit/design.ui.tooltip": "0.0.369",
|
|
96
|
-
"@teambit/preview.ui.preview-placeholder": "0.0.
|
|
97
|
-
"@teambit/workspace.ui.workspace-component-card": "0.0.
|
|
103
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.522",
|
|
104
|
+
"@teambit/workspace.ui.workspace-component-card": "0.0.529"
|
|
98
105
|
},
|
|
99
106
|
"devDependencies": {
|
|
100
107
|
"@types/lodash": "4.14.165",
|
|
@@ -107,7 +114,7 @@
|
|
|
107
114
|
"@types/mocha": "9.1.0",
|
|
108
115
|
"chai": "4.3.0",
|
|
109
116
|
"@teambit/workspace.content.workspace-overview": "1.95.0",
|
|
110
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
117
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.42"
|
|
111
118
|
},
|
|
112
119
|
"peerDependencies": {
|
|
113
120
|
"@apollo/client": "^3.6.0",
|
|
@@ -5,8 +5,8 @@ import { VERSION_ZERO } from '@teambit/legacy/dist/scope/models/model-component'
|
|
|
5
5
|
import { Consumer } from '@teambit/legacy/dist/consumer';
|
|
6
6
|
import { LATEST } from '@teambit/legacy/dist/constants';
|
|
7
7
|
import { ModelComponent } from '@teambit/legacy/dist/scope/models';
|
|
8
|
-
import { MissingBitMapComponent } from '@teambit/legacy
|
|
9
|
-
import ComponentsPendingImport from '@teambit/legacy/dist/consumer/
|
|
8
|
+
import { MissingBitMapComponent } from '@teambit/legacy.bit-map';
|
|
9
|
+
import ComponentsPendingImport from '@teambit/legacy/dist/consumer/exceptions/components-pending-import';
|
|
10
10
|
import ComponentNotFoundInPath from '@teambit/legacy/dist/consumer/component/exceptions/component-not-found-in-path';
|
|
11
11
|
import ComponentOutOfSync from '@teambit/legacy/dist/consumer/exceptions/component-out-of-sync';
|
|
12
12
|
import { Workspace } from '..';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import pMap from 'p-map';
|
|
2
|
-
import {
|
|
2
|
+
import { getLatestVersionNumber } from '@teambit/legacy.utils';
|
|
3
|
+
import { pMapPool } from '@teambit/toolbox.promise.map-pool';
|
|
4
|
+
import { concurrentComponentsLimit } from '@teambit/harmony.modules.concurrency';
|
|
3
5
|
import { Component, ComponentFS, Config, InvalidComponent, State, TagMap } from '@teambit/component';
|
|
4
6
|
import { ComponentID, ComponentIdList } from '@teambit/component-id';
|
|
5
7
|
import mapSeries from 'p-map-series';
|
|
6
8
|
import { compact, fromPairs, groupBy, pick, uniq } from 'lodash';
|
|
7
9
|
import ConsumerComponent from '@teambit/legacy/dist/consumer/component';
|
|
8
|
-
import { MissingBitMapComponent } from '@teambit/legacy
|
|
9
|
-
import { getLatestVersionNumber } from '@teambit/legacy/dist/utils';
|
|
10
|
+
import { MissingBitMapComponent } from '@teambit/legacy.bit-map';
|
|
10
11
|
import { IssuesClasses } from '@teambit/component-issues';
|
|
11
12
|
import { ComponentNotFound } from '@teambit/legacy/dist/scope/exceptions';
|
|
12
13
|
import { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';
|
|
@@ -17,7 +18,6 @@ import { getMaxSizeForComponents, InMemoryCache, createInMemoryCache } from '@te
|
|
|
17
18
|
import { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
18
19
|
import ComponentNotFoundInPath from '@teambit/legacy/dist/consumer/component/exceptions/component-not-found-in-path';
|
|
19
20
|
import { ComponentLoadOptions as LegacyComponentLoadOptions } from '@teambit/legacy/dist/consumer/component/component-loader';
|
|
20
|
-
import { pMapPool } from '@teambit/legacy/dist/utils/promise-with-concurrent';
|
|
21
21
|
import { Workspace } from '../workspace';
|
|
22
22
|
import { WorkspaceComponent } from './workspace-component';
|
|
23
23
|
import { MergeConfigConflict } from '../exceptions/merge-config-conflict';
|