@apify/docusaurus-plugin-typedoc-api 4.4.12 → 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.
Files changed (277) hide show
  1. package/README.md +38 -296
  2. package/lib/components/AnchorLink.d.ts +5 -0
  3. package/lib/components/AnchorLink.d.ts.map +1 -0
  4. package/lib/components/AnchorLink.js +7 -26
  5. package/lib/components/AnchorLink.js.map +1 -1
  6. package/lib/components/ApiChangelog.d.ts +6 -0
  7. package/lib/components/ApiChangelog.d.ts.map +1 -0
  8. package/lib/components/ApiChangelog.js +7 -24
  9. package/lib/components/ApiChangelog.js.map +1 -1
  10. package/lib/components/ApiDataContext.d.ts +6 -0
  11. package/lib/components/ApiDataContext.d.ts.map +1 -0
  12. package/lib/components/ApiDataContext.js +12 -15
  13. package/lib/components/ApiDataContext.js.map +1 -1
  14. package/lib/components/ApiIndex.d.ts +14 -0
  15. package/lib/components/ApiIndex.d.ts.map +1 -0
  16. package/lib/components/ApiIndex.js +33 -93
  17. package/lib/components/ApiIndex.js.map +1 -1
  18. package/lib/components/ApiItem.d.ts +6 -0
  19. package/lib/components/ApiItem.d.ts.map +1 -0
  20. package/lib/components/ApiItem.js +131 -191
  21. package/lib/components/ApiItem.js.map +1 -1
  22. package/lib/components/ApiItemLayout.d.ts +14 -0
  23. package/lib/components/ApiItemLayout.d.ts.map +1 -0
  24. package/lib/components/ApiItemLayout.js +21 -97
  25. package/lib/components/ApiItemLayout.js.map +1 -1
  26. package/lib/components/ApiOptionsContext.d.ts +5 -0
  27. package/lib/components/ApiOptionsContext.d.ts.map +1 -0
  28. package/lib/components/ApiOptionsContext.js +5 -9
  29. package/lib/components/ApiOptionsContext.js.map +1 -1
  30. package/lib/components/ApiOptionsLayout.d.ts +4 -0
  31. package/lib/components/ApiOptionsLayout.d.ts.map +1 -0
  32. package/lib/components/ApiOptionsLayout.js +10 -34
  33. package/lib/components/ApiOptionsLayout.js.map +1 -1
  34. package/lib/components/ApiPage.d.ts +11 -0
  35. package/lib/components/ApiPage.d.ts.map +1 -0
  36. package/lib/components/ApiPage.js +50 -63
  37. package/lib/components/ApiPage.js.map +1 -1
  38. package/lib/components/Breadcrumb.d.ts +7 -0
  39. package/lib/components/Breadcrumb.d.ts.map +1 -0
  40. package/lib/components/Breadcrumb.js +17 -49
  41. package/lib/components/Breadcrumb.js.map +1 -1
  42. package/lib/components/Comment.d.ts +10 -0
  43. package/lib/components/Comment.d.ts.map +1 -0
  44. package/lib/components/Comment.js +33 -60
  45. package/lib/components/Comment.js.map +1 -1
  46. package/lib/components/CommentBadges.d.ts +9 -0
  47. package/lib/components/CommentBadges.d.ts.map +1 -0
  48. package/lib/components/CommentBadges.js +16 -28
  49. package/lib/components/CommentBadges.js.map +1 -1
  50. package/lib/components/DefaultValue.d.ts +10 -0
  51. package/lib/components/DefaultValue.d.ts.map +1 -0
  52. package/lib/components/DefaultValue.js +25 -55
  53. package/lib/components/DefaultValue.js.map +1 -1
  54. package/lib/components/Flags.d.ts +6 -0
  55. package/lib/components/Flags.d.ts.map +1 -0
  56. package/lib/components/Flags.js +11 -22
  57. package/lib/components/Flags.js.map +1 -1
  58. package/lib/components/Footer.d.ts +2 -0
  59. package/lib/components/Footer.d.ts.map +1 -0
  60. package/lib/components/Footer.js +4 -16
  61. package/lib/components/Footer.js.map +1 -1
  62. package/lib/components/Hierarchy.d.ts +6 -0
  63. package/lib/components/Hierarchy.d.ts.map +1 -0
  64. package/lib/components/Hierarchy.js +5 -25
  65. package/lib/components/Hierarchy.js.map +1 -1
  66. package/lib/components/Icon.d.ts +6 -0
  67. package/lib/components/Icon.d.ts.map +1 -0
  68. package/lib/components/Icon.js +10 -21
  69. package/lib/components/Icon.js.map +1 -1
  70. package/lib/components/Index.d.ts +9 -0
  71. package/lib/components/Index.d.ts.map +1 -0
  72. package/lib/components/Index.js +30 -113
  73. package/lib/components/Index.js.map +1 -1
  74. package/lib/components/Markdown.d.ts +5 -0
  75. package/lib/components/Markdown.d.ts.map +1 -0
  76. package/lib/components/Markdown.js +138 -202
  77. package/lib/components/Markdown.js.map +1 -1
  78. package/lib/components/Member.d.ts +5 -0
  79. package/lib/components/Member.d.ts.map +1 -0
  80. package/lib/components/Member.js +40 -69
  81. package/lib/components/Member.js.map +1 -1
  82. package/lib/components/MemberDeclaration.d.ts +5 -0
  83. package/lib/components/MemberDeclaration.d.ts.map +1 -0
  84. package/lib/components/MemberDeclaration.js +20 -71
  85. package/lib/components/MemberDeclaration.js.map +1 -1
  86. package/lib/components/MemberGetterSetter.d.ts +8 -0
  87. package/lib/components/MemberGetterSetter.d.ts.map +1 -0
  88. package/lib/components/MemberGetterSetter.js +13 -68
  89. package/lib/components/MemberGetterSetter.js.map +1 -1
  90. package/lib/components/MemberReference.d.ts +6 -0
  91. package/lib/components/MemberReference.d.ts.map +1 -0
  92. package/lib/components/MemberReference.js +18 -48
  93. package/lib/components/MemberReference.js.map +1 -1
  94. package/lib/components/MemberSignatureBody.d.ts +9 -0
  95. package/lib/components/MemberSignatureBody.d.ts.map +1 -0
  96. package/lib/components/MemberSignatureBody.js +85 -182
  97. package/lib/components/MemberSignatureBody.js.map +1 -1
  98. package/lib/components/MemberSignatureTitle.d.ts +11 -0
  99. package/lib/components/MemberSignatureTitle.d.ts.map +1 -0
  100. package/lib/components/MemberSignatureTitle.js +27 -81
  101. package/lib/components/MemberSignatureTitle.js.map +1 -1
  102. package/lib/components/MemberSignatures.d.ts +7 -0
  103. package/lib/components/MemberSignatures.d.ts.map +1 -0
  104. package/lib/components/MemberSignatures.js +18 -66
  105. package/lib/components/MemberSignatures.js.map +1 -1
  106. package/lib/components/MemberSources.d.ts +7 -0
  107. package/lib/components/MemberSources.d.ts.map +1 -0
  108. package/lib/components/MemberSources.js +10 -34
  109. package/lib/components/MemberSources.js.map +1 -1
  110. package/lib/components/Members.d.ts +6 -0
  111. package/lib/components/Members.d.ts.map +1 -0
  112. package/lib/components/Members.js +29 -49
  113. package/lib/components/Members.js.map +1 -1
  114. package/lib/components/MembersGroup.d.ts +6 -0
  115. package/lib/components/MembersGroup.d.ts.map +1 -0
  116. package/lib/components/MembersGroup.js +16 -40
  117. package/lib/components/MembersGroup.js.map +1 -1
  118. package/lib/components/Parameter.d.ts +6 -0
  119. package/lib/components/Parameter.d.ts.map +1 -0
  120. package/lib/components/Parameter.js +35 -171
  121. package/lib/components/Parameter.js.map +1 -1
  122. package/lib/components/Reflection.d.ts +6 -0
  123. package/lib/components/Reflection.d.ts.map +1 -0
  124. package/lib/components/Reflection.js +29 -132
  125. package/lib/components/Reflection.js.map +1 -1
  126. package/lib/components/SourceLink.d.ts +10 -0
  127. package/lib/components/SourceLink.d.ts.map +1 -0
  128. package/lib/components/SourceLink.js +16 -36
  129. package/lib/components/SourceLink.js.map +1 -1
  130. package/lib/components/Type.d.ts +12 -0
  131. package/lib/components/Type.d.ts.map +1 -0
  132. package/lib/components/Type.js +142 -464
  133. package/lib/components/Type.js.map +1 -1
  134. package/lib/components/TypeAndParent.d.ts +6 -0
  135. package/lib/components/TypeAndParent.d.ts.map +1 -0
  136. package/lib/components/TypeAndParent.js +11 -27
  137. package/lib/components/TypeAndParent.js.map +1 -1
  138. package/lib/components/TypeParameters.d.ts +6 -0
  139. package/lib/components/TypeParameters.d.ts.map +1 -0
  140. package/lib/components/TypeParameters.js +10 -38
  141. package/lib/components/TypeParameters.js.map +1 -1
  142. package/lib/components/TypeParametersGeneric.d.ts +6 -0
  143. package/lib/components/TypeParametersGeneric.d.ts.map +1 -0
  144. package/lib/components/TypeParametersGeneric.js +8 -27
  145. package/lib/components/TypeParametersGeneric.js.map +1 -1
  146. package/lib/components/VersionBanner.d.ts +2 -0
  147. package/lib/components/VersionBanner.d.ts.map +1 -0
  148. package/lib/components/VersionBanner.js +18 -49
  149. package/lib/components/VersionBanner.js.map +1 -1
  150. package/lib/hooks/useBreadcrumbs.d.ts +2 -0
  151. package/lib/hooks/useBreadcrumbs.d.ts.map +1 -0
  152. package/lib/hooks/useBreadcrumbs.js +5 -8
  153. package/lib/hooks/useBreadcrumbs.js.map +1 -1
  154. package/lib/hooks/useGitRefName.d.ts +2 -0
  155. package/lib/hooks/useGitRefName.d.ts.map +1 -0
  156. package/lib/hooks/useGitRefName.js +5 -8
  157. package/lib/hooks/useGitRefName.js.map +1 -1
  158. package/lib/hooks/useMinimalLayout.d.ts +2 -0
  159. package/lib/hooks/useMinimalLayout.d.ts.map +1 -0
  160. package/lib/hooks/useMinimalLayout.js +5 -8
  161. package/lib/hooks/useMinimalLayout.js.map +1 -1
  162. package/lib/hooks/useReflection.d.ts +4 -0
  163. package/lib/hooks/useReflection.d.ts.map +1 -0
  164. package/lib/hooks/useReflection.js +15 -21
  165. package/lib/hooks/useReflection.js.map +1 -1
  166. package/lib/hooks/useReflectionMap.d.ts +3 -0
  167. package/lib/hooks/useReflectionMap.d.ts.map +1 -0
  168. package/lib/hooks/useReflectionMap.js +5 -8
  169. package/lib/hooks/useReflectionMap.js.map +1 -1
  170. package/lib/index.d.ts +4 -0
  171. package/lib/index.d.ts.map +1 -0
  172. package/lib/index.js +349 -361
  173. package/lib/index.js.map +1 -1
  174. package/lib/markdownLoader.d.ts +6 -0
  175. package/lib/markdownLoader.d.ts.map +1 -0
  176. package/lib/markdownLoader.js +6 -10
  177. package/lib/markdownLoader.js.map +1 -1
  178. package/lib/plugin/data.d.ts +21 -0
  179. package/lib/plugin/data.d.ts.map +1 -0
  180. package/lib/plugin/data.js +391 -429
  181. package/lib/plugin/data.js.map +1 -1
  182. package/lib/plugin/python/consts.d.ts +35 -0
  183. package/lib/plugin/python/consts.d.ts.map +1 -0
  184. package/lib/plugin/python/consts.js +44 -44
  185. package/lib/plugin/python/consts.js.map +1 -1
  186. package/lib/plugin/python/index.d.ts +12 -0
  187. package/lib/plugin/python/index.d.ts.map +1 -0
  188. package/lib/plugin/python/index.js +25 -36
  189. package/lib/plugin/python/index.js.map +1 -1
  190. package/lib/plugin/python/inheritance.d.ts +42 -0
  191. package/lib/plugin/python/inheritance.d.ts.map +1 -0
  192. package/lib/plugin/python/inheritance.js +148 -153
  193. package/lib/plugin/python/inheritance.js.map +1 -1
  194. package/lib/plugin/python/packageVersions.d.ts +7 -0
  195. package/lib/plugin/python/packageVersions.d.ts.map +1 -0
  196. package/lib/plugin/python/packageVersions.js +30 -38
  197. package/lib/plugin/python/packageVersions.js.map +1 -1
  198. package/lib/plugin/python/transformation.d.ts +80 -0
  199. package/lib/plugin/python/transformation.d.ts.map +1 -0
  200. package/lib/plugin/python/transformation.js +350 -392
  201. package/lib/plugin/python/transformation.js.map +1 -1
  202. package/lib/plugin/python/type-parsing/index.d.ts +34 -0
  203. package/lib/plugin/python/type-parsing/index.d.ts.map +1 -0
  204. package/lib/plugin/python/type-parsing/index.js +78 -85
  205. package/lib/plugin/python/type-parsing/index.js.map +1 -1
  206. package/lib/plugin/python/types.d.ts +112 -0
  207. package/lib/plugin/python/types.d.ts.map +1 -0
  208. package/lib/plugin/python/types.js +2 -2
  209. package/lib/plugin/python/types.js.map +1 -1
  210. package/lib/plugin/python/utils.d.ts +40 -0
  211. package/lib/plugin/python/utils.d.ts.map +1 -0
  212. package/lib/plugin/python/utils.js +74 -73
  213. package/lib/plugin/python/utils.js.map +1 -1
  214. package/lib/plugin/sidebar.d.ts +6 -0
  215. package/lib/plugin/sidebar.d.ts.map +1 -0
  216. package/lib/plugin/sidebar.js +94 -96
  217. package/lib/plugin/sidebar.js.map +1 -1
  218. package/lib/plugin/structure/0.23.d.ts +3 -0
  219. package/lib/plugin/structure/0.23.d.ts.map +1 -0
  220. package/lib/plugin/structure/0.23.js +33 -41
  221. package/lib/plugin/structure/0.23.js.map +1 -1
  222. package/lib/plugin/url.d.ts +6 -0
  223. package/lib/plugin/url.d.ts.map +1 -0
  224. package/lib/plugin/url.js +36 -46
  225. package/lib/plugin/url.js.map +1 -1
  226. package/lib/plugin/version.d.ts +5 -0
  227. package/lib/plugin/version.d.ts.map +1 -0
  228. package/lib/plugin/version.js +73 -78
  229. package/lib/plugin/version.js.map +1 -1
  230. package/lib/types.d.ts +142 -0
  231. package/lib/types.d.ts.map +1 -0
  232. package/lib/types.js +2 -2
  233. package/lib/types.js.map +1 -1
  234. package/lib/utils/helpers.d.ts +2 -0
  235. package/lib/utils/helpers.d.ts.map +1 -0
  236. package/lib/utils/helpers.js +5 -7
  237. package/lib/utils/helpers.js.map +1 -1
  238. package/lib/utils/hierarchy.d.ts +8 -0
  239. package/lib/utils/hierarchy.d.ts.map +1 -0
  240. package/lib/utils/hierarchy.js +31 -33
  241. package/lib/utils/hierarchy.js.map +1 -1
  242. package/lib/utils/icons.d.ts +5 -0
  243. package/lib/utils/icons.d.ts.map +1 -0
  244. package/lib/utils/icons.js +82 -114
  245. package/lib/utils/icons.js.map +1 -1
  246. package/lib/utils/links.d.ts +2 -0
  247. package/lib/utils/links.d.ts.map +1 -0
  248. package/lib/utils/links.js +24 -41
  249. package/lib/utils/links.js.map +1 -1
  250. package/lib/utils/markdown.d.ts +4 -0
  251. package/lib/utils/markdown.d.ts.map +1 -0
  252. package/lib/utils/markdown.js +45 -54
  253. package/lib/utils/markdown.js.map +1 -1
  254. package/lib/utils/reexports.d.ts +5 -0
  255. package/lib/utils/reexports.d.ts.map +1 -0
  256. package/lib/utils/reexports.js +90 -90
  257. package/lib/utils/reexports.js.map +1 -1
  258. package/lib/utils/removeScopes.d.ts +2 -0
  259. package/lib/utils/removeScopes.d.ts.map +1 -0
  260. package/lib/utils/removeScopes.js +7 -0
  261. package/lib/utils/removeScopes.js.map +1 -0
  262. package/lib/utils/visibility.d.ts +6 -0
  263. package/lib/utils/visibility.d.ts.map +1 -0
  264. package/lib/utils/visibility.js +14 -19
  265. package/lib/utils/visibility.js.map +1 -1
  266. package/package.json +24 -17
  267. package/src/components/ApiIndex.tsx +1 -1
  268. package/src/index.ts +2 -2
  269. package/src/plugin/data.ts +3 -3
  270. package/src/plugin/python/index.ts +3 -3
  271. package/src/plugin/python/packageVersions.ts +3 -3
  272. package/src/plugin/sidebar.ts +1 -1
  273. package/src/plugin/url.ts +1 -1
  274. package/src/plugin/version.ts +1 -1
  275. package/src/utils/links.ts +1 -12
  276. package/src/utils/removeScopes.ts +10 -0
  277. /package/{assets/styles-8ad572ec.css → lib/components/styles.css} +0 -0
@@ -1,134 +1,31 @@
1
- 'use strict';
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
- function Reflection({
20
- reflection
21
- }) {
22
- const hierarchy$1 = react.useMemo(() => hierarchy.createHierarchy(reflection), [reflection]);
23
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
24
- children: [CommentBadges.isCommentWithModifiers(reflection.comment) && /*#__PURE__*/jsxRuntime.jsx(CommentBadges.CommentBadges, {
25
- comment: reflection.comment
26
- }), Comment.hasComment(reflection.comment) && /*#__PURE__*/jsxRuntime.jsx(Comment.Comment, {
27
- root: true,
28
- comment: reflection.comment
29
- }), 'typeParameter' in reflection && reflection.typeParameter && reflection.typeParameter.length > 0 &&
30
- // Class
31
- reflection.kind !== 128 && /*#__PURE__*/jsxRuntime.jsxs("section", {
32
- className: "tsd-panel",
33
- children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
34
- className: "tsd-panel-header",
35
- children: "Type parameters"
36
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
37
- className: "tsd-panel-content",
38
- children: /*#__PURE__*/jsxRuntime.jsx(TypeParameters.TypeParameters, {
39
- params: reflection.typeParameter
40
- })
41
- })]
42
- }), ('extendedBy' in reflection && reflection.extendedBy && reflection.extendedBy.length > 0 || 'extendedTypes' in reflection && reflection.extendedTypes && reflection.extendedTypes.length > 0) && /*#__PURE__*/jsxRuntime.jsxs("section", {
43
- className: "tsd-panel",
44
- children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
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
- exports.Reflection = Reflection;
134
- //# sourceMappingURL=Reflection.js.map
31
+ //# sourceMappingURL=Reflection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Reflection.js","sources":["../../src/components/Reflection.tsx"],"sourcesContent":null,"names":["hierarchy","useMemo","createHierarchy","_jsxs","_Fragment","isCommentWithModifiers","_jsx","CommentBadges","hasComment","Comment","TypeParameters","Hierarchy","Type","MemberSignatures","Icon","Parameter","extractDeclarationFromType","Index","Members"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AAcO,SAAS,UAAU,CAAC;AAC3B,EAAE,UAAU;AACZ,CAAC,EAAE;AACH,EAAE,MAAMA,WAAS,GAAGC,aAAO,CAAC,MAAMC,yBAAe,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC7E,EAAE,oBAAoBC,eAAK,CAACC,mBAAS,EAAE;AACvC,IAAI,QAAQ,EAAE,CAACC,oCAAsB,CAAC,UAAU,CAAC,OAAO,CAAC,iBAAiBC,cAAI,CAACC,2BAAa,EAAE;AAC9F,MAAM,OAAO,EAAE,UAAU,CAAC,OAAO;AACjC,KAAK,CAAC,EAAEC,kBAAU,CAAC,UAAU,CAAC,OAAO,CAAC,iBAAiBF,cAAI,CAACG,eAAO,EAAE;AACrE,MAAM,IAAI,EAAE,IAAI;AAChB,MAAM,OAAO,EAAE,UAAU,CAAC,OAAO;AACjC,KAAK,CAAC,EAAE,eAAe,IAAI,UAAU,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;AACxG;AACA,IAAI,UAAU,CAAC,IAAI,KAAK,GAAG,iBAAiBN,eAAK,CAAC,SAAS,EAAE;AAC7D,MAAM,SAAS,EAAE,WAAW;AAC5B,MAAM,QAAQ,EAAE,cAAcG,cAAI,CAAC,IAAI,EAAE;AACzC,QAAQ,SAAS,EAAE,kBAAkB;AACrC,QAAQ,QAAQ,EAAE,iBAAiB;AACnC,OAAO,CAAC,eAAeA,cAAI,CAAC,KAAK,EAAE;AACnC,QAAQ,SAAS,EAAE,mBAA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AAU,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
- 'use strict';
2
-
3
- const useDocusaurusContext = require('@docusaurus/useDocusaurusContext');
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
- // Always link the source file
12
- return url.replace(/\/(dts|dist|lib|build|es|esm|cjs|mjs)\//, '/src/');
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
- return source.url ?? `https://${siteConfig.githubHost}${siteConfig.githubPort ? `:${siteConfig.githubPort}` : ''}/${siteConfig.organizationName}/${siteConfig.projectName}/blob/${source.gitRevision ?? gitRefName}/${replaceWithSrc(source.fileName)}#L${source.line}`;
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
- sources = []
19
- }) {
20
- const _useDocusaurusContext = useDocusaurusContext__default.default(),
21
- siteConfig = _useDocusaurusContext.siteConfig;
22
- const gitRefName = useGitRefName.useGitRefName();
23
- if (sources.length === 0) {
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
- exports.SourceLink = SourceLink;
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"],"sourcesContent":null,"names":["useDocusaurusContext","useGitRefName","_jsx","_Fragment"],"mappings":";;;;;;;;;;AAGA,SAAS,cAAc,CAAC,GAAG,EAAE;AAC7B;AACA,EAAE,OAAO,GAAG,CAAC,OAAO,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAC;AACzE,CAAC;AACM,SAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE;AACjE,EAAE,OAAO,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,IAAI,UAAU,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1Q,CAAC;AACM,SAAS,UAAU,CAAC;AAC3B,EAAE,OAAO,GAAG,EAAE;AACd,CAAC,EAAE;AACH,EAAE,MAAM;AACR,IAAI,UAAU;AACd,GAAG,GAAGA,qCAAoB,EAAE,CAAC;AAC7B,EAAE,MAAM,UAAU,GAAGC,2BAAa,EAAE,CAAC;AACrC,EAAE,IAAI,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AAC,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"}