@teambit/graph 1.0.494 → 1.0.496
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 +40 -555
- package/dist/esm.mjs +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js.map +1 -1
- package/dist/{preview-1734260112091.js → preview-1734405572492.js} +2 -2
- package/esm.mjs +0 -2
- package/package.json +11 -13
- package/dist/object-list-to-graph.d.ts +0 -13
- package/dist/object-list-to-graph.js +0 -93
- package/dist/object-list-to-graph.js.map +0 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.component/graph@1.0.
|
3
|
+
<testsuite name="teambit.component/graph@1.0.496" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/graph-preview"]=t():e["teambit.component/graph-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/graph-preview"]=t():e["teambit.component/graph-preview"]=t()}(self,(()=>(()=>{"use strict";var e={7379:(e,t,o)=>{var n={id:"teambit.component/graph@1.0.496",homepage:"https://bit.cloud/teambit/component/graph",exported:!0};function r(){const e=i(o(1594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/graph.svg"}));a.__bit_component=n,t.Logo=a},1594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(7379);o(1594);const a=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var c=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,a.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const f=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
@@ -429,165 +429,7 @@
|
|
429
429
|
"__schema": "ExportSchema",
|
430
430
|
"location": {
|
431
431
|
"filePath": "index.ts",
|
432
|
-
"line":
|
433
|
-
"character": 15
|
434
|
-
},
|
435
|
-
"signature": "class IdGraph",
|
436
|
-
"name": "IdGraph",
|
437
|
-
"exportNode": {
|
438
|
-
"__schema": "ClassSchema",
|
439
|
-
"location": {
|
440
|
-
"filePath": "object-list-to-graph.ts",
|
441
|
-
"line": 12,
|
442
|
-
"character": 1
|
443
|
-
},
|
444
|
-
"signature": "class IdGraph",
|
445
|
-
"name": "IdGraph",
|
446
|
-
"members": [
|
447
|
-
{
|
448
|
-
"__schema": "ConstructorSchema",
|
449
|
-
"location": {
|
450
|
-
"filePath": "object-list-to-graph.ts",
|
451
|
-
"line": 13,
|
452
|
-
"character": 3
|
453
|
-
},
|
454
|
-
"signature": "constructor IdGraph(nodes?: BitIdNode[], edges?: DependencyEdge[]): IdGraph",
|
455
|
-
"name": "constructor",
|
456
|
-
"params": [
|
457
|
-
{
|
458
|
-
"__schema": "ParameterSchema",
|
459
|
-
"location": {
|
460
|
-
"filePath": "object-list-to-graph.ts",
|
461
|
-
"line": 13,
|
462
|
-
"character": 15
|
463
|
-
},
|
464
|
-
"name": "nodes",
|
465
|
-
"type": {
|
466
|
-
"__schema": "TypeArraySchema",
|
467
|
-
"location": {
|
468
|
-
"filePath": "object-list-to-graph.ts",
|
469
|
-
"line": 13,
|
470
|
-
"character": 22
|
471
|
-
},
|
472
|
-
"type": {
|
473
|
-
"__schema": "TypeRefSchema",
|
474
|
-
"location": {
|
475
|
-
"filePath": "object-list-to-graph.ts",
|
476
|
-
"line": 13,
|
477
|
-
"character": 22
|
478
|
-
},
|
479
|
-
"name": "BitIdNode",
|
480
|
-
"internalFilePath": "object-list-to-graph.ts"
|
481
|
-
}
|
482
|
-
},
|
483
|
-
"isOptional": true,
|
484
|
-
"defaultValue": "[]",
|
485
|
-
"isSpread": false
|
486
|
-
},
|
487
|
-
{
|
488
|
-
"__schema": "ParameterSchema",
|
489
|
-
"location": {
|
490
|
-
"filePath": "object-list-to-graph.ts",
|
491
|
-
"line": 13,
|
492
|
-
"character": 40
|
493
|
-
},
|
494
|
-
"name": "edges",
|
495
|
-
"type": {
|
496
|
-
"__schema": "TypeArraySchema",
|
497
|
-
"location": {
|
498
|
-
"filePath": "object-list-to-graph.ts",
|
499
|
-
"line": 13,
|
500
|
-
"character": 47
|
501
|
-
},
|
502
|
-
"type": {
|
503
|
-
"__schema": "TypeRefSchema",
|
504
|
-
"location": {
|
505
|
-
"filePath": "object-list-to-graph.ts",
|
506
|
-
"line": 13,
|
507
|
-
"character": 47
|
508
|
-
},
|
509
|
-
"name": "DependencyEdge",
|
510
|
-
"internalFilePath": "object-list-to-graph.ts"
|
511
|
-
}
|
512
|
-
},
|
513
|
-
"isOptional": true,
|
514
|
-
"defaultValue": "[]",
|
515
|
-
"isSpread": false
|
516
|
-
}
|
517
|
-
],
|
518
|
-
"returnType": {
|
519
|
-
"__schema": "ThisTypeSchema",
|
520
|
-
"location": {
|
521
|
-
"filePath": "object-list-to-graph.ts",
|
522
|
-
"line": 12,
|
523
|
-
"character": 1
|
524
|
-
},
|
525
|
-
"name": "IdGraph"
|
526
|
-
},
|
527
|
-
"modifiers": []
|
528
|
-
}
|
529
|
-
],
|
530
|
-
"extendsNodes": [
|
531
|
-
{
|
532
|
-
"__schema": "ExpressionWithTypeArgumentsSchema",
|
533
|
-
"location": {
|
534
|
-
"filePath": "object-list-to-graph.ts",
|
535
|
-
"line": 12,
|
536
|
-
"character": 30
|
537
|
-
},
|
538
|
-
"name": "extends Graph<ComponentID, Dependency>",
|
539
|
-
"typeArgs": [
|
540
|
-
{
|
541
|
-
"__schema": "TypeRefSchema",
|
542
|
-
"location": {
|
543
|
-
"filePath": "object-list-to-graph.ts",
|
544
|
-
"line": 12,
|
545
|
-
"character": 36
|
546
|
-
},
|
547
|
-
"name": "ComponentID",
|
548
|
-
"componentId": {
|
549
|
-
"scope": "teambit.component",
|
550
|
-
"name": "component-id",
|
551
|
-
"version": "1.2.2"
|
552
|
-
}
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"__schema": "TypeRefSchema",
|
556
|
-
"location": {
|
557
|
-
"filePath": "object-list-to-graph.ts",
|
558
|
-
"line": 12,
|
559
|
-
"character": 49
|
560
|
-
},
|
561
|
-
"name": "Dependency"
|
562
|
-
}
|
563
|
-
],
|
564
|
-
"expression": {
|
565
|
-
"__schema": "TypeRefSchema",
|
566
|
-
"location": {
|
567
|
-
"filePath": "object-list-to-graph.ts",
|
568
|
-
"line": 12,
|
569
|
-
"character": 30
|
570
|
-
},
|
571
|
-
"name": "Graph<N,",
|
572
|
-
"componentId": {
|
573
|
-
"_legacy": {
|
574
|
-
"scope": "teambit.component",
|
575
|
-
"name": "graph",
|
576
|
-
"version": "1.0.494"
|
577
|
-
},
|
578
|
-
"_scope": "teambit.component"
|
579
|
-
}
|
580
|
-
}
|
581
|
-
}
|
582
|
-
],
|
583
|
-
"implementNodes": []
|
584
|
-
}
|
585
|
-
},
|
586
|
-
{
|
587
|
-
"__schema": "ExportSchema",
|
588
|
-
"location": {
|
589
|
-
"filePath": "index.ts",
|
590
|
-
"line": 7,
|
432
|
+
"line": 6,
|
591
433
|
"character": 3
|
592
434
|
},
|
593
435
|
"signature": "function calcElements(graph: GraphModel<NodeModel, EdgeModel> | undefined, { rootNode }: ElementsOptions): {\n nodes: Node[];\n edges: Edge[];\n}",
|
@@ -784,7 +626,7 @@
|
|
784
626
|
"__schema": "ExportSchema",
|
785
627
|
"location": {
|
786
628
|
"filePath": "index.ts",
|
787
|
-
"line":
|
629
|
+
"line": 7,
|
788
630
|
"character": 3
|
789
631
|
},
|
790
632
|
"signature": "function calcLayout(graph: GraphModel<NodeModel, EdgeModel>): Map<string, {\n x: number;\n y: number;\n}>",
|
@@ -869,7 +711,7 @@
|
|
869
711
|
"__schema": "ExportSchema",
|
870
712
|
"location": {
|
871
713
|
"filePath": "index.ts",
|
872
|
-
"line":
|
714
|
+
"line": 8,
|
873
715
|
"character": 3
|
874
716
|
},
|
875
717
|
"signature": "function calcMinimapColors(node: Node): string",
|
@@ -924,7 +766,7 @@
|
|
924
766
|
"__schema": "ExportSchema",
|
925
767
|
"location": {
|
926
768
|
"filePath": "index.ts",
|
927
|
-
"line":
|
769
|
+
"line": 9,
|
928
770
|
"character": 3
|
929
771
|
},
|
930
772
|
"signature": "function depTypeToClass(depType: string): string | undefined",
|
@@ -978,7 +820,7 @@
|
|
978
820
|
"__schema": "ExportSchema",
|
979
821
|
"location": {
|
980
822
|
"filePath": "index.ts",
|
981
|
-
"line":
|
823
|
+
"line": 10,
|
982
824
|
"character": 3
|
983
825
|
},
|
984
826
|
"signature": "function depTypeToLabel(type: EdgeType): string",
|
@@ -1032,7 +874,7 @@
|
|
1032
874
|
"__schema": "ExportSchema",
|
1033
875
|
"location": {
|
1034
876
|
"filePath": "index.ts",
|
1035
|
-
"line":
|
877
|
+
"line": 11,
|
1036
878
|
"character": 13
|
1037
879
|
},
|
1038
880
|
"signature": "const styles: {\n graph: string;\n minimap: string;\n controls: string;\n}",
|
@@ -1064,7 +906,7 @@
|
|
1064
906
|
"__schema": "ExportSchema",
|
1065
907
|
"location": {
|
1066
908
|
"filePath": "index.ts",
|
1067
|
-
"line":
|
909
|
+
"line": 13,
|
1068
910
|
"character": 10
|
1069
911
|
},
|
1070
912
|
"signature": "function GraphFilters({ onChangeFilter, isFiltered, disable, ...rest }: GraphFiltersType): React.JSX.Element",
|
@@ -1164,7 +1006,7 @@
|
|
1164
1006
|
"__schema": "ExportSchema",
|
1165
1007
|
"location": {
|
1166
1008
|
"filePath": "index.ts",
|
1167
|
-
"line":
|
1009
|
+
"line": 13,
|
1168
1010
|
"character": 34
|
1169
1011
|
},
|
1170
1012
|
"signature": "const styles: {\n graph: string;\n filters: string;\n}",
|
@@ -1196,7 +1038,7 @@
|
|
1196
1038
|
"__schema": "ExportSchema",
|
1197
1039
|
"location": {
|
1198
1040
|
"filePath": "index.ts",
|
1199
|
-
"line":
|
1041
|
+
"line": 14,
|
1200
1042
|
"character": 10
|
1201
1043
|
},
|
1202
1044
|
"signature": "class EdgeModel",
|
@@ -1325,7 +1167,7 @@
|
|
1325
1167
|
"__schema": "ExportSchema",
|
1326
1168
|
"location": {
|
1327
1169
|
"filePath": "index.ts",
|
1328
|
-
"line":
|
1170
|
+
"line": 14,
|
1329
1171
|
"character": 21
|
1330
1172
|
},
|
1331
1173
|
"signature": "class GraphModel<N extends NodeModel, E extends EdgeModel>",
|
@@ -1475,7 +1317,7 @@
|
|
1475
1317
|
"__schema": "ExportSchema",
|
1476
1318
|
"location": {
|
1477
1319
|
"filePath": "index.ts",
|
1478
|
-
"line":
|
1320
|
+
"line": 14,
|
1479
1321
|
"character": 33
|
1480
1322
|
},
|
1481
1323
|
"signature": "class NodeModel",
|
@@ -1612,7 +1454,7 @@
|
|
1612
1454
|
"__schema": "ExportSchema",
|
1613
1455
|
"location": {
|
1614
1456
|
"filePath": "index.ts",
|
1615
|
-
"line":
|
1457
|
+
"line": 14,
|
1616
1458
|
"character": 44
|
1617
1459
|
},
|
1618
1460
|
"signature": "function useGraph(): {\n graph: GraphModel<NodeModel, EdgeModel> | undefined;\n error: GraphQlError | undefined;\n loading: boolean;\n idsLoading: boolean;\n graphLoading: boolean;\n}",
|
@@ -1645,7 +1487,7 @@
|
|
1645
1487
|
"__schema": "ExportSchema",
|
1646
1488
|
"location": {
|
1647
1489
|
"filePath": "index.ts",
|
1648
|
-
"line":
|
1490
|
+
"line": 14,
|
1649
1491
|
"character": 54
|
1650
1492
|
},
|
1651
1493
|
"signature": "function useGraphQuery(componentId?: string[], filter?: string): {\n graph: GraphModel<NodeModel, EdgeModel> | undefined;\n error: GraphQlError | undefined;\n loading: boolean;\n idsLoading: boolean;\n graphLoading: boolean;\n}",
|
@@ -1727,7 +1569,7 @@
|
|
1727
1569
|
"__schema": "ExportSchema",
|
1728
1570
|
"location": {
|
1729
1571
|
"filePath": "index.ts",
|
1730
|
-
"line":
|
1572
|
+
"line": 15,
|
1731
1573
|
"character": 20
|
1732
1574
|
},
|
1733
1575
|
"signature": "const styles: {\n compNode: string;\n firstRow: string;\n envIcon: string;\n breadcrumbs: string;\n nameLine: string;\n name: string;\n version: string;\n buffs: string;\n link: string;\n}",
|
@@ -1759,7 +1601,7 @@
|
|
1759
1601
|
"__schema": "ExportSchema",
|
1760
1602
|
"location": {
|
1761
1603
|
"filePath": "index.ts",
|
1762
|
-
"line":
|
1604
|
+
"line": 15,
|
1763
1605
|
"character": 41
|
1764
1606
|
},
|
1765
1607
|
"signature": "const root: string",
|
@@ -1789,7 +1631,7 @@
|
|
1789
1631
|
"__schema": "ExportSchema",
|
1790
1632
|
"location": {
|
1791
1633
|
"filePath": "index.ts",
|
1792
|
-
"line":
|
1634
|
+
"line": 15,
|
1793
1635
|
"character": 47
|
1794
1636
|
},
|
1795
1637
|
"signature": "const defaultNode: string",
|
@@ -1819,7 +1661,7 @@
|
|
1819
1661
|
"__schema": "ExportSchema",
|
1820
1662
|
"location": {
|
1821
1663
|
"filePath": "index.ts",
|
1822
|
-
"line":
|
1664
|
+
"line": 15,
|
1823
1665
|
"character": 60
|
1824
1666
|
},
|
1825
1667
|
"signature": "const external: string",
|
@@ -1849,7 +1691,7 @@
|
|
1849
1691
|
"__schema": "ExportSchema",
|
1850
1692
|
"location": {
|
1851
1693
|
"filePath": "index.ts",
|
1852
|
-
"line":
|
1694
|
+
"line": 16,
|
1853
1695
|
"character": 15
|
1854
1696
|
},
|
1855
1697
|
"signature": "type RawGraph = {\n nodes: RawNode[];\n edges: [];\n}",
|
@@ -1928,7 +1770,7 @@
|
|
1928
1770
|
"__schema": "ExportSchema",
|
1929
1771
|
"location": {
|
1930
1772
|
"filePath": "index.ts",
|
1931
|
-
"line":
|
1773
|
+
"line": 17,
|
1932
1774
|
"character": 15
|
1933
1775
|
},
|
1934
1776
|
"signature": "type CompIdGraph = Graph<ComponentID, DepEdgeType>",
|
@@ -1987,7 +1829,7 @@
|
|
1987
1829
|
"__schema": "ExportSchema",
|
1988
1830
|
"location": {
|
1989
1831
|
"filePath": "index.ts",
|
1990
|
-
"line":
|
1832
|
+
"line": 17,
|
1991
1833
|
"character": 28
|
1992
1834
|
},
|
1993
1835
|
"signature": "type DepEdgeType = \"prod\" | \"dev\" | \"peer\" | \"ext\"",
|
@@ -2053,7 +1895,7 @@
|
|
2053
1895
|
"__schema": "ExportSchema",
|
2054
1896
|
"location": {
|
2055
1897
|
"filePath": "index.ts",
|
2056
|
-
"line":
|
1898
|
+
"line": 17,
|
2057
1899
|
"character": 41
|
2058
1900
|
},
|
2059
1901
|
"signature": "class ComponentIdGraph",
|
@@ -2846,7 +2688,7 @@
|
|
2846
2688
|
"componentId": {
|
2847
2689
|
"scope": "teambit.legacy",
|
2848
2690
|
"name": "dependency-graph",
|
2849
|
-
"version": "0.0.
|
2691
|
+
"version": "0.0.11"
|
2850
2692
|
}
|
2851
2693
|
}
|
2852
2694
|
},
|
@@ -2961,7 +2803,7 @@
|
|
2961
2803
|
"_legacy": {
|
2962
2804
|
"scope": "teambit.component",
|
2963
2805
|
"name": "graph",
|
2964
|
-
"version": "1.0.
|
2806
|
+
"version": "1.0.496"
|
2965
2807
|
},
|
2966
2808
|
"_scope": "teambit.component"
|
2967
2809
|
}
|
@@ -2975,7 +2817,7 @@
|
|
2975
2817
|
"__schema": "ExportSchema",
|
2976
2818
|
"location": {
|
2977
2819
|
"filePath": "index.ts",
|
2978
|
-
"line":
|
2820
|
+
"line": 18,
|
2979
2821
|
"character": 15
|
2980
2822
|
},
|
2981
2823
|
"signature": "class ComponentGraph",
|
@@ -3477,7 +3319,7 @@
|
|
3477
3319
|
"_legacy": {
|
3478
3320
|
"scope": "teambit.component",
|
3479
3321
|
"name": "graph",
|
3480
|
-
"version": "1.0.
|
3322
|
+
"version": "1.0.496"
|
3481
3323
|
},
|
3482
3324
|
"_scope": "teambit.component"
|
3483
3325
|
}
|
@@ -3491,7 +3333,7 @@
|
|
3491
3333
|
"__schema": "ExportSchema",
|
3492
3334
|
"location": {
|
3493
3335
|
"filePath": "index.ts",
|
3494
|
-
"line":
|
3336
|
+
"line": 19,
|
3495
3337
|
"character": 15
|
3496
3338
|
},
|
3497
3339
|
"signature": "type ComponentWidget = React.ComponentClass<ComponentWidgetProps, any> | React.FunctionComponent<ComponentWidgetProps>",
|
@@ -3532,7 +3374,7 @@
|
|
3532
3374
|
"__schema": "ExportSchema",
|
3533
3375
|
"location": {
|
3534
3376
|
"filePath": "index.ts",
|
3535
|
-
"line":
|
3377
|
+
"line": 19,
|
3536
3378
|
"character": 32
|
3537
3379
|
},
|
3538
3380
|
"signature": "interface ComponentWidgetProps",
|
@@ -3604,7 +3446,7 @@
|
|
3604
3446
|
"_legacy": {
|
3605
3447
|
"scope": "teambit.component",
|
3606
3448
|
"name": "graph",
|
3607
|
-
"version": "1.0.
|
3449
|
+
"version": "1.0.496"
|
3608
3450
|
},
|
3609
3451
|
"_scope": "teambit.component"
|
3610
3452
|
}
|
@@ -3617,7 +3459,7 @@
|
|
3617
3459
|
"__schema": "ExportSchema",
|
3618
3460
|
"location": {
|
3619
3461
|
"filePath": "index.ts",
|
3620
|
-
"line":
|
3462
|
+
"line": 19,
|
3621
3463
|
"character": 54
|
3622
3464
|
},
|
3623
3465
|
"signature": "type ComponentWidgetSlot = SlotRegistry<ComponentWidget>",
|
@@ -3662,7 +3504,7 @@
|
|
3662
3504
|
"__schema": "ExportSchema",
|
3663
3505
|
"location": {
|
3664
3506
|
"filePath": "index.ts",
|
3665
|
-
"line":
|
3507
|
+
"line": 19,
|
3666
3508
|
"character": 75
|
3667
3509
|
},
|
3668
3510
|
"signature": "class GraphUI",
|
@@ -4032,7 +3874,7 @@
|
|
4032
3874
|
"__schema": "ExportSchema",
|
4033
3875
|
"location": {
|
4034
3876
|
"filePath": "index.ts",
|
4035
|
-
"line":
|
3877
|
+
"line": 20,
|
4036
3878
|
"character": 10
|
4037
3879
|
},
|
4038
3880
|
"signature": "enum EdgeType",
|
@@ -4087,7 +3929,7 @@
|
|
4087
3929
|
"__schema": "ExportSchema",
|
4088
3930
|
"location": {
|
4089
3931
|
"filePath": "index.ts",
|
4090
|
-
"line":
|
3932
|
+
"line": 21,
|
4091
3933
|
"character": 15
|
4092
3934
|
},
|
4093
3935
|
"signature": "class GraphBuilder",
|
@@ -4346,7 +4188,7 @@
|
|
4346
4188
|
"__schema": "ExportSchema",
|
4347
4189
|
"location": {
|
4348
4190
|
"filePath": "index.ts",
|
4349
|
-
"line":
|
4191
|
+
"line": 22,
|
4350
4192
|
"character": 15
|
4351
4193
|
},
|
4352
4194
|
"signature": "type GraphFilter = \"runtimeOnly\" | undefined",
|
@@ -4394,7 +4236,7 @@
|
|
4394
4236
|
"__schema": "ExportSchema",
|
4395
4237
|
"location": {
|
4396
4238
|
"filePath": "index.ts",
|
4397
|
-
"line":
|
4239
|
+
"line": 23,
|
4398
4240
|
"character": 15
|
4399
4241
|
},
|
4400
4242
|
"signature": "class GraphMain",
|
@@ -4838,7 +4680,7 @@
|
|
4838
4680
|
"__schema": "ExportSchema",
|
4839
4681
|
"location": {
|
4840
4682
|
"filePath": "index.ts",
|
4841
|
-
"line":
|
4683
|
+
"line": 24,
|
4842
4684
|
"character": 15
|
4843
4685
|
},
|
4844
4686
|
"signature": "type VersionSubgraph = {\n versionId: string;\n subGraph: ComponentGraph;\n immediateDependents: string[];\n}",
|
@@ -4983,363 +4825,6 @@
|
|
4983
4825
|
],
|
4984
4826
|
"internals": []
|
4985
4827
|
},
|
4986
|
-
{
|
4987
|
-
"__schema": "ModuleSchema",
|
4988
|
-
"location": {
|
4989
|
-
"filePath": "object-list-to-graph.ts",
|
4990
|
-
"line": 1,
|
4991
|
-
"character": 1
|
4992
|
-
},
|
4993
|
-
"exports": [
|
4994
|
-
{
|
4995
|
-
"__schema": "ClassSchema",
|
4996
|
-
"location": {
|
4997
|
-
"filePath": "object-list-to-graph.ts",
|
4998
|
-
"line": 12,
|
4999
|
-
"character": 1
|
5000
|
-
},
|
5001
|
-
"signature": "class IdGraph",
|
5002
|
-
"name": "IdGraph",
|
5003
|
-
"members": [
|
5004
|
-
{
|
5005
|
-
"__schema": "ConstructorSchema",
|
5006
|
-
"location": {
|
5007
|
-
"filePath": "object-list-to-graph.ts",
|
5008
|
-
"line": 13,
|
5009
|
-
"character": 3
|
5010
|
-
},
|
5011
|
-
"signature": "constructor IdGraph(nodes?: BitIdNode[], edges?: DependencyEdge[]): IdGraph",
|
5012
|
-
"name": "constructor",
|
5013
|
-
"params": [
|
5014
|
-
{
|
5015
|
-
"__schema": "ParameterSchema",
|
5016
|
-
"location": {
|
5017
|
-
"filePath": "object-list-to-graph.ts",
|
5018
|
-
"line": 13,
|
5019
|
-
"character": 15
|
5020
|
-
},
|
5021
|
-
"name": "nodes",
|
5022
|
-
"type": {
|
5023
|
-
"__schema": "TypeArraySchema",
|
5024
|
-
"location": {
|
5025
|
-
"filePath": "object-list-to-graph.ts",
|
5026
|
-
"line": 13,
|
5027
|
-
"character": 22
|
5028
|
-
},
|
5029
|
-
"type": {
|
5030
|
-
"__schema": "TypeRefSchema",
|
5031
|
-
"location": {
|
5032
|
-
"filePath": "object-list-to-graph.ts",
|
5033
|
-
"line": 13,
|
5034
|
-
"character": 22
|
5035
|
-
},
|
5036
|
-
"name": "BitIdNode",
|
5037
|
-
"internalFilePath": "object-list-to-graph.ts"
|
5038
|
-
}
|
5039
|
-
},
|
5040
|
-
"isOptional": true,
|
5041
|
-
"defaultValue": "[]",
|
5042
|
-
"isSpread": false
|
5043
|
-
},
|
5044
|
-
{
|
5045
|
-
"__schema": "ParameterSchema",
|
5046
|
-
"location": {
|
5047
|
-
"filePath": "object-list-to-graph.ts",
|
5048
|
-
"line": 13,
|
5049
|
-
"character": 40
|
5050
|
-
},
|
5051
|
-
"name": "edges",
|
5052
|
-
"type": {
|
5053
|
-
"__schema": "TypeArraySchema",
|
5054
|
-
"location": {
|
5055
|
-
"filePath": "object-list-to-graph.ts",
|
5056
|
-
"line": 13,
|
5057
|
-
"character": 47
|
5058
|
-
},
|
5059
|
-
"type": {
|
5060
|
-
"__schema": "TypeRefSchema",
|
5061
|
-
"location": {
|
5062
|
-
"filePath": "object-list-to-graph.ts",
|
5063
|
-
"line": 13,
|
5064
|
-
"character": 47
|
5065
|
-
},
|
5066
|
-
"name": "DependencyEdge",
|
5067
|
-
"internalFilePath": "object-list-to-graph.ts"
|
5068
|
-
}
|
5069
|
-
},
|
5070
|
-
"isOptional": true,
|
5071
|
-
"defaultValue": "[]",
|
5072
|
-
"isSpread": false
|
5073
|
-
}
|
5074
|
-
],
|
5075
|
-
"returnType": {
|
5076
|
-
"__schema": "ThisTypeSchema",
|
5077
|
-
"location": {
|
5078
|
-
"filePath": "object-list-to-graph.ts",
|
5079
|
-
"line": 12,
|
5080
|
-
"character": 1
|
5081
|
-
},
|
5082
|
-
"name": "IdGraph"
|
5083
|
-
},
|
5084
|
-
"modifiers": []
|
5085
|
-
}
|
5086
|
-
],
|
5087
|
-
"extendsNodes": [
|
5088
|
-
{
|
5089
|
-
"__schema": "ExpressionWithTypeArgumentsSchema",
|
5090
|
-
"location": {
|
5091
|
-
"filePath": "object-list-to-graph.ts",
|
5092
|
-
"line": 12,
|
5093
|
-
"character": 30
|
5094
|
-
},
|
5095
|
-
"name": "extends Graph<ComponentID, Dependency>",
|
5096
|
-
"typeArgs": [
|
5097
|
-
{
|
5098
|
-
"__schema": "TypeRefSchema",
|
5099
|
-
"location": {
|
5100
|
-
"filePath": "object-list-to-graph.ts",
|
5101
|
-
"line": 12,
|
5102
|
-
"character": 36
|
5103
|
-
},
|
5104
|
-
"name": "ComponentID",
|
5105
|
-
"componentId": {
|
5106
|
-
"scope": "teambit.component",
|
5107
|
-
"name": "component-id",
|
5108
|
-
"version": "1.2.2"
|
5109
|
-
}
|
5110
|
-
},
|
5111
|
-
{
|
5112
|
-
"__schema": "TypeRefSchema",
|
5113
|
-
"location": {
|
5114
|
-
"filePath": "object-list-to-graph.ts",
|
5115
|
-
"line": 12,
|
5116
|
-
"character": 49
|
5117
|
-
},
|
5118
|
-
"name": "Dependency"
|
5119
|
-
}
|
5120
|
-
],
|
5121
|
-
"expression": {
|
5122
|
-
"__schema": "TypeRefSchema",
|
5123
|
-
"location": {
|
5124
|
-
"filePath": "object-list-to-graph.ts",
|
5125
|
-
"line": 12,
|
5126
|
-
"character": 30
|
5127
|
-
},
|
5128
|
-
"name": "Graph<N,",
|
5129
|
-
"componentId": {
|
5130
|
-
"_legacy": {
|
5131
|
-
"scope": "teambit.component",
|
5132
|
-
"name": "graph",
|
5133
|
-
"version": "1.0.494"
|
5134
|
-
},
|
5135
|
-
"_scope": "teambit.component"
|
5136
|
-
}
|
5137
|
-
}
|
5138
|
-
}
|
5139
|
-
],
|
5140
|
-
"implementNodes": []
|
5141
|
-
},
|
5142
|
-
{
|
5143
|
-
"__schema": "FunctionLikeSchema",
|
5144
|
-
"location": {
|
5145
|
-
"filePath": "object-list-to-graph.ts",
|
5146
|
-
"line": 18,
|
5147
|
-
"character": 1
|
5148
|
-
},
|
5149
|
-
"signature": "function objectListToGraph(objectList: ObjectList): Promise<IdGraph>",
|
5150
|
-
"name": "objectListToGraph",
|
5151
|
-
"params": [
|
5152
|
-
{
|
5153
|
-
"__schema": "ParameterSchema",
|
5154
|
-
"location": {
|
5155
|
-
"filePath": "object-list-to-graph.ts",
|
5156
|
-
"line": 18,
|
5157
|
-
"character": 41
|
5158
|
-
},
|
5159
|
-
"name": "objectList",
|
5160
|
-
"type": {
|
5161
|
-
"__schema": "TypeRefSchema",
|
5162
|
-
"location": {
|
5163
|
-
"filePath": "object-list-to-graph.ts",
|
5164
|
-
"line": 18,
|
5165
|
-
"character": 53
|
5166
|
-
},
|
5167
|
-
"name": "ObjectList",
|
5168
|
-
"componentId": {
|
5169
|
-
"scope": "teambit.scope",
|
5170
|
-
"name": "objects",
|
5171
|
-
"version": "0.0.6"
|
5172
|
-
}
|
5173
|
-
},
|
5174
|
-
"isOptional": false,
|
5175
|
-
"isSpread": false
|
5176
|
-
}
|
5177
|
-
],
|
5178
|
-
"returnType": {
|
5179
|
-
"__schema": "TypeRefSchema",
|
5180
|
-
"location": {
|
5181
|
-
"filePath": "object-list-to-graph.ts",
|
5182
|
-
"line": 18,
|
5183
|
-
"character": 66
|
5184
|
-
},
|
5185
|
-
"name": "Promise",
|
5186
|
-
"typeArgs": [
|
5187
|
-
{
|
5188
|
-
"__schema": "TypeRefSchema",
|
5189
|
-
"location": {
|
5190
|
-
"filePath": "object-list-to-graph.ts",
|
5191
|
-
"line": 18,
|
5192
|
-
"character": 74
|
5193
|
-
},
|
5194
|
-
"name": "IdGraph"
|
5195
|
-
}
|
5196
|
-
]
|
5197
|
-
},
|
5198
|
-
"modifiers": [
|
5199
|
-
"export",
|
5200
|
-
"async"
|
5201
|
-
]
|
5202
|
-
},
|
5203
|
-
{
|
5204
|
-
"__schema": "FunctionLikeSchema",
|
5205
|
-
"location": {
|
5206
|
-
"filePath": "object-list-to-graph.ts",
|
5207
|
-
"line": 24,
|
5208
|
-
"character": 1
|
5209
|
-
},
|
5210
|
-
"signature": "function bitObjectListToGraph(bitObjectsList: BitObjectList): Promise<IdGraph>",
|
5211
|
-
"name": "bitObjectListToGraph",
|
5212
|
-
"params": [
|
5213
|
-
{
|
5214
|
-
"__schema": "ParameterSchema",
|
5215
|
-
"location": {
|
5216
|
-
"filePath": "object-list-to-graph.ts",
|
5217
|
-
"line": 24,
|
5218
|
-
"character": 44
|
5219
|
-
},
|
5220
|
-
"name": "bitObjectsList",
|
5221
|
-
"type": {
|
5222
|
-
"__schema": "TypeRefSchema",
|
5223
|
-
"location": {
|
5224
|
-
"filePath": "object-list-to-graph.ts",
|
5225
|
-
"line": 24,
|
5226
|
-
"character": 60
|
5227
|
-
},
|
5228
|
-
"name": "BitObjectList",
|
5229
|
-
"componentId": {
|
5230
|
-
"scope": "teambit.scope",
|
5231
|
-
"name": "objects",
|
5232
|
-
"version": "0.0.6"
|
5233
|
-
}
|
5234
|
-
},
|
5235
|
-
"isOptional": false,
|
5236
|
-
"isSpread": false
|
5237
|
-
}
|
5238
|
-
],
|
5239
|
-
"returnType": {
|
5240
|
-
"__schema": "TypeRefSchema",
|
5241
|
-
"location": {
|
5242
|
-
"filePath": "object-list-to-graph.ts",
|
5243
|
-
"line": 24,
|
5244
|
-
"character": 76
|
5245
|
-
},
|
5246
|
-
"name": "Promise",
|
5247
|
-
"typeArgs": [
|
5248
|
-
{
|
5249
|
-
"__schema": "TypeRefSchema",
|
5250
|
-
"location": {
|
5251
|
-
"filePath": "object-list-to-graph.ts",
|
5252
|
-
"line": 24,
|
5253
|
-
"character": 84
|
5254
|
-
},
|
5255
|
-
"name": "IdGraph"
|
5256
|
-
}
|
5257
|
-
]
|
5258
|
-
},
|
5259
|
-
"modifiers": [
|
5260
|
-
"export",
|
5261
|
-
"async"
|
5262
|
-
]
|
5263
|
-
}
|
5264
|
-
],
|
5265
|
-
"internals": [
|
5266
|
-
{
|
5267
|
-
"__schema": "TypeSchema",
|
5268
|
-
"location": {
|
5269
|
-
"filePath": "object-list-to-graph.ts",
|
5270
|
-
"line": 9,
|
5271
|
-
"character": 1
|
5272
|
-
},
|
5273
|
-
"signature": "type BitIdNode = Node<ComponentID>",
|
5274
|
-
"name": "BitIdNode",
|
5275
|
-
"type": {
|
5276
|
-
"__schema": "TypeRefSchema",
|
5277
|
-
"location": {
|
5278
|
-
"filePath": "object-list-to-graph.ts",
|
5279
|
-
"line": 9,
|
5280
|
-
"character": 18
|
5281
|
-
},
|
5282
|
-
"name": "Node",
|
5283
|
-
"componentId": {
|
5284
|
-
"scope": "teambit.graph",
|
5285
|
-
"name": "cleargraph",
|
5286
|
-
"version": "0.0.11"
|
5287
|
-
},
|
5288
|
-
"typeArgs": [
|
5289
|
-
{
|
5290
|
-
"__schema": "TypeRefSchema",
|
5291
|
-
"location": {
|
5292
|
-
"filePath": "object-list-to-graph.ts",
|
5293
|
-
"line": 9,
|
5294
|
-
"character": 23
|
5295
|
-
},
|
5296
|
-
"name": "ComponentID",
|
5297
|
-
"componentId": {
|
5298
|
-
"scope": "teambit.component",
|
5299
|
-
"name": "component-id",
|
5300
|
-
"version": "1.2.2"
|
5301
|
-
}
|
5302
|
-
}
|
5303
|
-
]
|
5304
|
-
}
|
5305
|
-
},
|
5306
|
-
{
|
5307
|
-
"__schema": "TypeSchema",
|
5308
|
-
"location": {
|
5309
|
-
"filePath": "object-list-to-graph.ts",
|
5310
|
-
"line": 10,
|
5311
|
-
"character": 1
|
5312
|
-
},
|
5313
|
-
"signature": "type DependencyEdge = Edge<Dependency>",
|
5314
|
-
"name": "DependencyEdge",
|
5315
|
-
"type": {
|
5316
|
-
"__schema": "TypeRefSchema",
|
5317
|
-
"location": {
|
5318
|
-
"filePath": "object-list-to-graph.ts",
|
5319
|
-
"line": 10,
|
5320
|
-
"character": 23
|
5321
|
-
},
|
5322
|
-
"name": "Edge",
|
5323
|
-
"componentId": {
|
5324
|
-
"scope": "teambit.graph",
|
5325
|
-
"name": "cleargraph",
|
5326
|
-
"version": "0.0.11"
|
5327
|
-
},
|
5328
|
-
"typeArgs": [
|
5329
|
-
{
|
5330
|
-
"__schema": "TypeRefSchema",
|
5331
|
-
"location": {
|
5332
|
-
"filePath": "object-list-to-graph.ts",
|
5333
|
-
"line": 10,
|
5334
|
-
"character": 28
|
5335
|
-
},
|
5336
|
-
"name": "Dependency"
|
5337
|
-
}
|
5338
|
-
]
|
5339
|
-
}
|
5340
|
-
}
|
5341
|
-
]
|
5342
|
-
},
|
5343
4828
|
{
|
5344
4829
|
"__schema": "ModuleSchema",
|
5345
4830
|
"location": {
|
@@ -7573,7 +7058,7 @@
|
|
7573
7058
|
"componentId": {
|
7574
7059
|
"scope": "teambit.legacy",
|
7575
7060
|
"name": "dependency-graph",
|
7576
|
-
"version": "0.0.
|
7061
|
+
"version": "0.0.11"
|
7577
7062
|
}
|
7578
7063
|
}
|
7579
7064
|
},
|
@@ -7688,7 +7173,7 @@
|
|
7688
7173
|
"_legacy": {
|
7689
7174
|
"scope": "teambit.component",
|
7690
7175
|
"name": "graph",
|
7691
|
-
"version": "1.0.
|
7176
|
+
"version": "1.0.496"
|
7692
7177
|
},
|
7693
7178
|
"_scope": "teambit.component"
|
7694
7179
|
}
|
@@ -8302,7 +7787,7 @@
|
|
8302
7787
|
"_legacy": {
|
8303
7788
|
"scope": "teambit.component",
|
8304
7789
|
"name": "graph",
|
8305
|
-
"version": "1.0.
|
7790
|
+
"version": "1.0.496"
|
8306
7791
|
},
|
8307
7792
|
"_scope": "teambit.component"
|
8308
7793
|
}
|
@@ -8464,7 +7949,7 @@
|
|
8464
7949
|
"_legacy": {
|
8465
7950
|
"scope": "teambit.component",
|
8466
7951
|
"name": "graph",
|
8467
|
-
"version": "1.0.
|
7952
|
+
"version": "1.0.496"
|
8468
7953
|
},
|
8469
7954
|
"_scope": "teambit.component"
|
8470
7955
|
}
|
@@ -10122,7 +9607,7 @@
|
|
10122
9607
|
"componentId": {
|
10123
9608
|
"scope": "teambit.component",
|
10124
9609
|
"name": "graph",
|
10125
|
-
"version": "1.0.
|
9610
|
+
"version": "1.0.496"
|
10126
9611
|
},
|
10127
9612
|
"taggedModuleExports": []
|
10128
9613
|
}
|
package/dist/esm.mjs
CHANGED
@@ -6,8 +6,6 @@ export const Dependency = cjsModule.Dependency;
|
|
6
6
|
export const DuplicateDependency = cjsModule.DuplicateDependency;
|
7
7
|
export const GraphAspect = cjsModule.GraphAspect;
|
8
8
|
export const IdGraph = cjsModule.IdGraph;
|
9
|
-
export const objectListToGraph = cjsModule.objectListToGraph;
|
10
|
-
export const bitObjectListToGraph = cjsModule.bitObjectListToGraph;
|
11
9
|
export const calcElements = cjsModule.calcElements;
|
12
10
|
export const calcLayout = cjsModule.calcLayout;
|
13
11
|
export const calcMinimapColors = cjsModule.calcMinimapColors;
|
package/dist/index.d.ts
CHANGED
@@ -2,7 +2,6 @@ export { DependenciesCompare } from './ui/dependencies-compare';
|
|
2
2
|
export { Dependency, DependencyType } from './model/dependency';
|
3
3
|
export { DuplicateDependency } from './duplicate-dependency';
|
4
4
|
export { GraphAspect as default, GraphAspect } from './graph.aspect';
|
5
|
-
export type { IdGraph } from './object-list-to-graph';
|
6
5
|
export { calcElements, calcLayout, calcMinimapColors, depTypeToClass, depTypeToLabel, styles as dependenciesGraphStyles, } from './ui/dependencies-graph';
|
7
6
|
export { GraphFilters, styles as graphPageStyles } from './ui/graph-page';
|
8
7
|
export { EdgeModel, GraphModel, NodeModel, useGraph, useGraphQuery } from './ui/query';
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_dependenciesCompare","data","require","_dependency","_duplicateDependency","_graph","_dependenciesGraph","_graphPage","_query","_componentNode","_edgeType"],"sources":["index.ts"],"sourcesContent":["export { DependenciesCompare } from './ui/dependencies-compare';\nexport { Dependency, DependencyType } from './model/dependency';\nexport { DuplicateDependency } from './duplicate-dependency';\nexport { GraphAspect as default, GraphAspect } from './graph.aspect';\nexport
|
1
|
+
{"version":3,"names":["_dependenciesCompare","data","require","_dependency","_duplicateDependency","_graph","_dependenciesGraph","_graphPage","_query","_componentNode","_edgeType"],"sources":["index.ts"],"sourcesContent":["export { DependenciesCompare } from './ui/dependencies-compare';\nexport { Dependency, DependencyType } from './model/dependency';\nexport { DuplicateDependency } from './duplicate-dependency';\nexport { GraphAspect as default, GraphAspect } from './graph.aspect';\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;AAQA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,eAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,cAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAS,UAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,SAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.496/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.496/dist/graph.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/esm.mjs
CHANGED
@@ -6,8 +6,6 @@ export const Dependency = cjsModule.Dependency;
|
|
6
6
|
export const DuplicateDependency = cjsModule.DuplicateDependency;
|
7
7
|
export const GraphAspect = cjsModule.GraphAspect;
|
8
8
|
export const IdGraph = cjsModule.IdGraph;
|
9
|
-
export const objectListToGraph = cjsModule.objectListToGraph;
|
10
|
-
export const bitObjectListToGraph = cjsModule.bitObjectListToGraph;
|
11
9
|
export const calcElements = cjsModule.calcElements;
|
12
10
|
export const calcLayout = cjsModule.calcLayout;
|
13
11
|
export const calcMinimapColors = cjsModule.calcMinimapColors;
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.496",
|
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.496"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphlib": "2.1.8",
|
@@ -33,19 +33,17 @@
|
|
33
33
|
"@teambit/design.ui.pages.not-found": "0.0.371",
|
34
34
|
"@teambit/design.ui.pages.server-error": "0.0.368",
|
35
35
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
36
|
-
"@teambit/legacy.dependency-graph": "0.0.
|
37
|
-
"@teambit/component": "1.0.
|
38
|
-
"@teambit/cli": "0.0.
|
39
|
-
"@teambit/legacy.consumer": "0.0.
|
40
|
-
"@teambit/scope.remotes": "0.0.
|
36
|
+
"@teambit/legacy.dependency-graph": "0.0.11",
|
37
|
+
"@teambit/component": "1.0.496",
|
38
|
+
"@teambit/cli": "0.0.1073",
|
39
|
+
"@teambit/legacy.consumer": "0.0.8",
|
40
|
+
"@teambit/scope.remotes": "0.0.8",
|
41
41
|
"@teambit/toolbox.string.random": "0.0.2",
|
42
42
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.113",
|
43
|
-
"@teambit/graphql": "1.0.
|
44
|
-
"@teambit/logger": "0.0.
|
45
|
-
"@teambit/component-compare": "1.0.
|
46
|
-
"@teambit/ui": "1.0.
|
47
|
-
"@teambit/component.snap-distance": "0.0.6",
|
48
|
-
"@teambit/scope.objects": "0.0.6",
|
43
|
+
"@teambit/graphql": "1.0.496",
|
44
|
+
"@teambit/logger": "0.0.1166",
|
45
|
+
"@teambit/component-compare": "1.0.496",
|
46
|
+
"@teambit/ui": "1.0.496",
|
49
47
|
"@teambit/component.modules.component-url": "0.0.170",
|
50
48
|
"@teambit/envs.ui.env-icon": "0.0.506",
|
51
49
|
"@teambit/component.ui.component-compare.context": "0.0.119"
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Graph, Node, Edge } from '@teambit/graph.cleargraph';
|
2
|
-
import { ComponentID } from '@teambit/component-id';
|
3
|
-
import type { ObjectList } from '@teambit/scope.objects';
|
4
|
-
import { BitObjectList } from '@teambit/scope.objects';
|
5
|
-
import { Dependency } from './model/dependency';
|
6
|
-
type BitIdNode = Node<ComponentID>;
|
7
|
-
type DependencyEdge = Edge<Dependency>;
|
8
|
-
export declare class IdGraph extends Graph<ComponentID, Dependency> {
|
9
|
-
constructor(nodes?: BitIdNode[], edges?: DependencyEdge[]);
|
10
|
-
}
|
11
|
-
export declare function objectListToGraph(objectList: ObjectList): Promise<IdGraph>;
|
12
|
-
export declare function bitObjectListToGraph(bitObjectsList: BitObjectList): Promise<IdGraph>;
|
13
|
-
export {};
|
@@ -1,93 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.IdGraph = void 0;
|
7
|
-
exports.bitObjectListToGraph = bitObjectListToGraph;
|
8
|
-
exports.objectListToGraph = objectListToGraph;
|
9
|
-
function _graph() {
|
10
|
-
const data = require("@teambit/graph.cleargraph");
|
11
|
-
_graph = function () {
|
12
|
-
return data;
|
13
|
-
};
|
14
|
-
return data;
|
15
|
-
}
|
16
|
-
function _lodash() {
|
17
|
-
const data = require("lodash");
|
18
|
-
_lodash = function () {
|
19
|
-
return data;
|
20
|
-
};
|
21
|
-
return data;
|
22
|
-
}
|
23
|
-
function _component() {
|
24
|
-
const data = require("@teambit/component.snap-distance");
|
25
|
-
_component = function () {
|
26
|
-
return data;
|
27
|
-
};
|
28
|
-
return data;
|
29
|
-
}
|
30
|
-
function _dependency() {
|
31
|
-
const data = require("./model/dependency");
|
32
|
-
_dependency = function () {
|
33
|
-
return data;
|
34
|
-
};
|
35
|
-
return data;
|
36
|
-
}
|
37
|
-
class IdGraph extends _graph().Graph {
|
38
|
-
constructor(nodes = [], edges = []) {
|
39
|
-
super(nodes, edges);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
exports.IdGraph = IdGraph;
|
43
|
-
async function objectListToGraph(objectList) {
|
44
|
-
const bitObjectsList = await objectList.toBitObjects();
|
45
|
-
return bitObjectListToGraph(bitObjectsList);
|
46
|
-
}
|
47
|
-
async function bitObjectListToGraph(bitObjectsList) {
|
48
|
-
const exportMetadata = bitObjectsList.getExportMetadata();
|
49
|
-
const components = bitObjectsList.getComponents();
|
50
|
-
const versions = bitObjectsList.getVersions();
|
51
|
-
const nodes = [];
|
52
|
-
const edges = [];
|
53
|
-
await Promise.all(components.map(async component => {
|
54
|
-
const compFromMetadata = exportMetadata?.exportVersions.find(c => c.id.isEqualWithoutVersion(component.toComponentId()));
|
55
|
-
const startFrom = compFromMetadata?.head;
|
56
|
-
const versionsInfo = await (0, _component().getAllVersionsInfo)({
|
57
|
-
modelComponent: component,
|
58
|
-
versionObjects: versions,
|
59
|
-
startFrom,
|
60
|
-
throws: false
|
61
|
-
});
|
62
|
-
versionsInfo.forEach(versionInfo => {
|
63
|
-
const id = component.toComponentId().changeVersion(versionInfo.tag || versionInfo.ref.toString());
|
64
|
-
const idStr = id.toString();
|
65
|
-
nodes.push(new (_graph().Node)(idStr, id));
|
66
|
-
if (!versionInfo.version) {
|
67
|
-
return;
|
68
|
-
}
|
69
|
-
const {
|
70
|
-
dependencies,
|
71
|
-
devDependencies,
|
72
|
-
peerDependencies,
|
73
|
-
extensionDependencies
|
74
|
-
} = versionInfo.version.depsIdsGroupedByType;
|
75
|
-
const addDep = (depId, edge) => {
|
76
|
-
const depIdStr = depId.toString();
|
77
|
-
nodes.push(new (_graph().Node)(depIdStr, depId));
|
78
|
-
edges.push(new (_graph().Edge)(idStr, depIdStr, edge));
|
79
|
-
};
|
80
|
-
const runTime = new (_dependency().Dependency)('runtime');
|
81
|
-
const dev = new (_dependency().Dependency)('dev');
|
82
|
-
const peer = new (_dependency().Dependency)('peer');
|
83
|
-
dependencies.forEach(depId => addDep(depId, runTime));
|
84
|
-
[...devDependencies, ...extensionDependencies].forEach(depId => addDep(depId, dev));
|
85
|
-
peerDependencies.forEach(depId => addDep(depId, peer));
|
86
|
-
});
|
87
|
-
}));
|
88
|
-
const uniqNodes = (0, _lodash().uniqBy)(nodes, 'id');
|
89
|
-
const idGraph = new IdGraph(uniqNodes, edges);
|
90
|
-
return idGraph;
|
91
|
-
}
|
92
|
-
|
93
|
-
//# sourceMappingURL=object-list-to-graph.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["_graph","data","require","_lodash","_component","_dependency","IdGraph","Graph","constructor","nodes","edges","exports","objectListToGraph","objectList","bitObjectsList","toBitObjects","bitObjectListToGraph","exportMetadata","getExportMetadata","components","getComponents","versions","getVersions","Promise","all","map","component","compFromMetadata","exportVersions","find","c","id","isEqualWithoutVersion","toComponentId","startFrom","head","versionsInfo","getAllVersionsInfo","modelComponent","versionObjects","throws","forEach","versionInfo","changeVersion","tag","ref","toString","idStr","push","Node","version","dependencies","devDependencies","peerDependencies","extensionDependencies","depsIdsGroupedByType","addDep","depId","edge","depIdStr","Edge","runTime","Dependency","dev","peer","uniqNodes","uniqBy","idGraph"],"sources":["object-list-to-graph.ts"],"sourcesContent":["import { Graph, Node, Edge } from '@teambit/graph.cleargraph';\nimport { uniqBy } from 'lodash';\nimport { ComponentID } from '@teambit/component-id';\nimport type { ObjectList } from '@teambit/scope.objects';\nimport { BitObjectList } from '@teambit/scope.objects';\nimport { getAllVersionsInfo } from '@teambit/component.snap-distance';\nimport { Dependency } from './model/dependency';\n\ntype BitIdNode = Node<ComponentID>;\ntype DependencyEdge = Edge<Dependency>;\n\nexport class IdGraph extends Graph<ComponentID, Dependency> {\n constructor(nodes: BitIdNode[] = [], edges: DependencyEdge[] = []) {\n super(nodes, edges);\n }\n}\n\nexport async function objectListToGraph(objectList: ObjectList): Promise<IdGraph> {\n const bitObjectsList = await objectList.toBitObjects();\n\n return bitObjectListToGraph(bitObjectsList);\n}\n\nexport async function bitObjectListToGraph(bitObjectsList: BitObjectList): Promise<IdGraph> {\n const exportMetadata = bitObjectsList.getExportMetadata();\n const components = bitObjectsList.getComponents();\n const versions = bitObjectsList.getVersions();\n const nodes: BitIdNode[] = [];\n const edges: DependencyEdge[] = [];\n await Promise.all(\n components.map(async (component) => {\n const compFromMetadata = exportMetadata?.exportVersions.find((c) =>\n c.id.isEqualWithoutVersion(component.toComponentId())\n );\n const startFrom = compFromMetadata?.head;\n const versionsInfo = await getAllVersionsInfo({\n modelComponent: component,\n versionObjects: versions,\n startFrom,\n throws: false,\n });\n versionsInfo.forEach((versionInfo) => {\n const id = component.toComponentId().changeVersion(versionInfo.tag || versionInfo.ref.toString());\n const idStr = id.toString();\n nodes.push(new Node(idStr, id));\n if (!versionInfo.version) {\n return;\n }\n const { dependencies, devDependencies, peerDependencies, extensionDependencies } =\n versionInfo.version.depsIdsGroupedByType;\n const addDep = (depId: ComponentID, edge: Dependency) => {\n const depIdStr = depId.toString();\n nodes.push(new Node(depIdStr, depId));\n edges.push(new Edge(idStr, depIdStr, edge));\n };\n const runTime = new Dependency('runtime');\n const dev = new Dependency('dev');\n const peer = new Dependency('peer');\n dependencies.forEach((depId) => addDep(depId, runTime));\n [...devDependencies, ...extensionDependencies].forEach((depId) => addDep(depId, dev));\n peerDependencies.forEach((depId) => addDep(depId, peer));\n });\n })\n );\n const uniqNodes = uniqBy(nodes, 'id');\n const idGraph = new IdGraph(uniqNodes, edges);\n\n return idGraph;\n}\n"],"mappings":"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","ignoreList":[]}
|