@teambit/graph 1.0.65 → 1.0.67
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/esm.d.mts +27 -0
- package/dist/esm.mjs +31 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +19 -44
- package/dist/index.js.map +1 -1
- package/dist/{preview-1700997544567.js → preview-1701228028835.js} +2 -2
- package/esm.mjs +31 -0
- package/package.json +11 -11
package/dist/esm.d.mts
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
export const DependenciesCompare: any;
|
2
|
+
export const Dependency: any;
|
3
|
+
export const DuplicateDependency: any;
|
4
|
+
export const GraphAspect: any;
|
5
|
+
export const IdGraph: any;
|
6
|
+
export const objectListToGraph: any;
|
7
|
+
export const bitObjectListToGraph: any;
|
8
|
+
export const calcElements: any;
|
9
|
+
export const calcLayout: any;
|
10
|
+
export const calcMinimapColors: any;
|
11
|
+
export const depTypeToClass: any;
|
12
|
+
export const depTypeToLabel: any;
|
13
|
+
export const dependenciesGraphStyles: any;
|
14
|
+
export const GraphFilters: any;
|
15
|
+
export const graphPageStyles: any;
|
16
|
+
export const EdgeModel: any;
|
17
|
+
export const GraphModel: any;
|
18
|
+
export const NodeModel: any;
|
19
|
+
export const useGraph: any;
|
20
|
+
export const useGraphQuery: any;
|
21
|
+
export const componentNodeStyles: any;
|
22
|
+
export const root: any;
|
23
|
+
export const defaultNode: any;
|
24
|
+
export const external: any;
|
25
|
+
export const EdgeType: any;
|
26
|
+
export default cjsModule;
|
27
|
+
import cjsModule from "./index.js";
|
package/dist/esm.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
// eslint-disable-next-line import/no-unresolved
|
2
|
+
import cjsModule from './index.js';
|
3
|
+
|
4
|
+
export const DependenciesCompare = cjsModule.DependenciesCompare;
|
5
|
+
export const Dependency = cjsModule.Dependency;
|
6
|
+
export const DuplicateDependency = cjsModule.DuplicateDependency;
|
7
|
+
export const GraphAspect = cjsModule.GraphAspect;
|
8
|
+
export const IdGraph = cjsModule.IdGraph;
|
9
|
+
export const objectListToGraph = cjsModule.objectListToGraph;
|
10
|
+
export const bitObjectListToGraph = cjsModule.bitObjectListToGraph;
|
11
|
+
export const calcElements = cjsModule.calcElements;
|
12
|
+
export const calcLayout = cjsModule.calcLayout;
|
13
|
+
export const calcMinimapColors = cjsModule.calcMinimapColors;
|
14
|
+
export const depTypeToClass = cjsModule.depTypeToClass;
|
15
|
+
export const depTypeToLabel = cjsModule.depTypeToLabel;
|
16
|
+
export const dependenciesGraphStyles = cjsModule.dependenciesGraphStyles;
|
17
|
+
export const GraphFilters = cjsModule.GraphFilters;
|
18
|
+
export const graphPageStyles = cjsModule.graphPageStyles;
|
19
|
+
export const EdgeModel = cjsModule.EdgeModel;
|
20
|
+
export const GraphModel = cjsModule.GraphModel;
|
21
|
+
export const NodeModel = cjsModule.NodeModel;
|
22
|
+
export const useGraph = cjsModule.useGraph;
|
23
|
+
export const useGraphQuery = cjsModule.useGraphQuery;
|
24
|
+
export const componentNodeStyles = cjsModule.componentNodeStyles;
|
25
|
+
export const root = cjsModule.root;
|
26
|
+
export const defaultNode = cjsModule.defaultNode;
|
27
|
+
export const external = cjsModule.external;
|
28
|
+
export const EdgeType = cjsModule.EdgeType;
|
29
|
+
|
30
|
+
export default cjsModule;
|
31
|
+
|
package/dist/index.d.ts
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
export
|
2
|
-
export type { CompIdGraph, DepEdgeType } from './component-id-graph';
|
3
|
-
export { DuplicateDependency, VersionSubgraph } from './duplicate-dependency';
|
4
|
-
export { EdgeType } from './edge-type';
|
5
|
-
export type { GraphBuilder } from './graph-builder';
|
6
|
-
export { GraphAspect as default, GraphAspect } from './graph.aspect';
|
7
|
-
export type { GraphMain } from './graph.main.runtime';
|
8
|
-
export type { ComponentWidget, ComponentWidgetProps, ComponentWidgetSlot, GraphUI } from './graph.ui.runtime';
|
1
|
+
export { DependenciesCompare } from './ui/dependencies-compare';
|
9
2
|
export { Dependency } from './model/dependency';
|
10
|
-
export {
|
3
|
+
export { DuplicateDependency } from './duplicate-dependency';
|
4
|
+
export { GraphAspect as default, GraphAspect } from './graph.aspect';
|
11
5
|
export { IdGraph, objectListToGraph, bitObjectListToGraph } from './object-list-to-graph';
|
12
|
-
export { DependenciesCompare } from './ui/dependencies-compare';
|
13
6
|
export { calcElements, calcLayout, calcMinimapColors, depTypeToClass, depTypeToLabel, styles as dependenciesGraphStyles, } from './ui/dependencies-graph';
|
14
7
|
export { GraphFilters, styles as graphPageStyles } from './ui/graph-page';
|
15
|
-
export { EdgeModel, GraphModel, NodeModel,
|
8
|
+
export { EdgeModel, GraphModel, NodeModel, useGraph, useGraphQuery } from './ui/query';
|
16
9
|
export { styles as componentNodeStyles, root, defaultNode, external } from './ui/component-node';
|
10
|
+
export type { RawGraph } from './ui/query';
|
11
|
+
export type { CompIdGraph, DepEdgeType } from './component-id-graph';
|
12
|
+
export type { ComponentGraph } from './component-graph';
|
13
|
+
export type { ComponentWidget, ComponentWidgetProps, ComponentWidgetSlot, GraphUI } from './graph.ui.runtime';
|
14
|
+
export { EdgeType } from './edge-type';
|
15
|
+
export type { GraphBuilder } from './graph-builder';
|
16
|
+
export type { GraphFilter } from './model/graph-filters';
|
17
|
+
export type { GraphMain } from './graph.main.runtime';
|
18
|
+
export type { VersionSubgraph } from './duplicate-dependency';
|
package/dist/index.js
CHANGED
@@ -39,12 +39,6 @@ Object.defineProperty(exports, "GraphAspect", {
|
|
39
39
|
return _graph().GraphAspect;
|
40
40
|
}
|
41
41
|
});
|
42
|
-
Object.defineProperty(exports, "GraphFilter", {
|
43
|
-
enumerable: true,
|
44
|
-
get: function () {
|
45
|
-
return _graphFilters().GraphFilter;
|
46
|
-
}
|
47
|
-
});
|
48
42
|
Object.defineProperty(exports, "GraphFilters", {
|
49
43
|
enumerable: true,
|
50
44
|
get: function () {
|
@@ -69,18 +63,6 @@ Object.defineProperty(exports, "NodeModel", {
|
|
69
63
|
return _query().NodeModel;
|
70
64
|
}
|
71
65
|
});
|
72
|
-
Object.defineProperty(exports, "RawGraph", {
|
73
|
-
enumerable: true,
|
74
|
-
get: function () {
|
75
|
-
return _query().RawGraph;
|
76
|
-
}
|
77
|
-
});
|
78
|
-
Object.defineProperty(exports, "VersionSubgraph", {
|
79
|
-
enumerable: true,
|
80
|
-
get: function () {
|
81
|
-
return _duplicateDependency().VersionSubgraph;
|
82
|
-
}
|
83
|
-
});
|
84
66
|
Object.defineProperty(exports, "bitObjectListToGraph", {
|
85
67
|
enumerable: true,
|
86
68
|
get: function () {
|
@@ -177,23 +159,9 @@ Object.defineProperty(exports, "useGraphQuery", {
|
|
177
159
|
return _query().useGraphQuery;
|
178
160
|
}
|
179
161
|
});
|
180
|
-
function
|
181
|
-
const data = require("./
|
182
|
-
|
183
|
-
return data;
|
184
|
-
};
|
185
|
-
return data;
|
186
|
-
}
|
187
|
-
function _edgeType() {
|
188
|
-
const data = require("./edge-type");
|
189
|
-
_edgeType = function () {
|
190
|
-
return data;
|
191
|
-
};
|
192
|
-
return data;
|
193
|
-
}
|
194
|
-
function _graph() {
|
195
|
-
const data = require("./graph.aspect");
|
196
|
-
_graph = function () {
|
162
|
+
function _dependenciesCompare() {
|
163
|
+
const data = require("./ui/dependencies-compare");
|
164
|
+
_dependenciesCompare = function () {
|
197
165
|
return data;
|
198
166
|
};
|
199
167
|
return data;
|
@@ -205,23 +173,23 @@ function _dependency() {
|
|
205
173
|
};
|
206
174
|
return data;
|
207
175
|
}
|
208
|
-
function
|
209
|
-
const data = require("./
|
210
|
-
|
176
|
+
function _duplicateDependency() {
|
177
|
+
const data = require("./duplicate-dependency");
|
178
|
+
_duplicateDependency = function () {
|
211
179
|
return data;
|
212
180
|
};
|
213
181
|
return data;
|
214
182
|
}
|
215
|
-
function
|
216
|
-
const data = require("./
|
217
|
-
|
183
|
+
function _graph() {
|
184
|
+
const data = require("./graph.aspect");
|
185
|
+
_graph = function () {
|
218
186
|
return data;
|
219
187
|
};
|
220
188
|
return data;
|
221
189
|
}
|
222
|
-
function
|
223
|
-
const data = require("./
|
224
|
-
|
190
|
+
function _objectListToGraph() {
|
191
|
+
const data = require("./object-list-to-graph");
|
192
|
+
_objectListToGraph = function () {
|
225
193
|
return data;
|
226
194
|
};
|
227
195
|
return data;
|
@@ -254,5 +222,12 @@ function _componentNode() {
|
|
254
222
|
};
|
255
223
|
return data;
|
256
224
|
}
|
225
|
+
function _edgeType() {
|
226
|
+
const data = require("./edge-type");
|
227
|
+
_edgeType = function () {
|
228
|
+
return data;
|
229
|
+
};
|
230
|
+
return data;
|
231
|
+
}
|
257
232
|
|
258
233
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
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,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.67/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.67/dist/graph.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/esm.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
// eslint-disable-next-line import/no-unresolved
|
2
|
+
import cjsModule from './index.js';
|
3
|
+
|
4
|
+
export const DependenciesCompare = cjsModule.DependenciesCompare;
|
5
|
+
export const Dependency = cjsModule.Dependency;
|
6
|
+
export const DuplicateDependency = cjsModule.DuplicateDependency;
|
7
|
+
export const GraphAspect = cjsModule.GraphAspect;
|
8
|
+
export const IdGraph = cjsModule.IdGraph;
|
9
|
+
export const objectListToGraph = cjsModule.objectListToGraph;
|
10
|
+
export const bitObjectListToGraph = cjsModule.bitObjectListToGraph;
|
11
|
+
export const calcElements = cjsModule.calcElements;
|
12
|
+
export const calcLayout = cjsModule.calcLayout;
|
13
|
+
export const calcMinimapColors = cjsModule.calcMinimapColors;
|
14
|
+
export const depTypeToClass = cjsModule.depTypeToClass;
|
15
|
+
export const depTypeToLabel = cjsModule.depTypeToLabel;
|
16
|
+
export const dependenciesGraphStyles = cjsModule.dependenciesGraphStyles;
|
17
|
+
export const GraphFilters = cjsModule.GraphFilters;
|
18
|
+
export const graphPageStyles = cjsModule.graphPageStyles;
|
19
|
+
export const EdgeModel = cjsModule.EdgeModel;
|
20
|
+
export const GraphModel = cjsModule.GraphModel;
|
21
|
+
export const NodeModel = cjsModule.NodeModel;
|
22
|
+
export const useGraph = cjsModule.useGraph;
|
23
|
+
export const useGraphQuery = cjsModule.useGraphQuery;
|
24
|
+
export const componentNodeStyles = cjsModule.componentNodeStyles;
|
25
|
+
export const root = cjsModule.root;
|
26
|
+
export const defaultNode = cjsModule.defaultNode;
|
27
|
+
export const external = cjsModule.external;
|
28
|
+
export const EdgeType = cjsModule.EdgeType;
|
29
|
+
|
30
|
+
export default cjsModule;
|
31
|
+
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.67",
|
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.67"
|
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
|
-
"dagre": "0.8.5",
|
19
18
|
"semver": "7.5.2",
|
19
|
+
"dagre": "0.8.5",
|
20
20
|
"core-js": "^3.0.0",
|
21
21
|
"@babel/runtime": "7.20.0",
|
22
22
|
"@teambit/graph.cleargraph": "0.0.1",
|
@@ -39,12 +39,12 @@
|
|
39
39
|
"@teambit/ui-foundation.ui.full-loader": "0.0.500",
|
40
40
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505",
|
41
41
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
42
|
-
"@teambit/component": "1.0.
|
43
|
-
"@teambit/cli": "0.0.
|
44
|
-
"@teambit/graphql": "1.0.
|
45
|
-
"@teambit/logger": "0.0.
|
46
|
-
"@teambit/component-compare": "1.0.
|
47
|
-
"@teambit/ui": "1.0.
|
42
|
+
"@teambit/component": "1.0.67",
|
43
|
+
"@teambit/cli": "0.0.824",
|
44
|
+
"@teambit/graphql": "1.0.67",
|
45
|
+
"@teambit/logger": "0.0.917",
|
46
|
+
"@teambit/component-compare": "1.0.67",
|
47
|
+
"@teambit/ui": "1.0.67",
|
48
48
|
"@teambit/component.modules.component-url": "0.0.164",
|
49
49
|
"@teambit/envs.ui.env-icon": "0.0.503"
|
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/dagre": "0.7.44",
|
57
56
|
"@types/semver": "7.3.4",
|
57
|
+
"@types/dagre": "0.7.44",
|
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.607",
|
67
67
|
"react": "^16.8.0 || ^17.0.0",
|
68
68
|
"react-dom": "^16.8.0 || ^17.0.0"
|
69
69
|
},
|