@teambit/ui-foundation.ui.side-bar 0.0.867 → 0.0.869

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.
File without changes
@@ -3,7 +3,8 @@ import { Link, useLocation } from '@teambit/base-react.navigation.link';
3
3
  import { EnvIcon } from '@teambit/envs.ui.env-icon';
4
4
  import { DeprecationIcon } from '@teambit/component.ui.deprecation-icon';
5
5
  import classNames from 'classnames';
6
- import { ComponentID, ComponentModel } from '@teambit/component';
6
+ import { ComponentID } from '@teambit/component-id';
7
+ import { ComponentModel } from '@teambit/component';
7
8
  import { ComponentUrl } from '@teambit/component.modules.component-url';
8
9
  import React, { useCallback, useContext } from 'react';
9
10
  import { Tooltip } from '@teambit/design.ui.tooltip';
@@ -11,19 +12,20 @@ import { TreeContext } from '@teambit/base-ui.graph.tree.tree-context';
11
12
  import { indentClass } from '@teambit/base-ui.graph.tree.indent';
12
13
  import { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
13
14
  import { useLanes } from '@teambit/lanes.hooks.use-lanes';
14
- import { useScope } from '@teambit/scope.ui.hooks.scope-context';
15
15
  import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
16
16
  import { PayloadType } from '../payload-type';
17
17
  import { getName } from '../utils/get-name';
18
+
18
19
  import styles from './component-view.module.scss';
19
20
 
20
21
  export type ComponentViewProps<Payload = any> = {
21
22
  treeNodeSlot?: ComponentTreeSlot;
22
23
  useLanes?: () => { lanesModel?: LanesModel };
24
+ scopeName?: string;
23
25
  } & TreeNodeProps<Payload>;
24
26
 
25
27
  export function ComponentView(props: ComponentViewProps<PayloadType>) {
26
- const { node } = props;
28
+ const { node, scopeName } = props;
27
29
  const component = node.payload;
28
30
 
29
31
  const { onSelect } = useContext(TreeContext);
@@ -37,7 +39,7 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
37
39
  );
38
40
 
39
41
  const location = useLocation();
40
- const scope = useScope();
42
+ const scope = { name: scopeName };
41
43
 
42
44
  if (!(component instanceof ComponentModel)) return null;
43
45
 
@@ -61,12 +63,12 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
61
63
  </Link>
62
64
  );
63
65
 
64
- const href = lanesModel?.getLaneComponentUrlByVersion(component.id, lanesModel.viewedLane?.id);
66
+ const href = lanesModel?.getLaneComponentUrlByVersion(component.id as any, lanesModel.viewedLane?.id);
65
67
 
66
68
  const viewingMainCompOnLane = React.useMemo(() => {
67
69
  return (
68
70
  !lanesModel?.viewedLane?.id.isDefault() &&
69
- lanesModel?.isComponentOnMainButNotOnLane(component.id, undefined, lanesModel?.viewedLane?.id)
71
+ lanesModel?.isComponentOnMainButNotOnLane(component.id as any, undefined, lanesModel?.viewedLane?.id)
70
72
  );
71
73
  }, [lanesModel?.viewedLane?.id.toString(), component.id.toString()]);
72
74
 
@@ -9,5 +9,5 @@ declare type ComponentTreeProps = {
9
9
  isCollapsed?: boolean;
10
10
  assumeScopeInUrl?: boolean;
11
11
  } & React.HTMLAttributes<HTMLDivElement>;
12
- export declare function ComponentTree({ components, isCollapsed, className, transformTree, TreeNode, }: ComponentTreeProps): JSX.Element;
12
+ export declare function ComponentTree({ components, isCollapsed, className, transformTree, TreeNode, }: ComponentTreeProps): React.JSX.Element;
13
13
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentTreeSlot } from '@teambit/component-tree';
2
+ import React from 'react';
3
3
  import { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
4
4
  import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
5
5
  import { PayloadType } from '../payload-type';
@@ -8,5 +8,6 @@ export declare type ComponentViewProps<Payload = any> = {
8
8
  useLanes?: () => {
9
9
  lanesModel?: LanesModel;
10
10
  };
11
+ scopeName?: string;
11
12
  } & TreeNodeProps<Payload>;
12
- export declare function ComponentView(props: ComponentViewProps<PayloadType>): JSX.Element;
13
+ export declare function ComponentView(props: ComponentViewProps<PayloadType>): React.JSX.Element;
@@ -31,6 +31,7 @@ const base_react_navigation_link_1 = require("@teambit/base-react.navigation.lin
31
31
  const envs_ui_env_icon_1 = require("@teambit/envs.ui.env-icon");
32
32
  const component_ui_deprecation_icon_1 = require("@teambit/component.ui.deprecation-icon");
33
33
  const classnames_1 = __importDefault(require("classnames"));
34
+ const component_id_1 = require("@teambit/component-id");
34
35
  const component_1 = require("@teambit/component");
35
36
  const component_modules_component_url_1 = require("@teambit/component.modules.component-url");
36
37
  const react_1 = __importStar(require("react"));
@@ -38,13 +39,12 @@ const design_ui_tooltip_1 = require("@teambit/design.ui.tooltip");
38
39
  const base_ui_graph_tree_tree_context_1 = require("@teambit/base-ui.graph.tree.tree-context");
39
40
  const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
40
41
  const lanes_hooks_use_lanes_1 = require("@teambit/lanes.hooks.use-lanes");
41
- const scope_ui_hooks_scope_context_1 = require("@teambit/scope.ui.hooks.scope-context");
42
42
  const lanes_ui_models_lanes_model_1 = require("@teambit/lanes.ui.models.lanes-model");
43
43
  const get_name_1 = require("../utils/get-name");
44
44
  const component_view_module_scss_1 = __importDefault(require("./component-view.module.scss"));
45
45
  function ComponentView(props) {
46
46
  var _a, _b, _c, _d;
47
- const { node } = props;
47
+ const { node, scopeName } = props;
48
48
  const component = node.payload;
49
49
  const { onSelect } = (0, react_1.useContext)(base_ui_graph_tree_tree_context_1.TreeContext);
50
50
  const { lanesModel } = (props.useLanes || lanes_hooks_use_lanes_1.useLanes)();
@@ -52,10 +52,10 @@ function ComponentView(props) {
52
52
  onSelect && onSelect(node.id, event);
53
53
  }, [onSelect, node.id]);
54
54
  const location = (0, base_react_navigation_link_1.useLocation)();
55
- const scope = (0, scope_ui_hooks_scope_context_1.useScope)();
55
+ const scope = { name: scopeName };
56
56
  if (!(component instanceof component_1.ComponentModel))
57
57
  return null;
58
- const envId = component_1.ComponentID.fromString((_a = component.environment) === null || _a === void 0 ? void 0 : _a.id);
58
+ const envId = component_id_1.ComponentID.fromString((_a = component.environment) === null || _a === void 0 ? void 0 : _a.id);
59
59
  const envTooltip = (react_1.default.createElement(base_react_navigation_link_1.Link, { className: component_view_module_scss_1.default.envLink, href: component_modules_component_url_1.ComponentUrl.toUrl(envId, {
60
60
  includeVersion: true,
61
61
  useLocationOrigin: !window.location.host.startsWith('localhost'),
@@ -128,7 +128,7 @@ function ComponentView(props) {
128
128
  const laneCompUrlWithSubRoutes = (_c = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute)[1]) !== null && _c !== void 0 ? _c : '';
129
129
  const _laneCompUrl = (_d = laneCompUrlWithSubRoutes.split('/~')[0]) !== null && _d !== void 0 ? _d : '';
130
130
  const laneCompUrl = _laneCompUrl.startsWith('/') ? _laneCompUrl.substring(1) : _laneCompUrl;
131
- const laneCompIdFromUrl = component_1.ComponentID.tryFromString(laneCompUrl);
131
+ const laneCompIdFromUrl = component_id_1.ComponentID.tryFromString(laneCompUrl);
132
132
  // viewing lane component from the same scope as the lane on a workspace
133
133
  const laneAndCompFromSameScopeOnWs = !scope.name && ((_e = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _e === void 0 ? void 0 : _e.id) && component.id.scope === ((_f = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _f === void 0 ? void 0 : _f.id.scope);
134
134
  if (laneAndCompFromSameScopeOnWs) {
@@ -1 +1 @@
1
- {"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAAwE;AACxE,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,kDAAiE;AACjE,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;AAEjE,0EAA0D;AAC1D,wFAAiE;AACjE,sFAAkE;AAElE,gDAA4C;AAC5C,8FAAkD;AAOlD,SAAgB,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IAAA,oBAAU,EAAC,uCAAW,EAAE,oCAAM,CAAC,SAAS,EAAE,qBAAqB,IAAI,oCAAM,CAAC,QAAQ,CAAC,EAC9F,eAAe,EAAE,oCAAM,CAAC,MAAM,EAC9B,OAAO,EAAE,WAAW;QACpB,eAAe;QACf,MAAM,EAAE,QAAQ;QAEhB,uCAAK,SAAS,EAAE,oCAAM,CAAC,IAAI;YACzB,8BAAC,2BAAO,IAAC,SAAS,EAAE,oCAAM,CAAC,mBAAmB,EAAE,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,UAAU;gBACnF,8BAAC,0BAAO,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,oCAAM,CAAC,OAAO,GAAI,CACpD;YACT,IAAI,CACD;QAEN,uCAAK,SAAS,EAAE,oCAAM,CAAC,KAAK;YAC1B,8BAAC,+CAAe,IAAC,SAAS,EAAE,SAAS,GAAI;YAExC,KAAK,CAAC,YAAY;gBACjB,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,8BAAC,QAAQ,CAAC,MAAM,IAAC,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CACtG,CACD,CACR,CAAC;AACJ,CAAC;AA3JD,sCA2JC"}
1
+ {"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAAwE;AACxE,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,wDAAoD;AACpD,kDAAoD;AACpD,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;AAEjE,0EAA0D;AAC1D,sFAAkE;AAElE,gDAA4C;AAE5C,8FAAkD;AAQlD,SAAgB,aAAa,CAAC,KAAsC;;IAClE,MAAM,EAAE,IAAI,EAA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AE,oCAAM,CAAC,SAAS,EAAE,qBAAqB,IAAI,oCAAM,CAAC,QAAQ,CAAC,EAC9F,eAAe,EAAE,oCAAM,CAAC,MAAM,EAC9B,OAAO,EAAE,WAAW;QACpB,eAAe;QACf,MAAM,EAAE,QAAQ;QAEhB,uCAAK,SAAS,EAAE,oCAAM,CAAC,IAAI;YACzB,8BAAC,2BAAO,IAAC,SAAS,EAAE,oCAAM,CAAC,mBAAmB,EAAE,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,UAAU;gBACnF,8BAAC,0BAAO,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,oCAAM,CAAC,OAAO,GAAI,CACpD;YACT,IAAI,CACD;QAEN,uCAAK,SAAS,EAAE,oCAAM,CAAC,KAAK;YAC1B,8BAAC,+CAAe,IAAC,SAAS,EAAE,SAAS,GAAI;YAExC,KAAK,CAAC,YAAY;gBACjB,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,8BAAC,QAAQ,CAAC,MAAM,IAAC,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CACtG,CACD,CACR,CAAC;AACJ,CAAC;AA3JD,sCA2JC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
3
3
  import { PayloadType } from '../payload-type';
4
- export declare function DefaultTreeNodeRenderer(props: TreeNodeProps<PayloadType>): JSX.Element;
4
+ export declare function DefaultTreeNodeRenderer(props: TreeNodeProps<PayloadType>): React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TreeNodeProps } from '@teambit/design.ui.tree';
3
3
  import { PayloadType } from '../payload-type';
4
4
  export declare type NamespaceTreeNodeProps = {} & TreeNodeProps<PayloadType>;
5
- export declare function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps): JSX.Element;
5
+ export declare function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps): React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TreeNodeProps } from '@teambit/design.ui.tree';
3
3
  import { PayloadType } from '../payload-type';
4
4
  export declare type ScopeTreeNodeProps = {} & TreeNodeProps<PayloadType>;
5
- export declare function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps): JSX.Element;
5
+ export declare function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "name": "@teambit/ui-foundation.ui.side-bar",
3
- "version": "0.0.867",
3
+ "version": "0.0.869",
4
4
  "homepage": "https://bit.cloud/teambit/ui-foundation/ui/side-bar",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "ui/side-bar",
9
- "version": "0.0.867"
9
+ "version": "0.0.869"
10
10
  },
11
11
  "dependencies": {
12
12
  "classnames": "2.2.6",
13
- "react-animate-height": "2.0.23",
14
13
  "core-js": "^3.0.0",
14
+ "react-animate-height": "2.0.23",
15
15
  "@teambit/base-react.navigation.link": "2.0.27",
16
16
  "@teambit/base-ui.graph.tree.indent": "1.0.0",
17
17
  "@teambit/base-ui.graph.tree.inflate-paths": "1.0.0",
18
+ "@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
18
19
  "@teambit/base-ui.graph.tree.tree-context": "1.0.0",
19
- "@teambit/design.ui.tree": "0.0.15",
20
20
  "@teambit/base-ui.theme.colors": "1.0.0",
21
- "@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
22
- "@teambit/design.ui.tooltip": "0.0.361",
23
- "@teambit/evangelist.elements.icon": "1.0.2",
24
- "@teambit/lanes.ui.models.lanes-model": "0.0.206",
25
- "@teambit/component.modules.component-url": "0.0.153",
21
+ "@teambit/component-id": "1.1.1",
22
+ "@teambit/component.modules.component-url": "0.0.162",
26
23
  "@teambit/component.ui.deprecation-icon": "0.0.509",
24
+ "@teambit/design.ui.tooltip": "0.0.361",
25
+ "@teambit/design.ui.tree": "0.0.15",
27
26
  "@teambit/envs.ui.env-icon": "0.0.500",
28
- "@teambit/lanes.hooks.use-lanes": "0.0.253",
29
- "@teambit/scope.ui.hooks.scope-context": "0.0.447"
27
+ "@teambit/evangelist.elements.icon": "1.0.2",
28
+ "@teambit/lanes.hooks.use-lanes": "0.0.255",
29
+ "@teambit/lanes.ui.models.lanes-model": "0.0.209"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/react": "^17.0.8",
32
+ "@babel/runtime": "7.20.0",
33
33
  "@types/classnames": "2.2.11",
34
+ "@types/jest": "^26.0.0",
34
35
  "@types/mocha": "9.1.0",
35
36
  "@types/node": "12.20.4",
37
+ "@types/react": "^17.0.8",
36
38
  "@types/react-dom": "^17.0.5",
37
- "@types/jest": "^26.0.0",
38
- "@babel/runtime": "7.20.0",
39
39
  "@types/testing-library__jest-dom": "5.9.5"
40
40
  },
41
41
  "peerDependencies": {