@teambit/pkg 0.0.653 → 0.0.654
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/{__preview-1645393132004.js → __preview-1645586567752.js} +1 -1
- package/dist/pkg.ui.runtime.js +2 -1
- package/dist/pkg.ui.runtime.js.map +1 -1
- package/package-tar/teambit-pkg-0.0.654.tgz +0 -0
- package/package.json +19 -19
- package/pkg.ui.runtime.tsx +3 -1
- package/package-tar/teambit-pkg-0.0.653.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.
|
|
1
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.654/dist/pkg.docs.mdx')]
|
package/dist/pkg.ui.runtime.js
CHANGED
|
@@ -75,7 +75,8 @@ function _pkg() {
|
|
|
75
75
|
|
|
76
76
|
class PkgUI {
|
|
77
77
|
constructor() {
|
|
78
|
-
(0, _defineProperty2().default)(this, "npmConsumeMethod", comp => {
|
|
78
|
+
(0, _defineProperty2().default)(this, "npmConsumeMethod", (comp, options) => {
|
|
79
|
+
if (options !== null && options !== void 0 && options.currentLane) return undefined;
|
|
79
80
|
const registry = comp.packageName.split('/')[0];
|
|
80
81
|
const packageVersion = comp.version === comp.latest ? '' : `@${comp.version}`;
|
|
81
82
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["pkg.ui.runtime.tsx"],"names":["PkgUI","comp","registry","packageName","split","packageVersion","version","latest","Title","width","Component","id","name","order","provider","componentUI","pkg","registerConsumeMethod","npmConsumeMethod","UIRuntime","ComponentAspect","PkgAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,KAAN,CAAY;AAAA;AAAA,
|
|
1
|
+
{"version":3,"sources":["pkg.ui.runtime.tsx"],"names":["PkgUI","comp","options","currentLane","undefined","registry","packageName","split","packageVersion","version","latest","Title","width","Component","id","name","order","provider","componentUI","pkg","registerConsumeMethod","npmConsumeMethod","UIRuntime","ComponentAspect","PkgAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,KAAN,CAAY;AAAA;AAAA,8DAWyB,CAACC,IAAD,EAAOC,OAAP,KAAmB;AAC3D,UAAIA,OAAJ,aAAIA,OAAJ,eAAIA,OAAO,CAAEC,WAAb,EAA0B,OAAOC,SAAP;AAE1B,YAAMC,QAAQ,GAAGJ,IAAI,CAACK,WAAL,CAAiBC,KAAjB,CAAuB,GAAvB,EAA4B,CAA5B,CAAjB;AACA,YAAMC,cAAc,GAAGP,IAAI,CAACQ,OAAL,KAAiBR,IAAI,CAACS,MAAtB,GAA+B,EAA/B,GAAqC,IAAGT,IAAI,CAACQ,OAAQ,EAA5E;AACA,aAAO;AACLE,QAAAA,KAAK,eAAE;AAAK,UAAA,KAAK,EAAE;AAAEC,YAAAA,KAAK,EAAE;AAAT,WAAZ;AAA+B,UAAA,GAAG,EAAC;AAAnC,UADF;AAELC,QAAAA,SAAS,eACP,+BAAC,+BAAD;AACE,UAAA,MAAM,EAAG,mBAAkBR,QAAS,iCADtC;AAEE,UAAA,aAAa,EAAEJ,IAAI,CAACa,EAAL,CAAQC,IAFzB;AAGE,UAAA,cAAc,EAAC,KAHjB;AAIE,UAAA,UAAU,EAAG,SAAQd,IAAI,CAACK,WAAY,GAAEE,cAAe,EAJzD;AAKE,UAAA,YAAY,EAAEH;AALhB,UAHG;AAWLW,QAAAA,KAAK,EAAE;AAXF,OAAP;AAaD,KA7BgB;AAAA;;AAKI,eAARC,QAAQ,CAAC,CAACC,WAAD,CAAD,EAA+B;AAClD,UAAMC,GAAG,GAAG,IAAInB,KAAJ,EAAZ;AACAkB,IAAAA,WAAW,CAACE,qBAAZ,CAAkCD,GAAG,CAACE,gBAAtC;AACA,WAAOF,GAAP;AACD;;AATgB;;;gCAANnB,K,aACMsB,e;gCADNtB,K,kBAGW,CAACuB,oBAAD,C;eA6BTvB,K;;;AAEfwB,iBAAUC,UAAV,CAAqBzB,KAArB","sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { Install } from '@teambit/ui-foundation.ui.use-box.menu';\nimport ComponentAspect, { ComponentUI, ConsumePlugin } from '@teambit/component';\nimport { PkgAspect } from './pkg.aspect';\n\nexport class PkgUI {\n static runtime = UIRuntime;\n\n static dependencies = [ComponentAspect];\n\n static async provider([componentUI]: [ComponentUI]) {\n const pkg = new PkgUI();\n componentUI.registerConsumeMethod(pkg.npmConsumeMethod);\n return pkg;\n }\n\n private npmConsumeMethod: ConsumePlugin = (comp, options) => {\n if (options?.currentLane) return undefined;\n\n const registry = comp.packageName.split('/')[0];\n const packageVersion = comp.version === comp.latest ? '' : `@${comp.version}`;\n return {\n Title: <img style={{ width: '30px' }} src=\"https://static.bit.dev/brands/logo-npm-new.svg\" />,\n Component: (\n <Install\n config={`npm config set '${registry}:registry' https://node.bit.dev`}\n componentName={comp.id.name}\n packageManager=\"npm\"\n copyString={`npm i ${comp.packageName}${packageVersion}`}\n registryName={registry}\n />\n ),\n order: 10,\n };\n };\n}\n\nexport default PkgUI;\n\nPkgAspect.addRuntime(PkgUI);\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/pkg",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.654",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/pkg/pkg",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.pkg",
|
|
8
8
|
"name": "pkg",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.654"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"p-map-series": "2.1.0",
|
|
23
23
|
"@babel/runtime": "7.12.18",
|
|
24
24
|
"core-js": "^3.0.0",
|
|
25
|
-
"@teambit/cli": "0.0.
|
|
26
|
-
"@teambit/builder": "0.0.
|
|
27
|
-
"@teambit/logger": "0.0.
|
|
28
|
-
"@teambit/component": "0.0.
|
|
29
|
-
"@teambit/express": "0.0.
|
|
30
|
-
"@teambit/isolator": "0.0.
|
|
31
|
-
"@teambit/scope": "0.0.
|
|
32
|
-
"@teambit/graphql": "0.0.
|
|
25
|
+
"@teambit/cli": "0.0.446",
|
|
26
|
+
"@teambit/builder": "0.0.654",
|
|
27
|
+
"@teambit/logger": "0.0.536",
|
|
28
|
+
"@teambit/component": "0.0.654",
|
|
29
|
+
"@teambit/express": "0.0.540",
|
|
30
|
+
"@teambit/isolator": "0.0.654",
|
|
31
|
+
"@teambit/scope": "0.0.654",
|
|
32
|
+
"@teambit/graphql": "0.0.654",
|
|
33
33
|
"@teambit/bit-error": "0.0.394",
|
|
34
|
-
"@teambit/dependency-resolver": "0.0.
|
|
35
|
-
"@teambit/envs": "0.0.
|
|
36
|
-
"@teambit/new-component-helper": "0.0.
|
|
37
|
-
"@teambit/workspace": "0.0.
|
|
38
|
-
"@teambit/ui-foundation.ui.use-box.menu": "0.0.
|
|
39
|
-
"@teambit/ui": "0.0.
|
|
40
|
-
"@teambit/compiler": "0.0.
|
|
34
|
+
"@teambit/dependency-resolver": "0.0.654",
|
|
35
|
+
"@teambit/envs": "0.0.654",
|
|
36
|
+
"@teambit/new-component-helper": "0.0.58",
|
|
37
|
+
"@teambit/workspace": "0.0.654",
|
|
38
|
+
"@teambit/ui-foundation.ui.use-box.menu": "0.0.111",
|
|
39
|
+
"@teambit/ui": "0.0.654",
|
|
40
|
+
"@teambit/compiler": "0.0.654",
|
|
41
41
|
"@teambit/legacy-bit-id": "0.0.398"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@teambit/pkg.aspect-docs.pkg": "0.0.132"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@teambit/legacy": "1.0.
|
|
56
|
+
"@teambit/legacy": "1.0.225",
|
|
57
57
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
58
58
|
"react": "^16.8.0 || ^17.0.0"
|
|
59
59
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react": "-"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@teambit/legacy": "1.0.
|
|
84
|
+
"@teambit/legacy": "1.0.225",
|
|
85
85
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
86
86
|
"react": "^16.8.0 || ^17.0.0"
|
|
87
87
|
}
|
package/pkg.ui.runtime.tsx
CHANGED
|
@@ -15,7 +15,9 @@ export class PkgUI {
|
|
|
15
15
|
return pkg;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
private npmConsumeMethod: ConsumePlugin = (comp) => {
|
|
18
|
+
private npmConsumeMethod: ConsumePlugin = (comp, options) => {
|
|
19
|
+
if (options?.currentLane) return undefined;
|
|
20
|
+
|
|
19
21
|
const registry = comp.packageName.split('/')[0];
|
|
20
22
|
const packageVersion = comp.version === comp.latest ? '' : `@${comp.version}`;
|
|
21
23
|
return {
|
|
Binary file
|