@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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const cheerio = require('cheerio');
|
|
4
4
|
const fs = require('node:fs');
|
|
5
5
|
const _interopDefault = e => e && e.__esModule ? e : {
|
|
6
6
|
default: e
|
|
@@ -13,7 +13,7 @@ const fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
|
13
13
|
async function loadExternalApiItem(url) {
|
|
14
14
|
console.log(`Loading external API item from ${url}...`);
|
|
15
15
|
const response = await fetch(url);
|
|
16
|
-
const $ =
|
|
16
|
+
const $ = cheerio.load(await response.text(), {
|
|
17
17
|
decodeEntities: false
|
|
18
18
|
});
|
|
19
19
|
const base64encoded = $('script[type="application/typedoc-data;base64"]')?.first()?.text();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reexports.js","sources":["../../src/utils/reexports.ts"],"sourcesContent":null,"names":["load","fs"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AAGA,eAAe,mBAAmB,CAAC,GAAG,EAAE;AACxC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,+BAA+B,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,EAAE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;AACpC,EAAE,MAAM,CAAC,GAAGA,YAAI,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,EAAE;AACxC,IAAI,cAAc,EAAE,KAAK;AACzB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,aAAa,GAAG,CAAC,CAAC,gDAAgD,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC;AAC7F,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,IAAI,CAAC;AAClC,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;AACvC,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AACD;AACA;AACA,SAAS,QAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,IAAI,KAAK,GAAG,CAAC,CAAC;AAChB,EAA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S,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD;AACA;AACO,SAAS,kCAAkC,CAAC,QAAQ,EAAE,WAAW,EAAE;AAC1E,EAAE,IAAI,gBAAgB,GAAG,IAAI,CAAC;AAC9B,EAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,IAAI;AACtC,IAAI,gBAAgB,KAAK,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AAC5D,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AACD;AACA;AACO,SAAS,+BAA+B,CAAC,KAAK,EAAE,WAAW,EAAE;AACpE,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AACrF;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/docusaurus-plugin-typedoc-api",
|
|
3
|
-
"version": "4.2.11-
|
|
3
|
+
"version": "4.2.11-1",
|
|
4
4
|
"description": "Docusaurus plugin that provides source code API documentation powered by TypeDoc. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docusaurus",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"@theme/*",
|
|
33
33
|
"@docusaurus/*",
|
|
34
34
|
"@vscode/*",
|
|
35
|
-
"css$"
|
|
35
|
+
"css$",
|
|
36
|
+
"cheerio*"
|
|
36
37
|
]
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
-
function getDefaultExportFromCjs(x) {
|
|
5
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6
|
-
}
|
|
7
|
-
function getDefaultExportFromNamespaceIfPresent(n) {
|
|
8
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
9
|
-
}
|
|
10
|
-
function getDefaultExportFromNamespaceIfNotNamed(n) {
|
|
11
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
12
|
-
}
|
|
13
|
-
function getAugmentedNamespace(n) {
|
|
14
|
-
if (n.__esModule) return n;
|
|
15
|
-
var f = n.default;
|
|
16
|
-
if (typeof f == "function") {
|
|
17
|
-
var a = function a() {
|
|
18
|
-
if (this instanceof a) {
|
|
19
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
20
|
-
}
|
|
21
|
-
return f.apply(this, arguments);
|
|
22
|
-
};
|
|
23
|
-
a.prototype = f.prototype;
|
|
24
|
-
} else a = {};
|
|
25
|
-
Object.defineProperty(a, '__esModule', {
|
|
26
|
-
value: true
|
|
27
|
-
});
|
|
28
|
-
Object.keys(n).forEach(function (k) {
|
|
29
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
30
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return n[k];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
return a;
|
|
38
|
-
}
|
|
39
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
40
|
-
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
41
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
42
|
-
exports.getDefaultExportFromNamespaceIfNotNamed = getDefaultExportFromNamespaceIfNotNamed;
|
|
43
|
-
exports.getDefaultExportFromNamespaceIfPresent = getDefaultExportFromNamespaceIfPresent;
|
|
44
|
-
//# sourceMappingURL=_commonjsHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
const _commonjsHelpers = require('../../_virtual/_commonjsHelpers.js');
|
|
7
|
-
var boolbase = {
|
|
8
|
-
trueFunc: function trueFunc() {
|
|
9
|
-
return true;
|
|
10
|
-
},
|
|
11
|
-
falseFunc: function falseFunc() {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const boolbase$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(boolbase);
|
|
16
|
-
exports.boolbase = boolbase;
|
|
17
|
-
exports.default = boolbase$1;
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/boolbase/index.js"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAAA,IAAA,QAAc,GAAG;AACjB,CAAC,QAAQ,EAAE,SAAS,QAAQ,EAAE;AAC9B,EAAE,OAAO,IAAI,CAAC;AACd,EAAE;AACF,CAAC,SAAS,EAAE,SAAS,SAAS,EAAE;AAChC,EAAE,OAAO,KAAK,CAAC;AACf,EAAE;AACF,EAAC;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,568 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const _static = require('../static.js');
|
|
4
|
-
const utils = require('../utils.js');
|
|
5
|
-
require('../../../../domutils/lib/esm/index.js');
|
|
6
|
-
const node = require('../../../../domhandler/lib/esm/node.js');
|
|
7
|
-
const stringify = require('../../../../domutils/lib/esm/stringify.js');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Methods for getting and modifying attributes.
|
|
11
|
-
*
|
|
12
|
-
* @module cheerio/attributes
|
|
13
|
-
*/
|
|
14
|
-
const hasOwn = Object.prototype.hasOwnProperty;
|
|
15
|
-
const rspace = /\s+/;
|
|
16
|
-
const dataAttrPrefix = 'data-';
|
|
17
|
-
/*
|
|
18
|
-
* Lookup table for coercing string data-* attributes to their corresponding
|
|
19
|
-
* JavaScript primitives
|
|
20
|
-
*/
|
|
21
|
-
const primitives = {
|
|
22
|
-
null: null,
|
|
23
|
-
true: true,
|
|
24
|
-
false: false
|
|
25
|
-
};
|
|
26
|
-
// Attributes that are booleans
|
|
27
|
-
const rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
|
|
28
|
-
// Matches strings that look like JSON objects or arrays
|
|
29
|
-
const rbrace = /^{[^]*}$|^\[[^]*]$/;
|
|
30
|
-
function getAttr(elem, name, xmlMode) {
|
|
31
|
-
var _a;
|
|
32
|
-
if (!elem || !node.isTag(elem)) return undefined;
|
|
33
|
-
(_a = elem.attribs) !== null && _a !== void 0 ? _a : elem.attribs = {};
|
|
34
|
-
// Return the entire attribs object if no attribute specified
|
|
35
|
-
if (!name) {
|
|
36
|
-
return elem.attribs;
|
|
37
|
-
}
|
|
38
|
-
if (hasOwn.call(elem.attribs, name)) {
|
|
39
|
-
// Get the (decoded) attribute
|
|
40
|
-
return !xmlMode && rboolean.test(name) ? name : elem.attribs[name];
|
|
41
|
-
}
|
|
42
|
-
// Mimic the DOM and return text content as value for `option's`
|
|
43
|
-
if (elem.name === 'option' && name === 'value') {
|
|
44
|
-
return _static.text(elem.children);
|
|
45
|
-
}
|
|
46
|
-
// Mimic DOM with default value for radios/checkboxes
|
|
47
|
-
if (elem.name === 'input' && (elem.attribs['type'] === 'radio' || elem.attribs['type'] === 'checkbox') && name === 'value') {
|
|
48
|
-
return 'on';
|
|
49
|
-
}
|
|
50
|
-
return undefined;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Sets the value of an attribute. The attribute will be deleted if the value is `null`.
|
|
54
|
-
*
|
|
55
|
-
* @private
|
|
56
|
-
* @param el - The element to set the attribute on.
|
|
57
|
-
* @param name - The attribute's name.
|
|
58
|
-
* @param value - The attribute's value.
|
|
59
|
-
*/
|
|
60
|
-
function setAttr(el, name, value) {
|
|
61
|
-
if (value === null) {
|
|
62
|
-
removeAttribute(el, name);
|
|
63
|
-
} else {
|
|
64
|
-
el.attribs[name] = `${value}`;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function attr(name, value) {
|
|
68
|
-
// Set the value (with attr map support)
|
|
69
|
-
if (typeof name === 'object' || value !== undefined) {
|
|
70
|
-
if (typeof value === 'function') {
|
|
71
|
-
if (typeof name !== 'string') {
|
|
72
|
-
{
|
|
73
|
-
throw new Error('Bad combination of arguments.');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return utils.domEach(this, (el, i) => {
|
|
77
|
-
if (node.isTag(el)) setAttr(el, name, value.call(el, i, el.attribs[name]));
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return utils.domEach(this, el => {
|
|
81
|
-
if (!node.isTag(el)) return;
|
|
82
|
-
if (typeof name === 'object') {
|
|
83
|
-
Object.keys(name).forEach(objName => {
|
|
84
|
-
const objValue = name[objName];
|
|
85
|
-
setAttr(el, objName, objValue);
|
|
86
|
-
});
|
|
87
|
-
} else {
|
|
88
|
-
setAttr(el, name, value);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return arguments.length > 1 ? this : getAttr(this[0], name, this.options.xmlMode);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Gets a node's prop.
|
|
96
|
-
*
|
|
97
|
-
* @private
|
|
98
|
-
* @category Attributes
|
|
99
|
-
* @param el - Element to get the prop of.
|
|
100
|
-
* @param name - Name of the prop.
|
|
101
|
-
* @returns The prop's value.
|
|
102
|
-
*/
|
|
103
|
-
function getProp(el, name, xmlMode) {
|
|
104
|
-
return name in el ?
|
|
105
|
-
// @ts-expect-error TS doesn't like us accessing the value directly here.
|
|
106
|
-
el[name] : !xmlMode && rboolean.test(name) ? getAttr(el, name, false) !== undefined : getAttr(el, name, xmlMode);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Sets the value of a prop.
|
|
110
|
-
*
|
|
111
|
-
* @private
|
|
112
|
-
* @param el - The element to set the prop on.
|
|
113
|
-
* @param name - The prop's name.
|
|
114
|
-
* @param value - The prop's value.
|
|
115
|
-
*/
|
|
116
|
-
function setProp(el, name, value, xmlMode) {
|
|
117
|
-
if (name in el) {
|
|
118
|
-
// @ts-expect-error Overriding value
|
|
119
|
-
el[name] = value;
|
|
120
|
-
} else {
|
|
121
|
-
setAttr(el, name, !xmlMode && rboolean.test(name) ? value ? '' : null : `${value}`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function prop(name, value) {
|
|
125
|
-
var _a;
|
|
126
|
-
if (typeof name === 'string' && value === undefined) {
|
|
127
|
-
const el = this[0];
|
|
128
|
-
if (!el || !node.isTag(el)) return undefined;
|
|
129
|
-
switch (name) {
|
|
130
|
-
case 'style':
|
|
131
|
-
{
|
|
132
|
-
const property = this.css();
|
|
133
|
-
const keys = Object.keys(property);
|
|
134
|
-
keys.forEach((p, i) => {
|
|
135
|
-
property[i] = p;
|
|
136
|
-
});
|
|
137
|
-
property.length = keys.length;
|
|
138
|
-
return property;
|
|
139
|
-
}
|
|
140
|
-
case 'tagName':
|
|
141
|
-
case 'nodeName':
|
|
142
|
-
{
|
|
143
|
-
return el.name.toUpperCase();
|
|
144
|
-
}
|
|
145
|
-
case 'href':
|
|
146
|
-
case 'src':
|
|
147
|
-
{
|
|
148
|
-
const prop = (_a = el.attribs) === null || _a === void 0 ? void 0 : _a[name];
|
|
149
|
-
/* eslint-disable node/no-unsupported-features/node-builtins */
|
|
150
|
-
if (typeof URL !== 'undefined' && (name === 'href' && (el.tagName === 'a' || el.name === 'link') || name === 'src' && (el.tagName === 'img' || el.tagName === 'iframe' || el.tagName === 'audio' || el.tagName === 'video' || el.tagName === 'source')) && prop !== undefined && this.options.baseURI) {
|
|
151
|
-
return new URL(prop, this.options.baseURI).href;
|
|
152
|
-
}
|
|
153
|
-
/* eslint-enable node/no-unsupported-features/node-builtins */
|
|
154
|
-
return prop;
|
|
155
|
-
}
|
|
156
|
-
case 'innerText':
|
|
157
|
-
{
|
|
158
|
-
return stringify.innerText(el);
|
|
159
|
-
}
|
|
160
|
-
case 'textContent':
|
|
161
|
-
{
|
|
162
|
-
return stringify.textContent(el);
|
|
163
|
-
}
|
|
164
|
-
case 'outerHTML':
|
|
165
|
-
return this.clone().wrap('<container />').parent().html();
|
|
166
|
-
case 'innerHTML':
|
|
167
|
-
return this.html();
|
|
168
|
-
default:
|
|
169
|
-
return getProp(el, name, this.options.xmlMode);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if (typeof name === 'object' || value !== undefined) {
|
|
173
|
-
if (typeof value === 'function') {
|
|
174
|
-
if (typeof name === 'object') {
|
|
175
|
-
throw new Error('Bad combination of arguments.');
|
|
176
|
-
}
|
|
177
|
-
return utils.domEach(this, (el, i) => {
|
|
178
|
-
if (node.isTag(el)) {
|
|
179
|
-
setProp(el, name, value.call(el, i, getProp(el, name, this.options.xmlMode)), this.options.xmlMode);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
return utils.domEach(this, el => {
|
|
184
|
-
if (!node.isTag(el)) return;
|
|
185
|
-
if (typeof name === 'object') {
|
|
186
|
-
Object.keys(name).forEach(key => {
|
|
187
|
-
const val = name[key];
|
|
188
|
-
setProp(el, key, val, this.options.xmlMode);
|
|
189
|
-
});
|
|
190
|
-
} else {
|
|
191
|
-
setProp(el, name, value, this.options.xmlMode);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
return undefined;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Sets the value of a data attribute.
|
|
199
|
-
*
|
|
200
|
-
* @private
|
|
201
|
-
* @param el - The element to set the data attribute on.
|
|
202
|
-
* @param name - The data attribute's name.
|
|
203
|
-
* @param value - The data attribute's value.
|
|
204
|
-
*/
|
|
205
|
-
function setData(el, name, value) {
|
|
206
|
-
var _a;
|
|
207
|
-
const elem = el;
|
|
208
|
-
(_a = elem.data) !== null && _a !== void 0 ? _a : elem.data = {};
|
|
209
|
-
if (typeof name === 'object') Object.assign(elem.data, name);else if (typeof name === 'string' && value !== undefined) {
|
|
210
|
-
elem.data[name] = value;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Read the specified attribute from the equivalent HTML5 `data-*` attribute,
|
|
215
|
-
* and (if present) cache the value in the node's internal data store. If no
|
|
216
|
-
* attribute name is specified, read _all_ HTML5 `data-*` attributes in this manner.
|
|
217
|
-
*
|
|
218
|
-
* @private
|
|
219
|
-
* @category Attributes
|
|
220
|
-
* @param el - Element to get the data attribute of.
|
|
221
|
-
* @param name - Name of the data attribute.
|
|
222
|
-
* @returns The data attribute's value, or a map with all of the data attributes.
|
|
223
|
-
*/
|
|
224
|
-
function readData(el, name) {
|
|
225
|
-
let domNames;
|
|
226
|
-
let jsNames;
|
|
227
|
-
let value;
|
|
228
|
-
if (name == null) {
|
|
229
|
-
domNames = Object.keys(el.attribs).filter(attrName => attrName.startsWith(dataAttrPrefix));
|
|
230
|
-
jsNames = domNames.map(domName => utils.camelCase(domName.slice(dataAttrPrefix.length)));
|
|
231
|
-
} else {
|
|
232
|
-
domNames = [dataAttrPrefix + utils.cssCase(name)];
|
|
233
|
-
jsNames = [name];
|
|
234
|
-
}
|
|
235
|
-
for (let idx = 0; idx < domNames.length; ++idx) {
|
|
236
|
-
const domName = domNames[idx];
|
|
237
|
-
const jsName = jsNames[idx];
|
|
238
|
-
if (hasOwn.call(el.attribs, domName) && !hasOwn.call(el.data, jsName)) {
|
|
239
|
-
value = el.attribs[domName];
|
|
240
|
-
if (hasOwn.call(primitives, value)) {
|
|
241
|
-
value = primitives[value];
|
|
242
|
-
} else if (value === String(Number(value))) {
|
|
243
|
-
value = Number(value);
|
|
244
|
-
} else if (rbrace.test(value)) {
|
|
245
|
-
try {
|
|
246
|
-
value = JSON.parse(value);
|
|
247
|
-
} catch (e) {
|
|
248
|
-
/* Ignore */
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
el.data[jsName] = value;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return name == null ? el.data : value;
|
|
255
|
-
}
|
|
256
|
-
function data(name, value) {
|
|
257
|
-
var _a;
|
|
258
|
-
const elem = this[0];
|
|
259
|
-
if (!elem || !node.isTag(elem)) return;
|
|
260
|
-
const dataEl = elem;
|
|
261
|
-
(_a = dataEl.data) !== null && _a !== void 0 ? _a : dataEl.data = {};
|
|
262
|
-
// Return the entire data object if no data specified
|
|
263
|
-
if (!name) {
|
|
264
|
-
return readData(dataEl);
|
|
265
|
-
}
|
|
266
|
-
// Set the value (with attr map support)
|
|
267
|
-
if (typeof name === 'object' || value !== undefined) {
|
|
268
|
-
utils.domEach(this, el => {
|
|
269
|
-
if (node.isTag(el)) {
|
|
270
|
-
if (typeof name === 'object') setData(el, name);else setData(el, name, value);
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
return this;
|
|
274
|
-
}
|
|
275
|
-
if (hasOwn.call(dataEl.data, name)) {
|
|
276
|
-
return dataEl.data[name];
|
|
277
|
-
}
|
|
278
|
-
return readData(dataEl, name);
|
|
279
|
-
}
|
|
280
|
-
function val(value) {
|
|
281
|
-
const querying = arguments.length === 0;
|
|
282
|
-
const element = this[0];
|
|
283
|
-
if (!element || !node.isTag(element)) return querying ? undefined : this;
|
|
284
|
-
switch (element.name) {
|
|
285
|
-
case 'textarea':
|
|
286
|
-
return this.text(value);
|
|
287
|
-
case 'select':
|
|
288
|
-
{
|
|
289
|
-
const option = this.find('option:selected');
|
|
290
|
-
if (!querying) {
|
|
291
|
-
if (this.attr('multiple') == null && typeof value === 'object') {
|
|
292
|
-
return this;
|
|
293
|
-
}
|
|
294
|
-
this.find('option').removeAttr('selected');
|
|
295
|
-
const values = typeof value !== 'object' ? [value] : value;
|
|
296
|
-
for (let i = 0; i < values.length; i++) {
|
|
297
|
-
this.find(`option[value="${values[i]}"]`).attr('selected', '');
|
|
298
|
-
}
|
|
299
|
-
return this;
|
|
300
|
-
}
|
|
301
|
-
return this.attr('multiple') ? option.toArray().map(el => _static.text(el.children)) : option.attr('value');
|
|
302
|
-
}
|
|
303
|
-
case 'input':
|
|
304
|
-
case 'option':
|
|
305
|
-
return querying ? this.attr('value') : this.attr('value', value);
|
|
306
|
-
}
|
|
307
|
-
return undefined;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Remove an attribute.
|
|
311
|
-
*
|
|
312
|
-
* @private
|
|
313
|
-
* @param elem - Node to remove attribute from.
|
|
314
|
-
* @param name - Name of the attribute to remove.
|
|
315
|
-
*/
|
|
316
|
-
function removeAttribute(elem, name) {
|
|
317
|
-
if (!elem.attribs || !hasOwn.call(elem.attribs, name)) return;
|
|
318
|
-
delete elem.attribs[name];
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Splits a space-separated list of names to individual names.
|
|
322
|
-
*
|
|
323
|
-
* @category Attributes
|
|
324
|
-
* @param names - Names to split.
|
|
325
|
-
* @returns - Split names.
|
|
326
|
-
*/
|
|
327
|
-
function splitNames(names) {
|
|
328
|
-
return names ? names.trim().split(rspace) : [];
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Method for removing attributes by `name`.
|
|
332
|
-
*
|
|
333
|
-
* @category Attributes
|
|
334
|
-
* @example
|
|
335
|
-
*
|
|
336
|
-
* ```js
|
|
337
|
-
* $('.pear').removeAttr('class').html();
|
|
338
|
-
* //=> <li>Pear</li>
|
|
339
|
-
*
|
|
340
|
-
* $('.apple').attr('id', 'favorite');
|
|
341
|
-
* $('.apple').removeAttr('id class').html();
|
|
342
|
-
* //=> <li>Apple</li>
|
|
343
|
-
* ```
|
|
344
|
-
*
|
|
345
|
-
* @param name - Name of the attribute.
|
|
346
|
-
* @returns The instance itself.
|
|
347
|
-
* @see {@link https://api.jquery.com/removeAttr/}
|
|
348
|
-
*/
|
|
349
|
-
function removeAttr(name) {
|
|
350
|
-
const attrNames = splitNames(name);
|
|
351
|
-
for (let i = 0; i < attrNames.length; i++) {
|
|
352
|
-
utils.domEach(this, elem => {
|
|
353
|
-
if (node.isTag(elem)) removeAttribute(elem, attrNames[i]);
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
return this;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Check to see if _any_ of the matched elements have the given `className`.
|
|
360
|
-
*
|
|
361
|
-
* @category Attributes
|
|
362
|
-
* @example
|
|
363
|
-
*
|
|
364
|
-
* ```js
|
|
365
|
-
* $('.pear').hasClass('pear');
|
|
366
|
-
* //=> true
|
|
367
|
-
*
|
|
368
|
-
* $('apple').hasClass('fruit');
|
|
369
|
-
* //=> false
|
|
370
|
-
*
|
|
371
|
-
* $('li').hasClass('pear');
|
|
372
|
-
* //=> true
|
|
373
|
-
* ```
|
|
374
|
-
*
|
|
375
|
-
* @param className - Name of the class.
|
|
376
|
-
* @returns Indicates if an element has the given `className`.
|
|
377
|
-
* @see {@link https://api.jquery.com/hasClass/}
|
|
378
|
-
*/
|
|
379
|
-
function hasClass(className) {
|
|
380
|
-
return this.toArray().some(elem => {
|
|
381
|
-
const clazz = node.isTag(elem) && elem.attribs['class'];
|
|
382
|
-
let idx = -1;
|
|
383
|
-
if (clazz && className.length) {
|
|
384
|
-
while ((idx = clazz.indexOf(className, idx + 1)) > -1) {
|
|
385
|
-
const end = idx + className.length;
|
|
386
|
-
if ((idx === 0 || rspace.test(clazz[idx - 1])) && (end === clazz.length || rspace.test(clazz[end]))) {
|
|
387
|
-
return true;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return false;
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Adds class(es) to all of the matched elements. Also accepts a `function`.
|
|
396
|
-
*
|
|
397
|
-
* @category Attributes
|
|
398
|
-
* @example
|
|
399
|
-
*
|
|
400
|
-
* ```js
|
|
401
|
-
* $('.pear').addClass('fruit').html();
|
|
402
|
-
* //=> <li class="pear fruit">Pear</li>
|
|
403
|
-
*
|
|
404
|
-
* $('.apple').addClass('fruit red').html();
|
|
405
|
-
* //=> <li class="apple fruit red">Apple</li>
|
|
406
|
-
* ```
|
|
407
|
-
*
|
|
408
|
-
* @param value - Name of new class.
|
|
409
|
-
* @returns The instance itself.
|
|
410
|
-
* @see {@link https://api.jquery.com/addClass/}
|
|
411
|
-
*/
|
|
412
|
-
function addClass(value) {
|
|
413
|
-
// Support functions
|
|
414
|
-
if (typeof value === 'function') {
|
|
415
|
-
return utils.domEach(this, (el, i) => {
|
|
416
|
-
if (node.isTag(el)) {
|
|
417
|
-
const className = el.attribs['class'] || '';
|
|
418
|
-
addClass.call([el], value.call(el, i, className));
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
// Return if no value or not a string or function
|
|
423
|
-
if (!value || typeof value !== 'string') return this;
|
|
424
|
-
const classNames = value.split(rspace);
|
|
425
|
-
const numElements = this.length;
|
|
426
|
-
for (let i = 0; i < numElements; i++) {
|
|
427
|
-
const el = this[i];
|
|
428
|
-
// If selected element isn't a tag, move on
|
|
429
|
-
if (!node.isTag(el)) continue;
|
|
430
|
-
// If we don't already have classes — always set xmlMode to false here, as it doesn't matter for classes
|
|
431
|
-
const className = getAttr(el, 'class', false);
|
|
432
|
-
if (!className) {
|
|
433
|
-
setAttr(el, 'class', classNames.join(' ').trim());
|
|
434
|
-
} else {
|
|
435
|
-
let setClass = ` ${className} `;
|
|
436
|
-
// Check if class already exists
|
|
437
|
-
for (let j = 0; j < classNames.length; j++) {
|
|
438
|
-
const appendClass = `${classNames[j]} `;
|
|
439
|
-
if (!setClass.includes(` ${appendClass}`)) setClass += appendClass;
|
|
440
|
-
}
|
|
441
|
-
setAttr(el, 'class', setClass.trim());
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return this;
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Removes one or more space-separated classes from the selected elements. If no
|
|
448
|
-
* `className` is defined, all classes will be removed. Also accepts a `function`.
|
|
449
|
-
*
|
|
450
|
-
* @category Attributes
|
|
451
|
-
* @example
|
|
452
|
-
*
|
|
453
|
-
* ```js
|
|
454
|
-
* $('.pear').removeClass('pear').html();
|
|
455
|
-
* //=> <li class="">Pear</li>
|
|
456
|
-
*
|
|
457
|
-
* $('.apple').addClass('red').removeClass().html();
|
|
458
|
-
* //=> <li class="">Apple</li>
|
|
459
|
-
* ```
|
|
460
|
-
*
|
|
461
|
-
* @param name - Name of the class. If not specified, removes all elements.
|
|
462
|
-
* @returns The instance itself.
|
|
463
|
-
* @see {@link https://api.jquery.com/removeClass/}
|
|
464
|
-
*/
|
|
465
|
-
function removeClass(name) {
|
|
466
|
-
// Handle if value is a function
|
|
467
|
-
if (typeof name === 'function') {
|
|
468
|
-
return utils.domEach(this, (el, i) => {
|
|
469
|
-
if (node.isTag(el)) {
|
|
470
|
-
removeClass.call([el], name.call(el, i, el.attribs['class'] || ''));
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
const classes = splitNames(name);
|
|
475
|
-
const numClasses = classes.length;
|
|
476
|
-
const removeAll = arguments.length === 0;
|
|
477
|
-
return utils.domEach(this, el => {
|
|
478
|
-
if (!node.isTag(el)) return;
|
|
479
|
-
if (removeAll) {
|
|
480
|
-
// Short circuit the remove all case as this is the nice one
|
|
481
|
-
el.attribs['class'] = '';
|
|
482
|
-
} else {
|
|
483
|
-
const elClasses = splitNames(el.attribs['class']);
|
|
484
|
-
let changed = false;
|
|
485
|
-
for (let j = 0; j < numClasses; j++) {
|
|
486
|
-
const index = elClasses.indexOf(classes[j]);
|
|
487
|
-
if (index >= 0) {
|
|
488
|
-
elClasses.splice(index, 1);
|
|
489
|
-
changed = true;
|
|
490
|
-
/*
|
|
491
|
-
* We have to do another pass to ensure that there are not duplicate
|
|
492
|
-
* classes listed
|
|
493
|
-
*/
|
|
494
|
-
j--;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
if (changed) {
|
|
498
|
-
el.attribs['class'] = elClasses.join(' ');
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* Add or remove class(es) from the matched elements, depending on either the
|
|
505
|
-
* class's presence or the value of the switch argument. Also accepts a `function`.
|
|
506
|
-
*
|
|
507
|
-
* @category Attributes
|
|
508
|
-
* @example
|
|
509
|
-
*
|
|
510
|
-
* ```js
|
|
511
|
-
* $('.apple.green').toggleClass('fruit green red').html();
|
|
512
|
-
* //=> <li class="apple fruit red">Apple</li>
|
|
513
|
-
*
|
|
514
|
-
* $('.apple.green').toggleClass('fruit green red', true).html();
|
|
515
|
-
* //=> <li class="apple green fruit red">Apple</li>
|
|
516
|
-
* ```
|
|
517
|
-
*
|
|
518
|
-
* @param value - Name of the class. Can also be a function.
|
|
519
|
-
* @param stateVal - If specified the state of the class.
|
|
520
|
-
* @returns The instance itself.
|
|
521
|
-
* @see {@link https://api.jquery.com/toggleClass/}
|
|
522
|
-
*/
|
|
523
|
-
function toggleClass(value, stateVal) {
|
|
524
|
-
// Support functions
|
|
525
|
-
if (typeof value === 'function') {
|
|
526
|
-
return utils.domEach(this, (el, i) => {
|
|
527
|
-
if (node.isTag(el)) {
|
|
528
|
-
toggleClass.call([el], value.call(el, i, el.attribs['class'] || '', stateVal), stateVal);
|
|
529
|
-
}
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
// Return if no value or not a string or function
|
|
533
|
-
if (!value || typeof value !== 'string') return this;
|
|
534
|
-
const classNames = value.split(rspace);
|
|
535
|
-
const numClasses = classNames.length;
|
|
536
|
-
const state = typeof stateVal === 'boolean' ? stateVal ? 1 : -1 : 0;
|
|
537
|
-
const numElements = this.length;
|
|
538
|
-
for (let i = 0; i < numElements; i++) {
|
|
539
|
-
const el = this[i];
|
|
540
|
-
// If selected element isn't a tag, move on
|
|
541
|
-
if (!node.isTag(el)) continue;
|
|
542
|
-
const elementClasses = splitNames(el.attribs['class']);
|
|
543
|
-
// Check if class already exists
|
|
544
|
-
for (let j = 0; j < numClasses; j++) {
|
|
545
|
-
// Check if the class name is currently defined
|
|
546
|
-
const index = elementClasses.indexOf(classNames[j]);
|
|
547
|
-
// Add if stateValue === true or we are toggling and there is no value
|
|
548
|
-
if (state >= 0 && index < 0) {
|
|
549
|
-
elementClasses.push(classNames[j]);
|
|
550
|
-
} else if (state <= 0 && index >= 0) {
|
|
551
|
-
// Otherwise remove but only if the item exists
|
|
552
|
-
elementClasses.splice(index, 1);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
el.attribs['class'] = elementClasses.join(' ');
|
|
556
|
-
}
|
|
557
|
-
return this;
|
|
558
|
-
}
|
|
559
|
-
exports.addClass = addClass;
|
|
560
|
-
exports.attr = attr;
|
|
561
|
-
exports.data = data;
|
|
562
|
-
exports.hasClass = hasClass;
|
|
563
|
-
exports.prop = prop;
|
|
564
|
-
exports.removeAttr = removeAttr;
|
|
565
|
-
exports.removeClass = removeClass;
|
|
566
|
-
exports.toggleClass = toggleClass;
|
|
567
|
-
exports.val = val;
|
|
568
|
-
//# sourceMappingURL=attributes.js.map
|