@teambit/graph 1.0.424 → 1.0.426
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 +104 -104
- package/dist/graph.graphql.js.map +1 -1
- package/dist/graph.main.runtime.js.map +1 -1
- package/dist/{preview-1728098619529.js → preview-1728236174539.js} +2 -2
- package/dist/ui/component-node/variants.module.scss +3 -1
- package/dist/ui/dependencies-compare/compare-graph-model.js.map +1 -1
- package/dist/ui/dependencies-compare/dependency-compare-variants.module.scss +3 -1
- package/dist/ui/query/graph-model.js.map +1 -1
- package/package.json +11 -11
- package/ui/component-node/variants.module.scss +3 -1
- package/ui/dependencies-compare/compare-graph-model.ts +4 -1
- package/ui/dependencies-compare/dependency-compare-variants.module.scss +3 -1
- package/ui/query/graph-model.ts +4 -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.426" 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={4800:(e,t,o)=>{var n={id:"teambit.component/graph@1.0.426",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(4800);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
@@ -573,7 +573,7 @@
|
|
573
573
|
"_legacy": {
|
574
574
|
"scope": "teambit.component",
|
575
575
|
"name": "graph",
|
576
|
-
"version": "1.0.
|
576
|
+
"version": "1.0.426"
|
577
577
|
},
|
578
578
|
"_scope": "teambit.component"
|
579
579
|
}
|
@@ -1488,23 +1488,23 @@
|
|
1488
1488
|
"__schema": "ParameterSchema",
|
1489
1489
|
"location": {
|
1490
1490
|
"filePath": "ui/query/graph-model.ts",
|
1491
|
-
"line":
|
1492
|
-
"character":
|
1491
|
+
"line": 7,
|
1492
|
+
"character": 5
|
1493
1493
|
},
|
1494
1494
|
"name": "nodes",
|
1495
1495
|
"type": {
|
1496
1496
|
"__schema": "TypeArraySchema",
|
1497
1497
|
"location": {
|
1498
1498
|
"filePath": "ui/query/graph-model.ts",
|
1499
|
-
"line":
|
1500
|
-
"character":
|
1499
|
+
"line": 7,
|
1500
|
+
"character": 19
|
1501
1501
|
},
|
1502
1502
|
"type": {
|
1503
1503
|
"__schema": "TypeRefSchema",
|
1504
1504
|
"location": {
|
1505
1505
|
"filePath": "ui/query/graph-model.ts",
|
1506
|
-
"line":
|
1507
|
-
"character":
|
1506
|
+
"line": 7,
|
1507
|
+
"character": 19
|
1508
1508
|
},
|
1509
1509
|
"name": "N"
|
1510
1510
|
}
|
@@ -1516,23 +1516,23 @@
|
|
1516
1516
|
"__schema": "ParameterSchema",
|
1517
1517
|
"location": {
|
1518
1518
|
"filePath": "ui/query/graph-model.ts",
|
1519
|
-
"line":
|
1520
|
-
"character":
|
1519
|
+
"line": 8,
|
1520
|
+
"character": 5
|
1521
1521
|
},
|
1522
1522
|
"name": "edges",
|
1523
1523
|
"type": {
|
1524
1524
|
"__schema": "TypeArraySchema",
|
1525
1525
|
"location": {
|
1526
1526
|
"filePath": "ui/query/graph-model.ts",
|
1527
|
-
"line":
|
1528
|
-
"character":
|
1527
|
+
"line": 8,
|
1528
|
+
"character": 19
|
1529
1529
|
},
|
1530
1530
|
"type": {
|
1531
1531
|
"__schema": "TypeRefSchema",
|
1532
1532
|
"location": {
|
1533
1533
|
"filePath": "ui/query/graph-model.ts",
|
1534
|
-
"line":
|
1535
|
-
"character":
|
1534
|
+
"line": 8,
|
1535
|
+
"character": 19
|
1536
1536
|
},
|
1537
1537
|
"name": "E"
|
1538
1538
|
}
|
@@ -1556,7 +1556,7 @@
|
|
1556
1556
|
"__schema": "FunctionLikeSchema",
|
1557
1557
|
"location": {
|
1558
1558
|
"filePath": "ui/query/graph-model.ts",
|
1559
|
-
"line":
|
1559
|
+
"line": 11,
|
1560
1560
|
"character": 3
|
1561
1561
|
},
|
1562
1562
|
"signature": "(method) GraphModel<N extends NodeModel, E extends EdgeModel>.from(rawGraph: RawGraph): GraphModel<NodeModel, EdgeModel>",
|
@@ -1566,7 +1566,7 @@
|
|
1566
1566
|
"__schema": "ParameterSchema",
|
1567
1567
|
"location": {
|
1568
1568
|
"filePath": "ui/query/graph-model.ts",
|
1569
|
-
"line":
|
1569
|
+
"line": 11,
|
1570
1570
|
"character": 15
|
1571
1571
|
},
|
1572
1572
|
"name": "rawGraph",
|
@@ -1574,7 +1574,7 @@
|
|
1574
1574
|
"__schema": "TypeRefSchema",
|
1575
1575
|
"location": {
|
1576
1576
|
"filePath": "ui/query/graph-model.ts",
|
1577
|
-
"line":
|
1577
|
+
"line": 11,
|
1578
1578
|
"character": 25
|
1579
1579
|
},
|
1580
1580
|
"name": "RawGraph"
|
@@ -1587,7 +1587,7 @@
|
|
1587
1587
|
"__schema": "InferenceTypeSchema",
|
1588
1588
|
"location": {
|
1589
1589
|
"filePath": "ui/query/graph-model.ts",
|
1590
|
-
"line":
|
1590
|
+
"line": 11,
|
1591
1591
|
"character": 3
|
1592
1592
|
},
|
1593
1593
|
"type": "GraphModel<NodeModel, EdgeModel>"
|
@@ -3091,7 +3091,7 @@
|
|
3091
3091
|
"_legacy": {
|
3092
3092
|
"scope": "teambit.component",
|
3093
3093
|
"name": "graph",
|
3094
|
-
"version": "1.0.
|
3094
|
+
"version": "1.0.426"
|
3095
3095
|
},
|
3096
3096
|
"_scope": "teambit.component"
|
3097
3097
|
}
|
@@ -3607,7 +3607,7 @@
|
|
3607
3607
|
"_legacy": {
|
3608
3608
|
"scope": "teambit.component",
|
3609
3609
|
"name": "graph",
|
3610
|
-
"version": "1.0.
|
3610
|
+
"version": "1.0.426"
|
3611
3611
|
},
|
3612
3612
|
"_scope": "teambit.component"
|
3613
3613
|
}
|
@@ -3734,7 +3734,7 @@
|
|
3734
3734
|
"_legacy": {
|
3735
3735
|
"scope": "teambit.component",
|
3736
3736
|
"name": "graph",
|
3737
|
-
"version": "1.0.
|
3737
|
+
"version": "1.0.426"
|
3738
3738
|
},
|
3739
3739
|
"_scope": "teambit.component"
|
3740
3740
|
}
|
@@ -4553,16 +4553,16 @@
|
|
4553
4553
|
"__schema": "ParameterSchema",
|
4554
4554
|
"location": {
|
4555
4555
|
"filePath": "graph.main.runtime.ts",
|
4556
|
-
"line":
|
4557
|
-
"character":
|
4556
|
+
"line": 14,
|
4557
|
+
"character": 5
|
4558
4558
|
},
|
4559
4559
|
"name": "componentAspect",
|
4560
4560
|
"type": {
|
4561
4561
|
"__schema": "TypeRefSchema",
|
4562
4562
|
"location": {
|
4563
4563
|
"filePath": "graph.main.runtime.ts",
|
4564
|
-
"line":
|
4565
|
-
"character":
|
4564
|
+
"line": 14,
|
4565
|
+
"character": 30
|
4566
4566
|
},
|
4567
4567
|
"name": "ComponentMain",
|
4568
4568
|
"componentId": {
|
@@ -4577,16 +4577,16 @@
|
|
4577
4577
|
"__schema": "ParameterSchema",
|
4578
4578
|
"location": {
|
4579
4579
|
"filePath": "graph.main.runtime.ts",
|
4580
|
-
"line":
|
4581
|
-
"character":
|
4580
|
+
"line": 15,
|
4581
|
+
"character": 5
|
4582
4582
|
},
|
4583
4583
|
"name": "logger",
|
4584
4584
|
"type": {
|
4585
4585
|
"__schema": "TypeRefSchema",
|
4586
4586
|
"location": {
|
4587
4587
|
"filePath": "graph.main.runtime.ts",
|
4588
|
-
"line":
|
4589
|
-
"character":
|
4588
|
+
"line": 15,
|
4589
|
+
"character": 21
|
4590
4590
|
},
|
4591
4591
|
"name": "Logger",
|
4592
4592
|
"componentId": {
|
@@ -4613,14 +4613,14 @@
|
|
4613
4613
|
"__schema": "FunctionLikeSchema",
|
4614
4614
|
"location": {
|
4615
4615
|
"filePath": "graph.main.runtime.ts",
|
4616
|
-
"line":
|
4616
|
+
"line": 21,
|
4617
4617
|
"character": 3
|
4618
4618
|
},
|
4619
4619
|
"doc": {
|
4620
4620
|
"__schema": "DocSchema",
|
4621
4621
|
"location": {
|
4622
4622
|
"filePath": "graph.main.runtime.ts",
|
4623
|
-
"line":
|
4623
|
+
"line": 18,
|
4624
4624
|
"character": 3
|
4625
4625
|
},
|
4626
4626
|
"raw": "/**\n * important - prefer using `getGraphIds()` it's way better in terms of performance.\n */",
|
@@ -4634,7 +4634,7 @@
|
|
4634
4634
|
"__schema": "ParameterSchema",
|
4635
4635
|
"location": {
|
4636
4636
|
"filePath": "graph.main.runtime.ts",
|
4637
|
-
"line":
|
4637
|
+
"line": 21,
|
4638
4638
|
"character": 18
|
4639
4639
|
},
|
4640
4640
|
"name": "ids",
|
@@ -4642,14 +4642,14 @@
|
|
4642
4642
|
"__schema": "TypeArraySchema",
|
4643
4643
|
"location": {
|
4644
4644
|
"filePath": "graph.main.runtime.ts",
|
4645
|
-
"line":
|
4645
|
+
"line": 21,
|
4646
4646
|
"character": 24
|
4647
4647
|
},
|
4648
4648
|
"type": {
|
4649
4649
|
"__schema": "TypeRefSchema",
|
4650
4650
|
"location": {
|
4651
4651
|
"filePath": "graph.main.runtime.ts",
|
4652
|
-
"line":
|
4652
|
+
"line": 21,
|
4653
4653
|
"character": 24
|
4654
4654
|
},
|
4655
4655
|
"name": "ComponentID",
|
@@ -4666,7 +4666,7 @@
|
|
4666
4666
|
"__schema": "ParameterSchema",
|
4667
4667
|
"location": {
|
4668
4668
|
"filePath": "graph.main.runtime.ts",
|
4669
|
-
"line":
|
4669
|
+
"line": 21,
|
4670
4670
|
"character": 39
|
4671
4671
|
},
|
4672
4672
|
"name": "opts",
|
@@ -4674,7 +4674,7 @@
|
|
4674
4674
|
"__schema": "TypeRefSchema",
|
4675
4675
|
"location": {
|
4676
4676
|
"filePath": "graph.main.runtime.ts",
|
4677
|
-
"line":
|
4677
|
+
"line": 21,
|
4678
4678
|
"character": 45
|
4679
4679
|
},
|
4680
4680
|
"name": "GetGraphOpts",
|
@@ -4689,7 +4689,7 @@
|
|
4689
4689
|
"__schema": "TypeRefSchema",
|
4690
4690
|
"location": {
|
4691
4691
|
"filePath": "graph.main.runtime.ts",
|
4692
|
-
"line":
|
4692
|
+
"line": 21,
|
4693
4693
|
"character": 65
|
4694
4694
|
},
|
4695
4695
|
"name": "Promise",
|
@@ -4698,7 +4698,7 @@
|
|
4698
4698
|
"__schema": "TypeRefSchema",
|
4699
4699
|
"location": {
|
4700
4700
|
"filePath": "graph.main.runtime.ts",
|
4701
|
-
"line":
|
4701
|
+
"line": 21,
|
4702
4702
|
"character": 73
|
4703
4703
|
},
|
4704
4704
|
"name": "ComponentGraph"
|
@@ -4713,7 +4713,7 @@
|
|
4713
4713
|
"__schema": "FunctionLikeSchema",
|
4714
4714
|
"location": {
|
4715
4715
|
"filePath": "graph.main.runtime.ts",
|
4716
|
-
"line":
|
4716
|
+
"line": 26,
|
4717
4717
|
"character": 3
|
4718
4718
|
},
|
4719
4719
|
"signature": "(method) GraphMain.getGraphIds(ids?: ComponentID[], opts?: GetGraphOpts): Promise<ComponentIdGraph>",
|
@@ -4723,7 +4723,7 @@
|
|
4723
4723
|
"__schema": "ParameterSchema",
|
4724
4724
|
"location": {
|
4725
4725
|
"filePath": "graph.main.runtime.ts",
|
4726
|
-
"line":
|
4726
|
+
"line": 26,
|
4727
4727
|
"character": 21
|
4728
4728
|
},
|
4729
4729
|
"name": "ids",
|
@@ -4731,14 +4731,14 @@
|
|
4731
4731
|
"__schema": "TypeArraySchema",
|
4732
4732
|
"location": {
|
4733
4733
|
"filePath": "graph.main.runtime.ts",
|
4734
|
-
"line":
|
4734
|
+
"line": 26,
|
4735
4735
|
"character": 27
|
4736
4736
|
},
|
4737
4737
|
"type": {
|
4738
4738
|
"__schema": "TypeRefSchema",
|
4739
4739
|
"location": {
|
4740
4740
|
"filePath": "graph.main.runtime.ts",
|
4741
|
-
"line":
|
4741
|
+
"line": 26,
|
4742
4742
|
"character": 27
|
4743
4743
|
},
|
4744
4744
|
"name": "ComponentID",
|
@@ -4755,7 +4755,7 @@
|
|
4755
4755
|
"__schema": "ParameterSchema",
|
4756
4756
|
"location": {
|
4757
4757
|
"filePath": "graph.main.runtime.ts",
|
4758
|
-
"line":
|
4758
|
+
"line": 26,
|
4759
4759
|
"character": 42
|
4760
4760
|
},
|
4761
4761
|
"name": "opts",
|
@@ -4763,7 +4763,7 @@
|
|
4763
4763
|
"__schema": "TypeRefSchema",
|
4764
4764
|
"location": {
|
4765
4765
|
"filePath": "graph.main.runtime.ts",
|
4766
|
-
"line":
|
4766
|
+
"line": 26,
|
4767
4767
|
"character": 48
|
4768
4768
|
},
|
4769
4769
|
"name": "GetGraphOpts",
|
@@ -4778,7 +4778,7 @@
|
|
4778
4778
|
"__schema": "TypeRefSchema",
|
4779
4779
|
"location": {
|
4780
4780
|
"filePath": "graph.main.runtime.ts",
|
4781
|
-
"line":
|
4781
|
+
"line": 26,
|
4782
4782
|
"character": 68
|
4783
4783
|
},
|
4784
4784
|
"name": "Promise",
|
@@ -4787,7 +4787,7 @@
|
|
4787
4787
|
"__schema": "TypeRefSchema",
|
4788
4788
|
"location": {
|
4789
4789
|
"filePath": "graph.main.runtime.ts",
|
4790
|
-
"line":
|
4790
|
+
"line": 26,
|
4791
4791
|
"character": 76
|
4792
4792
|
},
|
4793
4793
|
"name": "ComponentIdGraph"
|
@@ -4802,7 +4802,7 @@
|
|
4802
4802
|
"__schema": "VariableLikeSchema",
|
4803
4803
|
"location": {
|
4804
4804
|
"filePath": "graph.main.runtime.ts",
|
4805
|
-
"line":
|
4805
|
+
"line": 31,
|
4806
4806
|
"character": 3
|
4807
4807
|
},
|
4808
4808
|
"signature": "(property) GraphMain.slots: never[]",
|
@@ -4811,7 +4811,7 @@
|
|
4811
4811
|
"__schema": "InferenceTypeSchema",
|
4812
4812
|
"location": {
|
4813
4813
|
"filePath": "graph.main.runtime.ts",
|
4814
|
-
"line":
|
4814
|
+
"line": 31,
|
4815
4815
|
"character": 3
|
4816
4816
|
},
|
4817
4817
|
"type": "never[]"
|
@@ -4823,7 +4823,7 @@
|
|
4823
4823
|
"__schema": "VariableLikeSchema",
|
4824
4824
|
"location": {
|
4825
4825
|
"filePath": "graph.main.runtime.ts",
|
4826
|
-
"line":
|
4826
|
+
"line": 32,
|
4827
4827
|
"character": 3
|
4828
4828
|
},
|
4829
4829
|
"signature": "(property) GraphMain.dependencies: Aspect[]",
|
@@ -4832,7 +4832,7 @@
|
|
4832
4832
|
"__schema": "InferenceTypeSchema",
|
4833
4833
|
"location": {
|
4834
4834
|
"filePath": "graph.main.runtime.ts",
|
4835
|
-
"line":
|
4835
|
+
"line": 32,
|
4836
4836
|
"character": 3
|
4837
4837
|
},
|
4838
4838
|
"type": "Aspect[]"
|
@@ -4844,7 +4844,7 @@
|
|
4844
4844
|
"__schema": "VariableLikeSchema",
|
4845
4845
|
"location": {
|
4846
4846
|
"filePath": "graph.main.runtime.ts",
|
4847
|
-
"line":
|
4847
|
+
"line": 33,
|
4848
4848
|
"character": 3
|
4849
4849
|
},
|
4850
4850
|
"signature": "(property) GraphMain.runtime: RuntimeDefinition",
|
@@ -4853,7 +4853,7 @@
|
|
4853
4853
|
"__schema": "InferenceTypeSchema",
|
4854
4854
|
"location": {
|
4855
4855
|
"filePath": "graph.main.runtime.ts",
|
4856
|
-
"line":
|
4856
|
+
"line": 33,
|
4857
4857
|
"character": 3
|
4858
4858
|
},
|
4859
4859
|
"type": "RuntimeDefinition"
|
@@ -4865,7 +4865,7 @@
|
|
4865
4865
|
"__schema": "FunctionLikeSchema",
|
4866
4866
|
"location": {
|
4867
4867
|
"filePath": "graph.main.runtime.ts",
|
4868
|
-
"line":
|
4868
|
+
"line": 34,
|
4869
4869
|
"character": 3
|
4870
4870
|
},
|
4871
4871
|
"signature": "(method) GraphMain.provider([graphql, componentAspect, cli, loggerMain]: [\n GraphqlMain,\n ComponentMain,\n CLIMain,\n LoggerMain\n]): Promise<GraphMain>",
|
@@ -4875,7 +4875,7 @@
|
|
4875
4875
|
"__schema": "ParameterSchema",
|
4876
4876
|
"location": {
|
4877
4877
|
"filePath": "graph.main.runtime.ts",
|
4878
|
-
"line":
|
4878
|
+
"line": 34,
|
4879
4879
|
"character": 25
|
4880
4880
|
},
|
4881
4881
|
"name": "[ graphql, componentAspect, cli, loggerMain ]",
|
@@ -4883,7 +4883,7 @@
|
|
4883
4883
|
"__schema": "TupleTypeSchema",
|
4884
4884
|
"location": {
|
4885
4885
|
"filePath": "graph.main.runtime.ts",
|
4886
|
-
"line":
|
4886
|
+
"line": 34,
|
4887
4887
|
"character": 70
|
4888
4888
|
},
|
4889
4889
|
"elements": [
|
@@ -4891,7 +4891,7 @@
|
|
4891
4891
|
"__schema": "TypeRefSchema",
|
4892
4892
|
"location": {
|
4893
4893
|
"filePath": "graph.main.runtime.ts",
|
4894
|
-
"line":
|
4894
|
+
"line": 35,
|
4895
4895
|
"character": 5
|
4896
4896
|
},
|
4897
4897
|
"name": "GraphqlMain",
|
@@ -4904,7 +4904,7 @@
|
|
4904
4904
|
"__schema": "TypeRefSchema",
|
4905
4905
|
"location": {
|
4906
4906
|
"filePath": "graph.main.runtime.ts",
|
4907
|
-
"line":
|
4907
|
+
"line": 36,
|
4908
4908
|
"character": 5
|
4909
4909
|
},
|
4910
4910
|
"name": "ComponentMain",
|
@@ -4917,7 +4917,7 @@
|
|
4917
4917
|
"__schema": "TypeRefSchema",
|
4918
4918
|
"location": {
|
4919
4919
|
"filePath": "graph.main.runtime.ts",
|
4920
|
-
"line":
|
4920
|
+
"line": 37,
|
4921
4921
|
"character": 5
|
4922
4922
|
},
|
4923
4923
|
"name": "CLIMain",
|
@@ -4930,7 +4930,7 @@
|
|
4930
4930
|
"__schema": "TypeRefSchema",
|
4931
4931
|
"location": {
|
4932
4932
|
"filePath": "graph.main.runtime.ts",
|
4933
|
-
"line":
|
4933
|
+
"line": 38,
|
4934
4934
|
"character": 5
|
4935
4935
|
},
|
4936
4936
|
"name": "LoggerMain",
|
@@ -4949,7 +4949,7 @@
|
|
4949
4949
|
"__schema": "InferenceTypeSchema",
|
4950
4950
|
"location": {
|
4951
4951
|
"filePath": "graph.main.runtime.ts",
|
4952
|
-
"line":
|
4952
|
+
"line": 34,
|
4953
4953
|
"character": 3
|
4954
4954
|
},
|
4955
4955
|
"type": "Promise<GraphMain>"
|
@@ -5260,7 +5260,7 @@
|
|
5260
5260
|
"_legacy": {
|
5261
5261
|
"scope": "teambit.component",
|
5262
5262
|
"name": "graph",
|
5263
|
-
"version": "1.0.
|
5263
|
+
"version": "1.0.426"
|
5264
5264
|
},
|
5265
5265
|
"_scope": "teambit.component"
|
5266
5266
|
}
|
@@ -7806,7 +7806,7 @@
|
|
7806
7806
|
"_legacy": {
|
7807
7807
|
"scope": "teambit.component",
|
7808
7808
|
"name": "graph",
|
7809
|
-
"version": "1.0.
|
7809
|
+
"version": "1.0.426"
|
7810
7810
|
},
|
7811
7811
|
"_scope": "teambit.component"
|
7812
7812
|
}
|
@@ -8420,7 +8420,7 @@
|
|
8420
8420
|
"_legacy": {
|
8421
8421
|
"scope": "teambit.component",
|
8422
8422
|
"name": "graph",
|
8423
|
-
"version": "1.0.
|
8423
|
+
"version": "1.0.426"
|
8424
8424
|
},
|
8425
8425
|
"_scope": "teambit.component"
|
8426
8426
|
}
|
@@ -8582,7 +8582,7 @@
|
|
8582
8582
|
"_legacy": {
|
8583
8583
|
"scope": "teambit.component",
|
8584
8584
|
"name": "graph",
|
8585
|
-
"version": "1.0.
|
8585
|
+
"version": "1.0.426"
|
8586
8586
|
},
|
8587
8587
|
"_scope": "teambit.component"
|
8588
8588
|
}
|
@@ -9812,16 +9812,16 @@
|
|
9812
9812
|
"__schema": "ParameterSchema",
|
9813
9813
|
"location": {
|
9814
9814
|
"filePath": "graph.main.runtime.ts",
|
9815
|
-
"line":
|
9816
|
-
"character":
|
9815
|
+
"line": 14,
|
9816
|
+
"character": 5
|
9817
9817
|
},
|
9818
9818
|
"name": "componentAspect",
|
9819
9819
|
"type": {
|
9820
9820
|
"__schema": "TypeRefSchema",
|
9821
9821
|
"location": {
|
9822
9822
|
"filePath": "graph.main.runtime.ts",
|
9823
|
-
"line":
|
9824
|
-
"character":
|
9823
|
+
"line": 14,
|
9824
|
+
"character": 30
|
9825
9825
|
},
|
9826
9826
|
"name": "ComponentMain",
|
9827
9827
|
"componentId": {
|
@@ -9836,16 +9836,16 @@
|
|
9836
9836
|
"__schema": "ParameterSchema",
|
9837
9837
|
"location": {
|
9838
9838
|
"filePath": "graph.main.runtime.ts",
|
9839
|
-
"line":
|
9840
|
-
"character":
|
9839
|
+
"line": 15,
|
9840
|
+
"character": 5
|
9841
9841
|
},
|
9842
9842
|
"name": "logger",
|
9843
9843
|
"type": {
|
9844
9844
|
"__schema": "TypeRefSchema",
|
9845
9845
|
"location": {
|
9846
9846
|
"filePath": "graph.main.runtime.ts",
|
9847
|
-
"line":
|
9848
|
-
"character":
|
9847
|
+
"line": 15,
|
9848
|
+
"character": 21
|
9849
9849
|
},
|
9850
9850
|
"name": "Logger",
|
9851
9851
|
"componentId": {
|
@@ -9872,14 +9872,14 @@
|
|
9872
9872
|
"__schema": "FunctionLikeSchema",
|
9873
9873
|
"location": {
|
9874
9874
|
"filePath": "graph.main.runtime.ts",
|
9875
|
-
"line":
|
9875
|
+
"line": 21,
|
9876
9876
|
"character": 3
|
9877
9877
|
},
|
9878
9878
|
"doc": {
|
9879
9879
|
"__schema": "DocSchema",
|
9880
9880
|
"location": {
|
9881
9881
|
"filePath": "graph.main.runtime.ts",
|
9882
|
-
"line":
|
9882
|
+
"line": 18,
|
9883
9883
|
"character": 3
|
9884
9884
|
},
|
9885
9885
|
"raw": "/**\n * important - prefer using `getGraphIds()` it's way better in terms of performance.\n */",
|
@@ -9893,7 +9893,7 @@
|
|
9893
9893
|
"__schema": "ParameterSchema",
|
9894
9894
|
"location": {
|
9895
9895
|
"filePath": "graph.main.runtime.ts",
|
9896
|
-
"line":
|
9896
|
+
"line": 21,
|
9897
9897
|
"character": 18
|
9898
9898
|
},
|
9899
9899
|
"name": "ids",
|
@@ -9901,14 +9901,14 @@
|
|
9901
9901
|
"__schema": "TypeArraySchema",
|
9902
9902
|
"location": {
|
9903
9903
|
"filePath": "graph.main.runtime.ts",
|
9904
|
-
"line":
|
9904
|
+
"line": 21,
|
9905
9905
|
"character": 24
|
9906
9906
|
},
|
9907
9907
|
"type": {
|
9908
9908
|
"__schema": "TypeRefSchema",
|
9909
9909
|
"location": {
|
9910
9910
|
"filePath": "graph.main.runtime.ts",
|
9911
|
-
"line":
|
9911
|
+
"line": 21,
|
9912
9912
|
"character": 24
|
9913
9913
|
},
|
9914
9914
|
"name": "ComponentID",
|
@@ -9925,7 +9925,7 @@
|
|
9925
9925
|
"__schema": "ParameterSchema",
|
9926
9926
|
"location": {
|
9927
9927
|
"filePath": "graph.main.runtime.ts",
|
9928
|
-
"line":
|
9928
|
+
"line": 21,
|
9929
9929
|
"character": 39
|
9930
9930
|
},
|
9931
9931
|
"name": "opts",
|
@@ -9933,7 +9933,7 @@
|
|
9933
9933
|
"__schema": "TypeRefSchema",
|
9934
9934
|
"location": {
|
9935
9935
|
"filePath": "graph.main.runtime.ts",
|
9936
|
-
"line":
|
9936
|
+
"line": 21,
|
9937
9937
|
"character": 45
|
9938
9938
|
},
|
9939
9939
|
"name": "GetGraphOpts",
|
@@ -9948,7 +9948,7 @@
|
|
9948
9948
|
"__schema": "TypeRefSchema",
|
9949
9949
|
"location": {
|
9950
9950
|
"filePath": "graph.main.runtime.ts",
|
9951
|
-
"line":
|
9951
|
+
"line": 21,
|
9952
9952
|
"character": 65
|
9953
9953
|
},
|
9954
9954
|
"name": "Promise",
|
@@ -9957,7 +9957,7 @@
|
|
9957
9957
|
"__schema": "TypeRefSchema",
|
9958
9958
|
"location": {
|
9959
9959
|
"filePath": "graph.main.runtime.ts",
|
9960
|
-
"line":
|
9960
|
+
"line": 21,
|
9961
9961
|
"character": 73
|
9962
9962
|
},
|
9963
9963
|
"name": "ComponentGraph"
|
@@ -9972,7 +9972,7 @@
|
|
9972
9972
|
"__schema": "FunctionLikeSchema",
|
9973
9973
|
"location": {
|
9974
9974
|
"filePath": "graph.main.runtime.ts",
|
9975
|
-
"line":
|
9975
|
+
"line": 26,
|
9976
9976
|
"character": 3
|
9977
9977
|
},
|
9978
9978
|
"signature": "(method) GraphMain.getGraphIds(ids?: ComponentID[], opts?: GetGraphOpts): Promise<ComponentIdGraph>",
|
@@ -9982,7 +9982,7 @@
|
|
9982
9982
|
"__schema": "ParameterSchema",
|
9983
9983
|
"location": {
|
9984
9984
|
"filePath": "graph.main.runtime.ts",
|
9985
|
-
"line":
|
9985
|
+
"line": 26,
|
9986
9986
|
"character": 21
|
9987
9987
|
},
|
9988
9988
|
"name": "ids",
|
@@ -9990,14 +9990,14 @@
|
|
9990
9990
|
"__schema": "TypeArraySchema",
|
9991
9991
|
"location": {
|
9992
9992
|
"filePath": "graph.main.runtime.ts",
|
9993
|
-
"line":
|
9993
|
+
"line": 26,
|
9994
9994
|
"character": 27
|
9995
9995
|
},
|
9996
9996
|
"type": {
|
9997
9997
|
"__schema": "TypeRefSchema",
|
9998
9998
|
"location": {
|
9999
9999
|
"filePath": "graph.main.runtime.ts",
|
10000
|
-
"line":
|
10000
|
+
"line": 26,
|
10001
10001
|
"character": 27
|
10002
10002
|
},
|
10003
10003
|
"name": "ComponentID",
|
@@ -10014,7 +10014,7 @@
|
|
10014
10014
|
"__schema": "ParameterSchema",
|
10015
10015
|
"location": {
|
10016
10016
|
"filePath": "graph.main.runtime.ts",
|
10017
|
-
"line":
|
10017
|
+
"line": 26,
|
10018
10018
|
"character": 42
|
10019
10019
|
},
|
10020
10020
|
"name": "opts",
|
@@ -10022,7 +10022,7 @@
|
|
10022
10022
|
"__schema": "TypeRefSchema",
|
10023
10023
|
"location": {
|
10024
10024
|
"filePath": "graph.main.runtime.ts",
|
10025
|
-
"line":
|
10025
|
+
"line": 26,
|
10026
10026
|
"character": 48
|
10027
10027
|
},
|
10028
10028
|
"name": "GetGraphOpts",
|
@@ -10037,7 +10037,7 @@
|
|
10037
10037
|
"__schema": "TypeRefSchema",
|
10038
10038
|
"location": {
|
10039
10039
|
"filePath": "graph.main.runtime.ts",
|
10040
|
-
"line":
|
10040
|
+
"line": 26,
|
10041
10041
|
"character": 68
|
10042
10042
|
},
|
10043
10043
|
"name": "Promise",
|
@@ -10046,7 +10046,7 @@
|
|
10046
10046
|
"__schema": "TypeRefSchema",
|
10047
10047
|
"location": {
|
10048
10048
|
"filePath": "graph.main.runtime.ts",
|
10049
|
-
"line":
|
10049
|
+
"line": 26,
|
10050
10050
|
"character": 76
|
10051
10051
|
},
|
10052
10052
|
"name": "ComponentIdGraph"
|
@@ -10061,7 +10061,7 @@
|
|
10061
10061
|
"__schema": "VariableLikeSchema",
|
10062
10062
|
"location": {
|
10063
10063
|
"filePath": "graph.main.runtime.ts",
|
10064
|
-
"line":
|
10064
|
+
"line": 31,
|
10065
10065
|
"character": 3
|
10066
10066
|
},
|
10067
10067
|
"signature": "(property) GraphMain.slots: never[]",
|
@@ -10070,7 +10070,7 @@
|
|
10070
10070
|
"__schema": "InferenceTypeSchema",
|
10071
10071
|
"location": {
|
10072
10072
|
"filePath": "graph.main.runtime.ts",
|
10073
|
-
"line":
|
10073
|
+
"line": 31,
|
10074
10074
|
"character": 3
|
10075
10075
|
},
|
10076
10076
|
"type": "never[]"
|
@@ -10082,7 +10082,7 @@
|
|
10082
10082
|
"__schema": "VariableLikeSchema",
|
10083
10083
|
"location": {
|
10084
10084
|
"filePath": "graph.main.runtime.ts",
|
10085
|
-
"line":
|
10085
|
+
"line": 32,
|
10086
10086
|
"character": 3
|
10087
10087
|
},
|
10088
10088
|
"signature": "(property) GraphMain.dependencies: Aspect[]",
|
@@ -10091,7 +10091,7 @@
|
|
10091
10091
|
"__schema": "InferenceTypeSchema",
|
10092
10092
|
"location": {
|
10093
10093
|
"filePath": "graph.main.runtime.ts",
|
10094
|
-
"line":
|
10094
|
+
"line": 32,
|
10095
10095
|
"character": 3
|
10096
10096
|
},
|
10097
10097
|
"type": "Aspect[]"
|
@@ -10103,7 +10103,7 @@
|
|
10103
10103
|
"__schema": "VariableLikeSchema",
|
10104
10104
|
"location": {
|
10105
10105
|
"filePath": "graph.main.runtime.ts",
|
10106
|
-
"line":
|
10106
|
+
"line": 33,
|
10107
10107
|
"character": 3
|
10108
10108
|
},
|
10109
10109
|
"signature": "(property) GraphMain.runtime: RuntimeDefinition",
|
@@ -10112,7 +10112,7 @@
|
|
10112
10112
|
"__schema": "InferenceTypeSchema",
|
10113
10113
|
"location": {
|
10114
10114
|
"filePath": "graph.main.runtime.ts",
|
10115
|
-
"line":
|
10115
|
+
"line": 33,
|
10116
10116
|
"character": 3
|
10117
10117
|
},
|
10118
10118
|
"type": "RuntimeDefinition"
|
@@ -10124,7 +10124,7 @@
|
|
10124
10124
|
"__schema": "FunctionLikeSchema",
|
10125
10125
|
"location": {
|
10126
10126
|
"filePath": "graph.main.runtime.ts",
|
10127
|
-
"line":
|
10127
|
+
"line": 34,
|
10128
10128
|
"character": 3
|
10129
10129
|
},
|
10130
10130
|
"signature": "(method) GraphMain.provider([graphql, componentAspect, cli, loggerMain]: [\n GraphqlMain,\n ComponentMain,\n CLIMain,\n LoggerMain\n]): Promise<GraphMain>",
|
@@ -10134,7 +10134,7 @@
|
|
10134
10134
|
"__schema": "ParameterSchema",
|
10135
10135
|
"location": {
|
10136
10136
|
"filePath": "graph.main.runtime.ts",
|
10137
|
-
"line":
|
10137
|
+
"line": 34,
|
10138
10138
|
"character": 25
|
10139
10139
|
},
|
10140
10140
|
"name": "[ graphql, componentAspect, cli, loggerMain ]",
|
@@ -10142,7 +10142,7 @@
|
|
10142
10142
|
"__schema": "TupleTypeSchema",
|
10143
10143
|
"location": {
|
10144
10144
|
"filePath": "graph.main.runtime.ts",
|
10145
|
-
"line":
|
10145
|
+
"line": 34,
|
10146
10146
|
"character": 70
|
10147
10147
|
},
|
10148
10148
|
"elements": [
|
@@ -10150,7 +10150,7 @@
|
|
10150
10150
|
"__schema": "TypeRefSchema",
|
10151
10151
|
"location": {
|
10152
10152
|
"filePath": "graph.main.runtime.ts",
|
10153
|
-
"line":
|
10153
|
+
"line": 35,
|
10154
10154
|
"character": 5
|
10155
10155
|
},
|
10156
10156
|
"name": "GraphqlMain",
|
@@ -10163,7 +10163,7 @@
|
|
10163
10163
|
"__schema": "TypeRefSchema",
|
10164
10164
|
"location": {
|
10165
10165
|
"filePath": "graph.main.runtime.ts",
|
10166
|
-
"line":
|
10166
|
+
"line": 36,
|
10167
10167
|
"character": 5
|
10168
10168
|
},
|
10169
10169
|
"name": "ComponentMain",
|
@@ -10176,7 +10176,7 @@
|
|
10176
10176
|
"__schema": "TypeRefSchema",
|
10177
10177
|
"location": {
|
10178
10178
|
"filePath": "graph.main.runtime.ts",
|
10179
|
-
"line":
|
10179
|
+
"line": 37,
|
10180
10180
|
"character": 5
|
10181
10181
|
},
|
10182
10182
|
"name": "CLIMain",
|
@@ -10189,7 +10189,7 @@
|
|
10189
10189
|
"__schema": "TypeRefSchema",
|
10190
10190
|
"location": {
|
10191
10191
|
"filePath": "graph.main.runtime.ts",
|
10192
|
-
"line":
|
10192
|
+
"line": 38,
|
10193
10193
|
"character": 5
|
10194
10194
|
},
|
10195
10195
|
"name": "LoggerMain",
|
@@ -10208,7 +10208,7 @@
|
|
10208
10208
|
"__schema": "InferenceTypeSchema",
|
10209
10209
|
"location": {
|
10210
10210
|
"filePath": "graph.main.runtime.ts",
|
10211
|
-
"line":
|
10211
|
+
"line": 34,
|
10212
10212
|
"character": 3
|
10213
10213
|
},
|
10214
10214
|
"type": "Promise<GraphMain>"
|
@@ -10228,7 +10228,7 @@
|
|
10228
10228
|
"__schema": "UnImplementedSchema",
|
10229
10229
|
"location": {
|
10230
10230
|
"filePath": "graph.main.runtime.ts",
|
10231
|
-
"line":
|
10231
|
+
"line": 52,
|
10232
10232
|
"character": 1
|
10233
10233
|
},
|
10234
10234
|
"name": "GraphAspect.addRuntime(GraphMain);",
|
@@ -10240,7 +10240,7 @@
|
|
10240
10240
|
"componentId": {
|
10241
10241
|
"scope": "teambit.component",
|
10242
10242
|
"name": "graph",
|
10243
|
-
"version": "1.0.
|
10243
|
+
"version": "1.0.426"
|
10244
10244
|
},
|
10245
10245
|
"taggedModuleExports": []
|
10246
10246
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_graphqlTag","data","require","_edgeType","textCmp","Intl","Collator","compare","graphSchema","graphBuilder","componentAspect","typeDefs","gql","resolvers","ComponentGraph","nodes","graph","map","node","id","component","attr","sort","a","b","edges","edge","sourceId","targetId","dependencyLifecycleType","getDependencyLifecycleType","type","Query","_parent","ids","filter","_context","info","componentsHost","getHost","resolvedIds","resolveMultipleComponentIds","list","x","isComponentFieldQueried","fieldNodes","selectionSet","selections","some","selection","kind","name","value","subSelection","getGraph","getGraphIds","undefined","runtimeGraph","runtimeOnly","toString","edgeRawData","EdgeType","dev","runtime","peer"],"sources":["graph.graphql.ts"],"sourcesContent":["import { ComponentMain } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\n\nimport { GraphBuilder } from './graph-builder';\nimport { ComponentGraph } from './component-graph';\nimport { GraphFilter } from './model/graph-filters';\nimport { DependencyType } from './model/dependency';\nimport { EdgeType } from './edge-type';\n\nconst textCmp = new Intl.Collator().compare;\n\nexport function graphSchema(graphBuilder: GraphBuilder, componentAspect: ComponentMain): Schema {\n return {\n typeDefs: gql`\n type ComponentGraph {\n nodes: [ComponentGraphNode]\n edges: [ComponentGraphEdge]\n }\n\n type ComponentGraphNode {\n id: String\n component: Component\n }\n\n enum DependencyLifecycleType {\n PEER\n RUNTIME\n DEV\n }\n\n type ComponentGraphEdge {\n sourceId: String\n targetId: String\n dependencyLifecycleType: DependencyLifecycleType\n }\n\n extend type Query {\n graph(ids: [String], filter: String): ComponentGraph\n }\n `,\n resolvers: {\n ComponentGraph: {\n nodes: (graph: ComponentGraph) => {\n return graph.nodes\n .map((node) => {\n return {\n id: node.id,\n component: node.attr,\n };\n })\n .sort((a, b) => textCmp(a.id, b.id));\n },\n edges: (graph: ComponentGraph) => {\n return graph.edges\n .map(\n (edge) =>\n ({\n sourceId: edge.sourceId,\n targetId: edge.targetId,\n dependencyLifecycleType: getDependencyLifecycleType(edge.attr.type),\n } as { sourceId: string; targetId: string; dependencyLifecycleType: EdgeType }
|
1
|
+
{"version":3,"names":["_graphqlTag","data","require","_edgeType","textCmp","Intl","Collator","compare","graphSchema","graphBuilder","componentAspect","typeDefs","gql","resolvers","ComponentGraph","nodes","graph","map","node","id","component","attr","sort","a","b","edges","edge","sourceId","targetId","dependencyLifecycleType","getDependencyLifecycleType","type","Query","_parent","ids","filter","_context","info","componentsHost","getHost","resolvedIds","resolveMultipleComponentIds","list","x","isComponentFieldQueried","fieldNodes","selectionSet","selections","some","selection","kind","name","value","subSelection","getGraph","getGraphIds","undefined","runtimeGraph","runtimeOnly","toString","edgeRawData","EdgeType","dev","runtime","peer"],"sources":["graph.graphql.ts"],"sourcesContent":["import { ComponentMain } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\n\nimport { GraphBuilder } from './graph-builder';\nimport { ComponentGraph } from './component-graph';\nimport { GraphFilter } from './model/graph-filters';\nimport { DependencyType } from './model/dependency';\nimport { EdgeType } from './edge-type';\n\nconst textCmp = new Intl.Collator().compare;\n\nexport function graphSchema(graphBuilder: GraphBuilder, componentAspect: ComponentMain): Schema {\n return {\n typeDefs: gql`\n type ComponentGraph {\n nodes: [ComponentGraphNode]\n edges: [ComponentGraphEdge]\n }\n\n type ComponentGraphNode {\n id: String\n component: Component\n }\n\n enum DependencyLifecycleType {\n PEER\n RUNTIME\n DEV\n }\n\n type ComponentGraphEdge {\n sourceId: String\n targetId: String\n dependencyLifecycleType: DependencyLifecycleType\n }\n\n extend type Query {\n graph(ids: [String], filter: String): ComponentGraph\n }\n `,\n resolvers: {\n ComponentGraph: {\n nodes: (graph: ComponentGraph) => {\n return graph.nodes\n .map((node) => {\n return {\n id: node.id,\n component: node.attr,\n };\n })\n .sort((a, b) => textCmp(a.id, b.id));\n },\n edges: (graph: ComponentGraph) => {\n return graph.edges\n .map(\n (edge) =>\n ({\n sourceId: edge.sourceId,\n targetId: edge.targetId,\n dependencyLifecycleType: getDependencyLifecycleType(edge.attr.type),\n }) as { sourceId: string; targetId: string; dependencyLifecycleType: EdgeType }\n )\n .sort((a, b) => textCmp(a.sourceId, b.sourceId))\n .sort((a, b) => textCmp(a.targetId, b.targetId));\n },\n },\n Query: {\n graph: async (_parent, { ids, filter }: { ids?: string[]; filter?: GraphFilter }, _context, info) => {\n const componentsHost = componentAspect.getHost();\n const resolvedIds = ids\n ? await componentsHost.resolveMultipleComponentIds(ids)\n : (await componentsHost.list()).map((x) => x.id);\n\n const isComponentFieldQueried = info.fieldNodes[0].selectionSet?.selections.some(\n (selection: any) =>\n selection.kind === 'Field' &&\n selection.name.value === 'nodes' &&\n selection.selectionSet?.selections.some(\n (subSelection: any) => subSelection.kind === 'Field' && subSelection.name.value === 'component'\n )\n );\n\n const graph = isComponentFieldQueried\n ? await graphBuilder.getGraph(resolvedIds)\n : await graphBuilder.getGraphIds(resolvedIds);\n\n if (!graph) return undefined;\n\n if (filter === 'runtimeOnly') {\n const runtimeGraph = graph.runtimeOnly(resolvedIds.map((x) => x.toString()));\n return runtimeGraph;\n }\n\n return graph;\n },\n },\n },\n };\n}\n\nfunction getDependencyLifecycleType(edgeRawData: DependencyType): EdgeType {\n if (edgeRawData === 'dev') return EdgeType.dev;\n if (edgeRawData === 'runtime') return EdgeType.runtime;\n return EdgeType.peer;\n}\n"],"mappings":"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","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_component","_graphql","_logger","_graphBuilder","_graph","_graph2","_graphCmd","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GraphMain","constructor","componentAspect","logger","getGraph","ids","opts","graphBuilder","GraphBuilder","getGraphIds","provider","graphql","cli","loggerMain","createLogger","GraphAspect","id","register","graphSchema","graphMain","GraphCmd","exports","GraphqlAspect","ComponentAspect","CLIAspect","LoggerAspect","MainRuntime","addRuntime"],"sources":["graph.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentMain, ComponentAspect, ComponentID } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { GetGraphOpts, GraphBuilder } from './graph-builder';\nimport { graphSchema } from './graph.graphql';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphCmd } from './graph-cmd';\nimport { ComponentGraph } from './component-graph';\nimport { ComponentIdGraph } from './component-id-graph';\n\nexport class GraphMain {\n constructor(private componentAspect: ComponentMain
|
1
|
+
{"version":3,"names":["_cli","data","require","_component","_graphql","_logger","_graphBuilder","_graph","_graph2","_graphCmd","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GraphMain","constructor","componentAspect","logger","getGraph","ids","opts","graphBuilder","GraphBuilder","getGraphIds","provider","graphql","cli","loggerMain","createLogger","GraphAspect","id","register","graphSchema","graphMain","GraphCmd","exports","GraphqlAspect","ComponentAspect","CLIAspect","LoggerAspect","MainRuntime","addRuntime"],"sources":["graph.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentMain, ComponentAspect, ComponentID } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { GetGraphOpts, GraphBuilder } from './graph-builder';\nimport { graphSchema } from './graph.graphql';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphCmd } from './graph-cmd';\nimport { ComponentGraph } from './component-graph';\nimport { ComponentIdGraph } from './component-id-graph';\n\nexport class GraphMain {\n constructor(\n private componentAspect: ComponentMain,\n private logger: Logger\n ) {}\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 graphBuilder = new GraphBuilder(this.componentAspect);\n return graphBuilder.getGraph(ids, opts);\n }\n\n async getGraphIds(ids?: ComponentID[], opts: GetGraphOpts = {}): Promise<ComponentIdGraph> {\n const graphBuilder = new GraphBuilder(this.componentAspect);\n return graphBuilder.getGraphIds(ids, opts);\n }\n\n static slots = [];\n static dependencies = [GraphqlAspect, ComponentAspect, CLIAspect, LoggerAspect];\n static runtime = MainRuntime;\n static async provider([graphql, componentAspect, cli, loggerMain]: [\n GraphqlMain,\n ComponentMain,\n CLIMain,\n LoggerMain,\n ]) {\n const logger = loggerMain.createLogger(GraphAspect.id);\n\n const graphBuilder = new GraphBuilder(componentAspect);\n graphql.register(graphSchema(graphBuilder, componentAspect));\n\n const graphMain = new GraphMain(componentAspect, logger);\n cli.register(new GraphCmd(componentAspect));\n\n return graphMain;\n }\n}\n\nGraphAspect.addRuntime(GraphMain);\n"],"mappings":"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","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.426/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_graph@1.0.426/dist/graph.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
@@ -10,7 +10,9 @@ $borderLabelHeight: 20px;
|
|
10
10
|
border-top-width: 20px;
|
11
11
|
|
12
12
|
border-radius: 10px;
|
13
|
-
box-shadow:
|
13
|
+
box-shadow:
|
14
|
+
0px 0px 0px 2px #d0f1de,
|
15
|
+
var(--bit-shadow-hover-medium);
|
14
16
|
|
15
17
|
&:before {
|
16
18
|
content: 'Current component';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_query","data","require","CompareGraphModel","GraphModel","constructor","nodes","edges","exports"],"sources":["compare-graph-model.ts"],"sourcesContent":["import { EdgeModel, GraphModel } from '../query';\nimport { CompareNodeModel } from './compare-node-model';\n\nexport class CompareGraphModel extends GraphModel<CompareNodeModel, EdgeModel> {\n constructor(public nodes: CompareNodeModel[]
|
1
|
+
{"version":3,"names":["_query","data","require","CompareGraphModel","GraphModel","constructor","nodes","edges","exports"],"sources":["compare-graph-model.ts"],"sourcesContent":["import { EdgeModel, GraphModel } from '../query';\nimport { CompareNodeModel } from './compare-node-model';\n\nexport class CompareGraphModel extends GraphModel<CompareNodeModel, EdgeModel> {\n constructor(\n public nodes: CompareNodeModel[],\n public edges: EdgeModel[]\n ) {\n super(nodes, edges);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAME,iBAAiB,SAASC,mBAAU,CAA8B;EAC7EC,WAAWA,CACFC,KAAyB,EACzBC,KAAkB,EACzB;IACA,KAAK,CAACD,KAAK,EAAEC,KAAK,CAAC;IAAC,KAHbD,KAAyB,GAAzBA,KAAyB;IAAA,KACzBC,KAAkB,GAAlBA,KAAkB;EAG3B;AACF;AAACC,OAAA,CAAAL,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
@@ -6,7 +6,9 @@ $borderLabelHeight: 20px;
|
|
6
6
|
border-top-width: 20px;
|
7
7
|
|
8
8
|
border-radius: 10px;
|
9
|
-
box-shadow:
|
9
|
+
box-shadow:
|
10
|
+
0px 0px 0px 2px #d0f1de,
|
11
|
+
var(--bit-shadow-hover-medium);
|
10
12
|
|
11
13
|
&:before {
|
12
14
|
content: 'Current component';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_nodeModel","data","require","_edgeModel","GraphModel","constructor","nodes","edges","from","rawGraph","map","NodeModel","EdgeModel","exports"],"sources":["graph-model.ts"],"sourcesContent":["import { RawGraph } from './get-graph.query';\nimport { NodeModel } from './node-model';\nimport { EdgeModel } from './edge-model';\n\nexport class GraphModel<N extends NodeModel, E extends EdgeModel> {\n constructor(public nodes: N[]
|
1
|
+
{"version":3,"names":["_nodeModel","data","require","_edgeModel","GraphModel","constructor","nodes","edges","from","rawGraph","map","NodeModel","EdgeModel","exports"],"sources":["graph-model.ts"],"sourcesContent":["import { RawGraph } from './get-graph.query';\nimport { NodeModel } from './node-model';\nimport { EdgeModel } from './edge-model';\n\nexport class GraphModel<N extends NodeModel, E extends EdgeModel> {\n constructor(\n public nodes: N[],\n public edges: E[]\n ) {}\n\n static from(rawGraph: RawGraph) {\n const nodes = rawGraph.nodes.map(NodeModel.from);\n const edges = rawGraph.edges.map(EdgeModel.from);\n return new GraphModel(nodes, edges);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMG,UAAU,CAA2C;EAChEC,WAAWA,CACFC,KAAU,EACVC,KAAU,EACjB;IAAA,KAFOD,KAAU,GAAVA,KAAU;IAAA,KACVC,KAAU,GAAVA,KAAU;EAChB;EAEH,OAAOC,IAAIA,CAACC,QAAkB,EAAE;IAC9B,MAAMH,KAAK,GAAGG,QAAQ,CAACH,KAAK,CAACI,GAAG,CAACC,sBAAS,CAACH,IAAI,CAAC;IAChD,MAAMD,KAAK,GAAGE,QAAQ,CAACF,KAAK,CAACG,GAAG,CAACE,sBAAS,CAACJ,IAAI,CAAC;IAChD,OAAO,IAAIJ,UAAU,CAACE,KAAK,EAAEC,KAAK,CAAC;EACrC;AACF;AAACM,OAAA,CAAAT,UAAA,GAAAA,UAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.426",
|
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.426"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphlib": "2.1.8",
|
@@ -15,8 +15,8 @@
|
|
15
15
|
"graphql-tag": "2.12.1",
|
16
16
|
"classnames": "2.2.6",
|
17
17
|
"reactflow": "^11.11.3",
|
18
|
-
"@dagrejs/dagre": "^1.1.2",
|
19
18
|
"semver": "7.5.2",
|
19
|
+
"@dagrejs/dagre": "^1.1.2",
|
20
20
|
"@teambit/component-id": "1.2.2",
|
21
21
|
"@teambit/graph.cleargraph": "0.0.11",
|
22
22
|
"@teambit/harmony": "0.4.6",
|
@@ -26,21 +26,21 @@
|
|
26
26
|
"@teambit/component.ui.deprecation-icon": "0.0.509",
|
27
27
|
"@teambit/design.ui.styles.ellipsis": "0.0.357",
|
28
28
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
29
|
+
"@teambit/design.ui.round-loader": "0.0.355",
|
30
|
+
"@teambit/component.ui.component-compare.status-resolver": "0.0.9",
|
29
31
|
"@teambit/evangelist.input.checkbox.label": "1.1.0",
|
30
32
|
"@teambit/design.skeletons.base-skeleton": "0.0.2",
|
31
33
|
"@teambit/design.ui.pages.not-found": "0.0.371",
|
32
34
|
"@teambit/design.ui.pages.server-error": "0.0.368",
|
33
|
-
"@teambit/design.ui.round-loader": "0.0.355",
|
34
|
-
"@teambit/component.ui.component-compare.status-resolver": "0.0.9",
|
35
35
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
36
|
-
"@teambit/component": "1.0.
|
37
|
-
"@teambit/cli": "0.0.
|
36
|
+
"@teambit/component": "1.0.426",
|
37
|
+
"@teambit/cli": "0.0.1003",
|
38
38
|
"@teambit/toolbox.string.random": "0.0.1",
|
39
39
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.111",
|
40
|
-
"@teambit/graphql": "1.0.
|
41
|
-
"@teambit/logger": "0.0.
|
42
|
-
"@teambit/component-compare": "1.0.
|
43
|
-
"@teambit/ui": "1.0.
|
40
|
+
"@teambit/graphql": "1.0.426",
|
41
|
+
"@teambit/logger": "0.0.1096",
|
42
|
+
"@teambit/component-compare": "1.0.426",
|
43
|
+
"@teambit/ui": "1.0.426",
|
44
44
|
"@teambit/component.modules.component-url": "0.0.169",
|
45
45
|
"@teambit/envs.ui.env-icon": "0.0.505",
|
46
46
|
"@teambit/component.ui.component-compare.context": "0.0.118"
|
@@ -10,7 +10,9 @@ $borderLabelHeight: 20px;
|
|
10
10
|
border-top-width: 20px;
|
11
11
|
|
12
12
|
border-radius: 10px;
|
13
|
-
box-shadow:
|
13
|
+
box-shadow:
|
14
|
+
0px 0px 0px 2px #d0f1de,
|
15
|
+
var(--bit-shadow-hover-medium);
|
14
16
|
|
15
17
|
&:before {
|
16
18
|
content: 'Current component';
|
@@ -2,7 +2,10 @@ import { EdgeModel, GraphModel } from '../query';
|
|
2
2
|
import { CompareNodeModel } from './compare-node-model';
|
3
3
|
|
4
4
|
export class CompareGraphModel extends GraphModel<CompareNodeModel, EdgeModel> {
|
5
|
-
constructor(
|
5
|
+
constructor(
|
6
|
+
public nodes: CompareNodeModel[],
|
7
|
+
public edges: EdgeModel[]
|
8
|
+
) {
|
6
9
|
super(nodes, edges);
|
7
10
|
}
|
8
11
|
}
|
@@ -6,7 +6,9 @@ $borderLabelHeight: 20px;
|
|
6
6
|
border-top-width: 20px;
|
7
7
|
|
8
8
|
border-radius: 10px;
|
9
|
-
box-shadow:
|
9
|
+
box-shadow:
|
10
|
+
0px 0px 0px 2px #d0f1de,
|
11
|
+
var(--bit-shadow-hover-medium);
|
10
12
|
|
11
13
|
&:before {
|
12
14
|
content: 'Current component';
|
package/ui/query/graph-model.ts
CHANGED
@@ -3,7 +3,10 @@ import { NodeModel } from './node-model';
|
|
3
3
|
import { EdgeModel } from './edge-model';
|
4
4
|
|
5
5
|
export class GraphModel<N extends NodeModel, E extends EdgeModel> {
|
6
|
-
constructor(
|
6
|
+
constructor(
|
7
|
+
public nodes: N[],
|
8
|
+
public edges: E[]
|
9
|
+
) {}
|
7
10
|
|
8
11
|
static from(rawGraph: RawGraph) {
|
9
12
|
const nodes = rawGraph.nodes.map(NodeModel.from);
|