@teambit/workspace 0.0.819 → 0.0.822
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/component-tree.widget.tsx +4 -4
- package/dist/component-tree.widget.js +11 -9
- package/dist/component-tree.widget.js.map +1 -1
- package/package-tar/teambit-workspace-0.0.822.tgz +0 -0
- package/package.json +31 -31
- package/{preview-1660707067764.js → preview-1660966145435.js} +2 -2
- package/package-tar/teambit-workspace-0.0.819.tgz +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ComponentTreeNode, ComponentTreeNodeProps } from '@teambit/component-tree';
|
|
2
2
|
import { ComponentStatusResolver } from '@teambit/component.ui.component-status-resolver';
|
|
3
|
+
import { useLanes } from '@teambit/lanes.hooks.use-lanes';
|
|
3
4
|
import React, { useContext, useMemo } from 'react';
|
|
4
5
|
|
|
5
|
-
import { useLanesContext } from '@teambit/lanes.ui.lanes';
|
|
6
6
|
import { WorkspaceContext } from './ui/workspace/workspace-context';
|
|
7
7
|
|
|
8
8
|
export class ComponentTreeWidget implements ComponentTreeNode {
|
|
9
9
|
widget = ({ component }: ComponentTreeNodeProps) => {
|
|
10
10
|
const workspace = useContext(WorkspaceContext);
|
|
11
11
|
const workspaceComponent = workspace.getComponent(component.id);
|
|
12
|
-
const
|
|
12
|
+
const { lanesModel } = useLanes();
|
|
13
13
|
|
|
14
14
|
const isInCurrentLane = useMemo(() => {
|
|
15
|
-
return workspaceComponent?.id &&
|
|
16
|
-
}, [
|
|
15
|
+
return workspaceComponent?.id && lanesModel?.isInViewedLane(workspaceComponent.id);
|
|
16
|
+
}, [lanesModel?.viewedLane, workspaceComponent?.id]);
|
|
17
17
|
|
|
18
18
|
if (!workspaceComponent) return null;
|
|
19
19
|
|
|
@@ -27,20 +27,20 @@ function _componentUi() {
|
|
|
27
27
|
return data;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function
|
|
31
|
-
const data =
|
|
30
|
+
function _lanesHooks() {
|
|
31
|
+
const data = require("@teambit/lanes.hooks.use-lanes");
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
_lanesHooks = function () {
|
|
34
34
|
return data;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
return data;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function
|
|
41
|
-
const data = require("
|
|
40
|
+
function _react() {
|
|
41
|
+
const data = _interopRequireWildcard(require("react"));
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
_react = function () {
|
|
44
44
|
return data;
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -68,10 +68,12 @@ class ComponentTreeWidget {
|
|
|
68
68
|
}) => {
|
|
69
69
|
const workspace = (0, _react().useContext)(_workspaceContext().WorkspaceContext);
|
|
70
70
|
const workspaceComponent = workspace.getComponent(component.id);
|
|
71
|
-
const
|
|
71
|
+
const {
|
|
72
|
+
lanesModel
|
|
73
|
+
} = (0, _lanesHooks().useLanes)();
|
|
72
74
|
const isInCurrentLane = (0, _react().useMemo)(() => {
|
|
73
|
-
return (workspaceComponent === null || workspaceComponent === void 0 ? void 0 : workspaceComponent.id) && (
|
|
74
|
-
}, [
|
|
75
|
+
return (workspaceComponent === null || workspaceComponent === void 0 ? void 0 : workspaceComponent.id) && (lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.isInViewedLane(workspaceComponent.id));
|
|
76
|
+
}, [lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane, workspaceComponent === null || workspaceComponent === void 0 ? void 0 : workspaceComponent.id]);
|
|
75
77
|
if (!workspaceComponent) return null;
|
|
76
78
|
return /*#__PURE__*/_react().default.createElement(_componentUi().ComponentStatusResolver, {
|
|
77
79
|
status: workspaceComponent.status,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentTreeWidget","component","workspace","useContext","WorkspaceContext","workspaceComponent","getComponent","id","
|
|
1
|
+
{"version":3,"names":["ComponentTreeWidget","component","workspace","useContext","WorkspaceContext","workspaceComponent","getComponent","id","lanesModel","useLanes","isInCurrentLane","useMemo","isInViewedLane","viewedLane","status","issuesCount"],"sources":["component-tree.widget.tsx"],"sourcesContent":["import { ComponentTreeNode, ComponentTreeNodeProps } from '@teambit/component-tree';\nimport { ComponentStatusResolver } from '@teambit/component.ui.component-status-resolver';\nimport { useLanes } from '@teambit/lanes.hooks.use-lanes';\nimport React, { useContext, useMemo } from 'react';\n\nimport { WorkspaceContext } from './ui/workspace/workspace-context';\n\nexport class ComponentTreeWidget implements ComponentTreeNode {\n widget = ({ component }: ComponentTreeNodeProps) => {\n const workspace = useContext(WorkspaceContext);\n const workspaceComponent = workspace.getComponent(component.id);\n const { lanesModel } = useLanes();\n\n const isInCurrentLane = useMemo(() => {\n return workspaceComponent?.id && lanesModel?.isInViewedLane(workspaceComponent.id);\n }, [lanesModel?.viewedLane, workspaceComponent?.id]);\n\n if (!workspaceComponent) return null;\n\n return (\n <ComponentStatusResolver\n status={workspaceComponent.status}\n issuesCount={workspaceComponent.issuesCount}\n isInCurrentLane={isInCurrentLane}\n />\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;;;;;AAEO,MAAMA,mBAAN,CAAuD;EAAA;IAAA,gDACnD,CAAC;MAAEC;IAAF,CAAD,KAA2C;MAClD,MAAMC,SAAS,GAAG,IAAAC,mBAAA,EAAWC,oCAAX,CAAlB;MACA,MAAMC,kBAAkB,GAAGH,SAAS,CAACI,YAAV,CAAuBL,SAAS,CAACM,EAAjC,CAA3B;MACA,MAAM;QAAEC;MAAF,IAAiB,IAAAC,sBAAA,GAAvB;MAEA,MAAMC,eAAe,GAAG,IAAAC,gBAAA,EAAQ,MAAM;QACpC,OAAO,CAAAN,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,YAAAA,kBAAkB,CAAEE,EAApB,MAA0BC,UAA1B,aAA0BA,UAA1B,uBAA0BA,UAAU,CAAEI,cAAZ,CAA2BP,kBAAkB,CAACE,EAA9C,CAA1B,CAAP;MACD,CAFuB,EAErB,CAACC,UAAD,aAACA,UAAD,uBAACA,UAAU,CAAEK,UAAb,EAAyBR,kBAAzB,aAAyBA,kBAAzB,uBAAyBA,kBAAkB,CAAEE,EAA7C,CAFqB,CAAxB;MAIA,IAAI,CAACF,kBAAL,EAAyB,OAAO,IAAP;MAEzB,oBACE,+BAAC,sCAAD;QACE,MAAM,EAAEA,kBAAkB,CAACS,MAD7B;QAEE,WAAW,EAAET,kBAAkB,CAACU,WAFlC;QAGE,eAAe,EAAEL;MAHnB,EADF;IAOD,CAnB2D;EAAA;;AAAA"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.822",
|
|
4
4
|
"homepage": "https://bit.dev/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.
|
|
9
|
+
"version": "0.0.822"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -38,54 +38,54 @@
|
|
|
38
38
|
"@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
|
|
39
39
|
"@teambit/bit-error": "0.0.394",
|
|
40
40
|
"@teambit/component-id": "0.0.405",
|
|
41
|
-
"@teambit/lane-id": "0.0.
|
|
41
|
+
"@teambit/lane-id": "0.0.69",
|
|
42
42
|
"@teambit/legacy-bit-id": "0.0.402",
|
|
43
|
-
"@teambit/logger": "0.0.
|
|
44
|
-
"@teambit/scope": "0.0.
|
|
45
|
-
"@teambit/cli": "0.0.
|
|
46
|
-
"@teambit/isolator": "0.0.
|
|
47
|
-
"@teambit/component-tree": "0.0.
|
|
43
|
+
"@teambit/logger": "0.0.643",
|
|
44
|
+
"@teambit/scope": "0.0.822",
|
|
45
|
+
"@teambit/cli": "0.0.550",
|
|
46
|
+
"@teambit/isolator": "0.0.822",
|
|
47
|
+
"@teambit/component-tree": "0.0.610",
|
|
48
48
|
"@teambit/component.ui.component-status-resolver": "0.0.493",
|
|
49
|
-
"@teambit/lanes.
|
|
49
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.3",
|
|
50
50
|
"@teambit/harmony.modules.resolved-component": "0.0.484",
|
|
51
|
-
"@teambit/dependency-resolver": "0.0.
|
|
52
|
-
"@teambit/compiler": "0.0.
|
|
53
|
-
"@teambit/component": "0.0.
|
|
54
|
-
"@teambit/graphql": "0.0.
|
|
55
|
-
"@teambit/aspect-loader": "0.0.
|
|
56
|
-
"@teambit/bundler": "0.0.
|
|
57
|
-
"@teambit/community": "0.0.
|
|
58
|
-
"@teambit/envs": "0.0.
|
|
59
|
-
"@teambit/pubsub": "0.0.
|
|
60
|
-
"@teambit/ui": "0.0.
|
|
61
|
-
"@teambit/variants": "0.0.
|
|
51
|
+
"@teambit/dependency-resolver": "0.0.822",
|
|
52
|
+
"@teambit/compiler": "0.0.822",
|
|
53
|
+
"@teambit/component": "0.0.822",
|
|
54
|
+
"@teambit/graphql": "0.0.822",
|
|
55
|
+
"@teambit/aspect-loader": "0.0.822",
|
|
56
|
+
"@teambit/bundler": "0.0.822",
|
|
57
|
+
"@teambit/community": "0.0.98",
|
|
58
|
+
"@teambit/envs": "0.0.822",
|
|
59
|
+
"@teambit/pubsub": "0.0.822",
|
|
60
|
+
"@teambit/ui": "0.0.822",
|
|
61
|
+
"@teambit/variants": "0.0.647",
|
|
62
62
|
"@teambit/component-issues": "0.0.60",
|
|
63
|
-
"@teambit/config": "0.0.
|
|
63
|
+
"@teambit/config": "0.0.563",
|
|
64
64
|
"@teambit/harmony.modules.requireable-component": "0.0.484",
|
|
65
|
-
"@teambit/importer": "0.0.
|
|
65
|
+
"@teambit/importer": "0.0.251",
|
|
66
66
|
"@teambit/workspace.modules.match-pattern": "0.0.489",
|
|
67
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
67
|
+
"@teambit/component.ui.component-drawer": "0.0.99",
|
|
68
68
|
"@teambit/design.ui.tree": "0.0.6",
|
|
69
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
70
|
-
"@teambit/command-bar": "0.0.
|
|
69
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.616",
|
|
70
|
+
"@teambit/command-bar": "0.0.822",
|
|
71
71
|
"@teambit/component.ui.component-filters": "0.0.10",
|
|
72
|
-
"@teambit/graph": "0.0.
|
|
73
|
-
"@teambit/sidebar": "0.0.
|
|
72
|
+
"@teambit/graph": "0.0.822",
|
|
73
|
+
"@teambit/sidebar": "0.0.822",
|
|
74
74
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.487",
|
|
75
75
|
"@teambit/ui-foundation.ui.menu": "0.0.487",
|
|
76
76
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.490",
|
|
77
77
|
"@teambit/ui-foundation.ui.tree.drawer": "0.0.499",
|
|
78
78
|
"@teambit/toolbox.time.time-format": "0.0.483",
|
|
79
79
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.488",
|
|
80
|
-
"@teambit/component-descriptor": "0.0.
|
|
81
|
-
"@teambit/deprecation": "0.0.
|
|
80
|
+
"@teambit/component-descriptor": "0.0.113",
|
|
81
|
+
"@teambit/deprecation": "0.0.822",
|
|
82
82
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.488",
|
|
83
83
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.195",
|
|
84
84
|
"@teambit/ui-foundation.ui.corner": "0.0.498",
|
|
85
85
|
"@teambit/ui-foundation.ui.notifications.notification-context": "0.0.487",
|
|
86
86
|
"@teambit/ui-foundation.ui.top-bar": "0.0.493",
|
|
87
87
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.486",
|
|
88
|
-
"@teambit/workspace.ui.empty-workspace": "0.0.
|
|
88
|
+
"@teambit/workspace.ui.empty-workspace": "0.0.493",
|
|
89
89
|
"@teambit/workspace.ui.workspace-component-card": "0.0.498"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react-router-dom": "^6.0.0",
|
|
107
107
|
"@apollo/client": "^3.0.0",
|
|
108
|
-
"@teambit/legacy": "1.0.
|
|
108
|
+
"@teambit/legacy": "1.0.333",
|
|
109
109
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
110
110
|
"react": "^16.8.0 || ^17.0.0"
|
|
111
111
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.822/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.822/dist/workspace.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|