@teambit/workspace 1.0.667 → 1.0.669
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/commands/local-only-cmd.ts +2 -2
- package/component-config-file/component-config-file.ts +3 -2
- package/component-tree.widget.tsx +1 -1
- package/dist/aspects-merger.d.ts +5 -5
- package/dist/aspects-merger.js.map +1 -1
- package/dist/auto-tag.d.ts +2 -2
- package/dist/auto-tag.js.map +1 -1
- package/dist/bit-map.d.ts +6 -5
- package/dist/bit-map.js.map +1 -1
- package/dist/build-graph-from-fs.d.ts +4 -4
- package/dist/build-graph-from-fs.js.map +1 -1
- package/dist/build-graph-ids-from-fs.d.ts +5 -5
- package/dist/build-graph-ids-from-fs.js.map +1 -1
- package/dist/capsule.cmd.d.ts +3 -3
- package/dist/capsule.cmd.js.map +1 -1
- package/dist/commands/local-only-cmd.d.ts +2 -2
- package/dist/commands/local-only-cmd.js.map +1 -1
- package/dist/component-config-file/component-config-file.d.ts +3 -2
- package/dist/component-config-file/component-config-file.js.map +1 -1
- package/dist/component-tree.widget.d.ts +1 -1
- package/dist/component-tree.widget.js.map +1 -1
- package/dist/eject-conf.cmd.d.ts +2 -2
- package/dist/eject-conf.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-replace.cmd.d.ts +2 -2
- package/dist/envs-subcommands/envs-replace.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-set.cmd.d.ts +2 -2
- package/dist/envs-subcommands/envs-set.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-unset.cmd.d.ts +2 -2
- package/dist/envs-subcommands/envs-unset.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-update.cmd.d.ts +2 -2
- package/dist/envs-subcommands/envs-update.cmd.js.map +1 -1
- package/dist/filter.d.ts +1 -1
- package/dist/filter.js.map +1 -1
- package/dist/on-component-events.d.ts +3 -3
- package/dist/on-component-events.js.map +1 -1
- package/dist/pattern.cmd.d.ts +2 -2
- package/dist/pattern.cmd.js.map +1 -1
- package/dist/{preview-1753809186996.js → preview-1753848836384.js} +2 -2
- package/dist/scope-subcommands/scope-set.cmd.d.ts +2 -2
- package/dist/scope-subcommands/scope-set.cmd.js.map +1 -1
- package/dist/ui/workspace/use-workspace.js.map +1 -1
- package/dist/ui/workspace/workspace-menu.d.ts +1 -1
- package/dist/ui/workspace/workspace-menu.js.map +1 -1
- package/dist/ui/workspace/workspace-model.d.ts +5 -4
- package/dist/ui/workspace/workspace-model.js.map +1 -1
- package/dist/ui/workspace/workspace-overview/workspace-overview.d.ts +1 -1
- package/dist/ui/workspace/workspace-overview/workspace-overview.js.map +1 -1
- package/dist/ui/workspace/workspace-provider.d.ts +2 -2
- package/dist/ui/workspace/workspace-provider.js.map +1 -1
- package/dist/ui/workspace/workspace.d.ts +1 -1
- package/dist/ui/workspace/workspace.js.map +1 -1
- package/dist/unuse.cmd.d.ts +2 -2
- package/dist/unuse.cmd.js.map +1 -1
- package/dist/use.cmd.d.ts +2 -2
- package/dist/use.cmd.js.map +1 -1
- package/dist/workspace-aspects-loader.d.ts +10 -10
- package/dist/workspace-aspects-loader.js.map +1 -1
- package/dist/workspace-component/comp-files.d.ts +2 -2
- package/dist/workspace-component/comp-files.js.map +1 -1
- package/dist/workspace-component/component-status-loader.d.ts +3 -3
- package/dist/workspace-component/component-status-loader.js.map +1 -1
- package/dist/workspace-component/component-status.d.ts +1 -1
- package/dist/workspace-component/component-status.js.map +1 -1
- package/dist/workspace-component/workspace-component-loader.d.ts +9 -8
- package/dist/workspace-component/workspace-component-loader.js.map +1 -1
- package/dist/workspace-component/workspace-component.d.ts +5 -4
- package/dist/workspace-component/workspace-component.js.map +1 -1
- package/dist/workspace.d.ts +31 -28
- package/dist/workspace.graphql.d.ts +3 -3
- package/dist/workspace.graphql.js.map +1 -1
- package/dist/workspace.js.map +1 -1
- package/dist/workspace.main.runtime.d.ts +15 -15
- package/dist/workspace.main.runtime.js.map +1 -1
- package/dist/workspace.ui-root.d.ts +6 -6
- package/dist/workspace.ui-root.js.map +1 -1
- package/dist/workspace.ui.drawer.d.ts +4 -3
- package/dist/workspace.ui.drawer.js.map +1 -1
- package/dist/workspace.ui.runtime.d.ts +14 -13
- package/dist/workspace.ui.runtime.js.map +1 -1
- package/envs-subcommands/envs-replace.cmd.ts +2 -2
- package/envs-subcommands/envs-set.cmd.ts +2 -2
- package/envs-subcommands/envs-unset.cmd.ts +2 -2
- package/envs-subcommands/envs-update.cmd.ts +2 -2
- package/package.json +47 -47
- package/scope-subcommands/scope-set.cmd.ts +2 -2
- package/ui/workspace/use-workspace.ts +2 -1
- package/ui/workspace/workspace-menu.tsx +2 -1
- package/ui/workspace/workspace-model.ts +5 -4
- package/ui/workspace/workspace-overview/workspace-overview.tsx +1 -1
- package/ui/workspace/workspace-provider.tsx +3 -2
- package/ui/workspace/workspace.tsx +1 -1
- package/workspace-component/comp-files.ts +2 -2
- package/workspace-component/component-status-loader.ts +9 -5
- package/workspace-component/component-status.ts +1 -1
- package/workspace-component/workspace-component-loader.ts +15 -14
- package/workspace-component/workspace-component.ts +5 -4
- package/workspace.ui.drawer.tsx +6 -5
- package/workspace.ui.runtime.tsx +22 -18
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.669",
|
|
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.669"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -28,44 +28,44 @@
|
|
|
28
28
|
"reset-css": "5.0.1",
|
|
29
29
|
"@teambit/component-id": "1.2.4",
|
|
30
30
|
"@teambit/harmony": "0.4.7",
|
|
31
|
-
"@teambit/legacy.extension-data": "0.0.
|
|
32
|
-
"@teambit/legacy.scope": "0.0.
|
|
31
|
+
"@teambit/legacy.extension-data": "0.0.60",
|
|
32
|
+
"@teambit/legacy.scope": "0.0.58",
|
|
33
33
|
"@teambit/component-version": "1.0.4",
|
|
34
|
-
"@teambit/legacy.consumer-component": "0.0.
|
|
35
|
-
"@teambit/legacy.consumer": "0.0.
|
|
34
|
+
"@teambit/legacy.consumer-component": "0.0.59",
|
|
35
|
+
"@teambit/legacy.consumer": "0.0.58",
|
|
36
36
|
"@teambit/bit-error": "0.0.404",
|
|
37
37
|
"@teambit/lane-id": "0.0.312",
|
|
38
|
-
"@teambit/legacy.bit-map": "0.0.
|
|
39
|
-
"@teambit/toolbox.fs.last-modified": "0.0.
|
|
38
|
+
"@teambit/legacy.bit-map": "0.0.115",
|
|
39
|
+
"@teambit/toolbox.fs.last-modified": "0.0.6",
|
|
40
40
|
"@teambit/toolbox.path.path": "0.0.8",
|
|
41
41
|
"@teambit/graph.cleargraph": "0.0.11",
|
|
42
42
|
"@teambit/component.ui.component-status-resolver": "0.0.510",
|
|
43
43
|
"@teambit/legacy.constants": "0.0.13",
|
|
44
|
-
"@teambit/harmony.modules.resolved-component": "0.0.
|
|
44
|
+
"@teambit/harmony.modules.resolved-component": "0.0.504",
|
|
45
45
|
"@teambit/legacy.utils": "0.0.22",
|
|
46
|
-
"@teambit/harmony.modules.requireable-component": "0.0.
|
|
46
|
+
"@teambit/harmony.modules.requireable-component": "0.0.504",
|
|
47
47
|
"@teambit/toolbox.modules.module-resolver": "0.0.11",
|
|
48
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
49
|
-
"@teambit/legacy.consumer-config": "0.0.
|
|
48
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.286",
|
|
49
|
+
"@teambit/legacy.consumer-config": "0.0.58",
|
|
50
50
|
"@teambit/component-issues": "0.0.160",
|
|
51
|
-
"@teambit/component.sources": "0.0.
|
|
51
|
+
"@teambit/component.sources": "0.0.110",
|
|
52
52
|
"@teambit/dependencies.modules.packages-excluder": "1.0.8",
|
|
53
|
-
"@teambit/harmony.modules.in-memory-cache": "0.0.
|
|
53
|
+
"@teambit/harmony.modules.in-memory-cache": "0.0.16",
|
|
54
54
|
"@teambit/legacy-bit-id": "1.1.3",
|
|
55
|
-
"@teambit/legacy.component-list": "0.0.
|
|
56
|
-
"@teambit/legacy.scope-api": "0.0.
|
|
57
|
-
"@teambit/scope.remotes": "0.0.
|
|
55
|
+
"@teambit/legacy.component-list": "0.0.112",
|
|
56
|
+
"@teambit/legacy.scope-api": "0.0.113",
|
|
57
|
+
"@teambit/scope.remotes": "0.0.58",
|
|
58
58
|
"@teambit/toolbox.path.is-path-inside": "0.0.500",
|
|
59
59
|
"@teambit/workspace.modules.match-pattern": "0.0.510",
|
|
60
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
60
|
+
"@teambit/component.ui.component-drawer": "0.0.451",
|
|
61
61
|
"@teambit/design.ui.tree": "0.0.16",
|
|
62
|
-
"@teambit/lanes.hooks.use-lane-components": "0.0.
|
|
62
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.286",
|
|
63
63
|
"@teambit/lanes.hooks.use-lanes": "0.0.289",
|
|
64
64
|
"@teambit/lanes.ui.models.lanes-model": "0.0.228",
|
|
65
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
65
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.913",
|
|
66
66
|
"@teambit/component.ui.component-filters.component-filter-context": "0.0.238",
|
|
67
67
|
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.236",
|
|
68
|
-
"@teambit/component.ui.component-filters.env-filter": "0.0.
|
|
68
|
+
"@teambit/component.ui.component-filters.env-filter": "0.0.255",
|
|
69
69
|
"@teambit/component.ui.component-filters.show-main-filter": "0.0.229",
|
|
70
70
|
"@teambit/design.ui.surfaces.menu.link-item": "1.0.12",
|
|
71
71
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.503",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
|
77
77
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.506",
|
|
78
78
|
"@teambit/workspace.ui.use-workspace-mode": "0.0.2",
|
|
79
|
-
"@teambit/component-descriptor": "0.0.
|
|
79
|
+
"@teambit/component-descriptor": "0.0.437",
|
|
80
80
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.504",
|
|
81
81
|
"@teambit/base-react.themes.theme-switcher": "1.1.2",
|
|
82
82
|
"@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
|
|
@@ -90,33 +90,33 @@
|
|
|
90
90
|
"@teambit/design.ui.tooltip": "0.0.378",
|
|
91
91
|
"@teambit/explorer.ui.component-card": "0.0.50",
|
|
92
92
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.496",
|
|
93
|
-
"@teambit/preview.ui.preview-placeholder": "0.0.
|
|
93
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.546",
|
|
94
94
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
95
95
|
"@teambit/workspace.ui.empty-workspace": "0.0.509",
|
|
96
|
-
"@teambit/workspace.ui.workspace-component-card": "0.0.
|
|
97
|
-
"@teambit/component": "1.0.
|
|
98
|
-
"@teambit/dependency-resolver": "1.0.
|
|
99
|
-
"@teambit/envs": "1.0.
|
|
100
|
-
"@teambit/logger": "0.0.
|
|
101
|
-
"@teambit/objects": "0.0.
|
|
102
|
-
"@teambit/scope": "1.0.
|
|
103
|
-
"@teambit/graph": "1.0.
|
|
104
|
-
"@teambit/cli": "0.0.
|
|
105
|
-
"@teambit/isolator": "1.0.
|
|
106
|
-
"@teambit/component-tree": "1.0.
|
|
107
|
-
"@teambit/watcher": "1.0.
|
|
108
|
-
"@teambit/aspect-loader": "1.0.
|
|
109
|
-
"@teambit/config-store": "0.0.
|
|
110
|
-
"@teambit/config": "0.0.
|
|
111
|
-
"@teambit/graphql": "1.0.
|
|
112
|
-
"@teambit/bundler": "1.0.
|
|
113
|
-
"@teambit/global-config": "0.0.
|
|
114
|
-
"@teambit/ui": "1.0.
|
|
115
|
-
"@teambit/variants": "0.0.
|
|
116
|
-
"@teambit/command-bar": "1.0.
|
|
117
|
-
"@teambit/sidebar": "1.0.
|
|
118
|
-
"@teambit/pubsub": "1.0.
|
|
119
|
-
"@teambit/deprecation": "1.0.
|
|
96
|
+
"@teambit/workspace.ui.workspace-component-card": "0.0.552",
|
|
97
|
+
"@teambit/component": "1.0.669",
|
|
98
|
+
"@teambit/dependency-resolver": "1.0.669",
|
|
99
|
+
"@teambit/envs": "1.0.669",
|
|
100
|
+
"@teambit/logger": "0.0.1339",
|
|
101
|
+
"@teambit/objects": "0.0.176",
|
|
102
|
+
"@teambit/scope": "1.0.669",
|
|
103
|
+
"@teambit/graph": "1.0.669",
|
|
104
|
+
"@teambit/cli": "0.0.1246",
|
|
105
|
+
"@teambit/isolator": "1.0.669",
|
|
106
|
+
"@teambit/component-tree": "1.0.669",
|
|
107
|
+
"@teambit/watcher": "1.0.669",
|
|
108
|
+
"@teambit/aspect-loader": "1.0.669",
|
|
109
|
+
"@teambit/config-store": "0.0.126",
|
|
110
|
+
"@teambit/config": "0.0.1420",
|
|
111
|
+
"@teambit/graphql": "1.0.669",
|
|
112
|
+
"@teambit/bundler": "1.0.669",
|
|
113
|
+
"@teambit/global-config": "0.0.1249",
|
|
114
|
+
"@teambit/ui": "1.0.669",
|
|
115
|
+
"@teambit/variants": "0.0.1513",
|
|
116
|
+
"@teambit/command-bar": "1.0.669",
|
|
117
|
+
"@teambit/sidebar": "1.0.669",
|
|
118
|
+
"@teambit/pubsub": "1.0.669",
|
|
119
|
+
"@teambit/deprecation": "1.0.669"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@types/lodash": "4.14.165",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Command } from '@teambit/cli';
|
|
1
|
+
import type { Command } from '@teambit/cli';
|
|
2
2
|
import { PATTERN_HELP, COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
|
-
import { Workspace } from '../workspace';
|
|
4
|
+
import type { Workspace } from '../workspace';
|
|
5
5
|
|
|
6
6
|
export class ScopeSetCmd implements Command {
|
|
7
7
|
name = 'set <scope-name> [component-pattern]';
|
|
@@ -3,7 +3,8 @@ import { ComponentModel } from '@teambit/component';
|
|
|
3
3
|
import useLatest from '@react-hook/latest';
|
|
4
4
|
import { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';
|
|
5
5
|
import { gql } from '@apollo/client';
|
|
6
|
-
import {
|
|
6
|
+
import type { ComponentIdObj } from '@teambit/component-id';
|
|
7
|
+
import { ComponentID } from '@teambit/component-id';
|
|
7
8
|
|
|
8
9
|
import { Workspace } from './workspace-model';
|
|
9
10
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MenuProps } from '@teambit/ui-foundation.ui.menu';
|
|
3
|
+
import { Menu } from '@teambit/ui-foundation.ui.menu';
|
|
3
4
|
import { useWorkspaceMode } from '@teambit/workspace.ui.use-workspace-mode';
|
|
4
5
|
|
|
5
6
|
export const WorkspaceMenu = ({ menuSlot, widgetSlot, menuItemSlot, className }: MenuProps) => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// import { ComponentMeta } from '@teambit/component';
|
|
2
|
-
import {
|
|
2
|
+
import type { ComponentModelProps } from '@teambit/component';
|
|
3
|
+
import { ComponentID, ComponentModel } from '@teambit/component';
|
|
3
4
|
import { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
4
|
-
import { DeprecationInfo } from '@teambit/deprecation';
|
|
5
|
-
import { Descriptor } from '@teambit/envs';
|
|
5
|
+
import type { DeprecationInfo } from '@teambit/deprecation';
|
|
6
|
+
import type { Descriptor } from '@teambit/envs';
|
|
6
7
|
|
|
7
|
-
import { ComponentStatus } from '../../workspace-component/component-status';
|
|
8
|
+
import type { ComponentStatus } from '../../workspace-component/component-status';
|
|
8
9
|
|
|
9
10
|
export type WorkspaceModelComponent = {
|
|
10
11
|
id: ComponentID;
|
|
@@ -4,7 +4,7 @@ import { EmptyWorkspace } from '@teambit/workspace.ui.empty-workspace';
|
|
|
4
4
|
import { PreviewPlaceholder } from '@teambit/preview.ui.preview-placeholder';
|
|
5
5
|
import { Tooltip } from '@teambit/design.ui.tooltip';
|
|
6
6
|
import { ComponentID } from '@teambit/component-id';
|
|
7
|
-
import { ComponentModel } from '@teambit/component';
|
|
7
|
+
import type { ComponentModel } from '@teambit/component';
|
|
8
8
|
import { useCloudScopes } from '@teambit/cloud.hooks.use-cloud-scopes';
|
|
9
9
|
import { ScopeID } from '@teambit/scopes.scope-id';
|
|
10
10
|
import { compact } from 'lodash';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
|
|
3
4
|
import { WorkspaceContext } from './workspace-context';
|
|
4
|
-
import { Workspace } from './workspace-model';
|
|
5
|
+
import type { Workspace } from './workspace-model';
|
|
5
6
|
|
|
6
7
|
export type WorkspaceProviderProps = {
|
|
7
8
|
/**
|
|
@@ -21,7 +21,7 @@ import { useWorkspace } from './use-workspace';
|
|
|
21
21
|
import { WorkspaceOverview } from './workspace-overview';
|
|
22
22
|
import { WorkspaceProvider } from './workspace-provider';
|
|
23
23
|
import styles from './workspace.module.scss';
|
|
24
|
-
import { WorkspaceUI } from '../../workspace.ui.runtime';
|
|
24
|
+
import type { WorkspaceUI } from '../../workspace.ui.runtime';
|
|
25
25
|
|
|
26
26
|
export type WorkspaceProps = {
|
|
27
27
|
routeSlot: RouteSlot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentID } from '@teambit/component-id';
|
|
1
|
+
import type { ComponentID } from '@teambit/component-id';
|
|
2
2
|
import { SourceFile } from '@teambit/component.sources';
|
|
3
|
-
import { Repository, SourceFileModel } from '@teambit/objects';
|
|
3
|
+
import type { Repository, SourceFileModel } from '@teambit/objects';
|
|
4
4
|
|
|
5
5
|
type FILE_STATUS = 'new' | 'modified' | 'deleted' | 'unchanged';
|
|
6
6
|
type PathLinux = string; // ts fails when importing it from @teambit/legacy/dist/utils/path.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import mapSeries from 'p-map-series';
|
|
2
|
-
import { ComponentID
|
|
2
|
+
import type { ComponentID } from '@teambit/component-id';
|
|
3
|
+
import { ComponentIdList } from '@teambit/component-id';
|
|
3
4
|
import { BitError } from '@teambit/bit-error';
|
|
4
|
-
import { ModelComponent
|
|
5
|
-
import {
|
|
5
|
+
import type { ModelComponent } from '@teambit/objects';
|
|
6
|
+
import { VERSION_ZERO } from '@teambit/objects';
|
|
7
|
+
import type { Consumer } from '@teambit/legacy.consumer';
|
|
8
|
+
import { ComponentsPendingImport, ComponentOutOfSync } from '@teambit/legacy.consumer';
|
|
6
9
|
import { LATEST } from '@teambit/legacy.constants';
|
|
7
10
|
import { MissingBitMapComponent } from '@teambit/legacy.bit-map';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
11
|
+
import type { ConsumerComponent } from '@teambit/legacy.consumer-component';
|
|
12
|
+
import { ComponentNotFoundInPath } from '@teambit/legacy.consumer-component';
|
|
13
|
+
import type { Workspace } from '..';
|
|
10
14
|
|
|
11
15
|
export type ComponentStatusLegacy = {
|
|
12
16
|
modified: boolean;
|
|
@@ -2,26 +2,27 @@ import pMap from 'p-map';
|
|
|
2
2
|
import { getLatestVersionNumber } from '@teambit/legacy.utils';
|
|
3
3
|
import { pMapPool } from '@teambit/toolbox.promise.map-pool';
|
|
4
4
|
import { concurrentComponentsLimit } from '@teambit/harmony.modules.concurrency';
|
|
5
|
-
import { Component,
|
|
6
|
-
import {
|
|
5
|
+
import type { Component, InvalidComponent } from '@teambit/component';
|
|
6
|
+
import { ComponentFS, Config, State, TagMap } from '@teambit/component';
|
|
7
|
+
import type { ComponentID } from '@teambit/component-id';
|
|
8
|
+
import { ComponentIdList } from '@teambit/component-id';
|
|
7
9
|
import mapSeries from 'p-map-series';
|
|
8
10
|
import { compact, fromPairs, groupBy, pick, uniq, uniqBy } from 'lodash';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
ConsumerComponent,
|
|
12
|
-
ComponentLoadOptions as LegacyComponentLoadOptions,
|
|
13
|
-
Dependencies,
|
|
14
|
-
} from '@teambit/legacy.consumer-component';
|
|
11
|
+
import type { ComponentLoadOptions as LegacyComponentLoadOptions } from '@teambit/legacy.consumer-component';
|
|
12
|
+
import { ComponentNotFoundInPath, ConsumerComponent, Dependencies } from '@teambit/legacy.consumer-component';
|
|
15
13
|
import { MissingBitMapComponent } from '@teambit/legacy.bit-map';
|
|
16
14
|
import { IssuesClasses } from '@teambit/component-issues';
|
|
17
15
|
import { ComponentNotFound } from '@teambit/legacy.scope';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
16
|
+
import type { DependencyResolverMain } from '@teambit/dependency-resolver';
|
|
17
|
+
import { DependencyResolverAspect } from '@teambit/dependency-resolver';
|
|
18
|
+
import type { Logger } from '@teambit/logger';
|
|
19
|
+
import type { EnvsMain } from '@teambit/envs';
|
|
20
|
+
import { EnvsAspect } from '@teambit/envs';
|
|
21
21
|
import { ExtensionDataEntry, ExtensionDataList } from '@teambit/legacy.extension-data';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import type { InMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
|
23
|
+
import { getMaxSizeForComponents, createInMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
|
24
|
+
import type { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
25
|
+
import type { Workspace } from '../workspace';
|
|
25
26
|
import { WorkspaceComponent } from './workspace-component';
|
|
26
27
|
import { MergeConfigConflict } from '../exceptions/merge-config-conflict';
|
|
27
28
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { ComponentID, Snap, State } from '@teambit/component';
|
|
2
|
+
import { Component, TagMap } from '@teambit/component';
|
|
3
|
+
import type { IssuesList } from '@teambit/component-issues';
|
|
4
|
+
import type { Workspace } from '../workspace';
|
|
5
|
+
import type { ComponentStatus } from './component-status';
|
|
5
6
|
|
|
6
7
|
// TODO: refactor this to a composition rather than to use inheritance
|
|
7
8
|
export class WorkspaceComponent extends Component {
|
package/workspace.ui.drawer.tsx
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ComponentFiltersSlot, DrawerWidgetSlot } from '@teambit/component.ui.component-drawer';
|
|
3
|
+
import { ComponentsDrawer } from '@teambit/component.ui.component-drawer';
|
|
3
4
|
import { ComponentView, NamespaceTreeNode, ScopePayload, ScopeTreeNode } from '@teambit/ui-foundation.ui.side-bar';
|
|
4
5
|
import type { PayloadType } from '@teambit/ui-foundation.ui.side-bar';
|
|
5
6
|
import { useLanes as defaultUseLanesHook } from '@teambit/lanes.hooks.use-lanes';
|
|
6
7
|
import { useLaneComponents } from '@teambit/lanes.hooks.use-lane-components';
|
|
7
|
-
import { TreeNodeProps } from '@teambit/design.ui.tree';
|
|
8
|
-
import { ComponentModel } from '@teambit/component';
|
|
9
|
-
import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
|
|
10
|
-
import { SidebarWidgetSlot } from './workspace.ui.runtime';
|
|
8
|
+
import type { TreeNodeProps } from '@teambit/design.ui.tree';
|
|
9
|
+
import type { ComponentModel } from '@teambit/component';
|
|
10
|
+
import type { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
|
|
11
|
+
import type { SidebarWidgetSlot } from './workspace.ui.runtime';
|
|
11
12
|
import { WorkspaceContext } from './ui/workspace/workspace-context';
|
|
12
13
|
|
|
13
14
|
export type WorkspaceDrawerProps = {
|
package/workspace.ui.runtime.tsx
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentUI, ComponentModel } from '@teambit/component';
|
|
2
|
+
import { ComponentAspect } from '@teambit/component';
|
|
2
3
|
import { compact, flatten } from 'lodash';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import type { ComponentTreeUI, ComponentTreeNode } from '@teambit/component-tree';
|
|
5
|
+
import { ComponentTreeAspect } from '@teambit/component-tree';
|
|
6
|
+
import type { SlotRegistry } from '@teambit/harmony';
|
|
7
|
+
import { Slot } from '@teambit/harmony';
|
|
5
8
|
import type { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
6
|
-
import { MenuWidgetSlot, MenuWidget } from '@teambit/ui-foundation.ui.menu';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import type { MenuWidgetSlot, MenuWidget } from '@teambit/ui-foundation.ui.menu';
|
|
10
|
+
import type { SidebarUI, SidebarItem, SidebarItemSlot } from '@teambit/sidebar';
|
|
11
|
+
import { SidebarAspect } from '@teambit/sidebar';
|
|
12
|
+
import type { MenuItemSlot, MenuItem } from '@teambit/ui-foundation.ui.main-dropdown';
|
|
13
|
+
import type { UIRootUI as UIRoot, UiUI } from '@teambit/ui';
|
|
14
|
+
import { UIAspect, UIRuntime } from '@teambit/ui';
|
|
15
|
+
import type { GraphUI } from '@teambit/graph';
|
|
16
|
+
import { GraphAspect } from '@teambit/graph';
|
|
17
|
+
import type { ReactNode } from 'react';
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import type { RouteProps } from 'react-router-dom';
|
|
20
|
+
import type { CommandBarUI, CommandHandler } from '@teambit/command-bar';
|
|
21
|
+
import { CommandBarAspect } from '@teambit/command-bar';
|
|
14
22
|
import { MenuLinkItem } from '@teambit/design.ui.surfaces.menu.link-item';
|
|
15
23
|
import type { DrawerType } from '@teambit/ui-foundation.ui.tree.drawer';
|
|
16
|
-
import { ComponentFilters } from '@teambit/component.ui.component-filters.component-filter-context';
|
|
24
|
+
import type { ComponentFilters } from '@teambit/component.ui.component-filters.component-filter-context';
|
|
17
25
|
import { DeprecateFilter } from '@teambit/component.ui.component-filters.deprecate-filter';
|
|
18
26
|
import { EnvsFilter } from '@teambit/component.ui.component-filters.env-filter';
|
|
19
27
|
import { ShowMainFilter } from '@teambit/component.ui.component-filters.show-main-filter';
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
FilterWidget,
|
|
23
|
-
TreeToggleWidget,
|
|
24
|
-
ComponentFiltersSlot,
|
|
25
|
-
} from '@teambit/component.ui.component-drawer';
|
|
28
|
+
import type { DrawerWidgetSlot, ComponentFiltersSlot } from '@teambit/component.ui.component-drawer';
|
|
29
|
+
import { FilterWidget, TreeToggleWidget } from '@teambit/component.ui.component-drawer';
|
|
26
30
|
import { ComponentTreeWidget } from './component-tree.widget';
|
|
27
31
|
import { Workspace, WorkspaceMenu } from './ui';
|
|
28
32
|
import { WorkspaceAspect } from './workspace.aspect';
|