@teambit/forking 1.0.227 → 1.0.229

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/forking@1.0.227" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/forking@1.0.229" 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/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={91781:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.227",homepage:"https://bit.cloud/teambit/component/forking",exported:!0};function r(){const e=i(o(41594));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 p=()=>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/forking.svg"}));p.__bit_component=n,t.Logo=p},41594: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={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>f});var t=o(91781);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var a={},s="wrapper";function f(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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(s,c({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}f.isMDXComponent=!0;const d=[t],u=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
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/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={71334:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.229",homepage:"https://bit.cloud/teambit/component/forking",exported:!0};function r(){const e=i(o(41594));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 p=()=>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/forking.svg"}));p.__bit_component=n,t.Logo=p},41594: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={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>f});var t=o(71334);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var a={},s="wrapper";function f(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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(s,c({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}f.isMDXComponent=!0;const d=[t],u=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -48,7 +48,11 @@
48
48
  "line": 53,
49
49
  "character": 24
50
50
  },
51
- "name": "Workspace"
51
+ "name": "Workspace",
52
+ "componentId": {
53
+ "scope": "teambit.workspace",
54
+ "name": "workspace"
55
+ }
52
56
  },
53
57
  "isOptional": false,
54
58
  "isSpread": false
@@ -68,7 +72,11 @@
68
72
  "line": 54,
69
73
  "character": 22
70
74
  },
71
- "name": "InstallMain"
75
+ "name": "InstallMain",
76
+ "componentId": {
77
+ "scope": "teambit.workspace",
78
+ "name": "install"
79
+ }
72
80
  },
73
81
  "isOptional": false,
74
82
  "isSpread": false
@@ -88,7 +96,11 @@
88
96
  "line": 55,
89
97
  "character": 33
90
98
  },
91
- "name": "DependencyResolverMain"
99
+ "name": "DependencyResolverMain",
100
+ "componentId": {
101
+ "scope": "teambit.dependencies",
102
+ "name": "dependency-resolver"
103
+ }
92
104
  },
93
105
  "isOptional": false,
94
106
  "isSpread": false
@@ -108,7 +120,11 @@
108
120
  "line": 56,
109
121
  "character": 33
110
122
  },
111
- "name": "NewComponentHelperMain"
123
+ "name": "NewComponentHelperMain",
124
+ "componentId": {
125
+ "scope": "teambit.component",
126
+ "name": "new-component-helper"
127
+ }
112
128
  },
113
129
  "isOptional": false,
114
130
  "isSpread": false
@@ -128,7 +144,11 @@
128
144
  "line": 57,
129
145
  "character": 26
130
146
  },
131
- "name": "RefactoringMain"
147
+ "name": "RefactoringMain",
148
+ "componentId": {
149
+ "scope": "teambit.component",
150
+ "name": "refactoring"
151
+ }
132
152
  },
133
153
  "isOptional": false,
134
154
  "isSpread": false
@@ -148,7 +168,11 @@
148
168
  "line": 58,
149
169
  "character": 18
150
170
  },
151
- "name": "PkgMain"
171
+ "name": "PkgMain",
172
+ "componentId": {
173
+ "scope": "teambit.pkg",
174
+ "name": "pkg"
175
+ }
152
176
  },
153
177
  "isOptional": false,
154
178
  "isSpread": false
@@ -240,7 +264,8 @@
240
264
  "line": 66,
241
265
  "character": 61
242
266
  },
243
- "name": "ForkOptions"
267
+ "name": "ForkOptions",
268
+ "internalFilePath": "fork.cmd.ts"
244
269
  },
245
270
  "isOptional": true,
246
271
  "isSpread": false
@@ -262,7 +287,12 @@
262
287
  "line": 66,
263
288
  "character": 83
264
289
  },
265
- "name": "ComponentID"
290
+ "name": "ComponentID",
291
+ "componentId": {
292
+ "scope": "teambit.component",
293
+ "name": "component-id",
294
+ "version": "1.2.0"
295
+ }
266
296
  }
267
297
  ]
268
298
  },
@@ -305,7 +335,11 @@
305
335
  "line": 84,
306
336
  "character": 26
307
337
  },
308
- "name": "Component"
338
+ "name": "Component",
339
+ "componentId": {
340
+ "scope": "teambit.component",
341
+ "name": "component"
342
+ }
309
343
  },
310
344
  "isOptional": false,
311
345
  "isSpread": false
@@ -326,7 +360,8 @@
326
360
  "line": 84,
327
361
  "character": 38
328
362
  },
329
- "name": "ForkInfo"
363
+ "name": "ForkInfo",
364
+ "internalFilePath": "forking.main.runtime.ts"
330
365
  },
331
366
  {
332
367
  "__schema": "LiteralTypeSchema",
@@ -366,7 +401,8 @@
366
401
  "line": 92,
367
402
  "character": 50
368
403
  },
369
- "name": "MultipleComponentsToFork"
404
+ "name": "MultipleComponentsToFork",
405
+ "internalFilePath": "forking.main.runtime.ts"
370
406
  },
371
407
  "isOptional": false,
372
408
  "isSpread": false
@@ -386,7 +422,8 @@
386
422
  "line": 92,
387
423
  "character": 85
388
424
  },
389
- "name": "MultipleForkOptions"
425
+ "name": "MultipleForkOptions",
426
+ "internalFilePath": "forking.main.runtime.ts"
390
427
  },
391
428
  "isOptional": true,
392
429
  "defaultValue": "{}",
@@ -501,7 +538,8 @@
501
538
  "line": 191,
502
539
  "character": 15
503
540
  },
504
- "name": "ScopeForkOptions"
541
+ "name": "ScopeForkOptions",
542
+ "internalFilePath": "scope-fork.cmd.ts"
505
543
  },
506
544
  "isOptional": true,
507
545
  "isSpread": false
@@ -530,7 +568,12 @@
530
568
  "line": 192,
531
569
  "character": 14
532
570
  },
533
- "name": "ComponentID"
571
+ "name": "ComponentID",
572
+ "componentId": {
573
+ "scope": "teambit.component",
574
+ "name": "component-id",
575
+ "version": "1.2.0"
576
+ }
534
577
  }
535
578
  }
536
579
  ]
@@ -635,7 +678,11 @@
635
678
  "line": 374,
636
679
  "character": 5
637
680
  },
638
- "name": "CLIMain"
681
+ "name": "CLIMain",
682
+ "componentId": {
683
+ "scope": "teambit.harmony",
684
+ "name": "cli"
685
+ }
639
686
  },
640
687
  {
641
688
  "__schema": "TypeRefSchema",
@@ -644,7 +691,11 @@
644
691
  "line": 375,
645
692
  "character": 5
646
693
  },
647
- "name": "Workspace"
694
+ "name": "Workspace",
695
+ "componentId": {
696
+ "scope": "teambit.workspace",
697
+ "name": "workspace"
698
+ }
648
699
  },
649
700
  {
650
701
  "__schema": "TypeRefSchema",
@@ -653,7 +704,11 @@
653
704
  "line": 376,
654
705
  "character": 5
655
706
  },
656
- "name": "DependencyResolverMain"
707
+ "name": "DependencyResolverMain",
708
+ "componentId": {
709
+ "scope": "teambit.dependencies",
710
+ "name": "dependency-resolver"
711
+ }
657
712
  },
658
713
  {
659
714
  "__schema": "TypeRefSchema",
@@ -662,7 +717,11 @@
662
717
  "line": 377,
663
718
  "character": 5
664
719
  },
665
- "name": "ComponentMain"
720
+ "name": "ComponentMain",
721
+ "componentId": {
722
+ "scope": "teambit.component",
723
+ "name": "component"
724
+ }
666
725
  },
667
726
  {
668
727
  "__schema": "TypeRefSchema",
@@ -671,7 +730,11 @@
671
730
  "line": 378,
672
731
  "character": 5
673
732
  },
674
- "name": "NewComponentHelperMain"
733
+ "name": "NewComponentHelperMain",
734
+ "componentId": {
735
+ "scope": "teambit.component",
736
+ "name": "new-component-helper"
737
+ }
675
738
  },
676
739
  {
677
740
  "__schema": "TypeRefSchema",
@@ -680,7 +743,11 @@
680
743
  "line": 379,
681
744
  "character": 5
682
745
  },
683
- "name": "GraphqlMain"
746
+ "name": "GraphqlMain",
747
+ "componentId": {
748
+ "scope": "teambit.harmony",
749
+ "name": "graphql"
750
+ }
684
751
  },
685
752
  {
686
753
  "__schema": "TypeRefSchema",
@@ -689,7 +756,11 @@
689
756
  "line": 380,
690
757
  "character": 5
691
758
  },
692
- "name": "RefactoringMain"
759
+ "name": "RefactoringMain",
760
+ "componentId": {
761
+ "scope": "teambit.component",
762
+ "name": "refactoring"
763
+ }
693
764
  },
694
765
  {
695
766
  "__schema": "TypeRefSchema",
@@ -698,7 +769,11 @@
698
769
  "line": 381,
699
770
  "character": 5
700
771
  },
701
- "name": "PkgMain"
772
+ "name": "PkgMain",
773
+ "componentId": {
774
+ "scope": "teambit.pkg",
775
+ "name": "pkg"
776
+ }
702
777
  },
703
778
  {
704
779
  "__schema": "TypeRefSchema",
@@ -707,7 +782,11 @@
707
782
  "line": 382,
708
783
  "character": 5
709
784
  },
710
- "name": "InstallMain"
785
+ "name": "InstallMain",
786
+ "componentId": {
787
+ "scope": "teambit.workspace",
788
+ "name": "install"
789
+ }
711
790
  }
712
791
  ]
713
792
  },
@@ -861,7 +940,11 @@
861
940
  "line": 53,
862
941
  "character": 24
863
942
  },
864
- "name": "Workspace"
943
+ "name": "Workspace",
944
+ "componentId": {
945
+ "scope": "teambit.workspace",
946
+ "name": "workspace"
947
+ }
865
948
  },
866
949
  "isOptional": false,
867
950
  "isSpread": false
@@ -881,7 +964,11 @@
881
964
  "line": 54,
882
965
  "character": 22
883
966
  },
884
- "name": "InstallMain"
967
+ "name": "InstallMain",
968
+ "componentId": {
969
+ "scope": "teambit.workspace",
970
+ "name": "install"
971
+ }
885
972
  },
886
973
  "isOptional": false,
887
974
  "isSpread": false
@@ -901,7 +988,11 @@
901
988
  "line": 55,
902
989
  "character": 33
903
990
  },
904
- "name": "DependencyResolverMain"
991
+ "name": "DependencyResolverMain",
992
+ "componentId": {
993
+ "scope": "teambit.dependencies",
994
+ "name": "dependency-resolver"
995
+ }
905
996
  },
906
997
  "isOptional": false,
907
998
  "isSpread": false
@@ -921,7 +1012,11 @@
921
1012
  "line": 56,
922
1013
  "character": 33
923
1014
  },
924
- "name": "NewComponentHelperMain"
1015
+ "name": "NewComponentHelperMain",
1016
+ "componentId": {
1017
+ "scope": "teambit.component",
1018
+ "name": "new-component-helper"
1019
+ }
925
1020
  },
926
1021
  "isOptional": false,
927
1022
  "isSpread": false
@@ -941,7 +1036,11 @@
941
1036
  "line": 57,
942
1037
  "character": 26
943
1038
  },
944
- "name": "RefactoringMain"
1039
+ "name": "RefactoringMain",
1040
+ "componentId": {
1041
+ "scope": "teambit.component",
1042
+ "name": "refactoring"
1043
+ }
945
1044
  },
946
1045
  "isOptional": false,
947
1046
  "isSpread": false
@@ -961,7 +1060,11 @@
961
1060
  "line": 58,
962
1061
  "character": 18
963
1062
  },
964
- "name": "PkgMain"
1063
+ "name": "PkgMain",
1064
+ "componentId": {
1065
+ "scope": "teambit.pkg",
1066
+ "name": "pkg"
1067
+ }
965
1068
  },
966
1069
  "isOptional": false,
967
1070
  "isSpread": false
@@ -1053,7 +1156,8 @@
1053
1156
  "line": 66,
1054
1157
  "character": 61
1055
1158
  },
1056
- "name": "ForkOptions"
1159
+ "name": "ForkOptions",
1160
+ "internalFilePath": "fork.cmd.ts"
1057
1161
  },
1058
1162
  "isOptional": true,
1059
1163
  "isSpread": false
@@ -1075,7 +1179,12 @@
1075
1179
  "line": 66,
1076
1180
  "character": 83
1077
1181
  },
1078
- "name": "ComponentID"
1182
+ "name": "ComponentID",
1183
+ "componentId": {
1184
+ "scope": "teambit.component",
1185
+ "name": "component-id",
1186
+ "version": "1.2.0"
1187
+ }
1079
1188
  }
1080
1189
  ]
1081
1190
  },
@@ -1118,7 +1227,11 @@
1118
1227
  "line": 84,
1119
1228
  "character": 26
1120
1229
  },
1121
- "name": "Component"
1230
+ "name": "Component",
1231
+ "componentId": {
1232
+ "scope": "teambit.component",
1233
+ "name": "component"
1234
+ }
1122
1235
  },
1123
1236
  "isOptional": false,
1124
1237
  "isSpread": false
@@ -1139,7 +1252,8 @@
1139
1252
  "line": 84,
1140
1253
  "character": 38
1141
1254
  },
1142
- "name": "ForkInfo"
1255
+ "name": "ForkInfo",
1256
+ "internalFilePath": "forking.main.runtime.ts"
1143
1257
  },
1144
1258
  {
1145
1259
  "__schema": "LiteralTypeSchema",
@@ -1179,7 +1293,8 @@
1179
1293
  "line": 92,
1180
1294
  "character": 50
1181
1295
  },
1182
- "name": "MultipleComponentsToFork"
1296
+ "name": "MultipleComponentsToFork",
1297
+ "internalFilePath": "forking.main.runtime.ts"
1183
1298
  },
1184
1299
  "isOptional": false,
1185
1300
  "isSpread": false
@@ -1199,7 +1314,8 @@
1199
1314
  "line": 92,
1200
1315
  "character": 85
1201
1316
  },
1202
- "name": "MultipleForkOptions"
1317
+ "name": "MultipleForkOptions",
1318
+ "internalFilePath": "forking.main.runtime.ts"
1203
1319
  },
1204
1320
  "isOptional": true,
1205
1321
  "defaultValue": "{}",
@@ -1314,7 +1430,8 @@
1314
1430
  "line": 191,
1315
1431
  "character": 15
1316
1432
  },
1317
- "name": "ScopeForkOptions"
1433
+ "name": "ScopeForkOptions",
1434
+ "internalFilePath": "scope-fork.cmd.ts"
1318
1435
  },
1319
1436
  "isOptional": true,
1320
1437
  "isSpread": false
@@ -1343,7 +1460,12 @@
1343
1460
  "line": 192,
1344
1461
  "character": 14
1345
1462
  },
1346
- "name": "ComponentID"
1463
+ "name": "ComponentID",
1464
+ "componentId": {
1465
+ "scope": "teambit.component",
1466
+ "name": "component-id",
1467
+ "version": "1.2.0"
1468
+ }
1347
1469
  }
1348
1470
  }
1349
1471
  ]
@@ -1448,7 +1570,11 @@
1448
1570
  "line": 374,
1449
1571
  "character": 5
1450
1572
  },
1451
- "name": "CLIMain"
1573
+ "name": "CLIMain",
1574
+ "componentId": {
1575
+ "scope": "teambit.harmony",
1576
+ "name": "cli"
1577
+ }
1452
1578
  },
1453
1579
  {
1454
1580
  "__schema": "TypeRefSchema",
@@ -1457,7 +1583,11 @@
1457
1583
  "line": 375,
1458
1584
  "character": 5
1459
1585
  },
1460
- "name": "Workspace"
1586
+ "name": "Workspace",
1587
+ "componentId": {
1588
+ "scope": "teambit.workspace",
1589
+ "name": "workspace"
1590
+ }
1461
1591
  },
1462
1592
  {
1463
1593
  "__schema": "TypeRefSchema",
@@ -1466,7 +1596,11 @@
1466
1596
  "line": 376,
1467
1597
  "character": 5
1468
1598
  },
1469
- "name": "DependencyResolverMain"
1599
+ "name": "DependencyResolverMain",
1600
+ "componentId": {
1601
+ "scope": "teambit.dependencies",
1602
+ "name": "dependency-resolver"
1603
+ }
1470
1604
  },
1471
1605
  {
1472
1606
  "__schema": "TypeRefSchema",
@@ -1475,7 +1609,11 @@
1475
1609
  "line": 377,
1476
1610
  "character": 5
1477
1611
  },
1478
- "name": "ComponentMain"
1612
+ "name": "ComponentMain",
1613
+ "componentId": {
1614
+ "scope": "teambit.component",
1615
+ "name": "component"
1616
+ }
1479
1617
  },
1480
1618
  {
1481
1619
  "__schema": "TypeRefSchema",
@@ -1484,7 +1622,11 @@
1484
1622
  "line": 378,
1485
1623
  "character": 5
1486
1624
  },
1487
- "name": "NewComponentHelperMain"
1625
+ "name": "NewComponentHelperMain",
1626
+ "componentId": {
1627
+ "scope": "teambit.component",
1628
+ "name": "new-component-helper"
1629
+ }
1488
1630
  },
1489
1631
  {
1490
1632
  "__schema": "TypeRefSchema",
@@ -1493,7 +1635,11 @@
1493
1635
  "line": 379,
1494
1636
  "character": 5
1495
1637
  },
1496
- "name": "GraphqlMain"
1638
+ "name": "GraphqlMain",
1639
+ "componentId": {
1640
+ "scope": "teambit.harmony",
1641
+ "name": "graphql"
1642
+ }
1497
1643
  },
1498
1644
  {
1499
1645
  "__schema": "TypeRefSchema",
@@ -1502,7 +1648,11 @@
1502
1648
  "line": 380,
1503
1649
  "character": 5
1504
1650
  },
1505
- "name": "RefactoringMain"
1651
+ "name": "RefactoringMain",
1652
+ "componentId": {
1653
+ "scope": "teambit.component",
1654
+ "name": "refactoring"
1655
+ }
1506
1656
  },
1507
1657
  {
1508
1658
  "__schema": "TypeRefSchema",
@@ -1511,7 +1661,11 @@
1511
1661
  "line": 381,
1512
1662
  "character": 5
1513
1663
  },
1514
- "name": "PkgMain"
1664
+ "name": "PkgMain",
1665
+ "componentId": {
1666
+ "scope": "teambit.pkg",
1667
+ "name": "pkg"
1668
+ }
1515
1669
  },
1516
1670
  {
1517
1671
  "__schema": "TypeRefSchema",
@@ -1520,7 +1674,11 @@
1520
1674
  "line": 382,
1521
1675
  "character": 5
1522
1676
  },
1523
- "name": "InstallMain"
1677
+ "name": "InstallMain",
1678
+ "componentId": {
1679
+ "scope": "teambit.workspace",
1680
+ "name": "install"
1681
+ }
1524
1682
  }
1525
1683
  ]
1526
1684
  },
@@ -1824,7 +1982,11 @@
1824
1982
  "line": 41,
1825
1983
  "character": 12
1826
1984
  },
1827
- "name": "ComponentConfig"
1985
+ "name": "ComponentConfig",
1986
+ "componentId": {
1987
+ "scope": "teambit.generator",
1988
+ "name": "generator"
1989
+ }
1828
1990
  },
1829
1991
  "isOptional": true
1830
1992
  }
@@ -1986,7 +2148,7 @@
1986
2148
  "componentId": {
1987
2149
  "scope": "teambit.component",
1988
2150
  "name": "forking",
1989
- "version": "1.0.227"
2151
+ "version": "1.0.229"
1990
2152
  },
1991
2153
  "taggedModuleExports": []
1992
2154
  }
@@ -0,0 +1,39 @@
1
+ import { Command, CommandOptions } from '@teambit/cli';
2
+ import { ComponentConfig } from '@teambit/generator';
3
+ import { ForkingMain } from '.';
4
+ export type ForkOptions = {
5
+ scope?: string;
6
+ path?: string;
7
+ refactor?: boolean;
8
+ skipDependencyInstallation?: boolean;
9
+ skipConfig?: boolean;
10
+ preserve?: boolean;
11
+ noLink?: boolean;
12
+ env?: string;
13
+ config?: ComponentConfig;
14
+ ast?: boolean;
15
+ };
16
+ export declare class ForkCmd implements Command {
17
+ private forking;
18
+ name: string;
19
+ description: string;
20
+ helpUrl: string;
21
+ arguments: {
22
+ name: string;
23
+ description: string;
24
+ }[];
25
+ group: string;
26
+ skipWorkspace: boolean;
27
+ alias: string;
28
+ options: CommandOptions;
29
+ example: [
30
+ {
31
+ cmd: 'fork teambit.base-ui/input/button ui/button';
32
+ description: "create a component named 'ui/button', forked from the remote 'input/button' component";
33
+ }
34
+ ];
35
+ loader: boolean;
36
+ remoteOp: boolean;
37
+ constructor(forking: ForkingMain);
38
+ report([sourceId, targetId]: [string, string], options: ForkOptions): Promise<string>;
39
+ }
@@ -0,0 +1,2 @@
1
+ import { Aspect } from '@teambit/harmony';
2
+ export declare const ForkingAspect: Aspect;
@@ -0,0 +1 @@
1
+ export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { Component, ShowFragment } from '@teambit/component';
2
+ import { ForkingMain } from './forking.main.runtime';
3
+ export declare class ForkingFragment implements ShowFragment {
4
+ private forking;
5
+ constructor(forking: ForkingMain);
6
+ title: string;
7
+ renderRow(component: Component): Promise<{
8
+ title: string;
9
+ content: string;
10
+ }>;
11
+ json(component: Component): Promise<{
12
+ title: string;
13
+ json: import("./forking.main.runtime").ForkInfo | null;
14
+ }>;
15
+ weight: number;
16
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema } from '@teambit/graphql';
2
+ import { ForkingMain } from './forking.main.runtime';
3
+ export declare function forkingSchema(forking: ForkingMain): Schema;
@@ -0,0 +1,86 @@
1
+ import { CLIMain } from '@teambit/cli';
2
+ import { Component, ComponentMain } from '@teambit/component';
3
+ import { DependencyResolverMain } from '@teambit/dependency-resolver';
4
+ import { ComponentConfig } from '@teambit/generator';
5
+ import { GraphqlMain } from '@teambit/graphql';
6
+ import { InstallMain } from '@teambit/install';
7
+ import { ComponentID, ComponentIdObj } from '@teambit/component-id';
8
+ import { NewComponentHelperMain } from '@teambit/new-component-helper';
9
+ import { PkgMain } from '@teambit/pkg';
10
+ import { RefactoringMain } from '@teambit/refactoring';
11
+ import { Workspace } from '@teambit/workspace';
12
+ import { ForkOptions } from './fork.cmd';
13
+ import { ScopeForkOptions } from './scope-fork.cmd';
14
+ export type ForkInfo = {
15
+ forkedFrom: ComponentID;
16
+ };
17
+ type MultipleComponentsToFork = Array<{
18
+ sourceId: string;
19
+ targetId?: string;
20
+ targetScope?: string;
21
+ path?: string;
22
+ env?: string;
23
+ config?: ComponentConfig;
24
+ }>;
25
+ type MultipleForkOptions = {
26
+ refactor?: boolean;
27
+ scope?: string;
28
+ install?: boolean;
29
+ ast?: boolean;
30
+ };
31
+ export declare class ForkingMain {
32
+ private workspace;
33
+ private install;
34
+ private dependencyResolver;
35
+ private newComponentHelper;
36
+ private refactoring;
37
+ private pkg;
38
+ constructor(workspace: Workspace, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain);
39
+ /**
40
+ * create a new copy of existing/remote component.
41
+ * the new component holds a reference to the old one for future reference.
42
+ * if refactor option is enable, change the source-code to update all dependencies with the new name.
43
+ */
44
+ fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>;
45
+ /**
46
+ * get the forking data, such as the source where a component was forked from
47
+ */
48
+ getForkInfo(component: Component): ForkInfo | null;
49
+ forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<void>;
50
+ /**
51
+ * sort the components to fork so that components without "env" prop will be forked first.
52
+ * this way, if some components are envs, their "env" prop is empty and will be forked first, then components that
53
+ * depends on them.
54
+ * otherwise, forking the components first result in errors when loading them as their envs are missing at that point
55
+ */
56
+ private sortComponentsToFork;
57
+ private refactorMultipleAndInstall;
58
+ /**
59
+ * fork all components of the given scope
60
+ */
61
+ forkScope(originalScope: string, newScope: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>;
62
+ private forkExistingInWorkspace;
63
+ private forkRemoteComponent;
64
+ private saveDeps;
65
+ private installDeps;
66
+ private extractDeps;
67
+ private getConfig;
68
+ static slots: never[];
69
+ static dependencies: import("@teambit/harmony").Aspect[];
70
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
71
+ static provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [
72
+ CLIMain,
73
+ Workspace,
74
+ DependencyResolverMain,
75
+ ComponentMain,
76
+ NewComponentHelperMain,
77
+ GraphqlMain,
78
+ RefactoringMain,
79
+ PkgMain,
80
+ InstallMain
81
+ ]): Promise<ForkingMain>;
82
+ }
83
+ export type ForkConfig = {
84
+ forkedFrom: ComponentIdObj;
85
+ };
86
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ForkingAspect } from './forking.aspect';
2
+ export type { ForkingMain } from './forking.main.runtime';
3
+ export default ForkingAspect;
4
+ export { ForkingAspect };
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@1.0.227/dist/forking.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@1.0.227/dist/forking.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@1.0.229/dist/forking.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@1.0.229/dist/forking.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -0,0 +1,20 @@
1
+ import { Command, CommandOptions } from '@teambit/cli';
2
+ import { ForkingMain } from './forking.main.runtime';
3
+ export type ScopeForkOptions = {
4
+ ast?: boolean;
5
+ skipDependencyInstallation?: boolean;
6
+ };
7
+ export declare class ScopeForkCmd implements Command {
8
+ private forking;
9
+ name: string;
10
+ arguments: {
11
+ name: string;
12
+ description: string;
13
+ }[];
14
+ description: string;
15
+ extendedDescription: string;
16
+ options: CommandOptions;
17
+ group: string;
18
+ constructor(forking: ForkingMain);
19
+ report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions): Promise<string>;
20
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/forking",
3
- "version": "1.0.227",
3
+ "version": "1.0.229",
4
4
  "homepage": "https://bit.cloud/teambit/component/forking",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "forking",
9
- "version": "1.0.227"
9
+ "version": "1.0.229"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -18,25 +18,25 @@
18
18
  "@teambit/bit-error": "0.0.404",
19
19
  "@teambit/component-id": "1.2.0",
20
20
  "@teambit/component-version": "1.0.3",
21
- "@teambit/cli": "0.0.860",
22
- "@teambit/generator": "1.0.228",
23
- "@teambit/component": "1.0.227",
24
- "@teambit/graphql": "1.0.227",
21
+ "@teambit/cli": "0.0.862",
22
+ "@teambit/generator": "1.0.230",
23
+ "@teambit/component": "1.0.229",
24
+ "@teambit/graphql": "1.0.229",
25
25
  "@teambit/component-package-version": "0.0.433",
26
- "@teambit/dependency-resolver": "1.0.227",
27
- "@teambit/install": "1.0.227",
28
- "@teambit/new-component-helper": "1.0.227",
29
- "@teambit/pkg": "1.0.227",
30
- "@teambit/refactoring": "1.0.227",
31
- "@teambit/typescript": "1.0.227",
32
- "@teambit/workspace": "1.0.227"
26
+ "@teambit/dependency-resolver": "1.0.229",
27
+ "@teambit/install": "1.0.229",
28
+ "@teambit/new-component-helper": "1.0.229",
29
+ "@teambit/pkg": "1.0.229",
30
+ "@teambit/refactoring": "1.0.229",
31
+ "@teambit/typescript": "1.0.229",
32
+ "@teambit/workspace": "1.0.229"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/lodash": "4.14.165",
36
36
  "@types/semver": "7.3.4",
37
37
  "@types/mocha": "9.1.0",
38
38
  "chai": "4.3.0",
39
- "@teambit/harmony.envs.core-aspect-env": "0.0.30"
39
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^17.0.0 || ^18.0.0",
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,37 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
43
- },
44
- {
45
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@1.0.228"
46
- },
47
- {
48
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
49
- },
50
- {
51
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227"
52
- },
53
- {
54
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_install@1.0.227"
55
- },
56
- {
57
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_new-component-helper@1.0.227"
58
- },
59
- {
60
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@1.0.227"
61
- },
62
- {
63
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_refactoring@1.0.227"
64
- },
65
- {
66
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.typescript_typescript@1.0.227"
67
- },
68
- {
69
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
70
- }
71
38
  ]
72
39
  }