@teambit/workspace 0.0.819 → 0.0.820

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.
@@ -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 lanes = useLanesContext();
12
+ const { lanesModel } = useLanes();
13
13
 
14
14
  const isInCurrentLane = useMemo(() => {
15
- return workspaceComponent?.id && lanes?.isInViewedLane(workspaceComponent.id);
16
- }, [lanes?.viewedLane, workspaceComponent?.id]);
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 _react() {
31
- const data = _interopRequireWildcard(require("react"));
30
+ function _lanesHooks() {
31
+ const data = require("@teambit/lanes.hooks.use-lanes");
32
32
 
33
- _react = function () {
33
+ _lanesHooks = function () {
34
34
  return data;
35
35
  };
36
36
 
37
37
  return data;
38
38
  }
39
39
 
40
- function _lanesUi() {
41
- const data = require("@teambit/lanes.ui.lanes");
40
+ function _react() {
41
+ const data = _interopRequireWildcard(require("react"));
42
42
 
43
- _lanesUi = function () {
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 lanes = (0, _lanesUi().useLanesContext)();
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) && (lanes === null || lanes === void 0 ? void 0 : lanes.isInViewedLane(workspaceComponent.id));
74
- }, [lanes === null || lanes === void 0 ? void 0 : lanes.viewedLane, workspaceComponent === null || workspaceComponent === void 0 ? void 0 : workspaceComponent.id]);
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","lanes","useLanesContext","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 React, { useContext, useMemo } from 'react';\n\nimport { useLanesContext } from '@teambit/lanes.ui.lanes';\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 lanes = useLanesContext();\n\n const isInCurrentLane = useMemo(() => {\n return workspaceComponent?.id && lanes?.isInViewedLane(workspaceComponent.id);\n }, [lanes?.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;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;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,MAAMC,KAAK,GAAG,IAAAC,0BAAA,GAAd;MAEA,MAAMC,eAAe,GAAG,IAAAC,gBAAA,EAAQ,MAAM;QACpC,OAAO,CAAAN,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,YAAAA,kBAAkB,CAAEE,EAApB,MAA0BC,KAA1B,aAA0BA,KAA1B,uBAA0BA,KAAK,CAAEI,cAAP,CAAsBP,kBAAkB,CAACE,EAAzC,CAA1B,CAAP;MACD,CAFuB,EAErB,CAACC,KAAD,aAACA,KAAD,uBAACA,KAAK,CAAEK,UAAR,EAAoBR,kBAApB,aAAoBA,kBAApB,uBAAoBA,kBAAkB,CAAEE,EAAxC,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"}
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"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "0.0.819",
3
+ "version": "0.0.820",
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.819"
9
+ "version": "0.0.820"
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.66",
41
+ "@teambit/lane-id": "0.0.67",
42
42
  "@teambit/legacy-bit-id": "0.0.402",
43
- "@teambit/logger": "0.0.640",
44
- "@teambit/scope": "0.0.819",
45
- "@teambit/cli": "0.0.547",
46
- "@teambit/isolator": "0.0.819",
47
- "@teambit/component-tree": "0.0.607",
43
+ "@teambit/logger": "0.0.641",
44
+ "@teambit/scope": "0.0.820",
45
+ "@teambit/cli": "0.0.548",
46
+ "@teambit/isolator": "0.0.820",
47
+ "@teambit/component-tree": "0.0.608",
48
48
  "@teambit/component.ui.component-status-resolver": "0.0.493",
49
- "@teambit/lanes.ui.lanes": "0.0.116",
49
+ "@teambit/lanes.hooks.use-lanes": "0.0.1",
50
50
  "@teambit/harmony.modules.resolved-component": "0.0.484",
51
- "@teambit/dependency-resolver": "0.0.819",
52
- "@teambit/compiler": "0.0.819",
53
- "@teambit/component": "0.0.819",
54
- "@teambit/graphql": "0.0.819",
55
- "@teambit/aspect-loader": "0.0.819",
56
- "@teambit/bundler": "0.0.819",
57
- "@teambit/community": "0.0.95",
58
- "@teambit/envs": "0.0.819",
59
- "@teambit/pubsub": "0.0.819",
60
- "@teambit/ui": "0.0.819",
61
- "@teambit/variants": "0.0.644",
51
+ "@teambit/dependency-resolver": "0.0.820",
52
+ "@teambit/compiler": "0.0.820",
53
+ "@teambit/component": "0.0.820",
54
+ "@teambit/graphql": "0.0.820",
55
+ "@teambit/aspect-loader": "0.0.820",
56
+ "@teambit/bundler": "0.0.820",
57
+ "@teambit/community": "0.0.96",
58
+ "@teambit/envs": "0.0.820",
59
+ "@teambit/pubsub": "0.0.820",
60
+ "@teambit/ui": "0.0.820",
61
+ "@teambit/variants": "0.0.645",
62
62
  "@teambit/component-issues": "0.0.60",
63
- "@teambit/config": "0.0.560",
63
+ "@teambit/config": "0.0.561",
64
64
  "@teambit/harmony.modules.requireable-component": "0.0.484",
65
- "@teambit/importer": "0.0.248",
65
+ "@teambit/importer": "0.0.249",
66
66
  "@teambit/workspace.modules.match-pattern": "0.0.489",
67
- "@teambit/component.ui.component-drawer": "0.0.96",
67
+ "@teambit/component.ui.component-drawer": "0.0.97",
68
68
  "@teambit/design.ui.tree": "0.0.6",
69
- "@teambit/ui-foundation.ui.side-bar": "0.0.613",
70
- "@teambit/command-bar": "0.0.819",
69
+ "@teambit/ui-foundation.ui.side-bar": "0.0.614",
70
+ "@teambit/command-bar": "0.0.820",
71
71
  "@teambit/component.ui.component-filters": "0.0.10",
72
- "@teambit/graph": "0.0.819",
73
- "@teambit/sidebar": "0.0.819",
72
+ "@teambit/graph": "0.0.820",
73
+ "@teambit/sidebar": "0.0.820",
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.110",
81
- "@teambit/deprecation": "0.0.819",
80
+ "@teambit/component-descriptor": "0.0.111",
81
+ "@teambit/deprecation": "0.0.820",
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.492",
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.330",
108
+ "@teambit/legacy": "1.0.331",
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.819/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.819/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.820/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.820/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];