@apify/docusaurus-plugin-typedoc-api 4.2.11-0 → 4.2.11-1

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 (341) hide show
  1. package/lib/components/AnchorLink.js.map +1 -0
  2. package/lib/components/ApiChangelog.js.map +1 -0
  3. package/lib/components/ApiDataContext.js.map +1 -0
  4. package/lib/components/ApiIndex.js.map +1 -0
  5. package/lib/components/ApiItem.js.map +1 -0
  6. package/lib/components/ApiItemLayout.js.map +1 -0
  7. package/lib/components/ApiOptionsLayout.js.map +1 -0
  8. package/lib/components/ApiPage.js.map +1 -0
  9. package/lib/components/Breadcrumb.js.map +1 -0
  10. package/lib/components/Comment.js.map +1 -0
  11. package/lib/components/CommentBadges.js.map +1 -0
  12. package/lib/components/DefaultValue.js.map +1 -0
  13. package/lib/components/Flags.js.map +1 -0
  14. package/lib/components/Footer.js.map +1 -0
  15. package/lib/components/Hierarchy.js.map +1 -0
  16. package/lib/components/Icon.js.map +1 -0
  17. package/lib/components/Index.js.map +1 -0
  18. package/lib/components/Markdown.js.map +1 -0
  19. package/lib/components/Member.js.map +1 -0
  20. package/lib/components/MemberDeclaration.js.map +1 -0
  21. package/lib/components/MemberGetterSetter.js.map +1 -0
  22. package/lib/components/MemberReference.js.map +1 -0
  23. package/lib/components/MemberSignatureBody.js.map +1 -0
  24. package/lib/components/MemberSignatureTitle.js.map +1 -0
  25. package/lib/components/MemberSignatures.js.map +1 -0
  26. package/lib/components/MemberSources.js.map +1 -0
  27. package/lib/components/Members.js.map +1 -0
  28. package/lib/components/MembersGroup.js.map +1 -0
  29. package/lib/components/Parameter.js.map +1 -0
  30. package/lib/components/Reflection.js.map +1 -0
  31. package/lib/components/SourceLink.js.map +1 -0
  32. package/lib/components/Type.js.map +1 -0
  33. package/lib/components/TypeAndParent.js.map +1 -0
  34. package/lib/components/TypeParameters.js.map +1 -0
  35. package/lib/components/TypeParametersGeneric.js.map +1 -0
  36. package/lib/components/VersionBanner.js.map +1 -0
  37. package/lib/hooks/useBreadcrumbs.js.map +1 -0
  38. package/lib/hooks/useGitRefName.js.map +1 -0
  39. package/lib/hooks/useMinimalLayout.js.map +1 -0
  40. package/lib/hooks/useReflection.js.map +1 -0
  41. package/lib/hooks/useReflectionMap.js.map +1 -0
  42. package/lib/index.js.map +1 -0
  43. package/lib/markdownLoader.js.map +1 -0
  44. package/lib/plugin/data.js.map +1 -0
  45. package/lib/plugin/python/consts.js.map +1 -0
  46. package/lib/plugin/python/index.js.map +1 -0
  47. package/lib/plugin/python/inheritance.js.map +1 -0
  48. package/lib/plugin/python/packageVersions.js.map +1 -0
  49. package/lib/plugin/python/transformation.js.map +1 -0
  50. package/lib/plugin/python/type-parsing/index.js.map +1 -0
  51. package/lib/plugin/python/utils.js.map +1 -0
  52. package/lib/plugin/sidebar.js.map +1 -0
  53. package/lib/plugin/structure/0.23.js.map +1 -0
  54. package/lib/plugin/url.js.map +1 -0
  55. package/lib/plugin/version.js.map +1 -0
  56. package/lib/utils/helpers.js.map +1 -0
  57. package/lib/utils/hierarchy.js.map +1 -0
  58. package/lib/utils/icons.js.map +1 -0
  59. package/lib/utils/links.js.map +1 -0
  60. package/lib/utils/markdown.js.map +1 -0
  61. package/lib/{packages/plugin/src/utils → utils}/reexports.js +2 -2
  62. package/lib/utils/reexports.js.map +1 -0
  63. package/lib/utils/visibility.js.map +1 -0
  64. package/package.json +3 -2
  65. package/lib/_virtual/_commonjsHelpers.js +0 -44
  66. package/lib/_virtual/_commonjsHelpers.js.map +0 -1
  67. package/lib/node_modules/boolbase/index.js +0 -18
  68. package/lib/node_modules/boolbase/index.js.map +0 -1
  69. package/lib/node_modules/cheerio/lib/esm/api/attributes.js +0 -568
  70. package/lib/node_modules/cheerio/lib/esm/api/attributes.js.map +0 -1
  71. package/lib/node_modules/cheerio/lib/esm/api/css.js +0 -113
  72. package/lib/node_modules/cheerio/lib/esm/api/css.js.map +0 -1
  73. package/lib/node_modules/cheerio/lib/esm/api/forms.js +0 -92
  74. package/lib/node_modules/cheerio/lib/esm/api/forms.js.map +0 -1
  75. package/lib/node_modules/cheerio/lib/esm/api/manipulation.js +0 -807
  76. package/lib/node_modules/cheerio/lib/esm/api/manipulation.js.map +0 -1
  77. package/lib/node_modules/cheerio/lib/esm/api/traversing.js +0 -842
  78. package/lib/node_modules/cheerio/lib/esm/api/traversing.js.map +0 -1
  79. package/lib/node_modules/cheerio/lib/esm/cheerio.js +0 -41
  80. package/lib/node_modules/cheerio/lib/esm/cheerio.js.map +0 -1
  81. package/lib/node_modules/cheerio/lib/esm/index.js +0 -112
  82. package/lib/node_modules/cheerio/lib/esm/index.js.map +0 -1
  83. package/lib/node_modules/cheerio/lib/esm/load.js +0 -110
  84. package/lib/node_modules/cheerio/lib/esm/load.js.map +0 -1
  85. package/lib/node_modules/cheerio/lib/esm/options.js +0 -32
  86. package/lib/node_modules/cheerio/lib/esm/options.js.map +0 -1
  87. package/lib/node_modules/cheerio/lib/esm/parse.js +0 -78
  88. package/lib/node_modules/cheerio/lib/esm/parse.js.map +0 -1
  89. package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js +0 -57
  90. package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js.map +0 -1
  91. package/lib/node_modules/cheerio/lib/esm/static.js +0 -191
  92. package/lib/node_modules/cheerio/lib/esm/static.js.map +0 -1
  93. package/lib/node_modules/cheerio/lib/esm/utils.js +0 -105
  94. package/lib/node_modules/cheerio/lib/esm/utils.js.map +0 -1
  95. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js +0 -381
  96. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js.map +0 -1
  97. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js +0 -888
  98. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +0 -1
  99. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js +0 -69
  100. package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js.map +0 -1
  101. package/lib/node_modules/cheerio-select/lib/esm/helpers.js +0 -22
  102. package/lib/node_modules/cheerio-select/lib/esm/helpers.js.map +0 -1
  103. package/lib/node_modules/cheerio-select/lib/esm/index.js +0 -252
  104. package/lib/node_modules/cheerio-select/lib/esm/index.js.map +0 -1
  105. package/lib/node_modules/cheerio-select/lib/esm/positionals.js +0 -37
  106. package/lib/node_modules/cheerio-select/lib/esm/positionals.js.map +0 -1
  107. package/lib/node_modules/css-select/lib/esm/attributes.js +0 -155
  108. package/lib/node_modules/css-select/lib/esm/attributes.js.map +0 -1
  109. package/lib/node_modules/css-select/lib/esm/compile.js +0 -118
  110. package/lib/node_modules/css-select/lib/esm/compile.js.map +0 -1
  111. package/lib/node_modules/css-select/lib/esm/general.js +0 -155
  112. package/lib/node_modules/css-select/lib/esm/general.js.map +0 -1
  113. package/lib/node_modules/css-select/lib/esm/index.js +0 -115
  114. package/lib/node_modules/css-select/lib/esm/index.js.map +0 -1
  115. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +0 -38
  116. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +0 -1
  117. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +0 -151
  118. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +0 -1
  119. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js +0 -47
  120. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +0 -1
  121. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +0 -88
  122. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +0 -1
  123. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +0 -85
  124. package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +0 -1
  125. package/lib/node_modules/css-select/lib/esm/sort.js +0 -70
  126. package/lib/node_modules/css-select/lib/esm/sort.js.map +0 -1
  127. package/lib/node_modules/css-what/lib/es/index.js +0 -18
  128. package/lib/node_modules/css-what/lib/es/index.js.map +0 -1
  129. package/lib/node_modules/css-what/lib/es/parse.js +0 -397
  130. package/lib/node_modules/css-what/lib/es/parse.js.map +0 -1
  131. package/lib/node_modules/css-what/lib/es/stringify.js +0 -95
  132. package/lib/node_modules/css-what/lib/es/stringify.js.map +0 -1
  133. package/lib/node_modules/css-what/lib/es/types.js +0 -43
  134. package/lib/node_modules/css-what/lib/es/types.js.map +0 -1
  135. package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -7
  136. package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js.map +0 -1
  137. package/lib/node_modules/dom-serializer/lib/esm/index.js +0 -146
  138. package/lib/node_modules/dom-serializer/lib/esm/index.js.map +0 -1
  139. package/lib/node_modules/domelementtype/lib/esm/index.js +0 -62
  140. package/lib/node_modules/domelementtype/lib/esm/index.js.map +0 -1
  141. package/lib/node_modules/domhandler/lib/esm/index.js +0 -166
  142. package/lib/node_modules/domhandler/lib/esm/index.js.map +0 -1
  143. package/lib/node_modules/domhandler/lib/esm/node.js +0 -352
  144. package/lib/node_modules/domhandler/lib/esm/node.js.map +0 -1
  145. package/lib/node_modules/domutils/lib/esm/feeds.js +0 -176
  146. package/lib/node_modules/domutils/lib/esm/feeds.js.map +0 -1
  147. package/lib/node_modules/domutils/lib/esm/helpers.js +0 -142
  148. package/lib/node_modules/domutils/lib/esm/helpers.js.map +0 -1
  149. package/lib/node_modules/domutils/lib/esm/index.js +0 -56
  150. package/lib/node_modules/domutils/lib/esm/index.js.map +0 -1
  151. package/lib/node_modules/domutils/lib/esm/legacy.js +0 -144
  152. package/lib/node_modules/domutils/lib/esm/legacy.js.map +0 -1
  153. package/lib/node_modules/domutils/lib/esm/manipulation.js +0 -137
  154. package/lib/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
  155. package/lib/node_modules/domutils/lib/esm/querying.js +0 -149
  156. package/lib/node_modules/domutils/lib/esm/querying.js.map +0 -1
  157. package/lib/node_modules/domutils/lib/esm/stringify.js +0 -80
  158. package/lib/node_modules/domutils/lib/esm/stringify.js.map +0 -1
  159. package/lib/node_modules/domutils/lib/esm/traversal.js +0 -128
  160. package/lib/node_modules/domutils/lib/esm/traversal.js.map +0 -1
  161. package/lib/node_modules/entities/lib/esm/decode.js +0 -495
  162. package/lib/node_modules/entities/lib/esm/decode.js.map +0 -1
  163. package/lib/node_modules/entities/lib/esm/decode_codepoint.js +0 -52
  164. package/lib/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  165. package/lib/node_modules/entities/lib/esm/encode.js +0 -68
  166. package/lib/node_modules/entities/lib/esm/encode.js.map +0 -1
  167. package/lib/node_modules/entities/lib/esm/escape.js +0 -103
  168. package/lib/node_modules/entities/lib/esm/escape.js.map +0 -1
  169. package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -8
  170. package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  171. package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -8
  172. package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  173. package/lib/node_modules/entities/lib/esm/generated/encode-html.js +0 -264
  174. package/lib/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  175. package/lib/node_modules/entities/lib/esm/index.js +0 -122
  176. package/lib/node_modules/entities/lib/esm/index.js.map +0 -1
  177. package/lib/node_modules/nth-check/lib/esm/compile.js +0 -111
  178. package/lib/node_modules/nth-check/lib/esm/compile.js.map +0 -1
  179. package/lib/node_modules/nth-check/lib/esm/index.js +0 -73
  180. package/lib/node_modules/nth-check/lib/esm/index.js.map +0 -1
  181. package/lib/node_modules/nth-check/lib/esm/parse.js +0 -71
  182. package/lib/node_modules/nth-check/lib/esm/parse.js.map +0 -1
  183. package/lib/node_modules/parse5/dist/common/doctype.js +0 -49
  184. package/lib/node_modules/parse5/dist/common/doctype.js.map +0 -1
  185. package/lib/node_modules/parse5/dist/common/error-codes.js +0 -66
  186. package/lib/node_modules/parse5/dist/common/error-codes.js.map +0 -1
  187. package/lib/node_modules/parse5/dist/common/foreign-content.js +0 -134
  188. package/lib/node_modules/parse5/dist/common/foreign-content.js.map +0 -1
  189. package/lib/node_modules/parse5/dist/common/html.js +0 -316
  190. package/lib/node_modules/parse5/dist/common/html.js.map +0 -1
  191. package/lib/node_modules/parse5/dist/common/token.js +0 -24
  192. package/lib/node_modules/parse5/dist/common/token.js.map +0 -1
  193. package/lib/node_modules/parse5/dist/common/unicode.js +0 -72
  194. package/lib/node_modules/parse5/dist/common/unicode.js.map +0 -1
  195. package/lib/node_modules/parse5/dist/index.js +0 -58
  196. package/lib/node_modules/parse5/dist/index.js.map +0 -1
  197. package/lib/node_modules/parse5/dist/parser/formatting-element-list.js +0 -115
  198. package/lib/node_modules/parse5/dist/parser/formatting-element-list.js.map +0 -1
  199. package/lib/node_modules/parse5/dist/parser/index.js +0 -3387
  200. package/lib/node_modules/parse5/dist/parser/index.js.map +0 -1
  201. package/lib/node_modules/parse5/dist/parser/open-element-stack.js +0 -286
  202. package/lib/node_modules/parse5/dist/parser/open-element-stack.js.map +0 -1
  203. package/lib/node_modules/parse5/dist/serializer/index.js +0 -160
  204. package/lib/node_modules/parse5/dist/serializer/index.js.map +0 -1
  205. package/lib/node_modules/parse5/dist/tokenizer/index.js +0 -3142
  206. package/lib/node_modules/parse5/dist/tokenizer/index.js.map +0 -1
  207. package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -195
  208. package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js.map +0 -1
  209. package/lib/node_modules/parse5/dist/tree-adapters/default.js +0 -180
  210. package/lib/node_modules/parse5/dist/tree-adapters/default.js.map +0 -1
  211. package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +0 -218
  212. package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js.map +0 -1
  213. package/lib/packages/plugin/src/components/AnchorLink.js.map +0 -1
  214. package/lib/packages/plugin/src/components/ApiChangelog.js.map +0 -1
  215. package/lib/packages/plugin/src/components/ApiDataContext.js.map +0 -1
  216. package/lib/packages/plugin/src/components/ApiIndex.js.map +0 -1
  217. package/lib/packages/plugin/src/components/ApiItem.js.map +0 -1
  218. package/lib/packages/plugin/src/components/ApiItemLayout.js.map +0 -1
  219. package/lib/packages/plugin/src/components/ApiOptionsLayout.js.map +0 -1
  220. package/lib/packages/plugin/src/components/ApiPage.js.map +0 -1
  221. package/lib/packages/plugin/src/components/Breadcrumb.js.map +0 -1
  222. package/lib/packages/plugin/src/components/Comment.js.map +0 -1
  223. package/lib/packages/plugin/src/components/CommentBadges.js.map +0 -1
  224. package/lib/packages/plugin/src/components/DefaultValue.js.map +0 -1
  225. package/lib/packages/plugin/src/components/Flags.js.map +0 -1
  226. package/lib/packages/plugin/src/components/Footer.js.map +0 -1
  227. package/lib/packages/plugin/src/components/Hierarchy.js.map +0 -1
  228. package/lib/packages/plugin/src/components/Icon.js.map +0 -1
  229. package/lib/packages/plugin/src/components/Index.js.map +0 -1
  230. package/lib/packages/plugin/src/components/Markdown.js.map +0 -1
  231. package/lib/packages/plugin/src/components/Member.js.map +0 -1
  232. package/lib/packages/plugin/src/components/MemberDeclaration.js.map +0 -1
  233. package/lib/packages/plugin/src/components/MemberGetterSetter.js.map +0 -1
  234. package/lib/packages/plugin/src/components/MemberReference.js.map +0 -1
  235. package/lib/packages/plugin/src/components/MemberSignatureBody.js.map +0 -1
  236. package/lib/packages/plugin/src/components/MemberSignatureTitle.js.map +0 -1
  237. package/lib/packages/plugin/src/components/MemberSignatures.js.map +0 -1
  238. package/lib/packages/plugin/src/components/MemberSources.js.map +0 -1
  239. package/lib/packages/plugin/src/components/Members.js.map +0 -1
  240. package/lib/packages/plugin/src/components/MembersGroup.js.map +0 -1
  241. package/lib/packages/plugin/src/components/Parameter.js.map +0 -1
  242. package/lib/packages/plugin/src/components/Reflection.js.map +0 -1
  243. package/lib/packages/plugin/src/components/SourceLink.js.map +0 -1
  244. package/lib/packages/plugin/src/components/Type.js.map +0 -1
  245. package/lib/packages/plugin/src/components/TypeAndParent.js.map +0 -1
  246. package/lib/packages/plugin/src/components/TypeParameters.js.map +0 -1
  247. package/lib/packages/plugin/src/components/TypeParametersGeneric.js.map +0 -1
  248. package/lib/packages/plugin/src/components/VersionBanner.js.map +0 -1
  249. package/lib/packages/plugin/src/hooks/useBreadcrumbs.js.map +0 -1
  250. package/lib/packages/plugin/src/hooks/useGitRefName.js.map +0 -1
  251. package/lib/packages/plugin/src/hooks/useMinimalLayout.js.map +0 -1
  252. package/lib/packages/plugin/src/hooks/useReflection.js.map +0 -1
  253. package/lib/packages/plugin/src/hooks/useReflectionMap.js.map +0 -1
  254. package/lib/packages/plugin/src/index.js.map +0 -1
  255. package/lib/packages/plugin/src/markdownLoader.js.map +0 -1
  256. package/lib/packages/plugin/src/plugin/data.js.map +0 -1
  257. package/lib/packages/plugin/src/plugin/python/consts.js.map +0 -1
  258. package/lib/packages/plugin/src/plugin/python/index.js.map +0 -1
  259. package/lib/packages/plugin/src/plugin/python/inheritance.js.map +0 -1
  260. package/lib/packages/plugin/src/plugin/python/packageVersions.js.map +0 -1
  261. package/lib/packages/plugin/src/plugin/python/transformation.js.map +0 -1
  262. package/lib/packages/plugin/src/plugin/python/type-parsing/index.js.map +0 -1
  263. package/lib/packages/plugin/src/plugin/python/utils.js.map +0 -1
  264. package/lib/packages/plugin/src/plugin/sidebar.js.map +0 -1
  265. package/lib/packages/plugin/src/plugin/structure/0.23.js.map +0 -1
  266. package/lib/packages/plugin/src/plugin/url.js.map +0 -1
  267. package/lib/packages/plugin/src/plugin/version.js.map +0 -1
  268. package/lib/packages/plugin/src/types.js +0 -2
  269. package/lib/packages/plugin/src/types.js.map +0 -1
  270. package/lib/packages/plugin/src/utils/helpers.js.map +0 -1
  271. package/lib/packages/plugin/src/utils/hierarchy.js.map +0 -1
  272. package/lib/packages/plugin/src/utils/icons.js.map +0 -1
  273. package/lib/packages/plugin/src/utils/links.js.map +0 -1
  274. package/lib/packages/plugin/src/utils/markdown.js.map +0 -1
  275. package/lib/packages/plugin/src/utils/reexports.js.map +0 -1
  276. package/lib/packages/plugin/src/utils/visibility.js.map +0 -1
  277. /package/lib/{packages/plugin/src/components → components}/AnchorLink.js +0 -0
  278. /package/lib/{packages/plugin/src/components → components}/ApiChangelog.js +0 -0
  279. /package/lib/{packages/plugin/src/components → components}/ApiDataContext.js +0 -0
  280. /package/lib/{packages/plugin/src/components → components}/ApiIndex.js +0 -0
  281. /package/lib/{packages/plugin/src/components → components}/ApiItem.js +0 -0
  282. /package/lib/{packages/plugin/src/components → components}/ApiItemLayout.js +0 -0
  283. /package/lib/{packages/plugin/src/components → components}/ApiOptionsLayout.js +0 -0
  284. /package/lib/{packages/plugin/src/components → components}/ApiPage.js +0 -0
  285. /package/lib/{packages/plugin/src/components → components}/Breadcrumb.js +0 -0
  286. /package/lib/{packages/plugin/src/components → components}/Comment.js +0 -0
  287. /package/lib/{packages/plugin/src/components → components}/CommentBadges.js +0 -0
  288. /package/lib/{packages/plugin/src/components → components}/DefaultValue.js +0 -0
  289. /package/lib/{packages/plugin/src/components → components}/Flags.js +0 -0
  290. /package/lib/{packages/plugin/src/components → components}/Footer.js +0 -0
  291. /package/lib/{packages/plugin/src/components → components}/Hierarchy.js +0 -0
  292. /package/lib/{packages/plugin/src/components → components}/Icon.js +0 -0
  293. /package/lib/{packages/plugin/src/components → components}/Index.js +0 -0
  294. /package/lib/{packages/plugin/src/components → components}/Markdown.js +0 -0
  295. /package/lib/{packages/plugin/src/components → components}/Member.js +0 -0
  296. /package/lib/{packages/plugin/src/components → components}/MemberDeclaration.js +0 -0
  297. /package/lib/{packages/plugin/src/components → components}/MemberGetterSetter.js +0 -0
  298. /package/lib/{packages/plugin/src/components → components}/MemberReference.js +0 -0
  299. /package/lib/{packages/plugin/src/components → components}/MemberSignatureBody.js +0 -0
  300. /package/lib/{packages/plugin/src/components → components}/MemberSignatureTitle.js +0 -0
  301. /package/lib/{packages/plugin/src/components → components}/MemberSignatures.js +0 -0
  302. /package/lib/{packages/plugin/src/components → components}/MemberSources.js +0 -0
  303. /package/lib/{packages/plugin/src/components → components}/Members.js +0 -0
  304. /package/lib/{packages/plugin/src/components → components}/MembersGroup.js +0 -0
  305. /package/lib/{packages/plugin/src/components → components}/Parameter.js +0 -0
  306. /package/lib/{packages/plugin/src/components → components}/Reflection.js +0 -0
  307. /package/lib/{packages/plugin/src/components → components}/SourceLink.js +0 -0
  308. /package/lib/{packages/plugin/src/components → components}/Type.js +0 -0
  309. /package/lib/{packages/plugin/src/components → components}/TypeAndParent.js +0 -0
  310. /package/lib/{packages/plugin/src/components → components}/TypeParameters.js +0 -0
  311. /package/lib/{packages/plugin/src/components → components}/TypeParametersGeneric.js +0 -0
  312. /package/lib/{packages/plugin/src/components → components}/VersionBanner.js +0 -0
  313. /package/lib/{packages/plugin/src/hooks → hooks}/useBreadcrumbs.js +0 -0
  314. /package/lib/{packages/plugin/src/hooks → hooks}/useGitRefName.js +0 -0
  315. /package/lib/{packages/plugin/src/hooks → hooks}/useMinimalLayout.js +0 -0
  316. /package/lib/{packages/plugin/src/hooks → hooks}/useReflection.js +0 -0
  317. /package/lib/{packages/plugin/src/hooks → hooks}/useReflectionMap.js +0 -0
  318. /package/lib/{packages/plugin/src/index.js → index.js} +0 -0
  319. /package/lib/{packages/plugin/src/markdownLoader.js → markdownLoader.js} +0 -0
  320. /package/lib/{packages/plugin/src/plugin → plugin}/data.js +0 -0
  321. /package/lib/{packages/plugin/src/plugin → plugin}/python/consts.js +0 -0
  322. /package/lib/{packages/plugin/src/plugin → plugin}/python/index.js +0 -0
  323. /package/lib/{packages/plugin/src/plugin → plugin}/python/inheritance.js +0 -0
  324. /package/lib/{packages/plugin/src/plugin → plugin}/python/packageVersions.js +0 -0
  325. /package/lib/{packages/plugin/src/plugin → plugin}/python/transformation.js +0 -0
  326. /package/lib/{packages/plugin/src/plugin → plugin}/python/type-parsing/index.js +0 -0
  327. /package/lib/{node_modules/cheerio/lib/esm → plugin/python}/types.js +0 -0
  328. /package/lib/{node_modules/cheerio/lib/esm → plugin/python}/types.js.map +0 -0
  329. /package/lib/{packages/plugin/src/plugin → plugin}/python/utils.js +0 -0
  330. /package/lib/{packages/plugin/src/plugin → plugin}/sidebar.js +0 -0
  331. /package/lib/{packages/plugin/src/plugin → plugin}/structure/0.23.js +0 -0
  332. /package/lib/{packages/plugin/src/plugin → plugin}/url.js +0 -0
  333. /package/lib/{packages/plugin/src/plugin → plugin}/version.js +0 -0
  334. /package/lib/{packages/plugin/src/plugin/python/types.js → types.js} +0 -0
  335. /package/lib/{packages/plugin/src/plugin/python/types.js.map → types.js.map} +0 -0
  336. /package/lib/{packages/plugin/src/utils → utils}/helpers.js +0 -0
  337. /package/lib/{packages/plugin/src/utils → utils}/hierarchy.js +0 -0
  338. /package/lib/{packages/plugin/src/utils → utils}/icons.js +0 -0
  339. /package/lib/{packages/plugin/src/utils → utils}/links.js +0 -0
  340. /package/lib/{packages/plugin/src/utils → utils}/markdown.js +0 -0
  341. /package/lib/{packages/plugin/src/utils → utils}/visibility.js +0 -0
@@ -1,842 +0,0 @@
1
- 'use strict';
2
-
3
- require('../../../../domhandler/lib/esm/index.js');
4
- const index$1 = require('../../../../cheerio-select/lib/esm/index.js');
5
- const utils = require('../utils.js');
6
- const _static = require('../static.js');
7
- require('../../../../domutils/lib/esm/index.js');
8
- const node = require('../../../../domhandler/lib/esm/node.js');
9
- const helpers = require('../../../../domutils/lib/esm/helpers.js');
10
- const traversal = require('../../../../domutils/lib/esm/traversal.js');
11
-
12
- /**
13
- * Methods for traversing the DOM structure.
14
- *
15
- * @module cheerio/traversing
16
- */
17
- const reSiblingSelector = /^\s*[~+]/;
18
- /**
19
- * Get the descendants of each element in the current set of matched elements,
20
- * filtered by a selector, jQuery object, or element.
21
- *
22
- * @category Traversing
23
- * @example
24
- *
25
- * ```js
26
- * $('#fruits').find('li').length;
27
- * //=> 3
28
- * $('#fruits').find($('.apple')).length;
29
- * //=> 1
30
- * ```
31
- *
32
- * @param selectorOrHaystack - Element to look for.
33
- * @returns The found elements.
34
- * @see {@link https://api.jquery.com/find/}
35
- */
36
- function find(selectorOrHaystack) {
37
- var _a;
38
- if (!selectorOrHaystack) {
39
- return this._make([]);
40
- }
41
- const context = this.toArray();
42
- if (typeof selectorOrHaystack !== 'string') {
43
- const haystack = utils.isCheerio(selectorOrHaystack) ? selectorOrHaystack.toArray() : [selectorOrHaystack];
44
- return this._make(haystack.filter(elem => context.some(node => _static.contains(node, elem))));
45
- }
46
- const elems = reSiblingSelector.test(selectorOrHaystack) ? context : this.children().toArray();
47
- const options = {
48
- context,
49
- root: (_a = this._root) === null || _a === void 0 ? void 0 : _a[0],
50
- // Pass options that are recognized by `cheerio-select`
51
- xmlMode: this.options.xmlMode,
52
- lowerCaseTags: this.options.lowerCaseTags,
53
- lowerCaseAttributeNames: this.options.lowerCaseAttributeNames,
54
- pseudos: this.options.pseudos,
55
- quirksMode: this.options.quirksMode
56
- };
57
- return this._make(index$1.select(selectorOrHaystack, elems, options));
58
- }
59
- /**
60
- * Creates a matcher, using a particular mapping function. Matchers provide a
61
- * function that finds elements using a generating function, supporting filtering.
62
- *
63
- * @private
64
- * @param matchMap - Mapping function.
65
- * @returns - Function for wrapping generating functions.
66
- */
67
- function _getMatcher(matchMap) {
68
- return function (fn, ...postFns) {
69
- return function (selector) {
70
- var _a;
71
- let matched = matchMap(fn, this);
72
- if (selector) {
73
- matched = filterArray(matched, selector, this.options.xmlMode, (_a = this._root) === null || _a === void 0 ? void 0 : _a[0]);
74
- }
75
- return this._make(
76
- // Post processing is only necessary if there is more than one element.
77
- this.length > 1 && matched.length > 1 ? postFns.reduce((elems, fn) => fn(elems), matched) : matched);
78
- };
79
- };
80
- }
81
- /** Matcher that adds multiple elements for each entry in the input. */
82
- const _matcher = _getMatcher((fn, elems) => {
83
- const ret = [];
84
- for (let i = 0; i < elems.length; i++) {
85
- const value = fn(elems[i]);
86
- ret.push(value);
87
- }
88
- return new Array().concat(...ret);
89
- });
90
- /** Matcher that adds at most one element for each entry in the input. */
91
- const _singleMatcher = _getMatcher((fn, elems) => {
92
- const ret = [];
93
- for (let i = 0; i < elems.length; i++) {
94
- const value = fn(elems[i]);
95
- if (value !== null) {
96
- ret.push(value);
97
- }
98
- }
99
- return ret;
100
- });
101
- /**
102
- * Matcher that supports traversing until a condition is met.
103
- *
104
- * @returns A function usable for `*Until` methods.
105
- */
106
- function _matchUntil(nextElem, ...postFns) {
107
- // We use a variable here that is used from within the matcher.
108
- let matches = null;
109
- const innerMatcher = _getMatcher((nextElem, elems) => {
110
- const matched = [];
111
- utils.domEach(elems, elem => {
112
- for (let next; next = nextElem(elem); elem = next) {
113
- // FIXME: `matched` might contain duplicates here and the index is too large.
114
- if (matches === null || matches === void 0 ? void 0 : matches(next, matched.length)) break;
115
- matched.push(next);
116
- }
117
- });
118
- return matched;
119
- })(nextElem, ...postFns);
120
- return function (selector, filterSelector) {
121
- // Override `matches` variable with the new target.
122
- matches = typeof selector === 'string' ? elem => index$1.is(elem, selector, this.options) : selector ? getFilterFn(selector) : null;
123
- const ret = innerMatcher.call(this, filterSelector);
124
- // Set `matches` to `null`, so we don't waste memory.
125
- matches = null;
126
- return ret;
127
- };
128
- }
129
- function _removeDuplicates(elems) {
130
- return Array.from(new Set(elems));
131
- }
132
- /**
133
- * Get the parent of each element in the current set of matched elements,
134
- * optionally filtered by a selector.
135
- *
136
- * @category Traversing
137
- * @example
138
- *
139
- * ```js
140
- * $('.pear').parent().attr('id');
141
- * //=> fruits
142
- * ```
143
- *
144
- * @param selector - If specified filter for parent.
145
- * @returns The parents.
146
- * @see {@link https://api.jquery.com/parent/}
147
- */
148
- const parent = _singleMatcher(({
149
- parent
150
- }) => parent && !node.isDocument(parent) ? parent : null, _removeDuplicates);
151
- /**
152
- * Get a set of parents filtered by `selector` of each element in the current
153
- * set of match elements.
154
- *
155
- * @category Traversing
156
- * @example
157
- *
158
- * ```js
159
- * $('.orange').parents().length;
160
- * //=> 2
161
- * $('.orange').parents('#fruits').length;
162
- * //=> 1
163
- * ```
164
- *
165
- * @param selector - If specified filter for parents.
166
- * @returns The parents.
167
- * @see {@link https://api.jquery.com/parents/}
168
- */
169
- const parents = _matcher(elem => {
170
- const matched = [];
171
- while (elem.parent && !node.isDocument(elem.parent)) {
172
- matched.push(elem.parent);
173
- elem = elem.parent;
174
- }
175
- return matched;
176
- }, helpers.uniqueSort, elems => elems.reverse());
177
- /**
178
- * Get the ancestors of each element in the current set of matched elements, up
179
- * to but not including the element matched by the selector, DOM node, or cheerio object.
180
- *
181
- * @category Traversing
182
- * @example
183
- *
184
- * ```js
185
- * $('.orange').parentsUntil('#food').length;
186
- * //=> 1
187
- * ```
188
- *
189
- * @param selector - Selector for element to stop at.
190
- * @param filterSelector - Optional filter for parents.
191
- * @returns The parents.
192
- * @see {@link https://api.jquery.com/parentsUntil/}
193
- */
194
- const parentsUntil = _matchUntil(({
195
- parent
196
- }) => parent && !node.isDocument(parent) ? parent : null, helpers.uniqueSort, elems => elems.reverse());
197
- /**
198
- * For each element in the set, get the first element that matches the selector
199
- * by testing the element itself and traversing up through its ancestors in the DOM tree.
200
- *
201
- * @category Traversing
202
- * @example
203
- *
204
- * ```js
205
- * $('.orange').closest();
206
- * //=> []
207
- *
208
- * $('.orange').closest('.apple');
209
- * // => []
210
- *
211
- * $('.orange').closest('li');
212
- * //=> [<li class="orange">Orange</li>]
213
- *
214
- * $('.orange').closest('#fruits');
215
- * //=> [<ul id="fruits"> ... </ul>]
216
- * ```
217
- *
218
- * @param selector - Selector for the element to find.
219
- * @returns The closest nodes.
220
- * @see {@link https://api.jquery.com/closest/}
221
- */
222
- function closest(selector) {
223
- var _a;
224
- const set = [];
225
- if (!selector) {
226
- return this._make(set);
227
- }
228
- const selectOpts = {
229
- xmlMode: this.options.xmlMode,
230
- root: (_a = this._root) === null || _a === void 0 ? void 0 : _a[0]
231
- };
232
- const selectFn = typeof selector === 'string' ? elem => index$1.is(elem, selector, selectOpts) : getFilterFn(selector);
233
- utils.domEach(this, elem => {
234
- while (elem && node.isTag(elem)) {
235
- if (selectFn(elem, 0)) {
236
- // Do not add duplicate elements to the set
237
- if (!set.includes(elem)) {
238
- set.push(elem);
239
- }
240
- break;
241
- }
242
- elem = elem.parent;
243
- }
244
- });
245
- return this._make(set);
246
- }
247
- /**
248
- * Gets the next sibling of the first selected element, optionally filtered by a selector.
249
- *
250
- * @category Traversing
251
- * @example
252
- *
253
- * ```js
254
- * $('.apple').next().hasClass('orange');
255
- * //=> true
256
- * ```
257
- *
258
- * @param selector - If specified filter for sibling.
259
- * @returns The next nodes.
260
- * @see {@link https://api.jquery.com/next/}
261
- */
262
- const next = _singleMatcher(elem => traversal.nextElementSibling(elem));
263
- /**
264
- * Gets all the following siblings of the first selected element, optionally
265
- * filtered by a selector.
266
- *
267
- * @category Traversing
268
- * @example
269
- *
270
- * ```js
271
- * $('.apple').nextAll();
272
- * //=> [<li class="orange">Orange</li>, <li class="pear">Pear</li>]
273
- * $('.apple').nextAll('.orange');
274
- * //=> [<li class="orange">Orange</li>]
275
- * ```
276
- *
277
- * @param selector - If specified filter for siblings.
278
- * @returns The next nodes.
279
- * @see {@link https://api.jquery.com/nextAll/}
280
- */
281
- const nextAll = _matcher(elem => {
282
- const matched = [];
283
- while (elem.next) {
284
- elem = elem.next;
285
- if (node.isTag(elem)) matched.push(elem);
286
- }
287
- return matched;
288
- }, _removeDuplicates);
289
- /**
290
- * Gets all the following siblings up to but not including the element matched
291
- * by the selector, optionally filtered by another selector.
292
- *
293
- * @category Traversing
294
- * @example
295
- *
296
- * ```js
297
- * $('.apple').nextUntil('.pear');
298
- * //=> [<li class="orange">Orange</li>]
299
- * ```
300
- *
301
- * @param selector - Selector for element to stop at.
302
- * @param filterSelector - If specified filter for siblings.
303
- * @returns The next nodes.
304
- * @see {@link https://api.jquery.com/nextUntil/}
305
- */
306
- const nextUntil = _matchUntil(el => traversal.nextElementSibling(el), _removeDuplicates);
307
- /**
308
- * Gets the previous sibling of the first selected element optionally filtered
309
- * by a selector.
310
- *
311
- * @category Traversing
312
- * @example
313
- *
314
- * ```js
315
- * $('.orange').prev().hasClass('apple');
316
- * //=> true
317
- * ```
318
- *
319
- * @param selector - If specified filter for siblings.
320
- * @returns The previous nodes.
321
- * @see {@link https://api.jquery.com/prev/}
322
- */
323
- const prev = _singleMatcher(elem => traversal.prevElementSibling(elem));
324
- /**
325
- * Gets all the preceding siblings of the first selected element, optionally
326
- * filtered by a selector.
327
- *
328
- * @category Traversing
329
- * @example
330
- *
331
- * ```js
332
- * $('.pear').prevAll();
333
- * //=> [<li class="orange">Orange</li>, <li class="apple">Apple</li>]
334
- *
335
- * $('.pear').prevAll('.orange');
336
- * //=> [<li class="orange">Orange</li>]
337
- * ```
338
- *
339
- * @param selector - If specified filter for siblings.
340
- * @returns The previous nodes.
341
- * @see {@link https://api.jquery.com/prevAll/}
342
- */
343
- const prevAll = _matcher(elem => {
344
- const matched = [];
345
- while (elem.prev) {
346
- elem = elem.prev;
347
- if (node.isTag(elem)) matched.push(elem);
348
- }
349
- return matched;
350
- }, _removeDuplicates);
351
- /**
352
- * Gets all the preceding siblings up to but not including the element matched
353
- * by the selector, optionally filtered by another selector.
354
- *
355
- * @category Traversing
356
- * @example
357
- *
358
- * ```js
359
- * $('.pear').prevUntil('.apple');
360
- * //=> [<li class="orange">Orange</li>]
361
- * ```
362
- *
363
- * @param selector - Selector for element to stop at.
364
- * @param filterSelector - If specified filter for siblings.
365
- * @returns The previous nodes.
366
- * @see {@link https://api.jquery.com/prevUntil/}
367
- */
368
- const prevUntil = _matchUntil(el => traversal.prevElementSibling(el), _removeDuplicates);
369
- /**
370
- * Get the siblings of each element (excluding the element) in the set of
371
- * matched elements, optionally filtered by a selector.
372
- *
373
- * @category Traversing
374
- * @example
375
- *
376
- * ```js
377
- * $('.pear').siblings().length;
378
- * //=> 2
379
- *
380
- * $('.pear').siblings('.orange').length;
381
- * //=> 1
382
- * ```
383
- *
384
- * @param selector - If specified filter for siblings.
385
- * @returns The siblings.
386
- * @see {@link https://api.jquery.com/siblings/}
387
- */
388
- const siblings = _matcher(elem => traversal.getSiblings(elem).filter(el => node.isTag(el) && el !== elem), helpers.uniqueSort);
389
- /**
390
- * Gets the element children of each element in the set of matched elements.
391
- *
392
- * @category Traversing
393
- * @example
394
- *
395
- * ```js
396
- * $('#fruits').children().length;
397
- * //=> 3
398
- *
399
- * $('#fruits').children('.pear').text();
400
- * //=> Pear
401
- * ```
402
- *
403
- * @param selector - If specified filter for children.
404
- * @returns The children.
405
- * @see {@link https://api.jquery.com/children/}
406
- */
407
- const children = _matcher(elem => traversal.getChildren(elem).filter(node.isTag), _removeDuplicates);
408
- /**
409
- * Gets the children of each element in the set of matched elements, including
410
- * text and comment nodes.
411
- *
412
- * @category Traversing
413
- * @example
414
- *
415
- * ```js
416
- * $('#fruits').contents().length;
417
- * //=> 3
418
- * ```
419
- *
420
- * @returns The children.
421
- * @see {@link https://api.jquery.com/contents/}
422
- */
423
- function contents() {
424
- const elems = this.toArray().reduce((newElems, elem) => node.hasChildren(elem) ? newElems.concat(elem.children) : newElems, []);
425
- return this._make(elems);
426
- }
427
- /**
428
- * Iterates over a cheerio object, executing a function for each matched
429
- * element. When the callback is fired, the function is fired in the context of
430
- * the DOM element, so `this` refers to the current element, which is equivalent
431
- * to the function parameter `element`. To break out of the `each` loop early,
432
- * return with `false`.
433
- *
434
- * @category Traversing
435
- * @example
436
- *
437
- * ```js
438
- * const fruits = [];
439
- *
440
- * $('li').each(function (i, elem) {
441
- * fruits[i] = $(this).text();
442
- * });
443
- *
444
- * fruits.join(', ');
445
- * //=> Apple, Orange, Pear
446
- * ```
447
- *
448
- * @param fn - Function to execute.
449
- * @returns The instance itself, useful for chaining.
450
- * @see {@link https://api.jquery.com/each/}
451
- */
452
- function each(fn) {
453
- let i = 0;
454
- const len = this.length;
455
- while (i < len && fn.call(this[i], i, this[i]) !== false) ++i;
456
- return this;
457
- }
458
- /**
459
- * Pass each element in the current matched set through a function, producing a
460
- * new Cheerio object containing the return values. The function can return an
461
- * individual data item or an array of data items to be inserted into the
462
- * resulting set. If an array is returned, the elements inside the array are
463
- * inserted into the set. If the function returns null or undefined, no element
464
- * will be inserted.
465
- *
466
- * @category Traversing
467
- * @example
468
- *
469
- * ```js
470
- * $('li')
471
- * .map(function (i, el) {
472
- * // this === el
473
- * return $(this).text();
474
- * })
475
- * .toArray()
476
- * .join(' ');
477
- * //=> "apple orange pear"
478
- * ```
479
- *
480
- * @param fn - Function to execute.
481
- * @returns The mapped elements, wrapped in a Cheerio collection.
482
- * @see {@link https://api.jquery.com/map/}
483
- */
484
- function map(fn) {
485
- let elems = [];
486
- for (let i = 0; i < this.length; i++) {
487
- const el = this[i];
488
- const val = fn.call(el, i, el);
489
- if (val != null) {
490
- elems = elems.concat(val);
491
- }
492
- }
493
- return this._make(elems);
494
- }
495
- /**
496
- * Creates a function to test if a filter is matched.
497
- *
498
- * @param match - A filter.
499
- * @returns A function that determines if a filter has been matched.
500
- */
501
- function getFilterFn(match) {
502
- if (typeof match === 'function') {
503
- return (el, i) => match.call(el, i, el);
504
- }
505
- if (utils.isCheerio(match)) {
506
- return el => Array.prototype.includes.call(match, el);
507
- }
508
- return function (el) {
509
- return match === el;
510
- };
511
- }
512
- function filter(match) {
513
- var _a;
514
- return this._make(filterArray(this.toArray(), match, this.options.xmlMode, (_a = this._root) === null || _a === void 0 ? void 0 : _a[0]));
515
- }
516
- function filterArray(nodes, match, xmlMode, root) {
517
- return typeof match === 'string' ? index$1.filter(match, nodes, {
518
- xmlMode,
519
- root
520
- }) : nodes.filter(getFilterFn(match));
521
- }
522
- /**
523
- * Checks the current list of elements and returns `true` if _any_ of the
524
- * elements match the selector. If using an element or Cheerio selection,
525
- * returns `true` if _any_ of the elements match. If using a predicate function,
526
- * the function is executed in the context of the selected element, so `this`
527
- * refers to the current element.
528
- *
529
- * @category Attributes
530
- * @param selector - Selector for the selection.
531
- * @returns Whether or not the selector matches an element of the instance.
532
- * @see {@link https://api.jquery.com/is/}
533
- */
534
- function is(selector) {
535
- const nodes = this.toArray();
536
- return typeof selector === 'string' ? index$1.some(nodes.filter(node.isTag), selector, this.options) : selector ? nodes.some(getFilterFn(selector)) : false;
537
- }
538
- /**
539
- * Remove elements from the set of matched elements. Given a Cheerio object that
540
- * represents a set of DOM elements, the `.not()` method constructs a new
541
- * Cheerio object from a subset of the matching elements. The supplied selector
542
- * is tested against each element; the elements that don't match the selector
543
- * will be included in the result.
544
- *
545
- * The `.not()` method can take a function as its argument in the same way that
546
- * `.filter()` does. Elements for which the function returns `true` are excluded
547
- * from the filtered set; all other elements are included.
548
- *
549
- * @category Traversing
550
- * @example <caption>Selector</caption>
551
- *
552
- * ```js
553
- * $('li').not('.apple').length;
554
- * //=> 2
555
- * ```
556
- *
557
- * @example <caption>Function</caption>
558
- *
559
- * ```js
560
- * $('li').not(function (i, el) {
561
- * // this === el
562
- * return $(this).attr('class') === 'orange';
563
- * }).length; //=> 2
564
- * ```
565
- *
566
- * @param match - Value to look for, following the rules above.
567
- * @param container - Optional node to filter instead.
568
- * @returns The filtered collection.
569
- * @see {@link https://api.jquery.com/not/}
570
- */
571
- function not(match) {
572
- let nodes = this.toArray();
573
- if (typeof match === 'string') {
574
- const matches = new Set(index$1.filter(match, nodes, this.options));
575
- nodes = nodes.filter(el => !matches.has(el));
576
- } else {
577
- const filterFn = getFilterFn(match);
578
- nodes = nodes.filter((el, i) => !filterFn(el, i));
579
- }
580
- return this._make(nodes);
581
- }
582
- /**
583
- * Filters the set of matched elements to only those which have the given DOM
584
- * element as a descendant or which have a descendant that matches the given
585
- * selector. Equivalent to `.filter(':has(selector)')`.
586
- *
587
- * @category Traversing
588
- * @example <caption>Selector</caption>
589
- *
590
- * ```js
591
- * $('ul').has('.pear').attr('id');
592
- * //=> fruits
593
- * ```
594
- *
595
- * @example <caption>Element</caption>
596
- *
597
- * ```js
598
- * $('ul').has($('.pear')[0]).attr('id');
599
- * //=> fruits
600
- * ```
601
- *
602
- * @param selectorOrHaystack - Element to look for.
603
- * @returns The filtered collection.
604
- * @see {@link https://api.jquery.com/has/}
605
- */
606
- function has(selectorOrHaystack) {
607
- return this.filter(typeof selectorOrHaystack === 'string' ?
608
- // Using the `:has` selector here short-circuits searches.
609
- `:has(${selectorOrHaystack})` : (_, el) => this._make(el).find(selectorOrHaystack).length > 0);
610
- }
611
- /**
612
- * Will select the first element of a cheerio object.
613
- *
614
- * @category Traversing
615
- * @example
616
- *
617
- * ```js
618
- * $('#fruits').children().first().text();
619
- * //=> Apple
620
- * ```
621
- *
622
- * @returns The first element.
623
- * @see {@link https://api.jquery.com/first/}
624
- */
625
- function first() {
626
- return this.length > 1 ? this._make(this[0]) : this;
627
- }
628
- /**
629
- * Will select the last element of a cheerio object.
630
- *
631
- * @category Traversing
632
- * @example
633
- *
634
- * ```js
635
- * $('#fruits').children().last().text();
636
- * //=> Pear
637
- * ```
638
- *
639
- * @returns The last element.
640
- * @see {@link https://api.jquery.com/last/}
641
- */
642
- function last() {
643
- return this.length > 0 ? this._make(this[this.length - 1]) : this;
644
- }
645
- /**
646
- * Reduce the set of matched elements to the one at the specified index. Use
647
- * `.eq(-i)` to count backwards from the last selected element.
648
- *
649
- * @category Traversing
650
- * @example
651
- *
652
- * ```js
653
- * $('li').eq(0).text();
654
- * //=> Apple
655
- *
656
- * $('li').eq(-1).text();
657
- * //=> Pear
658
- * ```
659
- *
660
- * @param i - Index of the element to select.
661
- * @returns The element at the `i`th position.
662
- * @see {@link https://api.jquery.com/eq/}
663
- */
664
- function eq(i) {
665
- var _a;
666
- i = +i;
667
- // Use the first identity optimization if possible
668
- if (i === 0 && this.length <= 1) return this;
669
- if (i < 0) i = this.length + i;
670
- return this._make((_a = this[i]) !== null && _a !== void 0 ? _a : []);
671
- }
672
- function get(i) {
673
- if (i == null) {
674
- return this.toArray();
675
- }
676
- return this[i < 0 ? this.length + i : i];
677
- }
678
- /**
679
- * Retrieve all the DOM elements contained in the jQuery set as an array.
680
- *
681
- * @example
682
- *
683
- * ```js
684
- * $('li').toArray();
685
- * //=> [ {...}, {...}, {...} ]
686
- * ```
687
- *
688
- * @returns The contained items.
689
- */
690
- function toArray() {
691
- return Array.prototype.slice.call(this);
692
- }
693
- /**
694
- * Search for a given element from among the matched elements.
695
- *
696
- * @category Traversing
697
- * @example
698
- *
699
- * ```js
700
- * $('.pear').index();
701
- * //=> 2 $('.orange').index('li');
702
- * //=> 1
703
- * $('.apple').index($('#fruit, li'));
704
- * //=> 1
705
- * ```
706
- *
707
- * @param selectorOrNeedle - Element to look for.
708
- * @returns The index of the element.
709
- * @see {@link https://api.jquery.com/index/}
710
- */
711
- function index(selectorOrNeedle) {
712
- let $haystack;
713
- let needle;
714
- if (selectorOrNeedle == null) {
715
- $haystack = this.parent().children();
716
- needle = this[0];
717
- } else if (typeof selectorOrNeedle === 'string') {
718
- $haystack = this._make(selectorOrNeedle);
719
- needle = this[0];
720
- } else {
721
- // eslint-disable-next-line @typescript-eslint/no-this-alias
722
- $haystack = this;
723
- needle = utils.isCheerio(selectorOrNeedle) ? selectorOrNeedle[0] : selectorOrNeedle;
724
- }
725
- return Array.prototype.indexOf.call($haystack, needle);
726
- }
727
- /**
728
- * Gets the elements matching the specified range (0-based position).
729
- *
730
- * @category Traversing
731
- * @example
732
- *
733
- * ```js
734
- * $('li').slice(1).eq(0).text();
735
- * //=> 'Orange'
736
- *
737
- * $('li').slice(1, 2).length;
738
- * //=> 1
739
- * ```
740
- *
741
- * @param start - A position at which the elements begin to be selected. If
742
- * negative, it indicates an offset from the end of the set.
743
- * @param end - A position at which the elements stop being selected. If
744
- * negative, it indicates an offset from the end of the set. If omitted, the
745
- * range continues until the end of the set.
746
- * @returns The elements matching the specified range.
747
- * @see {@link https://api.jquery.com/slice/}
748
- */
749
- function slice(start, end) {
750
- return this._make(Array.prototype.slice.call(this, start, end));
751
- }
752
- /**
753
- * End the most recent filtering operation in the current chain and return the
754
- * set of matched elements to its previous state.
755
- *
756
- * @category Traversing
757
- * @example
758
- *
759
- * ```js
760
- * $('li').eq(0).end().length;
761
- * //=> 3
762
- * ```
763
- *
764
- * @returns The previous state of the set of matched elements.
765
- * @see {@link https://api.jquery.com/end/}
766
- */
767
- function end() {
768
- var _a;
769
- return (_a = this.prevObject) !== null && _a !== void 0 ? _a : this._make([]);
770
- }
771
- /**
772
- * Add elements to the set of matched elements.
773
- *
774
- * @category Traversing
775
- * @example
776
- *
777
- * ```js
778
- * $('.apple').add('.orange').length;
779
- * //=> 2
780
- * ```
781
- *
782
- * @param other - Elements to add.
783
- * @param context - Optionally the context of the new selection.
784
- * @returns The combined set.
785
- * @see {@link https://api.jquery.com/add/}
786
- */
787
- function add(other, context) {
788
- const selection = this._make(other, context);
789
- const contents = helpers.uniqueSort([...this.get(), ...selection.get()]);
790
- return this._make(contents);
791
- }
792
- /**
793
- * Add the previous set of elements on the stack to the current set, optionally
794
- * filtered by a selector.
795
- *
796
- * @category Traversing
797
- * @example
798
- *
799
- * ```js
800
- * $('li').eq(0).addBack('.orange').length;
801
- * //=> 2
802
- * ```
803
- *
804
- * @param selector - Selector for the elements to add.
805
- * @returns The combined set.
806
- * @see {@link https://api.jquery.com/addBack/}
807
- */
808
- function addBack(selector) {
809
- return this.prevObject ? this.add(selector ? this.prevObject.filter(selector) : this.prevObject) : this;
810
- }
811
- exports.add = add;
812
- exports.addBack = addBack;
813
- exports.children = children;
814
- exports.closest = closest;
815
- exports.contents = contents;
816
- exports.each = each;
817
- exports.end = end;
818
- exports.eq = eq;
819
- exports.filter = filter;
820
- exports.filterArray = filterArray;
821
- exports.find = find;
822
- exports.first = first;
823
- exports.get = get;
824
- exports.has = has;
825
- exports.index = index;
826
- exports.is = is;
827
- exports.last = last;
828
- exports.map = map;
829
- exports.next = next;
830
- exports.nextAll = nextAll;
831
- exports.nextUntil = nextUntil;
832
- exports.not = not;
833
- exports.parent = parent;
834
- exports.parents = parents;
835
- exports.parentsUntil = parentsUntil;
836
- exports.prev = prev;
837
- exports.prevAll = prevAll;
838
- exports.prevUntil = prevUntil;
839
- exports.siblings = siblings;
840
- exports.slice = slice;
841
- exports.toArray = toArray;
842
- //# sourceMappingURL=traversing.js.map