@apify/docusaurus-plugin-typedoc-api 4.4.12 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -296
- package/lib/components/AnchorLink.d.ts +5 -0
- package/lib/components/AnchorLink.d.ts.map +1 -0
- package/lib/components/AnchorLink.js +7 -26
- package/lib/components/AnchorLink.js.map +1 -1
- package/lib/components/ApiChangelog.d.ts +6 -0
- package/lib/components/ApiChangelog.d.ts.map +1 -0
- package/lib/components/ApiChangelog.js +7 -24
- package/lib/components/ApiChangelog.js.map +1 -1
- package/lib/components/ApiDataContext.d.ts +6 -0
- package/lib/components/ApiDataContext.d.ts.map +1 -0
- package/lib/components/ApiDataContext.js +12 -15
- package/lib/components/ApiDataContext.js.map +1 -1
- package/lib/components/ApiIndex.d.ts +14 -0
- package/lib/components/ApiIndex.d.ts.map +1 -0
- package/lib/components/ApiIndex.js +33 -93
- package/lib/components/ApiIndex.js.map +1 -1
- package/lib/components/ApiItem.d.ts +6 -0
- package/lib/components/ApiItem.d.ts.map +1 -0
- package/lib/components/ApiItem.js +131 -191
- package/lib/components/ApiItem.js.map +1 -1
- package/lib/components/ApiItemLayout.d.ts +14 -0
- package/lib/components/ApiItemLayout.d.ts.map +1 -0
- package/lib/components/ApiItemLayout.js +21 -97
- package/lib/components/ApiItemLayout.js.map +1 -1
- package/lib/components/ApiOptionsContext.d.ts +5 -0
- package/lib/components/ApiOptionsContext.d.ts.map +1 -0
- package/lib/components/ApiOptionsContext.js +5 -9
- package/lib/components/ApiOptionsContext.js.map +1 -1
- package/lib/components/ApiOptionsLayout.d.ts +4 -0
- package/lib/components/ApiOptionsLayout.d.ts.map +1 -0
- package/lib/components/ApiOptionsLayout.js +10 -34
- package/lib/components/ApiOptionsLayout.js.map +1 -1
- package/lib/components/ApiPage.d.ts +11 -0
- package/lib/components/ApiPage.d.ts.map +1 -0
- package/lib/components/ApiPage.js +50 -63
- package/lib/components/ApiPage.js.map +1 -1
- package/lib/components/Breadcrumb.d.ts +7 -0
- package/lib/components/Breadcrumb.d.ts.map +1 -0
- package/lib/components/Breadcrumb.js +17 -49
- package/lib/components/Breadcrumb.js.map +1 -1
- package/lib/components/Comment.d.ts +10 -0
- package/lib/components/Comment.d.ts.map +1 -0
- package/lib/components/Comment.js +33 -60
- package/lib/components/Comment.js.map +1 -1
- package/lib/components/CommentBadges.d.ts +9 -0
- package/lib/components/CommentBadges.d.ts.map +1 -0
- package/lib/components/CommentBadges.js +16 -28
- package/lib/components/CommentBadges.js.map +1 -1
- package/lib/components/DefaultValue.d.ts +10 -0
- package/lib/components/DefaultValue.d.ts.map +1 -0
- package/lib/components/DefaultValue.js +25 -55
- package/lib/components/DefaultValue.js.map +1 -1
- package/lib/components/Flags.d.ts +6 -0
- package/lib/components/Flags.d.ts.map +1 -0
- package/lib/components/Flags.js +11 -22
- package/lib/components/Flags.js.map +1 -1
- package/lib/components/Footer.d.ts +2 -0
- package/lib/components/Footer.d.ts.map +1 -0
- package/lib/components/Footer.js +4 -16
- package/lib/components/Footer.js.map +1 -1
- package/lib/components/Hierarchy.d.ts +6 -0
- package/lib/components/Hierarchy.d.ts.map +1 -0
- package/lib/components/Hierarchy.js +5 -25
- package/lib/components/Hierarchy.js.map +1 -1
- package/lib/components/Icon.d.ts +6 -0
- package/lib/components/Icon.d.ts.map +1 -0
- package/lib/components/Icon.js +10 -21
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Index.d.ts +9 -0
- package/lib/components/Index.d.ts.map +1 -0
- package/lib/components/Index.js +30 -113
- package/lib/components/Index.js.map +1 -1
- package/lib/components/Markdown.d.ts +5 -0
- package/lib/components/Markdown.d.ts.map +1 -0
- package/lib/components/Markdown.js +138 -202
- package/lib/components/Markdown.js.map +1 -1
- package/lib/components/Member.d.ts +5 -0
- package/lib/components/Member.d.ts.map +1 -0
- package/lib/components/Member.js +40 -69
- package/lib/components/Member.js.map +1 -1
- package/lib/components/MemberDeclaration.d.ts +5 -0
- package/lib/components/MemberDeclaration.d.ts.map +1 -0
- package/lib/components/MemberDeclaration.js +20 -71
- package/lib/components/MemberDeclaration.js.map +1 -1
- package/lib/components/MemberGetterSetter.d.ts +8 -0
- package/lib/components/MemberGetterSetter.d.ts.map +1 -0
- package/lib/components/MemberGetterSetter.js +13 -68
- package/lib/components/MemberGetterSetter.js.map +1 -1
- package/lib/components/MemberReference.d.ts +6 -0
- package/lib/components/MemberReference.d.ts.map +1 -0
- package/lib/components/MemberReference.js +18 -48
- package/lib/components/MemberReference.js.map +1 -1
- package/lib/components/MemberSignatureBody.d.ts +9 -0
- package/lib/components/MemberSignatureBody.d.ts.map +1 -0
- package/lib/components/MemberSignatureBody.js +85 -182
- package/lib/components/MemberSignatureBody.js.map +1 -1
- package/lib/components/MemberSignatureTitle.d.ts +11 -0
- package/lib/components/MemberSignatureTitle.d.ts.map +1 -0
- package/lib/components/MemberSignatureTitle.js +27 -81
- package/lib/components/MemberSignatureTitle.js.map +1 -1
- package/lib/components/MemberSignatures.d.ts +7 -0
- package/lib/components/MemberSignatures.d.ts.map +1 -0
- package/lib/components/MemberSignatures.js +18 -66
- package/lib/components/MemberSignatures.js.map +1 -1
- package/lib/components/MemberSources.d.ts +7 -0
- package/lib/components/MemberSources.d.ts.map +1 -0
- package/lib/components/MemberSources.js +10 -34
- package/lib/components/MemberSources.js.map +1 -1
- package/lib/components/Members.d.ts +6 -0
- package/lib/components/Members.d.ts.map +1 -0
- package/lib/components/Members.js +29 -49
- package/lib/components/Members.js.map +1 -1
- package/lib/components/MembersGroup.d.ts +6 -0
- package/lib/components/MembersGroup.d.ts.map +1 -0
- package/lib/components/MembersGroup.js +16 -40
- package/lib/components/MembersGroup.js.map +1 -1
- package/lib/components/Parameter.d.ts +6 -0
- package/lib/components/Parameter.d.ts.map +1 -0
- package/lib/components/Parameter.js +35 -171
- package/lib/components/Parameter.js.map +1 -1
- package/lib/components/Reflection.d.ts +6 -0
- package/lib/components/Reflection.d.ts.map +1 -0
- package/lib/components/Reflection.js +29 -132
- package/lib/components/Reflection.js.map +1 -1
- package/lib/components/SourceLink.d.ts +10 -0
- package/lib/components/SourceLink.d.ts.map +1 -0
- package/lib/components/SourceLink.js +16 -36
- package/lib/components/SourceLink.js.map +1 -1
- package/lib/components/Type.d.ts +12 -0
- package/lib/components/Type.d.ts.map +1 -0
- package/lib/components/Type.js +142 -464
- package/lib/components/Type.js.map +1 -1
- package/lib/components/TypeAndParent.d.ts +6 -0
- package/lib/components/TypeAndParent.d.ts.map +1 -0
- package/lib/components/TypeAndParent.js +11 -27
- package/lib/components/TypeAndParent.js.map +1 -1
- package/lib/components/TypeParameters.d.ts +6 -0
- package/lib/components/TypeParameters.d.ts.map +1 -0
- package/lib/components/TypeParameters.js +10 -38
- package/lib/components/TypeParameters.js.map +1 -1
- package/lib/components/TypeParametersGeneric.d.ts +6 -0
- package/lib/components/TypeParametersGeneric.d.ts.map +1 -0
- package/lib/components/TypeParametersGeneric.js +8 -27
- package/lib/components/TypeParametersGeneric.js.map +1 -1
- package/lib/components/VersionBanner.d.ts +2 -0
- package/lib/components/VersionBanner.d.ts.map +1 -0
- package/lib/components/VersionBanner.js +18 -49
- package/lib/components/VersionBanner.js.map +1 -1
- package/lib/hooks/useBreadcrumbs.d.ts +2 -0
- package/lib/hooks/useBreadcrumbs.d.ts.map +1 -0
- package/lib/hooks/useBreadcrumbs.js +5 -8
- package/lib/hooks/useBreadcrumbs.js.map +1 -1
- package/lib/hooks/useGitRefName.d.ts +2 -0
- package/lib/hooks/useGitRefName.d.ts.map +1 -0
- package/lib/hooks/useGitRefName.js +5 -8
- package/lib/hooks/useGitRefName.js.map +1 -1
- package/lib/hooks/useMinimalLayout.d.ts +2 -0
- package/lib/hooks/useMinimalLayout.d.ts.map +1 -0
- package/lib/hooks/useMinimalLayout.js +5 -8
- package/lib/hooks/useMinimalLayout.js.map +1 -1
- package/lib/hooks/useReflection.d.ts +4 -0
- package/lib/hooks/useReflection.d.ts.map +1 -0
- package/lib/hooks/useReflection.js +15 -21
- package/lib/hooks/useReflection.js.map +1 -1
- package/lib/hooks/useReflectionMap.d.ts +3 -0
- package/lib/hooks/useReflectionMap.d.ts.map +1 -0
- package/lib/hooks/useReflectionMap.js +5 -8
- package/lib/hooks/useReflectionMap.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +349 -361
- package/lib/index.js.map +1 -1
- package/lib/markdownLoader.d.ts +6 -0
- package/lib/markdownLoader.d.ts.map +1 -0
- package/lib/markdownLoader.js +6 -10
- package/lib/markdownLoader.js.map +1 -1
- package/lib/plugin/data.d.ts +21 -0
- package/lib/plugin/data.d.ts.map +1 -0
- package/lib/plugin/data.js +391 -429
- package/lib/plugin/data.js.map +1 -1
- package/lib/plugin/python/consts.d.ts +35 -0
- package/lib/plugin/python/consts.d.ts.map +1 -0
- package/lib/plugin/python/consts.js +44 -44
- package/lib/plugin/python/consts.js.map +1 -1
- package/lib/plugin/python/index.d.ts +12 -0
- package/lib/plugin/python/index.d.ts.map +1 -0
- package/lib/plugin/python/index.js +25 -36
- package/lib/plugin/python/index.js.map +1 -1
- package/lib/plugin/python/inheritance.d.ts +42 -0
- package/lib/plugin/python/inheritance.d.ts.map +1 -0
- package/lib/plugin/python/inheritance.js +148 -153
- package/lib/plugin/python/inheritance.js.map +1 -1
- package/lib/plugin/python/packageVersions.d.ts +7 -0
- package/lib/plugin/python/packageVersions.d.ts.map +1 -0
- package/lib/plugin/python/packageVersions.js +30 -38
- package/lib/plugin/python/packageVersions.js.map +1 -1
- package/lib/plugin/python/transformation.d.ts +90 -0
- package/lib/plugin/python/transformation.d.ts.map +1 -0
- package/lib/plugin/python/transformation.js +424 -391
- package/lib/plugin/python/transformation.js.map +1 -1
- package/lib/plugin/python/type-parsing/index.d.ts +34 -0
- package/lib/plugin/python/type-parsing/index.d.ts.map +1 -0
- package/lib/plugin/python/type-parsing/index.js +78 -85
- package/lib/plugin/python/type-parsing/index.js.map +1 -1
- package/lib/plugin/python/types.d.ts +107 -0
- package/lib/plugin/python/types.d.ts.map +1 -0
- package/lib/plugin/python/types.js +2 -2
- package/lib/plugin/python/types.js.map +1 -1
- package/lib/plugin/python/utils.d.ts +40 -0
- package/lib/plugin/python/utils.d.ts.map +1 -0
- package/lib/plugin/python/utils.js +74 -73
- package/lib/plugin/python/utils.js.map +1 -1
- package/lib/plugin/sidebar.d.ts +6 -0
- package/lib/plugin/sidebar.d.ts.map +1 -0
- package/lib/plugin/sidebar.js +94 -96
- package/lib/plugin/sidebar.js.map +1 -1
- package/lib/plugin/structure/0.23.d.ts +3 -0
- package/lib/plugin/structure/0.23.d.ts.map +1 -0
- package/lib/plugin/structure/0.23.js +33 -41
- package/lib/plugin/structure/0.23.js.map +1 -1
- package/lib/plugin/url.d.ts +6 -0
- package/lib/plugin/url.d.ts.map +1 -0
- package/lib/plugin/url.js +36 -46
- package/lib/plugin/url.js.map +1 -1
- package/lib/plugin/version.d.ts +5 -0
- package/lib/plugin/version.d.ts.map +1 -0
- package/lib/plugin/version.js +73 -78
- package/lib/plugin/version.js.map +1 -1
- package/lib/types.d.ts +142 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -2
- package/lib/types.js.map +1 -1
- package/lib/utils/helpers.d.ts +2 -0
- package/lib/utils/helpers.d.ts.map +1 -0
- package/lib/utils/helpers.js +5 -7
- package/lib/utils/helpers.js.map +1 -1
- package/lib/utils/hierarchy.d.ts +8 -0
- package/lib/utils/hierarchy.d.ts.map +1 -0
- package/lib/utils/hierarchy.js +31 -33
- package/lib/utils/hierarchy.js.map +1 -1
- package/lib/utils/icons.d.ts +5 -0
- package/lib/utils/icons.d.ts.map +1 -0
- package/lib/utils/icons.js +82 -114
- package/lib/utils/icons.js.map +1 -1
- package/lib/utils/links.d.ts +2 -0
- package/lib/utils/links.d.ts.map +1 -0
- package/lib/utils/links.js +24 -41
- package/lib/utils/links.js.map +1 -1
- package/lib/utils/markdown.d.ts +4 -0
- package/lib/utils/markdown.d.ts.map +1 -0
- package/lib/utils/markdown.js +45 -54
- package/lib/utils/markdown.js.map +1 -1
- package/lib/utils/reexports.d.ts +5 -0
- package/lib/utils/reexports.d.ts.map +1 -0
- package/lib/utils/reexports.js +90 -90
- package/lib/utils/reexports.js.map +1 -1
- package/lib/utils/removeScopes.d.ts +2 -0
- package/lib/utils/removeScopes.d.ts.map +1 -0
- package/lib/utils/removeScopes.js +7 -0
- package/lib/utils/removeScopes.js.map +1 -0
- package/lib/utils/visibility.d.ts +6 -0
- package/lib/utils/visibility.d.ts.map +1 -0
- package/lib/utils/visibility.js +14 -19
- package/lib/utils/visibility.js.map +1 -1
- package/package.json +29 -17
- package/python-scripts/docspec-gen/google_docstring_processor.py +54 -20
- package/src/components/ApiIndex.tsx +1 -1
- package/src/index.ts +2 -2
- package/src/plugin/data.ts +3 -3
- package/src/plugin/python/index.ts +3 -3
- package/src/plugin/python/packageVersions.ts +3 -3
- package/src/plugin/python/transformation.ts +89 -15
- package/src/plugin/python/types.ts +3 -4
- package/src/plugin/sidebar.ts +1 -1
- package/src/plugin/url.ts +1 -1
- package/src/plugin/version.ts +1 -1
- package/src/utils/links.ts +1 -12
- package/src/utils/removeScopes.ts +10 -0
- /package/{assets/styles-8ad572ec.css → lib/components/styles.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberSignatures.js","sources":["../../src/components/MemberSignatures.tsx"],"
|
|
1
|
+
{"version":3,"file":"MemberSignatures.js","sourceRoot":"","sources":["../../src/components/MemberSignatures.tsx"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,0DAA0D;AAC1D,8GAA8G;AAE9G,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,u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AC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,YACjD,aAAI,SAAS,EAAC,kBAAkB,YAC/B,aAAkB,SAAS,EAAC,iBAAiB,YAC5C,KAAC,mBAAmB,IAAC,GAAG,EAAE,IAAI,GAAI,IAD1B,IAAI,CAAC,EAAE,CAEX,GACD,GACA,IACJ,CACH,IACC,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection, TSDSignatureReflection } from '../types';
|
|
2
|
+
export declare function hasSources(reflection: TSDDeclarationReflection | TSDSignatureReflection): boolean;
|
|
3
|
+
export interface MemberSourcesProps {
|
|
4
|
+
reflection: TSDDeclarationReflection | TSDSignatureReflection;
|
|
5
|
+
}
|
|
6
|
+
export declare function MemberSources({ reflection }: MemberSourcesProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=MemberSources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberSources.d.ts","sourceRoot":"","sources":["../../src/components/MemberSources.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGjF,wBAAgB,UAAU,CAAC,UAAU,EAAE,wBAAwB,GAAG,sBAAsB,WAEvF;AAED,MAAM,WAAW,kBAAkB;IAClC,UAAU,EAAE,wBAAwB,GAAG,sBAAsB,CAAC;CAC9D;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,EAAE,kBAAkB,2CA0B/D"}
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.sources.hbs
|
|
7
|
-
|
|
8
|
-
function hasSources(reflection) {
|
|
9
|
-
return Boolean(reflection.implementationOf || reflection.inheritedFrom || reflection.overwrites);
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TypeAndParent } from './TypeAndParent';
|
|
3
|
+
export function hasSources(reflection) {
|
|
4
|
+
return Boolean(reflection.implementationOf || reflection.inheritedFrom || reflection.overwrites);
|
|
10
5
|
}
|
|
11
|
-
function MemberSources({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/jsxRuntime.jsxs("aside", {
|
|
18
|
-
className: "tsd-sources",
|
|
19
|
-
children: [reflection.implementationOf && /*#__PURE__*/jsxRuntime.jsxs("p", {
|
|
20
|
-
children: ["Implementation of ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, {
|
|
21
|
-
type: reflection.implementationOf
|
|
22
|
-
})]
|
|
23
|
-
}), reflection.inheritedFrom && /*#__PURE__*/jsxRuntime.jsxs("p", {
|
|
24
|
-
children: ["Inherited from ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, {
|
|
25
|
-
type: reflection.inheritedFrom
|
|
26
|
-
})]
|
|
27
|
-
}), reflection.overwrites && /*#__PURE__*/jsxRuntime.jsxs("p", {
|
|
28
|
-
children: ["Overrides ", /*#__PURE__*/jsxRuntime.jsx(TypeAndParent.TypeAndParent, {
|
|
29
|
-
type: reflection.overwrites
|
|
30
|
-
})]
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
6
|
+
export function MemberSources({ reflection }) {
|
|
7
|
+
if (!hasSources(reflection)) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return (_jsxs("aside", { className: "tsd-sources", children: [reflection.implementationOf && (_jsxs("p", { children: ["Implementation of ", _jsx(TypeAndParent, { type: reflection.implementationOf })] })), reflection.inheritedFrom && (_jsxs("p", { children: ["Inherited from ", _jsx(TypeAndParent, { type: reflection.inheritedFrom })] })), reflection.overwrites && (_jsxs("p", { children: ["Overrides ", _jsx(TypeAndParent, { type: reflection.overwrites })] }))] }));
|
|
33
11
|
}
|
|
34
|
-
|
|
35
|
-
exports.hasSources = hasSources;
|
|
36
|
-
//# sourceMappingURL=MemberSources.js.map
|
|
12
|
+
//# sourceMappingURL=MemberSources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberSources.js","sources":["../../src/components/MemberSources.tsx"],"
|
|
1
|
+
{"version":3,"file":"MemberSources.js","sourceRoot":"","sources":["../../src/components/MemberSources.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,UAAU,UAAU,CAAC,UAA6D;IACvF,OAAO,OAAO,CAAC,UAAU,CAAC,gBAAgB,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AAClG,CAAC;AAMD,MAAM,UAAU,aAAa,CAAC,EAAE,UAAU,EAAsB;IAC/D,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,iBAAO,SAAS,EAAC,aAAa,aAC5B,UAAU,CAAC,gBAAgB,IAAI,CAC/B,8CACmB,KAAC,aAAa,IAAC,IAAI,EAAE,UAAU,CAAC,gBAAgB,GAAI,IACnE,CACJ,EAEA,UAAU,CAAC,aAAa,IAAI,CAC5B,2CACgB,KAAC,aAAa,IAAC,IAAI,EAAE,UAAU,CAAC,aAAa,GAAI,IAC7D,CACJ,EAEA,UAAU,CAAC,UAAU,IAAI,CACzB,sCACW,KAAC,aAAa,IAAC,IAAI,EAAE,UAAU,CAAC,UAAU,GAAI,IACrD,CACJ,IACM,CACR,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection } from '../types';
|
|
2
|
+
export interface MembersProps {
|
|
3
|
+
reflection: TSDDeclarationReflection;
|
|
4
|
+
}
|
|
5
|
+
export declare function Members({ reflection }: MembersProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Members.d.ts","sourceRoot":"","sources":["../../src/components/Members.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAUzD,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,wBAAwB,CAAC;CACrC;AAED,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAAE,EAAE,YAAY,2CA2CnD"}
|
|
@@ -1,52 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const useReflectionMap = require('../hooks/useReflectionMap.js');
|
|
4
|
-
const visibility = require('../utils/visibility.js');
|
|
5
|
-
const AnchorLink = require('./AnchorLink.js');
|
|
6
|
-
const Member = require('./Member.js');
|
|
7
|
-
const MembersGroup = require('./MembersGroup.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/members.hbs
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
3
|
+
import { useReflectionMap } from '../hooks/useReflectionMap';
|
|
4
|
+
import { allCategoryChildrenHaveOwnDocument, allGroupChildrenHaveOwnDocument, hasOwnDocument, } from '../utils/visibility';
|
|
5
|
+
import { AnchorLink } from './AnchorLink';
|
|
6
|
+
import { Member } from './Member';
|
|
7
|
+
import { MembersGroup } from './MembersGroup';
|
|
8
|
+
export function Members({ reflection }) {
|
|
9
|
+
var _a;
|
|
10
|
+
const reflections = useReflectionMap();
|
|
11
|
+
if (reflection.categories && reflection.categories.length > 0) {
|
|
12
|
+
return (_jsx(_Fragment, { children: reflection.categories.map((category) => {
|
|
13
|
+
var _a;
|
|
14
|
+
if (allCategoryChildrenHaveOwnDocument(category, reflections)) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return (_jsxs("section", { className: "tsd-panel-group tsd-member-group", children: [_jsxs("h2", { children: [category.title === '__CATEGORY__' ? 'Other' : category.title, ' ', _jsx(AnchorLink, { id: category.title })] }), (_a = category.children) === null || _a === void 0 ? void 0 : _a.map((child) => {
|
|
18
|
+
if (hasOwnDocument(child, reflections)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return _jsx(Member, { id: child }, child);
|
|
22
|
+
})] }, category.title));
|
|
23
|
+
}) }));
|
|
24
|
+
}
|
|
25
|
+
return (_jsx(_Fragment, { children: (_a = reflection.groups) === null || _a === void 0 ? void 0 : _a.map((group) => {
|
|
26
|
+
if (allGroupChildrenHaveOwnDocument(group, reflections)) {
|
|
27
|
+
return null;
|
|
31
28
|
}
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
}, child);
|
|
35
|
-
})]
|
|
36
|
-
}, category.title);
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
41
|
-
children: reflection.groups?.map(group => {
|
|
42
|
-
if (visibility.allGroupChildrenHaveOwnDocument(group, reflections)) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
return /*#__PURE__*/jsxRuntime.jsx(MembersGroup.MembersGroup, {
|
|
46
|
-
group: group
|
|
47
|
-
}, group.title);
|
|
48
|
-
})
|
|
49
|
-
});
|
|
29
|
+
return _jsx(MembersGroup, { group: group }, group.title);
|
|
30
|
+
}) }));
|
|
50
31
|
}
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=Members.js.map
|
|
32
|
+
//# sourceMappingURL=Members.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Members.js","sources":["../../src/components/Members.tsx"],"
|
|
1
|
+
{"version":3,"file":"Members.js","sourceRoot":"","sources":["../../src/components/Members.tsx"],"names":[],"mappings":";AAAA,oGAAoG;AAEpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EACN,kCAAkC,EAClC,+BAA+B,EAC/B,cAAc,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,MAAM,UAAU,OAAO,CAAC,EAAE,UAAU,EAAgB;;IACnD,MAAM,WAAW,GAAG,gBAAgB,EAAE,CAAC;IAEvC,IAAI,UAAU,CAAC,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/D,OAAO,CACN,4BACE,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;;gBACvC,IAAI,kCAAkC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC;oBAC/D,OAAO,IAAI,CAAC;gBACb,CAAC;gBAED,OAAO,CACN,mBAA8B,SAAS,EAAC,kCAAkC,aACzE,yBACE,QAAQ,CAAC,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAClE,KAAC,UAAU,IAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,GAAI,IAC9B,EAEJ,MAAA,QAAQ,CAAC,QAAQ,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;4BACjC,IAAI,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,CAAC;gCACxC,OAAO,IAAI,CAAC;4BACb,CAAC;4BAED,OAAO,KAAC,MAAM,IAAa,EAAE,EAAE,KAAK,IAAhB,KAAK,CAAe,CAAC;wBAC1C,CAAC,CAAC,KAZW,QAAQ,CAAC,KAAK,CAalB,CACV,CAAC;YACH,CAAC,CAAC,GACA,CACH,CAAC;IACH,CAAC;IAED,OAAO,CACN,4BACE,MAAA,UAAU,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACjC,IAAI,+BAA+B,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,CAAC;gBACzD,OAAO,IAAI,CAAC;YACb,CAAC;YAED,OAAO,KAAC,YAAY,IAAmB,KAAK,EAAE,KAAK,IAAzB,KAAK,CAAC,KAAK,CAAkB,CAAC;QACzD,CAAC,CAAC,GACA,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { JSONOutput } from 'typedoc';
|
|
2
|
+
export interface MembersGroupProps {
|
|
3
|
+
group: JSONOutput.ReflectionGroup;
|
|
4
|
+
}
|
|
5
|
+
export declare function MembersGroup({ group }: MembersGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=MembersGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MembersGroup.d.ts","sourceRoot":"","sources":["../../src/components/MembersGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;CAClC;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB,2CAiCxD"}
|
|
@@ -1,41 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
17
|
-
children: group.categories.map(category => /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
18
|
-
className: "tsd-panel-group tsd-member-group",
|
|
19
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h2", {
|
|
20
|
-
children: [category.title === '__CATEGORY__' ? 'Other' : category.title, ' ', /*#__PURE__*/jsxRuntime.jsx(AnchorLink.AnchorLink, {
|
|
21
|
-
id: category.title
|
|
22
|
-
})]
|
|
23
|
-
}), category.children?.map(child => visibility.hasOwnDocument(child, reflections) ? null : /*#__PURE__*/jsxRuntime.jsx(Member.Member, {
|
|
24
|
-
id: child
|
|
25
|
-
}, child))]
|
|
26
|
-
}, category.title))
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
30
|
-
className: "tsd-panel-group tsd-member-group",
|
|
31
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h2", {
|
|
32
|
-
children: [group.title, " ", /*#__PURE__*/jsxRuntime.jsx(AnchorLink.AnchorLink, {
|
|
33
|
-
id: group.title
|
|
34
|
-
})]
|
|
35
|
-
}), group.children?.map(child => visibility.hasOwnDocument(child, reflections) ? null : /*#__PURE__*/jsxRuntime.jsx(Member.Member, {
|
|
36
|
-
id: child
|
|
37
|
-
}, child))]
|
|
38
|
-
});
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useReflectionMap } from '../hooks/useReflectionMap';
|
|
3
|
+
import { hasOwnDocument } from '../utils/visibility';
|
|
4
|
+
import { AnchorLink } from './AnchorLink';
|
|
5
|
+
import { Member } from './Member';
|
|
6
|
+
export function MembersGroup({ group }) {
|
|
7
|
+
var _a;
|
|
8
|
+
const reflections = useReflectionMap();
|
|
9
|
+
if (group.categories && group.categories.length > 0) {
|
|
10
|
+
return (_jsx(_Fragment, { children: group.categories.map((category) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return (_jsxs("section", { className: "tsd-panel-group tsd-member-group", children: [_jsxs("h2", { children: [category.title === '__CATEGORY__' ? 'Other' : category.title, ' ', _jsx(AnchorLink, { id: category.title })] }), (_a = category.children) === null || _a === void 0 ? void 0 : _a.map((child) => hasOwnDocument(child, reflections) ? null : _jsx(Member, { id: child }, child))] }, category.title));
|
|
13
|
+
}) }));
|
|
14
|
+
}
|
|
15
|
+
return (_jsxs("section", { className: "tsd-panel-group tsd-member-group", children: [_jsxs("h2", { children: [group.title, " ", _jsx(AnchorLink, { id: group.title })] }), (_a = group.children) === null || _a === void 0 ? void 0 : _a.map((child) => hasOwnDocument(child, reflections) ? null : _jsx(Member, { id: child }, child))] }));
|
|
39
16
|
}
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=MembersGroup.js.map
|
|
17
|
+
//# sourceMappingURL=MembersGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MembersGroup.js","sources":["../../src/components/MembersGroup.tsx"],"
|
|
1
|
+
{"version":3,"file":"MembersGroup.js","sourceRoot":"","sources":["../../src/components/MembersGroup.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMlC,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAqB;;IACxD,MAAM,WAAW,GAAG,gBAAgB,EAAE,CAAC;IAEvC,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrD,OAAO,CACN,4BACE,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;;gBAAC,OAAA,CACnC,mBAA8B,SAAS,EAAC,kCAAkC,aACzE,yBACE,QAAQ,CAAC,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAClE,KAAC,UAAU,IAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,GAAI,IAC9B,EAEJ,MAAA,QAAQ,CAAC,QAAQ,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACjC,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,MAAM,IAAa,EAAE,EAAE,KAAK,IAAhB,KAAK,CAAe,CAC7E,KARY,QAAQ,CAAC,KAAK,CASlB,CACV,CAAA;aAAA,CAAC,GACA,CACH,CAAC;IACH,CAAC;IAED,OAAO,CACN,mBAAS,SAAS,EAAC,kCAAkC,aACpD,yBACE,KAAK,CAAC,KAAK,OAAE,KAAC,UAAU,IAAC,EAAE,EAAE,KAAK,CAAC,KAAK,GAAI,IACzC,EAEJ,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,IACQ,CACV,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection } from '../types';
|
|
2
|
+
export interface ParameterProps {
|
|
3
|
+
param?: TSDDeclarationReflection;
|
|
4
|
+
}
|
|
5
|
+
export declare function Parameter({ param }: ParameterProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Parameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../src/components/Parameter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AASzD,MAAM,WAAW,cAAc;IAC9B,KAAK,CAAC,EAAE,wBAAwB,CAAC;CACjC;AAuFD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,2CAyDlD"}
|
|
@@ -1,175 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const useMinimalLayout = require('../hooks/useMinimalLayout.js');
|
|
4
|
-
const Comment = require('./Comment.js');
|
|
5
|
-
const Flags = require('./Flags.js');
|
|
6
|
-
const Icon = require('./Icon.js');
|
|
7
|
-
const MemberSignatureBody = require('./MemberSignatureBody.js');
|
|
8
|
-
const MemberSignatures = require('./MemberSignatures.js');
|
|
9
|
-
const MemberSignatureTitle = require('./MemberSignatureTitle.js');
|
|
10
|
-
const Type = require('./Type.js');
|
|
11
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
12
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
2
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
14
3
|
// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/Parameter.hbs
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}), param.name,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
if (param.type) {
|
|
39
|
-
return /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
40
|
-
className: "tsd-parameter",
|
|
41
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
42
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Flags.Flags, {
|
|
43
|
-
flags: param.flags
|
|
44
|
-
}), param.flags?.isRest && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
45
|
-
className: "tsd-signature-symbol",
|
|
46
|
-
children: "..."
|
|
47
|
-
}), param.name, /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
48
|
-
className: "tsd-signature-symbol",
|
|
49
|
-
children: [param.flags?.isOptional && '?', ": "]
|
|
50
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
51
|
-
type: param.type
|
|
52
|
-
})]
|
|
53
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
54
|
-
comment: param.comment
|
|
55
|
-
}), param.children?.map(child => /*#__PURE__*/jsxRuntime.jsx(Parameter, {
|
|
56
|
-
param: child
|
|
57
|
-
}, child.id)), /*#__PURE__*/jsxRuntime.jsx(Parameter, {
|
|
58
|
-
param: Type.extractDeclarationFromType(param.type)
|
|
59
|
-
})]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const getter = param.getSignature;
|
|
63
|
-
const setter = param.setSignature;
|
|
64
|
-
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
65
|
-
children: [getter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
66
|
-
className: "tsd-parameter",
|
|
67
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
68
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Flags.Flags, {
|
|
69
|
-
flags: getter.flags
|
|
70
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
71
|
-
className: "tsd-signature-symbol",
|
|
72
|
-
children: "get "
|
|
73
|
-
}), getter.name, /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
74
|
-
className: "tsd-signature-symbol",
|
|
75
|
-
children: "(): "
|
|
76
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
77
|
-
type: getter.type
|
|
78
|
-
})]
|
|
79
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
80
|
-
comment: getter.comment
|
|
81
|
-
})]
|
|
82
|
-
}), setter && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
83
|
-
className: "tsd-parameter",
|
|
84
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
85
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Flags.Flags, {
|
|
86
|
-
flags: setter.flags
|
|
87
|
-
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
88
|
-
className: "tsd-signature-symbol",
|
|
89
|
-
children: "set "
|
|
90
|
-
}), setter.name, /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
91
|
-
className: "tsd-signature-symbol",
|
|
92
|
-
children: "("
|
|
93
|
-
}), setter.parameters?.map((p, i) => /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
94
|
-
children: [i > 0 && ', ', p.name, /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
95
|
-
className: "tsd-signature-symbol",
|
|
96
|
-
children: ": "
|
|
97
|
-
}), p.type ? /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
98
|
-
type: p.type
|
|
99
|
-
}) : 'any']
|
|
100
|
-
}, p.id)), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
101
|
-
className: "tsd-signature-symbol",
|
|
102
|
-
children: "): "
|
|
103
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
104
|
-
type: setter.type
|
|
105
|
-
})]
|
|
106
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
107
|
-
comment: setter.comment
|
|
108
|
-
})]
|
|
109
|
-
})]
|
|
110
|
-
});
|
|
4
|
+
import { useMinimalLayout } from '../hooks/useMinimalLayout';
|
|
5
|
+
import { Comment } from './Comment';
|
|
6
|
+
import { Flags } from './Flags';
|
|
7
|
+
import { Icon } from './Icon';
|
|
8
|
+
import { hasSigBody, MemberSignatureBody } from './MemberSignatureBody';
|
|
9
|
+
import { MemberSignatures } from './MemberSignatures';
|
|
10
|
+
import { MemberSignatureTitle } from './MemberSignatureTitle';
|
|
11
|
+
import { extractDeclarationFromType, Type } from './Type';
|
|
12
|
+
function ParameterChild({ param }) {
|
|
13
|
+
var _a, _b, _c, _d, _e, _f;
|
|
14
|
+
if (!param) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
if (param.signatures && param.signatures.length > 0) {
|
|
18
|
+
return (_jsxs("li", { className: "tsd-parameter", children: [_jsxs("h5", { children: [((_a = param.flags) === null || _a === void 0 ? void 0 : _a.isRest) && _jsx("span", { className: "tsd-signature-symbol", children: "..." }), param.name, _jsxs("span", { className: "tsd-signature-symbol", children: [((_b = param.flags) === null || _b === void 0 ? void 0 : _b.isOptional) && '?', ": "] }), "function"] }), _jsx(MemberSignatures, { sigs: param.signatures })] }));
|
|
19
|
+
}
|
|
20
|
+
if (param.type) {
|
|
21
|
+
return (_jsxs("li", { className: "tsd-parameter", children: [_jsxs("h5", { children: [_jsx(Flags, { flags: param.flags }), ((_c = param.flags) === null || _c === void 0 ? void 0 : _c.isRest) && _jsx("span", { className: "tsd-signature-symbol", children: "..." }), param.name, _jsxs("span", { className: "tsd-signature-symbol", children: [((_d = param.flags) === null || _d === void 0 ? void 0 : _d.isOptional) && '?', ": "] }), _jsx(Type, { type: param.type })] }), _jsx(Comment, { comment: param.comment }), (_e = param.children) === null || _e === void 0 ? void 0 : _e.map((child) => _jsx(Parameter, { param: child }, child.id)), _jsx(Parameter, { param: extractDeclarationFromType(param.type) })] }));
|
|
22
|
+
}
|
|
23
|
+
const getter = param.getSignature;
|
|
24
|
+
const setter = param.setSignature;
|
|
25
|
+
return (_jsxs(_Fragment, { children: [getter && (_jsxs("li", { className: "tsd-parameter", children: [_jsxs("h5", { children: [_jsx(Flags, { flags: getter.flags }), _jsx("span", { className: "tsd-signature-symbol", children: "get " }), getter.name, _jsx("span", { className: "tsd-signature-symbol", children: "(): " }), _jsx(Type, { type: getter.type })] }), _jsx(Comment, { comment: getter.comment })] })), setter && (_jsxs("li", { className: "tsd-parameter", children: [_jsxs("h5", { children: [_jsx(Flags, { flags: setter.flags }), _jsx("span", { className: "tsd-signature-symbol", children: "set " }), setter.name, _jsx("span", { className: "tsd-signature-symbol", children: "(" }), (_f = setter.parameters) === null || _f === void 0 ? void 0 : _f.map((p, i) => (_jsxs("span", { children: [i > 0 && ', ', p.name, _jsx("span", { className: "tsd-signature-symbol", children: ": " }), p.type ? _jsx(Type, { type: p.type }) : 'any'] }, p.id))), _jsx("span", { className: "tsd-signature-symbol", children: "): " }), _jsx(Type, { type: setter.type })] }), _jsx(Comment, { comment: setter.comment })] }))] }));
|
|
111
26
|
}
|
|
112
|
-
function Parameter({
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
className: "tsd-parameter-signature",
|
|
124
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
125
|
-
className: "tsd-signatures",
|
|
126
|
-
children: param.signatures.map(sig => /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
127
|
-
className: "tsd-signature tsd-kind-icon",
|
|
128
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
129
|
-
reflection: sig
|
|
130
|
-
}), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
|
|
131
|
-
hideName: true,
|
|
132
|
-
sig: sig
|
|
133
|
-
})]
|
|
134
|
-
}, sig.id))
|
|
135
|
-
}), hasSomeBody && /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
136
|
-
className: "tsd-descriptions",
|
|
137
|
-
children: param.signatures.map(sig => /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
138
|
-
className: "tsd-description",
|
|
139
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemberSignatureBody.MemberSignatureBody, {
|
|
140
|
-
hideSources: true,
|
|
141
|
-
sig: sig
|
|
142
|
-
})
|
|
143
|
-
}, sig.id))
|
|
144
|
-
})]
|
|
145
|
-
}), param.indexSignature && /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
146
|
-
className: "tsd-parameter-index-signature",
|
|
147
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
148
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
149
|
-
className: "tsd-signature-symbol",
|
|
150
|
-
children: "["
|
|
151
|
-
}), param.indexSignature.parameters?.map(p => /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
152
|
-
children: [p.flags?.isRest && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
153
|
-
className: "tsd-signature-symbol",
|
|
154
|
-
children: "..."
|
|
155
|
-
}), p.name, " ", /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
156
|
-
type: p.type
|
|
157
|
-
})]
|
|
158
|
-
}, p.id)), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
159
|
-
className: "tsd-signature-symbol",
|
|
160
|
-
children: "]: "
|
|
161
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Type.Type, {
|
|
162
|
-
type: param.indexSignature.type
|
|
163
|
-
})]
|
|
164
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
|
|
165
|
-
comment: param.indexSignature.comment
|
|
166
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Parameter, {
|
|
167
|
-
param: Type.extractDeclarationFromType(param.indexSignature)
|
|
168
|
-
})]
|
|
169
|
-
}), param.children?.map(child => /*#__PURE__*/jsxRuntime.jsx(ParameterChild, {
|
|
170
|
-
param: child
|
|
171
|
-
}, child.id))]
|
|
172
|
-
});
|
|
27
|
+
export function Parameter({ param }) {
|
|
28
|
+
var _a, _b, _c;
|
|
29
|
+
const minimal = useMinimalLayout();
|
|
30
|
+
if (!param || minimal) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const hasSomeBody = (_a = param.signatures) === null || _a === void 0 ? void 0 : _a.some((sig) => hasSigBody(sig, minimal, true));
|
|
34
|
+
return (_jsxs("ul", { className: "tsd-parameters", children: [param.signatures && param.signatures.length > 0 && (_jsxs("li", { className: "tsd-parameter-signature", children: [_jsx("ul", { className: "tsd-signatures", children: param.signatures.map((sig) => (_jsxs("li", { className: "tsd-signature tsd-kind-icon", children: [_jsx(Icon, { reflection: sig }), _jsx(MemberSignatureTitle, { hideName: true, sig: sig })] }, sig.id))) }), hasSomeBody && (_jsx("ul", { className: "tsd-descriptions", children: param.signatures.map((sig) => (_jsx("li", { className: "tsd-description", children: _jsx(MemberSignatureBody, { hideSources: true, sig: sig }) }, sig.id))) }))] })), param.indexSignature && (_jsxs("li", { className: "tsd-parameter-index-signature", children: [_jsxs("h5", { children: [_jsx("span", { className: "tsd-signature-symbol", children: "[" }), (_b = param.indexSignature.parameters) === null || _b === void 0 ? void 0 : _b.map((p) => {
|
|
35
|
+
var _a;
|
|
36
|
+
return (_jsxs("span", { children: [((_a = p.flags) === null || _a === void 0 ? void 0 : _a.isRest) && _jsx("span", { className: "tsd-signature-symbol", children: "..." }), p.name, " ", _jsx(Type, { type: p.type })] }, p.id));
|
|
37
|
+
}), _jsx("span", { className: "tsd-signature-symbol", children: "]: " }), _jsx(Type, { type: param.indexSignature.type })] }), _jsx(Comment, { comment: param.indexSignature.comment }), _jsx(Parameter, { param: extractDeclarationFromType(param.indexSignature) })] })), (_c = param.children) === null || _c === void 0 ? void 0 : _c.map((child) => _jsx(ParameterChild, { param: child }, child.id))] }));
|
|
173
38
|
}
|
|
174
|
-
|
|
175
|
-
//# sourceMappingURL=Parameter.js.map
|
|
39
|
+
//# sourceMappingURL=Parameter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameter.js","sources":["../../src/components/Parameter.tsx"],"
|
|
1
|
+
{"version":3,"file":"Parameter.js","sourceRoot":"","sources":["../../src/components/Parameter.tsx"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,sGAAsG;AAEtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAM1D,SAAS,cAAc,CAAC,EAAE,KAAK,EAAkB;;IAChD,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrD,OAAO,CACN,cAAI,SAAS,EAAC,eAAe,aAC5B,yBACE,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,MAAM,KAAI,eAAM,SAAS,EAAC,sBAAsB,oBAAW,EACxE,KAAK,CAAC,IAAI,EACX,gBAAM,SAAS,EAAC,sBAAsB,aAAE,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,UAAU,KAAI,GAAG,UAAU,gBAE5E,EAEL,KAAC,gBAAgB,IAAC,IAAI,EAAE,KA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,KAAC,OAAO,IAAC,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAI,EAElD,KAAC,SAAS,IAAC,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,cAAc,CAAC,GAAI,IAClE,CACL,EAEA,MAAA,KAAK,CAAC,QAAQ,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,cAAc,IAAgB,KAAK,EAAE,KAAK,IAAtB,KAAK,CAAC,EAAE,CAAkB,CAAC,IAC5E,CACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSDDeclarationReflection, TSDReflection, TSDSignatureReflection } from '../types';
|
|
2
|
+
export interface ReflectionProps {
|
|
3
|
+
reflection: TSDDeclarationReflection | TSDReflection | TSDSignatureReflection;
|
|
4
|
+
}
|
|
5
|
+
export declare function Reflection({ reflection }: ReflectionProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Reflection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reflection.d.ts","sourceRoot":"","sources":["../../src/components/Reflection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAahG,MAAM,WAAW,eAAe;IAC/B,UAAU,EAAE,wBAAwB,GAAG,aAAa,GAAG,sBAAsB,CAAC;CAC9E;AAED,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,eAAe,2CAgHzD"}
|