@teambit/graph 1.0.160 → 1.0.162
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 +161 -29
- package/dist/component-id-graph.d.ts +12 -0
- package/dist/component-id-graph.js +56 -0
- package/dist/component-id-graph.js.map +1 -1
- package/dist/{preview-1707275702806.js → preview-1707535034490.js} +2 -2
- package/package.json +6 -6
@@ -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.162" 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={54324:(e,t,o)=>{var r={id:"teambit.component/graph@1.0.162",homepage:"https://bit.cloud/teambit/component/graph",exported:!0};function n(){const e=i(o(6376));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const p=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/graph.svg"}));p.__bit_component=r,t.Logo=p},6376:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{o.r(r),o.d(r,{compositions:()=>u,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(54324);o(6376);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a.apply(this,arguments)}var c={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,p);return(0,n.mdx)(s,a({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
package/artifacts/schema.json
CHANGED
@@ -450,7 +450,7 @@
|
|
450
450
|
"_legacy": {
|
451
451
|
"scope": "teambit.component",
|
452
452
|
"name": "graph",
|
453
|
-
"version": "1.0.
|
453
|
+
"version": "1.0.162"
|
454
454
|
},
|
455
455
|
"_scope": "teambit.component"
|
456
456
|
}
|
@@ -2209,7 +2209,7 @@
|
|
2209
2209
|
"_legacy": {
|
2210
2210
|
"scope": "teambit.component",
|
2211
2211
|
"name": "graph",
|
2212
|
-
"version": "1.0.
|
2212
|
+
"version": "1.0.162"
|
2213
2213
|
},
|
2214
2214
|
"_scope": "teambit.component"
|
2215
2215
|
}
|
@@ -2315,7 +2315,7 @@
|
|
2315
2315
|
"_legacy": {
|
2316
2316
|
"scope": "teambit.component",
|
2317
2317
|
"name": "graph",
|
2318
|
-
"version": "1.0.
|
2318
|
+
"version": "1.0.162"
|
2319
2319
|
},
|
2320
2320
|
"_scope": "teambit.component"
|
2321
2321
|
}
|
@@ -3526,7 +3526,7 @@
|
|
3526
3526
|
"line": 1,
|
3527
3527
|
"character": 1
|
3528
3528
|
},
|
3529
|
-
"signature": "type DependencyType = \"dev\" | \"
|
3529
|
+
"signature": "type DependencyType = \"dev\" | \"runtime\" | \"peer\"",
|
3530
3530
|
"name": "DependencyType",
|
3531
3531
|
"type": {
|
3532
3532
|
"__schema": "TypeUnionSchema",
|
@@ -3854,7 +3854,7 @@
|
|
3854
3854
|
"_legacy": {
|
3855
3855
|
"scope": "teambit.component",
|
3856
3856
|
"name": "graph",
|
3857
|
-
"version": "1.0.
|
3857
|
+
"version": "1.0.162"
|
3858
3858
|
},
|
3859
3859
|
"_scope": "teambit.component"
|
3860
3860
|
}
|
@@ -5654,7 +5654,7 @@
|
|
5654
5654
|
"__schema": "FunctionLikeSchema",
|
5655
5655
|
"location": {
|
5656
5656
|
"filePath": "component-id-graph.ts",
|
5657
|
-
"line":
|
5657
|
+
"line": 74,
|
5658
5658
|
"character": 3
|
5659
5659
|
},
|
5660
5660
|
"doc": {
|
@@ -5664,6 +5664,138 @@
|
|
5664
5664
|
"line": 63,
|
5665
5665
|
"character": 3
|
5666
5666
|
},
|
5667
|
+
"raw": "/**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */",
|
5668
|
+
"comment": "check all the routes from the sources to targets and return the components found during this traversal.\ne.g.\nA -> B -> C -> N.\nA -> E -> N.\nB -> F -> G.\ngiven source: A, targets: N. The results will be: [B, C, E].\n\nif through is provided, it will only return the components that are connected to the through components.\nwith the example above, if through is B, the results will be: [B, C]."
|
5669
|
+
},
|
5670
|
+
"signature": "(method) ComponentIdGraph.findAllPathsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): string[][]",
|
5671
|
+
"name": "findAllPathsFromSourcesToTargets",
|
5672
|
+
"params": [
|
5673
|
+
{
|
5674
|
+
"__schema": "ParameterSchema",
|
5675
|
+
"location": {
|
5676
|
+
"filePath": "component-id-graph.ts",
|
5677
|
+
"line": 75,
|
5678
|
+
"character": 5
|
5679
|
+
},
|
5680
|
+
"name": "sources",
|
5681
|
+
"type": {
|
5682
|
+
"__schema": "TypeArraySchema",
|
5683
|
+
"location": {
|
5684
|
+
"filePath": "component-id-graph.ts",
|
5685
|
+
"line": 75,
|
5686
|
+
"character": 14
|
5687
|
+
},
|
5688
|
+
"type": {
|
5689
|
+
"__schema": "TypeRefSchema",
|
5690
|
+
"location": {
|
5691
|
+
"filePath": "component-id-graph.ts",
|
5692
|
+
"line": 75,
|
5693
|
+
"character": 14
|
5694
|
+
},
|
5695
|
+
"name": "ComponentID"
|
5696
|
+
}
|
5697
|
+
},
|
5698
|
+
"isOptional": false,
|
5699
|
+
"isSpread": false
|
5700
|
+
},
|
5701
|
+
{
|
5702
|
+
"__schema": "ParameterSchema",
|
5703
|
+
"location": {
|
5704
|
+
"filePath": "component-id-graph.ts",
|
5705
|
+
"line": 76,
|
5706
|
+
"character": 5
|
5707
|
+
},
|
5708
|
+
"name": "targets",
|
5709
|
+
"type": {
|
5710
|
+
"__schema": "TypeArraySchema",
|
5711
|
+
"location": {
|
5712
|
+
"filePath": "component-id-graph.ts",
|
5713
|
+
"line": 76,
|
5714
|
+
"character": 14
|
5715
|
+
},
|
5716
|
+
"type": {
|
5717
|
+
"__schema": "TypeRefSchema",
|
5718
|
+
"location": {
|
5719
|
+
"filePath": "component-id-graph.ts",
|
5720
|
+
"line": 76,
|
5721
|
+
"character": 14
|
5722
|
+
},
|
5723
|
+
"name": "ComponentID"
|
5724
|
+
}
|
5725
|
+
},
|
5726
|
+
"isOptional": false,
|
5727
|
+
"isSpread": false
|
5728
|
+
},
|
5729
|
+
{
|
5730
|
+
"__schema": "ParameterSchema",
|
5731
|
+
"location": {
|
5732
|
+
"filePath": "component-id-graph.ts",
|
5733
|
+
"line": 77,
|
5734
|
+
"character": 5
|
5735
|
+
},
|
5736
|
+
"name": "through",
|
5737
|
+
"type": {
|
5738
|
+
"__schema": "TypeArraySchema",
|
5739
|
+
"location": {
|
5740
|
+
"filePath": "component-id-graph.ts",
|
5741
|
+
"line": 77,
|
5742
|
+
"character": 15
|
5743
|
+
},
|
5744
|
+
"type": {
|
5745
|
+
"__schema": "TypeRefSchema",
|
5746
|
+
"location": {
|
5747
|
+
"filePath": "component-id-graph.ts",
|
5748
|
+
"line": 77,
|
5749
|
+
"character": 15
|
5750
|
+
},
|
5751
|
+
"name": "ComponentID"
|
5752
|
+
}
|
5753
|
+
},
|
5754
|
+
"isOptional": true,
|
5755
|
+
"isSpread": false
|
5756
|
+
}
|
5757
|
+
],
|
5758
|
+
"returnType": {
|
5759
|
+
"__schema": "TypeArraySchema",
|
5760
|
+
"location": {
|
5761
|
+
"filePath": "component-id-graph.ts",
|
5762
|
+
"line": 78,
|
5763
|
+
"character": 6
|
5764
|
+
},
|
5765
|
+
"type": {
|
5766
|
+
"__schema": "TypeArraySchema",
|
5767
|
+
"location": {
|
5768
|
+
"filePath": "component-id-graph.ts",
|
5769
|
+
"line": 78,
|
5770
|
+
"character": 6
|
5771
|
+
},
|
5772
|
+
"type": {
|
5773
|
+
"__schema": "KeywordTypeSchema",
|
5774
|
+
"location": {
|
5775
|
+
"filePath": "component-id-graph.ts",
|
5776
|
+
"line": 78,
|
5777
|
+
"character": 6
|
5778
|
+
},
|
5779
|
+
"name": "string"
|
5780
|
+
}
|
5781
|
+
}
|
5782
|
+
},
|
5783
|
+
"modifiers": []
|
5784
|
+
},
|
5785
|
+
{
|
5786
|
+
"__schema": "FunctionLikeSchema",
|
5787
|
+
"location": {
|
5788
|
+
"filePath": "component-id-graph.ts",
|
5789
|
+
"line": 136,
|
5790
|
+
"character": 3
|
5791
|
+
},
|
5792
|
+
"doc": {
|
5793
|
+
"__schema": "DocSchema",
|
5794
|
+
"location": {
|
5795
|
+
"filePath": "component-id-graph.ts",
|
5796
|
+
"line": 133,
|
5797
|
+
"character": 3
|
5798
|
+
},
|
5667
5799
|
"raw": "/**\n * overrides the super class to eliminate non-seeders components\n */",
|
5668
5800
|
"comment": "overrides the super class to eliminate non-seeders components"
|
5669
5801
|
},
|
@@ -5674,7 +5806,7 @@
|
|
5674
5806
|
"__schema": "ParameterSchema",
|
5675
5807
|
"location": {
|
5676
5808
|
"filePath": "component-id-graph.ts",
|
5677
|
-
"line":
|
5809
|
+
"line": 136,
|
5678
5810
|
"character": 14
|
5679
5811
|
},
|
5680
5812
|
"name": "graph",
|
@@ -5682,7 +5814,7 @@
|
|
5682
5814
|
"__schema": "ThisTypeSchema",
|
5683
5815
|
"location": {
|
5684
5816
|
"filePath": "component-id-graph.ts",
|
5685
|
-
"line":
|
5817
|
+
"line": 136,
|
5686
5818
|
"character": 22
|
5687
5819
|
},
|
5688
5820
|
"name": "this"
|
@@ -5694,7 +5826,7 @@
|
|
5694
5826
|
"__schema": "ParameterSchema",
|
5695
5827
|
"location": {
|
5696
5828
|
"filePath": "component-id-graph.ts",
|
5697
|
-
"line":
|
5829
|
+
"line": 136,
|
5698
5830
|
"character": 28
|
5699
5831
|
},
|
5700
5832
|
"name": "includeDeps",
|
@@ -5702,7 +5834,7 @@
|
|
5702
5834
|
"__schema": "InferenceTypeSchema",
|
5703
5835
|
"location": {
|
5704
5836
|
"filePath": "component-id-graph.ts",
|
5705
|
-
"line":
|
5837
|
+
"line": 136,
|
5706
5838
|
"character": 28
|
5707
5839
|
},
|
5708
5840
|
"type": "boolean"
|
@@ -5716,21 +5848,21 @@
|
|
5716
5848
|
"__schema": "TypeArraySchema",
|
5717
5849
|
"location": {
|
5718
5850
|
"filePath": "component-id-graph.ts",
|
5719
|
-
"line":
|
5851
|
+
"line": 136,
|
5720
5852
|
"character": 50
|
5721
5853
|
},
|
5722
5854
|
"type": {
|
5723
5855
|
"__schema": "TypeArraySchema",
|
5724
5856
|
"location": {
|
5725
5857
|
"filePath": "component-id-graph.ts",
|
5726
|
-
"line":
|
5858
|
+
"line": 136,
|
5727
5859
|
"character": 50
|
5728
5860
|
},
|
5729
5861
|
"type": {
|
5730
5862
|
"__schema": "KeywordTypeSchema",
|
5731
5863
|
"location": {
|
5732
5864
|
"filePath": "component-id-graph.ts",
|
5733
|
-
"line":
|
5865
|
+
"line": 136,
|
5734
5866
|
"character": 50
|
5735
5867
|
},
|
5736
5868
|
"name": "string"
|
@@ -5743,7 +5875,7 @@
|
|
5743
5875
|
"__schema": "FunctionLikeSchema",
|
5744
5876
|
"location": {
|
5745
5877
|
"filePath": "component-id-graph.ts",
|
5746
|
-
"line":
|
5878
|
+
"line": 148,
|
5747
5879
|
"character": 3
|
5748
5880
|
},
|
5749
5881
|
"signature": "(method) ComponentIdGraph.buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph",
|
@@ -5753,7 +5885,7 @@
|
|
5753
5885
|
"__schema": "ParameterSchema",
|
5754
5886
|
"location": {
|
5755
5887
|
"filePath": "component-id-graph.ts",
|
5756
|
-
"line":
|
5888
|
+
"line": 148,
|
5757
5889
|
"character": 23
|
5758
5890
|
},
|
5759
5891
|
"name": "graph",
|
@@ -5761,7 +5893,7 @@
|
|
5761
5893
|
"__schema": "TypeRefSchema",
|
5762
5894
|
"location": {
|
5763
5895
|
"filePath": "component-id-graph.ts",
|
5764
|
-
"line":
|
5896
|
+
"line": 148,
|
5765
5897
|
"character": 30
|
5766
5898
|
},
|
5767
5899
|
"name": "Graph",
|
@@ -5770,7 +5902,7 @@
|
|
5770
5902
|
"__schema": "TypeRefSchema",
|
5771
5903
|
"location": {
|
5772
5904
|
"filePath": "component-id-graph.ts",
|
5773
|
-
"line":
|
5905
|
+
"line": 148,
|
5774
5906
|
"character": 36
|
5775
5907
|
},
|
5776
5908
|
"name": "ComponentID"
|
@@ -5779,7 +5911,7 @@
|
|
5779
5911
|
"__schema": "TypeRefSchema",
|
5780
5912
|
"location": {
|
5781
5913
|
"filePath": "component-id-graph.ts",
|
5782
|
-
"line":
|
5914
|
+
"line": 148,
|
5783
5915
|
"character": 49
|
5784
5916
|
},
|
5785
5917
|
"name": "DepEdgeType"
|
@@ -5794,7 +5926,7 @@
|
|
5794
5926
|
"__schema": "TypeRefSchema",
|
5795
5927
|
"location": {
|
5796
5928
|
"filePath": "component-id-graph.ts",
|
5797
|
-
"line":
|
5929
|
+
"line": 148,
|
5798
5930
|
"character": 3
|
5799
5931
|
},
|
5800
5932
|
"name": "ComponentIdGraph",
|
@@ -5806,7 +5938,7 @@
|
|
5806
5938
|
"__schema": "FunctionLikeSchema",
|
5807
5939
|
"location": {
|
5808
5940
|
"filePath": "component-id-graph.ts",
|
5809
|
-
"line":
|
5941
|
+
"line": 152,
|
5810
5942
|
"character": 3
|
5811
5943
|
},
|
5812
5944
|
"signature": "(method) ComponentIdGraph.runtimeOnly(componentIds: string[]): this",
|
@@ -5816,7 +5948,7 @@
|
|
5816
5948
|
"__schema": "ParameterSchema",
|
5817
5949
|
"location": {
|
5818
5950
|
"filePath": "component-id-graph.ts",
|
5819
|
-
"line":
|
5951
|
+
"line": 152,
|
5820
5952
|
"character": 15
|
5821
5953
|
},
|
5822
5954
|
"name": "componentIds",
|
@@ -5824,14 +5956,14 @@
|
|
5824
5956
|
"__schema": "TypeArraySchema",
|
5825
5957
|
"location": {
|
5826
5958
|
"filePath": "component-id-graph.ts",
|
5827
|
-
"line":
|
5959
|
+
"line": 152,
|
5828
5960
|
"character": 29
|
5829
5961
|
},
|
5830
5962
|
"type": {
|
5831
5963
|
"__schema": "KeywordTypeSchema",
|
5832
5964
|
"location": {
|
5833
5965
|
"filePath": "component-id-graph.ts",
|
5834
|
-
"line":
|
5966
|
+
"line": 152,
|
5835
5967
|
"character": 29
|
5836
5968
|
},
|
5837
5969
|
"name": "string"
|
@@ -5845,7 +5977,7 @@
|
|
5845
5977
|
"__schema": "TypeRefSchema",
|
5846
5978
|
"location": {
|
5847
5979
|
"filePath": "component-id-graph.ts",
|
5848
|
-
"line":
|
5980
|
+
"line": 152,
|
5849
5981
|
"character": 3
|
5850
5982
|
},
|
5851
5983
|
"name": "ComponentIdGraph",
|
@@ -5895,7 +6027,7 @@
|
|
5895
6027
|
"_legacy": {
|
5896
6028
|
"scope": "teambit.component",
|
5897
6029
|
"name": "graph",
|
5898
|
-
"version": "1.0.
|
6030
|
+
"version": "1.0.162"
|
5899
6031
|
},
|
5900
6032
|
"_scope": "teambit.component"
|
5901
6033
|
}
|
@@ -6472,7 +6604,7 @@
|
|
6472
6604
|
"_legacy": {
|
6473
6605
|
"scope": "teambit.component",
|
6474
6606
|
"name": "graph",
|
6475
|
-
"version": "1.0.
|
6607
|
+
"version": "1.0.162"
|
6476
6608
|
},
|
6477
6609
|
"_scope": "teambit.component"
|
6478
6610
|
}
|
@@ -6620,7 +6752,7 @@
|
|
6620
6752
|
"_legacy": {
|
6621
6753
|
"scope": "teambit.component",
|
6622
6754
|
"name": "graph",
|
6623
|
-
"version": "1.0.
|
6755
|
+
"version": "1.0.162"
|
6624
6756
|
},
|
6625
6757
|
"_scope": "teambit.component"
|
6626
6758
|
}
|
@@ -7398,7 +7530,7 @@
|
|
7398
7530
|
"character": 6
|
7399
7531
|
},
|
7400
7532
|
"name": "rest",
|
7401
|
-
"type": "{\n
|
7533
|
+
"type": "{\n id?: string | undefined;\n hidden?: boolean | undefined;\n defaultValue?: string | number | readonly string[] | undefined;\n slot?: string | undefined;\n style?: React.CSSProperties | undefined;\n ... 303 more ...;\n onEdgeUpdate?: OnEdgeUpdateFunc<...> | undefined;\n}",
|
7402
7534
|
"isSpread": true
|
7403
7535
|
}
|
7404
7536
|
],
|
@@ -8206,7 +8338,7 @@
|
|
8206
8338
|
"componentId": {
|
8207
8339
|
"scope": "teambit.component",
|
8208
8340
|
"name": "graph",
|
8209
|
-
"version": "1.0.
|
8341
|
+
"version": "1.0.162"
|
8210
8342
|
},
|
8211
8343
|
"taggedModuleExports": []
|
8212
8344
|
}
|
@@ -20,6 +20,18 @@ export declare class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {
|
|
20
20
|
* with the example above, if through is B, the results will be: [B, C].
|
21
21
|
*/
|
22
22
|
findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[];
|
23
|
+
/**
|
24
|
+
* check all the routes from the sources to targets and return the components found during this traversal.
|
25
|
+
* e.g.
|
26
|
+
* A -> B -> C -> N.
|
27
|
+
* A -> E -> N.
|
28
|
+
* B -> F -> G.
|
29
|
+
* given source: A, targets: N. The results will be: [B, C, E].
|
30
|
+
*
|
31
|
+
* if through is provided, it will only return the components that are connected to the through components.
|
32
|
+
* with the example above, if through is B, the results will be: [B, C].
|
33
|
+
*/
|
34
|
+
findAllPathsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): string[][];
|
23
35
|
/**
|
24
36
|
* overrides the super class to eliminate non-seeders components
|
25
37
|
*/
|
@@ -70,6 +70,62 @@ class ComponentIdGraph extends _graph().Graph {
|
|
70
70
|
return resultsWithThrough;
|
71
71
|
}
|
72
72
|
|
73
|
+
/**
|
74
|
+
* check all the routes from the sources to targets and return the components found during this traversal.
|
75
|
+
* e.g.
|
76
|
+
* A -> B -> C -> N.
|
77
|
+
* A -> E -> N.
|
78
|
+
* B -> F -> G.
|
79
|
+
* given source: A, targets: N. The results will be: [B, C, E].
|
80
|
+
*
|
81
|
+
* if through is provided, it will only return the components that are connected to the through components.
|
82
|
+
* with the example above, if through is B, the results will be: [B, C].
|
83
|
+
*/
|
84
|
+
findAllPathsFromSourcesToTargets(sources, targets, through) {
|
85
|
+
const removeVerFromIdStr = idStr => idStr.split('@')[0];
|
86
|
+
const targetsStr = targets.map(t => t.toStringWithoutVersion());
|
87
|
+
const traverseDFS = (node, visitedInPath, visitedInGraph = [], allPaths) => {
|
88
|
+
if (visitedInPath.includes(node)) return;
|
89
|
+
visitedInPath.push(node);
|
90
|
+
if (targetsStr.includes(removeVerFromIdStr(node))) {
|
91
|
+
allPaths.push(visitedInPath);
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
if (visitedInGraph.includes(node)) return;
|
95
|
+
visitedInGraph.push(node);
|
96
|
+
const successors = Array.from(this.successorMap(node).values());
|
97
|
+
successors.forEach(s => {
|
98
|
+
traverseDFS(s.id, [...visitedInPath], visitedInGraph, allPaths);
|
99
|
+
});
|
100
|
+
};
|
101
|
+
let allPaths = [];
|
102
|
+
sources.forEach(source => {
|
103
|
+
traverseDFS(source.toString(), [], [], allPaths);
|
104
|
+
});
|
105
|
+
if (through?.length) {
|
106
|
+
allPaths = allPaths.filter(pathWithVer => {
|
107
|
+
const pathWithoutVer = pathWithVer.map(p => removeVerFromIdStr(p));
|
108
|
+
return through.every(t => pathWithoutVer.includes(t.toStringWithoutVersion()));
|
109
|
+
});
|
110
|
+
}
|
111
|
+
const sourcesStr = sources.map(s => s.toString());
|
112
|
+
const filtered = allPaths.filter(path => {
|
113
|
+
if (path.length < 3) {
|
114
|
+
// if length is 1, the source and target are the same.
|
115
|
+
// if length is 2, the target is a direct dependency of the source. we don't care about it.
|
116
|
+
return false;
|
117
|
+
}
|
118
|
+
const [, firstDep] = path;
|
119
|
+
if (sourcesStr.includes(firstDep)) {
|
120
|
+
// the first item is the source. the second item "firstDep" can be a direct dependency of one of the sources.
|
121
|
+
// if this is the case, we have already an exact path without this firstDep.
|
122
|
+
return true;
|
123
|
+
}
|
124
|
+
return true;
|
125
|
+
});
|
126
|
+
return filtered.sort((a, b) => a.length - b.length);
|
127
|
+
}
|
128
|
+
|
73
129
|
/**
|
74
130
|
* overrides the super class to eliminate non-seeders components
|
75
131
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_graph","data","require","_lodash","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentIdGraph","Graph","constructor","nodes","edges","create","findIdsFromSourcesToTargets","sources","targets","through","removeVerFromIdStr","idStr","split","sourcesStr","map","s","toStringWithoutVersion","targetsStr","allFlattened","source","successors","toString","flat","allFlattenedIds","uniq","f","id","results","forEach","idWithNoVer","includes","allSuccessors","allSuccessorsWithNoVersion","find","push","componentIds","getNodes","n","attr","length","resultsWithThrough","throughStr","allGraph","subgraph","allGraphWithNoVersion","every","findCycles","graph","includeDeps","cycles","shouldLimitToSeedersOnly","seederIdsStr","seederIds","cyclesWithSeeders","filter","cycle","some","cycleIdStr","buildFromCleargraph","runtimeOnly","successorsSubgraph","edgeFilter","edge","exports"],"sources":["component-id-graph.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component';\nimport { Graph, Node, Edge } from '@teambit/graph.cleargraph';\nimport { uniq } from 'lodash';\n\nexport type DepEdgeType = 'prod' | 'dev' | 'ext';\n\ntype ComponentIdNode = Node<ComponentID>;\ntype DependencyEdge = Edge<DepEdgeType>;\nexport type CompIdGraph = Graph<ComponentID, DepEdgeType>;\n\nexport class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {\n seederIds: ComponentID[] = []; // component IDs that started the graph. (if from workspace, the .bitmap ids normally)\n constructor(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []) {\n super(nodes, edges);\n }\n\n protected create(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []): this {\n return new ComponentIdGraph(nodes, edges) as this;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const sourcesStr = sources.map((s) => s.toStringWithoutVersion());\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n const allFlattened = sources.map((source) => this.successors(source.toString())).flat();\n const allFlattenedIds = uniq(allFlattened.map((f) => f.id));\n const results: string[] = [];\n allFlattenedIds.forEach((id) => {\n const idWithNoVer = removeVerFromIdStr(id);\n if (sourcesStr.includes(idWithNoVer) || targetsStr.includes(idWithNoVer)) return;\n const allSuccessors = this.successors(id);\n const allSuccessorsWithNoVersion = allSuccessors.map((s) => removeVerFromIdStr(s.id));\n if (allSuccessorsWithNoVersion.find((s) => targetsStr.includes(s))) results.push(id);\n });\n const componentIds = this.getNodes(results).map((n) => n.attr);\n\n if (!through?.length) {\n return componentIds;\n }\n\n const resultsWithThrough: ComponentID[] = [];\n const throughStr = through.map((t) => t.toStringWithoutVersion());\n componentIds.forEach((id) => {\n const allGraph = this.subgraph(id.toString()).nodes.map((n) => n.id); // successors and predecessors\n const allGraphWithNoVersion = allGraph.map((s) => removeVerFromIdStr(s));\n if (throughStr.every((t) => allGraphWithNoVersion.includes(t))) resultsWithThrough.push(id);\n });\n\n return resultsWithThrough;\n }\n\n /**\n * overrides the super class to eliminate non-seeders components\n */\n findCycles(graph?: this, includeDeps = false): string[][] {\n const cycles = super.findCycles(graph);\n if (!this.shouldLimitToSeedersOnly() || includeDeps) {\n return cycles;\n }\n const seederIdsStr = this.seederIds.map((id) => id.toString());\n const cyclesWithSeeders = cycles.filter((cycle) => {\n return cycle.some((cycleIdStr) => seederIdsStr.includes(cycleIdStr));\n });\n return cyclesWithSeeders;\n }\n\n buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph {\n return this.create(graph.nodes, graph.edges);\n }\n\n runtimeOnly(componentIds: string[]) {\n return this.successorsSubgraph(componentIds, {\n edgeFilter: (edge: DependencyEdge) => edge.attr === 'prod',\n });\n }\n\n private shouldLimitToSeedersOnly() {\n return this.seederIds.length;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CA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AAC,CAAC,EAAEmD,kBAAkB,CAACN,IAAI,CAACR,EAAE,CAAC;IAC7F,CAAC,CAAC;IAEF,OAAOc,kBAAkB;EAC3B;;EAEA;AACF;AACA;EACEM,UAAUA,CAACC,KAAY,EAAEC,WAAW,GAAG,KAAK,EAAc;IACxD,MAAMC,MAAM,GAAG,KAAK,CAACH,UAAU,CAACC,KAAK,CAAC;IACtC,IAAI,CAAC,IAAI,CAACG,wBAAwB,CAAC,CAAC,IAAIF,WAAW,EAAE;MACnD,OAAOC,MAAM;IACf;IACA,MAAME,YAAY,GAAG,IAAI,CAACC,SAAS,CAACtC,GAAG,CAAEY,EAAE,IAAKA,EAAE,CAACL,QAAQ,CAAC,CAAC,CAAC;IAC9D,MAAMgC,iBAAiB,GAAGJ,MAAM,CAACK,MAAM,CAAEC,KAAK,IAAK;MACjD,OAAOA,KAAK,CAACC,IAAI,CAAEC,UAAU,IAAKN,YAAY,CAACrB,QAAQ,CAAC2B,UAAU,CAAC,CAAC;IACtE,CAAC,CAAC;IACF,OAAOJ,iBAAiB;EAC1B;EAEAK,mBAAmBA,CAACX,KAAsC,EAAoB;IAC5E,OAAO,IAAI,CAAC1C,MAAM,CAAC0C,KAAK,CAAC5C,KAAK,EAAE4C,KAAK,CAAC3C,KAAK,CAAC;EAC9C;EAEAuD,WAAWA,CAACxB,YAAsB,EAAE;IAClC,OAAO,IAAI,CAACyB,kBAAkB,CAACzB,YAAY,EAAE;MAC3C0B,UAAU,EAAGC,IAAoB,IAAKA,IAAI,CAACxB,IAAI,KAAK;IACtD,CAAC,CAAC;EACJ;EAEQY,wBAAwBA,CAAA,EAAG;IACjC,OAAO,IAAI,CAACE,SAAS,CAACb,MAAM;EAC9B;AACF;AAACwB,OAAA,CAAA/D,gBAAA,GAAAA,gBAAA"}
|
1
|
+
{"version":3,"names":["_graph","data","require","_lodash","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentIdGraph","Graph","constructor","nodes","edges","create","findIdsFromSourcesToTargets","sources","targets","through","removeVerFromIdStr","idStr","split","sourcesStr","map","s","toStringWithoutVersion","targetsStr","allFlattened","source","successors","toString","flat","allFlattenedIds","uniq","f","id","results","forEach","idWithNoVer","includes","allSuccessors","allSuccessorsWithNoVersion","find","push","componentIds","getNodes","n","attr","length","resultsWithThrough","throughStr","allGraph","subgraph","allGraphWithNoVersion","every","findAllPathsFromSourcesToTargets","traverseDFS","node","visitedInPath","visitedInGraph","allPaths","Array","from","successorMap","values","filter","pathWithVer","pathWithoutVer","p","filtered","path","firstDep","sort","a","b","findCycles","graph","includeDeps","cycles","shouldLimitToSeedersOnly","seederIdsStr","seederIds","cyclesWithSeeders","cycle","some","cycleIdStr","buildFromCleargraph","runtimeOnly","successorsSubgraph","edgeFilter","edge","exports"],"sources":["component-id-graph.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component';\nimport { Graph, Node, Edge } from '@teambit/graph.cleargraph';\nimport { uniq } from 'lodash';\n\nexport type DepEdgeType = 'prod' | 'dev' | 'ext';\n\ntype ComponentIdNode = Node<ComponentID>;\ntype DependencyEdge = Edge<DepEdgeType>;\nexport type CompIdGraph = Graph<ComponentID, DepEdgeType>;\n\nexport class ComponentIdGraph extends Graph<ComponentID, DepEdgeType> {\n seederIds: ComponentID[] = []; // component IDs that started the graph. (if from workspace, the .bitmap ids normally)\n constructor(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []) {\n super(nodes, edges);\n }\n\n protected create(nodes: ComponentIdNode[] = [], edges: DependencyEdge[] = []): this {\n return new ComponentIdGraph(nodes, edges) as this;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const sourcesStr = sources.map((s) => s.toStringWithoutVersion());\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n const allFlattened = sources.map((source) => this.successors(source.toString())).flat();\n const allFlattenedIds = uniq(allFlattened.map((f) => f.id));\n const results: string[] = [];\n allFlattenedIds.forEach((id) => {\n const idWithNoVer = removeVerFromIdStr(id);\n if (sourcesStr.includes(idWithNoVer) || targetsStr.includes(idWithNoVer)) return;\n const allSuccessors = this.successors(id);\n const allSuccessorsWithNoVersion = allSuccessors.map((s) => removeVerFromIdStr(s.id));\n if (allSuccessorsWithNoVersion.find((s) => targetsStr.includes(s))) results.push(id);\n });\n const componentIds = this.getNodes(results).map((n) => n.attr);\n\n if (!through?.length) {\n return componentIds;\n }\n\n const resultsWithThrough: ComponentID[] = [];\n const throughStr = through.map((t) => t.toStringWithoutVersion());\n componentIds.forEach((id) => {\n const allGraph = this.subgraph(id.toString()).nodes.map((n) => n.id); // successors and predecessors\n const allGraphWithNoVersion = allGraph.map((s) => removeVerFromIdStr(s));\n if (throughStr.every((t) => allGraphWithNoVersion.includes(t))) resultsWithThrough.push(id);\n });\n\n return resultsWithThrough;\n }\n\n /**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */\n findAllPathsFromSourcesToTargets(\n sources: ComponentID[],\n targets: ComponentID[],\n through?: ComponentID[]\n ): string[][] {\n const removeVerFromIdStr = (idStr: string) => idStr.split('@')[0];\n const targetsStr = targets.map((t) => t.toStringWithoutVersion());\n\n const traverseDFS = (\n node: string,\n visitedInPath: string[],\n visitedInGraph: string[] = [],\n allPaths: string[][]\n ) => {\n if (visitedInPath.includes(node)) return;\n visitedInPath.push(node);\n if (targetsStr.includes(removeVerFromIdStr(node))) {\n allPaths.push(visitedInPath);\n return;\n }\n if (visitedInGraph.includes(node)) return;\n visitedInGraph.push(node);\n const successors = Array.from(this.successorMap(node).values());\n successors.forEach((s) => {\n traverseDFS(s.id, [...visitedInPath], visitedInGraph, allPaths);\n });\n };\n\n let allPaths: string[][] = [];\n sources.forEach((source) => {\n traverseDFS(source.toString(), [], [], allPaths);\n });\n\n if (through?.length) {\n allPaths = allPaths.filter((pathWithVer) => {\n const pathWithoutVer = pathWithVer.map((p) => removeVerFromIdStr(p));\n return through.every((t) => pathWithoutVer.includes(t.toStringWithoutVersion()));\n });\n }\n\n const sourcesStr = sources.map((s) => s.toString());\n const filtered = allPaths.filter((path) => {\n if (path.length < 3) {\n // if length is 1, the source and target are the same.\n // if length is 2, the target is a direct dependency of the source. we don't care about it.\n return false;\n }\n const [, firstDep] = path;\n if (sourcesStr.includes(firstDep)) {\n // the first item is the source. the second item \"firstDep\" can be a direct dependency of one of the sources.\n // if this is the case, we have already an exact path without this firstDep.\n return true;\n }\n return true;\n });\n\n return filtered.sort((a, b) => a.length - b.length);\n }\n\n /**\n * overrides the super class to eliminate non-seeders components\n */\n findCycles(graph?: this, includeDeps = false): string[][] {\n const cycles = super.findCycles(graph);\n if (!this.shouldLimitToSeedersOnly() || includeDeps) {\n return cycles;\n }\n const seederIdsStr = this.seederIds.map((id) => id.toString());\n const cyclesWithSeeders = cycles.filter((cycle) => {\n return cycle.some((cycleIdStr) => seederIdsStr.includes(cycleIdStr));\n });\n return cyclesWithSeeders;\n }\n\n buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph {\n return this.create(graph.nodes, graph.edges);\n }\n\n runtimeOnly(componentIds: string[]) {\n return this.successorsSubgraph(componentIds, {\n edgeFilter: (edge: DependencyEdge) => edge.attr === 'prod',\n });\n }\n\n private shouldLimitToSeedersOnly() {\n return this.seederIds.length;\n }\n}\n"],"mappings":";;;;;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,CAAC,CAAC;IACF,OAAOH,iBAAiB;EAC1B;EAEAI,mBAAmBA,CAACV,KAAsC,EAAoB;IAC5E,OAAO,IAAI,CAAC9D,MAAM,CAAC8D,KAAK,CAAChE,KAAK,EAAEgE,KAAK,CAAC/D,KAAK,CAAC;EAC9C;EAEA0E,WAAWA,CAAC3C,YAAsB,EAAE;IAClC,OAAO,IAAI,CAAC4C,kBAAkB,CAAC5C,YAAY,EAAE;MAC3C6C,UAAU,EAAGC,IAAoB,IAAKA,IAAI,CAAC3C,IAAI,KAAK;IACtD,CAAC,CAAC;EACJ;EAEQgC,wBAAwBA,CAAA,EAAG;IACjC,OAAO,IAAI,CAACE,SAAS,CAACjC,MAAM;EAC9B;AACF;AAAC2C,OAAA,CAAAlF,gBAAA,GAAAA,gBAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.162/dist/graph.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.162/dist/graph.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/graph",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.162",
|
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.162"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"lodash": "4.17.21",
|
@@ -35,13 +35,13 @@
|
|
35
35
|
"@teambit/ui-foundation.ui.full-loader": "0.0.500",
|
36
36
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505",
|
37
37
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
38
|
-
"@teambit/component": "1.0.
|
38
|
+
"@teambit/component": "1.0.162",
|
39
39
|
"@teambit/cli": "0.0.851",
|
40
40
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.103",
|
41
|
-
"@teambit/graphql": "1.0.
|
41
|
+
"@teambit/graphql": "1.0.162",
|
42
42
|
"@teambit/logger": "0.0.944",
|
43
|
-
"@teambit/component-compare": "1.0.
|
44
|
-
"@teambit/ui": "1.0.
|
43
|
+
"@teambit/component-compare": "1.0.162",
|
44
|
+
"@teambit/ui": "1.0.162",
|
45
45
|
"@teambit/component.modules.component-url": "0.0.167",
|
46
46
|
"@teambit/envs.ui.env-icon": "0.0.505",
|
47
47
|
"@teambit/component.ui.component-compare.context": "0.0.118"
|