@teambit/graph 0.0.549 → 0.0.555
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/dist/graph.ui.runtime.d.ts +7 -0
- package/dist/ui/dependencies-graph/calc-elements.d.ts +3 -0
- package/dist/ui/dependencies-graph/calc-layout.d.ts +3 -0
- package/dist/ui/dependencies-graph/graph-context.d.ts +1 -0
- package/dist/ui/query/use-graph-query.d.ts +1 -0
- package/package-tar/teambit-graph-0.0.555.tgz +0 -0
- package/package.json +14 -14
- package/tsconfig.json +0 -1
- package/package-tar/teambit-graph-0.0.549.tgz +0 -0
@@ -6,8 +6,15 @@ export interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElemen
|
|
6
6
|
}
|
7
7
|
export declare type ComponentWidget = ComponentType<ComponentWidgetProps>;
|
8
8
|
export declare type ComponentWidgetSlot = SlotRegistry<ComponentWidget>;
|
9
|
+
/**
|
10
|
+
* Presents dependencies graph in the component page
|
11
|
+
*/
|
9
12
|
export declare class GraphUI {
|
10
13
|
private componentWidgetSlot;
|
14
|
+
/**
|
15
|
+
* adds plugins to component nodes
|
16
|
+
* @param value
|
17
|
+
*/
|
11
18
|
registerComponentWidget(value: ComponentWidget): void;
|
12
19
|
constructor(componentWidgetSlot: ComponentWidgetSlot);
|
13
20
|
static dependencies: import("@teambit/harmony").Aspect[];
|
@@ -4,5 +4,8 @@ import { GraphModel } from '../query';
|
|
4
4
|
declare type ElementsOptions = {
|
5
5
|
rootNode?: ComponentID;
|
6
6
|
};
|
7
|
+
/**
|
8
|
+
* generate Nodes and Edges for the ReactFlowRenderer graph renderer
|
9
|
+
*/
|
7
10
|
export declare function calcElements(graph: GraphModel | undefined, { rootNode }: ElementsOptions): (Node<any> | Edge<any>)[];
|
8
11
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { GraphQlError } from '@teambit/graphql';
|
2
2
|
import { GraphModel } from './graph-model';
|
3
|
+
/** provides dependencies graph data from graphQL */
|
3
4
|
export declare function useGraphQuery(componentId: string[], filter?: string): {
|
4
5
|
graph: GraphModel | undefined;
|
5
6
|
error: GraphQlError | undefined;
|
Binary file
|
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.555",
|
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.555"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"@teambit/harmony": "0.2.11",
|
13
13
|
"graphql-tag": "2.12.1",
|
14
14
|
"cleargraph": "7.0.0",
|
15
15
|
"lodash": "4.17.21",
|
16
|
+
"classnames": "2.2.6",
|
16
17
|
"react-flow-renderer": "8.3.7",
|
17
18
|
"dagre": "0.8.5",
|
18
|
-
"classnames": "2.2.6",
|
19
19
|
"react-router-dom": "5.2.0",
|
20
20
|
"@babel/runtime": "7.12.18",
|
21
21
|
"core-js": "^3.0.0",
|
@@ -23,23 +23,23 @@
|
|
23
23
|
"@teambit/base-ui.text.muted-text": "1.0.1",
|
24
24
|
"@teambit/evangelist.input.checkbox.label": "1.0.3",
|
25
25
|
"@teambit/documenter.ui.heading": "4.1.1",
|
26
|
-
"@teambit/component": "0.0.
|
27
|
-
"@teambit/graphql": "0.0.
|
28
|
-
"@teambit/cli": "0.0.
|
29
|
-
"@teambit/ui": "0.0.
|
30
|
-
"@teambit/legacy-bit-id": "0.0.
|
31
|
-
"@teambit/component.ui.deprecation-icon": "0.0.
|
26
|
+
"@teambit/component": "0.0.555",
|
27
|
+
"@teambit/graphql": "0.0.555",
|
28
|
+
"@teambit/cli": "0.0.386",
|
29
|
+
"@teambit/ui": "0.0.555",
|
30
|
+
"@teambit/legacy-bit-id": "0.0.375",
|
31
|
+
"@teambit/component.ui.deprecation-icon": "0.0.469",
|
32
32
|
"@teambit/design.ui.styles.ellipsis": "0.0.346",
|
33
|
-
"@teambit/envs.ui.env-icon": "0.0.
|
33
|
+
"@teambit/envs.ui.env-icon": "0.0.463",
|
34
34
|
"@teambit/design.ui.pages.not-found": "0.0.352",
|
35
35
|
"@teambit/design.ui.pages.server-error": "0.0.352",
|
36
|
-
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.
|
36
|
+
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.464"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/react": "^17.0.8",
|
40
40
|
"@types/lodash": "4.14.165",
|
41
|
-
"@types/dagre": "0.7.44",
|
42
41
|
"@types/classnames": "2.2.11",
|
42
|
+
"@types/dagre": "0.7.44",
|
43
43
|
"@types/react-router-dom": "5.1.7",
|
44
44
|
"@types/mocha": "5.2.7",
|
45
45
|
"@types/testing-library__jest-dom": "5.9.5",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
51
51
|
"@apollo/client": "^3.0.0",
|
52
|
-
"@teambit/legacy": "1.0.
|
52
|
+
"@teambit/legacy": "1.0.172",
|
53
53
|
"react-dom": "^16.8.0 || ^17.0.0",
|
54
54
|
"react": "^16.8.0 || ^17.0.0"
|
55
55
|
},
|
@@ -77,7 +77,7 @@
|
|
77
77
|
"react": "-"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
|
-
"@teambit/legacy": "1.0.
|
80
|
+
"@teambit/legacy": "1.0.172",
|
81
81
|
"react-dom": "^16.8.0 || ^17.0.0",
|
82
82
|
"react": "^16.8.0 || ^17.0.0"
|
83
83
|
}
|
package/tsconfig.json
CHANGED
Binary file
|