From 24eb09d8b55ed390d1084ccdeb2dbc842119e0cf Mon Sep 17 00:00:00 2001 From: Gijs de Man Date: Fri, 8 Dec 2023 13:09:04 +0100 Subject: [PATCH] Use improved TypeScript support of Docusaurus for demo --- .idea/inspectionProfiles/Project_Default.xml | 6 - .idea/vcs.xml | 6 - .idea/workspace.xml | 89 -- .../{languagetabs.md => languagetabs.mdx} | 0 .../customization/{styling.md => styling.mdx} | 0 demo/docs/{sidebars.md => sidebars.mdx} | 0 demo/docs/{versioning.md => versioning.mdx} | 0 demo/docusaurus.config.js | 273 ------ demo/docusaurus.config.ts | 269 ++++++ .../HomepageFeatures/{index.js => index.tsx} | 0 .../src/utils/{prismDark.mjs => prismDark.ts} | 9 +- .../utils/{prismLight.mjs => prismLight.ts} | 11 +- package.json | 14 +- .../src/index.ts | 114 +-- .../src/markdown/createAuthentication.ts | 16 +- .../src/markdown/createContactInfo.ts | 2 +- .../src/markdown/createDeprecationNotice.ts | 2 +- .../src/markdown/createLicense.ts | 2 +- .../src/markdown/createLogo.ts | 2 +- .../src/markdown/createParamsDetails.ts | 2 +- .../src/markdown/createRequestSchema.ts | 2 +- .../src/markdown/createResponseSchema.ts | 2 +- .../src/markdown/createSchema.test.ts | 4 +- .../src/markdown/createSchema.ts | 60 +- .../src/markdown/createStatusCodes.ts | 10 +- .../src/markdown/schema.ts | 6 +- .../src/markdown/utils.ts | 2 +- .../src/openapi/createRequestExample.ts | 9 +- .../src/openapi/createResponseExample.ts | 9 +- .../src/openapi/openapi.test.ts | 4 +- .../src/openapi/openapi.ts | 42 +- .../src/openapi/utils/loadAndResolveSpec.ts | 6 +- .../openapi/utils/services/OpenAPIParser.ts | 22 +- .../utils/services/RedocNormalizedOptions.ts | 50 +- .../src/openapi/utils/utils/helpers.ts | 10 +- .../src/openapi/utils/utils/openapi.ts | 62 +- .../src/options.ts | 4 +- .../src/sidebars/index.ts | 18 +- .../src/index.ts | 2 +- .../src/markdown/schema.ts | 6 +- .../src/markdown/utils.ts | 2 +- .../src/theme-openapi.d.ts | 12 +- .../ApiCodeBlock/ExpandButton/index.js | 8 +- .../ApiCodeBlock/Container/index.js | 2 +- .../ApiCodeBlock/Content/Element.js | 2 +- .../ApiCodeBlock/Content/String.js | 8 +- .../ApiCodeBlock/CopyButton/index.js | 2 +- .../ApiCodeBlock/ExitButton/index.js | 2 +- .../ApiCodeBlock/ExpandButton/index.js | 8 +- .../ApiExplorer/ApiCodeBlock/Line/index.js | 2 +- .../ApiCodeBlock/WordWrapButton/index.js | 2 +- .../theme/ApiExplorer/Authorization/index.tsx | 10 +- .../theme/ApiExplorer/Authorization/slice.ts | 2 +- .../src/theme/ApiExplorer/Body/index.tsx | 8 +- .../src/theme/ApiExplorer/Body/slice.ts | 4 +- .../theme/ApiExplorer/CodeSnippets/index.tsx | 10 +- .../theme/ApiExplorer/CodeTabs/_CodeTabs.scss | 6 +- .../src/theme/ApiExplorer/CodeTabs/index.js | 12 +- .../FloatingButton/_FloatingButton.scss | 4 +- .../ApiExplorer/MethodEndpoint/index.tsx | 2 +- .../ParamFormItems/ParamArrayFormItem.tsx | 2 +- .../ParamFormItems/ParamBooleanFormItem.tsx | 2 +- .../ParamMultiSelectFormItem.tsx | 10 +- .../ParamFormItems/ParamSelectFormItem.tsx | 2 +- .../ParamFormItems/ParamTextFormItem.tsx | 2 +- .../ParamOptions/_ParamOptions.scss | 3 +- .../theme/ApiExplorer/Request/_Request.scss | 6 +- .../src/theme/ApiExplorer/Request/index.tsx | 2 +- .../theme/ApiExplorer/Request/makeRequest.ts | 6 +- .../theme/ApiExplorer/Response/_Response.scss | 6 +- .../src/theme/ApiExplorer/Response/index.tsx | 4 +- .../src/theme/ApiExplorer/Server/index.tsx | 16 +- .../src/theme/ApiExplorer/Server/slice.ts | 2 +- .../theme/ApiExplorer/buildPostmanRequest.ts | 6 +- .../ApiExplorer/persistanceMiddleware.ts | 2 +- .../src/theme/ApiItem/index.tsx | 6 +- .../src/theme/ApiItem/store.ts | 4 +- .../src/theme/ApiTabs/index.js | 12 +- .../src/theme/DiscriminatorTabs/index.js | 8 +- .../src/theme/MimeTabs/index.js | 8 +- .../src/theme/ParamsItem/index.js | 6 +- .../src/theme/SchemaItem/index.js | 4 +- .../src/theme/SchemaTabs/index.js | 8 +- scripts/changelog-beta.ts | 2 +- scripts/changelog.ts | 2 +- scripts/copyUntypedFiles.mjs | 2 +- scripts/publish-beta.ts | 2 +- scripts/utils/dry-run.ts | 2 +- scripts/version.ts | 4 +- tsconfig.json | 5 +- yarn.lock | 803 +++++++++++++++--- 91 files changed, 1340 insertions(+), 864 deletions(-) delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml rename demo/docs/customization/{languagetabs.md => languagetabs.mdx} (100%) rename demo/docs/customization/{styling.md => styling.mdx} (100%) rename demo/docs/{sidebars.md => sidebars.mdx} (100%) rename demo/docs/{versioning.md => versioning.mdx} (100%) delete mode 100644 demo/docusaurus.config.js create mode 100644 demo/docusaurus.config.ts rename demo/src/components/HomepageFeatures/{index.js => index.tsx} (100%) rename demo/src/utils/{prismDark.mjs => prismDark.ts} (91%) rename demo/src/utils/{prismLight.mjs => prismLight.ts} (91%) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549ea..000000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddfb..000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 473415d65..000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - { - "customColor": "", - "associatedIndex": 3 -} - - - - - - - - - - - - - - 1700657366385 - - - - - - \ No newline at end of file diff --git a/demo/docs/customization/languagetabs.md b/demo/docs/customization/languagetabs.mdx similarity index 100% rename from demo/docs/customization/languagetabs.md rename to demo/docs/customization/languagetabs.mdx diff --git a/demo/docs/customization/styling.md b/demo/docs/customization/styling.mdx similarity index 100% rename from demo/docs/customization/styling.md rename to demo/docs/customization/styling.mdx diff --git a/demo/docs/sidebars.md b/demo/docs/sidebars.mdx similarity index 100% rename from demo/docs/sidebars.md rename to demo/docs/sidebars.mdx diff --git a/demo/docs/versioning.md b/demo/docs/versioning.mdx similarity index 100% rename from demo/docs/versioning.md rename to demo/docs/versioning.mdx diff --git a/demo/docusaurus.config.js b/demo/docusaurus.config.js deleted file mode 100644 index 16a0794c0..000000000 --- a/demo/docusaurus.config.js +++ /dev/null @@ -1,273 +0,0 @@ -// @ts-check -// Note: type annotations allow type checking and IDEs autocompletion - -const { DOCUSAURUS_VERSION } = require("@docusaurus/utils"); - -/** @type {import('@docusaurus/types').Config} */ -const config = { - title: "Docusaurus OpenAPI Docs", - tagline: "OpenAPI plugin for generating API reference docs in Docusaurus v2", - url: "https://docusaurus-openapi.tryingpan.dev", - baseUrl: "/", - onBrokenLinks: "warn", - onBrokenMarkdownLinks: "warn", - favicon: "img/favicon.ico", - organizationName: "PaloAltoNetworks", - projectName: "docusaurus-openapi-docs", - - presets: [ - [ - "classic", - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - routeBasePath: "/", - sidebarPath: "./sidebars.ts", - editUrl: - "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/tree/main/demo", - docItemComponent: "@theme/ApiItem", // Derived from docusaurus-theme-openapi - }, - blog: false, - theme: { - customCss: "./src/css/custom.css", - }, - gtag: { - trackingID: "GTM-THVM29S", - anonymizeIP: false, - }, - }), - ], - ], - - themeConfig: - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - docs: { - sidebar: { - hideable: true, - }, - }, - navbar: { - title: "OpenAPI Docs", - logo: { - alt: "Keytar", - src: "img/docusaurus-openapi-docs-logo.svg", - }, - items: [ - { - type: "doc", - docId: "intro", - position: "left", - label: "Docs", - }, - { - type: "dropdown", - label: "Demos", - position: "left", - items: [ - { - label: "API Zoo", - to: "/category/petstore-api", - }, - { - label: "Petstore (versioned)", - to: "/category/petstore-versioned-api", - }, - ], - }, - { - href: "https://medium.com/palo-alto-networks-developer-blog", - position: "right", - className: "header-medium-link", - "aria-label": "Palo Alto Networks Developer Blog", - }, - { - href: "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs", - position: "right", - className: "header-github-link", - "aria-label": "GitHub repository", - }, - ], - }, - footer: { - style: "dark", - links: [ - { - title: "Docs", - items: [ - { - label: "OpenAPI Docs", - to: "/", - }, - ], - }, - { - title: "Community", - items: [ - { - label: "Stack Overflow", - href: "https://stackoverflow.com/questions/tagged/docusaurus", - }, - { - label: "Discord", - href: "https://discordapp.com/invite/docusaurus", - }, - { - label: "Twitter", - href: "https://twitter.com/docusaurus", - }, - ], - }, - { - title: "More", - items: [ - { - label: "Blog", - href: "https://medium.com/palo-alto-networks-developer-blog", - }, - { - label: "GitHub", - href: "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs", - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} Palo Alto Networks, Inc. Built with Docusaurus ${DOCUSAURUS_VERSION}.`, - }, - prism: { - additionalLanguages: ["ruby", "csharp", "php", "java", "powershell"], - }, - languageTabs: [ - { - highlight: "bash", - language: "curl", - logoClass: "bash", - }, - { - highlight: "python", - language: "python", - logoClass: "python", - variant: "requests", - }, - { - highlight: "go", - language: "go", - logoClass: "go", - }, - { - highlight: "javascript", - language: "nodejs", - logoClass: "nodejs", - variant: "axios", - }, - { - highlight: "ruby", - language: "ruby", - logoClass: "ruby", - }, - { - highlight: "csharp", - language: "csharp", - logoClass: "csharp", - variant: "httpclient", - }, - { - highlight: "php", - language: "php", - logoClass: "php", - }, - { - highlight: "java", - language: "java", - logoClass: "java", - variant: "unirest", - }, - { - highlight: "powershell", - language: "powershell", - logoClass: "powershell", - }, - ], - algolia: { - apiKey: "441074cace987cbf4640c039ebed303c", - appId: "J0EABTYI1A", - indexName: "docusaurus-openapi", - }, - announcementBar: { - id: "announcementBar_1", - content: "Beta preview that adds support for Docusaurus v3.0.0", - }, - }), - - plugins: [ - [ - "docusaurus-plugin-openapi-docs", - { - id: "openapi", - docsPluginId: "classic", - config: { - petstore_versioned: { - specPath: "examples/petstore.yaml", - outputDir: "docs/petstore_versioned", // No trailing slash - sidebarOptions: { - groupPathsBy: "tag", - categoryLinkSource: "tag", - }, - version: "2.0.0", // Current version - label: "v2.0.0", // Current version label - baseUrl: "/petstore_versioned/swagger-petstore-yaml", // Leading slash is important - versions: { - "1.0.0": { - specPath: "examples/petstore-1.0.0.yaml", - outputDir: "docs/petstore_versioned/1.0.0", // No trailing slash - label: "v1.0.0", - baseUrl: "/petstore_versioned/1.0.0/swagger-petstore-yaml", // Leading slash is important - }, - }, - }, - petstore: { - specPath: "examples/petstore.yaml", - proxy: "https://cors.pan.dev", - outputDir: "docs/petstore", - sidebarOptions: { - groupPathsBy: "tag", - categoryLinkSource: "tag", - }, - template: "api.mustache", // Customize API MDX with mustache template - downloadUrl: - "https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml", - hideSendButton: false, - }, - cos: { - specPath: "examples/openapi-cos.json", - outputDir: "docs/cos", - sidebarOptions: { - groupPathsBy: "tag", - }, - }, - burgers: { - specPath: "examples/food/burgers/openapi.yaml", - outputDir: "docs/food/burgers", - }, - yogurt: { - specPath: "examples/food/yogurtstore/openapi.yaml", - outputDir: "docs/food/yogurtstore", - }, - }, - }, - ], - ], - themes: ["docusaurus-theme-openapi-docs"], - stylesheets: [ - { - href: "https://use.fontawesome.com/releases/v5.11.0/css/all.css", - type: "text/css", - }, - ], -}; - -async function createConfig() { - return config; -} - -module.exports = createConfig; diff --git a/demo/docusaurus.config.ts b/demo/docusaurus.config.ts new file mode 100644 index 000000000..fdea35862 --- /dev/null +++ b/demo/docusaurus.config.ts @@ -0,0 +1,269 @@ +import type * as Preset from "@docusaurus/preset-classic"; +import type { Config } from "@docusaurus/types"; +import type * as Plugin from "@docusaurus/types/src/plugin"; +import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs"; + +import { DOCUSAURUS_VERSION } from "@docusaurus/utils"; + +const config: Config = { + title: "Docusaurus OpenAPI Docs", + tagline: "OpenAPI plugin for generating API reference docs in Docusaurus v2", + url: "https://docusaurus-openapi.tryingpan.dev", + baseUrl: "/", + onBrokenLinks: "warn", + onBrokenMarkdownLinks: "warn", + favicon: "img/favicon.ico", + organizationName: "PaloAltoNetworks", + projectName: "docusaurus-openapi-docs", + + presets: [ + [ + "classic", + { + docs: { + routeBasePath: "/", + sidebarPath: "./sidebars.ts", + editUrl: + "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/tree/main/demo", + docItemComponent: "@theme/ApiItem", // Derived from docusaurus-theme-openapi + }, + blog: false, + theme: { + customCss: "./src/css/custom.css", + }, + gtag: { + trackingID: "GTM-THVM29S", + anonymizeIP: false, + }, + } satisfies Preset.Options, + ], + ], + + themeConfig: { + docs: { + sidebar: { + hideable: true, + }, + }, + navbar: { + title: "OpenAPI Docs", + logo: { + alt: "Keytar", + src: "img/docusaurus-openapi-docs-logo.svg", + }, + items: [ + { + type: "doc", + docId: "intro", + position: "left", + label: "Docs", + }, + { + type: "dropdown", + label: "Demos", + position: "left", + items: [ + { + label: "API Zoo", + to: "/category/petstore-api", + }, + { + label: "Petstore (versioned)", + to: "/category/petstore-versioned-api", + }, + ], + }, + { + href: "https://medium.com/palo-alto-networks-developer-blog", + position: "right", + className: "header-medium-link", + "aria-label": "Palo Alto Networks Developer Blog", + }, + { + href: "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs", + position: "right", + className: "header-github-link", + "aria-label": "GitHub repository", + }, + ], + }, + footer: { + style: "dark", + links: [ + { + title: "Docs", + items: [ + { + label: "OpenAPI Docs", + to: "/", + }, + ], + }, + { + title: "Community", + items: [ + { + label: "Stack Overflow", + href: "https://stackoverflow.com/questions/tagged/docusaurus", + }, + { + label: "Discord", + href: "https://discordapp.com/invite/docusaurus", + }, + { + label: "Twitter", + href: "https://twitter.com/docusaurus", + }, + ], + }, + { + title: "More", + items: [ + { + label: "Blog", + href: "https://medium.com/palo-alto-networks-developer-blog", + }, + { + label: "GitHub", + href: "https://github.com/PaloAltoNetworks/docusaurus-openapi-docs", + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} Palo Alto Networks, Inc. Built with Docusaurus ${DOCUSAURUS_VERSION}.`, + }, + prism: { + additionalLanguages: ["ruby", "csharp", "php", "java", "powershell"], + }, + languageTabs: [ + { + highlight: "bash", + language: "curl", + logoClass: "bash", + }, + { + highlight: "python", + language: "python", + logoClass: "python", + variant: "requests", + }, + { + highlight: "go", + language: "go", + logoClass: "go", + }, + { + highlight: "javascript", + language: "nodejs", + logoClass: "nodejs", + variant: "axios", + }, + { + highlight: "ruby", + language: "ruby", + logoClass: "ruby", + }, + { + highlight: "csharp", + language: "csharp", + logoClass: "csharp", + variant: "httpclient", + }, + { + highlight: "php", + language: "php", + logoClass: "php", + }, + { + highlight: "java", + language: "java", + logoClass: "java", + variant: "unirest", + }, + { + highlight: "powershell", + language: "powershell", + logoClass: "powershell", + }, + ], + algolia: { + apiKey: "441074cace987cbf4640c039ebed303c", + appId: "J0EABTYI1A", + indexName: "docusaurus-openapi", + }, + announcementBar: { + id: "announcementBar_1", + content: "Beta preview that adds support for Docusaurus v3.0.0", + }, + } satisfies Preset.ThemeConfig, + + plugins: [ + [ + "docusaurus-plugin-openapi-docs", + { + id: "openapi", + docsPluginId: "classic", + config: { + petstore_versioned: { + specPath: "examples/petstore.yaml", + outputDir: "docs/petstore_versioned", // No trailing slash + sidebarOptions: { + groupPathsBy: "tag", + categoryLinkSource: "tag", + }, + version: "2.0.0", // Current version + label: "v2.0.0", // Current version label + baseUrl: "/petstore_versioned/swagger-petstore-yaml", // Leading slash is important + versions: { + "1.0.0": { + specPath: "examples/petstore-1.0.0.yaml", + outputDir: "docs/petstore_versioned/1.0.0", // No trailing slash + label: "v1.0.0", + baseUrl: "/petstore_versioned/1.0.0/swagger-petstore-yaml", // Leading slash is important + }, + }, + } satisfies OpenApiPlugin.Options, + petstore: { + specPath: "examples/petstore.yaml", + proxy: "https://cors.pan.dev", + outputDir: "docs/petstore", + sidebarOptions: { + groupPathsBy: "tag", + categoryLinkSource: "tag", + }, + template: "api.mustache", // Customize API MDX with mustache template + downloadUrl: + "https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml", + hideSendButton: false, + } satisfies OpenApiPlugin.Options, + cos: { + specPath: "examples/openapi-cos.json", + outputDir: "docs/cos", + sidebarOptions: { + groupPathsBy: "tag", + }, + } satisfies OpenApiPlugin.Options, + burgers: { + specPath: "examples/food/burgers/openapi.yaml", + outputDir: "docs/food/burgers", + } satisfies OpenApiPlugin.Options, + yogurt: { + specPath: "examples/food/yogurtstore/openapi.yaml", + outputDir: "docs/food/yogurtstore", + } satisfies OpenApiPlugin.Options, + } satisfies Plugin.PluginOptions, + }, + ], + ], + themes: ["docusaurus-theme-openapi-docs"], + stylesheets: [ + { + href: "https://use.fontawesome.com/releases/v5.11.0/css/all.css", + type: "text/css", + }, + ], +}; + +export default async function createConfig() { + return config; +} diff --git a/demo/src/components/HomepageFeatures/index.js b/demo/src/components/HomepageFeatures/index.tsx similarity index 100% rename from demo/src/components/HomepageFeatures/index.js rename to demo/src/components/HomepageFeatures/index.tsx diff --git a/demo/src/utils/prismDark.mjs b/demo/src/utils/prismDark.ts similarity index 91% rename from demo/src/utils/prismDark.mjs rename to demo/src/utils/prismDark.ts index c2164e384..fdc8b29fd 100644 --- a/demo/src/utils/prismDark.mjs +++ b/demo/src/utils/prismDark.ts @@ -4,16 +4,15 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +import prism from "prism-react-renderer"; -import darkTheme from "prism-react-renderer/themes/vsDark/index.cjs.js"; - -export default { +const prismDark = { plain: { color: "#D4D4D4", backgroundColor: "#212121", }, styles: [ - ...darkTheme.styles, + ...prism.themes.vsDark.styles, { types: ["title"], style: { @@ -77,3 +76,5 @@ export default { }, ], }; + +export default prismDark; diff --git a/demo/src/utils/prismLight.mjs b/demo/src/utils/prismLight.ts similarity index 91% rename from demo/src/utils/prismLight.mjs rename to demo/src/utils/prismLight.ts index d87a3dd3c..622c8bc4d 100644 --- a/demo/src/utils/prismLight.mjs +++ b/demo/src/utils/prismLight.ts @@ -4,13 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +import prism from "prism-react-renderer"; -import lightTheme from "prism-react-renderer/themes/github/index.cjs.js"; - -export default { - ...lightTheme, +const prismLight = { + ...prism.themes.github, styles: [ - ...lightTheme.styles, + ...prism.themes.github.styles, { types: ["title"], style: { @@ -98,3 +97,5 @@ export default { }, ], }; + +export default prismLight; diff --git a/package.json b/package.json index 0e7c3a1c8..3173e6e68 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "@testing-library/cypress": "^8.0.1", "@types/jest": "^27.0.2", "@types/node": "^17.0.2", - "@typescript-eslint/eslint-plugin": "^4.0.0", - "@typescript-eslint/parser": "^4.0.0", + "@typescript-eslint/eslint-plugin": "^6.13.2", + "@typescript-eslint/parser": "^6.13.2", "babel-eslint": "^10.0.0", "cypress": "^8.7.0", "eslint": "^7.5.0", @@ -56,20 +56,20 @@ "eslint-plugin-import": "^2.22.0", "eslint-plugin-jest": "^25.0.6", "eslint-plugin-jest-dom": "^3.9.2", - "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.20.3", - "eslint-plugin-react-hooks": "^4.0.8", + "eslint-plugin-jsx-a11y": "^6.8.0", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-testing-library": "^4.12.4", "husky": "^7.0.2", "jest": "^27.3.1", "lerna": "^5.5.2", "lint-staged": "^11.2.3", "nodemon": "^2.0.15", - "prettier": "^2.4.1", + "prettier": "^3.1.0", "semver": "^7.3.5", "start-server-and-test": "^1.14.0", "ts-jest": "^27.0.6", - "typescript": "^4.4.4" + "typescript": "^4.9.5" }, "lint-staged": { "**/*": "prettier --write --ignore-unknown" diff --git a/packages/docusaurus-plugin-openapi-docs/src/index.ts b/packages/docusaurus-plugin-openapi-docs/src/index.ts index e947b1ecc..671416d08 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/index.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/index.ts @@ -26,7 +26,7 @@ export function isURL(str: string): boolean { export function getDocsPluginConfig( presetsPlugins: any[], - pluginId: string + pluginId: string, ): Object | undefined { // eslint-disable-next-line array-callback-return const filteredConfig = presetsPlugins.filter((data) => { @@ -78,7 +78,7 @@ function getPluginInstances(plugins: any[]): any { export default function pluginOpenAPIDocs( context: LoadContext, - options: PluginOptions + options: PluginOptions, ): Plugin { const { config, docsPluginId } = options; const { siteDir, siteConfig } = context; @@ -120,7 +120,7 @@ export default function pluginOpenAPIDocs( const [loadedApi, tags] = await processOpenapiFiles( openapiFiles, options, - sidebarOptions! + sidebarOptions!, ); if (!fs.existsSync(outputDir)) { try { @@ -129,7 +129,7 @@ export default function pluginOpenAPIDocs( } catch (err) { console.error( chalk.red(`Failed to create "${outputDir}"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -141,7 +141,7 @@ export default function pluginOpenAPIDocs( options, loadedApi, tags, - docPath + docPath, ); let sidebarSliceTemplate = `import {SidebarConfig} from "@docusaurus/plugin-content-docs/src/sidebars/types";\n\n`; @@ -156,12 +156,12 @@ export default function pluginOpenAPIDocs( try { fs.writeFileSync(`${outputDir}/sidebar.ts`, view, "utf8"); console.log( - chalk.green(`Successfully created "${outputDir}/sidebar.ts"`) + chalk.green(`Successfully created "${outputDir}/sidebar.ts"`), ); } catch (err) { console.error( chalk.red(`Failed to write "${outputDir}/sidebar.ts"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -263,8 +263,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; item.type === "api" ? apiPageGenerator(item) : item.type === "info" - ? infoPageGenerator(item) - : tagPageGenerator(item); + ? infoPageGenerator(item) + : tagPageGenerator(item); item.markdown = markdown; if (item.type === "api") { // opportunity to compress JSON @@ -297,19 +297,19 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; // kebabCase(arg) returns 0-length string when arg is undefined if (item.id.length === 0) { throw Error( - "Operation must have summary or operationId defined" + "Operation must have summary or operationId defined", ); } fs.writeFileSync(`${outputDir}/${item.id}.api.mdx`, view, "utf8"); console.log( chalk.green( - `Successfully created "${outputDir}/${item.id}.api.mdx"` - ) + `Successfully created "${outputDir}/${item.id}.api.mdx"`, + ), ); } catch (err) { console.error( chalk.red(`Failed to write "${outputDir}/${item.id}.api.mdx"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -323,22 +323,22 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; ? fs.writeFileSync( `${outputDir}/${item.id}.info.mdx`, utils, - "utf8" + "utf8", ) : fs.writeFileSync( `${outputDir}/${item.id}.info.mdx`, view, - "utf8" + "utf8", ); console.log( chalk.green( - `Successfully created "${outputDir}/${item.id}.info.mdx"` - ) + `Successfully created "${outputDir}/${item.id}.info.mdx"`, + ), ); } catch (err) { console.error( chalk.red(`Failed to write "${outputDir}/${item.id}.info.mdx"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -350,17 +350,17 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; fs.writeFileSync( `${outputDir}/${item.id}.tag.mdx`, tagUtils, - "utf8" + "utf8", ); console.log( chalk.green( - `Successfully created "${outputDir}/${item.id}.tag.mdx"` - ) + `Successfully created "${outputDir}/${item.id}.tag.mdx"`, + ), ); } catch (err) { console.error( chalk.red(`Failed to write "${outputDir}/${item.id}.tag.mdx"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -391,12 +391,12 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (err) { console.error( chalk.red(`Cleanup failed for "${apiDir}/${mdx}"`), - chalk.yellow(err) + chalk.yellow(err), ); } else { console.log(chalk.green(`Cleanup succeeded for "${apiDir}/${mdx}"`)); } - }) + }), ); sidebarFile.map((sidebar) => @@ -404,14 +404,14 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (err) { console.error( chalk.red(`Cleanup failed for "${apiDir}/${sidebar}"`), - chalk.yellow(err) + chalk.yellow(err), ); } else { console.log( - chalk.green(`Cleanup succeeded for "${apiDir}/${sidebar}"`) + chalk.green(`Cleanup succeeded for "${apiDir}/${sidebar}"`), ); } - }) + }), ); } @@ -429,12 +429,12 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; try { fs.writeFileSync(`${outputDir}/versions.json`, versionsJson, "utf8"); console.log( - chalk.green(`Successfully created "${outputDir}/versions.json"`) + chalk.green(`Successfully created "${outputDir}/versions.json"`), ); } catch (err) { console.error( chalk.red(`Failed to write "${outputDir}/versions.json"`), - chalk.yellow(err) + chalk.yellow(err), ); } } @@ -445,11 +445,11 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (err) { console.error( chalk.red(`Cleanup failed for "${outputDir}/versions.json"`), - chalk.yellow(err) + chalk.yellow(err), ); } else { console.log( - chalk.green(`Cleanup succeeded for "${outputDir}/versions.json"`) + chalk.green(`Cleanup succeeded for "${outputDir}/versions.json"`), ); } }); @@ -463,7 +463,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; cli .command(`gen-api-docs`) .description( - `Generates OpenAPI docs in MDX file format and sidebar.ts (if enabled).` + `Generates OpenAPI docs in MDX file format and sidebar.ts (if enabled).`, ) .usage("") .arguments("") @@ -481,7 +481,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; targetDocsPluginId = pluginConfig.docsPluginId; } catch { console.error( - chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`) + chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`), ); return; } @@ -489,8 +489,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (pluginInstances.length > 1) { console.error( chalk.red( - "OpenAPI docs plugin ID must be specified when more than one plugin instance exists." - ) + "OpenAPI docs plugin ID must be specified when more than one plugin instance exists.", + ), ); return; } @@ -501,8 +501,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (targetConfig[id]) { console.error( chalk.red( - "Can't use id 'all' for OpenAPI docs configuration key." - ) + "Can't use id 'all' for OpenAPI docs configuration key.", + ), ); } else { Object.keys(targetConfig).forEach(async function (key) { @@ -511,7 +511,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; } } else if (!targetConfig[id]) { console.error( - chalk.red(`ID '${id}' does not exist in OpenAPI docs config.`) + chalk.red(`ID '${id}' does not exist in OpenAPI docs config.`), ); } else { await generateApiDocs(targetConfig[id], targetDocsPluginId); @@ -521,7 +521,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; cli .command(`gen-api-docs:version`) .description( - `Generates versioned OpenAPI docs in MDX file format, versions.js and sidebar.ts (if enabled).` + `Generates versioned OpenAPI docs in MDX file format, versions.js and sidebar.ts (if enabled).`, ) .usage("") .arguments("") @@ -539,7 +539,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; targetDocsPluginId = pluginConfig.docsPluginId; } catch { console.error( - chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`) + chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`), ); return; } @@ -547,8 +547,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (pluginInstances.length > 1) { console.error( chalk.red( - "OpenAPI docs plugin ID must be specified when more than one plugin instance exists." - ) + "OpenAPI docs plugin ID must be specified when more than one plugin instance exists.", + ), ); return; } @@ -578,8 +578,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (versions[id]) { console.error( chalk.red( - "Can't use id 'all' for OpenAPI docs versions configuration key." - ) + "Can't use id 'all' for OpenAPI docs versions configuration key.", + ), ); } else { await generateVersions(mergedVersions, parentConfig.outputDir); @@ -595,8 +595,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; } else if (!versions[versionId]) { console.error( chalk.red( - `Version ID '${versionId}' does not exist in OpenAPI docs versions config.` - ) + `Version ID '${versionId}' does not exist in OpenAPI docs versions config.`, + ), ); } else { const versionConfig = versions[versionId]; @@ -612,7 +612,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; cli .command(`clean-api-docs`) .description( - `Clears the generated OpenAPI docs MDX files and sidebar.ts (if enabled).` + `Clears the generated OpenAPI docs MDX files and sidebar.ts (if enabled).`, ) .usage("") .arguments("") @@ -628,7 +628,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; targetConfig = pluginConfig.config ?? {}; } catch { console.error( - chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`) + chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`), ); return; } @@ -636,8 +636,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (pluginInstances.length > 1) { console.error( chalk.red( - "OpenAPI docs plugin ID must be specified when more than one plugin instance exists." - ) + "OpenAPI docs plugin ID must be specified when more than one plugin instance exists.", + ), ); return; } @@ -647,8 +647,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (targetConfig[id]) { console.error( chalk.red( - "Can't use id 'all' for OpenAPI docs configuration key." - ) + "Can't use id 'all' for OpenAPI docs configuration key.", + ), ); } else { Object.keys(targetConfig).forEach(async function (key) { @@ -663,7 +663,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; cli .command(`clean-api-docs:version`) .description( - `Clears the versioned, generated OpenAPI docs MDX files, versions.json and sidebar.ts (if enabled).` + `Clears the versioned, generated OpenAPI docs MDX files, versions.json and sidebar.ts (if enabled).`, ) .usage("") .arguments("") @@ -679,7 +679,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; targetConfig = pluginConfig.config ?? {}; } catch { console.error( - chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`) + chalk.red(`OpenAPI docs plugin ID '${pluginId}' not found.`), ); return; } @@ -687,8 +687,8 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (pluginInstances.length > 1) { console.error( chalk.red( - "OpenAPI docs plugin ID must be specified when more than one plugin instance exists." - ) + "OpenAPI docs plugin ID must be specified when more than one plugin instance exists.", + ), ); return; } @@ -703,7 +703,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; if (versionId === "all") { if (versions[id]) { chalk.red( - "Can't use id 'all' for OpenAPI docs versions configuration key." + "Can't use id 'all' for OpenAPI docs versions configuration key.", ); } else { await cleanVersions(parentConfig.outputDir); diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts index 013764016..e887cd694 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts @@ -35,20 +35,20 @@ export function createAuthentication(securitySchemes: SecuritySchemeObject) { create("td", { children: [ guard(tokenUrl, () => - create("p", { children: `Token URL: ${tokenUrl}` }) + create("p", { children: `Token URL: ${tokenUrl}` }), ), guard(authorizationUrl, () => create("p", { children: `Authorization URL: ${authorizationUrl}`, - }) + }), ), guard(refreshUrl, () => - create("p", { children: `Refresh URL: ${refreshUrl}` }) + create("p", { children: `Refresh URL: ${refreshUrl}` }), ), create("span", { children: "Scopes:" }), create("ul", { children: Object.entries(scopes).map(([scope, description]) => - create("li", { children: `${scope}: ${description}` }) + create("li", { children: `${scope}: ${description}` }), ), }), ], @@ -98,7 +98,7 @@ export function createAuthentication(securitySchemes: SecuritySchemeObject) { create("th", { children: "Bearer format:" }), create("td", { children: bearerFormat }), ], - }) + }), ), ], }), @@ -131,7 +131,7 @@ export function createAuthentication(securitySchemes: SecuritySchemeObject) { create("th", { children: "OpenID Connect URL:" }), create("td", { children: openIdConnectUrl }), ], - }) + }), ), ], }), @@ -180,14 +180,14 @@ export function createAuthentication(securitySchemes: SecuritySchemeObject) { label: formatTabLabel( schemeKey, schemeObj.type, - schemeObj.scheme + schemeObj.scheme, ), value: `${schemeKey}`, children: [ createDescription(schemeObj.description), createAuthenticationTable(schemeObj), ], - }) + }), ), }), ], diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createContactInfo.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createContactInfo.ts index db19e0223..b71fe3c17 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createContactInfo.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createContactInfo.ts @@ -34,7 +34,7 @@ export function createContactInfo(contact: ContactObject) { guard(url, () => create("span", { children: ["URL: ", `[${url}](mailto:${url})`], - }) + }), ), ], }); diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createDeprecationNotice.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createDeprecationNotice.ts index 591fb0f52..c2b268e71 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createDeprecationNotice.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createDeprecationNotice.ts @@ -25,6 +25,6 @@ export function createDeprecationNotice({ children: clean(description) ?? "This endpoint has been deprecated and may be replaced or removed in future versions of the API.", - }) + }), ); } diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createLicense.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createLicense.ts index c1d981dbc..e897e7f46 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createLicense.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createLicense.ts @@ -27,7 +27,7 @@ export function createLicense(license: LicenseObject) { create("a", { href: url, children: name ?? url, - }) + }), ), ], }); diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createLogo.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createLogo.ts index 8e9006bb0..63cbdcb64 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createLogo.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createLogo.ts @@ -10,7 +10,7 @@ import { create, guard } from "./utils"; export function createLogo( logo: LogoObject | undefined, - darkLogo: LogoObject | undefined + darkLogo: LogoObject | undefined, ) { return guard(logo || darkLogo, () => [ create("ApiLogo", { diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createParamsDetails.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createParamsDetails.ts index 9c5b1db49..5e3946912 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createParamsDetails.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createParamsDetails.ts @@ -47,7 +47,7 @@ export function createParamsDetails({ parameters, type }: Props) { create("ParamsItem", { className: "paramsItem", param: param, - }) + }), ), }), ], diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestSchema.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestSchema.ts index d22dd2c3f..68eb47136 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestSchema.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createRequestSchema.ts @@ -138,7 +138,7 @@ export function createRequestSchema({ title, body, ...rest }: Props) { create("span", { style: { opacity: "0.6" }, children: ` array`, - }) + }), ), guard(body.required, () => [ create("strong", { diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createResponseSchema.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createResponseSchema.ts index 7a645c289..8022fd79e 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createResponseSchema.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createResponseSchema.ts @@ -98,7 +98,7 @@ export function createResponseSchema({ title, body, ...rest }: Props) { className: "openapi-schema__required", children: "required", }), - ] + ], ), ], }), diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.test.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.test.ts index 711f70776..0e6b85c0e 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.test.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.test.ts @@ -49,8 +49,8 @@ describe("createNodes", () => { }; expect( createNodes(schema, "request").map((md: any) => - prettier.format(md, { parser: "babel" }) - ) + prettier.format(md, { parser: "babel" }), + ), ).toMatchSnapshot(); }); }); diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts index deb374a03..6da64e4f8 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts @@ -176,7 +176,7 @@ function createAdditionalProperties(schema: SchemaObject) { title ?? schemaName, additionalProperties, required, - schema.nullable + schema.nullable, ); } @@ -192,7 +192,7 @@ function createAdditionalProperties(schema: SchemaObject) { if (additionalProperties !== undefined) { const type = schema.additionalProperties?.additionalProperties?.type; const schemaName = getSchemaName( - schema.additionalProperties?.additionalProperties! + schema.additionalProperties?.additionalProperties!, ); return create("SchemaItem", { name: "property name*", @@ -224,7 +224,7 @@ function createAdditionalProperties(schema: SchemaObject) { required: Array.isArray(schema.required) ? schema.required.includes(key) : false, - }) + }), ); } @@ -261,7 +261,7 @@ function createItems(schema: SchemaObject) { const { mergedSchemas, }: { mergedSchemas: SchemaObject; required: string[] } = mergeAllOf( - schema.items?.allOf + schema.items?.allOf, ); // Handles combo anyOf/oneOf + properties @@ -324,7 +324,7 @@ function createItems(schema: SchemaObject) { required: Array.isArray(schema.required) ? schema.required.includes(key) : false, - }) + }), ), createClosingArrayBracket(), ].flat(); @@ -338,7 +338,7 @@ function createDetailsNode( schemaName: string, schema: SchemaObject, required: string[] | boolean, - nullable: boolean | unknown + nullable: boolean | unknown, ): any { return create("SchemaItem", { collapsible: true, @@ -372,7 +372,7 @@ function createDetailsNode( create("span", { className: "openapi-schema__divider", }), - ] + ], ), guard(nullable, () => [ create("span", { @@ -389,7 +389,7 @@ function createDetailsNode( className: "openapi-schema__required", children: "required", }), - ] + ], ), guard(schema.deprecated, () => [ create("span", { @@ -408,13 +408,13 @@ function createDetailsNode( create("div", { style: { marginTop: ".5rem", marginBottom: ".5rem" }, children: createDescription(message), - }) + }), ), guard(schema.description, (description) => create("div", { style: { marginTop: ".5rem", marginBottom: ".5rem" }, children: createDescription(description), - }) + }), ), createNodes(schema, SCHEMA_TYPE), ], @@ -433,7 +433,7 @@ function createAnyOneOfProperty( schemaName: string, schema: SchemaObject, required: string[] | boolean, - nullable: boolean | unknown + nullable: boolean | unknown, ): any { return create("SchemaItem", { collapsible: true, @@ -460,7 +460,7 @@ function createAnyOneOfProperty( }, children: " nullable", }), - ] + ], ), guard( Array.isArray(required) @@ -474,7 +474,7 @@ function createAnyOneOfProperty( }, children: " required", }), - ] + ], ), ], }), @@ -485,13 +485,13 @@ function createAnyOneOfProperty( create("div", { style: { marginTop: ".5rem", marginBottom: ".5rem" }, children: createDescription(message), - }) + }), ), guard(schema.description, (description) => create("div", { style: { marginTop: ".5rem", marginBottom: ".5rem" }, children: createDescription(description), - }) + }), ), ], }), @@ -511,7 +511,7 @@ function createPropertyDiscriminator( schemaName: string, schema: SchemaObject, discriminator: any, - required: string[] | boolean + required: string[] | boolean, ): any { if (schema === undefined) { return undefined; @@ -536,7 +536,7 @@ function createPropertyDiscriminator( create("span", { className: "openapi-schema__name", children: ` ${schemaName}`, - }) + }), ), guard(required, () => [ create("span", { @@ -552,7 +552,7 @@ function createPropertyDiscriminator( paddingLeft: "1rem", }, children: createDescription(message), - }) + }), ), guard(schema.description, (description) => create("div", { @@ -560,7 +560,7 @@ function createPropertyDiscriminator( paddingLeft: "1rem", }, children: createDescription(description), - }) + }), ), create("DiscriminatorTabs", { className: "openapi-tabs__discriminator", @@ -603,7 +603,7 @@ function createEdges({ "string", schema, discriminator, - required + required, ); } @@ -613,7 +613,7 @@ function createEdges({ schemaName, schema, required, - schema.nullable + schema.nullable, ); } @@ -634,7 +634,7 @@ function createEdges({ mergedSchemaName, mergedSchemas, required, - schema.nullable + schema.nullable, ); } @@ -644,7 +644,7 @@ function createEdges({ mergedSchemaName, mergedSchemas, required, - schema.nullable + schema.nullable, ); } @@ -654,7 +654,7 @@ function createEdges({ mergedSchemaName, mergedSchemas, required, - schema.nullable + schema.nullable, ); } @@ -665,7 +665,7 @@ function createEdges({ mergedSchemaName, mergedSchemas, required, - schema.nullable + schema.nullable, ); } @@ -697,7 +697,7 @@ function createEdges({ schemaName, schema, required, - schema.nullable + schema.nullable, ); } @@ -707,7 +707,7 @@ function createEdges({ schemaName, schema, required, - schema.nullable + schema.nullable, ); } @@ -718,7 +718,7 @@ function createEdges({ schemaName, schema, required, - schema.nullable + schema.nullable, ); } @@ -728,7 +728,7 @@ function createEdges({ schemaName, schema, required, - schema.nullable + schema.nullable, ); } @@ -760,7 +760,7 @@ function createEdges({ */ export function createNodes( schema: SchemaObject, - schemaType: "request" | "response" + schemaType: "request" | "response", ): any { SCHEMA_TYPE = schemaType; const nodes = []; diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createStatusCodes.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createStatusCodes.ts index c7376f712..1b5cb7216 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createStatusCodes.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createStatusCodes.ts @@ -93,22 +93,22 @@ function createResponseHeaders(responseHeaders: any) { guard(example, () => `Example: ${example}`), createDescription(description), ], - }) + }), ), ], }), ], }); - } + }, ), ], - }) + }), ); } export function createResponseExamples( responseExamples: any, - mimeType: string + mimeType: string, ) { let language = "shell"; if (mimeType.endsWith("json")) { @@ -151,7 +151,7 @@ export function createResponseExamples( }), ], }); - } + }, ); } diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/schema.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/schema.ts index be09c11cd..f934ca86f 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/schema.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/schema.ts @@ -45,7 +45,7 @@ function prettyName(schema: SchemaObject, circular?: boolean) { export function getSchemaName( schema: SchemaObject, - circular?: boolean + circular?: boolean, ): string { if (schema.items) { return prettyName(schema.items, circular) + "[]"; @@ -79,7 +79,7 @@ export function getQualifierMessage(schema?: SchemaObject): string | undefined { if (schema.items && schema.items.enum) { if (schema.items.enum) { qualifierGroups.push( - `[${schema.items.enum.map((e) => `\`${e}\``).join(", ")}]` + `[${schema.items.enum.map((e) => `\`${e}\``).join(", ")}]`, ); } } @@ -150,7 +150,7 @@ export function getQualifierMessage(schema?: SchemaObject): string | undefined { if (schema.pattern) { qualifierGroups.push( - `Value must match regular expression \`${schema.pattern}\`` + `Value must match regular expression \`${schema.pattern}\``, ); } diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts index 4cd8d8ebb..5ca53a536 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts @@ -25,7 +25,7 @@ export function create(tag: string, props: Props): string { export function guard( value: T | undefined, - cb: (value: T) => Children + cb: (value: T) => Children, ): string { if (!!value) { const children = cb(value); diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts index 8413cb8ea..2a8268445 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts @@ -67,7 +67,7 @@ function sampleRequestFromProp(name: string, prop: any, obj: any): any { obj[name] = sampleRequestFromSchema(prop.anyOf[0]); } else if (prop.allOf) { const { mergedSchemas }: { mergedSchemas: SchemaObject } = mergeAllOf( - prop.allOf + prop.allOf, ); sampleRequestFromProp(name, mergedSchemas, obj); } else { @@ -150,7 +150,7 @@ export const sampleRequestFromSchema = (schema: SchemaObject = {}): any => { if (prop.items && prop.items.properties) { for (const [key, value] of Object.entries( - prop.items.properties + prop.items.properties, ) as any) { if ( (value.readOnly && value.readOnly === true) || @@ -204,7 +204,10 @@ export const sampleRequestFromSchema = (schema: SchemaObject = {}): any => { return primitive(schemaCopy); } catch (err) { console.error( - chalk.yellow("WARNING: failed to create example from schema object:", err) + chalk.yellow( + "WARNING: failed to create example from schema object:", + err, + ), ); return; } diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts index 11a287e8b..24d6a652b 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts @@ -67,7 +67,7 @@ function sampleResponseFromProp(name: string, prop: any, obj: any): any { obj[name] = sampleResponseFromSchema(prop.anyOf[0]); } else if (prop.allOf) { const { mergedSchemas }: { mergedSchemas: SchemaObject } = mergeAllOf( - prop.allOf + prop.allOf, ); sampleResponseFromProp(name, mergedSchemas, obj); } else { @@ -153,7 +153,7 @@ export const sampleResponseFromSchema = (schema: SchemaObject = {}): any => { if (prop.items && prop.items.properties) { for (const [key, value] of Object.entries( - prop.items.properties + prop.items.properties, ) as any) { if ( (value.writeOnly && value.writeOnly === true) || @@ -207,7 +207,10 @@ export const sampleResponseFromSchema = (schema: SchemaObject = {}): any => { return primitive(schemaCopy); } catch (err) { console.error( - chalk.yellow("WARNING: failed to create example from schema object:", err) + chalk.yellow( + "WARNING: failed to create example from schema object:", + err, + ), ); return; } diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.test.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.test.ts index c1c412f0b..25af80aa4 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.test.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.test.ts @@ -18,10 +18,10 @@ describe("openapi", () => { describe("readOpenapiFiles", () => { it("readOpenapiFiles", async () => { const results = await readOpenapiFiles( - posixPath(path.join(__dirname, "__fixtures__/examples")) + posixPath(path.join(__dirname, "__fixtures__/examples")), ); const categoryMeta = results.find((x) => - x.source.endsWith("_category_.json") + x.source.endsWith("_category_.json"), ); expect(categoryMeta).toBeFalsy(); // console.log(results); diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts index 8dde3c8d0..ede888a1f 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts @@ -38,7 +38,7 @@ function jsonToCollection(data: OpenApiObject): Promise { return new Promise((resolve, reject) => { let schemaPack = new Converter.SchemaPack( { type: "json", data }, - { schemaFaker: false } + { schemaFaker: false }, ); schemaPack.computedOptions.schemaFaker = false; schemaPack.convert((_err: any, conversionResult: any) => { @@ -54,7 +54,7 @@ function jsonToCollection(data: OpenApiObject): Promise { * Creates a Postman Collection object from an OpenAPI definition. */ async function createPostmanCollection( - openapiData: OpenApiObject + openapiData: OpenApiObject, ): Promise { // Create copy of openapiData const data = cloneDeep(openapiData) as OpenApiObject; @@ -81,7 +81,7 @@ type PartialPage = Omit; function createItems( openapiData: OpenApiObject, options: APIOptions, - sidebarOptions: SidebarOptions + sidebarOptions: SidebarOptions, ): ApiMetadata[] { // TODO: Find a better way to handle this let items: PartialPage[] = []; @@ -105,7 +105,7 @@ function createItems( description: openapiData.info.description ? openapiData.info.description.replace( /((?:^|[^\\])(?:\\{2})*)"/g, - "$1'" + "$1'", ) : "", frontMatter: { @@ -209,7 +209,7 @@ function createItems( defaults.parameters = unionBy( operationObject.parameters, parameters, - "name" + "name", ); } else { defaults.parameters = parameters; @@ -231,7 +231,7 @@ function createItems( description: operationObject.description ? operationObject.description.replace( /((?:^|[^\\])(?:\\{2})*)"/g, - "$1'" + "$1'", ) : "", frontMatter: { @@ -268,7 +268,7 @@ function createItems( // Gather x-webhooks endpoints for (let [path, pathObject] of Object.entries( - openapiData["x-webhooks"] ?? {} + openapiData["x-webhooks"] ?? {}, )) { path = "webhook"; const { $ref, description, parameters, servers, summary, ...rest } = @@ -353,7 +353,7 @@ function createItems( defaults.parameters = unionBy( operationObject.parameters, parameters, - "name" + "name", ); } else { defaults.parameters = parameters; @@ -375,7 +375,7 @@ function createItems( description: operationObject.description ? operationObject.description.replace( /((?:^|[^\\])(?:\\{2})*)"/g, - "$1'" + "$1'", ) : "", frontMatter: { @@ -420,7 +420,7 @@ function createItems( const operationTags = uniq( apiItems .flatMap((item) => item.api.tags) - .filter((item): item is string => !!item) + .filter((item): item is string => !!item), ); // eslint-disable-next-line array-callback-return @@ -430,7 +430,7 @@ function createItems( .map((tag) => { const description = getTagDisplayName( tag.name!, - openapiData.tags ?? [] + openapiData.tags ?? [], ); const tagId = kebabCase(tag.name); const splitDescription = description.match(/[^\r\n]+/g); @@ -463,7 +463,7 @@ function createItems( */ function bindCollectionToApiItems( items: ApiMetadata[], - postmanCollection: sdk.Collection + postmanCollection: sdk.Collection, ) { postmanCollection.forEachItem((item: any) => { const method = item.request.method.toLowerCase(); @@ -490,7 +490,7 @@ interface OpenApiFiles { } export async function readOpenapiFiles( - openapiPath: string + openapiPath: string, ): Promise { if (!isURL(openapiPath)) { const stat = await fs.lstat(openapiPath); @@ -507,19 +507,19 @@ export async function readOpenapiFiles( // TODO: make a function for this const fullPath = posixPath(path.join(openapiPath, source)); const data = (await loadAndResolveSpec( - fullPath + fullPath, )) as unknown as OpenApiObject; return { source: fullPath, // This will be aliased in process. sourceDirName: path.dirname(source), data, }; - }) + }), ); } } const data = (await loadAndResolveSpec( - openapiPath + openapiPath, )) as unknown as OpenApiObject; return [ { @@ -533,14 +533,14 @@ export async function readOpenapiFiles( export async function processOpenapiFiles( files: OpenApiFiles[], options: APIOptions, - sidebarOptions: SidebarOptions + sidebarOptions: SidebarOptions, ): Promise<[ApiMetadata[], TagObject[][]]> { const promises = files.map(async (file) => { if (file.data !== undefined) { const processedFile = await processOpenapiFile( file.data, options, - sidebarOptions + sidebarOptions, ); const itemsObjectsArray = processedFile[0].map((item) => ({ ...item, @@ -550,8 +550,8 @@ export async function processOpenapiFiles( } console.warn( chalk.yellow( - `WARNING: the following OpenAPI spec returned undefined: ${file.source}` - ) + `WARNING: the following OpenAPI spec returned undefined: ${file.source}`, + ), ); return []; }); @@ -579,7 +579,7 @@ export async function processOpenapiFiles( export async function processOpenapiFile( openapiData: OpenApiObject, options: APIOptions, - sidebarOptions: SidebarOptions + sidebarOptions: SidebarOptions, ): Promise<[ApiMetadata[], TagObject[]]> { const postmanCollection = await createPostmanCollection(openapiData); const items = createItems(openapiData, options, sidebarOptions); diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts index ee59054b2..b12fe8050 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts @@ -61,7 +61,7 @@ function serializer(replacer: any, cycleReplacer: any) { export function convertSwagger2OpenAPI(spec: object) { console.warn( - "[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0" + "[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0", ); return new Promise((resolve, reject) => convertObj( @@ -79,8 +79,8 @@ export function convertSwagger2OpenAPI(spec: object) { return reject(err); } resolve(res && res.openapi); - } - ) + }, + ), ); } diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/OpenAPIParser.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/OpenAPIParser.ts index 8f18c8b30..3b5b598e3 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/OpenAPIParser.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/OpenAPIParser.ts @@ -52,7 +52,7 @@ export class OpenAPIParser { constructor( spec: OpenAPISpec, specUrl?: string, - private options: {} = new RedocNormalizedOptions() + private options: {} = new RedocNormalizedOptions(), ) { this.validate(spec); @@ -131,7 +131,7 @@ export class OpenAPIParser { deref( obj: OpenAPIRef | T, forceCircular = false, - mergeAsAllOf = false + mergeAsAllOf = false, ): T { if (this.isRef(obj)) { const schemaName = getDefinitionName(obj.$ref); @@ -186,7 +186,7 @@ export class OpenAPIParser { if ( mergeAsAllOf && keys.some( - (k) => k !== "description" && k !== "title" && k !== "externalDocs" + (k) => k !== "description" && k !== "title" && k !== "externalDocs", ) ) { return { @@ -211,7 +211,7 @@ export class OpenAPIParser { schema: OpenAPISchema, $ref?: string, forceCircular: boolean = false, - used$Refs = new Set() + used$Refs = new Set(), ): MergedOpenAPISchema { if ($ref) { used$Refs.add($ref); @@ -253,7 +253,7 @@ export class OpenAPIParser { resolved, subRef, forceCircular, - used$Refs + used$Refs, ); receiver.parentRefs!.push(...(subMerged.parentRefs || [])); return { @@ -285,7 +285,7 @@ export class OpenAPIParser { type !== undefined ) { console.warn( - `Incompatible types in allOf at "${$ref}": "${receiver.type}" and "${type}"` + `Incompatible types in allOf at "${$ref}": "${receiver.type}" and "${type}"`, ); } @@ -314,7 +314,7 @@ export class OpenAPIParser { // merge inner properties const mergedProp = this.mergeAllOf( { allOf: [receiver.properties[prop], properties[prop]] }, - $ref + "/properties/" + prop + $ref + "/properties/" + prop, ); receiver.properties[prop] = mergedProp; this.exitParents(mergedProp); // every prop resolution should have separate recursive stack @@ -326,15 +326,15 @@ export class OpenAPIParser { const receiverItems = isBoolean(receiver.items) ? { items: receiver.items } : receiver.items - ? (Object.assign({}, receiver.items) as OpenAPISchema) - : {}; + ? (Object.assign({}, receiver.items) as OpenAPISchema) + : {}; const subSchemaItems = isBoolean(items) ? { items } : (Object.assign({}, items) as OpenAPISchema); // merge inner properties receiver.items = this.mergeAllOf( { allOf: [receiverItems, subSchemaItems] }, - $ref + "/items" + $ref + "/items", ); } @@ -385,7 +385,7 @@ export class OpenAPIParser { if ( def.allOf !== undefined && def.allOf.find( - (obj) => obj.$ref !== undefined && $refs.indexOf(obj.$ref) > -1 + (obj) => obj.$ref !== undefined && $refs.indexOf(obj.$ref) > -1, ) ) { res["#/components/schemas/" + defName] = [ diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/RedocNormalizedOptions.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/RedocNormalizedOptions.ts index 26793aa2f..81140b440 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/RedocNormalizedOptions.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/services/RedocNormalizedOptions.ts @@ -64,7 +64,7 @@ export interface RedocRawOptions { export function argValueToBoolean( val?: string | boolean, - defaultValue?: boolean + defaultValue?: boolean, ): boolean { if (val === undefined) { return defaultValue || false; @@ -76,7 +76,7 @@ export function argValueToBoolean( } function argValueToNumber( - value: number | string | undefined + value: number | string | undefined, ): number | undefined { if (typeof value === "string") { return parseInt(value, 10); @@ -89,7 +89,7 @@ function argValueToNumber( function argValueToExpandLevel( value?: number | string | undefined, - defaultValue = 0 + defaultValue = 0, ): number { if (value === "all") return Infinity; @@ -109,20 +109,20 @@ export class RedocNormalizedOptions { return res; } else if (value !== undefined) { console.warn( - `expandResponses must be a string but received value "${value}" of type ${typeof value}` + `expandResponses must be a string but received value "${value}" of type ${typeof value}`, ); } return {}; } static normalizeHideHostname( - value: RedocRawOptions["hideHostname"] + value: RedocRawOptions["hideHostname"], ): boolean { return !!value; } static normalizeShowExtensions( - value: RedocRawOptions["showExtensions"] + value: RedocRawOptions["showExtensions"], ): string[] | boolean { if (typeof value === "undefined") { return false; @@ -146,7 +146,7 @@ export class RedocNormalizedOptions { } static normalizeSideNavStyle( - value: RedocRawOptions["sideNavStyle"] + value: RedocRawOptions["sideNavStyle"], ): SideNavStyleEnum { const defaultValue = SideNavStyleEnum.SummaryOnly; if (typeof value !== "string") { @@ -166,7 +166,7 @@ export class RedocNormalizedOptions { } static normalizePayloadSampleIdx( - value: RedocRawOptions["payloadSampleIdx"] + value: RedocRawOptions["payloadSampleIdx"], ): number { if (typeof value === "number") { return Math.max(0, value); // always greater or equal than 0 @@ -180,7 +180,7 @@ export class RedocNormalizedOptions { } private static normalizeJsonSampleExpandLevel( - level?: number | string | "all" + level?: number | string | "all", ): number { if (level === "all") { return +Infinity; @@ -192,7 +192,7 @@ export class RedocNormalizedOptions { } private static normalizeGeneratedPayloadSamplesMaxDepth( - value?: number | string | undefined + value?: number | string | undefined, ): number { if (!isNaN(Number(value))) { return Math.max(0, Number(value)); @@ -250,20 +250,20 @@ export class RedocNormalizedOptions { raw = { ...defaults, ...raw }; this.hideHostname = RedocNormalizedOptions.normalizeHideHostname( - raw.hideHostname + raw.hideHostname, ); this.expandResponses = RedocNormalizedOptions.normalizeExpandResponses( - raw.expandResponses + raw.expandResponses, ); this.requiredPropsFirst = argValueToBoolean(raw.requiredPropsFirst); this.sortPropsAlphabetically = argValueToBoolean( - raw.sortPropsAlphabetically + raw.sortPropsAlphabetically, ); this.sortEnumValuesAlphabetically = argValueToBoolean( - raw.sortEnumValuesAlphabetically + raw.sortEnumValuesAlphabetically, ); this.sortOperationsAlphabetically = argValueToBoolean( - raw.sortOperationsAlphabetically + raw.sortOperationsAlphabetically, ); this.sortTagsAlphabetically = argValueToBoolean(raw.sortTagsAlphabetically); this.nativeScrollbars = argValueToBoolean(raw.nativeScrollbars); @@ -275,41 +275,41 @@ export class RedocNormalizedOptions { this.disableSearch = argValueToBoolean(raw.disableSearch); this.onlyRequiredInSamples = argValueToBoolean(raw.onlyRequiredInSamples); this.showExtensions = RedocNormalizedOptions.normalizeShowExtensions( - raw.showExtensions + raw.showExtensions, ); this.sideNavStyle = RedocNormalizedOptions.normalizeSideNavStyle( - raw.sideNavStyle + raw.sideNavStyle, ); this.hideSingleRequestSampleTab = argValueToBoolean( - raw.hideSingleRequestSampleTab + raw.hideSingleRequestSampleTab, ); this.menuToggle = argValueToBoolean(raw.menuToggle, true); this.jsonSampleExpandLevel = RedocNormalizedOptions.normalizeJsonSampleExpandLevel( - raw.jsonSampleExpandLevel + raw.jsonSampleExpandLevel, ); this.enumSkipQuotes = argValueToBoolean(raw.enumSkipQuotes); this.hideSchemaTitles = argValueToBoolean(raw.hideSchemaTitles); this.simpleOneOfTypeLabel = argValueToBoolean(raw.simpleOneOfTypeLabel); this.payloadSampleIdx = RedocNormalizedOptions.normalizePayloadSampleIdx( - raw.payloadSampleIdx + raw.payloadSampleIdx, ); this.expandSingleSchemaField = argValueToBoolean( - raw.expandSingleSchemaField + raw.expandSingleSchemaField, ); this.schemaExpansionLevel = argValueToExpandLevel(raw.schemaExpansionLevel); this.showObjectSchemaExamples = argValueToBoolean( - raw.showObjectSchemaExamples + raw.showObjectSchemaExamples, ); this.showSecuritySchemeType = argValueToBoolean(raw.showSecuritySchemeType); this.hideSecuritySection = argValueToBoolean(raw.hideSecuritySection); this.unstable_ignoreMimeParameters = argValueToBoolean( - raw.unstable_ignoreMimeParameters + raw.unstable_ignoreMimeParameters, ); this.expandDefaultServerVariables = argValueToBoolean( - raw.expandDefaultServerVariables + raw.expandDefaultServerVariables, ); this.maxDisplayedEnumValues = argValueToNumber(raw.maxDisplayedEnumValues); const ignoreNamedSchemas = isArray(raw.ignoreNamedSchemas) @@ -319,7 +319,7 @@ export class RedocNormalizedOptions { this.hideSchemaPattern = argValueToBoolean(raw.hideSchemaPattern); this.generatedPayloadSamplesMaxDepth = RedocNormalizedOptions.normalizeGeneratedPayloadSamplesMaxDepth( - raw.generatedPayloadSamplesMaxDepth + raw.generatedPayloadSamplesMaxDepth, ); this.nonce = raw.nonce; this.hideFab = argValueToBoolean(raw.hideFab); diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/helpers.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/helpers.ts index ba0f50872..a96e3c21b 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/helpers.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/helpers.ts @@ -14,7 +14,7 @@ import slugify from "slugify"; */ export function mapWithLast( array: T[], - iteratee: (item: T, isLast: boolean) => P + iteratee: (item: T, isLast: boolean) => P, ) { const res: P[] = []; for (let i = 0; i < array.length - 1; i++) { @@ -36,7 +36,7 @@ export function mapWithLast( */ export function mapValues( object: Record, - iteratee: (val: T, key: string, obj: Record) => P + iteratee: (val: T, key: string, obj: Record) => P, ): Record { const res: { [key: string]: P } = {}; for (const key in object) { @@ -54,7 +54,7 @@ export function mapValues( */ export function flattenByProp( collectionItems: T[], - prop: P + prop: P, ): T[] { const res: T[] = []; const iterate = (items: T[]) => { @@ -83,13 +83,13 @@ export function isNumeric(n: any): n is number { export function appendToMdHeading( md: string, heading: string, - content: string + content: string, ) { // if heading is already in md and append to the end of it const testRegex = new RegExp(`(^|\\n)#\\s?${heading}\\s*\\n`, "i"); const replaceRegex = new RegExp( `((\\n|^)#\\s*${heading}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`, - "i" + "i", ); if (testRegex.test(md)) { return md.replace(replaceRegex, `$1\n\n${content}\n$4`); diff --git a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/openapi.ts b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/openapi.ts index 2fbd16d00..beb6ec913 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/openapi.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/openapi/utils/utils/openapi.ts @@ -30,7 +30,7 @@ import { } from "./helpers"; function isWildcardStatusCode( - statusCode: string | number + statusCode: string | number, ): statusCode is string { return typeof statusCode === "string" && /\dxx/i.test(statusCode); } @@ -45,7 +45,7 @@ export function isStatusCode(statusCode: string) { export function getStatusCodeType( statusCode: string | number, - defaultAsError = false + defaultAsError = false, ): string { if (statusCode === "default") { return defaultAsError ? "error" : "success"; @@ -140,7 +140,7 @@ export function detectType(schema: OpenAPISchema): string { export function isPrimitiveType( schema: OpenAPISchema, - type: string | string[] | undefined = schema.type + type: string | string[] | undefined = schema.type, ) { if (schema.oneOf !== undefined || schema.anyOf !== undefined) { return false; @@ -187,7 +187,7 @@ export function isFormUrlEncoded(contentType: string): boolean { function delimitedEncodeField( fieldVal: any, fieldName: string, - delimiter: string + delimiter: string, ): string { if (isArray(fieldVal)) { return fieldVal.map((v) => v.toString()).join(delimiter); @@ -203,7 +203,7 @@ function delimitedEncodeField( function deepObjectEncodeField(fieldVal: any, fieldName: string): string { if (isArray(fieldVal)) { console.warn( - "deepObject style cannot be used with array value:" + fieldVal.toString() + "deepObject style cannot be used with array value:" + fieldVal.toString(), ); return ""; } else if (typeof fieldVal === "object") { @@ -213,7 +213,7 @@ function deepObjectEncodeField(fieldVal: any, fieldName: string): string { } else { console.warn( "deepObject style cannot be used with non-object value:" + - fieldVal.toString() + fieldVal.toString(), ); return ""; } @@ -237,7 +237,7 @@ function serializeFormValue(name: string, explode: boolean, value: any) { */ export function urlFormEncodePayload( payload: object, - encoding: { [field: string]: OpenAPIEncoding } = {} + encoding: { [field: string]: OpenAPIEncoding } = {}, ) { if (isArray(payload)) { throw new Error("Payload must have fields: " + payload.toString()); @@ -269,7 +269,7 @@ function serializePathParameter( name: string, style: OpenAPIParameterStyle, explode: boolean, - value: any + value: any, ): string { const suffix = explode ? "*" : ""; let prefix = ""; @@ -294,7 +294,7 @@ function serializeQueryParameter( name: string, style: OpenAPIParameterStyle, explode: boolean, - value: any + value: any, ): string { switch (style) { case "form": @@ -322,7 +322,7 @@ function serializeQueryParameter( case "deepObject": if (!explode || isArray(value) || typeof value !== "object") { console.warn( - "The style deepObject is only applicable for objects with explode=true" + "The style deepObject is only applicable for objects with explode=true", ); return ""; } @@ -337,7 +337,7 @@ function serializeQueryParameter( function serializeHeaderParameter( style: OpenAPIParameterStyle, explode: boolean, - value: any + value: any, ): string { switch (style) { case "simple": @@ -357,7 +357,7 @@ function serializeCookieParameter( name: string, style: OpenAPIParameterStyle, explode: boolean, - value: any + value: any, ): string { switch (style) { case "form": @@ -370,7 +370,7 @@ function serializeCookieParameter( export function serializeParameterValueWithMime( value: any, - mime: string + mime: string, ): string { if (isJsonLike(mime)) { return JSON.stringify(value); @@ -382,7 +382,7 @@ export function serializeParameterValueWithMime( export function serializeParameterValue( parameter: OpenAPIParameter & { serializationMime?: string }, - value: any + value: any, ): string { const { name, style, explode = false, serializationMime } = parameter; @@ -395,7 +395,7 @@ export function serializeParameterValue( case "query": return `${name}=${serializeParameterValueWithMime( value, - serializationMime + serializationMime, )}`; default: console.warn("Unexpected parameter location: " + parameter.in); @@ -451,7 +451,7 @@ export function getDefinitionName(pointer?: string): string | undefined { } function humanizeMultipleOfConstraint( - multipleOf: number | undefined + multipleOf: number | undefined, ): string | undefined { if (multipleOf === undefined) { return; @@ -466,7 +466,7 @@ function humanizeMultipleOfConstraint( function humanizeRangeConstraint( description: string, min: number | undefined, - max: number | undefined + max: number | undefined, ): string | undefined { let stringRange; if (min !== undefined && max !== undefined) { @@ -519,7 +519,7 @@ export function humanizeConstraints(schema: OpenAPISchema): string[] { const stringRange = humanizeRangeConstraint( "characters", schema.minLength, - schema.maxLength + schema.maxLength, ); if (stringRange !== undefined) { res.push(stringRange); @@ -528,7 +528,7 @@ export function humanizeConstraints(schema: OpenAPISchema): string[] { const arrayRange = humanizeRangeConstraint( "items", schema.minItems, - schema.maxItems + schema.maxItems, ); if (arrayRange !== undefined) { res.push(arrayRange); @@ -537,7 +537,7 @@ export function humanizeConstraints(schema: OpenAPISchema): string[] { const propertiesRange = humanizeRangeConstraint( "properties", schema.minProperties, - schema.maxProperties + schema.maxProperties, ); if (propertiesRange !== undefined) { res.push(propertiesRange); @@ -582,7 +582,7 @@ export function sortByRequired(fields: any[], order: string[] = []) { export function sortByField( fields: any[], - param: "name" | "description" | "kind" + param: "name" | "description" | "kind", ) { return [...fields].sort((a, b) => { return a[param].localeCompare(b[param]); @@ -592,7 +592,7 @@ export function sortByField( export function mergeParams( parser: OpenAPIParser, pathParams: Array> = [], - operationParams: Array> = [] + operationParams: Array> = [], ): Array> { const operationParamNames = {}; operationParams.forEach((param) => { @@ -610,7 +610,7 @@ export function mergeParams( } export function mergeSimilarMediaTypes( - types: Record + types: Record, ): Record { const mergedTypes = {}; Object.keys(types).forEach((name) => { @@ -632,17 +632,17 @@ export function mergeSimilarMediaTypes( export function expandDefaultServerVariables( url: string, - variables: object = {} + variables: object = {}, ) { return url.replace( /(?:{)([\w-.]+)(?:})/g, - (match, name) => (variables[name] && variables[name].default) || match + (match, name) => (variables[name] && variables[name].default) || match, ); } export function normalizeServers( specUrl: string | undefined, - servers: OpenAPIServer[] + servers: OpenAPIServer[], ): OpenAPIServer[] { const getHref = () => { if (!false) { @@ -689,7 +689,7 @@ export const shortenHTTPVerb = (verb) => ({ delete: "del", options: "opts", - }[verb] || verb); + })[verb] || verb; export function isRedocExtension(key: string): boolean { const redocExtensions = { @@ -713,7 +713,7 @@ export function isRedocExtension(key: string): boolean { export function extractExtensions( obj: object, - showExtensions: string[] | true + showExtensions: string[] | true, ): Record { return Object.keys(obj) .filter((key) => { @@ -734,14 +734,14 @@ export function pluralizeType(displayType: string): string { .map((type) => type.replace( /^(string|object|number|integer|array|boolean)s?( ?.*)/, - "$1s$2" - ) + "$1s$2", + ), ) .join(" or "); } export function getContentWithLegacyExamples( - info: OpenAPIRequestBody | OpenAPIResponse + info: OpenAPIRequestBody | OpenAPIResponse, ): { [mime: string]: OpenAPIMediaType } | undefined { let mediaContent = info.content; const xExamples = info["x-examples"]; // converted from OAS2 body param diff --git a/packages/docusaurus-plugin-openapi-docs/src/options.ts b/packages/docusaurus-plugin-openapi-docs/src/options.ts index d2a56805d..d89c18ca6 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/options.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/options.ts @@ -56,9 +56,9 @@ export const OptionsSchema = Joi.object({ outputDir: Joi.string().required(), label: Joi.string().required(), baseUrl: Joi.string().required(), - }) + }), ), - }) + }), ) .required(), }); diff --git a/packages/docusaurus-plugin-openapi-docs/src/sidebars/index.ts b/packages/docusaurus-plugin-openapi-docs/src/sidebars/index.ts index b3e62abf3..4d816b0dc 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/sidebars/index.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/sidebars/index.ts @@ -39,7 +39,7 @@ function groupByTags( sidebarOptions: SidebarOptions, options: APIOptions, tags: TagObject[][], - docPath: string + docPath: string, ): ProcessedSidebar { let { outputDir, label } = options; @@ -68,7 +68,7 @@ function groupByTags( const operationTags = uniq( apiItems .flatMap((item) => item.api.tags) - .filter((item): item is string => !!item) + .filter((item): item is string => !!item), ); // Combine globally defined tags with operation tags @@ -100,7 +100,7 @@ function groupByTags( "menu__list-item--deprecated": item.api.deprecated, "api-method": !!item.api.method, }, - item.api.method + item.api.method, ), }; } @@ -119,14 +119,14 @@ function groupByTags( .map((tag) => { // Map info object to tag const taggedInfoObject = intros.find((i) => - i.tags ? i.tags.find((t: any) => t.name === tag) : undefined + i.tags ? i.tags.find((t: any) => t.name === tag) : undefined, ); const tagObject = tags.flat().find( (t) => tag === t.name ?? { name: tag, description: `${tag} Index`, - } + }, ); // TODO: perhaps move this into a getLinkConfig() function @@ -162,8 +162,8 @@ function groupByTags( "/category", basePath, kebabCase(label), - kebabCase(tag) - ) + kebabCase(tag), + ), ) : posixPath(path.join("/category", basePath, kebabCase(tag))), } as SidebarItemCategoryLinkConfig; @@ -215,7 +215,7 @@ export default function generateSidebarSlice( options: APIOptions, api: ApiMetadata[], tags: TagObject[][], - docPath: string + docPath: string, ) { let sidebarSlice: ProcessedSidebar = []; @@ -225,7 +225,7 @@ export default function generateSidebarSlice( sidebarOptions, options, tags, - docPath + docPath, ); } diff --git a/packages/docusaurus-theme-openapi-docs/src/index.ts b/packages/docusaurus-theme-openapi-docs/src/index.ts index 1ad7976e9..7cd1c86ff 100644 --- a/packages/docusaurus-theme-openapi-docs/src/index.ts +++ b/packages/docusaurus-theme-openapi-docs/src/index.ts @@ -18,7 +18,7 @@ export default function docusaurusThemeOpenAPI(): Plugin { getClientModules() { const modules = [ require.resolve( - path.join(__dirname, "..", "lib", "theme", "styles.scss") + path.join(__dirname, "..", "lib", "theme", "styles.scss"), ), ]; return modules; diff --git a/packages/docusaurus-theme-openapi-docs/src/markdown/schema.ts b/packages/docusaurus-theme-openapi-docs/src/markdown/schema.ts index 8720e31c4..3513a3bec 100644 --- a/packages/docusaurus-theme-openapi-docs/src/markdown/schema.ts +++ b/packages/docusaurus-theme-openapi-docs/src/markdown/schema.ts @@ -45,7 +45,7 @@ function prettyName(schema: SchemaObject, circular?: boolean) { export function getSchemaName( schema: SchemaObject, - circular?: boolean + circular?: boolean, ): string { if (schema.items) { return prettyName(schema.items, circular) + "[]"; @@ -79,7 +79,7 @@ export function getQualifierMessage(schema?: SchemaObject): string | undefined { if (schema.items && schema.items.enum) { if (schema.items.enum) { qualifierGroups.push( - `[${schema.items.enum.map((e) => `\`${e}\``).join(", ")}]` + `[${schema.items.enum.map((e) => `\`${e}\``).join(", ")}]`, ); } } @@ -150,7 +150,7 @@ export function getQualifierMessage(schema?: SchemaObject): string | undefined { if (schema.pattern) { qualifierGroups.push( - `Value must match regular expression \`${schema.pattern}\`` + `Value must match regular expression \`${schema.pattern}\``, ); } diff --git a/packages/docusaurus-theme-openapi-docs/src/markdown/utils.ts b/packages/docusaurus-theme-openapi-docs/src/markdown/utils.ts index b18701e07..9f683bbaf 100644 --- a/packages/docusaurus-theme-openapi-docs/src/markdown/utils.ts +++ b/packages/docusaurus-theme-openapi-docs/src/markdown/utils.ts @@ -22,7 +22,7 @@ export function create(tag: string, props: Props): string { export function guard( value: T | undefined | string, - cb: (value: T) => Children + cb: (value: T) => Children, ): string { if (!!value) { const children = cb(value as T); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme-openapi.d.ts b/packages/docusaurus-theme-openapi-docs/src/theme-openapi.d.ts index 8961e7d49..48b4ffa0b 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme-openapi.d.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme-openapi.d.ts @@ -7,6 +7,8 @@ /// +/* eslint-disable @typescript-eslint/no-use-before-define */ + declare module "@docusaurus/plugin-content-docs-types" { // Makes all properties visible when hovering over the type type Expand> = { [P in keyof T]: T[P] }; @@ -128,7 +130,7 @@ declare module "@theme/ApiExplorer/FloatingButton" { import { Props as FloatingButtonProps } from "@theme/ApiExplorer/FloatingButton"; export default function FloatingButton( - props: FloatingButtonProps + props: FloatingButtonProps, ): JSX.Element; } @@ -154,7 +156,7 @@ declare module "@theme/ApiExplorer/FormFileUpload" { import { Props as FormFileUploadProps } from "@theme/ApiExplorer/FormFileUpload"; export default function FormFileUpload( - props: FormFileUploadProps + props: FormFileUploadProps, ): JSX.Element; } @@ -162,7 +164,7 @@ declare module "@theme/ApiExplorer/FormMultiSelect" { import { Props as FormMultiSelectProps } from "@theme/ApiExplorer/FormMultiSelect"; export default function FormMultiSelect( - props: FormMultiSelectProps + props: FormMultiSelectProps, ): JSX.Element; } @@ -180,7 +182,7 @@ declare module "@theme/ApiExplorer/MethodEndpoint" { import { Props as MethodEndpointProps } from "@theme/ApiExplorer/MethodEndpoint"; export default function MethodEndpoint( - props: MethodEndpointProps + props: MethodEndpointProps, ): JSX.Element; } @@ -194,7 +196,7 @@ declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectF import { ParamProps } from "@theme/ApiExplorer/ParamOptions"; export default function ParamMultiSelectFormItem( - props: ParamProps + props: ParamProps, ): JSX.Element; } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js index cb71c3299..0df623266 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js @@ -68,7 +68,7 @@ export default function ExpandButton({ "clean-btn", className, "openapi-explorer__code-block-expand-btn", - modalIsOpen && "openapi-explorer__code-block-expand-btn--copied" + modalIsOpen && "openapi-explorer__code-block-expand-btn--copied", )} onClick={openModal} > @@ -103,7 +103,7 @@ export default function ExpandButton({ "openapi-explorer__code-block-container", language && !blockClassName.includes(`language-${language}`) && - `language-${language}` + `language-${language}`, )} > {title && ( @@ -123,14 +123,14 @@ export default function ExpandButton({ className={clsx( className, "openapi-explorer__code-block", - "thin-scrollbar" + "thin-scrollbar", )} > {tokens.map((line, i) => ( diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js index f9ac31ac4..592ba114d 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js @@ -22,7 +22,7 @@ export default function CodeBlockContainer({ as: As, ...props }) { className={clsx( "openapi-explorer__code-block-container", props.className, - ThemeClassNames.common.codeBlock + ThemeClassNames.common.codeBlock, )} /> ); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js index a732df888..f134de3e5 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js @@ -21,7 +21,7 @@ export default function CodeBlockJSX({ children, className }) { className={clsx( "openapi-explorer__code-block-standalone", "thin-scrollbar", - className + className, )} > {children} diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js index 4909314d3..623819949 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js @@ -57,7 +57,7 @@ export default function CodeBlockString({ blockClassName, language && !blockClassName.includes(`language-${language}`) && - `language-${language}` + `language-${language}`, )} > {title && ( @@ -78,14 +78,14 @@ export default function CodeBlockString({ className={clsx( className, "openapi-explorer__code-block", - "thin-scrollbar" + "thin-scrollbar", )} > {tokens.map((line, i) => ( @@ -117,7 +117,7 @@ export default function CodeBlockString({ diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js index 676f3f44b..2c56a1f4d 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js @@ -27,7 +27,7 @@ export default function ExitButton({ className, handler }) { className={clsx( "clean-btn", "openapi-explorer__code-block-exit-btn", - className + className, )} onClick={handler} > diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js index 651732f24..0d6c755cb 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js @@ -59,7 +59,7 @@ export default function ExpandButton({ "clean-btn", className, "openapi-explorer__code-block-expand-btn", - isModalOpen && "openapi-explorer__code-block-expand-btn--copied" + isModalOpen && "openapi-explorer__code-block-expand-btn--copied", )} onClick={() => setIsModalOpen(true)} > @@ -94,7 +94,7 @@ export default function ExpandButton({ "openapi-explorer__code-block-container", language && !blockClassName.includes(`language-${language}`) && - `language-${language}` + `language-${language}`, )} > {title && ( @@ -114,14 +114,14 @@ export default function ExpandButton({ className={clsx( className, "openapi-explorer__code-block", - "thin-scrollbar" + "thin-scrollbar", )} > {tokens.map((line, i) => ( diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js index 2cf119bf9..75b6f9611 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js @@ -23,7 +23,7 @@ export default function CodeBlockLine({ line, className: clsx( classNames, - showLineNumbers && "openapi-explorer__code-block-code-line" + showLineNumbers && "openapi-explorer__code-block-code-line", ), }); const lineTokens = line.map((token, key) => ( diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js index 447b776a4..bba1feb13 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js @@ -24,7 +24,7 @@ export default function WordWrapButton({ className, onClick, isEnabled }) { className={clsx( "clean-btn", className, - isEnabled && "openapi-explorer__code-block-word-wrap-btn--enabled" + isEnabled && "openapi-explorer__code-block-word-wrap-btn--enabled", )} aria-label={title} title={title} diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/index.tsx index 92ace28d1..6f302f83d 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/index.tsx @@ -56,7 +56,7 @@ function Authorization() { scheme: a.key, key: "token", value: value ? value : undefined, - }) + }), ); }} /> @@ -77,7 +77,7 @@ function Authorization() { scheme: a.key, key: "token", value: value ? value : undefined, - }) + }), ); }} /> @@ -99,7 +99,7 @@ function Authorization() { scheme: a.key, key: "username", value: value ? value : undefined, - }) + }), ); }} /> @@ -116,7 +116,7 @@ function Authorization() { scheme: a.key, key: "password", value: value ? value : undefined, - }) + }), ); }} /> @@ -138,7 +138,7 @@ function Authorization() { scheme: a.key, key: "apiKey", value: value ? value : undefined, - }) + }), ); }} /> diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/slice.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/slice.ts index 8449dcf79..e55c91de3 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/slice.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Authorization/slice.ts @@ -130,7 +130,7 @@ export const slice = createSlice({ reducers: { setAuthData: ( state, - action: PayloadAction<{ scheme: string; key: string; value?: string }> + action: PayloadAction<{ scheme: string; key: string; value?: string }>, ) => { const { scheme, key, value } = action.payload; state.data[scheme][key] = value; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/index.tsx index 816c00fe6..1a760a4a0 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/index.tsx @@ -107,7 +107,7 @@ function Body({ setFileRawBody({ src: `/path/to/${file.name}`, content: file, - }) + }), ); }} /> @@ -147,7 +147,7 @@ function Body({ src: `/path/to/${file.name}`, content: file, }, - }) + }), ); }} /> @@ -176,7 +176,7 @@ function Body({ setStringFormBody({ key: key, value: val, - }) + }), ); } }} @@ -203,7 +203,7 @@ function Body({ placeholder={val.description || key} onChange={(e: React.ChangeEvent) => { dispatch( - setStringFormBody({ key: key, value: e.target.value }) + setStringFormBody({ key: key, value: e.target.value }), ); }} /> diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/slice.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/slice.ts index 157875e01..e515074ac 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/slice.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/slice.ts @@ -78,7 +78,7 @@ export const slice = createSlice({ }, setStringFormBody: ( state, - action: PayloadAction<{ key: string; value: string }> + action: PayloadAction<{ key: string; value: string }>, ) => { if (state?.type !== "form") { return { @@ -99,7 +99,7 @@ export const slice = createSlice({ }, setFileFormBody: ( state, - action: PayloadAction<{ key: string; value: FileContent["value"] }> + action: PayloadAction<{ key: string; value: FileContent["value"] }>, ) => { if (state?.type !== "form") { return { diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx index 9bd90e344..35ea1ee45 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx @@ -181,7 +181,7 @@ function CodeSnippets({ postman, codeSamples }: Props) { // Read defaultLang from localStorage const defaultLang: Language[] = mergedLangs.filter( (lang) => - lang.language === localStorage.getItem("docusaurus.tab.code-samples") + lang.language === localStorage.getItem("docusaurus.tab.code-samples"), ); const [selectedVariant, setSelectedVariant] = useState(); const [language, setLanguage] = useState(() => { @@ -217,13 +217,13 @@ function CodeSnippets({ postman, codeSamples }: Props) { return; } setCodeText(snippet); - } + }, ); } else if (language && !!language.source) { setCodeText(language.source); } else if (language && !language.options) { const langSource = mergedLangs.filter( - (lang) => lang.language === language.language + (lang) => lang.language === language.language, ); // Merges user-defined language with default languageSet @@ -252,7 +252,7 @@ function CodeSnippets({ postman, codeSamples }: Props) { return; } setCodeText(snippet); - } + }, ); } else { setCodeText(""); @@ -295,7 +295,7 @@ function CodeSnippets({ postman, codeSamples }: Props) { return; } setCodeText(snippet); - } + }, ); } }); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss index cebae2350..0b36f4b82 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss @@ -18,12 +18,14 @@ background-color: var(--ifm-pre-background); border-radius: var(--ifm-global-radius); border: 1px solid var(--openapi-explorer-border-color); - box-shadow: 0 2px 3px hsla(222, 8%, 43%, 0.1), + box-shadow: + 0 2px 3px hsla(222, 8%, 43%, 0.1), 0 8px 16px -10px hsla(222, 8%, 43%, 0.2); transition: 300ms; &:hover { - box-shadow: 0 0 0 2px rgba(38, 53, 61, 0.15), + box-shadow: + 0 0 0 2px rgba(38, 53, 61, 0.15), 0 2px 3px hsla(222, 8%, 43%, 0.15), 0 16px 16px -10px hsla(222, 8%, 43%, 0.2); } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/index.js index c3972fed7..e130d5cae 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/index.js @@ -43,13 +43,13 @@ function TabList({ let newLanguage; if (currentLanguage && includeVariant) { newLanguage = languageSet.filter( - (lang) => lang.language === currentLanguage + (lang) => lang.language === currentLanguage, )[0]; newLanguage.variant = newTabValue; action.setSelectedVariant(newTabValue.toLowerCase()); } else { newLanguage = languageSet.filter( - (lang) => lang.language === newTabValue + (lang) => lang.language === newTabValue, )[0]; action.setSelectedVariant(newLanguage.variant.toLowerCase()); } @@ -90,7 +90,7 @@ function TabList({ { "tabs--block": block, }, - className + className, )} > {tabValues.map(({ value, label, attributes }) => ( @@ -110,7 +110,7 @@ function TabList({ attributes?.className, { active: selectedValue === value, - } + }, )} > {label ?? value} @@ -125,7 +125,7 @@ function TabContent({ lazy, children, selectedValue }) { children = Array.isArray(children) ? children : [children]; if (lazy) { const selectedTabItem = children.find( - (tabItem) => tabItem.props.value === selectedValue + (tabItem) => tabItem.props.value === selectedValue, ); if (!selectedTabItem) { // fail-safe or fail-fast? not sure what's best here @@ -139,7 +139,7 @@ function TabContent({ lazy, children, selectedValue }) { cloneElement(tabItem, { key: i, hidden: tabItem.props.value !== selectedValue, - }) + }), )} ); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss index 08f882b02..73c9627ce 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss @@ -11,7 +11,9 @@ padding: 0.4rem 0.5rem; opacity: 0; visibility: hidden; - transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, + transition: + opacity 0.2s ease-in-out, + visibility 0.2s ease-in-out, bottom 0.2s ease-in-out; position: absolute; right: calc(var(--ifm-pre-padding) / 2); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/MethodEndpoint/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/MethodEndpoint/index.tsx index 18f7850f1..e6e3e562c 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/MethodEndpoint/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/MethodEndpoint/index.tsx @@ -48,7 +48,7 @@ function MethodEndpoint({ method, path }: Props) { Object.keys(serverValue.variables).forEach((variable) => { serverUrlWithVariables = serverUrlWithVariables.replace( `{${variable}}`, - serverValue.variables?.[variable].default ?? "" + serverValue.variables?.[variable].default ?? "", ); }); } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx index d28430f92..2c80f59f2 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx @@ -74,7 +74,7 @@ export default function ParamArrayFormItem({ param }: ParamProps) { setParam({ ...param, value: values.length > 0 ? values : undefined, - }) + }), ); // eslint-disable-next-line react-hooks/exhaustive-deps }, [items]); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx index 5774679f1..69e1071c3 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx @@ -43,7 +43,7 @@ export default function ParamBooleanFormItem({ param }: ParamProps) { setParam({ ...param, value: val === "---" ? undefined : val, - }) + }), ); onChange(val); }} diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx index 459d782c7..63c33abbf 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx @@ -37,10 +37,10 @@ export default function ParamMultiSelectFormItem({ param }: ParamProps) { const paramTypeToWatch = pathParams.length ? pathParams : queryParams.length - ? queryParams - : cookieParams.length - ? cookieParams - : headerParams; + ? queryParams + : cookieParams.length + ? cookieParams + : headerParams; const handleChange = (e: any, onChange: any) => { const values = Array.prototype.filter @@ -51,7 +51,7 @@ export default function ParamMultiSelectFormItem({ param }: ParamProps) { setParam({ ...param, value: values.length > 0 ? values : undefined, - }) + }), ); onChange(paramTypeToWatch); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx index 05160ba54..d6f3ee88f 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx @@ -44,7 +44,7 @@ export default function ParamSelectFormItem({ param }: ParamProps) { setParam({ ...param, value: val === "---" ? undefined : val, - }) + }), ); onChange(val); }} diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx index d8938a5c3..4ef8b906c 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx @@ -30,7 +30,7 @@ export default function ParamTextFormItem({ param }: ParamProps) { param.in === "path" || param.in === "query" ? e.target.value.replace(/\s/g, "%20") : e.target.value, - }) + }), ) } /> diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss index 13d800553..e90d5af2a 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss @@ -107,7 +107,8 @@ } &:active { - box-shadow: inset 0 0 0 1px var(--openapi-input-border), + box-shadow: + inset 0 0 0 1px var(--openapi-input-border), inset 0 0 0 2px var(--openapi-inverse-color); } } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/_Request.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/_Request.scss index 24d87faae..80e9f0c42 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/_Request.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/_Request.scss @@ -2,7 +2,8 @@ background-color: var(--ifm-pre-background); border-radius: var(--openapi-card-border-radius); border: 1px solid var(--openapi-explorer-border-color); - box-shadow: 0 2px 3px hsla(222, 8%, 43%, 0.1), + box-shadow: + 0 2px 3px hsla(222, 8%, 43%, 0.1), 0 8px 16px -10px hsla(222, 8%, 43%, 0.2); color: var(--ifm-pre-color); line-height: var(--ifm-pre-line-height); @@ -19,7 +20,8 @@ } &:hover { - box-shadow: 0 0 0 2px rgba(38, 53, 61, 0.15), + box-shadow: + 0 0 0 2px rgba(38, 53, 61, 0.15), 0 2px 3px hsla(222, 8%, 43%, 0.15), 0 16px 16px -10px hsla(222, 8%, 43%, 0.2); } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/index.tsx index 73ed7bddf..6d1de50ec 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/index.tsx @@ -90,7 +90,7 @@ function Request({ item }: { item: NonNullable }) { const paramType = param.in; const paramsArray: ParameterObject[] = paramsObject[paramType]; paramsArray.push(param as ParameterObject); - } + }, ); const methods = useForm({ shouldFocusError: false }); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/makeRequest.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/makeRequest.ts index 07b2edbb5..1ec6e0928 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/makeRequest.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/makeRequest.ts @@ -11,12 +11,12 @@ import { Body } from "@theme/ApiExplorer/Body/slice"; function fetchWithtimeout( url: string, options: RequestInit, - timeout = 5000 + timeout = 5000, ): any { return Promise.race([ fetch(url, options), new Promise((_, reject) => - setTimeout(() => reject(new Error("Request timed out")), timeout) + setTimeout(() => reject(new Error("Request timed out")), timeout), ), ]); } @@ -47,7 +47,7 @@ async function loadImage(content: Blob): Promise { async function makeRequest( request: sdk.Request, proxy: string | undefined, - _body: Body + _body: Body, ) { const headers = request.toJSON().header; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/_Response.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/_Response.scss index 767b9a8ed..952ccff24 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/_Response.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/_Response.scss @@ -2,7 +2,8 @@ background-color: var(--ifm-pre-background); border-radius: var(--openapi-card-border-radius); border: 1px solid var(--openapi-explorer-border-color); - box-shadow: 0 2px 3px hsla(222, 8%, 43%, 0.1), + box-shadow: + 0 2px 3px hsla(222, 8%, 43%, 0.1), 0 8px 16px -10px hsla(222, 8%, 43%, 0.2); color: var(--ifm-pre-color); line-height: var(--ifm-pre-line-height); @@ -12,7 +13,8 @@ transition: 300ms; &:hover { - box-shadow: 0 0 0 2px rgba(38, 53, 61, 0.15), + box-shadow: + 0 0 0 2px rgba(38, 53, 61, 0.15), 0 2px 3px hsla(222, 8%, 43%, 0.15), 0 16px 16px -10px hsla(222, 8%, 43%, 0.2); } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx index bae5905f4..b0e72f706 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx @@ -52,8 +52,8 @@ function Response({ item }: { item: NonNullable }) { (parseInt(code) >= 400 ? "openapi-response__dot--danger" : parseInt(code) >= 200 && parseInt(code) < 300 - ? "openapi-response__dot--success" - : "openapi-response__dot--info"); + ? "openapi-response__dot--success" + : "openapi-response__dot--info"); if (!item.servers || hideSendButton) { return null; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/index.tsx index c627d463a..6909ca411 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/index.tsx @@ -51,7 +51,7 @@ function Server() { Object.keys(value.variables).forEach((variable) => { url = url.replace( `{${variable}}`, - value.variables?.[variable].default ?? "" + value.variables?.[variable].default ?? "", ); }); } @@ -76,9 +76,9 @@ function Server() { dispatch( setServer( JSON.stringify( - options.filter((s: any) => s.url === e.target.value)[0] - ) - ) + options.filter((s: any) => s.url === e.target.value)[0], + ), + ), ); }} value={value?.url} @@ -97,8 +97,8 @@ function Server() { onChange={(e: React.ChangeEvent) => { dispatch( setServerVariable( - JSON.stringify({ key, value: e.target.value }) - ) + JSON.stringify({ key, value: e.target.value }), + ), ); }} value={value?.variables[key].default} @@ -113,8 +113,8 @@ function Server() { onChange={(e: React.ChangeEvent) => { dispatch( setServerVariable( - JSON.stringify({ key, value: e.target.value }) - ) + JSON.stringify({ key, value: e.target.value }), + ), ); }} value={value?.variables?.[key].default} diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/slice.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/slice.ts index dc55be244..be2479971 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/slice.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Server/slice.ts @@ -22,7 +22,7 @@ export const slice = createSlice({ reducers: { setServer: (state, action: PayloadAction) => { state.value = state.options.find( - (s) => s.url === JSON.parse(action.payload).url + (s) => s.url === JSON.parse(action.payload).url, ); }, setServerVariable: (state, action: PayloadAction) => { diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/buildPostmanRequest.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/buildPostmanRequest.ts index 87cb0ff57..4b751b2e8 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/buildPostmanRequest.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/buildPostmanRequest.ts @@ -92,7 +92,7 @@ function setHeaders( accept: string, cookie: string, headerParams: Param[], - other: { key: string; value: string }[] + other: { key: string; value: string }[], ) { postman.headers.clear(); if (contentType) { @@ -213,7 +213,7 @@ function buildPostmanRequest( body, server, auth, - }: Options + }: Options, ) { const clonedPostman = cloneDeep(postman); @@ -316,7 +316,7 @@ function buildPostmanRequest( accept, cookie, headerParams, - otherHeaders + otherHeaders, ); setBody(clonedPostman, body); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts index 676d971a6..2fd4de5f1 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/persistanceMiddleware.ts @@ -39,7 +39,7 @@ export function createPersistanceMiddleware(options: ThemeConfig["api"]) { if (state.auth.selected) { storage.setItem( hashArray(Object.keys(state.auth.options)), - state.auth.selected + state.auth.selected, ); } } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx index d90ed562a..e6adbd48d 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx @@ -53,7 +53,7 @@ export default function ApiItem(props: Props): JSX.Element { // decompress and parse if (api) { api = JSON.parse( - zlib.inflateSync(Buffer.from(api as any, "base64")).toString() + zlib.inflateSync(Buffer.from(api as any, "base64")).toString(), ); } @@ -99,7 +99,7 @@ export default function ApiItem(props: Props): JSX.Element { const paramType = param.in; const paramsArray: ParameterObject[] = params[paramType]; paramsArray.push(param as ParameterObject); - } + }, ); const auth = createAuth({ security: api?.security, @@ -131,7 +131,7 @@ export default function ApiItem(props: Props): JSX.Element { params, auth, }, - [persistanceMiddleware] + [persistanceMiddleware], ); } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/store.ts b/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/store.ts index 251b972d0..2aa1ad6f0 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/store.ts +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/store.ts @@ -28,7 +28,7 @@ export type RootState = ReturnType; export const createStoreWithState = ( preloadedState: RootState, - middlewares: any[] + middlewares: any[], ) => configureStore({ reducer: rootReducer, @@ -39,7 +39,7 @@ export const createStoreWithState = ( export const createStoreWithoutState = ( preloadedState: {}, - middlewares: any[] + middlewares: any[], ) => configureStore({ reducer: rootReducer, diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.js index 4062b657e..f320751e4 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.js @@ -104,7 +104,7 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { { "tabs--block": block, }, - className + className, )} > {tabValues.map(({ value, label, attributes }) => ( @@ -125,11 +125,11 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { parseInt(value) >= 400 ? "danger" : parseInt(value) >= 200 && parseInt(value) < 300 - ? "success" - : "info", + ? "success" + : "info", { active: selectedValue === value, - } + }, )} > {label ?? value} @@ -151,7 +151,7 @@ function TabContent({ lazy, children, selectedValue }) { children = Array.isArray(children) ? children : [children]; if (lazy) { const selectedTabItem = children.find( - (tabItem) => tabItem.props.value === selectedValue + (tabItem) => tabItem.props.value === selectedValue, ); if (!selectedTabItem) { // fail-safe or fail-fast? not sure what's best here @@ -165,7 +165,7 @@ function TabContent({ lazy, children, selectedValue }) { cloneElement(tabItem, { key: i, hidden: tabItem.props.value !== selectedValue, - }) + }), )} ); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/index.js index bd41ab443..e92df0740 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/index.js @@ -99,7 +99,7 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { { "tabs--block": block, }, - className + className, )} > {tabValues.map(({ value, label, attributes }) => ( @@ -119,7 +119,7 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { attributes?.className, { active: selectedValue === value, - } + }, )} > @@ -144,7 +144,7 @@ function TabContent({ lazy, children, selectedValue }) { const flattenedChildren = flatten(children); if (lazy) { const selectedTabItem = flattenedChildren.find( - (tabItem) => tabItem.props.value === selectedValue + (tabItem) => tabItem.props.value === selectedValue, ); if (!selectedTabItem) { // fail-safe or fail-fast? not sure what's best here @@ -158,7 +158,7 @@ function TabContent({ lazy, children, selectedValue }) { cloneElement(tabItem, { key: i, hidden: tabItem.props.value !== selectedValue, - }) + }), )} ); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/index.js index 6792763f6..1ad83f599 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/index.js @@ -136,7 +136,7 @@ function TabList({ { "tabs--block": block, }, - className + className, )} > {tabValues.map(({ value, label, attributes }) => { @@ -157,7 +157,7 @@ function TabList({ attributes?.className, { active: selectedValue === value, - } + }, )} > {label ?? value} @@ -180,7 +180,7 @@ function TabContent({ lazy, children, selectedValue }) { children = Array.isArray(children) ? children : [children]; if (lazy) { const selectedTabItem = children.find( - (tabItem) => tabItem.props.value === selectedValue + (tabItem) => tabItem.props.value === selectedValue, ); if (!selectedTabItem) { // fail-safe or fail-fast? not sure what's best here @@ -194,7 +194,7 @@ function TabContent({ lazy, children, selectedValue }) { cloneElement(tabItem, { key: i, hidden: tabItem.props.value !== selectedValue, - }) + }), )} ); diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.js index 1e2a40f12..6173de33c 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.js @@ -74,13 +74,13 @@ function ParamsItem({ schema && schema.items ? schema.items.default : schema - ? schema.default - : undefined, + ? schema.default + : undefined, (value) => (
- ) + ), ); const renderExample = guard(toString(example), (example) => ( diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.js index 793623485..87b5423aa 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.js @@ -38,7 +38,7 @@ function SchemaItem({ const renderRequired = guard( Array.isArray(required) ? required.includes(name) : required, - () => required + () => required, ); const renderDeprecated = guard(deprecated, () => ( @@ -85,7 +85,7 @@ function SchemaItem({
- ) + ), ); const schemaContent = ( diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/index.js b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/index.js index 34008bfb0..c7c6e7587 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/index.js +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/index.js @@ -98,7 +98,7 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { { "tabs--block": block, }, - className + className, )} > {tabValues.map(({ value, label, attributes }) => ( @@ -118,7 +118,7 @@ function TabList({ className, block, selectedValue, selectValue, tabValues }) { attributes?.className, { active: selectedValue === value, - } + }, )} > {label ?? value} @@ -141,7 +141,7 @@ function TabContent({ lazy, children, selectedValue }) { if (lazy) { const selectedTabItem = flattenedChildren.find( - (tabItem) => tabItem.props.value === selectedValue + (tabItem) => tabItem.props.value === selectedValue, ); if (!selectedTabItem) { // fail-safe or fail-fast? not sure what's best here @@ -155,7 +155,7 @@ function TabContent({ lazy, children, selectedValue }) { cloneElement(tabItem, { key: i, hidden: tabItem.props.value !== selectedValue, - }) + }), )} ); diff --git a/scripts/changelog-beta.ts b/scripts/changelog-beta.ts index a7b9bf8eb..f4e295a91 100755 --- a/scripts/changelog-beta.ts +++ b/scripts/changelog-beta.ts @@ -60,7 +60,7 @@ function formatCommits(commits: string[]) { const r = /\(#(\d+)\)$/; return `- ${c.replace( r, - `([#$1](https://github.com/${ORG}/${REPO}/pull/$1))` + `([#$1](https://github.com/${ORG}/${REPO}/pull/$1))`, )}`; }); } diff --git a/scripts/changelog.ts b/scripts/changelog.ts index 0aceef9ab..5f7793191 100755 --- a/scripts/changelog.ts +++ b/scripts/changelog.ts @@ -60,7 +60,7 @@ function formatCommits(commits: string[]) { const r = /\(#(\d+)\)$/; return `- ${c.replace( r, - `([#$1](https://github.com/${ORG}/${REPO}/pull/$1))` + `([#$1](https://github.com/${ORG}/${REPO}/pull/$1))`, )}`; }); } diff --git a/scripts/copyUntypedFiles.mjs b/scripts/copyUntypedFiles.mjs index d95a6b35c..43a872af9 100644 --- a/scripts/copyUntypedFiles.mjs +++ b/scripts/copyUntypedFiles.mjs @@ -29,7 +29,7 @@ if (process.argv.includes("--watch")) { persistent: true, }); ["add", "change", "unlink", "addDir", "unlinkDir"].forEach((event) => - watcher.on(event, copy) + watcher.on(event, copy), ); } else { await copy(); diff --git a/scripts/publish-beta.ts b/scripts/publish-beta.ts index 501aa4b54..f6f5c1342 100644 --- a/scripts/publish-beta.ts +++ b/scripts/publish-beta.ts @@ -88,7 +88,7 @@ function buildAndPublish() { `lerna publish --yes from-package --no-verify-access --dist-tag beta`, { cwd: REPO_ROOT, - } + }, ); } diff --git a/scripts/utils/dry-run.ts b/scripts/utils/dry-run.ts index 789a93dd3..ea7d57c74 100644 --- a/scripts/utils/dry-run.ts +++ b/scripts/utils/dry-run.ts @@ -20,7 +20,7 @@ export function createDryRun any>(cmd: T) { commandString = `${cmd.name}(\`${arg0}\`, ${JSON.stringify( arg1, null, - 2 + 2, )})`; } diff --git a/scripts/version.ts b/scripts/version.ts index 80fddf52d..8cf7c60bc 100755 --- a/scripts/version.ts +++ b/scripts/version.ts @@ -30,7 +30,7 @@ function generateVersion( | "prerelease" | "graduate" | "betamajor" - | "betapatch" + | "betapatch", ) { if (bump === "betamajor") { const v = semver.parse(pkg.version); @@ -96,7 +96,7 @@ function main() { execSync( `lerna version ${nextVersion} --no-git-tag-version --no-push --yes`, - { stdio: "ignore" } + { stdio: "ignore" }, ); } diff --git a/tsconfig.json b/tsconfig.json index 1a363e600..42f867cfc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "resolveJsonModule": true, "esModuleInterop": true, - "noEmit": true + "noEmit": true, + "jsx": "react" }, - "include": ["scripts"] + "include": ["scripts", "demo"] } diff --git a/yarn.lock b/yarn.lock index fddf0a820..a2ab9a47a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2050,7 +2050,7 @@ core-js-pure "^3.30.2" regenerator-runtime "^0.14.0" -"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.6", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.6", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.1.tgz#1148bb33ab252b165a06698fde7576092a78b4a9" integrity sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg== @@ -2064,6 +2064,13 @@ dependencies: regenerator-runtime "^0.14.0" +"@babel/runtime@^7.23.2": + version "7.23.5" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.5.tgz#11edb98f8aeec529b82b211028177679144242db" + integrity sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.18.10", "@babel/template@^7.3.3": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" @@ -2638,6 +2645,18 @@ url-loader "^4.1.1" webpack "^5.88.1" +"@eslint-community/eslint-utils@^4.4.0": + version "4.4.0" + resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.5.1": + version "4.10.0" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" @@ -4611,6 +4630,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-schema@^7.0.12": + version "7.0.15" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -4816,6 +4840,11 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== +"@types/semver@^7.5.0": + version "7.5.6" + resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" + integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== + "@types/serve-index@^1.9.1": version "1.9.1" resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.1.tgz#1b5e85370a192c01ec6cec4735cf2917337a6278" @@ -4903,21 +4932,24 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^4.0.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== +"@typescript-eslint/eslint-plugin@^6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz#2e03506c5362a65e43cb132c37c9ce2d3cb51470" + integrity sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ== dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" - tsutils "^3.21.0" + "@eslint-community/regexpp" "^4.5.1" + "@typescript-eslint/scope-manager" "6.13.2" + "@typescript-eslint/type-utils" "6.13.2" + "@typescript-eslint/utils" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.2.4" + natural-compare "^1.4.0" + semver "^7.5.4" + ts-api-utils "^1.0.1" -"@typescript-eslint/experimental-utils@4.33.0", "@typescript-eslint/experimental-utils@^4.30.0": +"@typescript-eslint/experimental-utils@^4.30.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== @@ -4936,15 +4968,16 @@ dependencies: "@typescript-eslint/utils" "5.42.1" -"@typescript-eslint/parser@^4.0.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== +"@typescript-eslint/parser@^6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz#390b79cc9a57a5f904d197a201cc4b6bc4f9afb9" + integrity sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg== dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" + "@typescript-eslint/scope-manager" "6.13.2" + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/typescript-estree" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + debug "^4.3.4" "@typescript-eslint/scope-manager@4.33.0": version "4.33.0" @@ -4962,6 +4995,24 @@ "@typescript-eslint/types" "5.42.1" "@typescript-eslint/visitor-keys" "5.42.1" +"@typescript-eslint/scope-manager@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz#5fa4e4adace028dafac212c770640b94e7b61052" + integrity sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA== + dependencies: + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + +"@typescript-eslint/type-utils@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz#ebec2da14a6bb7122e0fd31eea72a382c39c6102" + integrity sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw== + dependencies: + "@typescript-eslint/typescript-estree" "6.13.2" + "@typescript-eslint/utils" "6.13.2" + debug "^4.3.4" + ts-api-utils "^1.0.1" + "@typescript-eslint/types@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" @@ -4972,6 +5023,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.1.tgz#0d4283c30e9b70d2aa2391c36294413de9106df2" integrity sha512-Qrco9dsFF5lhalz+lLFtxs3ui1/YfC6NdXu+RAGBa8uSfn01cjO7ssCsjIsUs484vny9Xm699FSKwpkCcqwWwA== +"@typescript-eslint/types@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz#c044aac24c2f6cefb8e921e397acad5417dd0ae6" + integrity sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg== + "@typescript-eslint/typescript-estree@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" @@ -4998,6 +5054,19 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz#ae556ee154c1acf025b48d37c3ef95a1d55da258" + integrity sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w== + dependencies: + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.5.4" + ts-api-utils "^1.0.1" + "@typescript-eslint/utils@5.42.1": version "5.42.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.1.tgz#2789b1cd990f0c07aaa3e462dbe0f18d736d5071" @@ -5012,6 +5081,19 @@ eslint-utils "^3.0.0" semver "^7.3.7" +"@typescript-eslint/utils@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz#8eb89e53adc6d703a879b131e528807245486f89" + integrity sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@types/json-schema" "^7.0.12" + "@types/semver" "^7.5.0" + "@typescript-eslint/scope-manager" "6.13.2" + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/typescript-estree" "6.13.2" + semver "^7.5.4" + "@typescript-eslint/visitor-keys@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" @@ -5028,6 +5110,14 @@ "@typescript-eslint/types" "5.42.1" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@6.13.2": + version "6.13.2" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz#e0a4a80cf842bb08e6127b903284166ac4a5594c" + integrity sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw== + dependencies: + "@typescript-eslint/types" "6.13.2" + eslint-visitor-keys "^3.4.1" + "@ungap/structured-clone@^1.0.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" @@ -5622,6 +5712,21 @@ aria-query@^5.0.0: dependencies: deep-equal "^2.0.5" +aria-query@^5.3.0: + version "5.3.0" + resolved "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" + +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== + dependencies: + call-bind "^1.0.2" + is-array-buffer "^3.0.1" + array-differ@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-3.0.0.tgz#3cbb3d0f316810eafcc47624734237d6aee4ae6b" @@ -5653,6 +5758,17 @@ array-includes@^3.1.4, array-includes@^3.1.5: get-intrinsic "^1.1.3" is-string "^1.0.7" +array-includes@^3.1.6, array-includes@^3.1.7: + version "3.1.7" + resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz#8cd2e01b26f7a3086cbc87271593fe921c62abda" + integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-string "^1.0.7" + array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" @@ -5668,15 +5784,49 @@ array.prototype.flat@^1.2.5: es-abstract "^1.20.4" es-shim-unscopables "^1.0.0" -array.prototype.flatmap@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" - integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== +array.prototype.flat@^1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +array.prototype.flatmap@^1.3.1, array.prototype.flatmap@^1.3.2: + version "1.3.2" + resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527" + integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +array.prototype.tosorted@^1.1.1: + version "1.1.2" + resolved "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz#620eff7442503d66c799d95503f82b475745cefd" + integrity sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" es-shim-unscopables "^1.0.0" + get-intrinsic "^1.2.1" + +arraybuffer.prototype.slice@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" + integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" arrify@^1.0.1: version "1.0.1" @@ -5725,10 +5875,10 @@ assert@^2.0.0: object-is "^1.0.1" util "^0.12.0" -ast-types-flow@^0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== +ast-types-flow@^0.0.8: + version "0.0.8" + resolved "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz#0a85e1c92695769ac13a428bb653e7538bea27d6" + integrity sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ== astral-regex@^2.0.0: version "2.0.0" @@ -5750,6 +5900,13 @@ async@^3.2.0, async@^3.2.3, async@^3.2.4: resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== +asynciterator.prototype@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz#8c5df0514936cdd133604dfcc9d3fb93f09b2b62" + integrity sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg== + dependencies: + has-symbols "^1.0.3" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -5799,10 +5956,10 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== -axe-core@^4.4.3: - version "4.5.1" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.5.1.tgz#04d561c11b6d76d096d34e9d14ba2c294fb20cdc" - integrity sha512-1exVbW0X1O/HSr/WMwnaweyqcWOgZgLiVxdLG34pvSQk4NlYQr9OUy0JLwuhFfuVNQzzqgH57eYzkFBCb3bIsQ== +axe-core@=4.7.0: + version "4.7.0" + resolved "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf" + integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ== axios@^0.21.1: version "0.21.4" @@ -5820,10 +5977,12 @@ axios@^1.0.0: form-data "^4.0.0" proxy-from-env "^1.1.0" -axobject-query@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" - integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== +axobject-query@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz#39c378a6e3b06ca679f29138151e45b2b32da62a" + integrity sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg== + dependencies: + dequal "^2.0.3" babel-eslint@^10.0.0: version "10.1.0" @@ -6350,6 +6509,15 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.4, call-bind@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" + integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== + dependencies: + function-bind "^1.1.2" + get-intrinsic "^1.2.1" + set-function-length "^1.1.1" + call-me-maybe@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" @@ -7655,6 +7823,15 @@ defer-to-connect@^2.0.1: resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== +define-data-property@^1.0.1, define-data-property@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" + integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== + dependencies: + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + define-lazy-prop@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" @@ -7668,6 +7845,15 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +define-properties@^1.2.0, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + del@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a" @@ -7707,9 +7893,9 @@ deprecation@^2.0.0, deprecation@^2.3.1: resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== -dequal@^2.0.0: +dequal@^2.0.0, dequal@^2.0.3: version "2.0.3" - resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + resolved "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== des.js@^1.0.0: @@ -8133,6 +8319,51 @@ es-abstract@^1.19.0, es-abstract@^1.20.4: string.prototype.trimstart "^1.0.5" unbox-primitive "^1.0.2" +es-abstract@^1.22.1: + version "1.22.3" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" + integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.2" + available-typed-arrays "^1.0.5" + call-bind "^1.0.5" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.2" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.12" + is-weakref "^1.0.2" + object-inspect "^1.13.1" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.1" + safe-array-concat "^1.0.1" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.8" + string.prototype.trimend "^1.0.7" + string.prototype.trimstart "^1.0.7" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.13" + es-get-iterator@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.2.tgz#9234c54aba713486d7ebde0220864af5e2b283f7" @@ -8147,6 +8378,26 @@ es-get-iterator@^1.1.2: is-string "^1.0.5" isarray "^2.0.5" +es-iterator-helpers@^1.0.12, es-iterator-helpers@^1.0.15: + version "1.0.15" + resolved "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz#bd81d275ac766431d19305923707c3efd9f1ae40" + integrity sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g== + dependencies: + asynciterator.prototype "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.1" + es-abstract "^1.22.1" + es-set-tostringtag "^2.0.1" + function-bind "^1.1.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + iterator.prototype "^1.1.2" + safe-array-concat "^1.0.1" + es-module-lexer@^0.9.0: version "0.9.3" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" @@ -8157,6 +8408,15 @@ es-module-lexer@^1.2.1: resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.4.1.tgz#41ea21b43908fe6a287ffcbe4300f790555331f5" integrity sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w== +es-set-tostringtag@^2.0.1: + version "2.0.2" + resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" + integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== + dependencies: + get-intrinsic "^1.2.2" + has-tostringtag "^1.0.0" + hasown "^2.0.0" + es-shim-unscopables@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" @@ -8307,49 +8567,54 @@ eslint-plugin-jest@^25.0.6: dependencies: "@typescript-eslint/experimental-utils" "^5.0.0" -eslint-plugin-jsx-a11y@^6.3.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz#93736fc91b83fdc38cc8d115deedfc3091aef1ff" - integrity sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q== - dependencies: - "@babel/runtime" "^7.18.9" - aria-query "^4.2.2" - array-includes "^3.1.5" - ast-types-flow "^0.0.7" - axe-core "^4.4.3" - axobject-query "^2.2.0" +eslint-plugin-jsx-a11y@^6.8.0: + version "6.8.0" + resolved "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.8.0.tgz#2fa9c701d44fcd722b7c771ec322432857fcbad2" + integrity sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA== + dependencies: + "@babel/runtime" "^7.23.2" + aria-query "^5.3.0" + array-includes "^3.1.7" + array.prototype.flatmap "^1.3.2" + ast-types-flow "^0.0.8" + axe-core "=4.7.0" + axobject-query "^3.2.1" damerau-levenshtein "^1.0.8" emoji-regex "^9.2.2" - has "^1.0.3" - jsx-ast-utils "^3.3.2" - language-tags "^1.0.5" + es-iterator-helpers "^1.0.15" + hasown "^2.0.0" + jsx-ast-utils "^3.3.5" + language-tags "^1.0.9" minimatch "^3.1.2" - semver "^6.3.0" + object.entries "^1.1.7" + object.fromentries "^2.0.7" -eslint-plugin-react-hooks@^4.0.8: +eslint-plugin-react-hooks@^4.6.0: version "4.6.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" + resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-react@^7.20.3: - version "7.31.10" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz#6782c2c7fe91c09e715d536067644bbb9491419a" - integrity sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA== +eslint-plugin-react@^7.33.2: + version "7.33.2" + resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608" + integrity sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw== dependencies: - array-includes "^3.1.5" - array.prototype.flatmap "^1.3.0" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" + array.prototype.tosorted "^1.1.1" doctrine "^2.1.0" + es-iterator-helpers "^1.0.12" estraverse "^5.3.0" jsx-ast-utils "^2.4.1 || ^3.0.0" minimatch "^3.1.2" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.1" - object.values "^1.1.5" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + object.hasown "^1.1.2" + object.values "^1.1.6" prop-types "^15.8.1" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.7" + resolve "^2.0.0-next.4" + semver "^6.3.1" + string.prototype.matchall "^4.0.8" eslint-plugin-testing-library@^4.12.4: version "4.12.4" @@ -8395,6 +8660,11 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== +eslint-visitor-keys@^3.4.1: + version "3.4.3" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + eslint@^7.5.0: version "7.32.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" @@ -9120,6 +9390,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" @@ -9130,12 +9405,22 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" +function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" + functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -9173,6 +9458,16 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@ has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" + integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== + dependencies: + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-own-enumerable-property-symbols@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" @@ -9387,6 +9682,13 @@ globals@^13.6.0, globals@^13.9.0: dependencies: type-fest "^0.20.2" +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + globby@^11.0.1, globby@^11.0.2, globby@^11.0.3, globby@^11.0.4, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -9439,6 +9741,11 @@ graceful-fs@4.2.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + gray-matter@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/gray-matter/-/gray-matter-4.0.3.tgz#e893c064825de73ea1f5f7d88c7a9f7274288798" @@ -9500,6 +9807,11 @@ has-property-descriptors@^1.0.0: dependencies: get-intrinsic "^1.1.1" +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" @@ -9546,6 +9858,13 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +hasown@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" + integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== + dependencies: + function-bind "^1.1.2" + hast-to-hyperscript@^10.0.0: version "10.0.1" resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-10.0.1.tgz#3decd7cb4654bca8883f6fcbd4fb3695628c4296" @@ -10068,11 +10387,16 @@ ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== -ignore@^5.0.4, ignore@^5.1.8, ignore@^5.2.0: +ignore@^5.0.4, ignore@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== +ignore@^5.2.4: + version "5.3.0" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78" + integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== + image-size@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.0.2.tgz#d778b6d0ab75b2737c1556dd631652eb963bc486" @@ -10207,6 +10531,15 @@ internal-slot@^1.0.3: has "^1.0.3" side-channel "^1.0.4" +internal-slot@^1.0.5: + version "1.0.6" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" + integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== + dependencies: + get-intrinsic "^1.2.2" + hasown "^2.0.0" + side-channel "^1.0.4" + interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" @@ -10255,11 +10588,27 @@ is-arguments@^1.0.4, is-arguments@^1.1.0, is-arguments@^1.1.1: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +is-async-function@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz#8e4418efd3e5d3a6ebb0164c05ef5afb69aa9646" + integrity sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA== + dependencies: + has-tostringtag "^1.0.0" + is-bigint@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" @@ -10306,6 +10655,13 @@ is-ci@^3.0.0, is-ci@^3.0.1: dependencies: ci-info "^3.2.0" +is-core-module@^2.13.0: + version "2.13.1" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" + integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== + dependencies: + hasown "^2.0.0" + is-core-module@^2.5.0, is-core-module@^2.8.1, is-core-module@^2.9.0: version "2.11.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" @@ -10340,6 +10696,13 @@ is-extglob@^2.1.1: resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== +is-finalizationregistry@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz#c8749b65f17c133313e661b1289b95ad3dbd62e6" + integrity sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw== + dependencies: + call-bind "^1.0.2" + is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" @@ -10355,9 +10718,9 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-generator-function@^1.0.7: +is-generator-function@^1.0.10, is-generator-function@^1.0.7: version "1.0.10" - resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" + resolved "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== dependencies: has-tostringtag "^1.0.0" @@ -10565,6 +10928,13 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.3: gopd "^1.0.1" has-tostringtag "^1.0.0" +is-typed-array@^1.1.12, is-typed-array@^1.1.9: + version "1.1.12" + resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" + integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== + dependencies: + which-typed-array "^1.1.11" + is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" @@ -10679,6 +11049,17 @@ istanbul-reports@^3.1.3: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" +iterator.prototype@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" + integrity sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w== + dependencies: + define-properties "^1.2.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + reflect.getprototypeof "^1.0.4" + set-function-name "^2.0.1" + jake@^10.8.5: version "10.8.5" resolved "https://registry.yarnpkg.com/jake/-/jake-10.8.5.tgz#f2183d2c59382cb274226034543b9c03b8164c46" @@ -11330,7 +11711,7 @@ jsprim@^2.0.2: json-schema "0.4.0" verror "1.10.0" -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.2: +"jsx-ast-utils@^2.4.1 || ^3.0.0": version "3.3.3" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== @@ -11338,6 +11719,16 @@ jsprim@^2.0.2: array-includes "^3.1.5" object.assign "^4.1.3" +jsx-ast-utils@^3.3.5: + version "3.3.5" + resolved "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a" + integrity sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ== + dependencies: + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + object.assign "^4.1.4" + object.values "^1.1.6" + just-diff-apply@^5.2.0: version "5.4.1" resolved "https://registry.yarnpkg.com/just-diff-apply/-/just-diff-apply-5.4.1.tgz#1debed059ad009863b4db0e8d8f333d743cdd83b" @@ -11375,17 +11766,17 @@ klona@^2.0.4: resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.6.tgz#85bffbf819c03b2f53270412420a4555ef882e22" integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA== -language-subtag-registry@~0.3.2: +language-subtag-registry@^0.3.20: version "0.3.22" - resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz#2e1500861b2e457eba7e7ae86877cbd08fa1fd1d" + resolved "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz#2e1500861b2e457eba7e7ae86877cbd08fa1fd1d" integrity sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w== -language-tags@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ== +language-tags@^1.0.9: + version "1.0.9" + resolved "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz#1ffdcd0ec0fafb4b1be7f8b11f306ad0f9c08777" + integrity sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA== dependencies: - language-subtag-registry "~0.3.2" + language-subtag-registry "^0.3.20" latest-version@^7.0.0: version "7.0.0" @@ -13451,6 +13842,11 @@ object-inspect@^1.12.2, object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== +object-inspect@^1.13.1: + version "1.13.1" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + object-is@^1.0.1, object-is@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" @@ -13474,31 +13870,31 @@ object.assign@^4.1.0, object.assign@^4.1.3, object.assign@^4.1.4: has-symbols "^1.0.3" object-keys "^1.1.1" -object.entries@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23" - integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== +object.entries@^1.1.6, object.entries@^1.1.7: + version "1.1.7" + resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz#2b47760e2a2e3a752f39dd874655c61a7f03c131" + integrity sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -object.fromentries@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73" - integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== +object.fromentries@^2.0.6, object.fromentries@^2.0.7: + version "2.0.7" + resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616" + integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -object.hasown@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92" - integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== +object.hasown@^1.1.2: + version "1.1.3" + resolved "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz#6a5f2897bb4d3668b8e79364f98ccf971bda55ae" + integrity sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA== dependencies: - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" object.values@^1.1.5: version "1.1.6" @@ -13509,6 +13905,15 @@ object.values@^1.1.5: define-properties "^1.1.4" es-abstract "^1.20.4" +object.values@^1.1.6: + version "1.1.7" + resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz#617ed13272e7e1071b43973aa1655d9291b8442a" + integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + obuf@^1.0.0, obuf@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" @@ -14430,10 +14835,10 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== -prettier@^2.4.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e" + integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw== pretty-bytes@^5.6.0: version "5.6.0" @@ -15119,6 +15524,18 @@ redux@^4.0.0, redux@^4.2.0: dependencies: "@babel/runtime" "^7.9.2" +reflect.getprototypeof@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz#aaccbf41aca3821b87bb71d9dcbc7ad0ba50a3f3" + integrity sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + which-builtin-type "^1.1.3" + reftools@^1.1.6, reftools@^1.1.9: version "1.1.9" resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" @@ -15169,6 +15586,15 @@ regexp.prototype.flags@^1.4.3: define-properties "^1.1.3" functions-have-names "^1.2.2" +regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: + version "1.5.1" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" + integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + set-function-name "^2.0.0" + regexpp@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" @@ -15441,12 +15867,12 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.20 path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^2.0.0-next.3: - version "2.0.0-next.4" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" - integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== +resolve@^2.0.0-next.4: + version "2.0.0-next.5" + resolved "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" + integrity sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA== dependencies: - is-core-module "^2.9.0" + is-core-module "^2.13.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -15548,6 +15974,16 @@ sade@^1.7.3: dependencies: mri "^1.1.0" +safe-array-concat@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c" + integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + isarray "^2.0.5" + safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -15810,6 +16246,25 @@ set-blocking@^2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== +set-function-length@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" + integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + dependencies: + define-data-property "^1.1.1" + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +set-function-name@^2.0.0, set-function-name@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" + integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + dependencies: + define-data-property "^1.0.1" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.0" + setimmediate@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" @@ -16300,20 +16755,30 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string.prototype.matchall@^4.0.7: - version "4.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3" - integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== +string.prototype.matchall@^4.0.8: + version "4.0.10" + resolved "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz#a1553eb532221d4180c51581d6072cd65d1ee100" + integrity sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" has-symbols "^1.0.3" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.3" + internal-slot "^1.0.5" + regexp.prototype.flags "^1.5.0" + set-function-name "^2.0.0" side-channel "^1.0.4" +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string.prototype.trimend@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" @@ -16323,6 +16788,15 @@ string.prototype.trimend@^1.0.5: define-properties "^1.1.4" es-abstract "^1.20.4" +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string.prototype.trimstart@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" @@ -16332,6 +16806,15 @@ string.prototype.trimstart@^1.0.5: define-properties "^1.1.4" es-abstract "^1.20.4" +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string_decoder@^1.1.1, string_decoder@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -16833,6 +17316,11 @@ trough@^2.0.0: resolved "https://registry.yarnpkg.com/trough/-/trough-2.1.0.tgz#0f7b511a4fde65a46f18477ab38849b22c554876" integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g== +ts-api-utils@^1.0.1: + version "1.0.3" + resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" + integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== + ts-interface-checker@^0.1.9: version "0.1.13" resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" @@ -16968,6 +17456,45 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-length@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" + integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + is-typed-array "^1.1.9" + typedarray-to-buffer@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" @@ -16980,11 +17507,16 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -"typescript@^3 || ^4", typescript@^4.4.4: +"typescript@^3 || ^4": version "4.8.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== +typescript@^4.9.5: + version "4.9.5" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" @@ -17773,6 +18305,24 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" +which-builtin-type@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz#b1b8443707cc58b6e9bf98d32110ff0c2cbd029b" + integrity sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw== + dependencies: + function.prototype.name "^1.1.5" + has-tostringtag "^1.0.0" + is-async-function "^2.0.0" + is-date-object "^1.0.5" + is-finalizationregistry "^1.0.2" + is-generator-function "^1.0.10" + is-regex "^1.1.4" + is-weakref "^1.0.2" + isarray "^2.0.5" + which-boxed-primitive "^1.0.2" + which-collection "^1.0.1" + which-typed-array "^1.1.9" + which-collection@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz#70eab71ebbbd2aefaf32f917082fc62cdcb70906" @@ -17788,6 +18338,17 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== +which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.9: + version "1.1.13" + resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.4" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" + which-typed-array@^1.1.2, which-typed-array@^1.1.8: version "1.1.9" resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6"