@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,807 +0,0 @@
1
- 'use strict';
2
-
3
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
6
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
- require('../../../../domhandler/lib/esm/index.js');
10
- const parse = require('../parse.js');
11
- const _static = require('../static.js');
12
- const utils = require('../utils.js');
13
- require('../../../../domutils/lib/esm/index.js');
14
- const node = require('../../../../domhandler/lib/esm/node.js');
15
- const manipulation = require('../../../../domutils/lib/esm/manipulation.js');
16
-
17
- /**
18
- * Methods for modifying the DOM structure.
19
- *
20
- * @module cheerio/manipulation
21
- */
22
- /**
23
- * Create an array of nodes, recursing into arrays and parsing strings if necessary.
24
- *
25
- * @private
26
- * @category Manipulation
27
- * @param elem - Elements to make an array of.
28
- * @param clone - Optionally clone nodes.
29
- * @returns The array of nodes.
30
- */
31
- function _makeDomArray(elem, clone) {
32
- if (elem == null) {
33
- return [];
34
- }
35
- if (utils.isCheerio(elem)) {
36
- return clone ? utils.cloneDom(elem.get()) : elem.get();
37
- }
38
- if (Array.isArray(elem)) {
39
- return elem.reduce((newElems, el) => newElems.concat(this._makeDomArray(el, clone)), []);
40
- }
41
- if (typeof elem === 'string') {
42
- return this._parse(elem, this.options, false, null).children;
43
- }
44
- return clone ? utils.cloneDom([elem]) : [elem];
45
- }
46
- function _insert(concatenator) {
47
- return function (...elems) {
48
- const lastIdx = this.length - 1;
49
- return utils.domEach(this, (el, i) => {
50
- if (!node.hasChildren(el)) return;
51
- const domSrc = typeof elems[0] === 'function' ? elems[0].call(el, i, this._render(el.children)) : elems;
52
- const dom = this._makeDomArray(domSrc, i < lastIdx);
53
- concatenator(dom, el.children, el);
54
- });
55
- };
56
- }
57
- /**
58
- * Modify an array in-place, removing some number of elements and adding new
59
- * elements directly following them.
60
- *
61
- * @private
62
- * @category Manipulation
63
- * @param array - Target array to splice.
64
- * @param spliceIdx - Index at which to begin changing the array.
65
- * @param spliceCount - Number of elements to remove from the array.
66
- * @param newElems - Elements to insert into the array.
67
- * @param parent - The parent of the node.
68
- * @returns The spliced array.
69
- */
70
- function uniqueSplice(array, spliceIdx, spliceCount, newElems, parent) {
71
- var _a, _b;
72
- const spliceArgs = [spliceIdx, spliceCount, ...newElems];
73
- const prev = spliceIdx === 0 ? null : array[spliceIdx - 1];
74
- const next = spliceIdx + spliceCount >= array.length ? null : array[spliceIdx + spliceCount];
75
- /*
76
- * Before splicing in new elements, ensure they do not already appear in the
77
- * current array.
78
- */
79
- for (let idx = 0; idx < newElems.length; ++idx) {
80
- const node = newElems[idx];
81
- const oldParent = node.parent;
82
- if (oldParent) {
83
- const oldSiblings = oldParent.children;
84
- const prevIdx = oldSiblings.indexOf(node);
85
- if (prevIdx > -1) {
86
- oldParent.children.splice(prevIdx, 1);
87
- if (parent === oldParent && spliceIdx > prevIdx) {
88
- spliceArgs[0]--;
89
- }
90
- }
91
- }
92
- node.parent = parent;
93
- if (node.prev) {
94
- node.prev.next = (_a = node.next) !== null && _a !== void 0 ? _a : null;
95
- }
96
- if (node.next) {
97
- node.next.prev = (_b = node.prev) !== null && _b !== void 0 ? _b : null;
98
- }
99
- node.prev = idx === 0 ? prev : newElems[idx - 1];
100
- node.next = idx === newElems.length - 1 ? next : newElems[idx + 1];
101
- }
102
- if (prev) {
103
- prev.next = newElems[0];
104
- }
105
- if (next) {
106
- next.prev = newElems[newElems.length - 1];
107
- }
108
- return array.splice(...spliceArgs);
109
- }
110
- /**
111
- * Insert every element in the set of matched elements to the end of the target.
112
- *
113
- * @category Manipulation
114
- * @example
115
- *
116
- * ```js
117
- * $('<li class="plum">Plum</li>').appendTo('#fruits');
118
- * $.html();
119
- * //=> <ul id="fruits">
120
- * // <li class="apple">Apple</li>
121
- * // <li class="orange">Orange</li>
122
- * // <li class="pear">Pear</li>
123
- * // <li class="plum">Plum</li>
124
- * // </ul>
125
- * ```
126
- *
127
- * @param target - Element to append elements to.
128
- * @returns The instance itself.
129
- * @see {@link https://api.jquery.com/appendTo/}
130
- */
131
- function appendTo(target) {
132
- const appendTarget = utils.isCheerio(target) ? target : this._make(target);
133
- appendTarget.append(this);
134
- return this;
135
- }
136
- /**
137
- * Insert every element in the set of matched elements to the beginning of the target.
138
- *
139
- * @category Manipulation
140
- * @example
141
- *
142
- * ```js
143
- * $('<li class="plum">Plum</li>').prependTo('#fruits');
144
- * $.html();
145
- * //=> <ul id="fruits">
146
- * // <li class="plum">Plum</li>
147
- * // <li class="apple">Apple</li>
148
- * // <li class="orange">Orange</li>
149
- * // <li class="pear">Pear</li>
150
- * // </ul>
151
- * ```
152
- *
153
- * @param target - Element to prepend elements to.
154
- * @returns The instance itself.
155
- * @see {@link https://api.jquery.com/prependTo/}
156
- */
157
- function prependTo(target) {
158
- const prependTarget = utils.isCheerio(target) ? target : this._make(target);
159
- prependTarget.prepend(this);
160
- return this;
161
- }
162
- /**
163
- * Inserts content as the _last_ child of each of the selected elements.
164
- *
165
- * @category Manipulation
166
- * @example
167
- *
168
- * ```js
169
- * $('ul').append('<li class="plum">Plum</li>');
170
- * $.html();
171
- * //=> <ul id="fruits">
172
- * // <li class="apple">Apple</li>
173
- * // <li class="orange">Orange</li>
174
- * // <li class="pear">Pear</li>
175
- * // <li class="plum">Plum</li>
176
- * // </ul>
177
- * ```
178
- *
179
- * @see {@link https://api.jquery.com/append/}
180
- */
181
- const append = _insert((dom, children, parent) => {
182
- uniqueSplice(children, children.length, 0, dom, parent);
183
- });
184
- /**
185
- * Inserts content as the _first_ child of each of the selected elements.
186
- *
187
- * @category Manipulation
188
- * @example
189
- *
190
- * ```js
191
- * $('ul').prepend('<li class="plum">Plum</li>');
192
- * $.html();
193
- * //=> <ul id="fruits">
194
- * // <li class="plum">Plum</li>
195
- * // <li class="apple">Apple</li>
196
- * // <li class="orange">Orange</li>
197
- * // <li class="pear">Pear</li>
198
- * // </ul>
199
- * ```
200
- *
201
- * @see {@link https://api.jquery.com/prepend/}
202
- */
203
- const prepend = _insert((dom, children, parent) => {
204
- uniqueSplice(children, 0, 0, dom, parent);
205
- });
206
- function _wrap(insert) {
207
- return function (wrapper) {
208
- const lastIdx = this.length - 1;
209
- const lastParent = this.parents().last();
210
- for (let i = 0; i < this.length; i++) {
211
- const el = this[i];
212
- const wrap = typeof wrapper === 'function' ? wrapper.call(el, i, el) : typeof wrapper === 'string' && !utils.isHtml(wrapper) ? lastParent.find(wrapper).clone() : wrapper;
213
- const _this$_makeDomArray = this._makeDomArray(wrap, i < lastIdx),
214
- _this$_makeDomArray2 = _slicedToArray(_this$_makeDomArray, 1),
215
- wrapperDom = _this$_makeDomArray2[0];
216
- if (!wrapperDom || !node.hasChildren(wrapperDom)) continue;
217
- let elInsertLocation = wrapperDom;
218
- /*
219
- * Find the deepest child. Only consider the first tag child of each node
220
- * (ignore text); stop if no children are found.
221
- */
222
- let j = 0;
223
- while (j < elInsertLocation.children.length) {
224
- const child = elInsertLocation.children[j];
225
- if (node.isTag(child)) {
226
- elInsertLocation = child;
227
- j = 0;
228
- } else {
229
- j++;
230
- }
231
- }
232
- insert(el, elInsertLocation, [wrapperDom]);
233
- }
234
- return this;
235
- };
236
- }
237
- /**
238
- * The .wrap() function can take any string or object that could be passed to
239
- * the $() factory function to specify a DOM structure. This structure may be
240
- * nested several levels deep, but should contain only one inmost element. A
241
- * copy of this structure will be wrapped around each of the elements in the set
242
- * of matched elements. This method returns the original set of elements for
243
- * chaining purposes.
244
- *
245
- * @category Manipulation
246
- * @example
247
- *
248
- * ```js
249
- * const redFruit = $('<div class="red-fruit"></div>');
250
- * $('.apple').wrap(redFruit);
251
- *
252
- * //=> <ul id="fruits">
253
- * // <div class="red-fruit">
254
- * // <li class="apple">Apple</li>
255
- * // </div>
256
- * // <li class="orange">Orange</li>
257
- * // <li class="plum">Plum</li>
258
- * // </ul>
259
- *
260
- * const healthy = $('<div class="healthy"></div>');
261
- * $('li').wrap(healthy);
262
- *
263
- * //=> <ul id="fruits">
264
- * // <div class="healthy">
265
- * // <li class="apple">Apple</li>
266
- * // </div>
267
- * // <div class="healthy">
268
- * // <li class="orange">Orange</li>
269
- * // </div>
270
- * // <div class="healthy">
271
- * // <li class="plum">Plum</li>
272
- * // </div>
273
- * // </ul>
274
- * ```
275
- *
276
- * @param wrapper - The DOM structure to wrap around each element in the selection.
277
- * @see {@link https://api.jquery.com/wrap/}
278
- */
279
- const wrap = _wrap((el, elInsertLocation, wrapperDom) => {
280
- const parent = el.parent;
281
- if (!parent) return;
282
- const siblings = parent.children;
283
- const index = siblings.indexOf(el);
284
- parse.update([el], elInsertLocation);
285
- /*
286
- * The previous operation removed the current element from the `siblings`
287
- * array, so the `dom` array can be inserted without removing any
288
- * additional elements.
289
- */
290
- uniqueSplice(siblings, index, 0, wrapperDom, parent);
291
- });
292
- /**
293
- * The .wrapInner() function can take any string or object that could be passed
294
- * to the $() factory function to specify a DOM structure. This structure may be
295
- * nested several levels deep, but should contain only one inmost element. The
296
- * structure will be wrapped around the content of each of the elements in the
297
- * set of matched elements.
298
- *
299
- * @category Manipulation
300
- * @example
301
- *
302
- * ```js
303
- * const redFruit = $('<div class="red-fruit"></div>');
304
- * $('.apple').wrapInner(redFruit);
305
- *
306
- * //=> <ul id="fruits">
307
- * // <li class="apple">
308
- * // <div class="red-fruit">Apple</div>
309
- * // </li>
310
- * // <li class="orange">Orange</li>
311
- * // <li class="pear">Pear</li>
312
- * // </ul>
313
- *
314
- * const healthy = $('<div class="healthy"></div>');
315
- * $('li').wrapInner(healthy);
316
- *
317
- * //=> <ul id="fruits">
318
- * // <li class="apple">
319
- * // <div class="healthy">Apple</div>
320
- * // </li>
321
- * // <li class="orange">
322
- * // <div class="healthy">Orange</div>
323
- * // </li>
324
- * // <li class="pear">
325
- * // <div class="healthy">Pear</div>
326
- * // </li>
327
- * // </ul>
328
- * ```
329
- *
330
- * @param wrapper - The DOM structure to wrap around the content of each element
331
- * in the selection.
332
- * @returns The instance itself, for chaining.
333
- * @see {@link https://api.jquery.com/wrapInner/}
334
- */
335
- const wrapInner = _wrap((el, elInsertLocation, wrapperDom) => {
336
- if (!node.hasChildren(el)) return;
337
- parse.update(el.children, elInsertLocation);
338
- parse.update(wrapperDom, el);
339
- });
340
- /**
341
- * The .unwrap() function, removes the parents of the set of matched elements
342
- * from the DOM, leaving the matched elements in their place.
343
- *
344
- * @category Manipulation
345
- * @example <caption>without selector</caption>
346
- *
347
- * ```js
348
- * const $ = cheerio.load(
349
- * '<div id=test>\n <div><p>Hello</p></div>\n <div><p>World</p></div>\n</div>'
350
- * );
351
- * $('#test p').unwrap();
352
- *
353
- * //=> <div id=test>
354
- * // <p>Hello</p>
355
- * // <p>World</p>
356
- * // </div>
357
- * ```
358
- *
359
- * @example <caption>with selector</caption>
360
- *
361
- * ```js
362
- * const $ = cheerio.load(
363
- * '<div id=test>\n <p>Hello</p>\n <b><p>World</p></b>\n</div>'
364
- * );
365
- * $('#test p').unwrap('b');
366
- *
367
- * //=> <div id=test>
368
- * // <p>Hello</p>
369
- * // <p>World</p>
370
- * // </div>
371
- * ```
372
- *
373
- * @param selector - A selector to check the parent element against. If an
374
- * element's parent does not match the selector, the element won't be unwrapped.
375
- * @returns The instance itself, for chaining.
376
- * @see {@link https://api.jquery.com/unwrap/}
377
- */
378
- function unwrap(selector) {
379
- this.parent(selector).not('body').each((_, el) => {
380
- this._make(el).replaceWith(el.children);
381
- });
382
- return this;
383
- }
384
- /**
385
- * The .wrapAll() function can take any string or object that could be passed to
386
- * the $() function to specify a DOM structure. This structure may be nested
387
- * several levels deep, but should contain only one inmost element. The
388
- * structure will be wrapped around all of the elements in the set of matched
389
- * elements, as a single group.
390
- *
391
- * @category Manipulation
392
- * @example <caption>With markup passed to `wrapAll`</caption>
393
- *
394
- * ```js
395
- * const $ = cheerio.load(
396
- * '<div class="container"><div class="inner">First</div><div class="inner">Second</div></div>'
397
- * );
398
- * $('.inner').wrapAll("<div class='new'></div>");
399
- *
400
- * //=> <div class="container">
401
- * // <div class='new'>
402
- * // <div class="inner">First</div>
403
- * // <div class="inner">Second</div>
404
- * // </div>
405
- * // </div>
406
- * ```
407
- *
408
- * @example <caption>With an existing cheerio instance</caption>
409
- *
410
- * ```js
411
- * const $ = cheerio.load(
412
- * '<span>Span 1</span><strong>Strong</strong><span>Span 2</span>'
413
- * );
414
- * const wrap = $('<div><p><em><b></b></em></p></div>');
415
- * $('span').wrapAll(wrap);
416
- *
417
- * //=> <div>
418
- * // <p>
419
- * // <em>
420
- * // <b>
421
- * // <span>Span 1</span>
422
- * // <span>Span 2</span>
423
- * // </b>
424
- * // </em>
425
- * // </p>
426
- * // </div>
427
- * // <strong>Strong</strong>
428
- * ```
429
- *
430
- * @param wrapper - The DOM structure to wrap around all matched elements in the
431
- * selection.
432
- * @returns The instance itself.
433
- * @see {@link https://api.jquery.com/wrapAll/}
434
- */
435
- function wrapAll(wrapper) {
436
- const el = this[0];
437
- if (el) {
438
- const wrap = this._make(typeof wrapper === 'function' ? wrapper.call(el, 0, el) : wrapper).insertBefore(el);
439
- // If html is given as wrapper, wrap may contain text elements
440
- let elInsertLocation;
441
- for (let i = 0; i < wrap.length; i++) {
442
- if (wrap[i].type === 'tag') elInsertLocation = wrap[i];
443
- }
444
- let j = 0;
445
- /*
446
- * Find the deepest child. Only consider the first tag child of each node
447
- * (ignore text); stop if no children are found.
448
- */
449
- while (elInsertLocation && j < elInsertLocation.children.length) {
450
- const child = elInsertLocation.children[j];
451
- if (child.type === 'tag') {
452
- elInsertLocation = child;
453
- j = 0;
454
- } else {
455
- j++;
456
- }
457
- }
458
- if (elInsertLocation) this._make(elInsertLocation).append(this);
459
- }
460
- return this;
461
- }
462
- /* eslint-disable jsdoc/check-param-names*/
463
- /**
464
- * Insert content next to each element in the set of matched elements.
465
- *
466
- * @category Manipulation
467
- * @example
468
- *
469
- * ```js
470
- * $('.apple').after('<li class="plum">Plum</li>');
471
- * $.html();
472
- * //=> <ul id="fruits">
473
- * // <li class="apple">Apple</li>
474
- * // <li class="plum">Plum</li>
475
- * // <li class="orange">Orange</li>
476
- * // <li class="pear">Pear</li>
477
- * // </ul>
478
- * ```
479
- *
480
- * @param content - HTML string, DOM element, array of DOM elements or Cheerio
481
- * to insert after each element in the set of matched elements.
482
- * @returns The instance itself.
483
- * @see {@link https://api.jquery.com/after/}
484
- */
485
- function after(...elems) {
486
- const lastIdx = this.length - 1;
487
- return utils.domEach(this, (el, i) => {
488
- const parent = el.parent;
489
- if (!node.hasChildren(el) || !parent) {
490
- return;
491
- }
492
- const siblings = parent.children;
493
- const index = siblings.indexOf(el);
494
- // If not found, move on
495
- /* istanbul ignore next */
496
- if (index < 0) return;
497
- const domSrc = typeof elems[0] === 'function' ? elems[0].call(el, i, this._render(el.children)) : elems;
498
- const dom = this._makeDomArray(domSrc, i < lastIdx);
499
- // Add element after `this` element
500
- uniqueSplice(siblings, index + 1, 0, dom, parent);
501
- });
502
- }
503
- /* eslint-enable jsdoc/check-param-names*/
504
- /**
505
- * Insert every element in the set of matched elements after the target.
506
- *
507
- * @category Manipulation
508
- * @example
509
- *
510
- * ```js
511
- * $('<li class="plum">Plum</li>').insertAfter('.apple');
512
- * $.html();
513
- * //=> <ul id="fruits">
514
- * // <li class="apple">Apple</li>
515
- * // <li class="plum">Plum</li>
516
- * // <li class="orange">Orange</li>
517
- * // <li class="pear">Pear</li>
518
- * // </ul>
519
- * ```
520
- *
521
- * @param target - Element to insert elements after.
522
- * @returns The set of newly inserted elements.
523
- * @see {@link https://api.jquery.com/insertAfter/}
524
- */
525
- function insertAfter(target) {
526
- if (typeof target === 'string') {
527
- target = this._make(target);
528
- }
529
- this.remove();
530
- const clones = [];
531
- this._makeDomArray(target).forEach(el => {
532
- const clonedSelf = this.clone().toArray();
533
- const parent = el.parent;
534
- if (!parent) {
535
- return;
536
- }
537
- const siblings = parent.children;
538
- const index = siblings.indexOf(el);
539
- // If not found, move on
540
- /* istanbul ignore next */
541
- if (index < 0) return;
542
- // Add cloned `this` element(s) after target element
543
- uniqueSplice(siblings, index + 1, 0, clonedSelf, parent);
544
- clones.push(...clonedSelf);
545
- });
546
- return this._make(clones);
547
- }
548
- /* eslint-disable jsdoc/check-param-names*/
549
- /**
550
- * Insert content previous to each element in the set of matched elements.
551
- *
552
- * @category Manipulation
553
- * @example
554
- *
555
- * ```js
556
- * $('.apple').before('<li class="plum">Plum</li>');
557
- * $.html();
558
- * //=> <ul id="fruits">
559
- * // <li class="plum">Plum</li>
560
- * // <li class="apple">Apple</li>
561
- * // <li class="orange">Orange</li>
562
- * // <li class="pear">Pear</li>
563
- * // </ul>
564
- * ```
565
- *
566
- * @param content - HTML string, DOM element, array of DOM elements or Cheerio
567
- * to insert before each element in the set of matched elements.
568
- * @returns The instance itself.
569
- * @see {@link https://api.jquery.com/before/}
570
- */
571
- function before(...elems) {
572
- const lastIdx = this.length - 1;
573
- return utils.domEach(this, (el, i) => {
574
- const parent = el.parent;
575
- if (!node.hasChildren(el) || !parent) {
576
- return;
577
- }
578
- const siblings = parent.children;
579
- const index = siblings.indexOf(el);
580
- // If not found, move on
581
- /* istanbul ignore next */
582
- if (index < 0) return;
583
- const domSrc = typeof elems[0] === 'function' ? elems[0].call(el, i, this._render(el.children)) : elems;
584
- const dom = this._makeDomArray(domSrc, i < lastIdx);
585
- // Add element before `el` element
586
- uniqueSplice(siblings, index, 0, dom, parent);
587
- });
588
- }
589
- /* eslint-enable jsdoc/check-param-names*/
590
- /**
591
- * Insert every element in the set of matched elements before the target.
592
- *
593
- * @category Manipulation
594
- * @example
595
- *
596
- * ```js
597
- * $('<li class="plum">Plum</li>').insertBefore('.apple');
598
- * $.html();
599
- * //=> <ul id="fruits">
600
- * // <li class="plum">Plum</li>
601
- * // <li class="apple">Apple</li>
602
- * // <li class="orange">Orange</li>
603
- * // <li class="pear">Pear</li>
604
- * // </ul>
605
- * ```
606
- *
607
- * @param target - Element to insert elements before.
608
- * @returns The set of newly inserted elements.
609
- * @see {@link https://api.jquery.com/insertBefore/}
610
- */
611
- function insertBefore(target) {
612
- const targetArr = this._make(target);
613
- this.remove();
614
- const clones = [];
615
- utils.domEach(targetArr, el => {
616
- const clonedSelf = this.clone().toArray();
617
- const parent = el.parent;
618
- if (!parent) {
619
- return;
620
- }
621
- const siblings = parent.children;
622
- const index = siblings.indexOf(el);
623
- // If not found, move on
624
- /* istanbul ignore next */
625
- if (index < 0) return;
626
- // Add cloned `this` element(s) after target element
627
- uniqueSplice(siblings, index, 0, clonedSelf, parent);
628
- clones.push(...clonedSelf);
629
- });
630
- return this._make(clones);
631
- }
632
- /**
633
- * Removes the set of matched elements from the DOM and all their children.
634
- * `selector` filters the set of matched elements to be removed.
635
- *
636
- * @category Manipulation
637
- * @example
638
- *
639
- * ```js
640
- * $('.pear').remove();
641
- * $.html();
642
- * //=> <ul id="fruits">
643
- * // <li class="apple">Apple</li>
644
- * // <li class="orange">Orange</li>
645
- * // </ul>
646
- * ```
647
- *
648
- * @param selector - Optional selector for elements to remove.
649
- * @returns The instance itself.
650
- * @see {@link https://api.jquery.com/remove/}
651
- */
652
- function remove(selector) {
653
- // Filter if we have selector
654
- const elems = selector ? this.filter(selector) : this;
655
- utils.domEach(elems, el => {
656
- manipulation.removeElement(el);
657
- el.prev = el.next = el.parent = null;
658
- });
659
- return this;
660
- }
661
- /**
662
- * Replaces matched elements with `content`.
663
- *
664
- * @category Manipulation
665
- * @example
666
- *
667
- * ```js
668
- * const plum = $('<li class="plum">Plum</li>');
669
- * $('.pear').replaceWith(plum);
670
- * $.html();
671
- * //=> <ul id="fruits">
672
- * // <li class="apple">Apple</li>
673
- * // <li class="orange">Orange</li>
674
- * // <li class="plum">Plum</li>
675
- * // </ul>
676
- * ```
677
- *
678
- * @param content - Replacement for matched elements.
679
- * @returns The instance itself.
680
- * @see {@link https://api.jquery.com/replaceWith/}
681
- */
682
- function replaceWith(content) {
683
- return utils.domEach(this, (el, i) => {
684
- const parent = el.parent;
685
- if (!parent) {
686
- return;
687
- }
688
- const siblings = parent.children;
689
- const cont = typeof content === 'function' ? content.call(el, i, el) : content;
690
- const dom = this._makeDomArray(cont);
691
- /*
692
- * In the case that `dom` contains nodes that already exist in other
693
- * structures, ensure those nodes are properly removed.
694
- */
695
- parse.update(dom, null);
696
- const index = siblings.indexOf(el);
697
- // Completely remove old element
698
- uniqueSplice(siblings, index, 1, dom, parent);
699
- if (!dom.includes(el)) {
700
- el.parent = el.prev = el.next = null;
701
- }
702
- });
703
- }
704
- /**
705
- * Empties an element, removing all its children.
706
- *
707
- * @category Manipulation
708
- * @example
709
- *
710
- * ```js
711
- * $('ul').empty();
712
- * $.html();
713
- * //=> <ul id="fruits"></ul>
714
- * ```
715
- *
716
- * @returns The instance itself.
717
- * @see {@link https://api.jquery.com/empty/}
718
- */
719
- function empty() {
720
- return utils.domEach(this, el => {
721
- if (!node.hasChildren(el)) return;
722
- el.children.forEach(child => {
723
- child.next = child.prev = child.parent = null;
724
- });
725
- el.children.length = 0;
726
- });
727
- }
728
- function html(str) {
729
- if (str === undefined) {
730
- const el = this[0];
731
- if (!el || !node.hasChildren(el)) return null;
732
- return this._render(el.children);
733
- }
734
- return utils.domEach(this, el => {
735
- if (!node.hasChildren(el)) return;
736
- el.children.forEach(child => {
737
- child.next = child.prev = child.parent = null;
738
- });
739
- const content = utils.isCheerio(str) ? str.toArray() : this._parse(`${str}`, this.options, false, el).children;
740
- parse.update(content, el);
741
- });
742
- }
743
- /**
744
- * Turns the collection to a string. Alias for `.html()`.
745
- *
746
- * @category Manipulation
747
- * @returns The rendered document.
748
- */
749
- function toString() {
750
- return this._render(this);
751
- }
752
- function text(str) {
753
- // If `str` is undefined, act as a "getter"
754
- if (str === undefined) {
755
- return _static.text(this);
756
- }
757
- if (typeof str === 'function') {
758
- // Function support
759
- return utils.domEach(this, (el, i) => this._make(el).text(str.call(el, i, _static.text([el]))));
760
- }
761
- // Append text node to each selected elements
762
- return utils.domEach(this, el => {
763
- if (!node.hasChildren(el)) return;
764
- el.children.forEach(child => {
765
- child.next = child.prev = child.parent = null;
766
- });
767
- const textNode = new node.Text(`${str}`);
768
- parse.update(textNode, el);
769
- });
770
- }
771
- /**
772
- * Clone the cheerio object.
773
- *
774
- * @category Manipulation
775
- * @example
776
- *
777
- * ```js
778
- * const moreFruit = $('#fruits').clone();
779
- * ```
780
- *
781
- * @returns The cloned object.
782
- * @see {@link https://api.jquery.com/clone/}
783
- */
784
- function clone() {
785
- return this._make(utils.cloneDom(this.get()));
786
- }
787
- exports._makeDomArray = _makeDomArray;
788
- exports.after = after;
789
- exports.append = append;
790
- exports.appendTo = appendTo;
791
- exports.before = before;
792
- exports.clone = clone;
793
- exports.empty = empty;
794
- exports.html = html;
795
- exports.insertAfter = insertAfter;
796
- exports.insertBefore = insertBefore;
797
- exports.prepend = prepend;
798
- exports.prependTo = prependTo;
799
- exports.remove = remove;
800
- exports.replaceWith = replaceWith;
801
- exports.text = text;
802
- exports.toString = toString;
803
- exports.unwrap = unwrap;
804
- exports.wrap = wrap;
805
- exports.wrapAll = wrapAll;
806
- exports.wrapInner = wrapInner;
807
- //# sourceMappingURL=manipulation.js.map