@teambit/workspace 0.0.1144 → 0.0.1145

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "0.0.1144",
3
+ "version": "0.0.1145",
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": "0.0.1144"
9
+ "version": "0.0.1145"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -22,6 +22,7 @@
22
22
  "detect-newline": "3.1.0",
23
23
  "stringify-package": "1.0.1",
24
24
  "@react-hook/latest": "1.0.3",
25
+ "classnames": "2.2.6",
25
26
  "pluralize": "8.0.0",
26
27
  "reset-css": "5.0.1",
27
28
  "core-js": "^3.0.0",
@@ -35,53 +36,53 @@
35
36
  "@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
36
37
  "@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
37
38
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
38
- "@teambit/component": "0.0.1144",
39
- "@teambit/dependency-resolver": "0.0.1144",
40
- "@teambit/envs": "0.0.1144",
39
+ "@teambit/component": "0.0.1145",
40
+ "@teambit/dependency-resolver": "0.0.1145",
41
+ "@teambit/envs": "0.0.1145",
41
42
  "@teambit/bit-error": "0.0.402",
42
- "@teambit/lane-id": "0.0.280",
43
- "@teambit/logger": "0.0.858",
44
- "@teambit/scope": "0.0.1144",
45
- "@teambit/graph": "0.0.1144",
46
- "@teambit/cli": "0.0.765",
47
- "@teambit/isolator": "0.0.1144",
48
- "@teambit/component-tree": "0.0.932",
43
+ "@teambit/lane-id": "0.0.281",
44
+ "@teambit/logger": "0.0.859",
45
+ "@teambit/scope": "0.0.1145",
46
+ "@teambit/graph": "0.0.1145",
47
+ "@teambit/cli": "0.0.766",
48
+ "@teambit/isolator": "0.0.1145",
49
+ "@teambit/component-tree": "0.0.933",
49
50
  "@teambit/component.ui.component-status-resolver": "0.0.505",
50
51
  "@teambit/harmony.modules.resolved-component": "0.0.491",
51
- "@teambit/compiler": "0.0.1144",
52
- "@teambit/aspect-loader": "0.0.1144",
53
- "@teambit/config": "0.0.780",
54
- "@teambit/global-config": "0.0.767",
52
+ "@teambit/compiler": "0.0.1145",
53
+ "@teambit/aspect-loader": "0.0.1145",
54
+ "@teambit/config": "0.0.781",
55
+ "@teambit/global-config": "0.0.768",
55
56
  "@teambit/harmony.modules.requireable-component": "0.0.491",
56
57
  "@teambit/toolbox.modules.module-resolver": "0.0.1",
57
- "@teambit/workspace.modules.node-modules-linker": "0.0.107",
58
- "@teambit/graphql": "0.0.1144",
59
- "@teambit/bundler": "0.0.1144",
60
- "@teambit/pubsub": "0.0.1144",
61
- "@teambit/ui": "0.0.1144",
62
- "@teambit/variants": "0.0.872",
58
+ "@teambit/workspace.modules.node-modules-linker": "0.0.108",
59
+ "@teambit/graphql": "0.0.1145",
60
+ "@teambit/bundler": "0.0.1145",
61
+ "@teambit/pubsub": "0.0.1145",
62
+ "@teambit/ui": "0.0.1145",
63
+ "@teambit/variants": "0.0.873",
63
64
  "@teambit/component-issues": "0.0.95",
64
65
  "@teambit/component-version": "1.0.0",
65
66
  "@teambit/dependencies.modules.packages-excluder": "1.0.2",
66
67
  "@teambit/workspace.modules.match-pattern": "0.0.498",
67
- "@teambit/component.ui.component-drawer": "0.0.323",
68
- "@teambit/lanes.hooks.use-lane-components": "0.0.226",
69
- "@teambit/lanes.hooks.use-lanes": "0.0.227",
70
- "@teambit/lanes.ui.models.lanes-model": "0.0.180",
71
- "@teambit/ui-foundation.ui.side-bar": "0.0.840",
72
- "@teambit/command-bar": "0.0.1144",
73
- "@teambit/component.ui.component-filters.component-filter-context": "0.0.187",
74
- "@teambit/component.ui.component-filters.deprecate-filter": "0.0.187",
75
- "@teambit/component.ui.component-filters.env-filter": "0.0.193",
76
- "@teambit/component.ui.component-filters.show-main-filter": "0.0.180",
77
- "@teambit/sidebar": "0.0.1144",
68
+ "@teambit/component.ui.component-drawer": "0.0.324",
69
+ "@teambit/lanes.hooks.use-lane-components": "0.0.227",
70
+ "@teambit/lanes.hooks.use-lanes": "0.0.228",
71
+ "@teambit/lanes.ui.models.lanes-model": "0.0.181",
72
+ "@teambit/ui-foundation.ui.side-bar": "0.0.841",
73
+ "@teambit/command-bar": "0.0.1145",
74
+ "@teambit/component.ui.component-filters.component-filter-context": "0.0.188",
75
+ "@teambit/component.ui.component-filters.deprecate-filter": "0.0.188",
76
+ "@teambit/component.ui.component-filters.env-filter": "0.0.194",
77
+ "@teambit/component.ui.component-filters.show-main-filter": "0.0.181",
78
+ "@teambit/sidebar": "0.0.1145",
78
79
  "@teambit/ui-foundation.ui.main-dropdown": "0.0.497",
79
80
  "@teambit/ui-foundation.ui.menu": "0.0.497",
80
81
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
81
82
  "@teambit/ui-foundation.ui.tree.drawer": "0.0.512",
82
83
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.500",
83
- "@teambit/component-descriptor": "0.0.332",
84
- "@teambit/deprecation": "0.0.1144",
84
+ "@teambit/component-descriptor": "0.0.333",
85
+ "@teambit/deprecation": "0.0.1145",
85
86
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.499",
86
87
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.207",
87
88
  "@teambit/ui-foundation.ui.corner": "0.0.510",
@@ -97,6 +98,7 @@
97
98
  "@types/fs-extra": "9.0.7",
98
99
  "@types/find-root": "1.1.2",
99
100
  "@types/memoizee": "0.4.5",
101
+ "@types/classnames": "2.2.11",
100
102
  "@types/pluralize": "0.0.29",
101
103
  "@types/mocha": "9.1.0",
102
104
  "@types/node": "12.20.4",
@@ -108,7 +110,7 @@
108
110
  "peerDependencies": {
109
111
  "@apollo/client": "^3.6.0",
110
112
  "react-router-dom": "^6.0.0",
111
- "@teambit/legacy": "1.0.549",
113
+ "@teambit/legacy": "1.0.551",
112
114
  "react": "^16.8.0 || ^17.0.0",
113
115
  "react-dom": "^16.8.0 || ^17.0.0"
114
116
  },
@@ -41,4 +41,8 @@
41
41
  position: relative;
42
42
 
43
43
  height: 100%;
44
+
45
+ &.closed {
46
+ overflow: hidden;
47
+ }
44
48
  }
@@ -11,6 +11,7 @@ import { Collapser } from '@teambit/ui-foundation.ui.buttons.collapser';
11
11
  import { SplitPane, Pane, Layout } from '@teambit/base-ui.surfaces.split-pane.split-pane';
12
12
  import { HoverSplitter } from '@teambit/base-ui.surfaces.split-pane.hover-splitter';
13
13
  import { TopBar } from '@teambit/ui-foundation.ui.top-bar';
14
+ import classNames from 'classnames';
14
15
 
15
16
  import { useWorkspace } from './use-workspace';
16
17
  import { WorkspaceOverview } from './workspace-overview';
@@ -54,7 +55,7 @@ export function Workspace({ routeSlot, menuSlot, sidebar, workspaceUI, onSidebar
54
55
  />
55
56
 
56
57
  <SplitPane className={styles.main} size={264} layout={sidebarOpenness}>
57
- <Pane className={styles.sidebar}>{sidebar}</Pane>
58
+ <Pane className={classNames(styles.sidebar, !isSidebarOpen && styles.closed)}>{sidebar}</Pane>
58
59
  <HoverSplitter className={styles.splitter}>
59
60
  <Collapser
60
61
  isOpen={isSidebarOpen}