@teambit/deprecation 0.0.761 → 0.0.762
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/deprecation.ui.runtime.tsx +3 -3
- package/dist/deprecation.ui.runtime.js +2 -2
- package/dist/deprecation.ui.runtime.js.map +1 -1
- package/package-tar/teambit-deprecation-0.0.762.tgz +0 -0
- package/package.json +8 -8
- package/{preview-1655263660719.js → preview-1655279906398.js} +2 -2
- package/package-tar/teambit-deprecation-0.0.761.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UIRuntime } from '@teambit/ui';
|
|
3
|
-
import
|
|
3
|
+
import { ComponentModel } from '@teambit/component';
|
|
4
4
|
import { DocsAspect, DocsUI } from '@teambit/docs';
|
|
5
5
|
import { ComponentDeprecated } from '@teambit/component.ui.component-deprecated';
|
|
6
6
|
import { DeprecationAspect } from './deprecation.aspect';
|
|
@@ -12,8 +12,8 @@ export class DeprecationUIRuntime {
|
|
|
12
12
|
|
|
13
13
|
static async provider([docsUI]: [DocsUI]) {
|
|
14
14
|
docsUI.registerTitleBadge({
|
|
15
|
-
component: function Badge({
|
|
16
|
-
return <ComponentDeprecated deprecation={deprecation} />;
|
|
15
|
+
component: function Badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {
|
|
16
|
+
return <ComponentDeprecated deprecation={legacyComponentModel.deprecation} />;
|
|
17
17
|
},
|
|
18
18
|
weight: 40,
|
|
19
19
|
});
|
|
@@ -75,10 +75,10 @@ class DeprecationUIRuntime {
|
|
|
75
75
|
static async provider([docsUI]) {
|
|
76
76
|
docsUI.registerTitleBadge({
|
|
77
77
|
component: function Badge({
|
|
78
|
-
|
|
78
|
+
legacyComponentModel
|
|
79
79
|
}) {
|
|
80
80
|
return /*#__PURE__*/_react().default.createElement(_componentUi().ComponentDeprecated, {
|
|
81
|
-
deprecation: deprecation
|
|
81
|
+
deprecation: legacyComponentModel.deprecation
|
|
82
82
|
});
|
|
83
83
|
},
|
|
84
84
|
weight: 40
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DeprecationUIRuntime","provider","docsUI","registerTitleBadge","component","Badge","deprecation","weight","DocsAspect","UIRuntime","DeprecationAspect","addRuntime"],"sources":["deprecation.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport
|
|
1
|
+
{"version":3,"names":["DeprecationUIRuntime","provider","docsUI","registerTitleBadge","component","Badge","legacyComponentModel","deprecation","weight","DocsAspect","UIRuntime","DeprecationAspect","addRuntime"],"sources":["deprecation.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentModel } from '@teambit/component';\nimport { DocsAspect, DocsUI } from '@teambit/docs';\nimport { ComponentDeprecated } from '@teambit/component.ui.component-deprecated';\nimport { DeprecationAspect } from './deprecation.aspect';\n\nexport class DeprecationUIRuntime {\n static dependencies = [DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider([docsUI]: [DocsUI]) {\n docsUI.registerTitleBadge({\n component: function Badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {\n return <ComponentDeprecated deprecation={legacyComponentModel.deprecation} />;\n },\n weight: 40,\n });\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationUIRuntime);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,oBAAN,CAA2B;EAKX,aAARC,QAAQ,CAAC,CAACC,MAAD,CAAD,EAAqB;IACxCA,MAAM,CAACC,kBAAP,CAA0B;MACxBC,SAAS,EAAE,SAASC,KAAT,CAAe;QAAEC;MAAF,CAAf,EAAmF;QAC5F,oBAAO,+BAAC,kCAAD;UAAqB,WAAW,EAAEA,oBAAoB,CAACC;QAAvD,EAAP;MACD,CAHuB;MAIxBC,MAAM,EAAE;IAJgB,CAA1B;EAMD;;AAZ+B;;;gCAArBR,oB,kBACW,CAACS,kBAAD,C;gCADXT,oB,aAGMU,e;;AAYnBC,gCAAA,CAAkBC,UAAlB,CAA6BZ,oBAA7B"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/deprecation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.762",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/component/deprecation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "deprecation",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.762"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"core-js": "^3.0.0",
|
|
16
16
|
"@teambit/harmony": "0.3.3",
|
|
17
17
|
"@teambit/cli": "0.0.503",
|
|
18
|
-
"@teambit/workspace": "0.0.
|
|
19
|
-
"@teambit/component": "0.0.
|
|
20
|
-
"@teambit/graphql": "0.0.
|
|
18
|
+
"@teambit/workspace": "0.0.762",
|
|
19
|
+
"@teambit/component": "0.0.762",
|
|
20
|
+
"@teambit/graphql": "0.0.762",
|
|
21
21
|
"@teambit/component-id": "0.0.402",
|
|
22
|
-
"@teambit/scope": "0.0.
|
|
22
|
+
"@teambit/scope": "0.0.762",
|
|
23
23
|
"@teambit/component.ui.component-deprecated": "0.0.2",
|
|
24
|
-
"@teambit/docs": "0.0.
|
|
25
|
-
"@teambit/ui": "0.0.
|
|
24
|
+
"@teambit/docs": "0.0.762",
|
|
25
|
+
"@teambit/ui": "0.0.762"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^17.0.8",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.762/dist/deprecation.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.762/dist/deprecation.docs.mdx')]
|
|
Binary file
|