@teambit/deprecation 0.0.715 → 0.0.718
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 +23 -0
- package/dist/deprecation.ui.runtime.d.ts +6 -0
- package/dist/deprecation.ui.runtime.js +96 -0
- package/dist/deprecation.ui.runtime.js.map +1 -0
- package/package-tar/teambit-deprecation-0.0.718.tgz +0 -0
- package/package.json +12 -9
- package/{preview-1650770571653.js → preview-1650964831029.js} +2 -2
- package/package-tar/teambit-deprecation-0.0.715.tgz +0 -0
|
@@ -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,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"]}
|
|
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.718",
|
|
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.718"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -14,12 +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.
|
|
18
|
-
"@teambit/workspace": "0.0.
|
|
19
|
-
"@teambit/component": "0.0.
|
|
20
|
-
"@teambit/graphql": "0.0.
|
|
17
|
+
"@teambit/cli": "0.0.477",
|
|
18
|
+
"@teambit/workspace": "0.0.718",
|
|
19
|
+
"@teambit/component": "0.0.718",
|
|
20
|
+
"@teambit/graphql": "0.0.718",
|
|
21
21
|
"@teambit/component-id": "0.0.402",
|
|
22
|
-
"@teambit/scope": "0.0.
|
|
22
|
+
"@teambit/scope": "0.0.718",
|
|
23
|
+
"@teambit/component.ui.component-deprecated": "0.0.1",
|
|
24
|
+
"@teambit/docs": "0.0.718",
|
|
25
|
+
"@teambit/ui": "0.0.718"
|
|
23
26
|
},
|
|
24
27
|
"devDependencies": {
|
|
25
28
|
"@types/react": "^17.0.8",
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
"@types/node": "12.20.4"
|
|
31
34
|
},
|
|
32
35
|
"peerDependencies": {
|
|
33
|
-
"@teambit/legacy": "1.0.
|
|
36
|
+
"@teambit/legacy": "1.0.257",
|
|
34
37
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
35
38
|
"react": "^16.8.0 || ^17.0.0"
|
|
36
39
|
},
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
"react": "-"
|
|
59
62
|
},
|
|
60
63
|
"peerDependencies": {
|
|
61
|
-
"@teambit/legacy": "1.0.
|
|
64
|
+
"@teambit/legacy": "1.0.257",
|
|
62
65
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
63
66
|
"react": "^16.8.0 || ^17.0.0"
|
|
64
67
|
}
|
|
@@ -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.718/dist/deprecation.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.718/dist/deprecation.docs.mdx')]
|
|
Binary file
|