@apify/docusaurus-plugin-typedoc-api 4.4.11 → 5.0.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 +80 -0
- package/lib/plugin/python/transformation.d.ts.map +1 -0
- package/lib/plugin/python/transformation.js +350 -392
- 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 +112 -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 +24 -17
- package/src/components/ApiIndex.tsx +1 -1
- package/src/components/Type.tsx +4 -4
- 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/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
package/lib/components/Member.js
CHANGED
|
@@ -1,71 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const react = require('react');
|
|
4
|
-
const useReflection = require('../hooks/useReflection.js');
|
|
5
|
-
const useReflectionMap = require('../hooks/useReflectionMap.js');
|
|
6
|
-
const helpers = require('../utils/helpers.js');
|
|
7
|
-
const visibility = require('../utils/visibility.js');
|
|
8
|
-
const AnchorLink = require('./AnchorLink.js');
|
|
9
|
-
const ApiOptionsContext = require('./ApiOptionsContext.js');
|
|
10
|
-
const CommentBadges = require('./CommentBadges.js');
|
|
11
|
-
const Flags = require('./Flags.js');
|
|
12
|
-
const MemberDeclaration = require('./MemberDeclaration.js');
|
|
13
|
-
const MemberGetterSetter = require('./MemberGetterSetter.js');
|
|
14
|
-
const MemberReference = require('./MemberReference.js');
|
|
15
|
-
const MemberSignatures = require('./MemberSignatures.js');
|
|
16
|
-
const SourceLink = require('./SourceLink.js');
|
|
17
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
18
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
2
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/members.hbs
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Flags.Flags, {
|
|
59
|
-
flags: reflection.flags
|
|
60
|
-
}), helpers.escapeMdx(reflection.name), CommentBadges.isCommentWithModifiers(comment) && /*#__PURE__*/jsxRuntime.jsx(CommentBadges.CommentBadges, {
|
|
61
|
-
comment: comment
|
|
62
|
-
})]
|
|
63
|
-
}), content, reflection.groups?.map(group => /*#__PURE__*/jsxRuntime.jsx(react.Fragment, {
|
|
64
|
-
children: group.children?.map(child => visibility.hasOwnDocument(child, reflections) ? null : /*#__PURE__*/jsxRuntime.jsx(Member, {
|
|
65
|
-
id: child
|
|
66
|
-
}, child))
|
|
67
|
-
}, group.title))]
|
|
68
|
-
});
|
|
3
|
+
import { Fragment, useContext } from 'react';
|
|
4
|
+
import { useRequiredReflection } from '../hooks/useReflection';
|
|
5
|
+
import { useReflectionMap } from '../hooks/useReflectionMap';
|
|
6
|
+
import { escapeMdx } from '../utils/helpers';
|
|
7
|
+
import { hasOwnDocument } from '../utils/visibility';
|
|
8
|
+
import { AnchorLink } from './AnchorLink';
|
|
9
|
+
import { ApiOptionsContext } from './ApiOptionsContext';
|
|
10
|
+
import { CommentBadges, isCommentWithModifiers } from './CommentBadges';
|
|
11
|
+
import { Flags } from './Flags';
|
|
12
|
+
import { MemberDeclaration } from './MemberDeclaration';
|
|
13
|
+
import { MemberGetterSetter } from './MemberGetterSetter';
|
|
14
|
+
import { MemberReference } from './MemberReference';
|
|
15
|
+
import { MemberSignatures } from './MemberSignatures';
|
|
16
|
+
import { SourceLink } from './SourceLink';
|
|
17
|
+
export function Member({ id }) {
|
|
18
|
+
var _a;
|
|
19
|
+
const reflections = useReflectionMap();
|
|
20
|
+
const reflection = useRequiredReflection(id);
|
|
21
|
+
const { comment } = reflection;
|
|
22
|
+
let content = null;
|
|
23
|
+
const apiOptions = useContext(ApiOptionsContext);
|
|
24
|
+
const shouldHideInherited = reflection.inheritedFrom ? apiOptions.hideInherited : false;
|
|
25
|
+
if (reflection.signatures) {
|
|
26
|
+
content = _jsx(MemberSignatures, { inPanel: true, sigs: reflection.signatures });
|
|
27
|
+
}
|
|
28
|
+
else if (reflection.getSignature || reflection.setSignature) {
|
|
29
|
+
content = (_jsx(MemberGetterSetter, { inPanel: true, getter: reflection.getSignature, setter: reflection.setSignature }));
|
|
30
|
+
}
|
|
31
|
+
else if ('target' in reflection && reflection.target) {
|
|
32
|
+
content = _jsx(MemberReference, { reflection: reflection });
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
content = _jsx(MemberDeclaration, { id: id });
|
|
36
|
+
}
|
|
37
|
+
return (!shouldHideInherited && (_jsxs("section", { className: "tsd-panel tsd-member", children: [_jsxs("h3", { className: "tsd-panel-header", children: [_jsx(AnchorLink, { id: reflection.name }), _jsx(SourceLink, { sources: reflection.sources }), _jsx(Flags, { flags: reflection.flags }), escapeMdx(reflection.name), isCommentWithModifiers(comment) && _jsx(CommentBadges, { comment: comment })] }), content, (_a = reflection.groups) === null || _a === void 0 ? void 0 : _a.map((group) => {
|
|
38
|
+
var _a;
|
|
39
|
+
return (_jsx(Fragment, { children: (_a = group.children) === null || _a === void 0 ? void 0 : _a.map((child) => hasOwnDocument(child, reflections) ? null : _jsx(Member, { id: child }, child)) }, group.title));
|
|
40
|
+
})] })));
|
|
69
41
|
}
|
|
70
|
-
|
|
71
|
-
//# sourceMappingURL=Member.js.map
|
|
42
|
+
//# sourceMappingURL=Member.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Member.js","sources":["../../src/components/Member.tsx"],"
|
|
1
|
+
{"version":3,"file":"Member.js","sourceRoot":"","sources":["../../src/components/Member.tsx"],"names":[],"mappings":";AAAA,oGAAoG;AAEpG,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE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AC,IAAI,GAAI,EACnC,KAAC,UAAU,IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,GAAI,EAC3C,KAAC,KAAK,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,GAAI,EACjC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,EAC1B,sBAAsB,CAAC,OAAO,CAAC,IAAI,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI,IACnE,EAEJ,OAAO,EAEP,MAAA,UAAU,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;gBAAC,OAAA,CAClC,KAAC,QAAQ,cACP,MAAA,KAAK,CAAC,QAAQ,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC9B,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,MAAM,IAAa,EAAE,EAAE,KAAK,IAAhB,KAAK,CAAe,CAC7E,IAHa,KAAK,CAAC,KAAK,CAIf,CACX,CAAA;aAAA,CAAC,IACO,CACV,CACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;CACX;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,sBAAsB,2CAgD/D"}
|
|
@@ -1,73 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
4
|
-
const useReflection = require('../hooks/useReflection.js');
|
|
5
|
-
const helpers = require('../utils/helpers.js');
|
|
6
|
-
const Comment = require('./Comment.js');
|
|
7
|
-
const DefaultValue = require('./DefaultValue.js');
|
|
8
|
-
const Icon = require('./Icon.js');
|
|
9
|
-
const MemberSources = require('./MemberSources.js');
|
|
10
|
-
const Parameter = require('./Parameter.js');
|
|
11
|
-
const Type = require('./Type.js');
|
|
12
|
-
const TypeParameters = require('./TypeParameters.js');
|
|
13
|
-
const TypeParametersGeneric = require('./TypeParametersGeneric.js');
|
|
14
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
15
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
2
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.declaration.hbs
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
className: "tsd-signature-symbol",
|
|
36
|
-
children: [reflection.flags?.isOptional && '?', ": "]
|
|
37
|
-
}), ' ', /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
38
|
-
type: reflection.type
|
|
39
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DefaultValue.DefaultValue, {
|
|
40
|
-
comment: reflection.comment,
|
|
41
|
-
type: reflection.type,
|
|
42
|
-
value: reflection.defaultValue
|
|
43
|
-
})]
|
|
44
|
-
})
|
|
45
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
46
|
-
className: "tsd-panel-content",
|
|
47
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(MemberSources.MemberSources, {
|
|
48
|
-
reflection: reflection
|
|
49
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
50
|
-
comment: reflection.comment
|
|
51
|
-
}), Comment.hasComment(reflection.comment) && (showTypes || showDeclaration) && /*#__PURE__*/jsxRuntime.jsx("hr", {
|
|
52
|
-
className: "tsd-divider"
|
|
53
|
-
}), showTypes && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
54
|
-
className: "tds-type-parameters",
|
|
55
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
56
|
-
className: "tsd-type-parameters-title",
|
|
57
|
-
children: "Type parameters"
|
|
58
|
-
}), /*#__PURE__*/jsxRuntime.jsx(TypeParameters.TypeParameters, {
|
|
59
|
-
params: reflection.typeParameters
|
|
60
|
-
})]
|
|
61
|
-
}), showDeclaration && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
62
|
-
className: "tsd-type-declaration",
|
|
63
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
64
|
-
children: "Type declaration"
|
|
65
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Parameter.Parameter, {
|
|
66
|
-
param: Type.extractDeclarationFromType(reflection.type)
|
|
67
|
-
})]
|
|
68
|
-
})]
|
|
69
|
-
})]
|
|
70
|
-
});
|
|
3
|
+
import { useMinimalLayout } from '../hooks/useMinimalLayout';
|
|
4
|
+
import { useRequiredReflection } from '../hooks/useReflection';
|
|
5
|
+
import { escapeMdx } from '../utils/helpers';
|
|
6
|
+
import { Comment, hasComment } from './Comment';
|
|
7
|
+
import { DefaultValue } from './DefaultValue';
|
|
8
|
+
import { Icon } from './Icon';
|
|
9
|
+
import { MemberSources } from './MemberSources';
|
|
10
|
+
import { Parameter } from './Parameter';
|
|
11
|
+
import { extractDeclarationFromType, Type } from './Type';
|
|
12
|
+
import { TypeParameters } from './TypeParameters';
|
|
13
|
+
import { TypeParametersGeneric } from './TypeParametersGeneric';
|
|
14
|
+
export function MemberDeclaration({ id }) {
|
|
15
|
+
var _a;
|
|
16
|
+
const reflection = useRequiredReflection(id);
|
|
17
|
+
const minimal = useMinimalLayout();
|
|
18
|
+
const showTypes = reflection.typeParameters && reflection.typeParameters.length > 0;
|
|
19
|
+
const showDeclaration = !minimal && extractDeclarationFromType(reflection.type);
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "tsd-panel-content", children: _jsxs("div", { className: "tsd-signature tsd-kind-icon", children: [_jsx(Icon, { reflection: reflection }), escapeMdx(reflection.name), _jsx(TypeParametersGeneric, { params: reflection.typeParameters }), _jsxs("span", { className: "tsd-signature-symbol", children: [((_a = reflection.flags) === null || _a === void 0 ? void 0 : _a.isOptional) && '?', ": "] }), ' ', _jsx(Type, { type: reflection.type }), _jsx(DefaultValue, { comment: reflection.comment, type: reflection.type, value: reflection.defaultValue })] }) }), _jsxs("div", { className: "tsd-panel-content", children: [_jsx(MemberSources, { reflection: reflection }), _jsx(Comment, { comment: reflection.comment }), hasComment(reflection.comment) && (showTypes || showDeclaration) && (_jsx("hr", { className: "tsd-divider" })), showTypes && (_jsxs("div", { className: "tds-type-parameters", children: [_jsx("h4", { className: "tsd-type-parameters-title", children: "Type parameters" }), _jsx(TypeParameters, { params: reflection.typeParameters })] })), showDeclaration && (_jsxs("div", { className: "tsd-type-declaration", children: [_jsx("h4", { children: "Type declaration" }), _jsx(Parameter, { param: extractDeclarationFromType(reflection.type) })] }))] })] }));
|
|
71
21
|
}
|
|
72
|
-
|
|
73
|
-
//# sourceMappingURL=MemberDeclaration.js.map
|
|
22
|
+
//# sourceMappingURL=MemberDeclaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberDeclaration.js","sources":["../../src/components/MemberDeclaration.tsx"],"
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.js","sourceRoot":"","sources":["../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":";AAAA,+GAA+G;AAE/G,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,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,EAEN,eAAK,SAAS,EAAC,mBAAmB,aACjC,KAAC,aAAa,IAAC,UAAU,EAAE,UAAU,GAAI,EAEzC,KAAC,OAAO,IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,GAAI,EAEvC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACpE,aAAI,SAAS,EAAC,aAAa,GAAG,CAC9B,EAEA,SAAS,IAAI,CACb,eAAK,SAAS,EAAC,qBAAqB,aACnC,aAAI,SAAS,EAAC,2BAA2B,gCAAqB,EAC9D,KAAC,cAAc,IAAC,MAAM,EAAE,UAAU,CAAC,cAAc,GAAI,IAChD,CACN,EAEA,eAAe,IAAI,CACnB,eAAK,SAAS,EAAC,sBAAsB,aACpC,4CAAyB,EACzB,KAAC,SAAS,IAAC,KAAK,EAAE,0BAA0B,CAAC,UAAU,CAAC,IAAI,CAAC,GAAI,IAC5D,CACN,IACI,IACJ,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection } from '../types';
|
|
2
|
+
export interface MemberGetterSetterProps {
|
|
3
|
+
inPanel?: boolean;
|
|
4
|
+
getter?: TSDDeclarationReflection['getSignature'];
|
|
5
|
+
setter?: TSDDeclarationReflection['setSignature'];
|
|
6
|
+
}
|
|
7
|
+
export declare function MemberGetterSetter({ inPanel, getter, setter }: MemberGetterSetterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=MemberGetterSetter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberGetterSetter.d.ts","sourceRoot":"","sources":["../../src/components/MemberGetterSetter.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAMzD,MAAM,WAAW,uBAAuB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,uBAAuB,2CAoDtF"}
|
|
@@ -1,70 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
4
|
-
const helpers = require('../utils/helpers.js');
|
|
5
|
-
const Icon = require('./Icon.js');
|
|
6
|
-
const MemberSignatureBody = require('./MemberSignatureBody.js');
|
|
7
|
-
const MemberSignatureTitle = require('./MemberSignatureTitle.js');
|
|
8
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
2
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.getterSetter.hbs
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
children: [(getter || setter) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
23
|
-
className: inPanel ? 'tsd-panel-content' : '',
|
|
24
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
25
|
-
className: "tsd-signatures",
|
|
26
|
-
children: [getter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
27
|
-
className: "tsd-signature tsd-kind-icon",
|
|
28
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
29
|
-
reflection: getter
|
|
30
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
31
|
-
className: "tsd-signature-symbol",
|
|
32
|
-
children: "get "
|
|
33
|
-
}), helpers.escapeMdx(getter.name), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
|
|
34
|
-
hideName: true,
|
|
35
|
-
sig: getter
|
|
36
|
-
})]
|
|
37
|
-
}), setter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
38
|
-
className: "tsd-signature tsd-kind-icon",
|
|
39
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
40
|
-
reflection: setter
|
|
41
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
42
|
-
className: "tsd-signature-symbol",
|
|
43
|
-
children: "set "
|
|
44
|
-
}), helpers.escapeMdx(setter.name), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
|
|
45
|
-
hideName: true,
|
|
46
|
-
sig: setter
|
|
47
|
-
})]
|
|
48
|
-
})]
|
|
49
|
-
})
|
|
50
|
-
}), (MemberSignatureBody.hasSigBody(getter, minimal) || MemberSignatureBody.hasSigBody(setter, minimal)) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51
|
-
className: inPanel ? 'tsd-panel-content' : '',
|
|
52
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
53
|
-
className: "tsd-descriptions",
|
|
54
|
-
children: [getter && /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
55
|
-
className: "tsd-description",
|
|
56
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatureBody.MemberSignatureBody, {
|
|
57
|
-
sig: getter
|
|
58
|
-
})
|
|
59
|
-
}), setter && /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
60
|
-
className: "tsd-description",
|
|
61
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatureBody.MemberSignatureBody, {
|
|
62
|
-
sig: setter
|
|
63
|
-
})
|
|
64
|
-
})]
|
|
65
|
-
})
|
|
66
|
-
})]
|
|
67
|
-
});
|
|
3
|
+
import { useMinimalLayout } from '../hooks/useMinimalLayout';
|
|
4
|
+
import { escapeMdx } from '../utils/helpers';
|
|
5
|
+
import { Icon } from './Icon';
|
|
6
|
+
import { hasSigBody, MemberSignatureBody } from './MemberSignatureBody';
|
|
7
|
+
import { MemberSignatureTitle } from './MemberSignatureTitle';
|
|
8
|
+
export function MemberGetterSetter({ inPanel, getter, setter }) {
|
|
9
|
+
const minimal = useMinimalLayout();
|
|
10
|
+
if (!getter && !setter) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return (_jsxs(_Fragment, { children: [(getter || setter) && (_jsx("div", { className: inPanel ? 'tsd-panel-content' : '', children: _jsxs("ul", { className: "tsd-signatures", children: [getter && (_jsxs("li", { className: "tsd-signature tsd-kind-icon", children: [_jsx(Icon, { reflection: getter }), _jsx("span", { className: "tsd-signature-symbol", children: "get " }), escapeMdx(getter.name), _jsx(MemberSignatureTitle, { hideName: true, sig: getter })] })), setter && (_jsxs("li", { className: "tsd-signature tsd-kind-icon", children: [_jsx(Icon, { reflection: setter }), _jsx("span", { className: "tsd-signature-symbol", children: "set " }), escapeMdx(setter.name), _jsx(MemberSignatureTitle, { hideName: true, sig: setter })] }))] }) })), (hasSigBody(getter, minimal) || hasSigBody(setter, minimal)) && (_jsx("div", { className: inPanel ? 'tsd-panel-content' : '', children: _jsxs("ul", { className: "tsd-descriptions", children: [getter && (_jsx("li", { className: "tsd-description", children: _jsx(MemberSignatureBody, { sig: getter }) })), setter && (_jsx("li", { className: "tsd-description", children: _jsx(MemberSignatureBody, { sig: setter }) }))] }) }))] }));
|
|
68
14
|
}
|
|
69
|
-
|
|
70
|
-
//# sourceMappingURL=MemberGetterSetter.js.map
|
|
15
|
+
//# sourceMappingURL=MemberGetterSetter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberGetterSetter.js","sources":["../../src/components/MemberGetterSetter.tsx"],"
|
|
1
|
+
{"version":3,"file":"MemberGetterSetter.js","sourceRoot":"","sources":["../../src/components/MemberGetterSetter.tsx"],"names":[],"mappings":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AM,EAAE,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAChE,cAAK,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,YACjD,cAAI,SAAS,EAAC,kBAAkB,aAC9B,MAAM,IAAI,CACV,aAAI,SAAS,EAAC,iBAAiB,YAC9B,KAAC,mBAAmB,IAAC,GAAG,EAAE,MAAM,GAAI,GAChC,CACL,EAEA,MAAM,IAAI,CACV,aAAI,SAAS,EAAC,iBAAiB,YAC9B,KAAC,mBAAmB,IAAC,GAAG,EAAE,MAAM,GAAI,GAChC,CACL,IACG,GACA,CACN,IACC,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
export interface MemberReferenceProps {
|
|
3
|
+
reflection: JSONOutput.ReferenceReflection;
|
|
4
|
+
}
|
|
5
|
+
export declare function MemberReference({ reflection }: MemberReferenceProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=MemberReference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberReference.d.ts","sourceRoot":"","sources":["../../src/components/MemberReference.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,MAAM,WAAW,oBAAoB;IACpC,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC;CAC3C;AAED,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,EAAE,oBAAoB,2CA+BnE"}
|
|
@@ -1,49 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
let content = null;
|
|
19
|
-
if (!target) {
|
|
20
|
-
content = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21
|
-
children: ["Re-exports ", /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
22
|
-
className: "tsd-signature-type",
|
|
23
|
-
children: helpers.escapeMdx(reflection.name)
|
|
24
|
-
})]
|
|
25
|
-
});
|
|
26
|
-
} else if (reflection.name === target.name) {
|
|
27
|
-
content = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
28
|
-
children: ["Re-exports", ' ', /*#__PURE__*/jsxRuntime.jsx(Link__default.default, {
|
|
29
|
-
className: "tsd-signature-type",
|
|
30
|
-
to: target.permalink,
|
|
31
|
-
children: helpers.escapeMdx(target.name)
|
|
32
|
-
})]
|
|
33
|
-
});
|
|
34
|
-
} else {
|
|
35
|
-
content = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
36
|
-
children: ["Renames and re-exports", ' ', /*#__PURE__*/jsxRuntime.jsx(Link__default.default, {
|
|
37
|
-
className: "tsd-signature-type",
|
|
38
|
-
to: target.permalink,
|
|
39
|
-
children: helpers.escapeMdx(target.name)
|
|
40
|
-
})]
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44
|
-
className: "tsd-panel-content",
|
|
45
|
-
children: content
|
|
46
|
-
});
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from '@docusaurus/Link';
|
|
3
|
+
import { useReflection } from '../hooks/useReflection';
|
|
4
|
+
import { escapeMdx } from '../utils/helpers';
|
|
5
|
+
export function MemberReference({ reflection }) {
|
|
6
|
+
const target = useReflection(reflection.target);
|
|
7
|
+
let content = null;
|
|
8
|
+
if (!target) {
|
|
9
|
+
content = (_jsxs(_Fragment, { children: ["Re-exports ", _jsx("span", { className: "tsd-signature-type", children: escapeMdx(reflection.name) })] }));
|
|
10
|
+
}
|
|
11
|
+
else if (reflection.name === target.name) {
|
|
12
|
+
content = (_jsxs(_Fragment, { children: ["Re-exports", ' ', _jsx(Link, { className: "tsd-signature-type", to: target.permalink, children: escapeMdx(target.name) })] }));
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
content = (_jsxs(_Fragment, { children: ["Renames and re-exports", ' ', _jsx(Link, { className: "tsd-signature-type", to: target.permalink, children: escapeMdx(target.name) })] }));
|
|
16
|
+
}
|
|
17
|
+
return _jsx("div", { className: "tsd-panel-content", children: content });
|
|
47
18
|
}
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=MemberReference.js.map
|
|
19
|
+
//# sourceMappingURL=MemberReference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberReference.js","sources":["../../src/components/MemberReference.tsx"],"
|
|
1
|
+
{"version":3,"file":"MemberReference.js","sourceRoot":"","sources":["../../src/components/MemberReference.tsx"],"names":[],"mappings":";AAGA,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,MAAM,UAAU,eAAe,CAAC,EAAE,UAAU,EAAwB;IACnE,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAChD,IAAI,OAAO,GAAoB,IAAI,CAAC;IAEpC,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,GAAG,CACT,6CACY,eAAM,SAAS,EAAC,oBAAoB,YAAE,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,GAAQ,IACjF,CACH,CAAC;IACH,CAAC;SAAM,IAAI,UAAU,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE,CAAC;QAC5C,OAAO,GAAG,CACT,4CACY,GAAG,EACd,KAAC,IAAI,IAAC,SAAS,EAAC,oBAAoB,EAAC,EAAE,EAAE,MAAM,CAAC,SAAS,YACvD,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,GACjB,IACL,CACH,CAAC;IACH,CAAC;SAAM,CAAC;QACP,OAAO,GAAG,CACT,wDACwB,GAAG,EAC1B,KAAC,IAAI,IAAC,SAAS,EAAC,oBAAoB,EAAC,EAAE,EAAE,MAAM,CAAC,SAAS,YACvD,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,GACjB,IACL,CACH,CAAC;IACH,CAAC;IAED,OAAO,cAAK,SAAS,EAAC,mBAAmB,YAAE,OAAO,GAAO,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
import type { TSDSignatureReflection } from '../types';
|
|
3
|
+
export declare function hasSigBody(sig: TSDSignatureReflection | undefined, minimal: boolean, hideSources?: boolean): boolean | JSONOutput.ReferenceType | JSONOutput.LiteralType | JSONOutput.PredicateType | JSONOutput.OptionalType | JSONOutput.ArrayType | JSONOutput.ConditionalType | JSONOutput.IndexedAccessType | JSONOutput.InferredType | JSONOutput.IntersectionType | JSONOutput.IntrinsicType | JSONOutput.MappedType | JSONOutput.QueryType | JSONOutput.ReflectionType | JSONOutput.RestType | JSONOutput.TemplateLiteralType | JSONOutput.TupleType | JSONOutput.NamedTupleMemberType | JSONOutput.TypeOperatorType | JSONOutput.UnionType | JSONOutput.UnknownType;
|
|
4
|
+
export interface MemberSignatureBodyProps {
|
|
5
|
+
hideSources?: boolean;
|
|
6
|
+
sig: TSDSignatureReflection;
|
|
7
|
+
}
|
|
8
|
+
export declare function MemberSignatureBody({ hideSources, sig }: MemberSignatureBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=MemberSignatureBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberSignatureBody.d.ts","sourceRoot":"","sources":["../../src/components/MemberSignatureBody.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,SAAS,CAAC;AAIlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAWvD,wBAAgB,UAAU,CACzB,GAAG,EAAE,sBAAsB,GAAG,SAAS,EACvC,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,OAAe,miBAa5B;AAED,MAAM,WAAW,wBAAwB;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,EAAE,sBAAsB,CAAC;CAC5B;AAoBD,wBAAgB,mBAAmB,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,EAAE,wBAAwB,2CA+JjF"}
|