@teambit/workspace 1.0.465 → 1.0.467

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": "1.0.465",
3
+ "version": "1.0.467",
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.465"
9
+ "version": "1.0.467"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -51,32 +51,32 @@
51
51
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
52
52
  "@teambit/scopes.scope-id": "0.0.7",
53
53
  "@teambit/workspace.ui.empty-workspace": "0.0.508",
54
- "@teambit/component": "1.0.465",
55
- "@teambit/dependency-resolver": "1.0.465",
56
- "@teambit/envs": "1.0.465",
54
+ "@teambit/component": "1.0.467",
55
+ "@teambit/dependency-resolver": "1.0.467",
56
+ "@teambit/envs": "1.0.467",
57
57
  "@teambit/legacy.bit-map": "0.0.49",
58
58
  "@teambit/toolbox.fs.last-modified": "0.0.1",
59
59
  "@teambit/toolbox.path.path": "0.0.4",
60
- "@teambit/logger": "0.0.1135",
61
- "@teambit/scope": "1.0.465",
62
- "@teambit/graph": "1.0.465",
63
- "@teambit/cli": "0.0.1042",
64
- "@teambit/isolator": "1.0.465",
65
- "@teambit/component-tree": "1.0.465",
60
+ "@teambit/logger": "0.0.1137",
61
+ "@teambit/scope": "1.0.467",
62
+ "@teambit/graph": "1.0.467",
63
+ "@teambit/cli": "0.0.1044",
64
+ "@teambit/isolator": "1.0.467",
65
+ "@teambit/component-tree": "1.0.467",
66
66
  "@teambit/harmony.modules.resolved-component": "0.0.498",
67
67
  "@teambit/legacy.utils": "0.0.6",
68
- "@teambit/watcher": "1.0.465",
69
- "@teambit/aspect-loader": "1.0.465",
70
- "@teambit/config": "0.0.1216",
71
- "@teambit/global-config": "0.0.1045",
68
+ "@teambit/watcher": "1.0.467",
69
+ "@teambit/aspect-loader": "1.0.467",
70
+ "@teambit/config": "0.0.1218",
71
+ "@teambit/global-config": "0.0.1047",
72
72
  "@teambit/harmony.modules.requireable-component": "0.0.498",
73
73
  "@teambit/toolbox.modules.module-resolver": "0.0.7",
74
74
  "@teambit/workspace.modules.node-modules-linker": "0.0.220",
75
- "@teambit/graphql": "1.0.465",
76
- "@teambit/bundler": "1.0.465",
77
- "@teambit/pubsub": "1.0.465",
78
- "@teambit/ui": "1.0.465",
79
- "@teambit/variants": "0.0.1309",
75
+ "@teambit/graphql": "1.0.467",
76
+ "@teambit/bundler": "1.0.467",
77
+ "@teambit/pubsub": "1.0.467",
78
+ "@teambit/ui": "1.0.467",
79
+ "@teambit/variants": "0.0.1311",
80
80
  "@teambit/component-issues": "0.0.151",
81
81
  "@teambit/component.sources": "0.0.44",
82
82
  "@teambit/harmony.modules.in-memory-cache": "0.0.2",
@@ -88,17 +88,17 @@
88
88
  "@teambit/lanes.hooks.use-lane-components": "0.0.269",
89
89
  "@teambit/lanes.hooks.use-lanes": "0.0.274",
90
90
  "@teambit/ui-foundation.ui.side-bar": "0.0.888",
91
- "@teambit/command-bar": "1.0.465",
91
+ "@teambit/command-bar": "1.0.467",
92
92
  "@teambit/component.ui.component-filters.component-filter-context": "0.0.230",
93
93
  "@teambit/component.ui.component-filters.deprecate-filter": "0.0.228",
94
94
  "@teambit/component.ui.component-filters.env-filter": "0.0.241",
95
95
  "@teambit/component.ui.component-filters.show-main-filter": "0.0.221",
96
- "@teambit/sidebar": "1.0.465",
96
+ "@teambit/sidebar": "1.0.467",
97
97
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.512",
98
98
  "@teambit/harmony.modules.concurrency": "0.0.1",
99
99
  "@teambit/toolbox.promise.map-pool": "0.0.1",
100
100
  "@teambit/component-descriptor": "0.0.426",
101
- "@teambit/deprecation": "1.0.465",
101
+ "@teambit/deprecation": "1.0.467",
102
102
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.224",
103
103
  "@teambit/cloud.hooks.use-cloud-scopes": "0.0.3",
104
104
  "@teambit/design.ui.tooltip": "0.0.371",
@@ -1,6 +1,6 @@
1
1
  import 'reset-css';
2
2
  import pluralize from 'pluralize';
3
- import React, { useReducer, useMemo } from 'react';
3
+ import React, { useReducer, useMemo, useEffect } from 'react';
4
4
  import { Route } from 'react-router-dom';
5
5
  import type { ComponentModel } from '@teambit/component';
6
6
  import type { ComponentID } from '@teambit/component-id';
@@ -42,6 +42,13 @@ export function Workspace({ routeSlot, menuSlot, sidebar, workspaceUI, onSidebar
42
42
  const themeName = currentTheme?.themeName || 'light';
43
43
  onSidebarTogglerChange(handleSidebarToggle);
44
44
 
45
+ useEffect(() => {
46
+ if (!window) return;
47
+ if (window.innerWidth <= 1024) {
48
+ handleSidebarToggle();
49
+ }
50
+ }, []);
51
+
45
52
  if (!workspace) {
46
53
  return <div className={styles.emptyContainer}></div>;
47
54
  }