@teambit/graph 1.0.1243 → 1.0.1245

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,6 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
2
  import type { SlotRegistry } from '@teambit/harmony';
3
- import type { ComponentCompareUI } from '@teambit/component-compare';
4
3
  import type { ComponentUI, ComponentModel } from '@teambit/component';
5
4
  import { DependenciesGraph } from './ui/dependencies-graph';
6
5
  export interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -29,5 +28,5 @@ export declare class GraphUI {
29
28
  static defaultConfig: {
30
29
  componentTab: boolean;
31
30
  };
32
- static provider([componentUI, componentCompare]: [ComponentUI, ComponentCompareUI], config: GraphUIConfig, [componentWidgetSlot]: [ComponentWidgetSlot]): Promise<GraphUI>;
31
+ static provider([componentUI]: [ComponentUI], config: GraphUIConfig, [componentWidgetSlot]: [ComponentWidgetSlot]): Promise<GraphUI>;
33
32
  }
@@ -18,13 +18,6 @@ function _harmony() {
18
18
  };
19
19
  return data;
20
20
  }
21
- function _componentCompare() {
22
- const data = require("@teambit/component-compare");
23
- _componentCompare = function () {
24
- return data;
25
- };
26
- return data;
27
- }
28
21
  function _component() {
29
22
  const data = require("@teambit/component");
30
23
  _component = function () {
@@ -46,13 +39,6 @@ function _graph2() {
46
39
  };
47
40
  return data;
48
41
  }
49
- function _graphCompare() {
50
- const data = require("./graph.compare.section");
51
- _graphCompare = function () {
52
- return data;
53
- };
54
- return data;
55
- }
56
42
  function _dependenciesGraph() {
57
43
  const data = require("./ui/dependencies-graph");
58
44
  _dependenciesGraph = function () {
@@ -81,19 +67,16 @@ class GraphUI {
81
67
  constructor(componentWidgetSlot) {
82
68
  this.componentWidgetSlot = componentWidgetSlot;
83
69
  }
84
- static async provider([componentUI, componentCompare], config, [componentWidgetSlot]) {
70
+ static async provider([componentUI], config, [componentWidgetSlot]) {
85
71
  const graphUI = new GraphUI(componentWidgetSlot);
86
72
  const section = new (_graph2().GraphSection)(componentWidgetSlot);
87
- const graphSection = new (_graphCompare().GraphCompareSection)();
88
73
  if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);
89
74
  componentUI.registerRoute(section.route);
90
- componentCompare.registerNavigation(graphSection);
91
- componentCompare.registerRoutes([graphSection.route]);
92
75
  return graphUI;
93
76
  }
94
77
  }
95
78
  exports.GraphUI = GraphUI;
96
- _defineProperty(GraphUI, "dependencies", [_component().ComponentAspect, _componentCompare().ComponentCompareAspect]);
79
+ _defineProperty(GraphUI, "dependencies", [_component().ComponentAspect]);
97
80
  _defineProperty(GraphUI, "runtime", _harmonyModules().UIRuntime);
98
81
  _defineProperty(GraphUI, "slots", [_harmony().Slot.withType()]);
99
82
  _defineProperty(GraphUI, "defaultConfig", {
@@ -1 +1 @@
1
- {"version":3,"names":["_harmonyModules","data","require","_harmony","_componentCompare","_component","_graph","_graph2","_graphCompare","_dependenciesGraph","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GraphUI","getDependenciesGraph","DependenciesGraph","registerComponentWidget","componentWidgetSlot","register","constructor","provider","componentUI","componentCompare","config","graphUI","section","GraphSection","graphSection","GraphCompareSection","componentTab","registerNavigation","navigationLink","order","registerRoute","route","registerRoutes","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","GraphAspect","addRuntime"],"sources":["graph.ui.runtime.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/harmony.modules.runtimes';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { Slot } from '@teambit/harmony';\nimport type { ComponentCompareUI } from '@teambit/component-compare';\nimport { ComponentCompareAspect } from '@teambit/component-compare';\nimport type { ComponentUI, ComponentModel } from '@teambit/component';\nimport { ComponentAspect } from '@teambit/component';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphSection } from './ui/graph.section';\nimport { GraphCompareSection } from './graph.compare.section';\nimport { DependenciesGraph } from './ui/dependencies-graph';\n\nexport interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {\n component: ComponentModel;\n}\nexport type ComponentWidget = ComponentType<ComponentWidgetProps>;\nexport type ComponentWidgetSlot = SlotRegistry<ComponentWidget>;\n\nexport type GraphUIConfig = {\n componentTab: boolean;\n};\n\n/**\n * Presents dependencies graph in the component page\n */\nexport class GraphUI {\n getDependenciesGraph() {\n return DependenciesGraph;\n }\n\n /**\n * adds plugins to component nodes\n * @param value\n */\n registerComponentWidget(value: ComponentWidget) {\n this.componentWidgetSlot.register(value);\n }\n\n constructor(private componentWidgetSlot: ComponentWidgetSlot) {}\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ComponentWidget>()];\n static defaultConfig = {\n componentTab: true,\n };\n\n static async provider(\n [componentUI, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: GraphUIConfig,\n [componentWidgetSlot]: [ComponentWidgetSlot]\n ) {\n const graphUI = new GraphUI(componentWidgetSlot);\n const section = new GraphSection(componentWidgetSlot);\n const graphSection = new GraphCompareSection();\n if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);\n componentUI.registerRoute(section.route);\n componentCompare.registerNavigation(graphSection);\n componentCompare.registerRoutes([graphSection.route]);\n return graphUI;\n }\n}\n\nGraphAspect.addRuntime(GraphUI);\n"],"mappings":";;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,kBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,iBAAA,YAA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AeD0B,2BAAS;AAAA7C,eAAA,CAffmB,OAAO,WAgBH,CAAC2B,eAAI,CAACC,QAAQ,CAAkB,CAAC,CAAC;AAAA/C,eAAA,CAhBtCmB,OAAO,mBAiBK;EACrBgB,YAAY,EAAE;AAChB,CAAC;AAkBHa,oBAAW,CAACC,UAAU,CAAC9B,OAAO,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_harmonyModules","data","require","_harmony","_component","_graph","_graph2","_dependenciesGraph","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GraphUI","getDependenciesGraph","DependenciesGraph","registerComponentWidget","componentWidgetSlot","register","constructor","provider","componentUI","config","graphUI","section","GraphSection","componentTab","registerNavigation","navigationLink","order","registerRoute","route","exports","ComponentAspect","UIRuntime","Slot","withType","GraphAspect","addRuntime"],"sources":["graph.ui.runtime.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/harmony.modules.runtimes';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { Slot } from '@teambit/harmony';\nimport type { ComponentUI, ComponentModel } from '@teambit/component';\nimport { ComponentAspect } from '@teambit/component';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphSection } from './ui/graph.section';\nimport { DependenciesGraph } from './ui/dependencies-graph';\n\nexport interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {\n component: ComponentModel;\n}\nexport type ComponentWidget = ComponentType<ComponentWidgetProps>;\nexport type ComponentWidgetSlot = SlotRegistry<ComponentWidget>;\n\nexport type GraphUIConfig = {\n componentTab: boolean;\n};\n\n/**\n * Presents dependencies graph in the component page\n */\nexport class GraphUI {\n getDependenciesGraph() {\n return DependenciesGraph;\n }\n\n /**\n * adds plugins to component nodes\n * @param value\n */\n registerComponentWidget(value: ComponentWidget) {\n this.componentWidgetSlot.register(value);\n }\n\n constructor(private componentWidgetSlot: ComponentWidgetSlot) {}\n static dependencies = [ComponentAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ComponentWidget>()];\n static defaultConfig = {\n componentTab: true,\n };\n\n static async provider(\n [componentUI]: [ComponentUI],\n config: GraphUIConfig,\n [componentWidgetSlot]: [ComponentWidgetSlot]\n ) {\n const graphUI = new GraphUI(componentWidgetSlot);\n const section = new GraphSection(componentWidgetSlot);\n if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);\n componentUI.registerRoute(section.route);\n return graphUI;\n }\n}\n\nGraphAspect.addRuntime(GraphUI);\n"],"mappings":";;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,OAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,MAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,mBAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,kBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA4D,SAAAO,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,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CAAC;IAC9FR,WAAW,CAACS,aAAa,CAACN,OAAO,CAACO,KAAK,CAAC;IACxC,OAAOR,OAAO;EAChB;AACF;AAACS,OAAA,CAAAnB,OAAA,GAAAA,OAAA;AAAAnB,eAAA,CAhCYmB,OAAO,kBAcI,CAACoB,4BAAe,CAAC;AAAAvC,eAAA,CAd5BmB,OAAO,aAeDqB,2BAAS;AAAAxC,eAAA,CAffmB,OAAO,WAgBH,CAACsB,eAAI,CAACC,QAAQ,CAAkB,CAAC,CAAC;AAAA1C,eAAA,CAhBtCmB,OAAO,mBAiBK;EACrBa,YAAY,EAAE;AAChB,CAAC;AAeHW,oBAAW,CAACC,UAAU,CAACzB,OAAO,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.1243/dist/graph.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.1243/dist/graph.docs.md';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.1245/dist/graph.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.1245/dist/graph.docs.md';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -2,13 +2,10 @@ import type { ComponentType } from 'react';
2
2
  import { UIRuntime } from '@teambit/harmony.modules.runtimes';
3
3
  import type { SlotRegistry } from '@teambit/harmony';
4
4
  import { Slot } from '@teambit/harmony';
5
- import type { ComponentCompareUI } from '@teambit/component-compare';
6
- import { ComponentCompareAspect } from '@teambit/component-compare';
7
5
  import type { ComponentUI, ComponentModel } from '@teambit/component';
8
6
  import { ComponentAspect } from '@teambit/component';
9
7
  import { GraphAspect } from './graph.aspect';
10
8
  import { GraphSection } from './ui/graph.section';
11
- import { GraphCompareSection } from './graph.compare.section';
12
9
  import { DependenciesGraph } from './ui/dependencies-graph';
13
10
 
14
11
  export interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -38,7 +35,7 @@ export class GraphUI {
38
35
  }
39
36
 
40
37
  constructor(private componentWidgetSlot: ComponentWidgetSlot) {}
41
- static dependencies = [ComponentAspect, ComponentCompareAspect];
38
+ static dependencies = [ComponentAspect];
42
39
  static runtime = UIRuntime;
43
40
  static slots = [Slot.withType<ComponentWidget>()];
44
41
  static defaultConfig = {
@@ -46,17 +43,14 @@ export class GraphUI {
46
43
  };
47
44
 
48
45
  static async provider(
49
- [componentUI, componentCompare]: [ComponentUI, ComponentCompareUI],
46
+ [componentUI]: [ComponentUI],
50
47
  config: GraphUIConfig,
51
48
  [componentWidgetSlot]: [ComponentWidgetSlot]
52
49
  ) {
53
50
  const graphUI = new GraphUI(componentWidgetSlot);
54
51
  const section = new GraphSection(componentWidgetSlot);
55
- const graphSection = new GraphCompareSection();
56
52
  if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);
57
53
  componentUI.registerRoute(section.route);
58
- componentCompare.registerNavigation(graphSection);
59
- componentCompare.registerRoutes([graphSection.route]);
60
54
  return graphUI;
61
55
  }
62
56
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/graph",
3
- "version": "1.0.1243",
3
+ "version": "1.0.1245",
4
4
  "homepage": "https://bit.cloud/teambit/component/graph",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "graph",
9
- "version": "1.0.1243"
9
+ "version": "1.0.1245"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphlib": "2.1.8",
@@ -14,13 +14,11 @@
14
14
  "graphql-tag": "2.12.1",
15
15
  "classnames": "^2.5.1",
16
16
  "reactflow": "^11.11.3",
17
- "@dagrejs/dagre": "^1.1.2",
18
17
  "semver": "7.7.1",
18
+ "@dagrejs/dagre": "^1.1.2",
19
19
  "@teambit/component-id": "1.2.5",
20
20
  "@teambit/graph.cleargraph": "0.0.11",
21
21
  "@teambit/harmony": "0.4.12",
22
- "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.7",
23
- "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.147",
24
22
  "@teambit/graphql": "1.0.1207",
25
23
  "@teambit/harmony.modules.runtimes": "0.0.4",
26
24
  "@teambit/logger": "0.0.1500",
@@ -39,11 +37,10 @@
39
37
  "@teambit/design.ui.pages.not-found": "0.0.371",
40
38
  "@teambit/design.ui.pages.server-error": "0.0.368",
41
39
  "@teambit/ui-foundation.ui.react-router.use-query": "0.0.505",
42
- "@teambit/legacy.dependency-graph": "0.0.192",
43
- "@teambit/component": "1.0.1230",
44
- "@teambit/cli": "0.0.1420",
45
- "@teambit/scope.remotes": "0.0.189",
46
- "@teambit/component-compare": "1.0.1243"
40
+ "@teambit/legacy.dependency-graph": "0.0.193",
41
+ "@teambit/component": "1.0.1231",
42
+ "@teambit/cli": "0.0.1421",
43
+ "@teambit/scope.remotes": "0.0.190"
47
44
  },
48
45
  "devDependencies": {
49
46
  "@types/graphlib": "2.1.7",
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import type { Section } from '@teambit/component';
3
- import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
4
- import type { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
5
- export declare class GraphCompareSection implements Section, TabItem {
6
- navigationLink: {
7
- href: string;
8
- children: string;
9
- };
10
- props: {
11
- href: string;
12
- children: string;
13
- };
14
- route: {
15
- path: string;
16
- element: React.JSX.Element;
17
- };
18
- order: number;
19
- changeType: ChangeType;
20
- id: string;
21
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.GraphCompareSection = void 0;
7
- function _react() {
8
- const data = _interopRequireDefault(require("react"));
9
- _react = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
- function _componentUiComponentCompareModels() {
15
- const data = require("@teambit/component.ui.component-compare.models.component-compare-change-type");
16
- _componentUiComponentCompareModels = function () {
17
- return data;
18
- };
19
- return data;
20
- }
21
- function _dependenciesCompare() {
22
- const data = require("./ui/dependencies-compare");
23
- _dependenciesCompare = function () {
24
- return data;
25
- };
26
- return data;
27
- }
28
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
29
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
30
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
31
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
32
- class GraphCompareSection {
33
- constructor() {
34
- _defineProperty(this, "navigationLink", {
35
- href: 'dependencies',
36
- children: 'Dependencies'
37
- });
38
- _defineProperty(this, "props", this.navigationLink);
39
- _defineProperty(this, "route", {
40
- path: 'dependencies/*',
41
- element: /*#__PURE__*/_react().default.createElement(_dependenciesCompare().DependenciesCompare, null)
42
- });
43
- _defineProperty(this, "order", 25);
44
- _defineProperty(this, "changeType", _componentUiComponentCompareModels().ChangeType.DEPENDENCY);
45
- _defineProperty(this, "id", 'dependencies');
46
- }
47
- }
48
- exports.GraphCompareSection = GraphCompareSection;
49
-
50
- //# sourceMappingURL=graph.compare.section.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","_componentUiComponentCompareModels","_dependenciesCompare","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GraphCompareSection","constructor","href","children","navigationLink","path","element","createElement","DependenciesCompare","ChangeType","DEPENDENCY","exports"],"sources":["graph.compare.section.tsx"],"sourcesContent":["import React from 'react';\nimport type { Section } from '@teambit/component';\nimport { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';\nimport type { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';\nimport { DependenciesCompare } from './ui/dependencies-compare';\n\nexport class GraphCompareSection implements Section, TabItem {\n navigationLink = {\n href: 'dependencies',\n children: 'Dependencies',\n };\n\n props = this.navigationLink;\n\n route = {\n path: 'dependencies/*',\n element: <DependenciesCompare />,\n };\n\n order = 25;\n changeType = ChangeType.DEPENDENCY;\n id = 'dependencies';\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,mCAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,kCAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,qBAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,oBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAEzD,MAAMgB,mBAAmB,CAA6B;EAAAC,YAAA;IAAAnB,eAAA,yBAC1C;MACfoB,IAAI,EAAE,cAAc;MACpBC,QAAQ,EAAE;IACZ,CAAC;IAAArB,eAAA,gBAEO,IAAI,CAACsB,cAAc;IAAAtB,eAAA,gBAEnB;MACNuB,IAAI,EAAE,gBAAgB;MACtBC,OAAO,eAAEjC,MAAA,GAAAQ,OAAA,CAAA0B,aAAA,CAAC7B,oBAAA,GAAA8B,mBAAmB,MAAE;IACjC,CAAC;IAAA1B,eAAA,gBAEO,EAAE;IAAAA,eAAA,qBACG2B,+CAAU,CAACC,UAAU;IAAA5B,eAAA,aAC7B,cAAc;EAAA;AACrB;AAAC6B,OAAA,CAAAX,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import type { Section } from '@teambit/component';
3
- import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
4
- import type { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
5
- import { DependenciesCompare } from './ui/dependencies-compare';
6
-
7
- export class GraphCompareSection implements Section, TabItem {
8
- navigationLink = {
9
- href: 'dependencies',
10
- children: 'Dependencies',
11
- };
12
-
13
- props = this.navigationLink;
14
-
15
- route = {
16
- path: 'dependencies/*',
17
- element: <DependenciesCompare />,
18
- };
19
-
20
- order = 25;
21
- changeType = ChangeType.DEPENDENCY;
22
- id = 'dependencies';
23
- }