@teambit/ui-foundation.ui.side-bar 0.0.875 → 0.0.877

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.
Files changed (50) hide show
  1. package/component-tree/component-tree.tsx +10 -8
  2. package/component-tree/component-view/component-view.tsx +9 -10
  3. package/component-tree/default-tree-node-renderer/default-tree-node-renderer.tsx +3 -2
  4. package/component-tree/namespace-tree-node/namespace-tree-node.tsx +6 -1
  5. package/component-tree/scope-tree-node/scope-tree-node.tsx +7 -2
  6. package/dist/component-tree/component-tree.d.ts +2 -3
  7. package/dist/component-tree/component-tree.js +28 -56
  8. package/dist/component-tree/component-tree.js.map +1 -1
  9. package/dist/component-tree/component-view/component-view.d.ts +2 -3
  10. package/dist/component-tree/component-view/component-view.js +48 -90
  11. package/dist/component-tree/component-view/component-view.js.map +1 -1
  12. package/dist/component-tree/component-view/index.js +1 -17
  13. package/dist/component-tree/component-view/index.js.map +1 -1
  14. package/dist/component-tree/default-tree-node-renderer/default-tree-node-renderer.d.ts +1 -2
  15. package/dist/component-tree/default-tree-node-renderer/default-tree-node-renderer.js +12 -18
  16. package/dist/component-tree/default-tree-node-renderer/default-tree-node-renderer.js.map +1 -1
  17. package/dist/component-tree/default-tree-node-renderer/index.js +1 -5
  18. package/dist/component-tree/default-tree-node-renderer/index.js.map +1 -1
  19. package/dist/component-tree/index.js +5 -26
  20. package/dist/component-tree/index.js.map +1 -1
  21. package/dist/component-tree/namespace-tree-node/index.js +1 -5
  22. package/dist/component-tree/namespace-tree-node/index.js.map +1 -1
  23. package/dist/component-tree/namespace-tree-node/namespace-tree-node.d.ts +2 -3
  24. package/dist/component-tree/namespace-tree-node/namespace-tree-node.js +23 -55
  25. package/dist/component-tree/namespace-tree-node/namespace-tree-node.js.map +1 -1
  26. package/dist/component-tree/payload-type.d.ts +1 -1
  27. package/dist/component-tree/payload-type.js +1 -5
  28. package/dist/component-tree/payload-type.js.map +1 -1
  29. package/dist/component-tree/scope-tree-node/index.js +1 -5
  30. package/dist/component-tree/scope-tree-node/index.js.map +1 -1
  31. package/dist/component-tree/scope-tree-node/scope-tree-node.d.ts +2 -3
  32. package/dist/component-tree/scope-tree-node/scope-tree-node.js +23 -56
  33. package/dist/component-tree/scope-tree-node/scope-tree-node.js.map +1 -1
  34. package/dist/component-tree/utils/get-name.d.ts +1 -1
  35. package/dist/component-tree/utils/get-name.js +1 -5
  36. package/dist/component-tree/utils/get-name.js.map +1 -1
  37. package/dist/index.js +1 -9
  38. package/dist/index.js.map +1 -1
  39. package/dist/preview-1715202184461.js +7 -0
  40. package/dist/tsconfig.json +21 -14
  41. package/package.json +15 -17
  42. package/tsconfig.json +39 -0
  43. package/types/asset.d.ts +41 -0
  44. package/types/style.d.ts +42 -0
  45. package/.bit-capsule-ready +0 -0
  46. package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.875.tgz +0 -0
  47. package/schema.json +0 -1373
  48. package/static/css/teambit.ui-foundation/ui/side-bar.78ecddd4.css +0 -1
  49. package/teambit_ui_foundation_ui_side_bar-component.js +0 -977
  50. package/teambit_ui_foundation_ui_side_bar-preview.js +0 -1
@@ -14,9 +14,18 @@ type ComponentTreeProps = {
14
14
  transformTree?: (rootNode: TreeNodeType) => TreeNodeType;
15
15
  TreeNode?: TreeNodeRenderer<PayloadType>;
16
16
  isCollapsed?: boolean;
17
- assumeScopeInUrl?: boolean;
17
+ // assumeScopeInUrl?: boolean;
18
18
  } & React.HTMLAttributes<HTMLDivElement>;
19
19
 
20
+ function calcPayload(components: ComponentModel[]) {
21
+ const payloadMap = new Map<string, PayloadType>(components.map((c) => [c.id.toString({ ignoreVersion: true }), c]));
22
+
23
+ const scopeIds = new Set(components.map((x) => x.id.scope).filter((x) => !!x));
24
+ scopeIds.forEach((x) => x && payloadMap.set(`${x}/`, new ScopePayload()));
25
+
26
+ return payloadMap;
27
+ }
28
+
20
29
  export function ComponentTree({
21
30
  components,
22
31
  isCollapsed,
@@ -56,11 +65,4 @@ export function ComponentTree({
56
65
  );
57
66
  }
58
67
 
59
- function calcPayload(components: ComponentModel[]) {
60
- const payloadMap = new Map<string, PayloadType>(components.map((c) => [c.id.toString({ ignoreVersion: true }), c]));
61
-
62
- const scopeIds = new Set(components.map((x) => x.id.scope).filter((x) => !!x));
63
- scopeIds.forEach((x) => x && payloadMap.set(`${x}/`, new ScopePayload()));
64
68
 
65
- return payloadMap;
66
- }
@@ -25,15 +25,15 @@ export type ComponentViewProps<Payload = any> = {
25
25
  } & TreeNodeProps<Payload>;
26
26
 
27
27
  export function ComponentView(props: ComponentViewProps) {
28
- const { node, scopeName } = props;
28
+ const { node, scopeName, useLanes: useLanesFromProps, treeNodeSlot } = props;
29
29
  let component = node.payload;
30
30
 
31
31
  const { onSelect } = useContext(TreeContext);
32
- const { lanesModel } = (props.useLanes || useLanes)();
32
+ const { lanesModel } = (useLanesFromProps || useLanes)();
33
33
 
34
34
  const handleClick = useCallback(
35
35
  (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {
36
- onSelect && onSelect(node.id, event);
36
+ onSelect?.(node.id, event);
37
37
  },
38
38
  [onSelect, node.id]
39
39
  );
@@ -49,12 +49,12 @@ export function ComponentView(props: ComponentViewProps) {
49
49
 
50
50
  const envTooltip = (
51
51
  <Link
52
+ external
52
53
  className={styles.envLink}
53
54
  href={ComponentUrl.toUrl(envId, {
54
55
  includeVersion: true,
55
56
  useLocationOrigin: !window.location.host.startsWith('localhost'),
56
57
  })}
57
- external={true}
58
58
  onClick={(event) => {
59
59
  // do not trigger component selection
60
60
  event.stopPropagation();
@@ -76,7 +76,7 @@ export function ComponentView(props: ComponentViewProps) {
76
76
  }, [lanesModel?.viewedLane?.id.toString(), component.id.toString()]);
77
77
 
78
78
  const Name = viewingMainCompOnLane ? (
79
- <Tooltip className={styles.onMainTooltip} placement="top" content={'On Main'}>
79
+ <Tooltip className={styles.onMainTooltip} placement="top" content='On Main'>
80
80
  <span>{getName(node.id)}</span>
81
81
  </Tooltip>
82
82
  ) : (
@@ -158,8 +158,8 @@ export function ComponentView(props: ComponentViewProps) {
158
158
 
159
159
  const laneCompUrlWithSubRoutes = pathname.split(LanesModel.baseLaneComponentRoute)[1] ?? '';
160
160
 
161
- const _laneCompUrl = laneCompUrlWithSubRoutes.split('/~')[0] ?? '';
162
- const laneCompUrl = _laneCompUrl.startsWith('/') ? _laneCompUrl.substring(1) : _laneCompUrl;
161
+ const extractedLaneCompUrl = laneCompUrlWithSubRoutes.split('/~')[0] ?? '';
162
+ const laneCompUrl = extractedLaneCompUrl.startsWith('/') ? extractedLaneCompUrl.substring(1) : extractedLaneCompUrl;
163
163
 
164
164
  /**
165
165
  * if the laneCompUrl doesn't have the scope as part of it and you are on a bare scope
@@ -184,7 +184,7 @@ export function ComponentView(props: ComponentViewProps) {
184
184
  return !scopeFromQueryParams
185
185
  ? laneCompIdFromUrl?.toString() === compIdStr || laneCompIdFromUrl.fullName === compIdName
186
186
  : laneCompIdFromUrl?.toString() === compIdStr ||
187
- (laneCompIdFromUrl.fullName === compIdName && componentScope === scopeFromQueryParams);
187
+ (laneCompIdFromUrl.fullName === compIdName && componentScope === scopeFromQueryParams);
188
188
  }, [href, viewingMainCompOnLane, location?.pathname, component.id.toString(), scope]);
189
189
 
190
190
  return (
@@ -206,8 +206,7 @@ export function ComponentView(props: ComponentViewProps) {
206
206
  <div className={styles.right}>
207
207
  <DeprecationIcon component={component} />
208
208
  {/* {isInternal && <Icon of="Internal" className={styles.componentIcon} />} */}
209
- {props.treeNodeSlot &&
210
- props.treeNodeSlot.toArray().map(([id, treeNode]) => <treeNode.widget key={id} component={component} />)}
209
+ {treeNodeSlot && treeNodeSlot.toArray().map(([id, treeNode]) => <treeNode.widget key={id} component={component} />)}
211
210
  </div>
212
211
  </Link>
213
212
  );
@@ -7,10 +7,11 @@ import { ScopeTreeNode } from '../scope-tree-node';
7
7
  import { NamespaceTreeNode } from '../namespace-tree-node';
8
8
 
9
9
  export function DefaultTreeNodeRenderer(props: TreeNodeProps<PayloadType>) {
10
- const children = props.node.children;
10
+ const { node } = props;
11
+ const { children, payload } = node;
11
12
  if (!children) return <ComponentView {...props} />;
12
13
 
13
- if (props.node.payload instanceof ScopePayload) return <ScopeTreeNode {...props} />;
14
+ if (payload instanceof ScopePayload) return <ScopeTreeNode {...props} />;
14
15
 
15
16
  return <NamespaceTreeNode {...props} />;
16
17
  }
@@ -19,7 +19,7 @@ export function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps) {
19
19
 
20
20
  const firstRun = useRef(true);
21
21
  useEffect(() => {
22
- const current = firstRun.current;
22
+ const { current } = firstRun;
23
23
  if (current) return;
24
24
  if (isActive === true) toggle(true);
25
25
  }, [isActive]);
@@ -41,6 +41,11 @@ export function NamespaceTreeNode({ node, depth }: NamespaceTreeNodeProps) {
41
41
  <div
42
42
  className={classNames(indentClass, styles.namespace, highlighted && styles.highlighted)}
43
43
  onClick={() => toggle(!open)}
44
+ tabIndex={0}
45
+ role="button"
46
+ onKeyDown={(e) => {
47
+ if (e.key === 'Enter') toggle(!open);
48
+ }}
44
49
  >
45
50
  <div className={styles.left}>
46
51
  <Icon className={classNames(styles.arrow, !open && styles.collapsed)} of="fat-arrow-down" />
@@ -22,13 +22,13 @@ export function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps) {
22
22
 
23
23
  const firstRun = useRef(true);
24
24
  useEffect(() => {
25
- const current = firstRun.current;
25
+ const { current } = firstRun;
26
26
  if (current) return;
27
27
  if (isActive === true) toggle(true);
28
28
  }, [isActive]);
29
29
 
30
30
  useEffect(() => {
31
- const current = firstRun.current;
31
+ const { current } = firstRun;
32
32
  if (current) return;
33
33
  toggle(!isCollapsed);
34
34
  }, [isCollapsed]);
@@ -45,6 +45,11 @@ export function ScopeTreeNode({ node, depth }: ScopeTreeNodeProps) {
45
45
  <div
46
46
  className={classNames(indentClass, styles.scope, highlighted && styles.highlighted)}
47
47
  onClick={() => toggle(!open)}
48
+ onKeyDown={(e) => {
49
+ if (e.key === 'Enter') toggle(!open);
50
+ }}
51
+ role="button"
52
+ tabIndex={0}
48
53
  >
49
54
  <div className={styles.left}>
50
55
  <Icon className={classNames(styles.arrow, !open && styles.collapsed)} of="fat-arrow-down" />
@@ -2,12 +2,11 @@ import { ComponentModel } from '@teambit/component';
2
2
  import React from 'react';
3
3
  import { TreeNodeRenderer, TreeNode as TreeNodeType } from '@teambit/design.ui.tree';
4
4
  import { PayloadType } from './payload-type';
5
- declare type ComponentTreeProps = {
5
+ type ComponentTreeProps = {
6
6
  components: ComponentModel[];
7
7
  transformTree?: (rootNode: TreeNodeType) => TreeNodeType;
8
8
  TreeNode?: TreeNodeRenderer<PayloadType>;
9
9
  isCollapsed?: boolean;
10
- assumeScopeInUrl?: boolean;
11
10
  } & React.HTMLAttributes<HTMLDivElement>;
12
- export declare function ComponentTree({ components, isCollapsed, className, transformTree, TreeNode, }: ComponentTreeProps): React.JSX.Element;
11
+ export declare function ComponentTree({ components, isCollapsed, className, transformTree, TreeNode, }: ComponentTreeProps): import("react/jsx-runtime").JSX.Element;
13
12
  export {};
@@ -1,69 +1,41 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ComponentTree = void 0;
27
- const component_1 = require("@teambit/component");
28
- const react_1 = __importStar(require("react"));
29
- const base_react_navigation_link_1 = require("@teambit/base-react.navigation.link");
30
- const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
31
- const base_ui_graph_tree_inflate_paths_1 = require("@teambit/base-ui.graph.tree.inflate-paths");
32
- const design_ui_tree_1 = require("@teambit/design.ui.tree");
33
- const lanes_ui_models_lanes_model_1 = require("@teambit/lanes.ui.models.lanes-model");
34
- const base_ui_graph_tree_tree_context_1 = require("@teambit/base-ui.graph.tree.tree-context");
35
- const payload_type_1 = require("./payload-type");
36
- const default_tree_node_renderer_1 = require("./default-tree-node-renderer");
37
- function ComponentTree({ components, isCollapsed, className, transformTree,
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useIdFromLocation } from '@teambit/component';
3
+ import { useMemo } from 'react';
4
+ import { useLocation } from '@teambit/base-react.navigation.link';
5
+ import { indentStyle } from '@teambit/base-ui.graph.tree.indent';
6
+ import { inflateToTree, attachPayload } from '@teambit/base-ui.graph.tree.inflate-paths';
7
+ import { Tree } from '@teambit/design.ui.tree';
8
+ import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
9
+ import { TreeContextProvider } from '@teambit/base-ui.graph.tree.tree-context';
10
+ import { ScopePayload } from './payload-type';
11
+ import { DefaultTreeNodeRenderer } from './default-tree-node-renderer';
12
+ function calcPayload(components) {
13
+ const payloadMap = new Map(components.map((c) => [c.id.toString({ ignoreVersion: true }), c]));
14
+ const scopeIds = new Set(components.map((x) => x.id.scope).filter((x) => !!x));
15
+ scopeIds.forEach((x) => x && payloadMap.set(`${x}/`, new ScopePayload()));
16
+ return payloadMap;
17
+ }
18
+ export function ComponentTree({ components, isCollapsed, className, transformTree,
38
19
  // assumeScopeInUrl = false,
39
- TreeNode = default_tree_node_renderer_1.DefaultTreeNodeRenderer, }) {
40
- const { pathname = '/' } = (0, base_react_navigation_link_1.useLocation)() || {};
20
+ TreeNode = DefaultTreeNodeRenderer, }) {
21
+ const { pathname = '/' } = useLocation() || {};
41
22
  // override default splat from location when viewing a lane component
42
- const laneCompUrl = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute.concat('/'))[1];
43
- const idFromLocation = (0, component_1.useIdFromLocation)(laneCompUrl, true);
44
- const activeComponent = (0, react_1.useMemo)(() => {
23
+ const laneCompUrl = pathname.split(LanesModel.baseLaneComponentRoute.concat('/'))[1];
24
+ const idFromLocation = useIdFromLocation(laneCompUrl, true);
25
+ const activeComponent = useMemo(() => {
45
26
  const active = components.find((x) => {
46
27
  return idFromLocation && (idFromLocation === x.id.fullName || idFromLocation === x.id.toStringWithoutVersion());
47
28
  });
48
- return active === null || active === void 0 ? void 0 : active.id.toString({ ignoreVersion: true });
29
+ return active?.id.toString({ ignoreVersion: true });
49
30
  }, [components, pathname]);
50
- const rootNode = (0, react_1.useMemo)(() => {
51
- const tree = (0, base_ui_graph_tree_inflate_paths_1.inflateToTree)(components, (c) => c.id.toString({ ignoreVersion: true }));
31
+ const rootNode = useMemo(() => {
32
+ const tree = inflateToTree(components, (c) => c.id.toString({ ignoreVersion: true }));
52
33
  const payloadMap = calcPayload(components);
53
- (0, base_ui_graph_tree_inflate_paths_1.attachPayload)(tree, payloadMap);
34
+ attachPayload(tree, payloadMap);
54
35
  if (transformTree)
55
36
  return transformTree(tree);
56
37
  return tree;
57
38
  }, [components]);
58
- return (react_1.default.createElement(base_ui_graph_tree_tree_context_1.TreeContextProvider, null,
59
- react_1.default.createElement("div", { style: (0, base_ui_graph_tree_indent_1.indentStyle)(1), className: className },
60
- react_1.default.createElement(design_ui_tree_1.Tree, { TreeNode: TreeNode, activePath: activeComponent, tree: rootNode, isCollapsed: isCollapsed }))));
61
- }
62
- exports.ComponentTree = ComponentTree;
63
- function calcPayload(components) {
64
- const payloadMap = new Map(components.map((c) => [c.id.toString({ ignoreVersion: true }), c]));
65
- const scopeIds = new Set(components.map((x) => x.id.scope).filter((x) => !!x));
66
- scopeIds.forEach((x) => x && payloadMap.set(`${x}/`, new payload_type_1.ScopePayload()));
67
- return payloadMap;
39
+ return (_jsx(TreeContextProvider, { children: _jsx("div", { style: indentStyle(1), className: className, children: _jsx(Tree, { TreeNode: TreeNode, activePath: activeComponent, tree: rootNode, isCollapsed: isCollapsed }) }) }));
68
40
  }
69
41
  //# sourceMappingURL=component-tree.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-tree.js","sourceRoot":"","sources":["../../component-tree/component-tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuE;AACvE,+CAAuC;AACvC,oFAAkE;AAClE,kFAAiE;AACjE,gGAAyF;AACzF,4DAA2F;AAC3F,sFAAkE;AAClE,8FAA+E;AAC/E,iDAA2D;AAC3D,6EAAuE;AAUvE,SAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa;AACb,4BAA4B;AAC5B,QAAQ,GAAG,oDAAuB,GACf;IACnB,MAAM,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,IAAA,wCAAW,GAAE,IAAI,EAAE,CAAC;IAC/C,qEAAqE;IACrE,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,wCAAU,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrF,MAAM,cAAc,GAAG,IAAA,6BAAiB,EAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAC5D,MAAM,eAAe,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACnC,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACnC,OAAO,cAAc,IAAI,CAAC,cAAc,KAAK,CAAC,CAAC,EAAE,CA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AAE,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE3B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,IAAI,GAAG,aAAa,CAA8B,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnH,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;QAE3C,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAEhC,IAAI,aAAa;YAAE,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,CACL,KAAC,mBAAmB,cAClB,cAAK,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,YAC9C,KAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAI,GAC/F,GACc,CACvB,CAAC;AACJ,CAAC"}
@@ -1,12 +1,11 @@
1
1
  import { ComponentTreeSlot } from '@teambit/component-tree';
2
- import React from 'react';
3
2
  import { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
4
3
  import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
5
- export declare type ComponentViewProps<Payload = any> = {
4
+ export type ComponentViewProps<Payload = any> = {
6
5
  treeNodeSlot?: ComponentTreeSlot;
7
6
  useLanes?: () => {
8
7
  lanesModel?: LanesModel;
9
8
  };
10
9
  scopeName?: string;
11
10
  } & TreeNodeProps<Payload>;
12
- export declare function ComponentView(props: ComponentViewProps): React.JSX.Element;
11
+ export declare function ComponentView(props: ComponentViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,79 +1,46 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ComponentView = void 0;
30
- const base_react_navigation_link_1 = require("@teambit/base-react.navigation.link");
31
- const envs_ui_env_icon_1 = require("@teambit/envs.ui.env-icon");
32
- const component_ui_deprecation_icon_1 = require("@teambit/component.ui.deprecation-icon");
33
- const classnames_1 = __importDefault(require("classnames"));
34
- const component_id_1 = require("@teambit/component-id");
35
- const component_modules_component_url_1 = require("@teambit/component.modules.component-url");
36
- const react_1 = __importStar(require("react"));
37
- const design_ui_tooltip_1 = require("@teambit/design.ui.tooltip");
38
- const base_ui_graph_tree_tree_context_1 = require("@teambit/base-ui.graph.tree.tree-context");
39
- const base_ui_graph_tree_indent_1 = require("@teambit/base-ui.graph.tree.indent");
40
- const lanes_hooks_use_lanes_1 = require("@teambit/lanes.hooks.use-lanes");
41
- const lanes_ui_models_lanes_model_1 = require("@teambit/lanes.ui.models.lanes-model");
42
- const get_name_1 = require("../utils/get-name");
43
- const component_view_module_scss_1 = __importDefault(require("./component-view.module.scss"));
44
- function ComponentView(props) {
45
- var _a, _b, _c, _d;
46
- const { node, scopeName } = props;
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Link, useLocation } from '@teambit/base-react.navigation.link';
3
+ import { EnvIcon } from '@teambit/envs.ui.env-icon';
4
+ import { DeprecationIcon } from '@teambit/component.ui.deprecation-icon';
5
+ import classNames from 'classnames';
6
+ import { ComponentID } from '@teambit/component-id';
7
+ import { ComponentUrl } from '@teambit/component.modules.component-url';
8
+ import React, { useCallback, useContext } from 'react';
9
+ import { Tooltip } from '@teambit/design.ui.tooltip';
10
+ import { TreeContext } from '@teambit/base-ui.graph.tree.tree-context';
11
+ import { indentClass } from '@teambit/base-ui.graph.tree.indent';
12
+ import { useLanes } from '@teambit/lanes.hooks.use-lanes';
13
+ import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
14
+ import { getName } from '../utils/get-name';
15
+ import styles from './component-view.module.scss';
16
+ export function ComponentView(props) {
17
+ const { node, scopeName, useLanes: useLanesFromProps, treeNodeSlot } = props;
47
18
  let component = node.payload;
48
- const { onSelect } = (0, react_1.useContext)(base_ui_graph_tree_tree_context_1.TreeContext);
49
- const { lanesModel } = (props.useLanes || lanes_hooks_use_lanes_1.useLanes)();
50
- const handleClick = (0, react_1.useCallback)((event) => {
51
- onSelect && onSelect(node.id, event);
19
+ const { onSelect } = useContext(TreeContext);
20
+ const { lanesModel } = (useLanesFromProps || useLanes)();
21
+ const handleClick = useCallback((event) => {
22
+ onSelect?.(node.id, event);
52
23
  }, [onSelect, node.id]);
53
- const location = (0, base_react_navigation_link_1.useLocation)();
24
+ const location = useLocation();
54
25
  const scope = { name: scopeName };
55
26
  if (!component.id || !component.environment.id)
56
27
  return null;
57
28
  component = component;
58
- const envId = component_id_1.ComponentID.fromString((_a = component.environment) === null || _a === void 0 ? void 0 : _a.id);
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, {
29
+ const envId = ComponentID.fromString(component.environment?.id);
30
+ const envTooltip = (_jsxs(Link, { external: true, className: styles.envLink, href: ComponentUrl.toUrl(envId, {
60
31
  includeVersion: true,
61
32
  useLocationOrigin: !window.location.host.startsWith('localhost'),
62
- }), external: true, onClick: (event) => {
33
+ }), onClick: (event) => {
63
34
  // do not trigger component selection
64
35
  event.stopPropagation();
65
- } },
66
- react_1.default.createElement("div", { className: component_view_module_scss_1.default.componentEnvTitle }, "Environment"),
67
- react_1.default.createElement("div", null, (_b = component.environment) === null || _b === void 0 ? void 0 : _b.id)));
68
- const href = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.getLaneComponentUrlByVersion(component.id, (_c = lanesModel.viewedLane) === null || _c === void 0 ? void 0 : _c.id, !scope.name);
69
- const viewingMainCompOnLane = react_1.default.useMemo(() => {
70
- var _a, _b, _c;
71
- return (!((_a = component.status) === null || _a === void 0 ? void 0 : _a.isNew) &&
72
- !((_b = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _b === void 0 ? void 0 : _b.id.isDefault()) &&
73
- (lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.isComponentOnMainButNotOnLane(component.id, undefined, (_c = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _c === void 0 ? void 0 : _c.id)));
74
- }, [(_d = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _d === void 0 ? void 0 : _d.id.toString(), component.id.toString()]);
75
- const Name = viewingMainCompOnLane ? (react_1.default.createElement(design_ui_tooltip_1.Tooltip, { className: component_view_module_scss_1.default.onMainTooltip, placement: "top", content: 'On Main' },
76
- react_1.default.createElement("span", null, (0, get_name_1.getName)(node.id)))) : (react_1.default.createElement("span", null, (0, get_name_1.getName)(node.id)));
36
+ }, children: [_jsx("div", { className: styles.componentEnvTitle, children: "Environment" }), _jsx("div", { children: component.environment?.id })] }));
37
+ const href = lanesModel?.getLaneComponentUrlByVersion(component.id, lanesModel.viewedLane?.id, !scope.name);
38
+ const viewingMainCompOnLane = React.useMemo(() => {
39
+ return (!component.status?.isNew &&
40
+ !lanesModel?.viewedLane?.id.isDefault() &&
41
+ lanesModel?.isComponentOnMainButNotOnLane(component.id, undefined, lanesModel?.viewedLane?.id));
42
+ }, [lanesModel?.viewedLane?.id.toString(), component.id.toString()]);
43
+ const Name = viewingMainCompOnLane ? (_jsx(Tooltip, { className: styles.onMainTooltip, placement: "top", content: 'On Main', children: _jsx("span", { children: getName(node.id) }) })) : (_jsx("span", { children: getName(node.id) }));
77
44
  /**
78
45
  * this covers the following use cases when matching the active component's href with location
79
46
  *
@@ -115,8 +82,7 @@ function ComponentView(props) {
115
82
  *
116
83
  * @todo - move this logic to a util function
117
84
  */
118
- const isActive = react_1.default.useMemo(() => {
119
- var _a, _b, _c, _d, _e, _f, _g;
85
+ const isActive = React.useMemo(() => {
120
86
  if (!href || !location)
121
87
  return false;
122
88
  const scopeFromQueryParams = location.search.split('scope=')[1];
@@ -124,13 +90,13 @@ function ComponentView(props) {
124
90
  const compIdStr = component.id.toStringWithoutVersion();
125
91
  const compIdName = component.id.fullName;
126
92
  const componentScope = component.id.scope;
127
- const locationIncludesLaneId = location.pathname.includes(lanes_ui_models_lanes_model_1.LanesModel.lanesPrefix);
93
+ const locationIncludesLaneId = location.pathname.includes(LanesModel.lanesPrefix);
128
94
  const sanitizedHref = (href.startsWith('/') ? href.substring(1) : href).split('?')[0];
129
95
  // if you are in a workspace, the componentId might not have a scopeId, if you are viewing
130
96
  // a component on the checked out lane
131
- const viewingCheckedOutLaneComp = (lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.currentLane) && lanesModel.currentLane.id.toString() === ((_a = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _a === void 0 ? void 0 : _a.id.toString());
97
+ const viewingCheckedOutLaneComp = lanesModel?.currentLane && lanesModel.currentLane.id.toString() === lanesModel?.viewedLane?.id.toString();
132
98
  if (!locationIncludesLaneId &&
133
- (((_b = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _b === void 0 ? void 0 : _b.id.isDefault()) || viewingMainCompOnLane || viewingCheckedOutLaneComp)) {
99
+ (lanesModel?.viewedLane?.id.isDefault() || viewingMainCompOnLane || viewingCheckedOutLaneComp)) {
134
100
  // split out any sub routes if exist
135
101
  const compUrl = pathname.split('/~')[0];
136
102
  // may or may not contain scope
@@ -140,16 +106,17 @@ function ComponentView(props) {
140
106
  ? sanitizedHref === compUrlWithoutScope
141
107
  : sanitizedHref === compUrl && componentScope === scopeFromQueryParams;
142
108
  }
143
- const laneCompUrlWithSubRoutes = (_c = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute)[1]) !== null && _c !== void 0 ? _c : '';
144
- const _laneCompUrl = (_d = laneCompUrlWithSubRoutes.split('/~')[0]) !== null && _d !== void 0 ? _d : '';
145
- const laneCompUrl = _laneCompUrl.startsWith('/') ? _laneCompUrl.substring(1) : _laneCompUrl;
109
+ const laneCompUrlWithSubRoutes = pathname.split(LanesModel.baseLaneComponentRoute)[1] ?? '';
110
+ const extractedLaneCompUrl = laneCompUrlWithSubRoutes.split('/~')[0] ?? '';
111
+ const laneCompUrl = extractedLaneCompUrl.startsWith('/') ? extractedLaneCompUrl.substring(1) : extractedLaneCompUrl;
146
112
  /**
147
113
  * if the laneCompUrl doesn't have the scope as part of it and you are on a bare scope
148
114
  * attach the bare scope to the laneCompUrl and parse it as a ComponentID
149
115
  */
150
- const laneCompIdFromUrl = (_e = component_id_1.ComponentID.tryFromString(laneCompUrl)) !== null && _e !== void 0 ? _e : (scope.name ? component_id_1.ComponentID.tryFromString(`${scope.name}/${laneCompUrl}`) : undefined);
116
+ const laneCompIdFromUrl = ComponentID.tryFromString(laneCompUrl) ??
117
+ (scope.name ? ComponentID.tryFromString(`${scope.name}/${laneCompUrl}`) : undefined);
151
118
  // viewing lane component from the same scope as the lane on a workspace
152
- const laneAndCompFromSameScopeOnWs = !scope.name && ((_f = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _f === void 0 ? void 0 : _f.id) && component.id.scope === ((_g = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _g === void 0 ? void 0 : _g.id.scope);
119
+ const laneAndCompFromSameScopeOnWs = !scope.name && lanesModel?.viewedLane?.id && component.id.scope === lanesModel?.viewedLane?.id.scope;
153
120
  if (laneAndCompFromSameScopeOnWs) {
154
121
  return !scopeFromQueryParams
155
122
  ? compIdName === laneCompUrl
@@ -158,21 +125,12 @@ function ComponentView(props) {
158
125
  if (!laneCompIdFromUrl)
159
126
  return false;
160
127
  return !scopeFromQueryParams
161
- ? (laneCompIdFromUrl === null || laneCompIdFromUrl === void 0 ? void 0 : laneCompIdFromUrl.toString()) === compIdStr || laneCompIdFromUrl.fullName === compIdName
162
- : (laneCompIdFromUrl === null || laneCompIdFromUrl === void 0 ? void 0 : laneCompIdFromUrl.toString()) === compIdStr ||
128
+ ? laneCompIdFromUrl?.toString() === compIdStr || laneCompIdFromUrl.fullName === compIdName
129
+ : laneCompIdFromUrl?.toString() === compIdStr ||
163
130
  (laneCompIdFromUrl.fullName === compIdName && componentScope === scopeFromQueryParams);
164
- }, [href, viewingMainCompOnLane, location === null || location === void 0 ? void 0 : location.pathname, component.id.toString(), scope]);
165
- return (react_1.default.createElement(base_react_navigation_link_1.Link, { href: href, className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass, component_view_module_scss_1.default.component, viewingMainCompOnLane && component_view_module_scss_1.default.mainOnly), activeClassName: component_view_module_scss_1.default.active, onClick: handleClick,
131
+ }, [href, viewingMainCompOnLane, location?.pathname, component.id.toString(), scope]);
132
+ return (_jsxs(Link, { href: href, className: classNames(indentClass, styles.component, viewingMainCompOnLane && styles.mainOnly), activeClassName: styles.active, onClick: handleClick,
166
133
  // exact={true}
167
- active: isActive },
168
- react_1.default.createElement("div", { className: component_view_module_scss_1.default.left },
169
- react_1.default.createElement(design_ui_tooltip_1.Tooltip, { className: component_view_module_scss_1.default.componentEnvTooltip, placement: "top", content: envTooltip },
170
- react_1.default.createElement(envs_ui_env_icon_1.EnvIcon, { component: component, className: component_view_module_scss_1.default.envIcon })),
171
- Name),
172
- react_1.default.createElement("div", { className: component_view_module_scss_1.default.right },
173
- react_1.default.createElement(component_ui_deprecation_icon_1.DeprecationIcon, { component: component }),
174
- props.treeNodeSlot &&
175
- props.treeNodeSlot.toArray().map(([id, treeNode]) => react_1.default.createElement(treeNode.widget, { key: id, component: component })))));
134
+ active: isActive, children: [_jsxs("div", { className: styles.left, children: [_jsx(Tooltip, { className: styles.componentEnvTooltip, placement: "top", content: envTooltip, children: _jsx(EnvIcon, { component: component, className: styles.envIcon }) }), Name] }), _jsxs("div", { className: styles.right, children: [_jsx(DeprecationIcon, { component: component }), treeNodeSlot && treeNodeSlot.toArray().map(([id, treeNode]) => _jsx(treeNode.widget, { component: component }, id))] })] }));
176
135
  }
177
- exports.ComponentView = ComponentView;
178
136
  //# sourceMappingURL=component-view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oFAAwE;AACxE,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,wDAAoD;AAEpD,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;AAEjE,0EAA0D;AAC1D,sFAAkE;AAClE,gDAA4C;AAE5C,8FAAkD;AAQlD,SAAgB,aAAa,CAAC,KAA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O,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,KAAK,EAAC,OAAO,EAAE,UAAU;gBACjF,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;AA3LD,sCA2LC"}
1
+ {"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0C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EAAE,MAAM,CAAC,OAAO,GAAI,GACpD,EACT,IAAI,IACD,EAEN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,KAAC,eAAe,IAAC,SAAS,EAAE,SAAS,GAAI,EAExC,YAAY,IAAI,YAAY,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,KAAC,QAAQ,CAAC,MAAM,IAAU,SAAS,EAAE,SAAS,IAAxB,EAAE,CAA0B,CAAC,IAC/G,IACD,CACR,CAAC;AACJ,CAAC"}
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component-view"), exports);
1
+ export * from './component-view';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../component-tree/component-view/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../component-tree/component-view/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { TreeNodeProps } from '@teambit/base-ui.graph.tree.recursive-tree';
3
2
  import { PayloadType } from '../payload-type';
4
- export declare function DefaultTreeNodeRenderer(props: TreeNodeProps<PayloadType>): React.JSX.Element;
3
+ export declare function DefaultTreeNodeRenderer(props: TreeNodeProps<PayloadType>): import("react/jsx-runtime").JSX.Element;