@apify/docusaurus-plugin-typedoc-api 4.4.12 → 5.1.0
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/README.md +38 -296
- package/lib/components/AnchorLink.d.ts +5 -0
- package/lib/components/AnchorLink.d.ts.map +1 -0
- package/lib/components/AnchorLink.js +7 -26
- package/lib/components/AnchorLink.js.map +1 -1
- package/lib/components/ApiChangelog.d.ts +6 -0
- package/lib/components/ApiChangelog.d.ts.map +1 -0
- package/lib/components/ApiChangelog.js +7 -24
- package/lib/components/ApiChangelog.js.map +1 -1
- package/lib/components/ApiDataContext.d.ts +6 -0
- package/lib/components/ApiDataContext.d.ts.map +1 -0
- package/lib/components/ApiDataContext.js +12 -15
- package/lib/components/ApiDataContext.js.map +1 -1
- package/lib/components/ApiIndex.d.ts +14 -0
- package/lib/components/ApiIndex.d.ts.map +1 -0
- package/lib/components/ApiIndex.js +33 -93
- package/lib/components/ApiIndex.js.map +1 -1
- package/lib/components/ApiItem.d.ts +6 -0
- package/lib/components/ApiItem.d.ts.map +1 -0
- package/lib/components/ApiItem.js +131 -191
- package/lib/components/ApiItem.js.map +1 -1
- package/lib/components/ApiItemLayout.d.ts +14 -0
- package/lib/components/ApiItemLayout.d.ts.map +1 -0
- package/lib/components/ApiItemLayout.js +21 -97
- package/lib/components/ApiItemLayout.js.map +1 -1
- package/lib/components/ApiOptionsContext.d.ts +5 -0
- package/lib/components/ApiOptionsContext.d.ts.map +1 -0
- package/lib/components/ApiOptionsContext.js +5 -9
- package/lib/components/ApiOptionsContext.js.map +1 -1
- package/lib/components/ApiOptionsLayout.d.ts +4 -0
- package/lib/components/ApiOptionsLayout.d.ts.map +1 -0
- package/lib/components/ApiOptionsLayout.js +10 -34
- package/lib/components/ApiOptionsLayout.js.map +1 -1
- package/lib/components/ApiPage.d.ts +11 -0
- package/lib/components/ApiPage.d.ts.map +1 -0
- package/lib/components/ApiPage.js +50 -63
- package/lib/components/ApiPage.js.map +1 -1
- package/lib/components/Breadcrumb.d.ts +7 -0
- package/lib/components/Breadcrumb.d.ts.map +1 -0
- package/lib/components/Breadcrumb.js +17 -49
- package/lib/components/Breadcrumb.js.map +1 -1
- package/lib/components/Comment.d.ts +10 -0
- package/lib/components/Comment.d.ts.map +1 -0
- package/lib/components/Comment.js +33 -60
- package/lib/components/Comment.js.map +1 -1
- package/lib/components/CommentBadges.d.ts +9 -0
- package/lib/components/CommentBadges.d.ts.map +1 -0
- package/lib/components/CommentBadges.js +16 -28
- package/lib/components/CommentBadges.js.map +1 -1
- package/lib/components/DefaultValue.d.ts +10 -0
- package/lib/components/DefaultValue.d.ts.map +1 -0
- package/lib/components/DefaultValue.js +25 -55
- package/lib/components/DefaultValue.js.map +1 -1
- package/lib/components/Flags.d.ts +6 -0
- package/lib/components/Flags.d.ts.map +1 -0
- package/lib/components/Flags.js +11 -22
- package/lib/components/Flags.js.map +1 -1
- package/lib/components/Footer.d.ts +2 -0
- package/lib/components/Footer.d.ts.map +1 -0
- package/lib/components/Footer.js +4 -16
- package/lib/components/Footer.js.map +1 -1
- package/lib/components/Hierarchy.d.ts +6 -0
- package/lib/components/Hierarchy.d.ts.map +1 -0
- package/lib/components/Hierarchy.js +5 -25
- package/lib/components/Hierarchy.js.map +1 -1
- package/lib/components/Icon.d.ts +6 -0
- package/lib/components/Icon.d.ts.map +1 -0
- package/lib/components/Icon.js +10 -21
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Index.d.ts +9 -0
- package/lib/components/Index.d.ts.map +1 -0
- package/lib/components/Index.js +30 -113
- package/lib/components/Index.js.map +1 -1
- package/lib/components/Markdown.d.ts +5 -0
- package/lib/components/Markdown.d.ts.map +1 -0
- package/lib/components/Markdown.js +138 -202
- package/lib/components/Markdown.js.map +1 -1
- package/lib/components/Member.d.ts +5 -0
- package/lib/components/Member.d.ts.map +1 -0
- package/lib/components/Member.js +40 -69
- package/lib/components/Member.js.map +1 -1
- package/lib/components/MemberDeclaration.d.ts +5 -0
- package/lib/components/MemberDeclaration.d.ts.map +1 -0
- package/lib/components/MemberDeclaration.js +20 -71
- package/lib/components/MemberDeclaration.js.map +1 -1
- package/lib/components/MemberGetterSetter.d.ts +8 -0
- package/lib/components/MemberGetterSetter.d.ts.map +1 -0
- package/lib/components/MemberGetterSetter.js +13 -68
- package/lib/components/MemberGetterSetter.js.map +1 -1
- package/lib/components/MemberReference.d.ts +6 -0
- package/lib/components/MemberReference.d.ts.map +1 -0
- package/lib/components/MemberReference.js +18 -48
- package/lib/components/MemberReference.js.map +1 -1
- package/lib/components/MemberSignatureBody.d.ts +9 -0
- package/lib/components/MemberSignatureBody.d.ts.map +1 -0
- package/lib/components/MemberSignatureBody.js +85 -182
- package/lib/components/MemberSignatureBody.js.map +1 -1
- package/lib/components/MemberSignatureTitle.d.ts +11 -0
- package/lib/components/MemberSignatureTitle.d.ts.map +1 -0
- package/lib/components/MemberSignatureTitle.js +27 -81
- package/lib/components/MemberSignatureTitle.js.map +1 -1
- package/lib/components/MemberSignatures.d.ts +7 -0
- package/lib/components/MemberSignatures.d.ts.map +1 -0
- package/lib/components/MemberSignatures.js +18 -66
- package/lib/components/MemberSignatures.js.map +1 -1
- package/lib/components/MemberSources.d.ts +7 -0
- package/lib/components/MemberSources.d.ts.map +1 -0
- package/lib/components/MemberSources.js +10 -34
- package/lib/components/MemberSources.js.map +1 -1
- package/lib/components/Members.d.ts +6 -0
- package/lib/components/Members.d.ts.map +1 -0
- package/lib/components/Members.js +29 -49
- package/lib/components/Members.js.map +1 -1
- package/lib/components/MembersGroup.d.ts +6 -0
- package/lib/components/MembersGroup.d.ts.map +1 -0
- package/lib/components/MembersGroup.js +16 -40
- package/lib/components/MembersGroup.js.map +1 -1
- package/lib/components/Parameter.d.ts +6 -0
- package/lib/components/Parameter.d.ts.map +1 -0
- package/lib/components/Parameter.js +35 -171
- package/lib/components/Parameter.js.map +1 -1
- package/lib/components/Reflection.d.ts +6 -0
- package/lib/components/Reflection.d.ts.map +1 -0
- package/lib/components/Reflection.js +29 -132
- package/lib/components/Reflection.js.map +1 -1
- package/lib/components/SourceLink.d.ts +10 -0
- package/lib/components/SourceLink.d.ts.map +1 -0
- package/lib/components/SourceLink.js +16 -36
- package/lib/components/SourceLink.js.map +1 -1
- package/lib/components/Type.d.ts +12 -0
- package/lib/components/Type.d.ts.map +1 -0
- package/lib/components/Type.js +142 -464
- package/lib/components/Type.js.map +1 -1
- package/lib/components/TypeAndParent.d.ts +6 -0
- package/lib/components/TypeAndParent.d.ts.map +1 -0
- package/lib/components/TypeAndParent.js +11 -27
- package/lib/components/TypeAndParent.js.map +1 -1
- package/lib/components/TypeParameters.d.ts +6 -0
- package/lib/components/TypeParameters.d.ts.map +1 -0
- package/lib/components/TypeParameters.js +10 -38
- package/lib/components/TypeParameters.js.map +1 -1
- package/lib/components/TypeParametersGeneric.d.ts +6 -0
- package/lib/components/TypeParametersGeneric.d.ts.map +1 -0
- package/lib/components/TypeParametersGeneric.js +8 -27
- package/lib/components/TypeParametersGeneric.js.map +1 -1
- package/lib/components/VersionBanner.d.ts +2 -0
- package/lib/components/VersionBanner.d.ts.map +1 -0
- package/lib/components/VersionBanner.js +18 -49
- package/lib/components/VersionBanner.js.map +1 -1
- package/lib/hooks/useBreadcrumbs.d.ts +2 -0
- package/lib/hooks/useBreadcrumbs.d.ts.map +1 -0
- package/lib/hooks/useBreadcrumbs.js +5 -8
- package/lib/hooks/useBreadcrumbs.js.map +1 -1
- package/lib/hooks/useGitRefName.d.ts +2 -0
- package/lib/hooks/useGitRefName.d.ts.map +1 -0
- package/lib/hooks/useGitRefName.js +5 -8
- package/lib/hooks/useGitRefName.js.map +1 -1
- package/lib/hooks/useMinimalLayout.d.ts +2 -0
- package/lib/hooks/useMinimalLayout.d.ts.map +1 -0
- package/lib/hooks/useMinimalLayout.js +5 -8
- package/lib/hooks/useMinimalLayout.js.map +1 -1
- package/lib/hooks/useReflection.d.ts +4 -0
- package/lib/hooks/useReflection.d.ts.map +1 -0
- package/lib/hooks/useReflection.js +15 -21
- package/lib/hooks/useReflection.js.map +1 -1
- package/lib/hooks/useReflectionMap.d.ts +3 -0
- package/lib/hooks/useReflectionMap.d.ts.map +1 -0
- package/lib/hooks/useReflectionMap.js +5 -8
- package/lib/hooks/useReflectionMap.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +349 -361
- package/lib/index.js.map +1 -1
- package/lib/markdownLoader.d.ts +6 -0
- package/lib/markdownLoader.d.ts.map +1 -0
- package/lib/markdownLoader.js +6 -10
- package/lib/markdownLoader.js.map +1 -1
- package/lib/plugin/data.d.ts +21 -0
- package/lib/plugin/data.d.ts.map +1 -0
- package/lib/plugin/data.js +391 -429
- package/lib/plugin/data.js.map +1 -1
- package/lib/plugin/python/consts.d.ts +35 -0
- package/lib/plugin/python/consts.d.ts.map +1 -0
- package/lib/plugin/python/consts.js +44 -44
- package/lib/plugin/python/consts.js.map +1 -1
- package/lib/plugin/python/index.d.ts +12 -0
- package/lib/plugin/python/index.d.ts.map +1 -0
- package/lib/plugin/python/index.js +25 -36
- package/lib/plugin/python/index.js.map +1 -1
- package/lib/plugin/python/inheritance.d.ts +42 -0
- package/lib/plugin/python/inheritance.d.ts.map +1 -0
- package/lib/plugin/python/inheritance.js +148 -153
- package/lib/plugin/python/inheritance.js.map +1 -1
- package/lib/plugin/python/packageVersions.d.ts +7 -0
- package/lib/plugin/python/packageVersions.d.ts.map +1 -0
- package/lib/plugin/python/packageVersions.js +30 -38
- package/lib/plugin/python/packageVersions.js.map +1 -1
- package/lib/plugin/python/transformation.d.ts +90 -0
- package/lib/plugin/python/transformation.d.ts.map +1 -0
- package/lib/plugin/python/transformation.js +424 -391
- package/lib/plugin/python/transformation.js.map +1 -1
- package/lib/plugin/python/type-parsing/index.d.ts +34 -0
- package/lib/plugin/python/type-parsing/index.d.ts.map +1 -0
- package/lib/plugin/python/type-parsing/index.js +78 -85
- package/lib/plugin/python/type-parsing/index.js.map +1 -1
- package/lib/plugin/python/types.d.ts +107 -0
- package/lib/plugin/python/types.d.ts.map +1 -0
- package/lib/plugin/python/types.js +2 -2
- package/lib/plugin/python/types.js.map +1 -1
- package/lib/plugin/python/utils.d.ts +40 -0
- package/lib/plugin/python/utils.d.ts.map +1 -0
- package/lib/plugin/python/utils.js +74 -73
- package/lib/plugin/python/utils.js.map +1 -1
- package/lib/plugin/sidebar.d.ts +6 -0
- package/lib/plugin/sidebar.d.ts.map +1 -0
- package/lib/plugin/sidebar.js +94 -96
- package/lib/plugin/sidebar.js.map +1 -1
- package/lib/plugin/structure/0.23.d.ts +3 -0
- package/lib/plugin/structure/0.23.d.ts.map +1 -0
- package/lib/plugin/structure/0.23.js +33 -41
- package/lib/plugin/structure/0.23.js.map +1 -1
- package/lib/plugin/url.d.ts +6 -0
- package/lib/plugin/url.d.ts.map +1 -0
- package/lib/plugin/url.js +36 -46
- package/lib/plugin/url.js.map +1 -1
- package/lib/plugin/version.d.ts +5 -0
- package/lib/plugin/version.d.ts.map +1 -0
- package/lib/plugin/version.js +73 -78
- package/lib/plugin/version.js.map +1 -1
- package/lib/types.d.ts +142 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -2
- package/lib/types.js.map +1 -1
- package/lib/utils/helpers.d.ts +2 -0
- package/lib/utils/helpers.d.ts.map +1 -0
- package/lib/utils/helpers.js +5 -7
- package/lib/utils/helpers.js.map +1 -1
- package/lib/utils/hierarchy.d.ts +8 -0
- package/lib/utils/hierarchy.d.ts.map +1 -0
- package/lib/utils/hierarchy.js +31 -33
- package/lib/utils/hierarchy.js.map +1 -1
- package/lib/utils/icons.d.ts +5 -0
- package/lib/utils/icons.d.ts.map +1 -0
- package/lib/utils/icons.js +82 -114
- package/lib/utils/icons.js.map +1 -1
- package/lib/utils/links.d.ts +2 -0
- package/lib/utils/links.d.ts.map +1 -0
- package/lib/utils/links.js +24 -41
- package/lib/utils/links.js.map +1 -1
- package/lib/utils/markdown.d.ts +4 -0
- package/lib/utils/markdown.d.ts.map +1 -0
- package/lib/utils/markdown.js +45 -54
- package/lib/utils/markdown.js.map +1 -1
- package/lib/utils/reexports.d.ts +5 -0
- package/lib/utils/reexports.d.ts.map +1 -0
- package/lib/utils/reexports.js +90 -90
- package/lib/utils/reexports.js.map +1 -1
- package/lib/utils/removeScopes.d.ts +2 -0
- package/lib/utils/removeScopes.d.ts.map +1 -0
- package/lib/utils/removeScopes.js +7 -0
- package/lib/utils/removeScopes.js.map +1 -0
- package/lib/utils/visibility.d.ts +6 -0
- package/lib/utils/visibility.d.ts.map +1 -0
- package/lib/utils/visibility.js +14 -19
- package/lib/utils/visibility.js.map +1 -1
- package/package.json +29 -17
- package/python-scripts/docspec-gen/google_docstring_processor.py +54 -20
- package/src/components/ApiIndex.tsx +1 -1
- package/src/index.ts +2 -2
- package/src/plugin/data.ts +3 -3
- package/src/plugin/python/index.ts +3 -3
- package/src/plugin/python/packageVersions.ts +3 -3
- package/src/plugin/python/transformation.ts +89 -15
- package/src/plugin/python/types.ts +3 -4
- package/src/plugin/sidebar.ts +1 -1
- package/src/plugin/url.ts +1 -1
- package/src/plugin/version.ts +1 -1
- package/src/utils/links.ts +1 -12
- package/src/utils/removeScopes.ts +10 -0
- /package/{assets/styles-8ad572ec.css → lib/components/styles.css} +0 -0
|
@@ -1,65 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const react = require('react');
|
|
4
|
-
const Markdown = require('./Markdown.js');
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
2
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/comment.hbs
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function displayPartsToMarkdown(parts) {
|
|
15
|
-
return parts.map(part => {
|
|
16
|
-
if (part.kind === 'inline-tag') {
|
|
17
|
-
return `{${part.tag} ${part.text}}`;
|
|
3
|
+
import { Fragment } from 'react';
|
|
4
|
+
import { Markdown } from './Markdown';
|
|
5
|
+
export function hasComment(comment) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
if (!comment) {
|
|
8
|
+
return false;
|
|
18
9
|
}
|
|
19
|
-
return
|
|
20
|
-
|
|
10
|
+
return Boolean(((_a = comment.summary) === null || _a === void 0 ? void 0 : _a.some((x) => x.kind !== 'text' || x.text !== '')) ||
|
|
11
|
+
(comment.blockTags && ((_b = comment.blockTags) === null || _b === void 0 ? void 0 : _b.length) > 0));
|
|
12
|
+
}
|
|
13
|
+
export function displayPartsToMarkdown(parts) {
|
|
14
|
+
return parts
|
|
15
|
+
.map((part) => {
|
|
16
|
+
if (part.kind === 'inline-tag') {
|
|
17
|
+
return `{${part.tag} ${part.text}}`;
|
|
18
|
+
}
|
|
19
|
+
return part.text;
|
|
20
|
+
})
|
|
21
|
+
.join('');
|
|
21
22
|
}
|
|
22
|
-
function Comment({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}) {
|
|
27
|
-
if (!comment || !hasComment(comment)) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Hide custom tags.
|
|
32
|
-
hideTags.push('@reference');
|
|
33
|
-
const blockTags = comment.blockTags?.filter(tag => {
|
|
34
|
-
if (hideTags.includes(tag.tag)) {
|
|
35
|
-
return false;
|
|
23
|
+
export function Comment({ comment, root, hideTags = [] }) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
if (!comment || !hasComment(comment)) {
|
|
26
|
+
return null;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}), blockTags.length > 0 && /*#__PURE__*/jsxRuntime.jsx("dl", {
|
|
47
|
-
className: "tsd-comment-tags",
|
|
48
|
-
children: blockTags.map(tag => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
|
|
49
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("dt", {
|
|
50
|
-
children: /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
51
|
-
children: tag.tag
|
|
52
|
-
})
|
|
53
|
-
}), /*#__PURE__*/jsxRuntime.jsx("dd", {
|
|
54
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Markdown.Markdown, {
|
|
55
|
-
content: displayPartsToMarkdown(tag.content)
|
|
56
|
-
})
|
|
57
|
-
})]
|
|
58
|
-
}, tag.tag))
|
|
59
|
-
})]
|
|
60
|
-
});
|
|
28
|
+
// Hide custom tags.
|
|
29
|
+
hideTags.push('@reference');
|
|
30
|
+
const blockTags = (_b = (_a = comment.blockTags) === null || _a === void 0 ? void 0 : _a.filter((tag) => {
|
|
31
|
+
if (hideTags.includes(tag.tag)) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return tag.tag !== '@default';
|
|
35
|
+
})) !== null && _b !== void 0 ? _b : [];
|
|
36
|
+
return (_jsxs("div", { className: `tsd-comment tsd-typography ${root ? 'tsd-comment-root' : ''}`, children: [!!comment.summary && (_jsx("div", { className: "lead", children: _jsx(Markdown, { content: displayPartsToMarkdown(comment.summary) }) })), blockTags.length > 0 && (_jsx("dl", { className: "tsd-comment-tags", children: blockTags.map((tag) => (_jsxs(Fragment, { children: [_jsx("dt", { children: _jsx("strong", { children: tag.tag }) }), _jsx("dd", { children: _jsx(Markdown, { content: displayPartsToMarkdown(tag.content) }) })] }, tag.tag))) }))] }));
|
|
61
37
|
}
|
|
62
|
-
|
|
63
|
-
exports.displayPartsToMarkdown = displayPartsToMarkdown;
|
|
64
|
-
exports.hasComment = hasComment;
|
|
65
|
-
//# sourceMappingURL=Comment.js.map
|
|
38
|
+
//# sourceMappingURL=Comment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Comment.js","sources":["../../src/components/Comment.tsx"],"
|
|
1
|
+
{"version":3,"file":"Comment.js","sourceRoot":"","sources":["../../src/components/Comment.tsx"],"names":[],"mappings":";AAAA,oGAAoG;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,MAAM,UAAU,UAAU,CAAC,OAA4B;;IACtD,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,OAAO,CACb,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC;QAC/D,CAAC,OAAO,CAAC,SAAS,IAAI,CAAA,MAAA,OAAO,CAAC,SAAS,0CAAE,MAAM,IAAG,CAAC,CAAC,CACrD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAsC;IAC5E,OAAO,KAAK;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACb,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;YAChC,OAAO,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;QACrC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,GAAG,EAAE,EAAgB;;IACrE,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oBAAoB;IACpB,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAE5B,MAAM,SAAS,GACd,MAAA,MAAA,OAAO,CAAC,SAAS,0CAAE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;QACjC,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,GAAG,CAAC,GAAG,KAAK,UAAU,CAAC;IAC/B,CAAC,CAAC,mCAAI,EAAE,CAAC;IAEV,OAAO,CACN,eAAK,SAAS,EAAE,8BAA8B,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,EAAE,aAC5E,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,CACrB,cAAK,SAAS,EAAC,MAAM,YACpB,KAAC,QAAQ,IAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAI,GACzD,CACN,EAEA,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACxB,aAAI,SAAS,EAAC,kBAAkB,YAC9B,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACvB,MAAC,QAAQ,eACR,uBACC,2BAAS,GAAG,CAAC,GAAG,GAAU,GACtB,EACL,uBACC,KAAC,QAAQ,IAAC,OAAO,EAAE,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,GAAI,GACtD,KANS,GAAG,CAAC,GAAG,CAOX,CACX,CAAC,GACE,CACL,IACI,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSONOutput } from 'typedoc';
|
|
2
|
+
export type CommentWithModifiers = Pick<JSONOutput.Comment, 'blockTags' | 'summary'> & Required<Pick<JSONOutput.Comment, 'modifierTags'>>;
|
|
3
|
+
export declare function isCommentWithModifiers(comment?: JSONOutput.Comment): comment is CommentWithModifiers;
|
|
4
|
+
interface CommentBadgesProps {
|
|
5
|
+
comment: CommentWithModifiers;
|
|
6
|
+
}
|
|
7
|
+
export declare function CommentBadges({ comment }: CommentBadgesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=CommentBadges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentBadges.d.ts","sourceRoot":"","sources":["../../src/components/CommentBadges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAcrC,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC,GACnF,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AAEpD,wBAAgB,sBAAsB,CACrC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,GAC1B,OAAO,IAAI,oBAAoB,CAEjC;AAED,UAAU,kBAAkB;IAC3B,OAAO,EAAE,oBAAoB,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAW5D"}
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
2
|
function getModifierClassName(tag) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
switch (tag) {
|
|
4
|
+
case '@beta':
|
|
5
|
+
case '@experimental':
|
|
6
|
+
return 'warning';
|
|
7
|
+
case '@alpha':
|
|
8
|
+
return 'danger';
|
|
9
|
+
default:
|
|
10
|
+
return 'info';
|
|
11
|
+
}
|
|
14
12
|
}
|
|
15
|
-
function isCommentWithModifiers(comment) {
|
|
16
|
-
|
|
13
|
+
export function isCommentWithModifiers(comment) {
|
|
14
|
+
return !!comment && !!comment.modifierTags && comment.modifierTags.length > 0;
|
|
17
15
|
}
|
|
18
|
-
function CommentBadges({
|
|
19
|
-
|
|
20
|
-
})
|
|
21
|
-
const modifierTags = comment.modifierTags;
|
|
22
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
23
|
-
className: "badge-group",
|
|
24
|
-
children: modifierTags.map(tag => /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
25
|
-
className: `badge badge--${getModifierClassName(tag)}`,
|
|
26
|
-
children: tag.slice(1)
|
|
27
|
-
}, tag))
|
|
28
|
-
});
|
|
16
|
+
export function CommentBadges({ comment }) {
|
|
17
|
+
const { modifierTags } = comment;
|
|
18
|
+
return (_jsx("div", { className: "badge-group", children: modifierTags.map((tag) => (_jsx("span", { className: `badge badge--${getModifierClassName(tag)}`, children: tag.slice(1) }, tag))) }));
|
|
29
19
|
}
|
|
30
|
-
|
|
31
|
-
exports.isCommentWithModifiers = isCommentWithModifiers;
|
|
32
|
-
//# sourceMappingURL=CommentBadges.js.map
|
|
20
|
+
//# sourceMappingURL=CommentBadges.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentBadges.js","sources":["../../src/components/CommentBadges.tsx"],"
|
|
1
|
+
{"version":3,"file":"CommentBadges.js","sourceRoot":"","sources":["../../src/components/CommentBadges.tsx"],"names":[],"mappings":";AAEA,SAAS,oBAAoB,CAAC,GAAW;IACxC,QAAQ,GAAG,EAAE,CAAC;QACb,KAAK,OAAO,CAAC;QACb,KAAK,eAAe;YACnB,OAAO,SAAS,CAAC;QAClB,KAAK,QAAQ;YACZ,OAAO,QAAQ,CAAC;QACjB;YACC,OAAO,MAAM,CAAC;IAChB,CAAC;AACF,CAAC;AAKD,MAAM,UAAU,sBAAsB,CACrC,OAA4B;IAE5B,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;AAC/E,CAAC;AAMD,MAAM,UAAU,aAAa,CAAC,EAAE,OAAO,EAAsB;IAC5D,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,OAAO,CACN,cAAK,SAAS,EAAC,aAAa,YAC1B,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC1B,eAAgB,SAAS,EAAE,gBAAgB,oBAAoB,CAAC,GAAG,CAAC,EAAE,YACpE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IADH,GAAG,CAEP,CACP,CAAC,GACG,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
export interface DefaultValueProps {
|
|
3
|
+
comment?: JSONOutput.Comment;
|
|
4
|
+
type?: {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
value?: JSONOutput.SomeType | string;
|
|
8
|
+
}
|
|
9
|
+
export declare function DefaultValue({ comment, value, type }: DefaultValueProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=DefaultValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultValue.d.ts","sourceRoot":"","sources":["../../src/components/DefaultValue.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,MAAM,WAAW,iBAAiB;IACjC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC;CACrC;AAYD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CA6BvE"}
|
|
@@ -1,59 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
const htmlEntities = require('html-entities');
|
|
9
|
-
const marked = require('marked');
|
|
10
|
-
const Comment = require('./Comment.js');
|
|
11
|
-
const Type = require('./Type.js');
|
|
12
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
13
|
-
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
2
|
/* eslint-disable react-perf/jsx-no-new-object-as-prop */
|
|
15
|
-
|
|
3
|
+
import { decode } from 'html-entities';
|
|
4
|
+
import { marked } from 'marked';
|
|
5
|
+
import { displayPartsToMarkdown } from './Comment';
|
|
6
|
+
import { Type } from './Type';
|
|
16
7
|
function extractDefaultTag(comment) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
const tag = (_a = comment === null || comment === void 0 ? void 0 : comment.blockTags) === null || _a === void 0 ? void 0 : _a.find((tag) => tag.tag === '@default');
|
|
10
|
+
if (!tag) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return displayPartsToMarkdown(tag.content);
|
|
22
14
|
}
|
|
23
|
-
function DefaultValue({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
defaultTag = htmlEntities.decode(marked.marked(defaultTag));
|
|
39
|
-
}
|
|
40
|
-
if (!defaultTag && !value) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
44
|
-
className: "tsd-signature-symbol tsd-signature-default-value",
|
|
45
|
-
children: [' = ', value && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
46
|
-
children: typeof value === 'string' ? value : /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
47
|
-
type: value
|
|
48
|
-
})
|
|
49
|
-
}), !value && defaultTag && /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
50
|
-
type: _objectSpread(_objectSpread({
|
|
51
|
-
type: 'literal'
|
|
52
|
-
}, type?.type === 'intrinsic' ? {} : type), {}, {
|
|
53
|
-
value: defaultTag
|
|
54
|
-
})
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
15
|
+
export function DefaultValue({ comment, value, type }) {
|
|
16
|
+
if (!comment && !value) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
let defaultTag = extractDefaultTag(comment);
|
|
20
|
+
if (typeof defaultTag === 'string') {
|
|
21
|
+
marked.use({ renderer: { code: (text) => text } });
|
|
22
|
+
defaultTag = decode(marked(defaultTag));
|
|
23
|
+
}
|
|
24
|
+
if (!defaultTag && !value) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return (_jsxs("span", { className: "tsd-signature-symbol tsd-signature-default-value", children: [' = ', value && _jsx(_Fragment, { children: typeof value === 'string' ? value : _jsx(Type, { type: value }) }), !value && defaultTag && (_jsx(Type, { type: Object.assign(Object.assign({ type: 'literal' }, ((type === null || type === void 0 ? void 0 : type.type) === 'intrinsic' ? {} : type)), { value: defaultTag }) }))] }));
|
|
57
28
|
}
|
|
58
|
-
|
|
59
|
-
//# sourceMappingURL=DefaultValue.js.map
|
|
29
|
+
//# sourceMappingURL=DefaultValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultValue.js","sources":["../../src/components/DefaultValue.tsx"],"
|
|
1
|
+
{"version":3,"file":"DefaultValue.js","sourceRoot":"","sources":["../../src/components/DefaultValue.tsx"],"names":[],"mappings":";AAAA,yDAAyD;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQ9B,SAAS,iBAAiB,CAAC,OAA4B;;IACtD,MAAM,GAAG,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,0CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,UAAU,CAAC,CAAC;IAEtE,IAAI,CAAC,GAAG,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAqB;IACvE,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE5C,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACpC,MAAM,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACnD,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,CAAC,UAAU,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,gBAAM,SAAS,EAAC,kDAAkD,aAChE,KAAK,EAEL,KAAK,IAAI,4BAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,GAAI,GAAI,EAEzE,CAAC,KAAK,IAAI,UAAU,IAAI,CACxB,KAAC,IAAI,IACJ,IAAI,gCAAI,IAAI,EAAE,SAAS,IAAK,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAE,KAAK,EAAE,UAAU,MACtF,CACF,IACK,CACP,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flags.d.ts","sourceRoot":"","sources":["../../src/components/Flags.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,MAAM,WAAW,UAAU;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC;CACnC;AAED,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,2CAiB1C"}
|
package/lib/components/Flags.js
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
|
|
5
|
-
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/comment.hbs
|
|
6
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
2
|
function removePrefix(value) {
|
|
8
|
-
|
|
3
|
+
return value.replace(/^is([A-Z])/, (match, char) => String(char).toLocaleLowerCase());
|
|
9
4
|
}
|
|
10
|
-
function Flags({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
children: Object.keys(flags).filter(flag => flags[flag]).map(removePrefix).map(flag => /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
19
|
-
className: `tsd-flag tsd-flag-${flag}`,
|
|
20
|
-
children: flag
|
|
21
|
-
}, flag))
|
|
22
|
-
});
|
|
5
|
+
export function Flags({ flags }) {
|
|
6
|
+
if (!flags) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
return (_jsx("span", { className: "tsd-flag-group", children: Object.keys(flags)
|
|
10
|
+
.filter((flag) => flags[flag])
|
|
11
|
+
.map(removePrefix)
|
|
12
|
+
.map((flag) => (_jsx("span", { className: `tsd-flag tsd-flag-${flag}`, children: flag }, flag))) }));
|
|
23
13
|
}
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=Flags.js.map
|
|
14
|
+
//# sourceMappingURL=Flags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flags.js","sources":["../../src/components/Flags.tsx"],"
|
|
1
|
+
{"version":3,"file":"Flags.js","sourceRoot":"","sources":["../../src/components/Flags.tsx"],"names":[],"mappings":";AAIA,SAAS,YAAY,CAAC,KAAa;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC;AACvF,CAAC;AAMD,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAc;IAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,eAAM,SAAS,EAAC,gBAAgB,YAC9B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;aACjB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aAC7B,GAAG,CAAC,YAAY,CAAC;aACjB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACd,eAAiB,SAAS,EAAE,qBAAqB,IAAI,EAAE,YACrD,IAAI,IADK,IAAI,CAER,CACP,CAAC,GACG,CACP,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../src/components/Footer.tsx"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,4CAUrB"}
|
package/lib/components/Footer.js
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function Footer() {
|
|
5
|
-
return /*#__PURE__*/jsxRuntime.jsxs("footer", {
|
|
6
|
-
className: "tsd-footer",
|
|
7
|
-
children: ["Powered by", ' ', /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
8
|
-
href: "https://github.com/milesj/docusaurus-plugin-typedoc-api",
|
|
9
|
-
children: "docusaurus-plugin-typedoc-api"
|
|
10
|
-
}), ' ', "and ", /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
11
|
-
href: "https://typedoc.org/",
|
|
12
|
-
children: "TypeDoc"
|
|
13
|
-
})]
|
|
14
|
-
});
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function Footer() {
|
|
3
|
+
return (_jsxs("footer", { className: "tsd-footer", children: ["Powered by", ' ', _jsx("a", { href: "https://github.com/milesj/docusaurus-plugin-typedoc-api", children: "docusaurus-plugin-typedoc-api" }), ' ', "and ", _jsx("a", { href: "https://typedoc.org/", children: "TypeDoc" })] }));
|
|
15
4
|
}
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=Footer.js.map
|
|
5
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sources":["../../src/components/Footer.tsx"],"
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../src/components/Footer.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,MAAM;IACrB,OAAO,CACN,kBAAQ,SAAS,EAAC,YAAY,2BAClB,GAAG,EACd,YAAG,IAAI,EAAC,yDAAyD,8CAE7D,EAAC,GAAG,UACJ,YAAG,IAAI,EAAC,sBAAsB,wBAAY,IACtC,CACT,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hierarchy.d.ts","sourceRoot":"","sources":["../../src/components/Hierarchy.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,aAAa,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,2CAgBjD"}
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/hierarchy.hbs
|
|
7
|
-
|
|
8
|
-
function Hierarchy({
|
|
9
|
-
tree
|
|
10
|
-
}) {
|
|
11
|
-
return /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
12
|
-
className: "tsd-hierarchy",
|
|
13
|
-
children: tree.types.map((type, i) => /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
14
|
-
children: [tree.isTarget ? /*#__PURE__*/jsxRuntime.jsx("em", {
|
|
15
|
-
className: "tsd-target",
|
|
16
|
-
children: type.type === 'reference' ? type.name : 'UNKNOWN'
|
|
17
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
18
|
-
type: type
|
|
19
|
-
}), i === tree.types.length - 1 && tree.next && /*#__PURE__*/jsxRuntime.jsx(Hierarchy, {
|
|
20
|
-
tree: tree.next
|
|
21
|
-
})]
|
|
22
|
-
}, type.type + String(i)))
|
|
23
|
-
});
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Type } from './Type';
|
|
3
|
+
export function Hierarchy({ tree }) {
|
|
4
|
+
return (_jsx("ul", { className: "tsd-hierarchy", children: tree.types.map((type, i) => (_jsxs("li", { children: [tree.isTarget ? (_jsx("em", { className: "tsd-target", children: type.type === 'reference' ? type.name : 'UNKNOWN' })) : (_jsx(Type, { type: type })), i === tree.types.length - 1 && tree.next && _jsx(Hierarchy, { tree: tree.next })] }, type.type + String(i)))) }));
|
|
24
5
|
}
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=Hierarchy.js.map
|
|
6
|
+
//# sourceMappingURL=Hierarchy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hierarchy.js","sources":["../../src/components/Hierarchy.tsx"],"
|
|
1
|
+
{"version":3,"file":"Hierarchy.js","sourceRoot":"","sources":["../../src/components/Hierarchy.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAM9B,MAAM,UAAU,SAAS,CAAC,EAAE,IAAI,EAAkB;IACjD,OAAO,CACN,aAAI,SAAS,EAAC,eAAe,YAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC5B,yBACE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAChB,aAAI,SAAS,EAAC,YAAY,YAAE,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,GAAM,CACnF,CAAC,CAAC,CAAC,CACH,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CACpB,EAEA,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,KAPnE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAQzB,CACL,CAAC,GACE,CACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection, TSDSignatureReflection } from '../types';
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
reflection: TSDDeclarationReflection | TSDSignatureReflection;
|
|
4
|
+
}
|
|
5
|
+
export declare function Icon({ reflection }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/components/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGjF,MAAM,WAAW,SAAS;IACzB,UAAU,EAAE,wBAAwB,GAAG,sBAAsB,CAAC;CAC9D;AAED,wBAAgB,IAAI,CAAC,EAAE,UAAU,EAAE,EAAE,SAAS,2CAW7C"}
|
package/lib/components/Icon.js
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) {
|
|
8
|
-
const icon = icons.getKindIcon(reflection.kind, reflection.name);
|
|
9
|
-
if (!icon) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const color = icons.getKindIconColor(reflection.kind);
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line react-perf/jsx-no-new-object-as-prop
|
|
15
|
-
return /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
16
|
-
className: `codicon codicon-${icon}`,
|
|
17
|
-
style: {
|
|
18
|
-
color
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getKindIcon, getKindIconColor } from '../utils/icons';
|
|
3
|
+
export function Icon({ reflection }) {
|
|
4
|
+
const icon = getKindIcon(reflection.kind, reflection.name);
|
|
5
|
+
if (!icon) {
|
|
6
|
+
return null;
|
|
19
7
|
}
|
|
20
|
-
|
|
8
|
+
const color = getKindIconColor(reflection.kind);
|
|
9
|
+
// eslint-disable-next-line react-perf/jsx-no-new-object-as-prop
|
|
10
|
+
return _jsx("i", { className: `codicon codicon-${icon}`, style: { color } });
|
|
21
11
|
}
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=Icon.js.map
|
|
12
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sources":["../../src/components/Icon.tsx"],"
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../src/components/Icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAM/D,MAAM,UAAU,IAAI,CAAC,EAAE,UAAU,EAAa;IAC7C,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAE3D,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,KAAK,GAAG,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAEhD,gEAAgE;IAChE,OAAO,YAAG,SAAS,EAAE,mBAAmB,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAI,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection } from '../types';
|
|
2
|
+
export interface IndexChildProps {
|
|
3
|
+
id: number;
|
|
4
|
+
}
|
|
5
|
+
export interface IndexProps {
|
|
6
|
+
reflection: TSDDeclarationReflection;
|
|
7
|
+
}
|
|
8
|
+
export declare function Index({ reflection }: IndexProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../src/components/Index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKzD,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;CACX;AAgBD,MAAM,WAAW,UAAU;IAC1B,UAAU,EAAE,wBAAwB,CAAC;CACrC;AAED,wBAAgB,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,UAAU,2CA0E/C"}
|