@teambit/graph 0.0.988 → 0.0.990
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 +1 @@
|
|
1
|
-
{"version":3,"names":["GraphBuilder","constructor","componentAspect","getGraph","ids","opts","componentHost","host","getHost","graph","componentGraph","toComponentGraph","seederIds","listIds","getGraphIds","componentIdGraph","ComponentIdGraph","nodes","edges","newGraph","ComponentGraph","forEach","node","setNode","edge","edgeObj","attr","Dependency","setEdge","Edge","sourceId","targetId"],"sources":["graph-builder.ts"],"sourcesContent":["import { Component, ComponentFactory, ComponentID, ComponentMain } from '@teambit/component';\nimport { Edge, Graph } from '@teambit/graph.cleargraph';\nimport { ComponentGraph } from './component-graph';\nimport { ComponentIdGraph } from './component-id-graph';\nimport { Dependency } from './model/dependency';\n\nexport type GetGraphOpts = {\n host?: ComponentFactory;\n};\n\nexport class GraphBuilder {\n constructor(private componentAspect: ComponentMain) {}\n\n /**\n * important - prefer using `getGraphIds()` it's way better in terms of performance.\n */\n async getGraph(ids?: ComponentID[], opts: GetGraphOpts = {}): Promise<ComponentGraph> {\n const componentHost = opts.host || this.componentAspect.getHost();\n\n const graph = await componentHost.getGraph(ids, false);\n const componentGraph = await this.toComponentGraph(graph);\n componentGraph.seederIds = ids || (await componentHost.listIds());\n return componentGraph;\n }\n\n async getGraphIds(ids?: ComponentID[], opts: GetGraphOpts = {}): Promise<ComponentIdGraph> {\n const componentHost = opts.host || this.componentAspect.getHost();\n\n const graph = await componentHost.getGraphIds(ids, false);\n const componentIdGraph = new ComponentIdGraph(graph.nodes, graph.edges);\n componentIdGraph.seederIds = ids || (await componentHost.listIds());\n return componentIdGraph;\n }\n\n private async toComponentGraph(graph: Graph<Component, string>): Promise<ComponentGraph> {\n const newGraph = new ComponentGraph();\n graph.nodes.forEach((node) => {\n newGraph.setNode(node);\n });\n graph.edges.forEach((edge) => {\n const edgeObj
|
1
|
+
{"version":3,"names":["GraphBuilder","constructor","componentAspect","getGraph","ids","opts","componentHost","host","getHost","graph","componentGraph","toComponentGraph","seederIds","listIds","getGraphIds","componentIdGraph","ComponentIdGraph","nodes","edges","newGraph","ComponentGraph","forEach","node","setNode","edge","edgeObj","attr","Dependency","setEdge","Edge","sourceId","targetId"],"sources":["graph-builder.ts"],"sourcesContent":["import { Component, ComponentFactory, ComponentID, ComponentMain } from '@teambit/component';\nimport { Edge, Graph } from '@teambit/graph.cleargraph';\nimport { ComponentGraph } from './component-graph';\nimport { ComponentIdGraph } from './component-id-graph';\nimport { Dependency } from './model/dependency';\n\nexport type GetGraphOpts = {\n host?: ComponentFactory;\n};\n\nexport class GraphBuilder {\n constructor(private componentAspect: ComponentMain) {}\n\n /**\n * important - prefer using `getGraphIds()` it's way better in terms of performance.\n */\n async getGraph(ids?: ComponentID[], opts: GetGraphOpts = {}): Promise<ComponentGraph> {\n const componentHost = opts.host || this.componentAspect.getHost();\n\n const graph = await componentHost.getGraph(ids, false);\n const componentGraph = await this.toComponentGraph(graph);\n componentGraph.seederIds = ids || (await componentHost.listIds());\n return componentGraph;\n }\n\n async getGraphIds(ids?: ComponentID[], opts: GetGraphOpts = {}): Promise<ComponentIdGraph> {\n const componentHost = opts.host || this.componentAspect.getHost();\n\n const graph = await componentHost.getGraphIds(ids, false);\n const componentIdGraph = new ComponentIdGraph(graph.nodes, graph.edges);\n componentIdGraph.seederIds = ids || (await componentHost.listIds());\n return componentIdGraph;\n }\n\n private async toComponentGraph(graph: Graph<Component, string>): Promise<ComponentGraph> {\n const newGraph = new ComponentGraph();\n graph.nodes.forEach((node) => {\n newGraph.setNode(node);\n });\n graph.edges.forEach((edge) => {\n const edgeObj =\n edge.attr === 'dependencies' || edge.attr === 'runtime' ? new Dependency('runtime') : new Dependency('dev');\n newGraph.setEdge(new Edge(edge.sourceId, edge.targetId, edgeObj));\n });\n return newGraph;\n }\n}\n"],"mappings":";;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;E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,IAAI,IAAK;MAC5BH,QAAQ,CAACI,OAAO,CAACD,IAAI,CAAC;IACxB,CAAC,CAAC;IACFb,KAAK,CAACS,KAAK,CAACG,OAAO,CAAEG,IAAI,IAAK;MAC5B,MAAMC,OAAO,GACXD,IAAI,CAACE,IAAI,KAAK,cAAc,IAAIF,IAAI,CAACE,IAAI,KAAK,SAAS,GAAG,KAAIC,wBAAU,EAAC,SAAS,CAAC,GAAG,KAAIA,wBAAU,EAAC,KAAK,CAAC;MAC7GR,QAAQ,CAACS,OAAO,CAAC,KAAIC,aAAI,EAACL,IAAI,CAACM,QAAQ,EAAEN,IAAI,CAACO,QAAQ,EAAEN,OAAO,CAAC,CAAC;IACnE,CAAC,CAAC;IACF,OAAON,QAAQ;EACjB;AACF;AAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.990/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.990/dist/graph.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.990",
|
4
4
|
"homepage": "https://bit.dev/teambit/component/graph",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "graph",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.990"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"lodash": "4.17.21",
|
@@ -15,8 +15,8 @@
|
|
15
15
|
"graphql-tag": "2.12.1",
|
16
16
|
"classnames": "2.2.6",
|
17
17
|
"react-flow-renderer": "8.3.7",
|
18
|
-
"semver": "7.3.4",
|
19
18
|
"dagre": "0.8.5",
|
19
|
+
"semver": "7.3.4",
|
20
20
|
"core-js": "^3.0.0",
|
21
21
|
"@babel/runtime": "7.20.0",
|
22
22
|
"@teambit/graph.cleargraph": "0.0.1",
|
@@ -26,25 +26,25 @@
|
|
26
26
|
"@teambit/base-ui.text.muted-text": "1.0.1",
|
27
27
|
"@teambit/evangelist.input.checkbox.label": "1.0.3",
|
28
28
|
"@teambit/documenter.ui.heading": "4.1.1",
|
29
|
-
"@teambit/component": "0.0.
|
30
|
-
"@teambit/cli": "0.0.
|
31
|
-
"@teambit/legacy-bit-id": "0.0.
|
29
|
+
"@teambit/component": "0.0.990",
|
30
|
+
"@teambit/cli": "0.0.664",
|
31
|
+
"@teambit/legacy-bit-id": "0.0.423",
|
32
32
|
"@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.1",
|
33
|
-
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.
|
34
|
-
"@teambit/graphql": "0.0.
|
35
|
-
"@teambit/logger": "0.0.
|
36
|
-
"@teambit/component-compare": "0.0.
|
37
|
-
"@teambit/ui": "0.0.
|
38
|
-
"@teambit/component.modules.component-url": "0.0.
|
33
|
+
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.5",
|
34
|
+
"@teambit/graphql": "0.0.990",
|
35
|
+
"@teambit/logger": "0.0.757",
|
36
|
+
"@teambit/component-compare": "0.0.238",
|
37
|
+
"@teambit/ui": "0.0.990",
|
38
|
+
"@teambit/component.modules.component-url": "0.0.150",
|
39
39
|
"@teambit/component.ui.deprecation-icon": "0.0.504",
|
40
40
|
"@teambit/design.ui.styles.ellipsis": "0.0.357",
|
41
41
|
"@teambit/envs.ui.env-icon": "0.0.495",
|
42
|
-
"@teambit/component.ui.component-compare.context": "0.0.6",
|
43
|
-
"@teambit/design.ui.round-loader": "0.0.355",
|
44
|
-
"@teambit/component.ui.component-compare.status-resolver": "0.0.3",
|
45
42
|
"@teambit/design.ui.pages.not-found": "0.0.366",
|
46
43
|
"@teambit/design.ui.pages.server-error": "0.0.366",
|
47
44
|
"@teambit/ui-foundation.ui.full-loader": "0.0.495",
|
45
|
+
"@teambit/component.ui.component-compare.context": "0.0.6",
|
46
|
+
"@teambit/design.ui.round-loader": "0.0.355",
|
47
|
+
"@teambit/component.ui.component-compare.status-resolver": "0.0.3",
|
48
48
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.500",
|
49
49
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.496"
|
50
50
|
},
|
@@ -53,8 +53,8 @@
|
|
53
53
|
"@types/graphlib": "2.1.7",
|
54
54
|
"@types/react": "^17.0.8",
|
55
55
|
"@types/classnames": "2.2.11",
|
56
|
-
"@types/semver": "7.3.4",
|
57
56
|
"@types/dagre": "0.7.44",
|
57
|
+
"@types/semver": "7.3.4",
|
58
58
|
"@types/mocha": "9.1.0",
|
59
59
|
"@types/node": "12.20.4",
|
60
60
|
"@types/react-dom": "^17.0.5",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
},
|
64
64
|
"peerDependencies": {
|
65
65
|
"@apollo/client": "^3.6.0",
|
66
|
-
"@teambit/legacy": "1.0.
|
66
|
+
"@teambit/legacy": "1.0.445",
|
67
67
|
"react": "^16.8.0 || ^17.0.0",
|
68
68
|
"react-dom": "^16.8.0 || ^17.0.0"
|
69
69
|
},
|
Binary file
|