@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
|
@@ -1,134 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const react = require('react');
|
|
4
|
-
const hierarchy = require('../utils/hierarchy.js');
|
|
5
|
-
const Comment = require('./Comment.js');
|
|
6
|
-
const CommentBadges = require('./CommentBadges.js');
|
|
7
|
-
const Hierarchy = require('./Hierarchy.js');
|
|
8
|
-
const Icon = require('./Icon.js');
|
|
9
|
-
const Index = require('./Index.js');
|
|
10
|
-
const Members = require('./Members.js');
|
|
11
|
-
const MemberSignatures = require('./MemberSignatures.js');
|
|
12
|
-
const Parameter = require('./Parameter.js');
|
|
13
|
-
const Type = require('./Type.js');
|
|
14
|
-
const TypeParameters = require('./TypeParameters.js');
|
|
15
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
16
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
2
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/templates/reflection.hbs
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
className: "tsd-panel-header",
|
|
46
|
-
children: "Hierarchy"
|
|
47
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
48
|
-
className: "tsd-panel-content",
|
|
49
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Hierarchy.Hierarchy, {
|
|
50
|
-
tree: hierarchy$1
|
|
51
|
-
})
|
|
52
|
-
})]
|
|
53
|
-
}), 'implementedTypes' in reflection && reflection.implementedTypes && reflection.implementedTypes.length > 0 && /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
54
|
-
className: "tsd-panel",
|
|
55
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
56
|
-
className: "tsd-panel-header",
|
|
57
|
-
children: "Implements"
|
|
58
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
59
|
-
className: "tsd-panel-content",
|
|
60
|
-
children: /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
61
|
-
className: "tsd-hierarchy",
|
|
62
|
-
children: reflection.implementedTypes.map((type, i) => /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
63
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
64
|
-
type: type
|
|
65
|
-
})
|
|
66
|
-
}, type.type + String(i)))
|
|
67
|
-
})
|
|
68
|
-
})]
|
|
69
|
-
}), 'implementedBy' in reflection && reflection.implementedBy && reflection.implementedBy.length > 0 && /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
70
|
-
className: "tsd-panel",
|
|
71
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
72
|
-
className: "tsd-panel-header",
|
|
73
|
-
children: "Implemented by"
|
|
74
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
75
|
-
className: "tsd-panel-content",
|
|
76
|
-
children: /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
77
|
-
className: "tsd-hierarchy",
|
|
78
|
-
children: reflection.implementedBy.map((type, i) => /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
79
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
80
|
-
type: type
|
|
81
|
-
})
|
|
82
|
-
}, type.name + String(i)))
|
|
83
|
-
})
|
|
84
|
-
})]
|
|
85
|
-
}), 'signatures' in reflection && reflection.signatures && reflection.signatures.length > 0 && /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
86
|
-
className: "tsd-panel",
|
|
87
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
88
|
-
className: "tsd-panel-header tsd-before-signature",
|
|
89
|
-
children: "Callable"
|
|
90
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
91
|
-
className: "tsd-panel-content",
|
|
92
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatures.MemberSignatures, {
|
|
93
|
-
sigs: reflection.signatures
|
|
94
|
-
})
|
|
95
|
-
})]
|
|
96
|
-
}), 'indexSignature' in reflection && reflection.indexSignature && /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
97
|
-
className: "tsd-panel",
|
|
98
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
99
|
-
className: "tsd-panel-header tsd-before-signature",
|
|
100
|
-
children: "Indexable"
|
|
101
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
102
|
-
className: "tsd-panel-content",
|
|
103
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
104
|
-
className: "tsd-signature tsd-kind-icon",
|
|
105
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
106
|
-
reflection: reflection.indexSignature
|
|
107
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
108
|
-
className: "tsd-signature-symbol",
|
|
109
|
-
children: "["
|
|
110
|
-
}), reflection.indexSignature.parameters?.map(param => /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
111
|
-
children: [param.name, ': ', /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
112
|
-
type: param.type
|
|
113
|
-
})]
|
|
114
|
-
}, param.id)), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
115
|
-
className: "tsd-signature-symbol",
|
|
116
|
-
children: "]: "
|
|
117
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
118
|
-
type: reflection.indexSignature.type
|
|
119
|
-
})]
|
|
120
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
121
|
-
comment: reflection.indexSignature.comment
|
|
122
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Parameter.Parameter, {
|
|
123
|
-
param: Type.extractDeclarationFromType(reflection.indexSignature.type)
|
|
124
|
-
})]
|
|
125
|
-
})]
|
|
126
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Index.Index, {
|
|
127
|
-
reflection: reflection
|
|
128
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Members.Members, {
|
|
129
|
-
reflection: reflection
|
|
130
|
-
})]
|
|
131
|
-
});
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { createHierarchy } from '../utils/hierarchy';
|
|
5
|
+
import { Comment, hasComment } from './Comment';
|
|
6
|
+
import { CommentBadges, isCommentWithModifiers } from './CommentBadges';
|
|
7
|
+
import { Hierarchy } from './Hierarchy';
|
|
8
|
+
import { Icon } from './Icon';
|
|
9
|
+
import { Index } from './Index';
|
|
10
|
+
import { Members } from './Members';
|
|
11
|
+
import { MemberSignatures } from './MemberSignatures';
|
|
12
|
+
import { Parameter } from './Parameter';
|
|
13
|
+
import { extractDeclarationFromType, Type } from './Type';
|
|
14
|
+
import { TypeParameters } from './TypeParameters';
|
|
15
|
+
export function Reflection({ reflection }) {
|
|
16
|
+
var _a;
|
|
17
|
+
const hierarchy = useMemo(() => createHierarchy(reflection), [reflection]);
|
|
18
|
+
return (_jsxs(_Fragment, { children: [isCommentWithModifiers(reflection.comment) && _jsx(CommentBadges, { comment: reflection.comment }), hasComment(reflection.comment) && _jsx(Comment, { root: true, comment: reflection.comment }), 'typeParameter' in reflection &&
|
|
19
|
+
reflection.typeParameter &&
|
|
20
|
+
reflection.typeParameter.length > 0 &&
|
|
21
|
+
// Class
|
|
22
|
+
reflection.kind !== 128 && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header", children: "Type parameters" }), _jsx("div", { className: "tsd-panel-content", children: _jsx(TypeParameters, { params: reflection.typeParameter }) })] })), (('extendedBy' in reflection && reflection.extendedBy && reflection.extendedBy.length > 0) ||
|
|
23
|
+
('extendedTypes' in reflection &&
|
|
24
|
+
reflection.extendedTypes &&
|
|
25
|
+
reflection.extendedTypes.length > 0)) && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header", children: "Hierarchy" }), _jsx("div", { className: "tsd-panel-content", children: _jsx(Hierarchy, { tree: hierarchy }) })] })), 'implementedTypes' in reflection &&
|
|
26
|
+
reflection.implementedTypes &&
|
|
27
|
+
reflection.implementedTypes.length > 0 && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header", children: "Implements" }), _jsx("div", { className: "tsd-panel-content", children: _jsx("ul", { className: "tsd-hierarchy", children: reflection.implementedTypes.map((type, i) => (_jsx("li", { children: _jsx(Type, { type: type }) }, type.type + String(i)))) }) })] })), 'implementedBy' in reflection &&
|
|
28
|
+
reflection.implementedBy &&
|
|
29
|
+
reflection.implementedBy.length > 0 && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header", children: "Implemented by" }), _jsx("div", { className: "tsd-panel-content", children: _jsx("ul", { className: "tsd-hierarchy", children: reflection.implementedBy.map((type, i) => (_jsx("li", { children: _jsx(Type, { type: type }) }, type.name + String(i)))) }) })] })), 'signatures' in reflection && reflection.signatures && reflection.signatures.length > 0 && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header tsd-before-signature", children: "Callable" }), _jsx("div", { className: "tsd-panel-content", children: _jsx(MemberSignatures, { sigs: reflection.signatures }) })] })), 'indexSignature' in reflection && reflection.indexSignature && (_jsxs("section", { className: "tsd-panel", children: [_jsx("h3", { className: "tsd-panel-header tsd-before-signature", children: "Indexable" }), _jsxs("div", { className: "tsd-panel-content", children: [_jsxs("div", { className: "tsd-signature tsd-kind-icon", children: [_jsx(Icon, { reflection: reflection.indexSignature }), _jsx("span", { className: "tsd-signature-symbol", children: "[" }), (_a = reflection.indexSignature.parameters) === null || _a === void 0 ? void 0 : _a.map((param) => (_jsxs("span", { children: [param.name, ': ', _jsx(Type, { type: param.type })] }, param.id))), _jsx("span", { className: "tsd-signature-symbol", children: "]: " }), _jsx(Type, { type: reflection.indexSignature.type })] }), _jsx(Comment, { comment: reflection.indexSignature.comment }), _jsx(Parameter, { param: extractDeclarationFromType(reflection.indexSignature.type) })] })] })), _jsx(Index, { reflection: reflection }), _jsx(Members, { reflection: reflection })] }));
|
|
132
30
|
}
|
|
133
|
-
|
|
134
|
-
//# sourceMappingURL=Reflection.js.map
|
|
31
|
+
//# sourceMappingURL=Reflection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reflection.js","sources":["../../src/components/Reflection.tsx"],"
|
|
1
|
+
{"version":3,"file":"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AI,IAAC,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,IAAI,GAAI,IACzC,EAEN,KAAC,OAAO,IAAC,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,OAAO,GAAI,EAEvD,KAAC,SAAS,IAAC,KAAK,EAAE,0BAA0B,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,GAAI,IAC3E,IACG,CACV,EAED,KAAC,KAAK,IAAC,UAAU,EAAE,UAAsC,GAAI,EAE7D,KAAC,OAAO,IAAC,UAAU,EAAE,UAAsC,GAAI,IAC7D,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
import type { DocusaurusConfig } from '@docusaurus/types';
|
|
3
|
+
export interface SourceLinkProps {
|
|
4
|
+
sources?: JSONOutput.SourceReference[];
|
|
5
|
+
}
|
|
6
|
+
export declare function resolveGithubUrl(source: JSONOutput.SourceReference & {
|
|
7
|
+
gitRevision?: string;
|
|
8
|
+
}, siteConfig: DocusaurusConfig, gitRefName: string): string;
|
|
9
|
+
export declare function SourceLink({ sources }: SourceLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=SourceLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceLink.d.ts","sourceRoot":"","sources":["../../src/components/SourceLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAS1D,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC;CACvC;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAExJ;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAY,EAAE,EAAE,eAAe,2CAuB3D"}
|
|
@@ -1,40 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const useGitRefName = require('../hooks/useGitRefName.js');
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const _interopDefault = e => e && e.__esModule ? e : {
|
|
7
|
-
default: e
|
|
8
|
-
};
|
|
9
|
-
const useDocusaurusContext__default = /*#__PURE__*/_interopDefault(useDocusaurusContext);
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
3
|
+
import { useGitRefName } from '../hooks/useGitRefName';
|
|
10
4
|
function replaceWithSrc(url) {
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
// Always link the source file
|
|
6
|
+
return url.replace(/\/(dts|dist|lib|build|es|esm|cjs|mjs)\//, '/src/');
|
|
13
7
|
}
|
|
14
|
-
function resolveGithubUrl(source, siteConfig, gitRefName) {
|
|
15
|
-
|
|
8
|
+
export function resolveGithubUrl(source, siteConfig, gitRefName) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
return (_a = source.url) !== null && _a !== void 0 ? _a : `https://${siteConfig.githubHost}${siteConfig.githubPort ? `:${siteConfig.githubPort}` : ''}/${siteConfig.organizationName}/${siteConfig.projectName}/blob/${(_b = source.gitRevision) !== null && _b !== void 0 ? _b : gitRefName}/${replaceWithSrc(source.fileName)}#L${source.line}`;
|
|
16
11
|
}
|
|
17
|
-
function SourceLink({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
27
|
-
children: sources.map(source => /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
28
|
-
className: "tsd-anchor",
|
|
29
|
-
href: resolveGithubUrl(source, siteConfig, gitRefName),
|
|
30
|
-
rel: "noreferrer",
|
|
31
|
-
target: "_blank",
|
|
32
|
-
children: /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
33
|
-
className: "codicon codicon-file-code"
|
|
34
|
-
})
|
|
35
|
-
}, source.fileName))
|
|
36
|
-
});
|
|
12
|
+
export function SourceLink({ sources = [] }) {
|
|
13
|
+
const { siteConfig } = useDocusaurusContext();
|
|
14
|
+
const gitRefName = useGitRefName();
|
|
15
|
+
if (sources.length === 0) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (_jsx(_Fragment, { children: sources.map((source) => (_jsx("a", { className: "tsd-anchor", href: resolveGithubUrl(source, siteConfig, gitRefName), rel: "noreferrer", target: "_blank", children: _jsx("i", { className: "codicon codicon-file-code" }) }, source.fileName))) }));
|
|
37
19
|
}
|
|
38
|
-
|
|
39
|
-
exports.resolveGithubUrl = resolveGithubUrl;
|
|
40
|
-
//# sourceMappingURL=SourceLink.js.map
|
|
20
|
+
//# sourceMappingURL=SourceLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceLink.js","sources":["../../src/components/SourceLink.tsx"],"
|
|
1
|
+
{"version":3,"file":"SourceLink.js","sourceRoot":"","sources":["../../src/components/SourceLink.tsx"],"names":[],"mappings":";AAEA,OAAO,oBAAoB,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,SAAS,cAAc,CAAC,GAAW;IAClC,8BAA8B;IAC9B,OAAO,GAAG,CAAC,OAAO,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAC;AACxE,CAAC;AAMD,MAAM,UAAU,gBAAgB,CAAC,MAA6D,EAAE,UAA4B,EAAE,UAAkB;;IAC/I,OAAO,MAAA,MAAM,CAAC,GAAG,mCAAI,WAAW,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,UAAU,CAAC,gBAAgB,IAAI,UAAU,CAAC,WAAW,SAAS,MAAA,MAAM,CAAC,WAAW,mCAAI,UAAU,IAAI,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,MAAM,CAAC,IAAI,EAAE,CAAC;AACzQ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAE,OAAO,GAAG,EAAE,EAAmB;IAC3D,MAAM,EAAE,UAAU,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC9C,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,4BACE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxB,YAEC,SAAS,EAAC,YAAY,EACtB,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE,UAAmB,EAAE,UAAU,CAAC,EAC/D,GAAG,EAAC,YAAY,EAChB,MAAM,EAAC,QAAQ,YAEf,YAAG,SAAS,EAAC,2BAA2B,GAAG,IANtC,MAAM,CAAC,QAAQ,CAOjB,CACJ,CAAC,GACA,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
import type { TSDDeclarationReflection } from '../types';
|
|
3
|
+
export declare function extractDeclarationFromType(type?: JSONOutput.Reflection | JSONOutput.SomeType): TSDDeclarationReflection | undefined;
|
|
4
|
+
export interface TypeProps {
|
|
5
|
+
needsParens?: boolean;
|
|
6
|
+
type?: {
|
|
7
|
+
type: string;
|
|
8
|
+
value?: unknown;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function Type({ needsParens, type: base }: TypeProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../src/components/Type.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGzD,wBAAgB,0BAA0B,CACzC,IAAI,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,QAAQ,GAChD,wBAAwB,GAAG,SAAS,CAMtC;AAgBD,MAAM,WAAW,SAAS;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,wBAAgB,IAAI,CAAC,EAAE,WAAmB,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,SAAS,2CA4WlE"}
|