@teambit/deprecation 0.0.759 → 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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { UIRuntime } from '@teambit/ui';
3
- import type { DeprecationInfo } from '@teambit/deprecation';
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({ deprecation }: { deprecation: DeprecationInfo }) {
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
- deprecation
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 type { DeprecationInfo } from '@teambit/deprecation';\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({ deprecation }: { deprecation: DeprecationInfo }) {\n return <ComponentDeprecated deprecation={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,EAAkE;QAC3E,oBAAO,+BAAC,kCAAD;UAAqB,WAAW,EAAEA;QAAlC,EAAP;MACD,CAHuB;MAIxBC,MAAM,EAAE;IAJgB,CAA1B;EAMD;;AAZ+B;;;gCAArBP,oB,kBACW,CAACQ,kBAAD,C;gCADXR,oB,aAGMS,e;;AAYnBC,gCAAA,CAAkBC,UAAlB,CAA6BX,oBAA7B"}
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"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "0.0.759",
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.759"
9
+ "version": "0.0.762"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,15 +14,15 @@
14
14
  "@babel/runtime": "7.12.18",
15
15
  "core-js": "^3.0.0",
16
16
  "@teambit/harmony": "0.3.3",
17
- "@teambit/cli": "0.0.501",
18
- "@teambit/workspace": "0.0.759",
19
- "@teambit/component": "0.0.759",
20
- "@teambit/graphql": "0.0.759",
17
+ "@teambit/cli": "0.0.503",
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.759",
22
+ "@teambit/scope": "0.0.762",
23
23
  "@teambit/component.ui.component-deprecated": "0.0.2",
24
- "@teambit/docs": "0.0.759",
25
- "@teambit/ui": "0.0.759"
24
+ "@teambit/docs": "0.0.762",
25
+ "@teambit/ui": "0.0.762"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^17.0.8",
@@ -33,7 +33,7 @@
33
33
  "@types/node": "12.20.4"
34
34
  },
35
35
  "peerDependencies": {
36
- "@teambit/legacy": "1.0.281",
36
+ "@teambit/legacy": "1.0.283",
37
37
  "react-dom": "^16.8.0 || ^17.0.0",
38
38
  "react": "^16.8.0 || ^17.0.0"
39
39
  },
@@ -61,7 +61,7 @@
61
61
  "react": "-"
62
62
  },
63
63
  "peerDependencies": {
64
- "@teambit/legacy": "1.0.281",
64
+ "@teambit/legacy": "1.0.283",
65
65
  "react-dom": "^16.8.0 || ^17.0.0",
66
66
  "react": "^16.8.0 || ^17.0.0"
67
67
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.759/dist/deprecation.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.759/dist/deprecation.docs.mdx')]
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')]