@teambit/graph 1.0.166 → 1.0.168
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_graph-preview.js +1 -1
- package/artifacts/schema.json +1084 -115
- package/dist/component-id-graph.d.ts +7 -1
- package/dist/component-id-graph.js +80 -0
- package/dist/component-id-graph.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/preview-1708259356169.js +7 -0
- package/package.json +9 -9
- package/dist/preview-1707880563763.js +0 -7
@@ -1,12 +1,16 @@
|
|
1
|
-
import { ComponentID } from '@teambit/component';
|
1
|
+
import { ComponentID } from '@teambit/component-id';
|
2
2
|
import { Graph, Node, Edge } from '@teambit/graph.cleargraph';
|
3
|
+
import type { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';
|
4
|
+
import GraphLib from 'graphlib';
|
3
5
|
export type DepEdgeType = 'prod' | 'dev' | 'ext';
|
4
6
|
type ComponentIdNode = Node<ComponentID>;
|
5
7
|
type DependencyEdge = Edge<DepEdgeType>;
|
6
8
|
export type CompIdGraph = Graph<ComponentID, DepEdgeType>;
|
7
9
|
export declare class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {
|
10
|
+
private _graphLib;
|
8
11
|
seederIds: ComponentID[];
|
9
12
|
constructor(nodes?: ComponentIdNode[], edges?: DependencyEdge[]);
|
13
|
+
get graphLib(): GraphLib.Graph;
|
10
14
|
protected create(nodes?: ComponentIdNode[], edges?: DependencyEdge[]): this;
|
11
15
|
/**
|
12
16
|
* check all the routes from the sources to targets and return the components found during this traversal.
|
@@ -38,6 +42,8 @@ export declare class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {
|
|
38
42
|
findCycles(graph?: this, includeDeps?: boolean): string[][];
|
39
43
|
buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph;
|
40
44
|
runtimeOnly(componentIds: string[]): this;
|
45
|
+
getDependenciesInfo(id: ComponentID): DependenciesInfo[];
|
46
|
+
getDependenciesAsObjectTree(idStr: string): Record<string, any>;
|
41
47
|
private shouldLimitToSeedersOnly;
|
42
48
|
}
|
43
49
|
export {};
|
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.ComponentIdGraph = void 0;
|
7
|
+
function _componentId() {
|
8
|
+
const data = require("@teambit/component-id");
|
9
|
+
_componentId = function () {
|
10
|
+
return data;
|
11
|
+
};
|
12
|
+
return data;
|
13
|
+
}
|
7
14
|
function _graph() {
|
8
15
|
const data = require("@teambit/graph.cleargraph");
|
9
16
|
_graph = function () {
|
@@ -11,6 +18,13 @@ function _graph() {
|
|
11
18
|
};
|
12
19
|
return data;
|
13
20
|
}
|
21
|
+
function _graphlib() {
|
22
|
+
const data = _interopRequireDefault(require("graphlib"));
|
23
|
+
_graphlib = function () {
|
24
|
+
return data;
|
25
|
+
};
|
26
|
+
return data;
|
27
|
+
}
|
14
28
|
function _lodash() {
|
15
29
|
const data = require("lodash");
|
16
30
|
_lodash = function () {
|
@@ -18,6 +32,7 @@ function _lodash() {
|
|
18
32
|
};
|
19
33
|
return data;
|
20
34
|
}
|
35
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
36
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
22
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
23
38
|
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); }
|
@@ -25,8 +40,22 @@ class ComponentIdGraph extends _graph().Graph {
|
|
25
40
|
// component IDs that started the graph. (if from workspace, the .bitmap ids normally)
|
26
41
|
constructor(nodes = [], edges = []) {
|
27
42
|
super(nodes, edges);
|
43
|
+
_defineProperty(this, "_graphLib", void 0);
|
28
44
|
_defineProperty(this, "seederIds", []);
|
29
45
|
}
|
46
|
+
get graphLib() {
|
47
|
+
if (!this._graphLib) {
|
48
|
+
// convert clearGraph to graphLib
|
49
|
+
this._graphLib = new (_graphlib().default.Graph)();
|
50
|
+
this.nodes.forEach(node => {
|
51
|
+
this._graphLib.setNode(node.id.toString());
|
52
|
+
});
|
53
|
+
this.edges.forEach(edge => {
|
54
|
+
this._graphLib.setEdge(edge.sourceId.toString(), edge.targetId.toString(), edge.attr);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
return this._graphLib;
|
58
|
+
}
|
30
59
|
create(nodes = [], edges = []) {
|
31
60
|
return new ComponentIdGraph(nodes, edges);
|
32
61
|
}
|
@@ -148,6 +177,57 @@ class ComponentIdGraph extends _graph().Graph {
|
|
148
177
|
edgeFilter: edge => edge.attr === 'prod'
|
149
178
|
});
|
150
179
|
}
|
180
|
+
getDependenciesInfo(id) {
|
181
|
+
const dijkstraResults = _graphlib().default.alg.dijkstra(this.graphLib, id.toString());
|
182
|
+
const dependencies = [];
|
183
|
+
Object.keys(dijkstraResults).forEach(idStr => {
|
184
|
+
const distance = dijkstraResults[idStr].distance;
|
185
|
+
if (distance === Infinity || distance === 0) {
|
186
|
+
// there is no dependency or it's the same component (distance zero)
|
187
|
+
return;
|
188
|
+
}
|
189
|
+
const predecessor = dijkstraResults[idStr].predecessor;
|
190
|
+
const dependencyType = this.edge(predecessor, idStr);
|
191
|
+
dependencies.push({
|
192
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
193
|
+
id: this.node(idStr).attr,
|
194
|
+
depth: distance,
|
195
|
+
parent: predecessor,
|
196
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
197
|
+
dependencyType: dependencyType.attr
|
198
|
+
});
|
199
|
+
});
|
200
|
+
dependencies.sort((a, b) => a.depth - b.depth);
|
201
|
+
return dependencies;
|
202
|
+
}
|
203
|
+
getDependenciesAsObjectTree(idStr) {
|
204
|
+
const depsInfo = this.getDependenciesInfo(_componentId().ComponentID.fromString(idStr));
|
205
|
+
const populateTreeItems = (id, treeItems) => {
|
206
|
+
const children = depsInfo.filter(depInfo => depInfo.parent === id);
|
207
|
+
if (!children || children.length === 0) {
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
children.forEach(child => {
|
211
|
+
const {
|
212
|
+
id: compId
|
213
|
+
} = child;
|
214
|
+
const label = compId.toString();
|
215
|
+
const currentNodes = [];
|
216
|
+
treeItems.push({
|
217
|
+
label,
|
218
|
+
nodes: currentNodes
|
219
|
+
});
|
220
|
+
populateTreeItems(label, currentNodes);
|
221
|
+
});
|
222
|
+
};
|
223
|
+
const currentNodes = [];
|
224
|
+
const tree = {
|
225
|
+
label: idStr,
|
226
|
+
nodes: currentNodes
|
227
|
+
};
|
228
|
+
populateTreeItems(idStr, currentNodes);
|
229
|
+
return tree;
|
230
|
+
}
|
151
231
|
shouldLimitToSeedersOnly() {
|
152
232
|
return this.seederIds.length;
|
153
233
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_graph","data","require","_lodash","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentIdGraph","Graph","constructor","nodes","edges","create","findIdsFromSourcesToTargets","sources","targets","through","removeVerFromIdStr","idStr","split","sourcesStr","map","s","toStringWithoutVersion","targetsStr","allFlattened","source","successors","toString","flat","allFlattenedIds","uniq","f","id","results","forEach","idWithNoVer","includes","allSuccessors","allSuccessorsWithNoVersion","find","push","componentIds","getNodes","n","attr","length","resultsWithThrough","throughStr","allGraph","subgraph","allGraphWithNoVersion","every","findAllPathsFromSourcesToTargets","traverseDFS","node","visitedInPath","visitedInGraph","allPaths","Array","from","successorMap","values","filter","pathWithVer","pathWithoutVer","p","filtered","path","firstDep","sort","a","b","findCycles","graph","includeDeps","cycles","shouldLimitToSeedersOnly","seederIdsStr","seederIds","cyclesWithSeeders","cycle","some","cycleIdStr","buildFromCleargraph","runtimeOnly","successorsSubgraph","edgeFilter","edge","exports"],"sources":["component-id-graph.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component';\nimport { Graph, Node, Edge } from '@teambit/graph.cleargraph';\nimport { uniq } from 'lodash';\n\nexport type DepEdgeType = 'prod' | 'dev' | 'ext';\n\ntype ComponentIdNode = Node<ComponentID>;\ntype DependencyEdge = Edge<DepEdgeType>;\nexport type CompIdGraph = Graph<ComponentID, DepEdgeType>;\n\nexport class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {\n seederIds: ComponentID[] = []; // component IDs that started the graph. (if from workspace, the .bitmap ids normally)\n constructor(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []) {\n super(nodes, edges);\n }\n\n protected create(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []): this {\n return new ComponentIdGraph(nodes, edges) as this;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const sourcesStr = sources.map((s) => s.toStringWithoutVersion());\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n const allFlattened = sources.map((source) => this.successors(source.toString())).flat();\n const allFlattenedIds = uniq(allFlattened.map((f) => f.id));\n const results: string[] = [];\n allFlattenedIds.forEach((id) => {\n const idWithNoVer = removeVerFromIdStr(id);\n if (sourcesStr.includes(idWithNoVer) || targetsStr.includes(idWithNoVer)) return;\n const allSuccessors = this.successors(id);\n const allSuccessorsWithNoVersion = allSuccessors.map((s) => removeVerFromIdStr(s.id));\n if (allSuccessorsWithNoVersion.find((s) => targetsStr.includes(s))) results.push(id);\n });\n const componentIds = this.getNodes(results).map((n) => n.attr);\n\n if (!through?.length) {\n return componentIds;\n }\n\n const resultsWithThrough: ComponentID[] = [];\n const throughStr = through.map((t) => t.toStringWithoutVersion());\n componentIds.forEach((id) => {\n const allGraph = this.subgraph(id.toString()).nodes.map((n) => n.id); // successors and predecessors\n const allGraphWithNoVersion = allGraph.map((s) => removeVerFromIdStr(s));\n if (throughStr.every((t) => allGraphWithNoVersion.includes(t))) resultsWithThrough.push(id);\n });\n\n return resultsWithThrough;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findAllPathsFromSourcesToTargets(\n sources: ComponentID[],\n targets: ComponentID[],\n through?: ComponentID[]\n ): string[][] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n\n const traverseDFS = (\n node: string,\n visitedInPath: string[],\n visitedInGraph: string[] = [],\n allPaths: string[][]\n ) => {\n if (visitedInPath.includes(node)) return;\n visitedInPath.push(node);\n if (targetsStr.includes(removeVerFromIdStr(node))) {\n allPaths.push(visitedInPath);\n return;\n }\n if (visitedInGraph.includes(node)) return;\n visitedInGraph.push(node);\n const successors = Array.from(this.successorMap(node).values());\n successors.forEach((s) => {\n traverseDFS(s.id, [...visitedInPath], visitedInGraph, allPaths);\n });\n };\n\n let allPaths: string[][] = [];\n sources.forEach((source) => {\n traverseDFS(source.toString(), [], [], allPaths);\n });\n\n if (through?.length) {\n allPaths = allPaths.filter((pathWithVer) => {\n const pathWithoutVer = pathWithVer.map((p) => removeVerFromIdStr(p));\n return through.every((t) => pathWithoutVer.includes(t.toStringWithoutVersion()));\n });\n }\n\n const sourcesStr = sources.map((s) => s.toString());\n const filtered = allPaths.filter((path) => {\n if (path.length < 3) {\n // if length is 1, the source and target are the same.\n // if length is 2, the target is a direct dependency of the source. we don't care about it.\n return false;\n }\n const [, firstDep] = path;\n if (sourcesStr.includes(firstDep)) {\n // the first item is the source. the second item \"firstDep\" can be a direct dependency of one of the sources.\n // if this is the case, we have already an exact path without this firstDep.\n return true;\n }\n return true;\n });\n\n return filtered.sort((a, b) => a.length - b.length);\n }\n\n /**\n * overrides the super class to eliminate non-seeders components\n */\n findCycles(graph?: this, includeDeps = false): string[][] {\n const cycles = super.findCycles(graph);\n if (!this.shouldLimitToSeedersOnly() || includeDeps) {\n return cycles;\n }\n const seederIdsStr = this.seederIds.map((id) => id.toString());\n const cyclesWithSeeders = cycles.filter((cycle) => {\n return cycle.some((cycleIdStr) => seederIdsStr.includes(cycleIdStr));\n });\n return cyclesWithSeeders;\n }\n\n buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph {\n return this.create(graph.nodes, graph.edges);\n }\n\n runtimeOnly(componentIds: string[]) {\n return this.successorsSubgraph(componentIds, {\n edgeFilter: (edge: DependencyEdge) => edge.attr === 'prod',\n });\n }\n\n private shouldLimitToSeedersOnly() {\n return this.seederIds.length;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,K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AKA,IAAI,CAAC3C,IAAI,KAAK;IACtD,CAAC,CAAC;EACJ;EAEQgC,wBAAwBA,CAAA,EAAG;IACjC,OAAO,IAAI,CAACE,SAAS,CAACjC,MAAM;EAC9B;AACF;AAAC2C,OAAA,CAAAlF,gBAAA,GAAAA,gBAAA"}
|
1
|
+
{"version":3,"names":["_componentId","data","require","_graph","_graphlib","_interopRequireDefault","_lodash","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentIdGraph","Graph","constructor","nodes","edges","graphLib","_graphLib","GraphLib","forEach","node","setNode","id","toString","edge","setEdge","sourceId","targetId","attr","create","findIdsFromSourcesToTargets","sources","targets","through","removeVerFromIdStr","idStr","split","sourcesStr","map","s","toStringWithoutVersion","targetsStr","allFlattened","source","successors","flat","allFlattenedIds","uniq","f","results","idWithNoVer","includes","allSuccessors","allSuccessorsWithNoVersion","find","push","componentIds","getNodes","n","length","resultsWithThrough","throughStr","allGraph","subgraph","allGraphWithNoVersion","every","findAllPathsFromSourcesToTargets","traverseDFS","visitedInPath","visitedInGraph","allPaths","Array","from","successorMap","values","filter","pathWithVer","pathWithoutVer","p","filtered","path","firstDep","sort","a","b","findCycles","graph","includeDeps","cycles","shouldLimitToSeedersOnly","seederIdsStr","seederIds","cyclesWithSeeders","cycle","some","cycleIdStr","buildFromCleargraph","runtimeOnly","successorsSubgraph","edgeFilter","getDependenciesInfo","dijkstraResults","alg","dijkstra","dependencies","keys","distance","Infinity","predecessor","dependencyType","depth","parent","getDependenciesAsObjectTree","depsInfo","ComponentID","fromString","populateTreeItems","treeItems","children","depInfo","child","compId","label","currentNodes","tree","exports"],"sources":["component-id-graph.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { Graph, Node, Edge } from '@teambit/graph.cleargraph';\nimport type { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';\nimport GraphLib from 'graphlib';\nimport { uniq } from 'lodash';\n\nexport type DepEdgeType = 'prod' | 'dev' | 'ext';\n\ntype ComponentIdNode = Node<ComponentID>;\ntype DependencyEdge = Edge<DepEdgeType>;\nexport type CompIdGraph = Graph<ComponentID, DepEdgeType>;\n\nexport class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {\n private _graphLib: GraphLib.Graph;\n seederIds: ComponentID[] = []; // component IDs that started the graph. (if from workspace, the .bitmap ids normally)\n constructor(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []) {\n super(nodes, edges);\n }\n\n get graphLib() {\n if (!this._graphLib) {\n // convert clearGraph to graphLib\n this._graphLib = new GraphLib.Graph();\n this.nodes.forEach((node) => {\n this._graphLib.setNode(node.id.toString());\n });\n this.edges.forEach((edge) => {\n this._graphLib.setEdge(edge.sourceId.toString(), edge.targetId.toString(), edge.attr);\n });\n }\n return this._graphLib;\n }\n\n protected create(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []): this {\n return new ComponentIdGraph(nodes, edges) as this;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const sourcesStr = sources.map((s) => s.toStringWithoutVersion());\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n const allFlattened = sources.map((source) => this.successors(source.toString())).flat();\n const allFlattenedIds = uniq(allFlattened.map((f) => f.id));\n const results: string[] = [];\n allFlattenedIds.forEach((id) => {\n const idWithNoVer = removeVerFromIdStr(id);\n if (sourcesStr.includes(idWithNoVer) || targetsStr.includes(idWithNoVer)) return;\n const allSuccessors = this.successors(id);\n const allSuccessorsWithNoVersion = allSuccessors.map((s) => removeVerFromIdStr(s.id));\n if (allSuccessorsWithNoVersion.find((s) => targetsStr.includes(s))) results.push(id);\n });\n const componentIds = this.getNodes(results).map((n) => n.attr);\n\n if (!through?.length) {\n return componentIds;\n }\n\n const resultsWithThrough: ComponentID[] = [];\n const throughStr = through.map((t) => t.toStringWithoutVersion());\n componentIds.forEach((id) => {\n const allGraph = this.subgraph(id.toString()).nodes.map((n) => n.id); // successors and predecessors\n const allGraphWithNoVersion = allGraph.map((s) => removeVerFromIdStr(s));\n if (throughStr.every((t) => allGraphWithNoVersion.includes(t))) resultsWithThrough.push(id);\n });\n\n return resultsWithThrough;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findAllPathsFromSourcesToTargets(\n sources: ComponentID[],\n targets: ComponentID[],\n through?: ComponentID[]\n ): string[][] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n\n const traverseDFS = (\n node: string,\n visitedInPath: string[],\n visitedInGraph: string[] = [],\n allPaths: string[][]\n ) => {\n if (visitedInPath.includes(node)) return;\n visitedInPath.push(node);\n if (targetsStr.includes(removeVerFromIdStr(node))) {\n allPaths.push(visitedInPath);\n return;\n }\n if (visitedInGraph.includes(node)) return;\n visitedInGraph.push(node);\n const successors = Array.from(this.successorMap(node).values());\n successors.forEach((s) => {\n traverseDFS(s.id, [...visitedInPath], visitedInGraph, allPaths);\n });\n };\n\n let allPaths: string[][] = [];\n sources.forEach((source) => {\n traverseDFS(source.toString(), [], [], allPaths);\n });\n\n if (through?.length) {\n allPaths = allPaths.filter((pathWithVer) => {\n const pathWithoutVer = pathWithVer.map((p) => removeVerFromIdStr(p));\n return through.every((t) => pathWithoutVer.includes(t.toStringWithoutVersion()));\n });\n }\n\n const sourcesStr = sources.map((s) => s.toString());\n const filtered = allPaths.filter((path) => {\n if (path.length < 3) {\n // if length is 1, the source and target are the same.\n // if length is 2, the target is a direct dependency of the source. we don't care about it.\n return false;\n }\n const [, firstDep] = path;\n if (sourcesStr.includes(firstDep)) {\n // the first item is the source. the second item \"firstDep\" can be a direct dependency of one of the sources.\n // if this is the case, we have already an exact path without this firstDep.\n return true;\n }\n return true;\n });\n\n return filtered.sort((a, b) => a.length - b.length);\n }\n\n /**\n * overrides the super class to eliminate non-seeders components\n */\n findCycles(graph?: this, includeDeps = false): string[][] {\n const cycles = super.findCycles(graph);\n if (!this.shouldLimitToSeedersOnly() || includeDeps) {\n return cycles;\n }\n const seederIdsStr = this.seederIds.map((id) => id.toString());\n const cyclesWithSeeders = cycles.filter((cycle) => {\n return cycle.some((cycleIdStr) => seederIdsStr.includes(cycleIdStr));\n });\n return cyclesWithSeeders;\n }\n\n buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph {\n return this.create(graph.nodes, graph.edges);\n }\n\n runtimeOnly(componentIds: string[]) {\n return this.successorsSubgraph(componentIds, {\n edgeFilter: (edge: DependencyEdge) => edge.attr === 'prod',\n });\n }\n\n getDependenciesInfo(id: ComponentID): DependenciesInfo[] {\n const dijkstraResults = GraphLib.alg.dijkstra(this.graphLib, id.toString());\n const dependencies: DependenciesInfo[] = [];\n Object.keys(dijkstraResults).forEach((idStr) => {\n const distance = dijkstraResults[idStr].distance;\n if (distance === Infinity || distance === 0) {\n // there is no dependency or it's the same component (distance zero)\n return;\n }\n const predecessor = dijkstraResults[idStr].predecessor;\n const dependencyType = this.edge(predecessor, idStr);\n dependencies.push({\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n id: this.node(idStr)!.attr,\n depth: distance,\n parent: predecessor,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n dependencyType: dependencyType!.attr,\n });\n });\n dependencies.sort((a, b) => a.depth - b.depth);\n return dependencies;\n }\n\n getDependenciesAsObjectTree(idStr: string): Record<string, any> {\n const depsInfo = this.getDependenciesInfo(ComponentID.fromString(idStr));\n const populateTreeItems = (id: string, treeItems: Array<{ label: string; nodes?: Array<Record<string, any>> }>) => {\n const children = depsInfo.filter((depInfo) => depInfo.parent === id);\n if (!children || children.length === 0) {\n return;\n }\n children.forEach((child) => {\n const { id: compId } = child;\n const label = compId.toString();\n const currentNodes = [];\n treeItems.push({ label, nodes: currentNodes });\n populateTreeItems(label, currentNodes);\n });\n };\n\n const currentNodes = [];\n const tree = { label: idStr, nodes: currentNodes };\n populateTreeItems(idStr, currentNodes);\n return tree;\n }\n\n private shouldLimitToSeedersOnly() {\n return this.seederIds.length;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAH,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;AAA8B,SAAAI,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,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,KAAK,EAAE6G;IAAa,CAAC;IAClDP,iBAAiB,CAACjF,KAAK,EAAEwF,YAAY,CAAC;IACtC,OAAOC,IAAI;EACb;EAEQnC,wBAAwBA,CAAA,EAAG;IACjC,OAAO,IAAI,CAACE,SAAS,CAAChC,MAAM;EAC9B;AACF;AAACkE,OAAA,CAAAlH,gBAAA,GAAAA,gBAAA"}
|
package/dist/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export { GraphFilters, styles as graphPageStyles } from './ui/graph-page';
|
|
8
8
|
export { EdgeModel, GraphModel, NodeModel, useGraph, useGraphQuery } from './ui/query';
|
9
9
|
export { styles as componentNodeStyles, root, defaultNode, external } from './ui/component-node';
|
10
10
|
export type { RawGraph } from './ui/query';
|
11
|
-
export type { CompIdGraph, DepEdgeType } from './component-id-graph';
|
11
|
+
export type { CompIdGraph, DepEdgeType, ComponentIdGraph } from './component-id-graph';
|
12
12
|
export type { ComponentGraph } from './component-graph';
|
13
13
|
export type { ComponentWidget, ComponentWidgetProps, ComponentWidgetSlot, GraphUI } from './graph.ui.runtime';
|
14
14
|
export { EdgeType } from './edge-type';
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_dependenciesCompare","data","require","_dependency","_duplicateDependency","_graph","_objectListToGraph","_dependenciesGraph","_graphPage","_query","_componentNode","_edgeType"],"sources":["index.ts"],"sourcesContent":["export { DependenciesCompare } from './ui/dependencies-compare';\nexport { Dependency } from './model/dependency';\nexport { DuplicateDependency } from './duplicate-dependency';\nexport { GraphAspect as default, GraphAspect } from './graph.aspect';\nexport { IdGraph, objectListToGraph, bitObjectListToGraph } from './object-list-to-graph';\nexport {\n calcElements,\n calcLayout,\n calcMinimapColors,\n depTypeToClass,\n depTypeToLabel,\n styles as dependenciesGraphStyles,\n} from './ui/dependencies-graph';\nexport { GraphFilters, styles as graphPageStyles } from './ui/graph-page';\nexport { EdgeModel, GraphModel, NodeModel, useGraph, useGraphQuery } from './ui/query';\nexport { styles as componentNodeStyles, root, defaultNode, external } from './ui/component-node';\nexport type { RawGraph } from './ui/query';\nexport type { CompIdGraph, DepEdgeType } from './component-id-graph';\nexport type { ComponentGraph } from './component-graph';\nexport type { ComponentWidget, ComponentWidgetProps, ComponentWidgetSlot, GraphUI } from './graph.ui.runtime';\nexport { EdgeType } from './edge-type';\nexport type { GraphBuilder } from './graph-builder';\nexport type { GraphFilter } from './model/graph-filters';\nexport type { GraphMain } from './graph.main.runtime';\nexport type { VersionSubgraph } from './duplicate-dependency';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,qBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,oBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,qBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,oBAAA,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,mBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,kBAAA,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;AAQA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,MAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,eAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,cAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAU,UAAA;EAAA,MAAAV,IAAA,GAAAC,OAAA;EAAAS,SAAA,YAAAA,CAAA;IAAA,OAAAV,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA"}
|
1
|
+
{"version":3,"names":["_dependenciesCompare","data","require","_dependency","_duplicateDependency","_graph","_objectListToGraph","_dependenciesGraph","_graphPage","_query","_componentNode","_edgeType"],"sources":["index.ts"],"sourcesContent":["export { DependenciesCompare } from './ui/dependencies-compare';\nexport { Dependency } from './model/dependency';\nexport { DuplicateDependency } from './duplicate-dependency';\nexport { GraphAspect as default, GraphAspect } from './graph.aspect';\nexport { IdGraph, objectListToGraph, bitObjectListToGraph } from './object-list-to-graph';\nexport {\n calcElements,\n calcLayout,\n calcMinimapColors,\n depTypeToClass,\n depTypeToLabel,\n styles as dependenciesGraphStyles,\n} from './ui/dependencies-graph';\nexport { GraphFilters, styles as graphPageStyles } from './ui/graph-page';\nexport { EdgeModel, GraphModel, NodeModel, useGraph, useGraphQuery } from './ui/query';\nexport { styles as componentNodeStyles, root, defaultNode, external } from './ui/component-node';\nexport type { RawGraph } from './ui/query';\nexport type { CompIdGraph, DepEdgeType, ComponentIdGraph } from './component-id-graph';\nexport type { ComponentGraph } from './component-graph';\nexport type { ComponentWidget, ComponentWidgetProps, ComponentWidgetSlot, GraphUI } from './graph.ui.runtime';\nexport { EdgeType } from './edge-type';\nexport type { GraphBuilder } from './graph-builder';\nexport type { GraphFilter } from './model/graph-filters';\nexport type { GraphMain } from './graph.main.runtime';\nexport type { VersionSubgraph } from './duplicate-dependency';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,qBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,oBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,qBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,oBAAA,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,mBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,kBAAA,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;AAQA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,MAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,eAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,cAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAU,UAAA;EAAA,MAAAV,IAAA,GAAAC,OAAA;EAAAS,SAAA,YAAAA,CAAA;IAAA,OAAAV,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/95c2f3515392701f327019ce43202e7563a02128/teambit.component_graph@1.0.168/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/95c2f3515392701f327019ce43202e7563a02128/teambit.component_graph@1.0.168/dist/graph.docs.md';
|
3
|
+
|
4
|
+
export const compositions = [compositions_0];
|
5
|
+
export const overview = [overview_0];
|
6
|
+
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/package.json
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.168",
|
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.
|
9
|
+
"version": "1.0.168"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
+
"graphlib": "2.1.8",
|
12
13
|
"lodash": "4.17.21",
|
13
14
|
"chalk": "2.4.2",
|
14
|
-
"graphlib": "2.1.8",
|
15
15
|
"graphql-tag": "2.12.1",
|
16
16
|
"classnames": "2.2.6",
|
17
17
|
"react-flow-renderer": "8.3.7",
|
18
18
|
"semver": "7.5.2",
|
19
19
|
"dagre": "0.8.5",
|
20
|
-
"@teambit/graph.cleargraph": "0.0.8",
|
21
20
|
"@teambit/component-id": "1.2.0",
|
21
|
+
"@teambit/graph.cleargraph": "0.0.8",
|
22
22
|
"@teambit/harmony": "0.4.6",
|
23
23
|
"@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.7",
|
24
24
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
@@ -35,20 +35,20 @@
|
|
35
35
|
"@teambit/ui-foundation.ui.full-loader": "0.0.500",
|
36
36
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505",
|
37
37
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
38
|
-
"@teambit/component": "1.0.
|
38
|
+
"@teambit/component": "1.0.168",
|
39
39
|
"@teambit/cli": "0.0.851",
|
40
40
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.103",
|
41
|
-
"@teambit/graphql": "1.0.
|
41
|
+
"@teambit/graphql": "1.0.168",
|
42
42
|
"@teambit/logger": "0.0.944",
|
43
|
-
"@teambit/component-compare": "1.0.
|
44
|
-
"@teambit/ui": "1.0.
|
43
|
+
"@teambit/component-compare": "1.0.168",
|
44
|
+
"@teambit/ui": "1.0.168",
|
45
45
|
"@teambit/component.modules.component-url": "0.0.167",
|
46
46
|
"@teambit/envs.ui.env-icon": "0.0.505",
|
47
47
|
"@teambit/component.ui.component-compare.context": "0.0.118"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
|
-
"@types/lodash": "4.14.165",
|
51
50
|
"@types/graphlib": "2.1.7",
|
51
|
+
"@types/lodash": "4.14.165",
|
52
52
|
"@types/classnames": "2.2.11",
|
53
53
|
"@types/semver": "7.3.4",
|
54
54
|
"@types/dagre": "0.7.44",
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.166/dist/graph.composition.js';
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.166/dist/graph.docs.md';
|
3
|
-
|
4
|
-
export const compositions = [compositions_0];
|
5
|
-
export const overview = [overview_0];
|
6
|
-
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|