@apify/docusaurus-plugin-typedoc-api 3.0.0 → 4.2.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 +27 -5
- package/lib/components/AnchorLink.js +15 -10
- package/lib/components/AnchorLink.js.map +1 -1
- package/lib/components/ApiChangelog.js +9 -11
- package/lib/components/ApiChangelog.js.map +1 -1
- package/lib/components/ApiDataContext.js +2 -2
- package/lib/components/ApiIndex.js +55 -37
- package/lib/components/ApiIndex.js.map +1 -1
- package/lib/components/ApiItem.js +33 -29
- package/lib/components/ApiItem.js.map +1 -1
- package/lib/components/ApiItemLayout.js +49 -27
- package/lib/components/ApiItemLayout.js.map +1 -1
- package/lib/components/ApiPage.js +18 -10
- package/lib/components/ApiPage.js.map +1 -1
- package/lib/components/Breadcrumb.js +27 -14
- package/lib/components/Breadcrumb.js.map +1 -1
- package/lib/components/Comment.js +24 -18
- package/lib/components/Comment.js.map +1 -1
- package/lib/components/CommentBadges.js +8 -11
- package/lib/components/CommentBadges.js.map +1 -1
- package/lib/components/DefaultValue.js +20 -20
- package/lib/components/DefaultValue.js.map +1 -1
- package/lib/components/Flags.js +9 -11
- package/lib/components/Flags.js.map +1 -1
- package/lib/components/Footer.js +11 -12
- package/lib/components/Footer.js.map +1 -1
- package/lib/components/Hierarchy.js +15 -16
- package/lib/components/Hierarchy.js.map +1 -1
- package/lib/components/Icon.js +2 -6
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Index.js +84 -62
- package/lib/components/Index.js.map +1 -1
- package/lib/components/Markdown.js +80 -66
- package/lib/components/Markdown.js.map +1 -1
- package/lib/components/Member.js +28 -28
- package/lib/components/Member.js.map +1 -1
- package/lib/components/MemberDeclaration.js +51 -42
- package/lib/components/MemberDeclaration.js.map +1 -1
- package/lib/components/MemberGetterSetter.js +50 -40
- package/lib/components/MemberGetterSetter.js.map +1 -1
- package/lib/components/MemberReference.js +27 -16
- package/lib/components/MemberReference.js.map +1 -1
- package/lib/components/MemberSignatureBody.js +57 -45
- package/lib/components/MemberSignatureBody.js.map +1 -1
- package/lib/components/MemberSignatureTitle.js +48 -27
- package/lib/components/MemberSignatureTitle.js.map +1 -1
- package/lib/components/MemberSignatures.js +46 -38
- package/lib/components/MemberSignatures.js.map +1 -1
- package/lib/components/MemberSources.js +18 -15
- package/lib/components/MemberSources.js.map +1 -1
- package/lib/components/Members.js +32 -31
- package/lib/components/Members.js.map +1 -1
- package/lib/components/MembersGroup.js +24 -22
- package/lib/components/MembersGroup.js.map +1 -1
- package/lib/components/Parameter.js +139 -109
- package/lib/components/Parameter.js.map +1 -1
- package/lib/components/Reflection.js +113 -90
- package/lib/components/Reflection.js.map +1 -1
- package/lib/components/SourceLink.js +12 -13
- package/lib/components/SourceLink.js.map +1 -1
- package/lib/components/Type.js +320 -206
- package/lib/components/Type.js.map +1 -1
- package/lib/components/TypeAndParent.js +11 -10
- package/lib/components/TypeAndParent.js.map +1 -1
- package/lib/components/TypeParameters.js +23 -20
- package/lib/components/TypeParameters.js.map +1 -1
- package/lib/components/TypeParametersGeneric.js +17 -16
- package/lib/components/TypeParametersGeneric.js.map +1 -1
- package/lib/components/VersionBanner.js +21 -9
- package/lib/components/VersionBanner.js.map +1 -1
- package/lib/hooks/useBreadcrumbs.js +2 -2
- package/lib/hooks/useGitRefName.js +2 -2
- package/lib/hooks/useMinimalLayout.js +2 -2
- package/lib/hooks/useReflection.js +10 -6
- package/lib/hooks/useReflection.js.map +1 -1
- package/lib/hooks/useReflectionMap.js +2 -2
- package/lib/index.js +62 -25
- package/lib/index.js.map +1 -1
- package/lib/plugin/data.js +61 -18
- package/lib/plugin/data.js.map +1 -1
- package/lib/plugin/version.js +5 -4
- package/lib/plugin/version.js.map +1 -1
- package/lib/utils/helpers.js +8 -0
- package/lib/utils/helpers.js.map +1 -0
- package/lib/utils/hierarchy.js +6 -3
- package/lib/utils/hierarchy.js.map +1 -1
- package/lib/utils/icons.js +2 -5
- package/lib/utils/icons.js.map +1 -1
- package/lib/utils/markdown.js +5 -7
- package/lib/utils/markdown.js.map +1 -1
- package/package.json +17 -14
- package/src/components/AnchorLink.tsx +6 -3
- package/src/components/ApiChangelog.tsx +0 -1
- package/src/components/ApiDataContext.ts +2 -2
- package/src/components/ApiIndex.tsx +1 -1
- package/src/components/ApiItem.tsx +18 -20
- package/src/components/ApiItemLayout.tsx +1 -2
- package/src/components/ApiPage.tsx +18 -13
- package/src/components/Breadcrumb.tsx +2 -3
- package/src/components/Comment.tsx +3 -4
- package/src/components/CommentBadges.tsx +0 -1
- package/src/components/DefaultValue.tsx +0 -1
- package/src/components/Flags.tsx +1 -1
- package/src/components/Footer.tsx +0 -2
- package/src/components/Hierarchy.tsx +0 -1
- package/src/components/Icon.tsx +2 -3
- package/src/components/Index.tsx +14 -19
- package/src/components/Markdown.tsx +54 -25
- package/src/components/Member.tsx +7 -6
- package/src/components/MemberDeclaration.tsx +7 -7
- package/src/components/MemberGetterSetter.tsx +6 -6
- package/src/components/MemberReference.tsx +4 -4
- package/src/components/MemberSignatureBody.tsx +5 -5
- package/src/components/MemberSignatureTitle.tsx +11 -9
- package/src/components/MemberSignatures.tsx +5 -5
- package/src/components/MemberSources.tsx +3 -5
- package/src/components/Members.tsx +3 -4
- package/src/components/MembersGroup.tsx +1 -2
- package/src/components/Parameter.tsx +7 -12
- package/src/components/README.md +1 -1
- package/src/components/Reflection.tsx +7 -10
- package/src/components/SourceLink.tsx +0 -2
- package/src/components/Type.tsx +34 -22
- package/src/components/TypeAndParent.tsx +0 -1
- package/src/components/TypeParameters.tsx +0 -1
- package/src/components/TypeParametersGeneric.tsx +3 -3
- package/src/components/VersionBanner.tsx +1 -1
- package/src/hooks/useReflection.ts +11 -4
- package/src/hooks/useReflectionMap.ts +2 -2
- package/src/index.ts +92 -39
- package/src/plugin/data.ts +123 -54
- package/src/plugin/sidebar.ts +4 -3
- package/src/types.ts +24 -33
- package/src/utils/helpers.ts +4 -0
- package/src/utils/hierarchy.ts +11 -7
- package/src/utils/icons.ts +2 -3
- package/src/utils/markdown.ts +10 -7
- package/src/utils/visibility.ts +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const React = require('react');
|
|
4
3
|
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
5
4
|
const useReflection = require('../hooks/useReflection.js');
|
|
5
|
+
const helpers = require('../utils/helpers.js');
|
|
6
6
|
const Comment = require('./Comment.js');
|
|
7
7
|
const DefaultValue = require('./DefaultValue.js');
|
|
8
8
|
const Icon = require('./Icon.js');
|
|
@@ -11,54 +11,63 @@ const Parameter = require('./Parameter.js');
|
|
|
11
11
|
const Type = require('./Type.js');
|
|
12
12
|
const TypeParameters = require('./TypeParameters.js');
|
|
13
13
|
const TypeParametersGeneric = require('./TypeParametersGeneric.js');
|
|
14
|
-
const
|
|
15
|
-
default: e
|
|
16
|
-
};
|
|
17
|
-
const React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
18
15
|
|
|
19
16
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.declaration.hbs
|
|
17
|
+
|
|
20
18
|
function MemberDeclaration({
|
|
21
19
|
id
|
|
22
20
|
}) {
|
|
23
|
-
const reflection = useReflection.
|
|
21
|
+
const reflection = useReflection.useRequiredReflection(id);
|
|
24
22
|
const minimal = useMinimalLayout.useMinimalLayout();
|
|
25
23
|
const showTypes = reflection.typeParameters && reflection.typeParameters.length > 0;
|
|
26
|
-
const showDeclaration = !minimal && reflection.type
|
|
27
|
-
return /*#__PURE__*/
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
24
|
+
const showDeclaration = !minimal && Type.extractDeclarationFromType(reflection.type);
|
|
25
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
26
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
27
|
+
className: "tsd-panel-content",
|
|
28
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
29
|
+
className: "tsd-signature tsd-kind-icon",
|
|
30
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
31
|
+
reflection: reflection
|
|
32
|
+
}), helpers.escapeMdx(reflection.name), /*#__PURE__*/jsxRuntime.jsx(TypeParametersGeneric.TypeParametersGeneric, {
|
|
33
|
+
params: reflection.typeParameters
|
|
34
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
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
|
+
});
|
|
62
71
|
}
|
|
63
72
|
exports.MemberDeclaration = MemberDeclaration;
|
|
64
73
|
//# sourceMappingURL=MemberDeclaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberDeclaration.js","sources":["../../src/components/MemberDeclaration.tsx"],"sourcesContent":null,"names":["
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.js","sources":["../../src/components/MemberDeclaration.tsx"],"sourcesContent":null,"names":["useRequiredReflection","useMinimalLayout","extractDeclarationFromType","_jsxs","_Fragment","_jsx","Icon","escapeMdx","TypeParametersGeneric","Type","DefaultValue","MemberSources","Comment","hasComment","TypeParameters","Parameter"],"mappings":";;;;;;;;;;;;;;;AAAA;AACA;AAeO,SAAS,iBAAiB,CAAC;AAClC,EAAE,EAAE;AACJ,CAAC,EAAE;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|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const React = require('react');
|
|
4
3
|
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
4
|
+
const helpers = require('../utils/helpers.js');
|
|
5
5
|
const Icon = require('./Icon.js');
|
|
6
6
|
const MemberSignatureBody = require('./MemberSignatureBody.js');
|
|
7
7
|
const MemberSignatureTitle = require('./MemberSignatureTitle.js');
|
|
8
|
-
const
|
|
9
|
-
default: e
|
|
10
|
-
};
|
|
11
|
-
const React__default = /*#__PURE__*/_interopDefault(React);
|
|
8
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
12
9
|
|
|
13
10
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.getterSetter.hbs
|
|
11
|
+
|
|
14
12
|
// eslint-disable-next-line complexity
|
|
15
13
|
function MemberGetterSetter({
|
|
16
14
|
inPanel,
|
|
@@ -21,41 +19,53 @@ function MemberGetterSetter({
|
|
|
21
19
|
if (!getter && !setter) {
|
|
22
20
|
return null;
|
|
23
21
|
}
|
|
24
|
-
return /*#__PURE__*/
|
|
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
|
-
|
|
22
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
23
|
+
children: [(getter || setter) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
24
|
+
className: inPanel ? 'tsd-panel-content' : '',
|
|
25
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
26
|
+
className: "tsd-signatures",
|
|
27
|
+
children: [getter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
28
|
+
className: "tsd-signature tsd-kind-icon",
|
|
29
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
30
|
+
reflection: getter
|
|
31
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
32
|
+
className: "tsd-signature-symbol",
|
|
33
|
+
children: "get "
|
|
34
|
+
}), helpers.escapeMdx(getter.name), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
|
|
35
|
+
hideName: true,
|
|
36
|
+
sig: getter
|
|
37
|
+
})]
|
|
38
|
+
}), setter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
39
|
+
className: "tsd-signature tsd-kind-icon",
|
|
40
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
41
|
+
reflection: setter
|
|
42
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
43
|
+
className: "tsd-signature-symbol",
|
|
44
|
+
children: "set "
|
|
45
|
+
}), helpers.escapeMdx(setter.name), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
|
|
46
|
+
hideName: true,
|
|
47
|
+
sig: setter
|
|
48
|
+
})]
|
|
49
|
+
})]
|
|
50
|
+
})
|
|
51
|
+
}), (MemberSignatureBody.hasSigBody(getter, minimal) || MemberSignatureBody.hasSigBody(setter, minimal)) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
52
|
+
className: inPanel ? 'tsd-panel-content' : '',
|
|
53
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
54
|
+
className: "tsd-descriptions",
|
|
55
|
+
children: [getter && /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
56
|
+
className: "tsd-description",
|
|
57
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatureBody.MemberSignatureBody, {
|
|
58
|
+
sig: getter
|
|
59
|
+
})
|
|
60
|
+
}), setter && /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
61
|
+
className: "tsd-description",
|
|
62
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatureBody.MemberSignatureBody, {
|
|
63
|
+
sig: setter
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
59
69
|
}
|
|
60
70
|
exports.MemberGetterSetter = MemberGetterSetter;
|
|
61
71
|
//# sourceMappingURL=MemberGetterSetter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberGetterSetter.js","sources":["../../src/components/MemberGetterSetter.tsx"],"sourcesContent":null,"names":["useMinimalLayout","
|
|
1
|
+
{"version":3,"file":"MemberGetterSetter.js","sources":["../../src/components/MemberGetterSetter.tsx"],"sourcesContent":null,"names":["useMinimalLayout","_jsxs","_Fragment","_jsx","Icon","escapeMdx","MemberSignatureTitle","hasSigBody","MemberSignatureBody"],"mappings":";;;;;;;;;AAAA;AACA;AASA;AACO,SAAS,kBAAkB,CAAC;AACnC,EAAE,OAAO;AACT,EAAE,MAAM;AACR,EAAE,MAAM;AACR,CAAC,EAAE;AACH,EAAE,MAAM,OAAO,GAAGA,iCAAgB,EAAE,CAAC;AACrC,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;AAC1B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,oBAAoBC,eAAK,CAACC,mBAAS,EAAE;AACvC,IAAI,QAAQ,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,kBAAkBC,cAAI,CAAC,KAAK,EAAE;AAC9D,MAAM,SAAS,EAAE,OAAO,GAAG,mBAAmB,GAAG,EAAE;AACnD,MAAM,QAAQ,eAAeF,eAAK,CAAC,IAAI,EAAE;AACzC,QAAQ,SAAS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AE;AACnD,MAAM,QAAQ,eAAeF,eAAK,CAAC,IAAI,EAAE;AACzC,QAAQ,SAAS,EAAE,kBAAkB;AACrC,QAAQ,QAAQ,EAAE,CAAC,MAAM,iBAAiBE,cAAI,CAAC,IAAI,EAAE;AACrD,UAAU,SAAS,EAAE,iBAAiB;AACtC,UAAU,QAAQ,eAAeA,cAAI,CAACK,uCAAmB,EAAE;AAC3D,YAAY,GAAG,EAAE,MAAM;AACvB,WAAW,CAAC;AACZ,SAAS,CAAC,EAAE,MAAM,iBAAiBL,cAAI,CAAC,IAAI,EAAE;AAC9C,UAAU,SAAS,EAAE,iBAAiB;AACtC,UAAU,QAAQ,eAAeA,cAAI,CAACK,uCAAmB,EAAE;AAC3D,YAAY,GAAG,EAAE,MAAM;AACvB,WAAW,CAAC;AACZ,SAAS,CAAC,CAAC;AACX,OAAO,CAAC;AACR,KAAK,CAAC,CAAC;AACP,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -1,38 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const React = require('react');
|
|
4
3
|
const Link = require('@docusaurus/Link');
|
|
5
4
|
const useReflection = require('../hooks/useReflection.js');
|
|
5
|
+
const helpers = require('../utils/helpers.js');
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
7
|
const _interopDefault = e => e && e.__esModule ? e : {
|
|
7
8
|
default: e
|
|
8
9
|
};
|
|
9
|
-
const React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
10
|
const Link__default = /*#__PURE__*/_interopDefault(Link);
|
|
11
11
|
|
|
12
12
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.reference.hbs
|
|
13
|
+
|
|
13
14
|
function MemberReference({
|
|
14
15
|
reflection
|
|
15
16
|
}) {
|
|
16
17
|
const target = useReflection.useReflection(reflection.target);
|
|
17
18
|
let content = null;
|
|
18
19
|
if (!target) {
|
|
19
|
-
content = /*#__PURE__*/
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
});
|
|
22
26
|
} else if (reflection.name === target.name) {
|
|
23
|
-
content = /*#__PURE__*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
});
|
|
27
34
|
} else {
|
|
28
|
-
content = /*#__PURE__*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
});
|
|
32
42
|
}
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
-
className: "tsd-panel-content"
|
|
35
|
-
|
|
43
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44
|
+
className: "tsd-panel-content",
|
|
45
|
+
children: content
|
|
46
|
+
});
|
|
36
47
|
}
|
|
37
48
|
exports.MemberReference = MemberReference;
|
|
38
49
|
//# sourceMappingURL=MemberReference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberReference.js","sources":["../../src/components/MemberReference.tsx"],"sourcesContent":null,"names":["useReflection","
|
|
1
|
+
{"version":3,"file":"MemberReference.js","sources":["../../src/components/MemberReference.tsx"],"sourcesContent":null,"names":["useReflection","_jsxs","_Fragment","_jsx","escapeMdx","Link"],"mappings":";;;;;;;;;;;AAAA;AACA;AAOO,SAAS,eAAe,CAAC;AAChC,EAAE,UAAU;AACZ,CAAC,EAAE;AACH,EAAE,MAAM,MAAM,GAAGA,2BAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAClD,EAAE,IAAI,OAAO,GAAG,IAAI,CAAC;AACrB,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,OAAO,gBAAgBC,eAAK,CAACC,mBAAS,EAAE;AAC5C,MAAM,QAAQ,EAAE,CAAC,aAAa,eAAeC,cAAI,CAAC,MAAM,EAAE;AAC1D,QAAQ,SAAS,EAAE,oBAAoB;AACvC,QAAQ,QAAQ,EAAEC,iBAAS,CAAC,UAAU,CAAC,IAAI,CAAC;AAC5C,OAAO,CAAC,CAAC;AACT,KAAK,CAAC,CAAC;AACP,GAAG,MAAM,IAAI,UAAU,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE;AAC9C,IAAI,OAAO,gBAAgBH,eAAK,CAACC,mBAAS,EAAE;AAC5C,MAAM,QAAQ,EAAE,CAAC,YAAY,EAAE,GAAG,eAAeC,cAAI,CAACE,qBAAI,EAAE;AAC5D,QAAQ,SAAS,EAAE,oBAAoB;AACvC,QAAQ,EAAE,EAAE,MAAM,CAAC,SAAS;AAC5B,QAAQ,QAAQ,EAAED,iBAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AACxC,OAAO,CAAC,CAAC;AACT,KAAK,CAAC,CAAC;AACP,GAAG,MAAM;AACT,IAAI,OAAO,gBAAgBH,eAAK,CAACC,mBAAS,EAAE;AAC5C,MAAM,QAAQ,EAAE,CAAC,wBAAwB,EAAE,GAAG,eAAeC,cAAI,CAACE,qBAAI,EAAE;AACxE,QAAQ,SAAS,EAAE,oBAAoB;AACvC,QAAQ,EAAE,EAAE,MAAM,CAAC,SAAS;AAC5B,QAAQ,QAAQ,EAAED,iBAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AACxC,OAAO,CAAC,CAAC;AACT,KAAK,CAAC,CAAC;AACP,GAAG;AACH,EAAE,oBAAoBD,cAAI,CAAC,KAAK,EAAE;AAClC,IAAI,SAAS,EAAE,mBAAmB;AAClC,IAAI,QAAQ,EAAE,OAAO;AACrB,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const React = require('react');
|
|
4
3
|
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
5
4
|
const Comment = require('./Comment.js');
|
|
6
5
|
const CommentBadges = require('./CommentBadges.js');
|
|
@@ -10,12 +9,10 @@ const MemberSources = require('./MemberSources.js');
|
|
|
10
9
|
const Parameter = require('./Parameter.js');
|
|
11
10
|
const Type = require('./Type.js');
|
|
12
11
|
const TypeParameters = require('./TypeParameters.js');
|
|
13
|
-
const
|
|
14
|
-
default: e
|
|
15
|
-
};
|
|
16
|
-
const React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
17
13
|
|
|
18
14
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.signature.body.hbs
|
|
15
|
+
|
|
19
16
|
function hasSigBody(sig, minimal, hideSources = false) {
|
|
20
17
|
if (!sig) {
|
|
21
18
|
return false;
|
|
@@ -45,46 +42,61 @@ function MemberSignatureBody({
|
|
|
45
42
|
const showTypes = sig.typeParameter && sig.typeParameter.length > 0;
|
|
46
43
|
const showParams = !minimal && sig.parameters && sig.parameters.length > 0;
|
|
47
44
|
const showReturn = !minimal && sig.type;
|
|
48
|
-
return /*#__PURE__*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
45
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
46
|
+
children: [!hideSources && /*#__PURE__*/jsxRuntime.jsx(MemberSources.MemberSources, {
|
|
47
|
+
reflection: sig
|
|
48
|
+
}), CommentBadges.isCommentWithModifiers(sig.comment) && /*#__PURE__*/jsxRuntime.jsx(CommentBadges.CommentBadges, {
|
|
49
|
+
comment: sig.comment
|
|
50
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
51
|
+
comment: sig.comment,
|
|
52
|
+
hideTags: HIDE_TAGS
|
|
53
|
+
}), Comment.hasComment(sig.comment) && (showTypes || showParams || showReturn) && /*#__PURE__*/jsxRuntime.jsx("hr", {
|
|
54
|
+
className: "tsd-divider"
|
|
55
|
+
}), showTypes && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
56
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
57
|
+
className: "tsd-type-parameters-title",
|
|
58
|
+
children: "Type parameters"
|
|
59
|
+
}), /*#__PURE__*/jsxRuntime.jsx(TypeParameters.TypeParameters, {
|
|
60
|
+
params: sig.typeParameter
|
|
61
|
+
})]
|
|
62
|
+
}), showParams && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
63
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
64
|
+
className: "tsd-parameters-title",
|
|
65
|
+
children: "Parameters"
|
|
66
|
+
}), /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
67
|
+
className: "tsd-parameters",
|
|
68
|
+
children: sig.parameters?.map(param => /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
69
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
70
|
+
children: [param.flags?.isRest && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
71
|
+
className: "tsd-signature-symbol",
|
|
72
|
+
children: "..."
|
|
73
|
+
}), `${param.name}: `, /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
74
|
+
type: param.type
|
|
75
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DefaultValue.DefaultValue, {
|
|
76
|
+
comment: param.comment,
|
|
77
|
+
type: param.type,
|
|
78
|
+
value: param.defaultValue
|
|
79
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Flags.Flags, {
|
|
80
|
+
flags: param.flags
|
|
81
|
+
})]
|
|
82
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
83
|
+
comment: param.comment
|
|
84
|
+
})]
|
|
85
|
+
}, param.id))
|
|
86
|
+
})]
|
|
87
|
+
}), showReturn && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
88
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("h4", {
|
|
89
|
+
className: "tsd-returns-title",
|
|
90
|
+
children: ["Returns ", /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
91
|
+
type: sig.type
|
|
92
|
+
})]
|
|
93
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
94
|
+
comment: intoReturnComment(sig.comment)
|
|
95
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Parameter.Parameter, {
|
|
96
|
+
param: Type.extractDeclarationFromType(sig.type)
|
|
97
|
+
})]
|
|
98
|
+
})]
|
|
99
|
+
});
|
|
88
100
|
}
|
|
89
101
|
exports.MemberSignatureBody = MemberSignatureBody;
|
|
90
102
|
exports.hasSigBody = hasSigBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberSignatureBody.js","sources":["../../src/components/MemberSignatureBody.tsx"],"sourcesContent":null,"names":["hasSources","hasComment","useMinimalLayout","
|
|
1
|
+
{"version":3,"file":"MemberSignatureBody.js","sources":["../../src/components/MemberSignatureBody.tsx"],"sourcesContent":null,"names":["hasSources","hasComment","useMinimalLayout","_jsxs","_Fragment","_jsx","MemberSources","isCommentWithModifiers","CommentBadges","Comment","TypeParameters","Type","DefaultValue","Flags","Parameter","extractDeclarationFromType"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AAaO,SAAS,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,GAAG,KAAK,EAAE;AAC9D,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG;AACH,EAAE,OAAO,CAAC,WAAW,IAAIA,wBAAU,CAAC,GAAG,CAAC,IAAIC,kBAAU,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,aAAa,IAAI,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC;AAC5M,CAAC;AACD,SAAS,iBAAiB,CAAC,OAAO,EAAE;AACpC,EAAE,IAAI,OAAO,EAAE,SAAS,EAAE;AAC1B,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;AACvD,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;AACnC,MAAM,MAAM,KAA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AAI,EAAE,KAAK,CAAC,IAAI;AAC9B,cAAc,KAAK,EAAE,KAAK,CAAC,YAAY;AACvC,aAAa,CAAC,eAAeP,cAAI,CAACQ,WAAK,EAAE;AACzC,cAAc,KAAK,EAAE,KAAK,CAAC,KAAK;AAChC,aAAa,CAAC,CAAC;AACf,WAAW,CAAC,eAAeR,cAAI,CAACI,eAAO,EAAE;AACzC,YAAY,OAAO,EAAE,KAAK,CAAC,OAAO;AAClC,WAAW,CAAC,CAAC;AACb,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AACrB,OAAO,CAAC,CAAC;AACT,KAAK,CAAC,EAAE,UAAU,iBAAiBN,eAAK,CAACC,mBAAS,EAAE;AACpD,MAAM,QAAQ,EAAE,cAAcD,eAAK,CAAC,IAAI,EAAE;AAC1C,QAAQ,SAAS,EAAE,mBAAmB;AACtC,QAAQ,QAAQ,EAAE,CAAC,UAAU,eAAeE,cAAI,CAACM,SAAI,EAAE;AACvD,UAAU,IAAI,EAAE,GAAG,CAAC,IAAI;AACxB,SAAS,CAAC,CAAC;AACX,OAAO,CAAC,eAAeN,cAAI,CAACI,eAAO,EAAE;AACrC,QAAQ,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC;AAC/C,OAAO,CAAC,eAAeJ,cAAI,CAACS,mBAAS,EAAE;AACvC,QAAQ,KAAK,EAAEC,+BAA0B,CAAC,GAAG,CAAC,IAAI,CAAC;AACnD,OAAO,CAAC,CAAC;AACT,KAAK,CAAC,CAAC;AACP,GAAG,CAAC,CAAC;AACL;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const react = require('react');
|
|
4
|
+
const helpers = require('../utils/helpers.js');
|
|
4
5
|
const Type = require('./Type.js');
|
|
5
6
|
const TypeParametersGeneric = require('./TypeParametersGeneric.js');
|
|
6
|
-
const
|
|
7
|
-
default: e
|
|
8
|
-
};
|
|
9
|
-
const React__default = /*#__PURE__*/_interopDefault(React);
|
|
7
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
10
8
|
|
|
11
9
|
/* eslint-disable no-nested-ternary */
|
|
10
|
+
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.signature.title.hbs
|
|
11
|
+
|
|
12
12
|
function MemberSignatureTitle({
|
|
13
13
|
useArrow,
|
|
14
14
|
hideName,
|
|
@@ -23,30 +23,51 @@ function MemberSignatureTitle({
|
|
|
23
23
|
name: '*',
|
|
24
24
|
kind: 32_768,
|
|
25
25
|
flags: {},
|
|
26
|
-
|
|
26
|
+
variant: 'param'
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
return /*#__PURE__*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
30
|
+
children: [!hideName && sig.name !== '__type' ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
31
|
+
children: [sig.modifiers ? `${sig.modifiers.join(' ')} ` : '', /*#__PURE__*/jsxRuntime.jsx("b", {
|
|
32
|
+
children: helpers.escapeMdx(sig.name)
|
|
33
|
+
})]
|
|
34
|
+
}) :
|
|
35
|
+
// Constructor signature
|
|
36
|
+
sig.kind === 16_384 ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
37
|
+
children: [sig.flags?.isAbstract && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
38
|
+
className: "tsd-signature-symbol",
|
|
39
|
+
children: "abstract "
|
|
40
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
41
|
+
className: "tsd-signature-symbol",
|
|
42
|
+
children: "new "
|
|
43
|
+
})]
|
|
44
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(TypeParametersGeneric.TypeParametersGeneric, {
|
|
45
|
+
params: sig.typeParameter
|
|
46
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
47
|
+
className: "tsd-signature-symbol",
|
|
48
|
+
children: "("
|
|
49
|
+
}), parametersCopy.map((param, index) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
|
|
50
|
+
children: [index > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
51
|
+
className: "tsd-signature-symbol",
|
|
52
|
+
children: ", "
|
|
53
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
54
|
+
children: [param.flags?.isRest && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
55
|
+
className: "tsd-signature-symbol",
|
|
56
|
+
children: "..."
|
|
57
|
+
}), helpers.escapeMdx(param.name)]
|
|
58
|
+
})]
|
|
59
|
+
}, param.id)), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
60
|
+
className: "tsd-signature-symbol",
|
|
61
|
+
children: ")"
|
|
62
|
+
}), sig.type && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
63
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
64
|
+
className: "tsd-signature-symbol",
|
|
65
|
+
children: useArrow ? ' => ' : ': '
|
|
66
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
67
|
+
type: sig.type
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
50
71
|
}
|
|
51
72
|
exports.MemberSignatureTitle = MemberSignatureTitle;
|
|
52
73
|
//# sourceMappingURL=MemberSignatureTitle.js.map
|