@teambit/new-component-helper 1.0.225 → 1.0.227

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.
@@ -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/new-component-helper@1.0.225" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/new-component-helper@1.0.227" 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/new-component-helper-preview"]=t():e["teambit.component/new-component-helper-preview"]=t()}(self,(()=>(()=>{"use strict";var e={51179:(e,t,o)=>{var n={id:"teambit.component/new-component-helper@1.0.225",homepage:"https://bit.cloud/teambit/component/new-component-helper",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/new-component-helper.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:()=>m,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(51179);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 l(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"}))}l.isMDXComponent=!0;const d=[t],u=[e],m={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/new-component-helper-preview"]=t():e["teambit.component/new-component-helper-preview"]=t()}(self,(()=>(()=>{"use strict";var e={30997:(e,t,o)=>{var n={id:"teambit.component/new-component-helper@1.0.227",homepage:"https://bit.cloud/teambit/component/new-component-helper",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/new-component-helper.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:()=>m,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(30997);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 l(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"}))}l.isMDXComponent=!0;const d=[t],u=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -48,11 +48,7 @@
48
48
  "line": 22,
49
49
  "character": 34
50
50
  },
51
- "name": "Workspace",
52
- "componentId": {
53
- "scope": "teambit.workspace",
54
- "name": "workspace"
55
- }
51
+ "name": "Workspace"
56
52
  },
57
53
  "isOptional": false,
58
54
  "isSpread": false
@@ -72,12 +68,7 @@
72
68
  "line": 22,
73
69
  "character": 62
74
70
  },
75
- "name": "Harmony",
76
- "componentId": {
77
- "scope": "teambit.harmony",
78
- "name": "harmony",
79
- "version": "0.4.6"
80
- }
71
+ "name": "Harmony"
81
72
  },
82
73
  "isOptional": false,
83
74
  "isSpread": false
@@ -97,11 +88,7 @@
97
88
  "line": 22,
98
89
  "character": 88
99
90
  },
100
- "name": "TrackerMain",
101
- "componentId": {
102
- "scope": "teambit.component",
103
- "name": "tracker"
104
- }
91
+ "name": "TrackerMain"
105
92
  },
106
93
  "isOptional": false,
107
94
  "isSpread": false
@@ -250,12 +237,7 @@
250
237
  "line": 44,
251
238
  "character": 18
252
239
  },
253
- "name": "ComponentID",
254
- "componentId": {
255
- "scope": "teambit.component",
256
- "name": "component-id",
257
- "version": "1.2.0"
258
- }
240
+ "name": "ComponentID"
259
241
  },
260
242
  "isOptional": false,
261
243
  "isSpread": false
@@ -442,11 +424,7 @@
442
424
  "line": 86,
443
425
  "character": 11
444
426
  },
445
- "name": "Component",
446
- "componentId": {
447
- "scope": "teambit.component",
448
- "name": "component"
449
- }
427
+ "name": "Component"
450
428
  },
451
429
  "isOptional": false,
452
430
  "isSpread": false
@@ -466,12 +444,7 @@
466
444
  "line": 87,
467
445
  "character": 15
468
446
  },
469
- "name": "ComponentID",
470
- "componentId": {
471
- "scope": "teambit.component",
472
- "name": "component-id",
473
- "version": "1.2.0"
474
- }
447
+ "name": "ComponentID"
475
448
  },
476
449
  "isOptional": false,
477
450
  "isSpread": false
@@ -674,11 +647,7 @@
674
647
  "line": 144,
675
648
  "character": 51
676
649
  },
677
- "name": "Component",
678
- "componentId": {
679
- "scope": "teambit.component",
680
- "name": "component"
681
- }
650
+ "name": "Component"
682
651
  },
683
652
  "isOptional": false,
684
653
  "isSpread": false
@@ -793,11 +762,7 @@
793
762
  "line": 162,
794
763
  "character": 48
795
764
  },
796
- "name": "Workspace",
797
- "componentId": {
798
- "scope": "teambit.workspace",
799
- "name": "workspace"
800
- }
765
+ "name": "Workspace"
801
766
  },
802
767
  {
803
768
  "__schema": "TypeRefSchema",
@@ -806,11 +771,7 @@
806
771
  "line": 162,
807
772
  "character": 59
808
773
  },
809
- "name": "TrackerMain",
810
- "componentId": {
811
- "scope": "teambit.component",
812
- "name": "tracker"
813
- }
774
+ "name": "TrackerMain"
814
775
  }
815
776
  ]
816
777
  },
@@ -872,12 +833,7 @@
872
833
  "line": 162,
873
834
  "character": 93
874
835
  },
875
- "name": "Harmony",
876
- "componentId": {
877
- "scope": "teambit.harmony",
878
- "name": "harmony",
879
- "version": "0.4.6"
880
- }
836
+ "name": "Harmony"
881
837
  },
882
838
  "isOptional": false,
883
839
  "isSpread": false
@@ -984,11 +940,7 @@
984
940
  "line": 22,
985
941
  "character": 34
986
942
  },
987
- "name": "Workspace",
988
- "componentId": {
989
- "scope": "teambit.workspace",
990
- "name": "workspace"
991
- }
943
+ "name": "Workspace"
992
944
  },
993
945
  "isOptional": false,
994
946
  "isSpread": false
@@ -1008,12 +960,7 @@
1008
960
  "line": 22,
1009
961
  "character": 62
1010
962
  },
1011
- "name": "Harmony",
1012
- "componentId": {
1013
- "scope": "teambit.harmony",
1014
- "name": "harmony",
1015
- "version": "0.4.6"
1016
- }
963
+ "name": "Harmony"
1017
964
  },
1018
965
  "isOptional": false,
1019
966
  "isSpread": false
@@ -1033,11 +980,7 @@
1033
980
  "line": 22,
1034
981
  "character": 88
1035
982
  },
1036
- "name": "TrackerMain",
1037
- "componentId": {
1038
- "scope": "teambit.component",
1039
- "name": "tracker"
1040
- }
983
+ "name": "TrackerMain"
1041
984
  },
1042
985
  "isOptional": false,
1043
986
  "isSpread": false
@@ -1186,12 +1129,7 @@
1186
1129
  "line": 44,
1187
1130
  "character": 18
1188
1131
  },
1189
- "name": "ComponentID",
1190
- "componentId": {
1191
- "scope": "teambit.component",
1192
- "name": "component-id",
1193
- "version": "1.2.0"
1194
- }
1132
+ "name": "ComponentID"
1195
1133
  },
1196
1134
  "isOptional": false,
1197
1135
  "isSpread": false
@@ -1378,11 +1316,7 @@
1378
1316
  "line": 86,
1379
1317
  "character": 11
1380
1318
  },
1381
- "name": "Component",
1382
- "componentId": {
1383
- "scope": "teambit.component",
1384
- "name": "component"
1385
- }
1319
+ "name": "Component"
1386
1320
  },
1387
1321
  "isOptional": false,
1388
1322
  "isSpread": false
@@ -1402,12 +1336,7 @@
1402
1336
  "line": 87,
1403
1337
  "character": 15
1404
1338
  },
1405
- "name": "ComponentID",
1406
- "componentId": {
1407
- "scope": "teambit.component",
1408
- "name": "component-id",
1409
- "version": "1.2.0"
1410
- }
1339
+ "name": "ComponentID"
1411
1340
  },
1412
1341
  "isOptional": false,
1413
1342
  "isSpread": false
@@ -1610,11 +1539,7 @@
1610
1539
  "line": 144,
1611
1540
  "character": 51
1612
1541
  },
1613
- "name": "Component",
1614
- "componentId": {
1615
- "scope": "teambit.component",
1616
- "name": "component"
1617
- }
1542
+ "name": "Component"
1618
1543
  },
1619
1544
  "isOptional": false,
1620
1545
  "isSpread": false
@@ -1729,11 +1654,7 @@
1729
1654
  "line": 162,
1730
1655
  "character": 48
1731
1656
  },
1732
- "name": "Workspace",
1733
- "componentId": {
1734
- "scope": "teambit.workspace",
1735
- "name": "workspace"
1736
- }
1657
+ "name": "Workspace"
1737
1658
  },
1738
1659
  {
1739
1660
  "__schema": "TypeRefSchema",
@@ -1742,11 +1663,7 @@
1742
1663
  "line": 162,
1743
1664
  "character": 59
1744
1665
  },
1745
- "name": "TrackerMain",
1746
- "componentId": {
1747
- "scope": "teambit.component",
1748
- "name": "tracker"
1749
- }
1666
+ "name": "TrackerMain"
1750
1667
  }
1751
1668
  ]
1752
1669
  },
@@ -1808,12 +1725,7 @@
1808
1725
  "line": 162,
1809
1726
  "character": 93
1810
1727
  },
1811
- "name": "Harmony",
1812
- "componentId": {
1813
- "scope": "teambit.harmony",
1814
- "name": "harmony",
1815
- "version": "0.4.6"
1816
- }
1728
+ "name": "Harmony"
1817
1729
  },
1818
1730
  "isOptional": false,
1819
1731
  "isSpread": false
@@ -1932,7 +1844,7 @@
1932
1844
  "componentId": {
1933
1845
  "scope": "teambit.component",
1934
1846
  "name": "new-component-helper",
1935
- "version": "1.0.225"
1847
+ "version": "1.0.227"
1936
1848
  },
1937
1849
  "taggedModuleExports": []
1938
1850
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_new-component-helper@1.0.225/dist/new-component-helper.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_new-component-helper@1.0.225/dist/new-component-helper.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_new-component-helper@1.0.227/dist/new-component-helper.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_new-component-helper@1.0.227/dist/new-component-helper.docs.mdx';
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/new-component-helper",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "homepage": "https://bit.cloud/teambit/component/new-component-helper",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "new-component-helper",
9
- "version": "1.0.225"
9
+ "version": "1.0.227"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -14,20 +14,20 @@
14
14
  "@teambit/bit-error": "0.0.404",
15
15
  "@teambit/component-id": "1.2.0",
16
16
  "@teambit/legacy-bit-id": "1.1.1",
17
- "@teambit/cli": "0.0.859",
18
- "@teambit/component-writer": "1.0.225",
19
- "@teambit/component": "1.0.225",
20
- "@teambit/envs": "1.0.225",
21
- "@teambit/pkg": "1.0.225",
22
- "@teambit/renaming": "1.0.225",
23
- "@teambit/tracker": "1.0.225",
24
- "@teambit/workspace": "1.0.225"
17
+ "@teambit/cli": "0.0.860",
18
+ "@teambit/component-writer": "1.0.227",
19
+ "@teambit/component": "1.0.227",
20
+ "@teambit/envs": "1.0.227",
21
+ "@teambit/pkg": "1.0.227",
22
+ "@teambit/renaming": "1.0.227",
23
+ "@teambit/tracker": "1.0.227",
24
+ "@teambit/workspace": "1.0.227"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/fs-extra": "9.0.7",
28
28
  "@types/mocha": "9.1.0",
29
29
  "chai": "4.3.0",
30
- "@teambit/harmony.envs.core-aspect-env": "0.0.27"
30
+ "@teambit/harmony.envs.core-aspect-env": "0.0.30"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "^17.0.0 || ^18.0.0",
package/tsconfig.json CHANGED
@@ -20,7 +20,8 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false
23
+ "noImplicitAny": false,
24
+ "composite": true
24
25
  },
25
26
  "exclude": [
26
27
  "artifacts",
@@ -35,5 +36,31 @@
35
36
  "include": [
36
37
  "**/*",
37
38
  "**/*.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.component_component-writer@1.0.227"
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.envs_envs@1.0.227"
52
+ },
53
+ {
54
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@1.0.227"
55
+ },
56
+ {
57
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@1.0.227"
58
+ },
59
+ {
60
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_tracker@1.0.227"
61
+ },
62
+ {
63
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
64
+ }
38
65
  ]
39
66
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { NewComponentHelperAspect } from './new-component-helper.aspect';
2
- export type { NewComponentHelperMain } from './new-component-helper.main.runtime';
3
- export default NewComponentHelperAspect;
4
- export { NewComponentHelperAspect };
@@ -1,2 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
- export declare const NewComponentHelperAspect: Aspect;
@@ -1 +0,0 @@
1
- export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,41 +0,0 @@
1
- import { Component } from '@teambit/component';
2
- import { TrackerMain } from '@teambit/tracker';
3
- import { ComponentID } from '@teambit/component-id';
4
- import { Harmony } from '@teambit/harmony';
5
- import { PathLinuxRelative } from '@teambit/legacy/dist/utils/path';
6
- import { Workspace } from '@teambit/workspace';
7
- export declare class NewComponentHelperMain {
8
- private workspace;
9
- private harmony;
10
- private tracker;
11
- constructor(workspace: Workspace, harmony: Harmony, tracker: TrackerMain);
12
- /**
13
- * when creating/forking a component, the user provides the new name and optionally the scope/namespace.
14
- * from this user input, create a ComponentID.
15
- */
16
- getNewComponentId(name: string, namespace?: string, scope?: string): ComponentID;
17
- /**
18
- * when creating/forking a component, the user may or may not provide a path.
19
- * if not provided, generate the path based on the component-id.
20
- * the component will be written to that path.
21
- */
22
- getNewComponentPath(componentId: ComponentID, { pathFromUser, componentsToCreate, incrementPathIfConflicted, }?: {
23
- pathFromUser?: string;
24
- componentsToCreate?: number;
25
- incrementPathIfConflicted?: boolean;
26
- }): PathLinuxRelative;
27
- writeAndAddNewComp(comp: Component, targetId: ComponentID, options?: {
28
- path?: string;
29
- scope?: string;
30
- env?: string;
31
- incrementPathIfConflicted?: boolean;
32
- }, config?: {
33
- [aspectName: string]: any;
34
- }): Promise<void>;
35
- private throwForExistingPath;
36
- getConfigFromExistingToNewComponent(comp: Component): Promise<{}>;
37
- static slots: never[];
38
- static dependencies: import("@teambit/harmony").Aspect[];
39
- static runtime: import("@teambit/harmony").RuntimeDefinition;
40
- static provider([workspace, tracker]: [Workspace, TrackerMain], config: any, _: any, harmony: Harmony): Promise<NewComponentHelperMain>;
41
- }