@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.
- package/lib/components/AnchorLink.js.map +1 -0
- package/lib/components/ApiChangelog.js.map +1 -0
- package/lib/components/ApiDataContext.js.map +1 -0
- package/lib/components/ApiIndex.js.map +1 -0
- package/lib/components/ApiItem.js.map +1 -0
- package/lib/components/ApiItemLayout.js.map +1 -0
- package/lib/components/ApiOptionsLayout.js.map +1 -0
- package/lib/components/ApiPage.js.map +1 -0
- package/lib/components/Breadcrumb.js.map +1 -0
- package/lib/components/Comment.js.map +1 -0
- package/lib/components/CommentBadges.js.map +1 -0
- package/lib/components/DefaultValue.js.map +1 -0
- package/lib/components/Flags.js.map +1 -0
- package/lib/components/Footer.js.map +1 -0
- package/lib/components/Hierarchy.js.map +1 -0
- package/lib/components/Icon.js.map +1 -0
- package/lib/components/Index.js.map +1 -0
- package/lib/components/Markdown.js.map +1 -0
- package/lib/components/Member.js.map +1 -0
- package/lib/components/MemberDeclaration.js.map +1 -0
- package/lib/components/MemberGetterSetter.js.map +1 -0
- package/lib/components/MemberReference.js.map +1 -0
- package/lib/components/MemberSignatureBody.js.map +1 -0
- package/lib/components/MemberSignatureTitle.js.map +1 -0
- package/lib/components/MemberSignatures.js.map +1 -0
- package/lib/components/MemberSources.js.map +1 -0
- package/lib/components/Members.js.map +1 -0
- package/lib/components/MembersGroup.js.map +1 -0
- package/lib/components/Parameter.js.map +1 -0
- package/lib/components/Reflection.js.map +1 -0
- package/lib/components/SourceLink.js.map +1 -0
- package/lib/components/Type.js.map +1 -0
- package/lib/components/TypeAndParent.js.map +1 -0
- package/lib/components/TypeParameters.js.map +1 -0
- package/lib/components/TypeParametersGeneric.js.map +1 -0
- package/lib/components/VersionBanner.js.map +1 -0
- package/lib/hooks/useBreadcrumbs.js.map +1 -0
- package/lib/hooks/useGitRefName.js.map +1 -0
- package/lib/hooks/useMinimalLayout.js.map +1 -0
- package/lib/hooks/useReflection.js.map +1 -0
- package/lib/hooks/useReflectionMap.js.map +1 -0
- package/lib/index.js.map +1 -0
- package/lib/markdownLoader.js.map +1 -0
- package/lib/plugin/data.js.map +1 -0
- package/lib/plugin/python/consts.js.map +1 -0
- package/lib/plugin/python/index.js.map +1 -0
- package/lib/plugin/python/inheritance.js.map +1 -0
- package/lib/plugin/python/packageVersions.js.map +1 -0
- package/lib/plugin/python/transformation.js.map +1 -0
- package/lib/plugin/python/type-parsing/index.js.map +1 -0
- package/lib/plugin/python/utils.js.map +1 -0
- package/lib/plugin/sidebar.js.map +1 -0
- package/lib/plugin/structure/0.23.js.map +1 -0
- package/lib/plugin/url.js.map +1 -0
- package/lib/plugin/version.js.map +1 -0
- package/lib/utils/helpers.js.map +1 -0
- package/lib/utils/hierarchy.js.map +1 -0
- package/lib/utils/icons.js.map +1 -0
- package/lib/utils/links.js.map +1 -0
- package/lib/utils/markdown.js.map +1 -0
- package/lib/{packages/plugin/src/utils → utils}/reexports.js +2 -2
- package/lib/utils/reexports.js.map +1 -0
- package/lib/utils/visibility.js.map +1 -0
- package/package.json +3 -2
- package/lib/_virtual/_commonjsHelpers.js +0 -44
- package/lib/_virtual/_commonjsHelpers.js.map +0 -1
- package/lib/node_modules/boolbase/index.js +0 -18
- package/lib/node_modules/boolbase/index.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/api/attributes.js +0 -568
- package/lib/node_modules/cheerio/lib/esm/api/attributes.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/api/css.js +0 -113
- package/lib/node_modules/cheerio/lib/esm/api/css.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/api/forms.js +0 -92
- package/lib/node_modules/cheerio/lib/esm/api/forms.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/api/manipulation.js +0 -807
- package/lib/node_modules/cheerio/lib/esm/api/manipulation.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/api/traversing.js +0 -842
- package/lib/node_modules/cheerio/lib/esm/api/traversing.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/cheerio.js +0 -41
- package/lib/node_modules/cheerio/lib/esm/cheerio.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/index.js +0 -112
- package/lib/node_modules/cheerio/lib/esm/index.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/load.js +0 -110
- package/lib/node_modules/cheerio/lib/esm/load.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/options.js +0 -32
- package/lib/node_modules/cheerio/lib/esm/options.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/parse.js +0 -78
- package/lib/node_modules/cheerio/lib/esm/parse.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js +0 -57
- package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/static.js +0 -191
- package/lib/node_modules/cheerio/lib/esm/static.js.map +0 -1
- package/lib/node_modules/cheerio/lib/esm/utils.js +0 -105
- package/lib/node_modules/cheerio/lib/esm/utils.js.map +0 -1
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js +0 -381
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js.map +0 -1
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js +0 -888
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +0 -1
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js +0 -69
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js.map +0 -1
- package/lib/node_modules/cheerio-select/lib/esm/helpers.js +0 -22
- package/lib/node_modules/cheerio-select/lib/esm/helpers.js.map +0 -1
- package/lib/node_modules/cheerio-select/lib/esm/index.js +0 -252
- package/lib/node_modules/cheerio-select/lib/esm/index.js.map +0 -1
- package/lib/node_modules/cheerio-select/lib/esm/positionals.js +0 -37
- package/lib/node_modules/cheerio-select/lib/esm/positionals.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/attributes.js +0 -155
- package/lib/node_modules/css-select/lib/esm/attributes.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/compile.js +0 -118
- package/lib/node_modules/css-select/lib/esm/compile.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/general.js +0 -155
- package/lib/node_modules/css-select/lib/esm/general.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/index.js +0 -115
- package/lib/node_modules/css-select/lib/esm/index.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +0 -38
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +0 -151
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js +0 -47
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +0 -88
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +0 -85
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +0 -1
- package/lib/node_modules/css-select/lib/esm/sort.js +0 -70
- package/lib/node_modules/css-select/lib/esm/sort.js.map +0 -1
- package/lib/node_modules/css-what/lib/es/index.js +0 -18
- package/lib/node_modules/css-what/lib/es/index.js.map +0 -1
- package/lib/node_modules/css-what/lib/es/parse.js +0 -397
- package/lib/node_modules/css-what/lib/es/parse.js.map +0 -1
- package/lib/node_modules/css-what/lib/es/stringify.js +0 -95
- package/lib/node_modules/css-what/lib/es/stringify.js.map +0 -1
- package/lib/node_modules/css-what/lib/es/types.js +0 -43
- package/lib/node_modules/css-what/lib/es/types.js.map +0 -1
- package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -7
- package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js.map +0 -1
- package/lib/node_modules/dom-serializer/lib/esm/index.js +0 -146
- package/lib/node_modules/dom-serializer/lib/esm/index.js.map +0 -1
- package/lib/node_modules/domelementtype/lib/esm/index.js +0 -62
- package/lib/node_modules/domelementtype/lib/esm/index.js.map +0 -1
- package/lib/node_modules/domhandler/lib/esm/index.js +0 -166
- package/lib/node_modules/domhandler/lib/esm/index.js.map +0 -1
- package/lib/node_modules/domhandler/lib/esm/node.js +0 -352
- package/lib/node_modules/domhandler/lib/esm/node.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/feeds.js +0 -176
- package/lib/node_modules/domutils/lib/esm/feeds.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/helpers.js +0 -142
- package/lib/node_modules/domutils/lib/esm/helpers.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/index.js +0 -56
- package/lib/node_modules/domutils/lib/esm/index.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/legacy.js +0 -144
- package/lib/node_modules/domutils/lib/esm/legacy.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/manipulation.js +0 -137
- package/lib/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/querying.js +0 -149
- package/lib/node_modules/domutils/lib/esm/querying.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/stringify.js +0 -80
- package/lib/node_modules/domutils/lib/esm/stringify.js.map +0 -1
- package/lib/node_modules/domutils/lib/esm/traversal.js +0 -128
- package/lib/node_modules/domutils/lib/esm/traversal.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/decode.js +0 -495
- package/lib/node_modules/entities/lib/esm/decode.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/decode_codepoint.js +0 -52
- package/lib/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/encode.js +0 -68
- package/lib/node_modules/entities/lib/esm/encode.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/escape.js +0 -103
- package/lib/node_modules/entities/lib/esm/escape.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -8
- package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -8
- package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/generated/encode-html.js +0 -264
- package/lib/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
- package/lib/node_modules/entities/lib/esm/index.js +0 -122
- package/lib/node_modules/entities/lib/esm/index.js.map +0 -1
- package/lib/node_modules/nth-check/lib/esm/compile.js +0 -111
- package/lib/node_modules/nth-check/lib/esm/compile.js.map +0 -1
- package/lib/node_modules/nth-check/lib/esm/index.js +0 -73
- package/lib/node_modules/nth-check/lib/esm/index.js.map +0 -1
- package/lib/node_modules/nth-check/lib/esm/parse.js +0 -71
- package/lib/node_modules/nth-check/lib/esm/parse.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/doctype.js +0 -49
- package/lib/node_modules/parse5/dist/common/doctype.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/error-codes.js +0 -66
- package/lib/node_modules/parse5/dist/common/error-codes.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/foreign-content.js +0 -134
- package/lib/node_modules/parse5/dist/common/foreign-content.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/html.js +0 -316
- package/lib/node_modules/parse5/dist/common/html.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/token.js +0 -24
- package/lib/node_modules/parse5/dist/common/token.js.map +0 -1
- package/lib/node_modules/parse5/dist/common/unicode.js +0 -72
- package/lib/node_modules/parse5/dist/common/unicode.js.map +0 -1
- package/lib/node_modules/parse5/dist/index.js +0 -58
- package/lib/node_modules/parse5/dist/index.js.map +0 -1
- package/lib/node_modules/parse5/dist/parser/formatting-element-list.js +0 -115
- package/lib/node_modules/parse5/dist/parser/formatting-element-list.js.map +0 -1
- package/lib/node_modules/parse5/dist/parser/index.js +0 -3387
- package/lib/node_modules/parse5/dist/parser/index.js.map +0 -1
- package/lib/node_modules/parse5/dist/parser/open-element-stack.js +0 -286
- package/lib/node_modules/parse5/dist/parser/open-element-stack.js.map +0 -1
- package/lib/node_modules/parse5/dist/serializer/index.js +0 -160
- package/lib/node_modules/parse5/dist/serializer/index.js.map +0 -1
- package/lib/node_modules/parse5/dist/tokenizer/index.js +0 -3142
- package/lib/node_modules/parse5/dist/tokenizer/index.js.map +0 -1
- package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -195
- package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js.map +0 -1
- package/lib/node_modules/parse5/dist/tree-adapters/default.js +0 -180
- package/lib/node_modules/parse5/dist/tree-adapters/default.js.map +0 -1
- package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +0 -218
- package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js.map +0 -1
- package/lib/packages/plugin/src/components/AnchorLink.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiChangelog.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiDataContext.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiIndex.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiItem.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiItemLayout.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiOptionsLayout.js.map +0 -1
- package/lib/packages/plugin/src/components/ApiPage.js.map +0 -1
- package/lib/packages/plugin/src/components/Breadcrumb.js.map +0 -1
- package/lib/packages/plugin/src/components/Comment.js.map +0 -1
- package/lib/packages/plugin/src/components/CommentBadges.js.map +0 -1
- package/lib/packages/plugin/src/components/DefaultValue.js.map +0 -1
- package/lib/packages/plugin/src/components/Flags.js.map +0 -1
- package/lib/packages/plugin/src/components/Footer.js.map +0 -1
- package/lib/packages/plugin/src/components/Hierarchy.js.map +0 -1
- package/lib/packages/plugin/src/components/Icon.js.map +0 -1
- package/lib/packages/plugin/src/components/Index.js.map +0 -1
- package/lib/packages/plugin/src/components/Markdown.js.map +0 -1
- package/lib/packages/plugin/src/components/Member.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberDeclaration.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberGetterSetter.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberReference.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberSignatureBody.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberSignatureTitle.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberSignatures.js.map +0 -1
- package/lib/packages/plugin/src/components/MemberSources.js.map +0 -1
- package/lib/packages/plugin/src/components/Members.js.map +0 -1
- package/lib/packages/plugin/src/components/MembersGroup.js.map +0 -1
- package/lib/packages/plugin/src/components/Parameter.js.map +0 -1
- package/lib/packages/plugin/src/components/Reflection.js.map +0 -1
- package/lib/packages/plugin/src/components/SourceLink.js.map +0 -1
- package/lib/packages/plugin/src/components/Type.js.map +0 -1
- package/lib/packages/plugin/src/components/TypeAndParent.js.map +0 -1
- package/lib/packages/plugin/src/components/TypeParameters.js.map +0 -1
- package/lib/packages/plugin/src/components/TypeParametersGeneric.js.map +0 -1
- package/lib/packages/plugin/src/components/VersionBanner.js.map +0 -1
- package/lib/packages/plugin/src/hooks/useBreadcrumbs.js.map +0 -1
- package/lib/packages/plugin/src/hooks/useGitRefName.js.map +0 -1
- package/lib/packages/plugin/src/hooks/useMinimalLayout.js.map +0 -1
- package/lib/packages/plugin/src/hooks/useReflection.js.map +0 -1
- package/lib/packages/plugin/src/hooks/useReflectionMap.js.map +0 -1
- package/lib/packages/plugin/src/index.js.map +0 -1
- package/lib/packages/plugin/src/markdownLoader.js.map +0 -1
- package/lib/packages/plugin/src/plugin/data.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/consts.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/index.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/inheritance.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/packageVersions.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/transformation.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/type-parsing/index.js.map +0 -1
- package/lib/packages/plugin/src/plugin/python/utils.js.map +0 -1
- package/lib/packages/plugin/src/plugin/sidebar.js.map +0 -1
- package/lib/packages/plugin/src/plugin/structure/0.23.js.map +0 -1
- package/lib/packages/plugin/src/plugin/url.js.map +0 -1
- package/lib/packages/plugin/src/plugin/version.js.map +0 -1
- package/lib/packages/plugin/src/types.js +0 -2
- package/lib/packages/plugin/src/types.js.map +0 -1
- package/lib/packages/plugin/src/utils/helpers.js.map +0 -1
- package/lib/packages/plugin/src/utils/hierarchy.js.map +0 -1
- package/lib/packages/plugin/src/utils/icons.js.map +0 -1
- package/lib/packages/plugin/src/utils/links.js.map +0 -1
- package/lib/packages/plugin/src/utils/markdown.js.map +0 -1
- package/lib/packages/plugin/src/utils/reexports.js.map +0 -1
- package/lib/packages/plugin/src/utils/visibility.js.map +0 -1
- /package/lib/{packages/plugin/src/components → components}/AnchorLink.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiChangelog.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiDataContext.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiIndex.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiItem.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiItemLayout.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiOptionsLayout.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/ApiPage.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Breadcrumb.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Comment.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/CommentBadges.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/DefaultValue.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Flags.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Footer.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Hierarchy.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Icon.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Index.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Markdown.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Member.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberDeclaration.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberGetterSetter.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberReference.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberSignatureBody.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberSignatureTitle.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberSignatures.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MemberSources.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Members.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/MembersGroup.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Parameter.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Reflection.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/SourceLink.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/Type.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/TypeAndParent.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/TypeParameters.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/TypeParametersGeneric.js +0 -0
- /package/lib/{packages/plugin/src/components → components}/VersionBanner.js +0 -0
- /package/lib/{packages/plugin/src/hooks → hooks}/useBreadcrumbs.js +0 -0
- /package/lib/{packages/plugin/src/hooks → hooks}/useGitRefName.js +0 -0
- /package/lib/{packages/plugin/src/hooks → hooks}/useMinimalLayout.js +0 -0
- /package/lib/{packages/plugin/src/hooks → hooks}/useReflection.js +0 -0
- /package/lib/{packages/plugin/src/hooks → hooks}/useReflectionMap.js +0 -0
- /package/lib/{packages/plugin/src/index.js → index.js} +0 -0
- /package/lib/{packages/plugin/src/markdownLoader.js → markdownLoader.js} +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/data.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/consts.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/index.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/inheritance.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/packageVersions.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/transformation.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/type-parsing/index.js +0 -0
- /package/lib/{node_modules/cheerio/lib/esm → plugin/python}/types.js +0 -0
- /package/lib/{node_modules/cheerio/lib/esm → plugin/python}/types.js.map +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/python/utils.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/sidebar.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/structure/0.23.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/url.js +0 -0
- /package/lib/{packages/plugin/src/plugin → plugin}/version.js +0 -0
- /package/lib/{packages/plugin/src/plugin/python/types.js → types.js} +0 -0
- /package/lib/{packages/plugin/src/plugin/python/types.js.map → types.js.map} +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/helpers.js +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/hierarchy.js +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/icons.js +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/links.js +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/markdown.js +0 -0
- /package/lib/{packages/plugin/src/utils → utils}/visibility.js +0 -0
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
require('../../../domutils/lib/esm/index.js');
|
|
9
|
-
const options = require('./options.js');
|
|
10
|
-
const stringify = require('../../../domutils/lib/esm/stringify.js');
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Helper function to render a DOM.
|
|
14
|
-
*
|
|
15
|
-
* @param that - Cheerio instance to render.
|
|
16
|
-
* @param dom - The DOM to render. Defaults to `that`'s root.
|
|
17
|
-
* @param options - Options for rendering.
|
|
18
|
-
* @returns The rendered document.
|
|
19
|
-
*/
|
|
20
|
-
function render(that, dom, options) {
|
|
21
|
-
if (!that) return '';
|
|
22
|
-
return that(dom !== null && dom !== void 0 ? dom : that._root.children, null, undefined, options).toString();
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Checks if a passed object is an options object.
|
|
26
|
-
*
|
|
27
|
-
* @param dom - Object to check if it is an options object.
|
|
28
|
-
* @returns Whether the object is an options object.
|
|
29
|
-
*/
|
|
30
|
-
function isOptions(dom, options) {
|
|
31
|
-
return !options && typeof dom === 'object' && dom != null && !('length' in dom) && !('type' in dom);
|
|
32
|
-
}
|
|
33
|
-
function html(dom, options$1) {
|
|
34
|
-
/*
|
|
35
|
-
* Be flexible about parameters, sometimes we call html(),
|
|
36
|
-
* with options as only parameter
|
|
37
|
-
* check dom argument for dom element specific properties
|
|
38
|
-
* assume there is no 'length' or 'type' properties in the options object
|
|
39
|
-
*/
|
|
40
|
-
const toRender = isOptions(dom) ? (options$1 = dom, undefined) : dom;
|
|
41
|
-
/*
|
|
42
|
-
* Sometimes `$.html()` is used without preloading html,
|
|
43
|
-
* so fallback non-existing options to the default ones.
|
|
44
|
-
*/
|
|
45
|
-
const opts = _objectSpread(_objectSpread(_objectSpread({}, options.default), this === null || this === void 0 ? void 0 : this._options), options.flatten(options$1 !== null && options$1 !== void 0 ? options$1 : {}));
|
|
46
|
-
return render(this, toRender, opts);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Render the document as XML.
|
|
50
|
-
*
|
|
51
|
-
* @param dom - Element to render.
|
|
52
|
-
* @returns THe rendered document.
|
|
53
|
-
*/
|
|
54
|
-
function xml(dom) {
|
|
55
|
-
const options = _objectSpread(_objectSpread({}, this._options), {}, {
|
|
56
|
-
xmlMode: true
|
|
57
|
-
});
|
|
58
|
-
return render(this, dom, options);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Render the document as text.
|
|
62
|
-
*
|
|
63
|
-
* This returns the `textContent` of the passed elements. The result will
|
|
64
|
-
* include the contents of `script` and `stype` elements. To avoid this, use
|
|
65
|
-
* `.prop('innerText')` instead.
|
|
66
|
-
*
|
|
67
|
-
* @param elements - Elements to render.
|
|
68
|
-
* @returns The rendered document.
|
|
69
|
-
*/
|
|
70
|
-
function text(elements) {
|
|
71
|
-
const elems = elements ? elements : this ? this.root() : [];
|
|
72
|
-
let ret = '';
|
|
73
|
-
for (let i = 0; i < elems.length; i++) {
|
|
74
|
-
ret += stringify.textContent(elems[i]);
|
|
75
|
-
}
|
|
76
|
-
return ret;
|
|
77
|
-
}
|
|
78
|
-
function parseHTML(data, context, keepScripts = typeof context === 'boolean' ? context : false) {
|
|
79
|
-
if (!data || typeof data !== 'string') {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
if (typeof context === 'boolean') {
|
|
83
|
-
keepScripts = context;
|
|
84
|
-
}
|
|
85
|
-
const parsed = this.load(data, options.default, false);
|
|
86
|
-
if (!keepScripts) {
|
|
87
|
-
parsed('script').remove();
|
|
88
|
-
}
|
|
89
|
-
/*
|
|
90
|
-
* The `children` array is used by Cheerio internally to group elements that
|
|
91
|
-
* share the same parents. When nodes created through `parseHTML` are
|
|
92
|
-
* inserted into previously-existing DOM structures, they will be removed
|
|
93
|
-
* from the `children` array. The results of `parseHTML` should remain
|
|
94
|
-
* constant across these operations, so a shallow copy should be returned.
|
|
95
|
-
*/
|
|
96
|
-
return parsed.root()[0].children.slice();
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Sometimes you need to work with the top-level root element. To query it, you
|
|
100
|
-
* can use `$.root()`.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
*
|
|
104
|
-
* ```js
|
|
105
|
-
* $.root().append('<ul id="vegetables"></ul>').html();
|
|
106
|
-
* //=> <ul id="fruits">...</ul><ul id="vegetables"></ul>
|
|
107
|
-
* ```
|
|
108
|
-
*
|
|
109
|
-
* @returns Cheerio instance wrapping the root node.
|
|
110
|
-
* @alias Cheerio.root
|
|
111
|
-
*/
|
|
112
|
-
function root() {
|
|
113
|
-
return this(this._root);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Checks to see if the `contained` DOM element is a descendant of the
|
|
117
|
-
* `container` DOM element.
|
|
118
|
-
*
|
|
119
|
-
* @param container - Potential parent node.
|
|
120
|
-
* @param contained - Potential child node.
|
|
121
|
-
* @returns Indicates if the nodes contain one another.
|
|
122
|
-
* @alias Cheerio.contains
|
|
123
|
-
* @see {@link https://api.jquery.com/jQuery.contains/}
|
|
124
|
-
*/
|
|
125
|
-
function contains(container, contained) {
|
|
126
|
-
// According to the jQuery API, an element does not "contain" itself
|
|
127
|
-
if (contained === container) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
/*
|
|
131
|
-
* Step up the descendants, stopping when the root element is reached
|
|
132
|
-
* (signaled by `.parent` returning a reference to the same object)
|
|
133
|
-
*/
|
|
134
|
-
let next = contained;
|
|
135
|
-
while (next && next !== next.parent) {
|
|
136
|
-
next = next.parent;
|
|
137
|
-
if (next === container) {
|
|
138
|
-
return true;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* $.merge().
|
|
145
|
-
*
|
|
146
|
-
* @param arr1 - First array.
|
|
147
|
-
* @param arr2 - Second array.
|
|
148
|
-
* @returns `arr1`, with elements of `arr2` inserted.
|
|
149
|
-
* @alias Cheerio.merge
|
|
150
|
-
* @see {@link https://api.jquery.com/jQuery.merge/}
|
|
151
|
-
*/
|
|
152
|
-
function merge(arr1, arr2) {
|
|
153
|
-
if (!isArrayLike(arr1) || !isArrayLike(arr2)) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
let newLength = arr1.length;
|
|
157
|
-
const len = +arr2.length;
|
|
158
|
-
for (let i = 0; i < len; i++) {
|
|
159
|
-
arr1[newLength++] = arr2[i];
|
|
160
|
-
}
|
|
161
|
-
arr1.length = newLength;
|
|
162
|
-
return arr1;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Checks if an object is array-like.
|
|
166
|
-
*
|
|
167
|
-
* @param item - Item to check.
|
|
168
|
-
* @returns Indicates if the item is array-like.
|
|
169
|
-
*/
|
|
170
|
-
function isArrayLike(item) {
|
|
171
|
-
if (Array.isArray(item)) {
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
if (typeof item !== 'object' || !Object.prototype.hasOwnProperty.call(item, 'length') || typeof item.length !== 'number' || item.length < 0) {
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
for (let i = 0; i < item.length; i++) {
|
|
178
|
-
if (!(i in item)) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
exports.contains = contains;
|
|
185
|
-
exports.html = html;
|
|
186
|
-
exports.merge = merge;
|
|
187
|
-
exports.parseHTML = parseHTML;
|
|
188
|
-
exports.root = root;
|
|
189
|
-
exports.text = text;
|
|
190
|
-
exports.xml = xml;
|
|
191
|
-
//# sourceMappingURL=static.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static.js","sources":["../../../../../../../node_modules/cheerio/lib/esm/static.js"],"sourcesContent":null,"names":["options","defaultOptions","flattenOptions","textContent"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE;AACpC,IAAI,IAAI,CAAC,IAAI;AACb,QAAQ,OAAO,EAAE,CAAC;AAClB,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;AACjH,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE;AACjC,IAAI,QAAQ,CAAC,OAAO;AACpB,QAAQ,OAAO,GAAG,KAAK,QAAQ;AAC/B,QAAQ,GAAG,IAAI,IAAI;AACnB,QAA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Q;AACvC,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;AACzB,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,QAAQ,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,EAAE;AAC1B,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AACT,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../../domhandler/lib/esm/index.js');
|
|
4
|
-
const node = require('../../../domhandler/lib/esm/node.js');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Checks if an object is a Cheerio instance.
|
|
8
|
-
*
|
|
9
|
-
* @category Utils
|
|
10
|
-
* @param maybeCheerio - The object to check.
|
|
11
|
-
* @returns Whether the object is a Cheerio instance.
|
|
12
|
-
*/
|
|
13
|
-
function isCheerio(maybeCheerio) {
|
|
14
|
-
return maybeCheerio.cheerio != null;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Convert a string to camel case notation.
|
|
18
|
-
*
|
|
19
|
-
* @private
|
|
20
|
-
* @category Utils
|
|
21
|
-
* @param str - The string to be converted.
|
|
22
|
-
* @returns String in camel case notation.
|
|
23
|
-
*/
|
|
24
|
-
function camelCase(str) {
|
|
25
|
-
return str.replace(/[_.-](\w|$)/g, (_, x) => x.toUpperCase());
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Convert a string from camel case to "CSS case", where word boundaries are
|
|
29
|
-
* described by hyphens ("-") and all characters are lower-case.
|
|
30
|
-
*
|
|
31
|
-
* @private
|
|
32
|
-
* @category Utils
|
|
33
|
-
* @param str - The string to be converted.
|
|
34
|
-
* @returns String in "CSS case".
|
|
35
|
-
*/
|
|
36
|
-
function cssCase(str) {
|
|
37
|
-
return str.replace(/[A-Z]/g, '-$&').toLowerCase();
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Iterate over each DOM element without creating intermediary Cheerio instances.
|
|
41
|
-
*
|
|
42
|
-
* This is indented for use internally to avoid otherwise unnecessary memory
|
|
43
|
-
* pressure introduced by _make.
|
|
44
|
-
*
|
|
45
|
-
* @category Utils
|
|
46
|
-
* @param array - The array to iterate over.
|
|
47
|
-
* @param fn - Function to call.
|
|
48
|
-
* @returns The original instance.
|
|
49
|
-
*/
|
|
50
|
-
function domEach(array, fn) {
|
|
51
|
-
const len = array.length;
|
|
52
|
-
for (let i = 0; i < len; i++) fn(array[i], i);
|
|
53
|
-
return array;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Create a deep copy of the given DOM structure. Sets the parents of the copies
|
|
57
|
-
* of the passed nodes to `null`.
|
|
58
|
-
*
|
|
59
|
-
* @private
|
|
60
|
-
* @category Utils
|
|
61
|
-
* @param dom - The domhandler-compliant DOM structure.
|
|
62
|
-
* @returns - The cloned DOM.
|
|
63
|
-
*/
|
|
64
|
-
function cloneDom(dom) {
|
|
65
|
-
const clone = 'length' in dom ? Array.prototype.map.call(dom, el => node.cloneNode(el, true)) : [node.cloneNode(dom, true)];
|
|
66
|
-
// Add a root node around the cloned nodes
|
|
67
|
-
const root = new node.Document(clone);
|
|
68
|
-
clone.forEach(node => {
|
|
69
|
-
node.parent = root;
|
|
70
|
-
});
|
|
71
|
-
return clone;
|
|
72
|
-
}
|
|
73
|
-
var CharacterCodes;
|
|
74
|
-
(function (CharacterCodes) {
|
|
75
|
-
CharacterCodes[CharacterCodes["LowerA"] = 97] = "LowerA";
|
|
76
|
-
CharacterCodes[CharacterCodes["LowerZ"] = 122] = "LowerZ";
|
|
77
|
-
CharacterCodes[CharacterCodes["UpperA"] = 65] = "UpperA";
|
|
78
|
-
CharacterCodes[CharacterCodes["UpperZ"] = 90] = "UpperZ";
|
|
79
|
-
CharacterCodes[CharacterCodes["Exclamation"] = 33] = "Exclamation";
|
|
80
|
-
})(CharacterCodes || (CharacterCodes = {}));
|
|
81
|
-
/**
|
|
82
|
-
* Check if string is HTML.
|
|
83
|
-
*
|
|
84
|
-
* Tests for a `<` within a string, immediate followed by a letter and
|
|
85
|
-
* eventually followed by a `>`.
|
|
86
|
-
*
|
|
87
|
-
* @private
|
|
88
|
-
* @category Utils
|
|
89
|
-
* @param str - The string to check.
|
|
90
|
-
* @returns Indicates if `str` is HTML.
|
|
91
|
-
*/
|
|
92
|
-
function isHtml(str) {
|
|
93
|
-
const tagStart = str.indexOf('<');
|
|
94
|
-
if (tagStart < 0 || tagStart > str.length - 3) return false;
|
|
95
|
-
const tagChar = str.charCodeAt(tagStart + 1);
|
|
96
|
-
return (tagChar >= CharacterCodes.LowerA && tagChar <= CharacterCodes.LowerZ || tagChar >= CharacterCodes.UpperA && tagChar <= CharacterCodes.UpperZ || tagChar === CharacterCodes.Exclamation) && str.includes('>', tagStart + 2);
|
|
97
|
-
}
|
|
98
|
-
exports.isTag = node.isTag;
|
|
99
|
-
exports.camelCase = camelCase;
|
|
100
|
-
exports.cloneDom = cloneDom;
|
|
101
|
-
exports.cssCase = cssCase;
|
|
102
|
-
exports.domEach = domEach;
|
|
103
|
-
exports.isCheerio = isCheerio;
|
|
104
|
-
exports.isHtml = isHtml;
|
|
105
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../../../node_modules/cheerio/lib/esm/utils.js"],"sourcesContent":null,"names":["cloneNode","Document"],"mappings":";;;;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,YAAY,EAAE;AACxC,IAAI,OAAO,YAAY,CAAC,OAAO,IAAI,IAAI,CAAC;AACxC,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SA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