From 7bb793fcd44e5534d267f5c3198a43033fcbafa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aykut=20Sara=C3=A7?= Date: Fri, 14 Jul 2023 16:51:47 +0300 Subject: [PATCH 1/5] chore: update eslint rules --- .eslintrc.cjs | 63 +- .prettierignore | 1 + .prettierrc.json | 17 +- .stylelintrc.json | 9 +- package-lock.json | 2465 +++++++++++++++++++++++++++++++++++---------- package.json | 18 +- 6 files changed, 2002 insertions(+), 571 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index b3d828bd..9bd69821 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -2,28 +2,59 @@ module.exports = { root: true, parserOptions: { ecmaVersion: 2020, - sourceType: 'module' + sourceType: "module", }, - extends: ['eslint:recommended', 'prettier', 'plugin:storybook/recommended'], + extends: [ + "prettier", + "plugin:@typescript-eslint/recommended", + "eslint:recommended", + "plugin:storybook/recommended", + ], + plugins: ["prettier", "unused-imports", "@typescript-eslint"], env: { browser: true, - node: true + node: true, }, globals: { - process: 'readonly' + process: "readonly", }, rules: { - strict: ['error', 'never'] + "prettier/prettier": "error", + "strict": ["error", "never"], + "linebreak-style": ["error", "unix"], + "quotes": ["error", "double", { avoidEscape: true }], + "semi": ["error", "always"], + "no-empty": "off", + "unused-imports/no-unused-imports": "error", + "padding-line-between-statements": [ + "error", + { blankLine: "always", prev: ["const", "let", "var"], next: "*" }, + { blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"] }, + ], + "space-in-parens": "error", + "no-multiple-empty-lines": "error", + "no-irregular-whitespace": "error", + "space-before-function-paren": [ + "error", + { + anonymous: "always", + named: "never", + asyncArrow: "always", + }, + ], }, - overrides: [{ - files: ['*.ts'], - parser: '@typescript-eslint/parser', - extends: ['plugin:@typescript-eslint/recommended'], - plugins: ['@typescript-eslint'] - }, { - files: ['web-test-runner.config.js'], - env: { - node: true - } - }] + overrides: [ + { + files: ["*.ts"], + parser: "@typescript-eslint/parser", + extends: ["plugin:@typescript-eslint/recommended"], + plugins: ["@typescript-eslint"], + }, + { + files: ["web-test-runner.config.js"], + env: { + node: true, + }, + }, + ], }; diff --git a/.prettierignore b/.prettierignore index 11f22ad5..2228d3e2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -21,3 +21,4 @@ docs/ .octane-ci/ .bin/ .docksal/ +*.test.ts diff --git a/.prettierrc.json b/.prettierrc.json index 2e37254c..1cdb92a9 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,11 +1,18 @@ { "arrowParens": "avoid", - "bracketSpacing": true, - "quoteProps": "consistent", - "printWidth": 100, + "quoteProps": "preserve", + "printWidth": 95, "semi": true, - "singleQuote": true, + "singleQuote": false, "tabWidth": 2, "trailingComma": "es5", - "useTabs": false + "useTabs": false, + "importOrder": [ + "^lit", + "", + "^[./]", + "(.css)$" + ], + "importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"], + "plugins": ["@trivago/prettier-plugin-sort-imports"] } diff --git a/.stylelintrc.json b/.stylelintrc.json index 1a474d29..b42a3859 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -2,8 +2,11 @@ "extends": ["stylelint-config-standard", "stylelint-config-prettier"], "rules": { "custom-property-no-missing-var-function": true, - "length-zero-no-unit": [true, { - "ignore": ["custom-properties"] - }] + "length-zero-no-unit": [ + true, + { + "ignore": ["custom-properties"] + } + ] } } diff --git a/package-lock.json b/package-lock.json index 223e193c..0838e3cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,10 +35,11 @@ "@storybook/testing-library": "^0.1.0", "@storybook/web-components": "7.0.18", "@storybook/web-components-vite": "^7.0.18", + "@trivago/prettier-plugin-sort-imports": "^4.1.1", "@types/estree": "1.0.0", "@types/prettier": "^2.6.4", - "@typescript-eslint/eslint-plugin": "^5.18.0", - "@typescript-eslint/parser": "^5.18.0", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", "@web/dev-server-esbuild": "0.2.16", "@web/dev-server-import-maps": "^0.0.7", "@web/dev-server-rollup": "^0.3.17", @@ -52,16 +53,18 @@ "del-cli": "^5.0.0", "esbuild": "^0.17.16", "esbuild-plugin-lit-css": "^2.0.0", - "eslint": "^8.12.0", - "eslint-config-prettier": "^8.5.0", + "eslint": "^8.44.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-storybook": "^0.6.12", + "eslint-plugin-unused-imports": "^3.0.0", "globby": "^13.1.1", "husky": "^8.0.3", "lint-staged": "^13.1.2", "minimist": "^1.2.6", "npm-run-all": "^4.1.5", "pascal-case": "^3.1.2", - "prettier": "^2.0.4", + "prettier": "^2.8.8", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup-plugin-lit-css": "^4.0.0", @@ -77,6 +80,15 @@ "node": ">=16" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", @@ -3167,6 +3179,57 @@ "react": ">=16.8.0" } }, + "node_modules/@esbuild/android-arm": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.12.tgz", + "integrity": "sha512-LIxaNIQfkFZbTLb4+cX7dozHlAbAshhFE5PKdro0l+FnCpx1GDJaQ2WMcqm+ToXKMt8p8Uojk/MFRuGyz3V5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.12.tgz", + "integrity": "sha512-BMAlczRqC/LUt2P97E4apTBbkvS9JTJnp2DKFbCwpZ8vBvXVbNdqmvzW/OsdtI/+mGr+apkkpqGM8WecLkPgrA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.12.tgz", + "integrity": "sha512-zU5MyluNsykf5cOJ0LZZZjgAHbhPJ1cWfdH1ZXVMXxVMhEV0VZiZXQdwBBVvmvbF28EizeK7obG9fs+fpmS0eQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/darwin-arm64": { "version": "0.17.18", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.18.tgz", @@ -3183,6 +3246,312 @@ "node": ">=12" } }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.12.tgz", + "integrity": "sha512-ohqLPc7i67yunArPj1+/FeeJ7AgwAjHqKZ512ADk3WsE3FHU9l+m5aa7NdxXr0HmN1bjDlUslBjWNbFlD9y12Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.12.tgz", + "integrity": "sha512-GIIHtQXqgeOOqdG16a/A9N28GpkvjJnjYMhOnXVbn3EDJcoItdR58v/pGN31CHjyXDc8uCcRnFWmqaJt24AYJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.12.tgz", + "integrity": "sha512-zK0b9a1/0wZY+6FdOS3BpZcPc1kcx2G5yxxfEJtEUzVxI6n/FrC2Phsxj/YblPuBchhBZ/1wwn7AyEBUyNSa6g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.12.tgz", + "integrity": "sha512-y75OijvrBE/1XRrXq1jtrJfG26eHeMoqLJ2dwQNwviwTuTtHGCojsDO6BJNF8gU+3jTn1KzJEMETytwsFSvc+Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.12.tgz", + "integrity": "sha512-JKgG8Q/LL/9sw/iHHxQyVMoQYu3rU3+a5Z87DxC+wAu3engz+EmctIrV+FGOgI6gWG1z1+5nDDbXiRMGQZXqiw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.12.tgz", + "integrity": "sha512-yoRIAqc0B4lDIAAEFEIu9ttTRFV84iuAl0KNCN6MhKLxNPfzwCBvEMgwco2f71GxmpBcTtn7KdErueZaM2rEvw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.12.tgz", + "integrity": "sha512-qYgt3dHPVvf/MgbIBpJ4Sup/yb9DAopZ3a2JgMpNKIHUpOdnJ2eHBo/aQdnd8dJ21X/+sS58wxHtA9lEazYtXQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.12.tgz", + "integrity": "sha512-wHphlMLK4ufNOONqukELfVIbnGQJrHJ/mxZMMrP2jYrPgCRZhOtf0kC4yAXBwnfmULimV1qt5UJJOw4Kh13Yfg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.12.tgz", + "integrity": "sha512-TeN//1Ft20ZZW41+zDSdOI/Os1bEq5dbvBvYkberB7PHABbRcsteeoNVZFlI0YLpGdlBqohEpjrn06kv8heCJg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.12.tgz", + "integrity": "sha512-AgUebVS4DoAblBgiB2ACQ/8l4eGE5aWBb8ZXtkXHiET9mbj7GuWt3OnsIW/zX+XHJt2RYJZctbQ2S/mDjbp0UA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.12.tgz", + "integrity": "sha512-dJ3Rb3Ei2u/ysSXd6pzleGtfDdc2MuzKt8qc6ls8vreP1G3B7HInX3i7gXS4BGeVd24pp0yqyS7bJ5NHaI9ing==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.12.tgz", + "integrity": "sha512-OrNJMGQbPaVyHHcDF8ybNSwu7TDOfX8NGpXCbetwOSP6txOJiWlgQnRymfC9ocR1S0Y5PW0Wb1mV6pUddqmvmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.12.tgz", + "integrity": "sha512-55FzVCAiwE9FK8wWeCRuvjazNRJ1QqLCYGZVB6E8RuQuTeStSwotpSW4xoRGwp3a1wUsaVCdYcj5LGCASVJmMg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.12.tgz", + "integrity": "sha512-qnluf8rfb6Y5Lw2tirfK2quZOBbVqmwxut7GPCIJsM8lc4AEUj9L8y0YPdLaPK0TECt4IdyBdBD/KRFKorlK3g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.12.tgz", + "integrity": "sha512-+RkKpVQR7bICjTOPUpkTBTaJ4TFqQBX5Ywyd/HSdDkQGn65VPkTsR/pL4AMvuMWy+wnXgIl4EY6q4mVpJal8Kg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.12.tgz", + "integrity": "sha512-GNHuciv0mFM7ouzsU0+AwY+7eV4Mgo5WnbhfDCQGtpvOtD1vbOiRjPYG6dhmMoFyBjj+pNqQu2X+7DKn0KQ/Gw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.12.tgz", + "integrity": "sha512-kR8cezhYipbbypGkaqCTWIeu4zID17gamC8YTPXYtcN3E5BhhtTnwKBn9I0PJur/T6UVwIEGYzkffNL0lFvxEw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.12.tgz", + "integrity": "sha512-O0UYQVkvfM/jO8a4OwoV0mAKSJw+mjWTAd1MJd/1FCX6uiMdLmMRPK/w6e9OQ0ob2WGxzIm9va/KG0Ja4zIOgg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -3198,48 +3567,49 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/eslintrc": { - "version": "1.2.1", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", "dev": true, - "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.3.1", - "globals": "^13.9.0", + "espree": "^9.6.0", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" + "dev": true }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.13.0", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -3255,7 +3625,6 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -3263,6 +3632,15 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@esm-bundle/chai": { "version": "4.3.4", "dev": true, @@ -3311,24 +3689,37 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.9.5", + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" } }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, "node_modules/@humanwhocodes/object-schema": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/@import-maps/resolve": { "version": "1.0.1", @@ -6431,6 +6822,77 @@ "@testing-library/dom": ">=7.21.4" } }, + "node_modules/@trivago/prettier-plugin-sort-imports": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.1.1.tgz", + "integrity": "sha512-dQ2r2uzNr1x6pJsuh/8x0IRA3CBUB+pWEW3J/7N98axqt7SQSm+2fy0FLNXvXGg77xEDC7KHxJlHfLYyi7PDcw==", + "dev": true, + "dependencies": { + "@babel/generator": "7.17.7", + "@babel/parser": "^7.20.5", + "@babel/traverse": "7.17.3", + "@babel/types": "7.17.0", + "javascript-natural-sort": "0.7.1", + "lodash": "^4.17.21" + }, + "peerDependencies": { + "@vue/compiler-sfc": "3.x", + "prettier": "2.x" + }, + "peerDependenciesMeta": { + "@vue/compiler-sfc": { + "optional": true + } + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/generator": { + "version": "7.17.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz", + "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/traverse": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", + "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.3", + "@babel/types": "^7.17.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@tsconfig/node10": { "version": "1.0.8", "dev": true, @@ -6790,9 +7252,10 @@ "dev": true }, "node_modules/@types/json-schema": { - "version": "7.0.9", - "dev": true, - "license": "MIT" + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", + "dev": true }, "node_modules/@types/keygrip": { "version": "1.0.2", @@ -7111,30 +7574,35 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.0.0.tgz", + "integrity": "sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/type-utils": "5.18.0", - "@typescript-eslint/utils": "5.18.0", - "debug": "^4.3.2", - "functional-red-black-tree": "^1.0.1", - "ignore": "^5.1.8", - "regexpp": "^3.2.0", - "semver": "^7.3.5", - "tsutils": "^3.21.0" + "@eslint-community/regexpp": "^4.5.0", + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/type-utils": "6.0.0", + "@typescript-eslint/utils": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.5.0", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -7142,47 +7610,42 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "7.8.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.6", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^7.4.0" + "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">=10" } }, "node_modules/@typescript-eslint/parser": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.0.0.tgz", + "integrity": "sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/typescript-estree": "5.18.0", - "debug": "^4.3.2" + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/typescript-estree": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -7191,15 +7654,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.0.0.tgz", + "integrity": "sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/visitor-keys": "5.18.0" + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -7207,23 +7671,25 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.0.0.tgz", + "integrity": "sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "5.18.0", - "debug": "^4.3.2", - "tsutils": "^3.21.0" + "@typescript-eslint/typescript-estree": "6.0.0", + "@typescript-eslint/utils": "6.0.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -7232,11 +7698,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.0.0.tgz", + "integrity": "sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -7244,20 +7711,21 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.0.0.tgz", + "integrity": "sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/visitor-keys": "5.18.0", - "debug": "^4.3.2", - "globby": "^11.0.4", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4", + "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.5", - "tsutils": "^3.21.0" + "semver": "^7.5.0", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -7271,8 +7739,9 @@ }, "node_modules/@typescript-eslint/typescript-estree/node_modules/globby": { "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -7288,75 +7757,79 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { - "version": "7.8.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.6", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^7.4.0" + "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">=10" } }, "node_modules/@typescript-eslint/utils": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.0.0.tgz", + "integrity": "sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==", "dev": true, - "license": "MIT", "dependencies": { - "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/typescript-estree": "5.18.0", + "@eslint-community/eslint-utils": "^4.3.0", + "@types/json-schema": "^7.0.11", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/typescript-estree": "6.0.0", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" + "semver": "^7.5.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.0.0.tgz", + "integrity": "sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.18.0", - "eslint-visitor-keys": "^3.0.0" + "@typescript-eslint/types": "6.0.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "node_modules/@web/browser-logs": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/@web/browser-logs/-/browser-logs-0.2.5.tgz", @@ -8357,9 +8830,9 @@ } }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -8370,8 +8843,9 @@ }, "node_modules/acorn-jsx": { "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, - "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -10588,8 +11062,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/deepmerge": { "version": "4.2.2", @@ -11532,6 +12005,342 @@ "esbuild": ">=0.12 <1" } }, + "node_modules/esbuild/node_modules/@esbuild/android-arm": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.18.tgz", + "integrity": "sha512-EmwL+vUBZJ7mhFCs5lA4ZimpUH3WMAoqvOIYhVQwdIgSpHC8ImHdsRyhHAVxpDYUSm0lWvd63z0XH1IlImS2Qw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/android-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.18.tgz", + "integrity": "sha512-/iq0aK0eeHgSC3z55ucMAHO05OIqmQehiGay8eP5l/5l+iEr4EIbh4/MI8xD9qRFjqzgkc0JkX0LculNC9mXBw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/android-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.18.tgz", + "integrity": "sha512-x+0efYNBF3NPW2Xc5bFOSFW7tTXdAcpfEg2nXmxegm4mJuVeS+i109m/7HMiOQ6M12aVGGFlqJX3RhNdYM2lWg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/darwin-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.18.tgz", + "integrity": "sha512-Qq84ykvLvya3dO49wVC9FFCNUfSrQJLbxhoQk/TE1r6MjHo3sFF2tlJCwMjhkBVq3/ahUisj7+EpRSz0/+8+9A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/freebsd-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.18.tgz", + "integrity": "sha512-fw/ZfxfAzuHfaQeMDhbzxp9mc+mHn1Y94VDHFHjGvt2Uxl10mT4CDavHm+/L9KG441t1QdABqkVYwakMUeyLRA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/freebsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.18.tgz", + "integrity": "sha512-FQFbRtTaEi8ZBi/A6kxOC0V0E9B/97vPdYjY9NdawyLd4Qk5VD5g2pbWN2VR1c0xhzcJm74HWpObPszWC+qTew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-arm": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.18.tgz", + "integrity": "sha512-jW+UCM40LzHcouIaqv3e/oRs0JM76JfhHjCavPxMUti7VAPh8CaGSlS7cmyrdpzSk7A+8f0hiedHqr/LMnfijg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.18.tgz", + "integrity": "sha512-R7pZvQZFOY2sxUG8P6A21eq6q+eBv7JPQYIybHVf1XkQYC+lT7nDBdC7wWKTrbvMXKRaGudp/dzZCwL/863mZQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-ia32": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.18.tgz", + "integrity": "sha512-ygIMc3I7wxgXIxk6j3V00VlABIjq260i967Cp9BNAk5pOOpIXmd1RFQJQX9Io7KRsthDrQYrtcx7QCof4o3ZoQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-loong64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.18.tgz", + "integrity": "sha512-bvPG+MyFs5ZlwYclCG1D744oHk1Pv7j8psF5TfYx7otCVmcJsEXgFEhQkbhNW8otDHL1a2KDINW20cfCgnzgMQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-mips64el": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.18.tgz", + "integrity": "sha512-oVqckATOAGuiUOa6wr8TXaVPSa+6IwVJrGidmNZS1cZVx0HqkTMkqFGD2HIx9H1RvOwFeWYdaYbdY6B89KUMxA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-ppc64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.18.tgz", + "integrity": "sha512-3dLlQO+b/LnQNxgH4l9rqa2/IwRJVN9u/bK63FhOPB4xqiRqlQAU0qDU3JJuf0BmaH0yytTBdoSBHrb2jqc5qQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-riscv64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.18.tgz", + "integrity": "sha512-/x7leOyDPjZV3TcsdfrSI107zItVnsX1q2nho7hbbQoKnmoeUWjs+08rKKt4AUXju7+3aRZSsKrJtaRmsdL1xA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-s390x": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.18.tgz", + "integrity": "sha512-cX0I8Q9xQkL/6F5zWdYmVf5JSQt+ZfZD2bJudZrWD+4mnUvoZ3TDDXtDX2mUaq6upMFv9FlfIh4Gfun0tbGzuw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.18.tgz", + "integrity": "sha512-66RmRsPlYy4jFl0vG80GcNRdirx4nVWAzJmXkevgphP1qf4dsLQCpSKGM3DUQCojwU1hnepI63gNZdrr02wHUA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/netbsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.18.tgz", + "integrity": "sha512-95IRY7mI2yrkLlTLb1gpDxdC5WLC5mZDi+kA9dmM5XAGxCME0F8i4bYH4jZreaJ6lIZ0B8hTrweqG1fUyW7jbg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/openbsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.18.tgz", + "integrity": "sha512-WevVOgcng+8hSZ4Q3BKL3n1xTv5H6Nb53cBrtzzEjDbbnOmucEVcZeGCsCOi9bAOcDYEeBZbD2SJNBxlfP3qiA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/sunos-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.18.tgz", + "integrity": "sha512-Rzf4QfQagnwhQXVBS3BYUlxmEbcV7MY+BH5vfDZekU5eYpcffHSyjU8T0xucKVuOcdCsMo+Ur5wmgQJH2GfNrg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.18.tgz", + "integrity": "sha512-Kb3Ko/KKaWhjeAm2YoT/cNZaHaD1Yk/pa3FTsmqo9uFh1D1Rfco7BBLIPdDOozrObj2sahslFuAQGvWbgWldAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-ia32": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.18.tgz", + "integrity": "sha512-0/xUMIdkVHwkvxfbd5+lfG7mHOf2FRrxNbPiKWg9C4fFrB8H0guClmaM3BFiRUYrznVoyxTIyC/Ou2B7QQSwmw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.18.tgz", + "integrity": "sha512-qU25Ma1I3NqTSHJUOKi9sAH1/Mzuvlke0ioMJRthLXKm7JiSKVwFghlGbDLOO2sARECGhja4xYfRAZNPAkooYg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -11560,45 +12369,50 @@ } }, "node_modules/eslint": { - "version": "8.12.0", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", "dev": true, - "license": "MIT", "dependencies": { - "@eslint/eslintrc": "^1.2.1", - "@humanwhocodes/config-array": "^0.9.2", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^6.0.1", - "globals": "^13.6.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "text-table": "^0.2.0" }, "bin": { "eslint": "bin/eslint.js" @@ -11611,11 +12425,10 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", "dev": true, - "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -11623,6 +12436,27 @@ "eslint": ">=7.0.0" } }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, "node_modules/eslint-plugin-storybook": { "version": "0.6.12", "resolved": "https://registry.npmjs.org/eslint-plugin-storybook/-/eslint-plugin-storybook-0.6.12.tgz", @@ -11750,18 +12584,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-storybook/node_modules/eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint-plugin-storybook/node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -11797,6 +12619,36 @@ "node": ">=10" } }, + "node_modules/eslint-plugin-unused-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.0.0.tgz", + "integrity": "sha512-sduiswLJfZHeeBJ+MQaG+xYzSWdRXoSw61DpU13mzWumCkR0ufD0HmO4kdNokjrkluMHpj/7PJeN35pgbhW3kw==", + "dev": true, + "dependencies": { + "eslint-rule-composer": "^0.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^6.0.0", + "eslint": "^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, + "node_modules/eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -11821,33 +12673,16 @@ "node": ">=4.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10" + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/ansi-styles": { @@ -11904,27 +12739,19 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/glob-parent": { @@ -11941,9 +12768,10 @@ } }, "node_modules/eslint/node_modules/globals": { - "version": "13.13.0", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -11977,24 +12805,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/eslint/node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/eslint/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -12009,26 +12819,20 @@ } }, "node_modules/espree": { - "version": "9.3.1", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.7.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^3.3.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esprima": { @@ -12045,11 +12849,10 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -12542,12 +13345,17 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, "node_modules/fast-glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -12570,8 +13378,7 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/fastest-levenshtein": { "version": "1.0.16", @@ -13066,13 +13873,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true, - "license": "MIT" - }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -13428,6 +14228,12 @@ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "node_modules/gunzip-maybe": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/gunzip-maybe/-/gunzip-maybe-1.4.2.tgz", @@ -13853,11 +14659,10 @@ "license": "BSD-3-Clause" }, "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } @@ -14932,6 +15737,12 @@ "node": ">=8" } }, + "node_modules/javascript-natural-sort": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz", + "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==", + "dev": true + }, "node_modules/jest-diff": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.3.tgz", @@ -15845,7 +16656,6 @@ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -18185,6 +18995,12 @@ "dev": true, "license": "MIT" }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -18751,6 +19567,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -19247,9 +20080,9 @@ } }, "node_modules/postcss": { - "version": "8.4.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", - "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", + "version": "8.4.26", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.26.tgz", + "integrity": "sha512-jrXHFF8iTloAenySjM/ob3gSj7pCu0Ji49hnjqzsgSRa50hkWCKD0HQ+gMNJkW38jBI68MpAAg7ZWwHwX8NMMw==", "dev": true, "funding": [ { @@ -19331,15 +20164,14 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/prettier": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", - "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -19351,6 +20183,18 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", @@ -20263,19 +21107,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/regexpu-core": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", @@ -22580,6 +23411,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/ts-api-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.1.tgz", + "integrity": "sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-dedent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", @@ -22677,9 +23520,9 @@ "license": "MIT" }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", "dev": true }, "node_modules/tsscmp": { @@ -22729,7 +23572,6 @@ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -23352,15 +24194,15 @@ } }, "node_modules/vite": { - "version": "4.3.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", - "integrity": "sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.4.tgz", + "integrity": "sha512-4mvsTxjkveWrKDJI70QmelfVqTm+ihFAb6+xf4sjEU2TmUCTlVX87tmg/QooPEMQb/lM9qGHT99ebqPziEd3wg==", "dev": true, "peer": true, "dependencies": { - "esbuild": "^0.17.5", - "postcss": "^8.4.23", - "rollup": "^3.21.0" + "esbuild": "^0.18.10", + "postcss": "^8.4.25", + "rollup": "^3.25.2" }, "bin": { "vite": "bin/vite.js" @@ -23368,12 +24210,16 @@ "engines": { "node": "^14.18.0 || >=16.0.0" }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, "optionalDependencies": { "fsevents": "~2.3.2" }, "peerDependencies": { "@types/node": ">= 14", "less": "*", + "lightningcss": "^1.21.0", "sass": "*", "stylus": "*", "sugarss": "*", @@ -23386,6 +24232,9 @@ "less": { "optional": true }, + "lightningcss": { + "optional": true + }, "sass": { "optional": true }, @@ -23400,10 +24249,65 @@ } } }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.12.tgz", + "integrity": "sha512-zUZMep7YONnp6954QOOwEBwFX9svlKd3ov6PkxKd53LGTHsp/gy7vHaPGhhjBmEpqXEXShi6dddjIkmd+NgMsA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.12.tgz", + "integrity": "sha512-XuOVLDdtsDslXStStduT41op21Ytmf4/BDS46aa3xPJ7X5h2eMWBF1oAe3QjUH3bDksocNXgzGUZ7XHIBya6Tg==", + "dev": true, + "hasInstallScript": true, + "peer": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.12", + "@esbuild/android-arm64": "0.18.12", + "@esbuild/android-x64": "0.18.12", + "@esbuild/darwin-arm64": "0.18.12", + "@esbuild/darwin-x64": "0.18.12", + "@esbuild/freebsd-arm64": "0.18.12", + "@esbuild/freebsd-x64": "0.18.12", + "@esbuild/linux-arm": "0.18.12", + "@esbuild/linux-arm64": "0.18.12", + "@esbuild/linux-ia32": "0.18.12", + "@esbuild/linux-loong64": "0.18.12", + "@esbuild/linux-mips64el": "0.18.12", + "@esbuild/linux-ppc64": "0.18.12", + "@esbuild/linux-riscv64": "0.18.12", + "@esbuild/linux-s390x": "0.18.12", + "@esbuild/linux-x64": "0.18.12", + "@esbuild/netbsd-x64": "0.18.12", + "@esbuild/openbsd-x64": "0.18.12", + "@esbuild/sunos-x64": "0.18.12", + "@esbuild/win32-arm64": "0.18.12", + "@esbuild/win32-ia32": "0.18.12", + "@esbuild/win32-x64": "0.18.12" + } + }, "node_modules/vite/node_modules/rollup": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.23.0.tgz", - "integrity": "sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ==", + "version": "3.26.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.2.tgz", + "integrity": "sha512-6umBIGVz93er97pMgQO08LuH3m6PUb3jlDUUGFsNJB6VgTCUaDFpupf5JfU30529m/UKOgmiX+uY6Sx8cOYpLA==", "dev": true, "peer": true, "bin": { @@ -23841,16 +24745,6 @@ "node": ">=8" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", @@ -24083,6 +24977,12 @@ } }, "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, "@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", @@ -26245,6 +27145,30 @@ "dev": true, "requires": {} }, + "@esbuild/android-arm": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.12.tgz", + "integrity": "sha512-LIxaNIQfkFZbTLb4+cX7dozHlAbAshhFE5PKdro0l+FnCpx1GDJaQ2WMcqm+ToXKMt8p8Uojk/MFRuGyz3V5Sw==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/android-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.12.tgz", + "integrity": "sha512-BMAlczRqC/LUt2P97E4apTBbkvS9JTJnp2DKFbCwpZ8vBvXVbNdqmvzW/OsdtI/+mGr+apkkpqGM8WecLkPgrA==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/android-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.12.tgz", + "integrity": "sha512-zU5MyluNsykf5cOJ0LZZZjgAHbhPJ1cWfdH1ZXVMXxVMhEV0VZiZXQdwBBVvmvbF28EizeK7obG9fs+fpmS0eQ==", + "dev": true, + "optional": true, + "peer": true + }, "@esbuild/darwin-arm64": { "version": "0.17.18", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.18.tgz", @@ -26252,6 +27176,150 @@ "dev": true, "optional": true }, + "@esbuild/darwin-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.12.tgz", + "integrity": "sha512-ohqLPc7i67yunArPj1+/FeeJ7AgwAjHqKZ512ADk3WsE3FHU9l+m5aa7NdxXr0HmN1bjDlUslBjWNbFlD9y12Q==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.12.tgz", + "integrity": "sha512-GIIHtQXqgeOOqdG16a/A9N28GpkvjJnjYMhOnXVbn3EDJcoItdR58v/pGN31CHjyXDc8uCcRnFWmqaJt24AYJg==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/freebsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.12.tgz", + "integrity": "sha512-zK0b9a1/0wZY+6FdOS3BpZcPc1kcx2G5yxxfEJtEUzVxI6n/FrC2Phsxj/YblPuBchhBZ/1wwn7AyEBUyNSa6g==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-arm": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.12.tgz", + "integrity": "sha512-y75OijvrBE/1XRrXq1jtrJfG26eHeMoqLJ2dwQNwviwTuTtHGCojsDO6BJNF8gU+3jTn1KzJEMETytwsFSvc+Q==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.12.tgz", + "integrity": "sha512-JKgG8Q/LL/9sw/iHHxQyVMoQYu3rU3+a5Z87DxC+wAu3engz+EmctIrV+FGOgI6gWG1z1+5nDDbXiRMGQZXqiw==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-ia32": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.12.tgz", + "integrity": "sha512-yoRIAqc0B4lDIAAEFEIu9ttTRFV84iuAl0KNCN6MhKLxNPfzwCBvEMgwco2f71GxmpBcTtn7KdErueZaM2rEvw==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-loong64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.12.tgz", + "integrity": "sha512-qYgt3dHPVvf/MgbIBpJ4Sup/yb9DAopZ3a2JgMpNKIHUpOdnJ2eHBo/aQdnd8dJ21X/+sS58wxHtA9lEazYtXQ==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-mips64el": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.12.tgz", + "integrity": "sha512-wHphlMLK4ufNOONqukELfVIbnGQJrHJ/mxZMMrP2jYrPgCRZhOtf0kC4yAXBwnfmULimV1qt5UJJOw4Kh13Yfg==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-ppc64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.12.tgz", + "integrity": "sha512-TeN//1Ft20ZZW41+zDSdOI/Os1bEq5dbvBvYkberB7PHABbRcsteeoNVZFlI0YLpGdlBqohEpjrn06kv8heCJg==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-riscv64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.12.tgz", + "integrity": "sha512-AgUebVS4DoAblBgiB2ACQ/8l4eGE5aWBb8ZXtkXHiET9mbj7GuWt3OnsIW/zX+XHJt2RYJZctbQ2S/mDjbp0UA==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-s390x": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.12.tgz", + "integrity": "sha512-dJ3Rb3Ei2u/ysSXd6pzleGtfDdc2MuzKt8qc6ls8vreP1G3B7HInX3i7gXS4BGeVd24pp0yqyS7bJ5NHaI9ing==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/linux-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.12.tgz", + "integrity": "sha512-OrNJMGQbPaVyHHcDF8ybNSwu7TDOfX8NGpXCbetwOSP6txOJiWlgQnRymfC9ocR1S0Y5PW0Wb1mV6pUddqmvmQ==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/netbsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.12.tgz", + "integrity": "sha512-55FzVCAiwE9FK8wWeCRuvjazNRJ1QqLCYGZVB6E8RuQuTeStSwotpSW4xoRGwp3a1wUsaVCdYcj5LGCASVJmMg==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/openbsd-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.12.tgz", + "integrity": "sha512-qnluf8rfb6Y5Lw2tirfK2quZOBbVqmwxut7GPCIJsM8lc4AEUj9L8y0YPdLaPK0TECt4IdyBdBD/KRFKorlK3g==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/sunos-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.12.tgz", + "integrity": "sha512-+RkKpVQR7bICjTOPUpkTBTaJ4TFqQBX5Ywyd/HSdDkQGn65VPkTsR/pL4AMvuMWy+wnXgIl4EY6q4mVpJal8Kg==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/win32-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.12.tgz", + "integrity": "sha512-GNHuciv0mFM7ouzsU0+AwY+7eV4Mgo5WnbhfDCQGtpvOtD1vbOiRjPYG6dhmMoFyBjj+pNqQu2X+7DKn0KQ/Gw==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/win32-ia32": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.12.tgz", + "integrity": "sha512-kR8cezhYipbbypGkaqCTWIeu4zID17gamC8YTPXYtcN3E5BhhtTnwKBn9I0PJur/T6UVwIEGYzkffNL0lFvxEw==", + "dev": true, + "optional": true, + "peer": true + }, + "@esbuild/win32-x64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.12.tgz", + "integrity": "sha512-O0UYQVkvfM/jO8a4OwoV0mAKSJw+mjWTAd1MJd/1FCX6uiMdLmMRPK/w6e9OQ0ob2WGxzIm9va/KG0Ja4zIOgg==", + "dev": true, + "optional": true, + "peer": true + }, "@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -26259,28 +27327,28 @@ "dev": true, "requires": { "eslint-visitor-keys": "^3.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", - "dev": true - } } }, + "@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true + }, "@eslint/eslintrc": { - "version": "1.2.1", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.3.1", - "globals": "^13.9.0", + "espree": "^9.6.0", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "dependencies": { @@ -26291,7 +27359,9 @@ "dev": true }, "globals": { - "version": "13.13.0", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -26308,6 +27378,12 @@ } } }, + "@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "dev": true + }, "@esm-bundle/chai": { "version": "4.3.4", "dev": true, @@ -26353,14 +27429,22 @@ } }, "@humanwhocodes/config-array": { - "version": "0.9.5", + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", "dev": true, "requires": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" } }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, "@humanwhocodes/object-schema": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", @@ -28628,68 +29712,123 @@ } } }, - "@testing-library/jest-dom": { - "version": "5.16.4", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.4.tgz", - "integrity": "sha512-Gy+IoFutbMQcky0k+bqqumXZ1cTGswLsFqmNLzNdSKkU9KGV2u9oXhukCbbJ9/LRPKiqwxEE8VpV/+YZlfkPUA==", + "@testing-library/jest-dom": { + "version": "5.16.4", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.4.tgz", + "integrity": "sha512-Gy+IoFutbMQcky0k+bqqumXZ1cTGswLsFqmNLzNdSKkU9KGV2u9oXhukCbbJ9/LRPKiqwxEE8VpV/+YZlfkPUA==", + "dev": true, + "requires": { + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/user-event": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", + "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", "dev": true, "requires": { - "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^5.0.0", - "chalk": "^3.0.0", - "css": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", - "lodash": "^4.17.15", - "redent": "^3.0.0" + "@babel/runtime": "^7.12.5" + } + }, + "@trivago/prettier-plugin-sort-imports": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.1.1.tgz", + "integrity": "sha512-dQ2r2uzNr1x6pJsuh/8x0IRA3CBUB+pWEW3J/7N98axqt7SQSm+2fy0FLNXvXGg77xEDC7KHxJlHfLYyi7PDcw==", + "dev": true, + "requires": { + "@babel/generator": "7.17.7", + "@babel/parser": "^7.20.5", + "@babel/traverse": "7.17.3", + "@babel/types": "7.17.0", + "javascript-natural-sort": "0.7.1", + "lodash": "^4.17.21" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@babel/generator": { + "version": "7.17.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz", + "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" } }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@babel/traverse": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", + "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.3", + "@babel/types": "^7.17.0", + "debug": "^4.1.0", + "globals": "^11.1.0" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" } } } }, - "@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "dev": true, - "requires": { - "@babel/runtime": "^7.12.5" - } - }, "@tsconfig/node10": { "version": "1.0.8", "dev": true @@ -29022,7 +30161,9 @@ } }, "@types/json-schema": { - "version": "7.0.9", + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", "dev": true }, "@types/keygrip": { @@ -29321,79 +30462,97 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.0.0.tgz", + "integrity": "sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/type-utils": "5.18.0", - "@typescript-eslint/utils": "5.18.0", - "debug": "^4.3.2", - "functional-red-black-tree": "^1.0.1", - "ignore": "^5.1.8", - "regexpp": "^3.2.0", - "semver": "^7.3.5", - "tsutils": "^3.21.0" + "@eslint-community/regexpp": "^4.5.0", + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/type-utils": "6.0.0", + "@typescript-eslint/utils": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.5.0", + "ts-api-utils": "^1.0.1" }, "dependencies": { - "lru-cache": { - "version": "7.8.0", - "dev": true - }, "semver": { - "version": "7.3.6", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { - "lru-cache": "^7.4.0" + "lru-cache": "^6.0.0" } } } }, "@typescript-eslint/parser": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.0.0.tgz", + "integrity": "sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/typescript-estree": "5.18.0", - "debug": "^4.3.2" + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/typescript-estree": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.0.0.tgz", + "integrity": "sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/visitor-keys": "5.18.0" + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0" } }, "@typescript-eslint/type-utils": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.0.0.tgz", + "integrity": "sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==", "dev": true, "requires": { - "@typescript-eslint/utils": "5.18.0", - "debug": "^4.3.2", - "tsutils": "^3.21.0" + "@typescript-eslint/typescript-estree": "6.0.0", + "@typescript-eslint/utils": "6.0.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" } }, "@typescript-eslint/types": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.0.0.tgz", + "integrity": "sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.0.0.tgz", + "integrity": "sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/visitor-keys": "5.18.0", - "debug": "^4.3.2", - "globby": "^11.0.4", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/visitor-keys": "6.0.0", + "debug": "^4.3.4", + "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.5", - "tsutils": "^3.21.0" + "semver": "^7.5.0", + "ts-api-utils": "^1.0.1" }, "dependencies": { "globby": { "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", @@ -29404,43 +30563,52 @@ "slash": "^3.0.0" } }, - "lru-cache": { - "version": "7.8.0", - "dev": true - }, "semver": { - "version": "7.3.6", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { - "lru-cache": "^7.4.0" + "lru-cache": "^6.0.0" } } } }, "@typescript-eslint/utils": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.0.0.tgz", + "integrity": "sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==", "dev": true, "requires": { - "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.18.0", - "@typescript-eslint/types": "5.18.0", - "@typescript-eslint/typescript-estree": "5.18.0", + "@eslint-community/eslint-utils": "^4.3.0", + "@types/json-schema": "^7.0.11", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "6.0.0", + "@typescript-eslint/types": "6.0.0", + "@typescript-eslint/typescript-estree": "6.0.0", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" + "semver": "^7.5.0" + }, + "dependencies": { + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } } }, "@typescript-eslint/visitor-keys": { - "version": "5.18.0", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.0.0.tgz", + "integrity": "sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.18.0", - "eslint-visitor-keys": "^3.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.3.0", - "dev": true - } + "@typescript-eslint/types": "6.0.0", + "eslint-visitor-keys": "^3.4.1" } }, "@web/browser-logs": { @@ -30215,13 +31383,15 @@ } }, "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true }, "acorn-jsx": { "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "requires": {} }, @@ -32470,6 +33640,155 @@ "@esbuild/win32-arm64": "0.17.18", "@esbuild/win32-ia32": "0.17.18", "@esbuild/win32-x64": "0.17.18" + }, + "dependencies": { + "@esbuild/android-arm": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.18.tgz", + "integrity": "sha512-EmwL+vUBZJ7mhFCs5lA4ZimpUH3WMAoqvOIYhVQwdIgSpHC8ImHdsRyhHAVxpDYUSm0lWvd63z0XH1IlImS2Qw==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.18.tgz", + "integrity": "sha512-/iq0aK0eeHgSC3z55ucMAHO05OIqmQehiGay8eP5l/5l+iEr4EIbh4/MI8xD9qRFjqzgkc0JkX0LculNC9mXBw==", + "dev": true, + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.18.tgz", + "integrity": "sha512-x+0efYNBF3NPW2Xc5bFOSFW7tTXdAcpfEg2nXmxegm4mJuVeS+i109m/7HMiOQ6M12aVGGFlqJX3RhNdYM2lWg==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.18.tgz", + "integrity": "sha512-Qq84ykvLvya3dO49wVC9FFCNUfSrQJLbxhoQk/TE1r6MjHo3sFF2tlJCwMjhkBVq3/ahUisj7+EpRSz0/+8+9A==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.18.tgz", + "integrity": "sha512-fw/ZfxfAzuHfaQeMDhbzxp9mc+mHn1Y94VDHFHjGvt2Uxl10mT4CDavHm+/L9KG441t1QdABqkVYwakMUeyLRA==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.18.tgz", + "integrity": "sha512-FQFbRtTaEi8ZBi/A6kxOC0V0E9B/97vPdYjY9NdawyLd4Qk5VD5g2pbWN2VR1c0xhzcJm74HWpObPszWC+qTew==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.18.tgz", + "integrity": "sha512-jW+UCM40LzHcouIaqv3e/oRs0JM76JfhHjCavPxMUti7VAPh8CaGSlS7cmyrdpzSk7A+8f0hiedHqr/LMnfijg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.18.tgz", + "integrity": "sha512-R7pZvQZFOY2sxUG8P6A21eq6q+eBv7JPQYIybHVf1XkQYC+lT7nDBdC7wWKTrbvMXKRaGudp/dzZCwL/863mZQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.18.tgz", + "integrity": "sha512-ygIMc3I7wxgXIxk6j3V00VlABIjq260i967Cp9BNAk5pOOpIXmd1RFQJQX9Io7KRsthDrQYrtcx7QCof4o3ZoQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.18.tgz", + "integrity": "sha512-bvPG+MyFs5ZlwYclCG1D744oHk1Pv7j8psF5TfYx7otCVmcJsEXgFEhQkbhNW8otDHL1a2KDINW20cfCgnzgMQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.18.tgz", + "integrity": "sha512-oVqckATOAGuiUOa6wr8TXaVPSa+6IwVJrGidmNZS1cZVx0HqkTMkqFGD2HIx9H1RvOwFeWYdaYbdY6B89KUMxA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.18.tgz", + "integrity": "sha512-3dLlQO+b/LnQNxgH4l9rqa2/IwRJVN9u/bK63FhOPB4xqiRqlQAU0qDU3JJuf0BmaH0yytTBdoSBHrb2jqc5qQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.18.tgz", + "integrity": "sha512-/x7leOyDPjZV3TcsdfrSI107zItVnsX1q2nho7hbbQoKnmoeUWjs+08rKKt4AUXju7+3aRZSsKrJtaRmsdL1xA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.18.tgz", + "integrity": "sha512-cX0I8Q9xQkL/6F5zWdYmVf5JSQt+ZfZD2bJudZrWD+4mnUvoZ3TDDXtDX2mUaq6upMFv9FlfIh4Gfun0tbGzuw==", + "dev": true, + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.18.tgz", + "integrity": "sha512-66RmRsPlYy4jFl0vG80GcNRdirx4nVWAzJmXkevgphP1qf4dsLQCpSKGM3DUQCojwU1hnepI63gNZdrr02wHUA==", + "dev": true, + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.18.tgz", + "integrity": "sha512-95IRY7mI2yrkLlTLb1gpDxdC5WLC5mZDi+kA9dmM5XAGxCME0F8i4bYH4jZreaJ6lIZ0B8hTrweqG1fUyW7jbg==", + "dev": true, + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.18.tgz", + "integrity": "sha512-WevVOgcng+8hSZ4Q3BKL3n1xTv5H6Nb53cBrtzzEjDbbnOmucEVcZeGCsCOi9bAOcDYEeBZbD2SJNBxlfP3qiA==", + "dev": true, + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.18.tgz", + "integrity": "sha512-Rzf4QfQagnwhQXVBS3BYUlxmEbcV7MY+BH5vfDZekU5eYpcffHSyjU8T0xucKVuOcdCsMo+Ur5wmgQJH2GfNrg==", + "dev": true, + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.18.tgz", + "integrity": "sha512-Kb3Ko/KKaWhjeAm2YoT/cNZaHaD1Yk/pa3FTsmqo9uFh1D1Rfco7BBLIPdDOozrObj2sahslFuAQGvWbgWldAg==", + "dev": true, + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.18.tgz", + "integrity": "sha512-0/xUMIdkVHwkvxfbd5+lfG7mHOf2FRrxNbPiKWg9C4fFrB8H0guClmaM3BFiRUYrznVoyxTIyC/Ou2B7QQSwmw==", + "dev": true, + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.17.18", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.18.tgz", + "integrity": "sha512-qU25Ma1I3NqTSHJUOKi9sAH1/Mzuvlke0ioMJRthLXKm7JiSKVwFghlGbDLOO2sARECGhja4xYfRAZNPAkooYg==", + "dev": true, + "optional": true + } } }, "esbuild-plugin-alias": { @@ -32515,44 +33834,50 @@ "dev": true }, "eslint": { - "version": "8.12.0", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.2.1", - "@humanwhocodes/config-array": "^0.9.2", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^6.0.1", - "globals": "^13.6.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "text-table": "^0.2.0" }, "dependencies": { "ansi-styles": { @@ -32587,21 +33912,15 @@ "dev": true }, "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", "dev": true, "requires": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - }, "glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -32612,7 +33931,9 @@ } }, "globals": { - "version": "13.13.0", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -32633,20 +33954,6 @@ "argparse": "^2.0.1" } }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -32659,12 +33966,21 @@ } }, "eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", "dev": true, "requires": {} }, + "eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, "eslint-plugin-storybook": { "version": "0.6.12", "resolved": "https://registry.npmjs.org/eslint-plugin-storybook/-/eslint-plugin-storybook-0.6.12.tgz", @@ -32743,12 +34059,6 @@ "eslint-visitor-keys": "^3.3.0" } }, - "eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", - "dev": true - }, "globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -32774,6 +34084,21 @@ } } }, + "eslint-plugin-unused-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.0.0.tgz", + "integrity": "sha512-sduiswLJfZHeeBJ+MQaG+xYzSWdRXoSw61DpU13mzWumCkR0ufD0HmO4kdNokjrkluMHpj/7PJeN35pgbhW3kw==", + "dev": true, + "requires": { + "eslint-rule-composer": "^0.3.0" + } + }, + "eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -32792,36 +34117,21 @@ } } }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - } - }, "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true }, "espree": { - "version": "9.3.1", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", "dev": true, "requires": { - "acorn": "^8.7.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^3.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - } + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" } }, "esprima": { @@ -32831,9 +34141,9 @@ "dev": true }, "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "requires": { "estraverse": "^5.1.0" @@ -33202,10 +34512,16 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, + "fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, "fast-glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -33600,12 +34916,6 @@ "functions-have-names": "^1.2.2" } }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, "functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -33856,6 +35166,12 @@ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "gunzip-maybe": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/gunzip-maybe/-/gunzip-maybe-1.4.2.tgz", @@ -34154,9 +35470,9 @@ "dev": true }, "ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true }, "import-fresh": { @@ -34870,6 +36186,12 @@ } } }, + "javascript-natural-sort": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz", + "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==", + "dev": true + }, "jest-diff": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.3.tgz", @@ -37198,6 +38520,12 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, "negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -37606,6 +38934,20 @@ "is-wsl": "^2.2.0" } }, + "optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "requires": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + } + }, "ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -37967,9 +39309,9 @@ "dev": true }, "postcss": { - "version": "8.4.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", - "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", + "version": "8.4.26", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.26.tgz", + "integrity": "sha512-jrXHFF8iTloAenySjM/ob3gSj7pCu0Ji49hnjqzsgSRa50hkWCKD0HQ+gMNJkW38jBI68MpAAg7ZWwHwX8NMMw==", "dev": true, "requires": { "nanoid": "^3.3.6", @@ -38019,11 +39361,20 @@ "dev": true }, "prettier": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", - "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "requires": { + "fast-diff": "^1.1.2" + } + }, "pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", @@ -38685,12 +40036,6 @@ "functions-have-names": "^1.2.2" } }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, "regexpu-core": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", @@ -40427,6 +41772,13 @@ "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", "dev": true }, + "ts-api-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.1.tgz", + "integrity": "sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==", + "dev": true, + "requires": {} + }, "ts-dedent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", @@ -40488,9 +41840,9 @@ "dev": true }, "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", "dev": true }, "tsscmp": { @@ -40960,22 +42312,61 @@ } }, "vite": { - "version": "4.3.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", - "integrity": "sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.4.tgz", + "integrity": "sha512-4mvsTxjkveWrKDJI70QmelfVqTm+ihFAb6+xf4sjEU2TmUCTlVX87tmg/QooPEMQb/lM9qGHT99ebqPziEd3wg==", "dev": true, "peer": true, "requires": { - "esbuild": "^0.17.5", + "esbuild": "^0.18.10", "fsevents": "~2.3.2", - "postcss": "^8.4.23", - "rollup": "^3.21.0" + "postcss": "^8.4.25", + "rollup": "^3.25.2" }, "dependencies": { + "@esbuild/darwin-arm64": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.12.tgz", + "integrity": "sha512-zUZMep7YONnp6954QOOwEBwFX9svlKd3ov6PkxKd53LGTHsp/gy7vHaPGhhjBmEpqXEXShi6dddjIkmd+NgMsA==", + "dev": true, + "optional": true, + "peer": true + }, + "esbuild": { + "version": "0.18.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.12.tgz", + "integrity": "sha512-XuOVLDdtsDslXStStduT41op21Ytmf4/BDS46aa3xPJ7X5h2eMWBF1oAe3QjUH3bDksocNXgzGUZ7XHIBya6Tg==", + "dev": true, + "peer": true, + "requires": { + "@esbuild/android-arm": "0.18.12", + "@esbuild/android-arm64": "0.18.12", + "@esbuild/android-x64": "0.18.12", + "@esbuild/darwin-arm64": "0.18.12", + "@esbuild/darwin-x64": "0.18.12", + "@esbuild/freebsd-arm64": "0.18.12", + "@esbuild/freebsd-x64": "0.18.12", + "@esbuild/linux-arm": "0.18.12", + "@esbuild/linux-arm64": "0.18.12", + "@esbuild/linux-ia32": "0.18.12", + "@esbuild/linux-loong64": "0.18.12", + "@esbuild/linux-mips64el": "0.18.12", + "@esbuild/linux-ppc64": "0.18.12", + "@esbuild/linux-riscv64": "0.18.12", + "@esbuild/linux-s390x": "0.18.12", + "@esbuild/linux-x64": "0.18.12", + "@esbuild/netbsd-x64": "0.18.12", + "@esbuild/openbsd-x64": "0.18.12", + "@esbuild/sunos-x64": "0.18.12", + "@esbuild/win32-arm64": "0.18.12", + "@esbuild/win32-ia32": "0.18.12", + "@esbuild/win32-x64": "0.18.12" + } + }, "rollup": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.23.0.tgz", - "integrity": "sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ==", + "version": "3.26.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.2.tgz", + "integrity": "sha512-6umBIGVz93er97pMgQO08LuH3m6PUb3jlDUUGFsNJB6VgTCUaDFpupf5JfU30529m/UKOgmiX+uY6Sx8cOYpLA==", "dev": true, "peer": true, "requires": { @@ -41305,12 +42696,6 @@ "string-width": "^4.0.0" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, "wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", diff --git a/package.json b/package.json index c94cacc0..c81581d2 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,11 @@ "storybook:dev": "storybook dev -p 1994", "lint": "npm-run-all -s lint:*", "lint:tsc": "tsc --noEmit", - "lint:eslint": "eslint .", + "lint:eslint": "eslint src", "lint:style": "stylelint src/**/*.css", + "lint:prettier": "prettier --check src", "format": "npm-run-all -s format:*", - "format:code": "eslint --fix ./src && prettier --write ./src", + "format:code": "eslint --fix ./src & prettier --write ./src", "fix": "npm run format && npm run lint", "ci": "rm -rf node_modules && npm install --frozen-lockfile", "clean": "npm-run-all -s clean:*", @@ -90,10 +91,11 @@ "@storybook/testing-library": "^0.1.0", "@storybook/web-components": "7.0.18", "@storybook/web-components-vite": "^7.0.18", + "@trivago/prettier-plugin-sort-imports": "^4.1.1", "@types/estree": "1.0.0", "@types/prettier": "^2.6.4", - "@typescript-eslint/eslint-plugin": "^5.18.0", - "@typescript-eslint/parser": "^5.18.0", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", "@web/dev-server-esbuild": "0.2.16", "@web/dev-server-import-maps": "^0.0.7", "@web/dev-server-rollup": "^0.3.17", @@ -107,16 +109,18 @@ "del-cli": "^5.0.0", "esbuild": "^0.17.16", "esbuild-plugin-lit-css": "^2.0.0", - "eslint": "^8.12.0", - "eslint-config-prettier": "^8.5.0", + "eslint": "^8.44.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-storybook": "^0.6.12", + "eslint-plugin-unused-imports": "^3.0.0", "globby": "^13.1.1", "husky": "^8.0.3", "lint-staged": "^13.1.2", "minimist": "^1.2.6", "npm-run-all": "^4.1.5", "pascal-case": "^3.1.2", - "prettier": "^2.0.4", + "prettier": "^2.8.8", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup-plugin-lit-css": "^4.0.0", From e596b33955939756fd6a107e340496a794b18ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aykut=20Sara=C3=A7?= Date: Fri, 14 Jul 2023 16:52:39 +0300 Subject: [PATCH 2/5] refactor: lint files --- src/baklava.ts | 52 +-- src/components/alert/bl-alert.css | 6 +- src/components/alert/bl-alert.test.ts | 113 ++--- src/components/alert/bl-alert.ts | 58 +-- src/components/badge/bl-badge.css | 6 +- src/components/badge/bl-badge.test.ts | 43 +- src/components/badge/bl-badge.ts | 20 +- src/components/button/bl-button.css | 28 +- src/components/button/bl-button.test.ts | 178 ++++---- src/components/button/bl-button.ts | 77 ++-- .../checkbox-group/bl-checkbox-group.test.ts | 122 +++--- .../checkbox-group/bl-checkbox-group.ts | 38 +- .../checkbox/bl-checkbox.test.ts | 76 ++-- .../checkbox-group/checkbox/bl-checkbox.ts | 46 +- src/components/dialog/bl-dialog.mdx | 27 +- src/components/dialog/bl-dialog.stories.ts | 95 ++-- src/components/dialog/bl-dialog.test.ts | 124 +++--- src/components/dialog/bl-dialog.ts | 70 +-- src/components/drawer/bl-drawer.test.ts | 54 +-- src/components/drawer/bl-drawer.ts | 38 +- src/components/dropdown/bl-dropdown.css | 6 +- src/components/dropdown/bl-dropdown.test.ts | 153 +++---- src/components/dropdown/bl-dropdown.ts | 61 ++- .../dropdown/group/bl-dropdown-group.test.ts | 19 +- .../dropdown/group/bl-dropdown-group.ts | 18 +- .../dropdown/item/bl-dropdown-item.test.ts | 27 +- .../dropdown/item/bl-dropdown-item.ts | 37 +- src/components/icon/bl-icon.test.ts | 37 +- src/components/icon/bl-icon.ts | 23 +- src/components/icon/icon-list.ts | 410 +++++++++--------- src/components/input/bl-input.css | 29 +- src/components/input/bl-input.test.ts | 163 +++---- src/components/input/bl-input.ts | 112 +++-- src/components/pagination/bl-pagination.css | 2 +- .../pagination/bl-pagination.test.ts | 170 ++++---- src/components/pagination/bl-pagination.ts | 85 ++-- src/components/popover/bl-popover.test.ts | 74 ++-- src/components/popover/bl-popover.ts | 86 ++-- .../bl-progress-indicator.css | 8 +- .../bl-progress-indicator.test.ts | 45 +- .../bl-progress-indicator.ts | 20 +- .../radio-group/bl-radio-group.test.ts | 94 ++-- src/components/radio-group/bl-radio-group.ts | 41 +- src/components/radio-group/radio/bl-radio.css | 2 +- .../radio-group/radio/bl-radio.test.ts | 12 +- src/components/radio-group/radio/bl-radio.ts | 29 +- src/components/select/bl-select.css | 15 +- src/components/select/bl-select.test.ts | 198 +++++---- src/components/select/bl-select.ts | 126 +++--- .../select/option/bl-select-option.css | 4 +- .../select/option/bl-select-option.test.ts | 33 +- .../select/option/bl-select-option.ts | 30 +- src/components/switch/bl-switch.css | 4 +- src/components/switch/bl-switch.test.ts | 77 ++-- src/components/switch/bl-switch.ts | 18 +- src/components/tab-group/bl-tab-group.test.ts | 83 ++-- src/components/tab-group/bl-tab-group.ts | 25 +- .../tab-group/tab-panel/bl-tab-panel.test.ts | 19 +- .../tab-group/tab-panel/bl-tab-panel.ts | 14 +- src/components/tab-group/tab/bl-tab.css | 6 +- src/components/tab-group/tab/bl-tab.test.ts | 64 +-- src/components/tab-group/tab/bl-tab.ts | 29 +- src/components/textarea/bl-textarea.css | 14 +- src/components/textarea/bl-textarea.test.ts | 144 +++--- src/components/textarea/bl-textarea.ts | 100 ++--- src/components/tooltip/bl-tooltip.css | 2 +- src/components/tooltip/bl-tooltip.test.ts | 100 +++-- src/components/tooltip/bl-tooltip.ts | 38 +- src/imports.d.ts | 8 +- src/themes/default.css | 19 +- src/utilities/asset-paths.test.ts | 23 +- src/utilities/asset-paths.ts | 4 +- src/utilities/chromatic-decorators.ts | 87 ++-- src/utilities/event.test.ts | 53 +-- src/utilities/event.ts | 4 +- src/utilities/form-control.test.ts | 36 +- src/utilities/form-control.ts | 28 +- src/utilities/icon-mock.ts | 2 +- .../string-boolean.converter.test.ts | 18 +- src/utilities/string-boolean.converter.ts | 6 +- 80 files changed, 2343 insertions(+), 2122 deletions(-) diff --git a/src/baklava.ts b/src/baklava.ts index deeb2da2..f6f7c0a2 100644 --- a/src/baklava.ts +++ b/src/baklava.ts @@ -1,26 +1,26 @@ -export { default as BlAlert } from './components/alert/bl-alert'; -export { default as BlBadge } from './components/badge/bl-badge'; -export { default as BlButton } from './components/button/bl-button'; -export { default as BlCheckboxGroup } from './components/checkbox-group/bl-checkbox-group'; -export { default as BlCheckbox } from './components/checkbox-group/checkbox/bl-checkbox'; -export { default as BlDialog } from './components/dialog/bl-dialog'; -export { default as BlDrawer } from './components/drawer/bl-drawer'; -export { default as BlIcon } from './components/icon/bl-icon'; -export { default as BlInput } from './components/input/bl-input'; -export { default as BlPagination } from './components/pagination/bl-pagination'; -export { default as BlProgressIndicator } from './components/progress-indicator/bl-progress-indicator'; -export { default as BlRadioGroup } from './components/radio-group/bl-radio-group'; -export { default as BlRadio } from './components/radio-group/radio/bl-radio'; -export { default as BlSelect } from './components/select/bl-select'; -export { default as BlSelectOption } from './components/select/option/bl-select-option'; -export { default as BlTab } from './components/tab-group/tab/bl-tab'; -export { default as BlTabGroup } from './components/tab-group/bl-tab-group'; -export { default as BlTabPanel } from './components/tab-group/tab-panel/bl-tab-panel'; -export { default as BlTextarea } from './components/textarea/bl-textarea'; -export { default as BlTooltip } from './components/tooltip/bl-tooltip'; -export { default as BlPopover } from './components/popover/bl-popover'; -export { default as BlDropdown } from './components/dropdown/bl-dropdown'; -export { default as BlDropdownItem } from './components/dropdown/item/bl-dropdown-item'; -export { default as BlDropdownGroup } from './components/dropdown/group/bl-dropdown-group'; -export { default as BlSwitch } from './components/switch/bl-switch'; -export { getIconPath, setIconPath } from './utilities/asset-paths'; +export { default as BlAlert } from "./components/alert/bl-alert"; +export { default as BlBadge } from "./components/badge/bl-badge"; +export { default as BlButton } from "./components/button/bl-button"; +export { default as BlCheckboxGroup } from "./components/checkbox-group/bl-checkbox-group"; +export { default as BlCheckbox } from "./components/checkbox-group/checkbox/bl-checkbox"; +export { default as BlDialog } from "./components/dialog/bl-dialog"; +export { default as BlDrawer } from "./components/drawer/bl-drawer"; +export { default as BlIcon } from "./components/icon/bl-icon"; +export { default as BlInput } from "./components/input/bl-input"; +export { default as BlPagination } from "./components/pagination/bl-pagination"; +export { default as BlProgressIndicator } from "./components/progress-indicator/bl-progress-indicator"; +export { default as BlRadioGroup } from "./components/radio-group/bl-radio-group"; +export { default as BlRadio } from "./components/radio-group/radio/bl-radio"; +export { default as BlSelect } from "./components/select/bl-select"; +export { default as BlSelectOption } from "./components/select/option/bl-select-option"; +export { default as BlTab } from "./components/tab-group/tab/bl-tab"; +export { default as BlTabGroup } from "./components/tab-group/bl-tab-group"; +export { default as BlTabPanel } from "./components/tab-group/tab-panel/bl-tab-panel"; +export { default as BlTextarea } from "./components/textarea/bl-textarea"; +export { default as BlTooltip } from "./components/tooltip/bl-tooltip"; +export { default as BlPopover } from "./components/popover/bl-popover"; +export { default as BlDropdown } from "./components/dropdown/bl-dropdown"; +export { default as BlDropdownItem } from "./components/dropdown/item/bl-dropdown-item"; +export { default as BlDropdownGroup } from "./components/dropdown/group/bl-dropdown-group"; +export { default as BlSwitch } from "./components/switch/bl-switch"; +export { getIconPath, setIconPath } from "./utilities/asset-paths"; diff --git a/src/components/alert/bl-alert.css b/src/components/alert/bl-alert.css index 05ebfaf6..0d67db45 100644 --- a/src/components/alert/bl-alert.css +++ b/src/components/alert/bl-alert.css @@ -73,17 +73,17 @@ display: none; } -:host([variant='success']) .alert { +:host([variant="success"]) .alert { --main-color: var(--bl-color-success); --main-bg-color: var(--bl-color-success-contrast); } -:host([variant='warning']) .alert { +:host([variant="warning"]) .alert { --main-color: var(--bl-color-warning); --main-bg-color: var(--bl-color-warning-contrast); } -:host([variant='danger']) .alert { +:host([variant="danger"]) .alert { --main-color: var(--bl-color-danger); --main-bg-color: var(--bl-color-danger-contrast); } diff --git a/src/components/alert/bl-alert.test.ts b/src/components/alert/bl-alert.test.ts index 911184ea..064bf2fd 100644 --- a/src/components/alert/bl-alert.test.ts +++ b/src/components/alert/bl-alert.test.ts @@ -1,17 +1,19 @@ -import { assert, expect, fixture, html, oneEvent } from '@open-wc/testing'; -import BlAlert, { AlertVariant } from './bl-alert'; -import type typeofBlAlert from './bl-alert'; +import { assert, expect, fixture, html, oneEvent } from "@open-wc/testing"; +import BlAlert, { AlertVariant } from "./bl-alert"; +import type typeofBlAlert from "./bl-alert"; -const variants: Array = ['info', 'warning', 'success', 'danger']; +const variants: Array = ["info", "warning", "success", "danger"]; + +describe("bl-alert", () => { + it("is defined", () => { + const el = document.createElement("bl-alert"); -describe('bl-alert', () => { - it('is defined', () => { - const el = document.createElement('bl-alert'); assert.instanceOf(el, BlAlert); }); - it('renders with default values', async () => { + it("renders with default values", async () => { const el = await fixture(html``); + assert.shadowDom.equal( el, ` @@ -40,14 +42,16 @@ describe('bl-alert', () => { ` ); }); - it('check default values', async () => { + it("check default values", async () => { const el = await fixture(html` `); - expect(el.variant).to.equal('info'); + + expect(el.variant).to.equal("info"); expect(el.closable).to.equal(false); expect(el.closed).to.equal(false); }); - it('should check open/close public functions', async () => { + it("should check open/close public functions", async () => { const el = await fixture(html` `); + el.close(); expect(el.closed).to.eq(true); el.open(); @@ -56,31 +60,33 @@ describe('bl-alert', () => { }); // FIXME: Alert variant colors doesn't pass accessibility checks -xdescribe('Accessibility tests', () => { +xdescribe("Accessibility tests", () => { variants.forEach(variant => { it(`should be accessible when attribute is "${variant}"`, async () => { const el = await fixture( `Description` ); + await expect(el).to.be.accessible(); }); }); }); -describe('Attributes', () => { - it('is bound to `closable` attribute', async () => { +describe("Attributes", () => { + it("is bound to `closable` attribute", async () => { const el = await fixture(html``); - const closeButton = el.shadowRoot?.querySelector('bl-button'); - const kind = closeButton?.getAttribute('kind'); - const icon = closeButton?.getAttribute('icon'); - const variant = closeButton?.getAttribute('variant'); - const label = closeButton?.getAttribute('label'); - expect(kind).to.eq('neutral'); - expect(icon).to.eq('close'); - expect(variant).to.eq('tertiary'); - expect(label).to.eq('close'); + const closeButton = el.shadowRoot?.querySelector("bl-button"); + const kind = closeButton?.getAttribute("kind"); + const icon = closeButton?.getAttribute("icon"); + const variant = closeButton?.getAttribute("variant"); + const label = closeButton?.getAttribute("label"); + + expect(kind).to.eq("neutral"); + expect(icon).to.eq("close"); + expect(variant).to.eq("tertiary"); + expect(label).to.eq("close"); }); - it('is bound to `icon` attribute', async () => { + it("is bound to `icon` attribute", async () => { const infoEl = await fixture(html`Description`); const successEl = await fixture( html`Description` @@ -94,46 +100,50 @@ describe('Attributes', () => { const customEl = await fixture( html`Description` ); - const infoIconEl = infoEl.shadowRoot?.querySelector('bl-icon'); - const successIconEl = successEl.shadowRoot?.querySelector('bl-icon'); - const warningIconEl = warningEl.shadowRoot?.querySelector('bl-icon'); - const dangerIconEl = dangerEl.shadowRoot?.querySelector('bl-icon'); - const customIconEl = customEl.shadowRoot?.querySelector('bl-icon'); - expect(infoIconEl?.getAttribute('name')).to.eq('info'); - expect(successIconEl?.getAttribute('name')).to.eq('check_fill'); - expect(warningIconEl?.getAttribute('name')).to.eq('warning'); - expect(dangerIconEl?.getAttribute('name')).to.eq('close_fill'); - expect(customIconEl?.getAttribute('name')).to.eq('download'); + const infoIconEl = infoEl.shadowRoot?.querySelector("bl-icon"); + const successIconEl = successEl.shadowRoot?.querySelector("bl-icon"); + const warningIconEl = warningEl.shadowRoot?.querySelector("bl-icon"); + const dangerIconEl = dangerEl.shadowRoot?.querySelector("bl-icon"); + const customIconEl = customEl.shadowRoot?.querySelector("bl-icon"); + + expect(infoIconEl?.getAttribute("name")).to.eq("info"); + expect(successIconEl?.getAttribute("name")).to.eq("check_fill"); + expect(warningIconEl?.getAttribute("name")).to.eq("warning"); + expect(dangerIconEl?.getAttribute("name")).to.eq("close_fill"); + expect(customIconEl?.getAttribute("name")).to.eq("download"); }); - it('is bound to `caption` attribute', async () => { + it("is bound to `caption` attribute", async () => { const el = await fixture(html``); - const captionEl = el?.shadowRoot?.querySelector('.caption'); + const captionEl = el?.shadowRoot?.querySelector(".caption"); + expect(captionEl).to.exist; - expect(captionEl?.tagName).to.eq('SPAN'); - expect(captionEl?.innerHTML).to.contain('test caption'); + expect(captionEl?.tagName).to.eq("SPAN"); + expect(captionEl?.innerHTML).to.contain("test caption"); }); - it('is bound to `description` attribute', async () => { + it("is bound to `description` attribute", async () => { const el = await fixture( html`` ); - const descriptionEl = el?.shadowRoot?.querySelector('.description'); + const descriptionEl = el?.shadowRoot?.querySelector(".description"); + expect(descriptionEl).to.exist; - expect(descriptionEl?.tagName).to.eq('SPAN'); - expect(descriptionEl?.innerHTML).to.contain('test description'); + expect(descriptionEl?.tagName).to.eq("SPAN"); + expect(descriptionEl?.innerHTML).to.contain("test description"); }); }); -describe('Slot', () => { - it('renders `caption` slot with element', async () => { +describe("Slot", () => { + it("renders `caption` slot with element", async () => { const el = await fixture( html` Caption Slot ` ); const captionSlot = el.shadowRoot?.querySelector('slot[name="caption"]'); + expect(captionSlot).to.exist; }); - it('renders `action` slot with bl-button element', async () => { + it("renders `action` slot with bl-button element", async () => { const el = await fixture( html` Action Slot @@ -141,23 +151,26 @@ describe('Slot', () => { ` ); const actionSlot = el.shadowRoot?.querySelector('slot[name="action"]'); + expect(actionSlot).to.exist; }); - it('renders `action` slot empty when bl-button is not used', async () => { + it("renders `action` slot empty when bl-button is not used", async () => { const el = await fixture( html` Action Slot ` ); + expect(el.outerHTML).to.eq(''); }); }); -describe('Events', () => { - it('fires bl-close event on close button click', async () => { +describe("Events", () => { + it("fires bl-close event on close button click", async () => { const el = await fixture(html``); - const button = el.shadowRoot?.querySelector('bl-button'); + const button = el.shadowRoot?.querySelector("bl-button"); setTimeout(() => button?.click()); - const ev = await oneEvent(el, 'bl-close'); + const ev = await oneEvent(el, "bl-close"); + expect(el.closed).to.equal(true); expect(ev).to.exist; expect(ev.detail).to.eq(true); diff --git a/src/components/alert/bl-alert.ts b/src/components/alert/bl-alert.ts index b5b338dc..22b261b2 100644 --- a/src/components/alert/bl-alert.ts +++ b/src/components/alert/bl-alert.ts @@ -1,20 +1,20 @@ -import { CSSResultGroup, html, LitElement, TemplateResult } from 'lit'; -import { customElement, property } from 'lit/decorators.js'; -import { event, EventDispatcher } from '../../utilities/event'; -import style from './bl-alert.css'; -import '../icon/bl-icon'; -import { ifDefined } from 'lit/directives/if-defined.js'; -import { stringBooleanConverter } from '../../utilities/string-boolean.converter'; -import { ButtonVariant, ButtonKind, ButtonSize } from '../button/bl-button'; +import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; +import { customElement, property } from "lit/decorators.js"; +import { ifDefined } from "lit/directives/if-defined.js"; +import { event, EventDispatcher } from "../../utilities/event"; +import { stringBooleanConverter } from "../../utilities/string-boolean.converter"; +import { ButtonVariant, ButtonKind, ButtonSize } from "../button/bl-button"; +import "../icon/bl-icon"; +import style from "./bl-alert.css"; -export type AlertVariant = 'info' | 'warning' | 'success' | 'danger'; +export type AlertVariant = "info" | "warning" | "success" | "danger"; /** * @tag bl-alert * @summary Baklava Alert component */ -@customElement('bl-alert') +@customElement("bl-alert") export default class BlAlert extends LitElement { static get styles(): CSSResultGroup { return [style]; @@ -24,13 +24,13 @@ export default class BlAlert extends LitElement { * Sets alert variant */ @property({ reflect: true }) - variant: AlertVariant = 'info'; + variant: AlertVariant = "info"; /** * Sets alert description */ @property() - description?: 'string'; + description?: "string"; /** * Allows to customize alert icon @@ -73,7 +73,7 @@ export default class BlAlert extends LitElement { /** * Fires when close button clicked. */ - @event('bl-close') private onClose: EventDispatcher; + @event("bl-close") private onClose: EventDispatcher; private get _hasAlertCaptionSlot() { return this.querySelector(':scope > [slot="caption"]') !== null; @@ -86,10 +86,10 @@ export default class BlAlert extends LitElement { private _predefinedIcons() { switch (this.variant) { - case 'success': - return 'check_fill'; - case 'danger': - return 'close_fill'; + case "success": + return "check_fill"; + case "danger": + return "close_fill"; default: return this.variant; } @@ -106,25 +106,25 @@ export default class BlAlert extends LitElement { const slotElements = slotElement.assignedElements(); slotElements.forEach(element => { - if (element.tagName !== 'BL-BUTTON') { + if (element.tagName !== "BL-BUTTON") { element.parentNode?.removeChild(element); return; } - (slotElement.parentElement as HTMLElement).style.display = 'flex'; + (slotElement.parentElement as HTMLElement).style.display = "flex"; - const variant = element.slot === 'action-secondary' ? 'secondary' : 'primary'; + const variant = element.slot === "action-secondary" ? "secondary" : "primary"; const buttonTypes: Record = { - info: 'default', - warning: 'neutral', - success: 'success', - danger: 'danger', + info: "default", + warning: "neutral", + success: "success", + danger: "danger", }; - element.setAttribute('variant', variant as ButtonVariant); - element.setAttribute('kind', buttonTypes[this.variant] as ButtonKind); - element.setAttribute('size', 'medium' as ButtonSize); - element.removeAttribute('icon'); + element.setAttribute("variant", variant as ButtonVariant); + element.setAttribute("kind", buttonTypes[this.variant] as ButtonKind); + element.setAttribute("size", "medium" as ButtonSize); + element.removeAttribute("icon"); }); } @@ -178,6 +178,6 @@ export default class BlAlert extends LitElement { declare global { interface HTMLElementTagNameMap { - 'bl-alert': BlAlert; + "bl-alert": BlAlert; } } diff --git a/src/components/badge/bl-badge.css b/src/components/badge/bl-badge.css index fa9c3b2e..2cc2286d 100644 --- a/src/components/badge/bl-badge.css +++ b/src/components/badge/bl-badge.css @@ -30,12 +30,12 @@ height: var(--height); } -:host([size='small']) .badge { +:host([size="small"]) .badge { --font: var(--bl-font-caption); --height: var(--bl-size-m); } -:host([size='large']) .badge { +:host([size="large"]) .badge { --font: var(--bl-font-title-3-medium); --padding-vertical: var(--bl-size-2xs); --padding-horizontal: var(--bl-size-2xs); @@ -47,6 +47,6 @@ font-size: var(--icon-size); } -:host([size='small']) bl-icon { +:host([size="small"]) bl-icon { display: none; } diff --git a/src/components/badge/bl-badge.test.ts b/src/components/badge/bl-badge.test.ts index c6a06c76..4fdacf6b 100644 --- a/src/components/badge/bl-badge.test.ts +++ b/src/components/badge/bl-badge.test.ts @@ -1,17 +1,17 @@ -import { assert, elementUpdated, expect, fixture, html } from '@open-wc/testing'; -import BlBadge from './bl-badge'; -import type typeOfBlBadge from './bl-badge'; +import { assert, elementUpdated, expect, fixture, html } from "@open-wc/testing"; +import BlBadge from "./bl-badge"; +import type typeOfBlBadge from "./bl-badge"; -describe('bl-badge', () => { - it('should be defined badge instance', () => { +describe("bl-badge", () => { + it("should be defined badge instance", () => { //when - const el = document.createElement('bl-badge'); + const el = document.createElement("bl-badge"); //then assert.instanceOf(el, BlBadge); }); - it('should be rendered with default values', async () => { + it("should be rendered with default values", async () => { //when const el = await fixture(html``); @@ -27,56 +27,58 @@ describe('bl-badge', () => { ); }); - it('should have correct default values', async () => { + it("should have correct default values", async () => { //when const el = await fixture(html`Test`); //then - expect(el.size).to.equal('medium'); + expect(el.size).to.equal("medium"); }); - it('should be rendered when there is slot', async () => { + it("should be rendered when there is slot", async () => { //when const el = await fixture(html` Test `); //then - expect(el.shadowRoot?.querySelector('span')).to.exist; + expect(el.shadowRoot?.querySelector("span")).to.exist; }); - it('should be rendered with correct size attribute', async () => { + it("should be rendered with correct size attribute", async () => { //when const el = await fixture(html`Test`); //then - expect(el.getAttribute('size')).to.eq('large'); + expect(el.getAttribute("size")).to.eq("large"); }); - it('should be rendered with correct size attribute when size attribute was changed', async () => { + it("should be rendered with correct size attribute when size attribute was changed", async () => { //given const el = await fixture(html`Test`); - el.setAttribute('size', 'medium'); + + el.setAttribute("size", "medium"); //when await elementUpdated(el); //then - expect(el.getAttribute('size')).to.eq('medium'); + expect(el.getAttribute("size")).to.eq("medium"); }); - it('should be rendered with icon', async () => { + it("should be rendered with icon", async () => { //when const el = await fixture(html`Test`); //then - expect(el.shadowRoot?.querySelector('bl-icon')).to.exist; + expect(el.shadowRoot?.querySelector("bl-icon")).to.exist; }); - it('should not have icon when badge size is small', async () => { + it("should not have icon when badge size is small", async () => { //when const el = await fixture(html`Test`); //then - const iconEl = el.shadowRoot?.querySelector('bl-icon'); + const iconEl = el.shadowRoot?.querySelector("bl-icon"); + expect(iconEl).to.exist; if (iconEl) { @@ -85,6 +87,7 @@ describe('bl-badge', () => { iconEl.offsetHeight || iconEl.getClientRects().length ); + expect(visible).to.be.false; } }); diff --git a/src/components/badge/bl-badge.ts b/src/components/badge/bl-badge.ts index 3d2e1c2e..5922f601 100644 --- a/src/components/badge/bl-badge.ts +++ b/src/components/badge/bl-badge.ts @@ -1,10 +1,10 @@ -import { CSSResultGroup, html, LitElement, TemplateResult } from 'lit'; -import { customElement, property } from 'lit/decorators.js'; -import style from './bl-badge.css'; -import '../icon/bl-icon'; -import { BaklavaIcon } from '../icon/icon-list'; +import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; +import { customElement, property } from "lit/decorators.js"; +import "../icon/bl-icon"; +import { BaklavaIcon } from "../icon/icon-list"; +import style from "./bl-badge.css"; -export type BadgeSize = 'small' | 'medium' | 'large'; +export type BadgeSize = "small" | "medium" | "large"; /** * @tag bl-badge @@ -14,7 +14,7 @@ export type BadgeSize = 'small' | 'medium' | 'large'; * @cssproperty [--bl-badge-color=--bl-color-primary] Sets the color of badge */ -@customElement('bl-badge') +@customElement("bl-badge") export default class BlBadge extends LitElement { static get styles(): CSSResultGroup { return [style]; @@ -24,7 +24,7 @@ export default class BlBadge extends LitElement { * Sets the badge size */ @property({ type: String, reflect: true }) - size: BadgeSize = 'medium'; + size: BadgeSize = "medium"; /** * Sets the name of the icon @@ -33,7 +33,7 @@ export default class BlBadge extends LitElement { icon?: BaklavaIcon; render(): TemplateResult { - const icon = this.icon ? html`` : ''; + const icon = this.icon ? html`` : ""; return html` ${icon} @@ -44,6 +44,6 @@ export default class BlBadge extends LitElement { declare global { interface HTMLElementTagNameMap { - 'bl-badge': BlBadge; + "bl-badge": BlBadge; } } diff --git a/src/components/button/bl-button.css b/src/components/button/bl-button.css index b58e1fb5..ae4a244c 100644 --- a/src/components/button/bl-button.css +++ b/src/components/button/bl-button.css @@ -58,7 +58,7 @@ text-overflow: ellipsis; } -:host([size='small']) .button { +:host([size="small"]) .button { --font: var(--bl-font-title-4-medium); --padding-vertical: var(--bl-size-3xs); --padding-horizontal: var(--bl-size-2xs); @@ -66,7 +66,7 @@ --height: var(--bl-size-xl); } -:host([size='large']) .button { +:host([size="large"]) .button { --font: var(--bl-font-title-3-medium); --padding-vertical: var(--bl-size-xs); --padding-horizontal: var(--bl-size-xl); @@ -86,7 +86,7 @@ .button:focus-visible::after { border: 2px solid var(--main-color); border-radius: var(--bl-border-radius-l); - content: ''; + content: ""; position: absolute; inset: -4px; } @@ -109,28 +109,28 @@ --margin-icon: 0; } -:host([variant='secondary']) .button { +:host([variant="secondary"]) .button { --bg-color: transparent; --content-color: var(--main-color); } -:host([variant='tertiary']) .button { +:host([variant="tertiary"]) .button { --content-color: var(--main-color); --border-color: transparent; --bg-color: transparent; } -:host([kind='neutral']) .button { +:host([kind="neutral"]) .button { --main-color: var(--bl-color-neutral-darker); --main-hover-color: var(--bl-color-neutral-darkest); } -:host([kind='success']) .button { +:host([kind="success"]) .button { --main-color: var(--bl-color-success); --main-hover-color: var(--bl-color-success-highlight); } -:host([kind='danger']) .button { +:host([kind="danger"]) .button { --main-color: var(--bl-color-danger); --main-hover-color: var(--bl-color-danger-highlight); } @@ -147,7 +147,7 @@ display: none; } -:host .button[aria-disabled='true'] { +:host .button[aria-disabled="true"] { --main-color: var(--bl-color-neutral-lightest); --main-hover-color: var(--bl-color-neutral-lightest); --content-color: var(--bl-color-neutral-lighter); @@ -157,16 +157,16 @@ text-decoration: none; } -:host([variant='tertiary']) .button[aria-disabled='true'] { +:host([variant="tertiary"]) .button[aria-disabled="true"] { --main-color: transparent; } -:host([variant='secondary']:hover) .button[aria-disabled='false'] { +:host([variant="secondary"]:hover) .button[aria-disabled="false"] { --content-color: var(--bl-color-neutral-full); --bg-color: var(--main-hover-color); } -:host([variant='tertiary']:hover) .button[aria-disabled='false'] { +:host([variant="tertiary"]:hover) .button[aria-disabled="false"] { --content-color: var(--main-hover-color); --bg-color: var(--text-hover-color); } @@ -188,12 +188,12 @@ --border-color: var(--main-hover-color); } -:host([variant='secondary']) .active.button { +:host([variant="secondary"]) .active.button { --content-color: var(--bl-color-neutral-full); --bg-color: var(--main-hover-color); } -:host([variant='tertiary']) .active.button { +:host([variant="tertiary"]) .active.button { --content-color: var(--main-color); --bg-color: var(--bl-color-neutral-lightest); --border-color: transparent; diff --git a/src/components/button/bl-button.test.ts b/src/components/button/bl-button.test.ts index 2fb84435..35d1579d 100644 --- a/src/components/button/bl-button.test.ts +++ b/src/components/button/bl-button.test.ts @@ -1,17 +1,18 @@ -import { assert, expect, fixture, elementUpdated, oneEvent, html } from '@open-wc/testing'; -import BlButton from './bl-button'; +import { assert, expect, fixture, elementUpdated, oneEvent, html } from "@open-wc/testing"; +import BlButton from "./bl-button"; -import type typeOfBlButton from './bl-button'; +import type typeOfBlButton from "./bl-button"; -const variants = ['primary', 'secondary', 'tertiary', 'success', 'danger']; +const variants = ["primary", "secondary", "tertiary", "success", "danger"]; + +describe("bl-button", () => { + it("is defined", () => { + const el = document.createElement("bl-button"); -describe('bl-button', () => { - it('is defined', () => { - const el = document.createElement('bl-button'); assert.instanceOf(el, BlButton); }); - it('renders with default values', async () => { + it("renders with default values", async () => { const el = await fixture(html``); assert.shadowDom.equal( @@ -24,182 +25,203 @@ describe('bl-button', () => { ` ); }); - it('check default values', async () => { + it("check default values", async () => { const el = await fixture(html`Button `); - expect(el.size).to.equal('medium'); + + expect(el.size).to.equal("medium"); expect(el.disabled).to.equal(false); - expect(el.target).to.equal('_self'); + expect(el.target).to.equal("_self"); }); // FIXME: Button variant colors doesn't pass accessibility checks - xdescribe('Accessibility tests', () => { + xdescribe("Accessibility tests", () => { variants.forEach(variant => { it(`should be accessible when attribute is "${variant}"`, async () => { const el = await fixture( `Button` ); + await expect(el).to.be.accessible(); }); }); }); - describe('Attributes', () => { - it('is renders with `label` attribute as `aria-label', async () => { + describe("Attributes", () => { + it("is renders with `label` attribute as `aria-label", async () => { const el = await fixture(html``); - expect(el.shadowRoot?.querySelector('button')?.getAttribute('aria-label')).to.eq( - 'simple-button' + + expect(el.shadowRoot?.querySelector("button")?.getAttribute("aria-label")).to.eq( + "simple-button" ); }); - it('is bound to `disabled` attribute', async () => { + it("is bound to `disabled` attribute", async () => { const el = await fixture(html``); - expect(el.shadowRoot?.querySelector('button')?.hasAttribute('disabled')).to.eq(true); + + expect(el.shadowRoot?.querySelector("button")?.hasAttribute("disabled")).to.eq(true); }); - it('is bound to `size` attribute', async () => { - const el = await fixture(html`Test`); - expect(el.getAttribute('size')).to.eq('large'); + it("is bound to `size` attribute", async () => { + const el = await fixture(html`Test`); + + expect(el.getAttribute("size")).to.eq("large"); - el.setAttribute('size', 'medium'); + el.setAttribute("size", "medium"); await elementUpdated(el); - expect(el.getAttribute('size')).to.eq('medium'); + expect(el.getAttribute("size")).to.eq("medium"); }); - it('is bound to `href` attribute', async () => { + it("is bound to `href` attribute", async () => { const el = await fixture( - html`Test` + html`Test` ); - expect(el.getAttribute('href')).to.eq('https://trendyol.com'); - el.setAttribute('href', 'https://trendyol.github.io'); + expect(el.getAttribute("href")).to.eq("https://trendyol.com"); + + el.setAttribute("href", "https://trendyol.github.io"); await elementUpdated(el); - expect(el.getAttribute('href')).to.eq('https://trendyol.github.io'); + expect(el.getAttribute("href")).to.eq("https://trendyol.github.io"); }); - it('is bound to `target` attribute', async () => { + it("is bound to `target` attribute", async () => { const el = await fixture( - html`Test` + html`Test` ); - expect(el.getAttribute('target')).to.eq('_blank'); - el.setAttribute('target', '_self'); + expect(el.getAttribute("target")).to.eq("_blank"); + + el.setAttribute("target", "_self"); await elementUpdated(el); - expect(el.getAttribute('target')).to.eq('_self'); + expect(el.getAttribute("target")).to.eq("_self"); }); - it('is disabled button during loading state', async () => { + it("is disabled button during loading state", async () => { const el = await fixture(html`Test`); - expect(el.shadowRoot?.querySelector('.loading-icon')).to.exist; - expect(el).to.have.attribute('loading'); - expect(el.shadowRoot?.querySelector('button')).to.have.attribute('disabled'); - el.removeAttribute('loading'); + expect(el.shadowRoot?.querySelector(".loading-icon")).to.exist; + expect(el).to.have.attribute("loading"); + expect(el.shadowRoot?.querySelector("button")).to.have.attribute("disabled"); + + el.removeAttribute("loading"); await elementUpdated(el); - expect(el.shadowRoot?.querySelector('.loading-icon')).not.to.exist; - expect(el).not.have.attribute('loading'); - expect(el.shadowRoot?.querySelector('button')).not.have.attribute('disabled'); + expect(el.shadowRoot?.querySelector(".loading-icon")).not.to.exist; + expect(el).not.have.attribute("loading"); + expect(el.shadowRoot?.querySelector("button")).not.have.attribute("disabled"); }); }); - describe('Slot', () => { - it('renders default slot with element', async () => { + describe("Slot", () => { + it("renders default slot with element", async () => { const el = await fixture( html` https://trendyol.com ` ); - expect(el.shadowRoot?.querySelector('button')).to.exist; + + expect(el.shadowRoot?.querySelector("button")).to.exist; }); - it('renders loading label when set and loading', async () => { + it("renders loading label when set and loading", async () => { const el = await fixture( html`Login` ); - expect(el.shadowRoot?.querySelector('.label')).to.have.text('Loading...'); + expect(el.shadowRoot?.querySelector(".label")).to.have.text("Loading..."); }); }); - describe('Link button', () => { - it('renders element with anchor tag', async () => { + describe("Link button", () => { + it("renders element with anchor tag", async () => { const el = await fixture( html` ` ); - expect(el.shadowRoot?.querySelector('a')).to.exist; - expect(el.shadowRoot?.querySelector('button')).not.to.exist; + + expect(el.shadowRoot?.querySelector("a")).to.exist; + expect(el.shadowRoot?.querySelector("button")).not.to.exist; }); }); - describe('Icon only button', () => { - it('renders with slotted icon content', async () => { + describe("Icon only button", () => { + it("renders with slotted icon content", async () => { const el = await fixture( html`` ); - expect(el.shadowRoot?.querySelector('bl-icon')).to.exist; + + expect(el.shadowRoot?.querySelector("bl-icon")).to.exist; }); - it('should have has-icon class', async () => { + it("should have has-icon class", async () => { const el = await fixture( html`` ); - expect(el.shadowRoot?.querySelector('button')?.classList.contains('has-icon')).to.eq(true); + + expect(el.shadowRoot?.querySelector("button")?.classList.contains("has-icon")).to.eq(true); }); - it('should not have has-content class', async () => { + it("should not have has-content class", async () => { const el = await fixture( html`` ); - expect(el.shadowRoot?.querySelector('button')?.classList.contains('has-content')).to.eq( + + expect(el.shadowRoot?.querySelector("button")?.classList.contains("has-content")).to.eq( false ); }); }); - describe('Events', () => { - it('fires bl-click event on click', async () => { + describe("Events", () => { + it("fires bl-click event on click", async () => { const el = await fixture(html`button`); - const button = el.shadowRoot?.querySelector('button'); + const button = el.shadowRoot?.querySelector("button"); setTimeout(() => button?.click()); - const ev = await oneEvent(el, 'bl-click'); + const ev = await oneEvent(el, "bl-click"); + expect(ev).to.exist; - expect(ev.detail).to.be.equal('Click event fired!'); + expect(ev.detail).to.be.equal("Click event fired!"); }); }); - describe('Form Participation', () => { - it('submits wrapping form if type is submit', async () => { + describe("Form Participation", () => { + it("submits wrapping form if type is submit", async () => { const form = await fixture(html`
button
`); - form.addEventListener('submit', e => e.preventDefault()); - const button = form.querySelector('bl-button')?.shadowRoot?.querySelector('button'); + form.addEventListener("submit", e => e.preventDefault()); + + const button = form.querySelector("bl-button")?.shadowRoot?.querySelector("button"); setTimeout(() => button?.click()); - const ev = await oneEvent(form, 'submit'); + const ev = await oneEvent(form, "submit"); + expect(ev).to.exist; }); - it('should submit form that is specified in form attribute', async () => { + it("should submit form that is specified in form attribute", async () => { const el = await fixture(html`
button
`); - const form = el.querySelector('form') as HTMLFormElement; - form.addEventListener('submit', e => e.preventDefault()); + const form = el.querySelector("form") as HTMLFormElement; - const button = el.querySelector('bl-button')?.shadowRoot?.querySelector('button'); + form.addEventListener("submit", e => e.preventDefault()); + + const button = el.querySelector("bl-button")?.shadowRoot?.querySelector("button"); setTimeout(() => button?.click()); - const ev = await oneEvent(form, 'submit'); + const ev = await oneEvent(form, "submit"); + expect(ev).to.exist; }); - it('should submit form that is specified in form property', async () => { + it("should submit form that is specified in form property", async () => { const el = await fixture(html`
button
`); - const form = el.querySelector('form') as HTMLFormElement; - form.addEventListener('submit', e => e.preventDefault()); - const blButton = el.querySelector('bl-button') as typeOfBlButton; + const form = el.querySelector("form") as HTMLFormElement; + + form.addEventListener("submit", e => e.preventDefault()); + const blButton = el.querySelector("bl-button") as typeOfBlButton; + blButton.form = form; - const button = el.querySelector('bl-button')?.shadowRoot?.querySelector('button'); + const button = el.querySelector("bl-button")?.shadowRoot?.querySelector("button"); setTimeout(() => button?.click()); - const ev = await oneEvent(form, 'submit'); + const ev = await oneEvent(form, "submit"); + expect(ev).to.exist; }); }); diff --git a/src/components/button/bl-button.ts b/src/components/button/bl-button.ts index 3b41487c..fee715c6 100644 --- a/src/components/button/bl-button.ts +++ b/src/components/button/bl-button.ts @@ -1,17 +1,17 @@ -import { CSSResultGroup, html, LitElement, TemplateResult } from 'lit'; -import { customElement, property, state, query } from 'lit/decorators.js'; -import { classMap } from 'lit/directives/class-map.js'; -import { ifDefined } from 'lit/directives/if-defined.js'; -import { submit } from '@open-wc/form-helpers'; -import { event, EventDispatcher } from '../../utilities/event'; -import style from './bl-button.css'; -import '../icon/bl-icon'; -import { BaklavaIcon } from '../icon/icon-list'; - -export type ButtonVariant = 'primary' | 'secondary' | 'tertiary'; -export type ButtonKind = 'default' | 'neutral' | 'success' | 'danger'; -export type ButtonSize = 'small' | 'medium' | 'large'; -export type TargetType = '_blank' | '_parent' | '_self' | '_top'; +import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; +import { customElement, property, state, query } from "lit/decorators.js"; +import { classMap } from "lit/directives/class-map.js"; +import { ifDefined } from "lit/directives/if-defined.js"; +import { submit } from "@open-wc/form-helpers"; +import { event, EventDispatcher } from "../../utilities/event"; +import "../icon/bl-icon"; +import { BaklavaIcon } from "../icon/icon-list"; +import style from "./bl-button.css"; + +export type ButtonVariant = "primary" | "secondary" | "tertiary"; +export type ButtonKind = "default" | "neutral" | "success" | "danger"; +export type ButtonSize = "small" | "medium" | "large"; +export type TargetType = "_blank" | "_parent" | "_self" | "_top"; /** * @tag bl-button @@ -21,7 +21,7 @@ export type TargetType = '_blank' | '_parent' | '_self' | '_top'; * @cssproperty [--bl-button-justify=center] Sets the justify-content property of button * */ -@customElement('bl-button') +@customElement("bl-button") export default class BlButton extends LitElement { static get styles(): CSSResultGroup { return [style]; @@ -31,19 +31,19 @@ export default class BlButton extends LitElement { * Sets the button variant */ @property({ type: String, reflect: true }) - variant: ButtonVariant = 'primary'; + variant: ButtonVariant = "primary"; /** * Sets the button kind */ @property({ type: String, reflect: true }) - kind: ButtonKind = 'default'; + kind: ButtonKind = "default"; /** * Sets the button size */ @property({ type: String, reflect: true }) - size: ButtonSize = 'medium'; + size: ButtonSize = "medium"; /** * Sets the button label. Used for accessibility. @@ -54,7 +54,7 @@ export default class BlButton extends LitElement { /** * Sets the button label for loading status. */ - @property({ type: String, attribute: 'loading-label' }) + @property({ type: String, attribute: "loading-label" }) loadingLabel: string; /** @@ -85,13 +85,13 @@ export default class BlButton extends LitElement { * Sets the anchor target. Used when `href` is set. */ @property({ type: String }) - target?: TargetType = '_self'; + target?: TargetType = "_self"; /** * Sets the type of the button. Set `submit` to use button as the submitter of parent form. */ @property({ type: String }) - type: 'submit'; + type: "submit"; /** * Sets button type to dropdown @@ -105,7 +105,6 @@ export default class BlButton extends LitElement { @property({ type: Boolean, reflect: true }) autofocus = false; - /** * Sets the associated form of the button. Use when `type` is set to `submit` and button is not inside the target form. */ @@ -118,13 +117,13 @@ export default class BlButton extends LitElement { @state({}) active = false; - @query('.button') + @query(".button") private button: HTMLAnchorElement | HTMLButtonElement; /** * Fires when button clicked */ - @event('bl-click') private onClick: EventDispatcher; + @event("bl-click") private onClick: EventDispatcher; private get _isActive() { return this.active; @@ -140,15 +139,15 @@ export default class BlButton extends LitElement { } private _handleClick() { - if (this.type === 'submit') { + if (this.type === "submit") { let targetForm: HTMLFormElement; if (this.form instanceof HTMLFormElement) { targetForm = this.form; - } else if (typeof this.form === 'string') { + } else if (typeof this.form === "string") { targetForm = document.getElementById(this.form) as HTMLFormElement; } else { - targetForm = this.closest('form') as HTMLFormElement; + targetForm = this.closest("form") as HTMLFormElement; } if (targetForm) { @@ -156,7 +155,7 @@ export default class BlButton extends LitElement { } } - this.onClick('Click event fired!'); + this.onClick("Click event fired!"); } focus() { @@ -169,15 +168,17 @@ export default class BlButton extends LitElement { get _hasDefaultSlot() { const childNodes = [...this.childNodes]; + return childNodes.some(node => { const nodeType = node.nodeType; + // has only text node. - if (nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') { + if (nodeType === node.TEXT_NODE && node.textContent?.trim() !== "") { return true; } // has element node, it should not have slot attribute. if (nodeType === node.ELEMENT_NODE) { - if (!(node as HTMLElement).hasAttribute('slot')) { + if (!(node as HTMLElement).hasAttribute("slot")) { return true; } } @@ -189,17 +190,17 @@ export default class BlButton extends LitElement { const isDisabled = this.loading || this.disabled; const label = this.loading && this.loadingLabel ? this.loadingLabel : html``; const isAnchor = !!this.href; - const icon = this.icon ? html`` : ''; + const icon = this.icon ? html`` : ""; const loadingIcon = this.loading ? html`` - : ''; + : ""; const slots = html`${icon} ${label}`; - const caret = this.dropdown ? this.caretTemplate() : ''; + const caret = this.dropdown ? this.caretTemplate() : ""; const classes = classMap({ - 'button': true, - 'has-icon': this.icon || this._hasIconSlot, - 'has-content': this._hasDefaultSlot, - 'active': !isAnchor && this._isActive, + "button": true, + "has-icon": this.icon || this._hasIconSlot, + "has-content": this._hasDefaultSlot, + "active": !isAnchor && this._isActive, }); return isAnchor @@ -228,6 +229,6 @@ export default class BlButton extends LitElement { declare global { interface HTMLElementTagNameMap { - 'bl-button': BlButton; + "bl-button": BlButton; } } diff --git a/src/components/checkbox-group/bl-checkbox-group.test.ts b/src/components/checkbox-group/bl-checkbox-group.test.ts index 03f78ed8..b793a908 100644 --- a/src/components/checkbox-group/bl-checkbox-group.test.ts +++ b/src/components/checkbox-group/bl-checkbox-group.test.ts @@ -1,18 +1,18 @@ -import { elementUpdated, expect, fixture, html } from '@open-wc/testing'; -import { sendKeys } from '@web/test-runner-commands'; -import BlCheckboxGroup from './bl-checkbox-group'; -import './checkbox/bl-checkbox'; +import { elementUpdated, expect, fixture, html } from "@open-wc/testing"; +import { sendKeys } from "@web/test-runner-commands"; +import BlCheckboxGroup from "./bl-checkbox-group"; +import "./checkbox/bl-checkbox"; -describe('bl-checkbox-group', () => { - it('should be defined checkbox group instance', () => { +describe("bl-checkbox-group", () => { + it("should be defined checkbox group instance", () => { //when - const el = document.createElement('bl-checkbox-group'); + const el = document.createElement("bl-checkbox-group"); //then expect(el).instanceOf(BlCheckboxGroup); }); - it('should be rendered with default values', async () => { + it("should be rendered with default values", async () => { //when const el = await fixture( html` @@ -34,10 +34,10 @@ describe('bl-checkbox-group', () => { ); }); - it('should set correct options checked with a value', async () => { + it("should set correct options checked with a value", async () => { //when const el = await fixture( - html` + html` Basketball Football Tennis @@ -50,8 +50,8 @@ describe('bl-checkbox-group', () => { expect(el.options[2].checked).to.be.true; }); - describe('keyboard navigation', () => { - it('should focus first option with tab key', async () => { + describe("keyboard navigation", () => { + it("should focus first option with tab key", async () => { //when const el = await fixture( html`
@@ -67,20 +67,20 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[0]); }); - it('should focus next option with right arrow key', async () => { + it("should focus next option with right arrow key", async () => { //when const el = await fixture( html`
@@ -96,23 +96,23 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'ArrowRight', + press: "ArrowRight", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[1]); }); - it('should focus next option with down arrow key', async () => { + it("should focus next option with down arrow key", async () => { //when const el = await fixture( html`
@@ -128,23 +128,23 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'ArrowDown', + press: "ArrowDown", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[1]); }); - it('should focus previous option with up arrow key', async () => { + it("should focus previous option with up arrow key", async () => { //when const el = await fixture( html`
@@ -160,26 +160,26 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'ArrowDown', + press: "ArrowDown", }); await sendKeys({ - press: 'ArrowUp', + press: "ArrowUp", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[0]); }); - it('should focus previous option with left arrow key', async () => { + it("should focus previous option with left arrow key", async () => { //when const el = await fixture( html`
@@ -195,26 +195,26 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'ArrowRight', + press: "ArrowRight", }); await sendKeys({ - press: 'ArrowLeft', + press: "ArrowLeft", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[0]); }); - it('should select current option with space key', async () => { + it("should select current option with space key", async () => { //when const el = await fixture( html`
@@ -230,24 +230,24 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: ' ', + press: " ", }); //then expect(checkboxGroup?.value.length).to.equal(1); - expect(checkboxGroup?.value[0]).to.equal('basketball'); + expect(checkboxGroup?.value[0]).to.equal("basketball"); }); - it('should focus the next option with Tab key & previous option with Shift+Tab key', async () => { + it("should focus the next option with Tab key & previous option with Shift+Tab key", async () => { //when const el = await fixture( html`
@@ -262,34 +262,34 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'Tab', + press: "Tab", }); // Shift+Tab await sendKeys({ - down: 'Shift', + down: "Shift", }); await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - up: 'Shift', + up: "Shift", }); //then expect(document.activeElement).to.equal(checkboxGroup?.options[0]); }); - it('should focus out of the group with tab key when the last element is active', async () => { + it("should focus out of the group with tab key when the last element is active", async () => { //when const el = await fixture( html`
@@ -303,21 +303,21 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'Tab', + press: "Tab", }); //then - expect(document.activeElement).to.equal(el.querySelector('#nextinput')); + expect(document.activeElement).to.equal(el.querySelector("#nextinput")); }); - it('should not respond any other keys', async () => { + it("should not respond any other keys", async () => { //when const el = await fixture( html`
@@ -333,16 +333,16 @@ describe('bl-checkbox-group', () => { await elementUpdated(el); - el.querySelector('#previnput')?.focus(); + el.querySelector("#previnput")?.focus(); - const checkboxGroup = el.querySelector('bl-checkbox-group'); + const checkboxGroup = el.querySelector("bl-checkbox-group"); //given await sendKeys({ - press: 'Tab', + press: "Tab", }); await sendKeys({ - press: 'A', + press: "A", }); //then diff --git a/src/components/checkbox-group/bl-checkbox-group.ts b/src/components/checkbox-group/bl-checkbox-group.ts index a8cbee76..e117a7c0 100644 --- a/src/components/checkbox-group/bl-checkbox-group.ts +++ b/src/components/checkbox-group/bl-checkbox-group.ts @@ -1,14 +1,14 @@ -import { FormControlMixin } from '@open-wc/form-control'; -import { CSSResultGroup, html, LitElement, TemplateResult } from 'lit'; -import { customElement, property } from 'lit/decorators.js'; -import 'element-internals-polyfill'; -import { event, EventDispatcher } from '../../utilities/event'; -import style from './bl-checkbox-group.css'; -import BlCheckbox, { blCheckboxTag } from './checkbox/bl-checkbox'; +import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; +import { customElement, property } from "lit/decorators.js"; +import { FormControlMixin } from "@open-wc/form-control"; +import "element-internals-polyfill"; +import { event, EventDispatcher } from "../../utilities/event"; +import style from "./bl-checkbox-group.css"; +import BlCheckbox, { blCheckboxTag } from "./checkbox/bl-checkbox"; -export const blCheckboxGroupTag = 'bl-checkbox-group'; +export const blCheckboxGroupTag = "bl-checkbox-group"; -export const blChangeEventName = 'bl-checkbox-group-change'; +export const blChangeEventName = "bl-checkbox-group-change"; /** * @tag bl-checkbox-group @@ -56,19 +56,19 @@ export default class BlCheckboxGroup extends FormControlMixin(LitElement) { super.connectedCallback(); this.tabIndex = 0; - this.addEventListener('focus', this.handleFocus); - this.addEventListener('keydown', this.handleKeyDown); + this.addEventListener("focus", this.handleFocus); + this.addEventListener("keydown", this.handleKeyDown); } disconnectedCallback(): void { super.disconnectedCallback(); - this.removeEventListener('focus', this.handleFocus); - this.removeEventListener('keydown', this.handleKeyDown); + this.removeEventListener("focus", this.handleFocus); + this.removeEventListener("keydown", this.handleKeyDown); } updated(changedProperties: Map): void { - if (changedProperties.has('value')) { - this.setValue(this.checkedOptions.join(',')); + if (changedProperties.has("value")) { + this.setValue(this.checkedOptions.join(",")); this.onChange(this.value); } } @@ -76,7 +76,7 @@ export default class BlCheckboxGroup extends FormControlMixin(LitElement) { /** * Fires when checkbox group value changed */ - @event('bl-checkbox-group-change') private onChange: EventDispatcher; + @event("bl-checkbox-group-change") private onChange: EventDispatcher; private focusedOptionIndex = 0; @@ -86,15 +86,15 @@ export default class BlCheckboxGroup extends FormControlMixin(LitElement) { private handleKeyDown(event: KeyboardEvent) { // Next option - if (['ArrowDown', 'ArrowRight'].includes(event.key)) { + if (["ArrowDown", "ArrowRight"].includes(event.key)) { this.focusedOptionIndex++; // Previous option - } else if (['ArrowUp', 'ArrowLeft'].includes(event.key)) { + } else if (["ArrowUp", "ArrowLeft"].includes(event.key)) { this.focusedOptionIndex--; // next or previous option with tab / hold shift & tab - } else if (event.key === 'Tab') { + } else if (event.key === "Tab") { event.shiftKey ? this.focusedOptionIndex-- : this.focusedOptionIndex++; if (this.focusedOptionIndex === this.availableOptions.length) { diff --git a/src/components/checkbox-group/checkbox/bl-checkbox.test.ts b/src/components/checkbox-group/checkbox/bl-checkbox.test.ts index cecceca8..490d4d9a 100644 --- a/src/components/checkbox-group/checkbox/bl-checkbox.test.ts +++ b/src/components/checkbox-group/checkbox/bl-checkbox.test.ts @@ -1,13 +1,14 @@ -import { assert, fixture, html, elementUpdated, expect, oneEvent } from '@open-wc/testing'; -import BlCheckbox from './bl-checkbox'; +import { assert, fixture, html, elementUpdated, expect, oneEvent } from "@open-wc/testing"; +import BlCheckbox from "./bl-checkbox"; + +describe("bl-checkbox", () => { + it("should be defined checkbox instance", () => { + const el = document.createElement("bl-checkbox"); -describe('bl-checkbox', () => { - it('should be defined checkbox instance', () => { - const el = document.createElement('bl-checkbox'); assert.instanceOf(el, BlCheckbox); }); - it('should be rendered with default values', async () => { + it("should be rendered with default values", async () => { const el = await fixture(html``); assert.shadowDom.equal( @@ -24,81 +25,86 @@ describe('bl-checkbox', () => { ); }); - it('should be rendered with correct label', async () => { - const labelText = 'test label'; + it("should be rendered with correct label", async () => { + const labelText = "test label"; const el = await fixture(html`${labelText}`); - expect(el.shadowRoot?.querySelector('slot')).to.exist; + expect(el.shadowRoot?.querySelector("slot")).to.exist; expect(el.textContent).to.eq(labelText); }); - it('should be rendered with correct label when label was changed', async () => { + it("should be rendered with correct label when label was changed", async () => { const el = await fixture(html`test label`); - const newLabelText = 'new test label'; + const newLabelText = "new test label"; + el.textContent = newLabelText; await elementUpdated(el); - expect(el.textContent).to.eq('new test label'); + expect(el.textContent).to.eq("new test label"); }); - it('should be rendered with check icon when checkbox checked', async () => { + it("should be rendered with check icon when checkbox checked", async () => { const el = await fixture(html``); - const iconEl = el.shadowRoot?.querySelector('bl-icon'); + const iconEl = el.shadowRoot?.querySelector("bl-icon"); - expect(iconEl?.getAttribute('name')).to.eq('check'); + expect(iconEl?.getAttribute("name")).to.eq("check"); }); - it('should render with `checked` attribute as checked value', async () => { + it("should render with `checked` attribute as checked value", async () => { const el = await fixture(html``); - expect(el.shadowRoot?.querySelector('input')?.checked).to.eq(true); + + expect(el.shadowRoot?.querySelector("input")?.checked).to.eq(true); }); - describe('attributes', () => { - it('should render with `disabled` attribute as disabled', async () => { + describe("attributes", () => { + it("should render with `disabled` attribute as disabled", async () => { const el = await fixture(html``); - expect(el.shadowRoot?.querySelector('input')?.hasAttribute('disabled')).to.eq(true); + + expect(el.shadowRoot?.querySelector("input")?.hasAttribute("disabled")).to.eq(true); }); - it('should not render with `indeterminate` attribute as indeterminate', async () => { + it("should not render with `indeterminate` attribute as indeterminate", async () => { const el = await fixture(html``); - expect(el.shadowRoot?.querySelector('input')?.hasAttribute('indeterminate')).to.eq(false); + + expect(el.shadowRoot?.querySelector("input")?.hasAttribute("indeterminate")).to.eq(false); }); }); - describe('update', () => { - it('should set checked to false when indeterminate set to true', async () => { + describe("update", () => { + it("should set checked to false when indeterminate set to true", async () => { const el = await fixture(html``); - el.setAttribute('indeterminate', 'true'); + el.setAttribute("indeterminate", "true"); await elementUpdated(el); - expect(el.hasAttribute('checked')).to.eq(false); + expect(el.hasAttribute("checked")).to.eq(false); }); - it('should set checked to false when indeterminate and checked set to true at start', async () => { + it("should set checked to false when indeterminate and checked set to true at start", async () => { const el = await fixture(html``); - expect(el.hasAttribute('checked')).to.eq(false); + + expect(el.hasAttribute("checked")).to.eq(false); }); }); - describe('events', () => { - it('should fire bl-checkbox-change event with detail is true when checkbox is unchecked', async () => { + describe("events", () => { + it("should fire bl-checkbox-change event with detail is true when checkbox is unchecked", async () => { const el = await fixture(html``); - const checkbox = el.shadowRoot?.querySelector('input'); + const checkbox = el.shadowRoot?.querySelector("input"); setTimeout(() => checkbox?.click()); - const ev = await oneEvent(el, 'bl-checkbox-change'); + const ev = await oneEvent(el, "bl-checkbox-change"); expect(ev).to.exist; expect(ev.detail).to.be.equal(true); }); - it('should fire bl-checkbox-change event with detail is false when checkbox is checked', async () => { + it("should fire bl-checkbox-change event with detail is false when checkbox is checked", async () => { const el = await fixture(html``); - const checkbox = el.shadowRoot?.querySelector('input'); + const checkbox = el.shadowRoot?.querySelector("input"); setTimeout(() => checkbox?.click()); - const ev = await oneEvent(el, 'bl-checkbox-change'); + const ev = await oneEvent(el, "bl-checkbox-change"); expect(ev).to.exist; expect(ev.detail).to.be.equal(false); diff --git a/src/components/checkbox-group/checkbox/bl-checkbox.ts b/src/components/checkbox-group/checkbox/bl-checkbox.ts index 003f5039..35ef1edc 100644 --- a/src/components/checkbox-group/checkbox/bl-checkbox.ts +++ b/src/components/checkbox-group/checkbox/bl-checkbox.ts @@ -1,16 +1,16 @@ -import { FormControlMixin } from '@open-wc/form-control'; -import { CSSResultGroup, html, LitElement, TemplateResult } from 'lit'; -import { customElement, property, query } from 'lit/decorators.js'; -import { live } from 'lit/directives/live.js'; -import { ifDefined } from 'lit/directives/if-defined.js'; -import 'element-internals-polyfill'; -import { event, EventDispatcher } from '../../../utilities/event'; -import '../../icon/bl-icon'; -import type BlCheckboxGroup from '../bl-checkbox-group'; -import style from './bl-checkbox.css'; -import { blCheckboxGroupTag, blChangeEventName } from '../bl-checkbox-group'; - -export const blCheckboxTag = 'bl-checkbox'; +import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; +import { customElement, property, query } from "lit/decorators.js"; +import { ifDefined } from "lit/directives/if-defined.js"; +import { live } from "lit/directives/live.js"; +import { FormControlMixin } from "@open-wc/form-control"; +import "element-internals-polyfill"; +import { event, EventDispatcher } from "../../../utilities/event"; +import "../../icon/bl-icon"; +import type BlCheckboxGroup from "../bl-checkbox-group"; +import { blCheckboxGroupTag, blChangeEventName } from "../bl-checkbox-group"; +import style from "./bl-checkbox.css"; + +export const blCheckboxTag = "bl-checkbox"; /** * @tag bl-checkbox @@ -56,19 +56,19 @@ export default class BlCheckbox extends FormControlMixin(LitElement) { /** * Fires whenever user change the value of the checkbox. */ - @event('bl-checkbox-change') private onChange: EventDispatcher; + @event("bl-checkbox-change") private onChange: EventDispatcher; /** * Fires when checkbox is focused */ - @event('bl-focus') private onFocus: EventDispatcher; + @event("bl-focus") private onFocus: EventDispatcher; /** * Fires when checkbox is blurred */ - @event('bl-blur') private onBlur: EventDispatcher; + @event("bl-blur") private onBlur: EventDispatcher; - @query('[type=checkbox]') checkboxElement: HTMLElement; + @query("[type=checkbox]") checkboxElement: HTMLElement; protected field: BlCheckboxGroup | null; @@ -85,7 +85,7 @@ export default class BlCheckbox extends FormControlMixin(LitElement) { } updated(changedProperties: Map): void { - if (changedProperties.has('checked') && this.required && this.checked) { + if (changedProperties.has("checked") && this.required && this.checked) { this.setValue(this.value); } } @@ -94,7 +94,7 @@ export default class BlCheckbox extends FormControlMixin(LitElement) { super.update(changedProperties); if (this.indeterminate && this.checked) { this.checked = false; - this.requestUpdate('checked', true); + this.requestUpdate("checked", true); } } @@ -118,6 +118,7 @@ export default class BlCheckbox extends FormControlMixin(LitElement) { private handleChange(event: CustomEvent) { const target = event.target as HTMLInputElement; + this.checked = target.checked; this.onChange(target.checked); this.indeterminate = false; @@ -128,9 +129,10 @@ export default class BlCheckbox extends FormControlMixin(LitElement) { }; render(): TemplateResult { - let icon = ''; - if (this.checked) icon = 'check'; - if (this.indeterminate) icon = 'minus'; + let icon = ""; + + if (this.checked) icon = "check"; + if (this.indeterminate) icon = "minus"; return html`