@teambit/deprecation 0.0.715 → 0.0.716

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.
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { UIRuntime } from '@teambit/ui';
3
+ import type { DeprecationInfo } from '@teambit/deprecation';
4
+ import { DocsAspect, DocsUI } from '@teambit/docs';
5
+ import { ComponentDeprecated } from '@teambit/component.ui.component-deprecated';
6
+ import { DeprecationAspect } from './deprecation.aspect';
7
+
8
+ export class DeprecationUIRuntime {
9
+ static dependencies = [DocsAspect];
10
+
11
+ static runtime = UIRuntime;
12
+
13
+ static async provider([docsUI]: [DocsUI]) {
14
+ docsUI.registerTitleBadge({
15
+ component: function Badge({ deprecation }: { deprecation: DeprecationInfo }) {
16
+ return <ComponentDeprecated deprecation={deprecation} />;
17
+ },
18
+ weight: 40,
19
+ });
20
+ }
21
+ }
22
+
23
+ DeprecationAspect.addRuntime(DeprecationUIRuntime);
@@ -0,0 +1,6 @@
1
+ import { DocsUI } from '@teambit/docs';
2
+ export declare class DeprecationUIRuntime {
3
+ static dependencies: import("@teambit/harmony").Aspect[];
4
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
5
+ static provider([docsUI]: [DocsUI]): Promise<void>;
6
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ require("core-js/modules/es.array.iterator.js");
6
+
7
+ require("core-js/modules/es.promise.js");
8
+
9
+ Object.defineProperty(exports, "__esModule", {
10
+ value: true
11
+ });
12
+ exports.DeprecationUIRuntime = void 0;
13
+
14
+ function _defineProperty2() {
15
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
+
17
+ _defineProperty2 = function () {
18
+ return data;
19
+ };
20
+
21
+ return data;
22
+ }
23
+
24
+ function _react() {
25
+ const data = _interopRequireDefault(require("react"));
26
+
27
+ _react = function () {
28
+ return data;
29
+ };
30
+
31
+ return data;
32
+ }
33
+
34
+ function _ui() {
35
+ const data = require("@teambit/ui");
36
+
37
+ _ui = function () {
38
+ return data;
39
+ };
40
+
41
+ return data;
42
+ }
43
+
44
+ function _docs() {
45
+ const data = require("@teambit/docs");
46
+
47
+ _docs = function () {
48
+ return data;
49
+ };
50
+
51
+ return data;
52
+ }
53
+
54
+ function _componentUi() {
55
+ const data = require("@teambit/component.ui.component-deprecated");
56
+
57
+ _componentUi = function () {
58
+ return data;
59
+ };
60
+
61
+ return data;
62
+ }
63
+
64
+ function _deprecation() {
65
+ const data = require("./deprecation.aspect");
66
+
67
+ _deprecation = function () {
68
+ return data;
69
+ };
70
+
71
+ return data;
72
+ }
73
+
74
+ class DeprecationUIRuntime {
75
+ static async provider([docsUI]) {
76
+ docsUI.registerTitleBadge({
77
+ component: function Badge({
78
+ deprecation
79
+ }) {
80
+ return /*#__PURE__*/_react().default.createElement(_componentUi().ComponentDeprecated, {
81
+ deprecation: deprecation
82
+ });
83
+ },
84
+ weight: 40
85
+ });
86
+ }
87
+
88
+ }
89
+
90
+ exports.DeprecationUIRuntime = DeprecationUIRuntime;
91
+ (0, _defineProperty2().default)(DeprecationUIRuntime, "dependencies", [_docs().DocsAspect]);
92
+ (0, _defineProperty2().default)(DeprecationUIRuntime, "runtime", _ui().UIRuntime);
93
+
94
+ _deprecation().DeprecationAspect.addRuntime(DeprecationUIRuntime);
95
+
96
+ //# sourceMappingURL=deprecation.ui.runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["deprecation.ui.runtime.tsx"],"names":["DeprecationUIRuntime","provider","docsUI","registerTitleBadge","component","Badge","deprecation","weight","DocsAspect","UIRuntime","DeprecationAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,oBAAN,CAA2B;AAKX,eAARC,QAAQ,CAAC,CAACC,MAAD,CAAD,EAAqB;AACxCA,IAAAA,MAAM,CAACC,kBAAP,CAA0B;AACxBC,MAAAA,SAAS,EAAE,SAASC,KAAT,CAAe;AAAEC,QAAAA;AAAF,OAAf,EAAkE;AAC3E,4BAAO,+BAAC,kCAAD;AAAqB,UAAA,WAAW,EAAEA;AAAlC,UAAP;AACD,OAHuB;AAIxBC,MAAAA,MAAM,EAAE;AAJgB,KAA1B;AAMD;;AAZ+B;;;gCAArBP,oB,kBACW,CAACQ,kBAAD,C;gCADXR,oB,aAGMS,e;;AAYnBC,iCAAkBC,UAAlB,CAA6BX,oBAA7B","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"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "0.0.715",
3
+ "version": "0.0.716",
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.715"
9
+ "version": "0.0.716"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,11 +15,14 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@teambit/harmony": "0.3.3",
17
17
  "@teambit/cli": "0.0.476",
18
- "@teambit/workspace": "0.0.715",
19
- "@teambit/component": "0.0.715",
20
- "@teambit/graphql": "0.0.715",
18
+ "@teambit/workspace": "0.0.716",
19
+ "@teambit/component": "0.0.716",
20
+ "@teambit/graphql": "0.0.716",
21
21
  "@teambit/component-id": "0.0.402",
22
- "@teambit/scope": "0.0.715"
22
+ "@teambit/scope": "0.0.716",
23
+ "@teambit/component.ui.component-deprecated": "0.0.1",
24
+ "@teambit/docs": "0.0.716",
25
+ "@teambit/ui": "0.0.716"
23
26
  },
24
27
  "devDependencies": {
25
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.715/dist/deprecation.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.715/dist/deprecation.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.716/dist/deprecation.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.716/dist/deprecation.docs.mdx')]