diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 6a6da8ee..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": [ - "next/core-web-vitals", - "plugin:storybook/recommended" - ] -} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..2daef330 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,77 @@ +import nextPlugin from '@next/eslint-plugin-next'; +import importPlugin from 'eslint-plugin-import'; +import lodashPlugin from 'eslint-plugin-lodash'; +import storybook from 'eslint-plugin-storybook'; +import unusedImportsPlugin from 'eslint-plugin-unused-imports'; +import tsParser from '@typescript-eslint/parser'; + +export default [ + ...storybook.configs['flat/recommended'], + { + files: ['**/*.{js,jsx,ts,tsx}'], + plugins: { + next: nextPlugin, + import: importPlugin, + lodash: lodashPlugin, + 'unused-imports': unusedImportsPlugin, + }, + languageOptions: { + parser: tsParser, + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + ecmaFeatures: { + jsx: true, + }, + }, + }, + settings: { + 'import/resolver': { + typescript: { + alwaysTryTypes: true, + }, + node: { + extensions: ['.js', '.jsx', '.ts', '.tsx'], + }, + }, + }, + rules: { + 'import/no-anonymous-default-export': 'off', + 'lodash/import-scope': ['error', 'method'], + 'no-unused-vars': 'off', + 'unused-imports/no-unused-imports': 'error', + 'unused-imports/no-unused-vars': [ + 'error', + { + vars: 'all', + varsIgnorePattern: '^_', + args: 'after-used', + argsIgnorePattern: '^_', + }, + ], + 'import/no-named-as-default-member': 'off', + 'import/namespace': ['error', { allowComputed: true }], + 'import/no-cycle': 'error', + 'import/no-self-import': 'error', + 'import/no-useless-path-segments': 'error', + 'import/order': [ + 'error', + { + groups: [ + 'builtin', + 'external', + 'internal', + 'parent', + 'sibling', + 'index', + ], + 'newlines-between': 'always', + alphabetize: { + order: 'asc', + caseInsensitive: true, + }, + }, + ], + }, + }, +]; diff --git a/package-lock.json b/package-lock.json index 5d129e93..4acce1ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,13 @@ "@formatjs/intl-localematcher": "^0.6.1", "@hcaptcha/react-hcaptcha": "^1.12.0", "@next/bundle-analyzer": "^15.4.4", + "@typescript-eslint/parser": "^8.41.0", "classnames": "^2.5.1", + "eslint-import-resolver-node": "^0.3.9", + "eslint-import-resolver-typescript": "^4.4.4", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-lodash": "^8.0.0", + "eslint-plugin-unused-imports": "^4.2.0", "filesize": "^11.0.2", "js-cookie": "^3.0.5", "lodash": "^4.17.21", @@ -3930,6 +3936,17 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/@emnapi/core": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.5.tgz", + "integrity": "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.0.4", + "tslib": "^2.4.0" + } + }, "node_modules/@emnapi/runtime": { "version": "1.4.5", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.5.tgz", @@ -3940,6 +3957,16 @@ "tslib": "^2.4.0" } }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.4.tgz", + "integrity": "sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@emotion/babel-plugin": { "version": "11.13.5", "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz", @@ -5359,6 +5386,18 @@ "react": ">=16" } }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", + "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", + "@tybys/wasm-util": "^0.10.0" + } + }, "node_modules/@next/bundle-analyzer": { "version": "15.4.4", "resolved": "https://registry.npmjs.org/@next/bundle-analyzer/-/bundle-analyzer-15.4.4.tgz", @@ -5546,7 +5585,6 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -5559,7 +5597,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, "engines": { "node": ">= 8" } @@ -5568,7 +5605,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -5577,6 +5613,16 @@ "node": ">= 8" } }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.4.0" + } + }, "node_modules/@pmmmwh/react-refresh-webpack-plugin": { "version": "0.5.15", "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.15.tgz", @@ -5708,7 +5754,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", - "dev": true, "license": "MIT" }, "node_modules/@rushstack/eslint-patch": { @@ -6520,27 +6565,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@testing-library/dom": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.1.0.tgz", - "integrity": "sha512-wdsYKy5zupPyLCW2Je5DLHSxSfbIp6h80WoHOQc+RPtmPGA52O9x5MJEkv92Sjonpq+poOAtUKhh1kBGAXBrNA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.3.0", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@testing-library/jest-dom": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.5.0.tgz", @@ -6597,6 +6621,16 @@ "@testing-library/dom": ">=7.21.4" } }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.0.tgz", + "integrity": "sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/aria-query": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", @@ -6736,8 +6770,7 @@ "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" }, "node_modules/@types/liftoff": { "version": "4.0.3", @@ -7076,20 +7109,6 @@ "react": "^18.0.0" } }, - "node_modules/@types/wordpress__block-editor/node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@types/wordpress__block-editor/node_modules/react-autosize-textarea": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/react-autosize-textarea/-/react-autosize-textarea-7.1.0.tgz", @@ -7106,21 +7125,6 @@ "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@types/wordpress__block-editor/node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, "node_modules/@types/wordpress__block-editor/node_modules/use-memo-one": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", @@ -7336,35 +7340,6 @@ "react": "^18.0.0" } }, - "node_modules/@types/wordpress__blocks/node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@types/wordpress__blocks/node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, "node_modules/@types/wordpress__blocks/node_modules/use-memo-one": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", @@ -7444,28 +7419,198 @@ "react": "^18.0.0" } }, - "node_modules/@types/wordpress__rich-text/node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "node_modules/@types/wordpress__rich-text/node_modules/use-memo-one": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", + "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==", "dev": true, "license": "MIT", - "peer": true, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.41.0.tgz", + "integrity": "sha512-gTtSdWX9xiMPA/7MV9STjJOOYtWwIJIYxkQxnSV1U3xcE+mnJSH3f6zI0RYP+ew66WSlZ5ed+h0VCxsvdC1jJg==", + "license": "MIT", "dependencies": { - "loose-envify": "^1.1.0" + "@typescript-eslint/scope-manager": "8.41.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/typescript-estree": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0", + "debug": "^4.3.4" }, "engines": { - "node": ">=0.10.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/@types/wordpress__rich-text/node_modules/use-memo-one": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", - "integrity": "sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==", - "dev": true, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/project-service": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.41.0.tgz", + "integrity": "sha512-b8V9SdGBQzQdjJ/IO3eDifGpDBJfvrNTp2QD9P2BeqWTGrRibgfgIlBSw6z3b6R7dPzg752tOs4u/7yCLxksSQ==", "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.41.0", + "@typescript-eslint/types": "^8.41.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.41.0.tgz", + "integrity": "sha512-n6m05bXn/Cd6DZDGyrpXrELCPVaTnLdPToyhBoFkLIMznRUQUEQdSp96s/pcWSQdqOhrgR1mzJ+yItK7T+WPMQ==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.41.0.tgz", + "integrity": "sha512-TDhxYFPUYRFxFhuU5hTIJk+auzM/wKvWgoNYOPcOf6i4ReYlOoYN8q1dV5kOTjNQNJgzWN3TUUQMtlLOcUgdUw==", + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.41.0.tgz", + "integrity": "sha512-9EwxsWdVqh42afLbHP90n2VdHaWU/oWgbH2P0CfcNfdKL7CuKpwMQGjwev56vWu9cSKU7FWSu6r9zck6CVfnag==", + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.41.0.tgz", + "integrity": "sha512-D43UwUYJmGhuwHfY7MtNKRZMmfd8+p/eNSfFe6tH5mbVDto+VQCayeAt35rOx3Cs6wxD16DQtIKw/YXxt5E0UQ==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.41.0", + "@typescript-eslint/tsconfig-utils": "8.41.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.41.0.tgz", + "integrity": "sha512-+GeGMebMCy0elMNg67LRNoVnUFPIm37iu5CmHESVx56/9Jsfdpsvbv605DQ81Pi/x11IdKUsS5nzgTYbCQU9fg==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.41.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/@typescript-eslint/project-service": { @@ -7662,6 +7807,256 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", + "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", + "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", + "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", + "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", + "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", + "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", + "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", + "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", + "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", + "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", + "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", + "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", + "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", + "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", + "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", + "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", + "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", + "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", + "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@use-gesture/core": { "version": "10.3.1", "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz", @@ -9456,7 +9851,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -9482,7 +9876,6 @@ "version": "3.1.9", "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -9544,7 +9937,6 @@ "version": "1.2.6", "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -9566,7 +9958,6 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -9585,7 +9976,6 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -9621,7 +10011,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", @@ -9714,7 +10103,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -9769,7 +10157,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -10055,8 +10442,7 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", @@ -10179,7 +10565,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -10189,7 +10574,6 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, "license": "MIT", "dependencies": { "fill-range": "^7.1.1" @@ -10400,7 +10784,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.0", @@ -10419,7 +10802,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -10433,7 +10815,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -10864,8 +11245,7 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/console-browserify": { "version": "1.2.0", @@ -11300,7 +11680,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -11318,7 +11697,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -11336,7 +11714,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -11439,7 +11816,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -11466,7 +11842,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -11693,7 +12068,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -11847,7 +12221,6 @@ "version": "1.24.0", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", - "dev": true, "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.2", @@ -11916,7 +12289,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -11926,7 +12298,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -11970,7 +12341,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -11983,7 +12353,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -11999,7 +12368,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", - "dev": true, "license": "MIT", "dependencies": { "hasown": "^2.0.2" @@ -12012,7 +12380,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", - "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.2.7", @@ -12246,29 +12613,39 @@ "typescript": ">=4.8.4 <5.9.0" } }, - "node_modules/eslint-config-next/node_modules/@typescript-eslint/parser": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz", - "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==", + "node_modules/eslint-config-next/node_modules/eslint-import-resolver-typescript": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", + "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", "dev": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", - "debug": "^4.3.4" + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.4.0", + "get-tsconfig": "^4.10.0", + "is-bun-module": "^2.0.0", + "stable-hash": "^0.0.5", + "tinyglobby": "^0.2.13", + "unrs-resolver": "^1.6.2" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://opencollective.com/eslint-import-resolver-typescript" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } } }, "node_modules/eslint-config-next/node_modules/ignore": { @@ -12281,11 +12658,35 @@ "node": ">= 4" } }, + "node_modules/eslint-import-context": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/eslint-import-context/-/eslint-import-context-0.1.9.tgz", + "integrity": "sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==", + "license": "MIT", + "dependencies": { + "get-tsconfig": "^4.10.1", + "stable-hash-x": "^0.2.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-context" + }, + "peerDependencies": { + "unrs-resolver": "^1.0.0" + }, + "peerDependenciesMeta": { + "unrs-resolver": { + "optional": true + } + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", - "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", @@ -12296,41 +12697,48 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", - "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", - "dev": true, + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-4.4.4.tgz", + "integrity": "sha512-1iM2zeBvrYmUNTj2vSC/90JTHDth+dfOfiNKkxApWRsTJYNrc8rOdxxIf5vazX+BiAXTeOT0UvWpGI/7qIWQOw==", + "license": "ISC", "dependencies": { - "debug": "^4.3.4", - "enhanced-resolve": "^5.12.0", - "eslint-module-utils": "^2.7.4", - "fast-glob": "^3.3.1", - "get-tsconfig": "^4.5.0", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3" + "debug": "^4.4.1", + "eslint-import-context": "^0.1.8", + "get-tsconfig": "^4.10.1", + "is-bun-module": "^2.0.0", + "stable-hash-x": "^0.2.0", + "tinyglobby": "^0.2.14", + "unrs-resolver": "^1.7.11" }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^16.17.0 || >=18.6.0" }, "funding": { - "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + "url": "https://opencollective.com/eslint-import-resolver-typescript" }, "peerDependencies": { "eslint": "*", - "eslint-plugin-import": "*" + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } } }, "node_modules/eslint-module-utils": { "version": "2.12.1", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^3.2.7" @@ -12348,7 +12756,6 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, "dependencies": { "ms": "^2.1.1" } @@ -12357,7 +12764,6 @@ "version": "2.32.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", - "dev": true, "license": "MIT", "dependencies": { "@rtsao/scc": "^1.1.0", @@ -12391,7 +12797,6 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, "dependencies": { "ms": "^2.1.1" } @@ -12400,7 +12805,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -12412,7 +12816,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, "dependencies": { "minimist": "^1.2.0" }, @@ -12424,7 +12827,6 @@ "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", @@ -12472,6 +12874,21 @@ "node": ">= 0.4" } }, + "node_modules/eslint-plugin-lodash": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-lodash/-/eslint-plugin-lodash-8.0.0.tgz", + "integrity": "sha512-7DA8485FolmWRzh+8t4S8Pzin2TTuWfb0ZW3j/2fYElgk82ZanFz8vDcvc4BBPceYdX1p/za+tkbO68maDBGGw==", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": ">=9.0.0" + } + }, "node_modules/eslint-plugin-react": { "version": "7.37.5", "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", @@ -12567,6 +12984,21 @@ "eslint": ">=8" } }, + "node_modules/eslint-plugin-unused-imports": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.2.0.tgz", + "integrity": "sha512-hLbJ2/wnjKq4kGA9AUaExVFIbNzyxYdVo49QZmKCnhk5pc9wcYRbfgLHvWJ8tnsdcseGhoUAddm9gn/lt+d74w==", + "license": "MIT", + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0", + "eslint": "^9.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, "node_modules/eslint-scope": { "version": "8.4.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", @@ -12701,7 +13133,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -12776,7 +13207,6 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -12793,7 +13223,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -12840,7 +13269,6 @@ "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, "dependencies": { "reusify": "^1.0.4" } @@ -12909,7 +13337,6 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" @@ -13031,7 +13458,6 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.2.7" @@ -13203,7 +13629,6 @@ "version": "1.1.8", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -13224,7 +13649,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -13255,7 +13679,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -13280,7 +13703,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -13294,7 +13716,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -13309,10 +13730,10 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", - "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", - "dev": true, + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", + "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", + "license": "MIT", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -13399,7 +13820,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, "license": "MIT", "dependencies": { "define-properties": "^1.2.1", @@ -13452,7 +13872,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13541,7 +13960,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13563,7 +13981,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, "dependencies": { "es-define-property": "^1.0.0" }, @@ -13575,7 +13992,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.0" @@ -13591,7 +14007,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13604,7 +14019,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, "dependencies": { "has-symbols": "^1.0.3" }, @@ -14040,7 +14454,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -14093,7 +14506,6 @@ "version": "3.0.5", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -14116,7 +14528,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, "license": "MIT", "dependencies": { "async-function": "^1.0.0", @@ -14136,7 +14547,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, "license": "MIT", "dependencies": { "has-bigints": "^1.0.2" @@ -14165,7 +14575,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -14178,11 +14587,31 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-bun-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", + "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", + "license": "MIT", + "dependencies": { + "semver": "^7.7.1" + } + }, + "node_modules/is-bun-module/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -14209,7 +14638,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -14227,7 +14655,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -14260,7 +14687,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -14269,7 +14695,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3" @@ -14294,7 +14719,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -14309,7 +14733,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -14330,7 +14753,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14359,7 +14781,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14372,7 +14793,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -14382,7 +14802,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -14414,7 +14833,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -14445,7 +14863,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14458,7 +14875,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3" @@ -14474,7 +14890,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -14491,7 +14906,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -14509,7 +14923,6 @@ "version": "1.1.15", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, "license": "MIT", "dependencies": { "which-typed-array": "^1.1.16" @@ -14549,7 +14962,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14562,7 +14974,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3" @@ -14578,7 +14989,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -14617,7 +15027,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, "license": "MIT" }, "node_modules/isbinaryfile": { @@ -15068,7 +15477,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -15158,7 +15566,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, "engines": { "node": ">= 8" } @@ -15167,7 +15574,6 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, "license": "MIT", "dependencies": { "braces": "^3.0.3", @@ -15267,7 +15673,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -15279,7 +15684,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -15373,6 +15777,21 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/napi-postinstall": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.3.tgz", + "integrity": "sha512-uTp172LLXSxuSYHv/kou+f6KW3SMppU9ivthaVTXian9sOt3XM/zHYHpRZiLgQoxeWfYUnslNWQHF1+G71xcow==", + "license": "MIT", + "bin": { + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -15860,7 +16279,6 @@ "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -15889,7 +16307,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -15898,7 +16315,6 @@ "version": "4.1.7", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -15950,7 +16366,6 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.7", @@ -15969,7 +16384,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.7", @@ -16009,7 +16423,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -16141,7 +16554,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", - "dev": true, "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.6", @@ -16405,7 +16817,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -16727,7 +17138,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -18376,7 +18786,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, "funding": [ { "type": "github", @@ -18738,7 +19147,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -18802,7 +19210,6 @@ "version": "1.5.4", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -18995,7 +19402,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } @@ -19069,7 +19476,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -19133,7 +19539,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, "funding": [ { "type": "github", @@ -19172,7 +19577,6 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -19212,7 +19616,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -19229,7 +19632,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -19335,7 +19737,6 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, "bin": { "semver": "bin/semver.js" } @@ -19364,7 +19765,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", @@ -19382,7 +19782,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", @@ -19398,7 +19797,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -19928,7 +20326,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -19948,7 +20345,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -19965,7 +20361,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -19984,7 +20379,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -20133,6 +20527,22 @@ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "license": "BSD-3-Clause" }, + "node_modules/stable-hash": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", + "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/stable-hash-x": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/stable-hash-x/-/stable-hash-x-0.2.0.tgz", + "integrity": "sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/stackframe": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", @@ -20156,7 +20566,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -20332,7 +20741,6 @@ "version": "1.2.10", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -20354,7 +20762,6 @@ "version": "1.0.9", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -20373,7 +20780,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.7", @@ -20403,7 +20809,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, "engines": { "node": ">=4" } @@ -20953,7 +21358,6 @@ "version": "0.2.14", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", - "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.4.4", @@ -20970,7 +21374,6 @@ "version": "6.4.6", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", - "dev": true, "license": "MIT", "peerDependencies": { "picomatch": "^3 || ^4" @@ -20985,7 +21388,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -21047,7 +21449,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" @@ -21069,7 +21470,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=18.12" @@ -21176,7 +21576,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -21191,7 +21590,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", @@ -21211,7 +21609,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", - "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -21233,7 +21630,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.7", @@ -21281,7 +21677,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -21372,6 +21767,40 @@ "node": ">=14.0.0" } }, + "node_modules/unrs-resolver": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", + "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.0" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.11.1", + "@unrs/resolver-binding-android-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-x64": "1.11.1", + "@unrs/resolver-binding-freebsd-x64": "1.11.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-musl": "1.11.1", + "@unrs/resolver-binding-wasm32-wasi": "1.11.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", @@ -21841,7 +22270,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, "license": "MIT", "dependencies": { "is-bigint": "^1.1.0", @@ -21861,7 +22289,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -21889,7 +22316,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, "license": "MIT", "dependencies": { "is-map": "^2.0.3", @@ -21908,7 +22334,6 @@ "version": "1.1.19", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", diff --git a/package.json b/package.json index 2e2493a2..7c81729f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build:analyzer": "ANALYZE=true npm run build", "start": "next start", "lint": "next lint", + "lint:fix": "eslint src --fix", "storybook": "storybook dev -p 4000", "build-storybook": "storybook build", "generate:block": "plop --plopfile ./generators/plopfile.js block", @@ -49,13 +50,19 @@ "@types/wordpress__block-editor": "^11.5.17", "@types/wordpress__blocks": "^12.5.18", "@types/wordpress__rich-text": "^6.4.5", + "@typescript-eslint/parser": "^8.41.0", "@wordpress/api-fetch": "^7.27.0", "@wordpress/components": "^30.0.0", "@wordpress/compose": "^7.27.0", "@wordpress/data": "^10.27.0", "eslint": "^9.32.0", "eslint-config-next": "^15.4.4", + "eslint-import-resolver-node": "^0.3.9", + "eslint-import-resolver-typescript": "^4.4.4", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-lodash": "^8.0.0", "eslint-plugin-storybook": "^0.12.0", + "eslint-plugin-unused-imports": "^4.2.0", "graphql": "^16.11.0", "plop": "^4.0.1", "plop-helper-slugify": "^1.1.0", diff --git a/src/app/[[...uri]]/page.tsx b/src/app/[[...uri]]/page.tsx index cac6e579..acfe315d 100644 --- a/src/app/[[...uri]]/page.tsx +++ b/src/app/[[...uri]]/page.tsx @@ -4,6 +4,7 @@ import { notFound, permanentRedirect, redirect } from 'next/navigation'; import { Templates } from '@/components/global/Templates'; import { PreviewToolbar } from '@/components/molecules/PreviewToolbar'; +import configs from '@/configs.json'; import { useCanonical as getCanonicalUrl } from '@/hooks/use-canonical'; import { getAllURIs, @@ -12,7 +13,6 @@ import { getRedirection, getWpUriFromNextPath, } from '@/lib'; -import configs from '@/configs.json'; // see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config export const revalidate = 3600; // revalidate at most every hour diff --git a/src/app/api/preview-exit/route.ts b/src/app/api/preview-exit/route.ts index 92136625..e77cb1bd 100644 --- a/src/app/api/preview-exit/route.ts +++ b/src/app/api/preview-exit/route.ts @@ -1,6 +1,6 @@ import { draftMode, cookies } from 'next/headers'; -import { NextRequest } from 'next/server'; import { redirect } from 'next/navigation'; +import { NextRequest } from 'next/server'; export async function GET(request: NextRequest) { const path = request.nextUrl.searchParams.get('redirect') ?? '/'; diff --git a/src/app/api/preview/route.ts b/src/app/api/preview/route.ts index ce7d6ad7..dc718ce4 100644 --- a/src/app/api/preview/route.ts +++ b/src/app/api/preview/route.ts @@ -1,6 +1,6 @@ -import { NextResponse, type NextRequest } from 'next/server'; import { draftMode, cookies } from 'next/headers'; import { redirect } from 'next/navigation'; +import { NextResponse, type NextRequest } from 'next/server'; import { getAuthToken, getPreviewNode } from '@/lib'; diff --git a/src/app/api/sitemap/route.tsx b/src/app/api/sitemap/route.tsx index 2517f1f7..64559aee 100644 --- a/src/app/api/sitemap/route.tsx +++ b/src/app/api/sitemap/route.tsx @@ -1,6 +1,7 @@ -import { getSitemapData } from '@/lib'; import { type NextRequest } from 'next/server'; +import { getSitemapData } from '@/lib'; + export const dynamic = 'force-static'; type ContentTypeSitemapDataType = { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2136b58e..c58edb9e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,15 +1,14 @@ import { Metadata, Viewport } from 'next'; import { Inter, Roboto_Mono } from 'next/font/google'; -import { getLocales } from '@/i18n/get-locales'; -import { getDictionary } from '@/i18n/dictionaries'; - -import { LocaleProvider } from '@/contexts/locale-context'; - +import { Gdpr } from '@/components/molecules/Gdpr'; +import { Footer, MainNav } from '@/components/organisms'; import * as footerData from '@/components/organisms/Footer/data'; import * as mainNavData from '@/components/organisms/MainNav/data'; -import { Footer, MainNav } from '@/components/organisms'; -import { Gdpr } from '@/components/molecules/Gdpr'; +import { LocaleProvider } from '@/contexts/locale-context'; +import { getDictionary } from '@/i18n/dictionaries'; +import { getLocales } from '@/i18n/get-locales'; + import '@/css/base/index.css'; diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 1c86922d..6ba3101a 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,9 +1,9 @@ -import { getLocales } from '@/i18n/get-locales'; -import { getDictionaries } from '@/i18n/dictionaries'; - +import { Page404 } from '@/components/global/Page404'; import * as footerData from '@/components/organisms/Footer/data'; import * as mainNavData from '@/components/organisms/MainNav/data'; -import { Page404 } from '@/components/global/Page404'; +import { getDictionaries } from '@/i18n/dictionaries'; +import { getLocales } from '@/i18n/get-locales'; + async function NotFoundPage() { const { defaultLocale } = await getLocales(); diff --git a/src/components/atoms/Button/edit.tsx b/src/components/atoms/Button/edit.tsx index e02795a3..37083d4e 100644 --- a/src/components/atoms/Button/edit.tsx +++ b/src/components/atoms/Button/edit.tsx @@ -1,11 +1,11 @@ -import { ComponentType } from 'react'; -import domReady from '@wordpress/dom-ready'; -import { createHigherOrderComponent } from '@wordpress/compose'; import { BlockEditProps, registerBlockStyle, unregisterBlockStyle, } from '@wordpress/blocks'; +import { createHigherOrderComponent } from '@wordpress/compose'; +import domReady from '@wordpress/dom-ready'; +import { ComponentType } from 'react'; // internal imports import block from './block.json'; diff --git a/src/components/atoms/Button/index.tsx b/src/components/atoms/Button/index.tsx index f4eab0d4..6c762a71 100644 --- a/src/components/atoms/Button/index.tsx +++ b/src/components/atoms/Button/index.tsx @@ -1,5 +1,5 @@ -import { FC } from 'react'; import cx from 'classnames'; +import { FC } from 'react'; import { Link } from '@/helpers/Link'; diff --git a/src/components/atoms/Heading/edit.tsx b/src/components/atoms/Heading/edit.tsx index 6db793ec..c3d577b1 100644 --- a/src/components/atoms/Heading/edit.tsx +++ b/src/components/atoms/Heading/edit.tsx @@ -1,9 +1,9 @@ -import { ComponentType, useLayoutEffect, useState } from 'react'; -import { createHigherOrderComponent } from '@wordpress/compose'; -import { BlockEditProps, getBlockType } from '@wordpress/blocks'; import { BlockControls } from '@wordpress/block-editor'; -import { select } from '@wordpress/data'; +import { BlockEditProps, getBlockType } from '@wordpress/blocks'; import { ToolbarDropdownMenu } from '@wordpress/components'; +import { createHigherOrderComponent } from '@wordpress/compose'; +import { select } from '@wordpress/data'; +import { ComponentType, useLayoutEffect, useState } from 'react'; // internal imports import { H1Icon } from '#/assets/icons/Heading/H1'; diff --git a/src/components/atoms/Heading/index.tsx b/src/components/atoms/Heading/index.tsx index 7c7941e6..029bbe3f 100644 --- a/src/components/atoms/Heading/index.tsx +++ b/src/components/atoms/Heading/index.tsx @@ -1,5 +1,5 @@ -import { FC } from 'react'; import cx from 'classnames'; +import { FC } from 'react'; import './styles.css'; diff --git a/src/components/atoms/List/List.stories.tsx b/src/components/atoms/List/List.stories.tsx index 4690fb1f..1be55b9b 100644 --- a/src/components/atoms/List/List.stories.tsx +++ b/src/components/atoms/List/List.stories.tsx @@ -1,8 +1,9 @@ import { Meta, StoryObj } from '@storybook/react'; -import { List } from './index'; import { ListItem } from '..'; +import { List } from './index'; + const meta = { title: 'Components/Atoms/List', component: List, diff --git a/src/components/atoms/Paragraph/edit.tsx b/src/components/atoms/Paragraph/edit.tsx index cabf8c02..f18b42df 100644 --- a/src/components/atoms/Paragraph/edit.tsx +++ b/src/components/atoms/Paragraph/edit.tsx @@ -1,6 +1,6 @@ -import { ComponentType } from 'react'; -import { createHigherOrderComponent } from '@wordpress/compose'; import { BlockEditProps } from '@wordpress/blocks'; +import { createHigherOrderComponent } from '@wordpress/compose'; +import { ComponentType } from 'react'; // internal imports import block from './block.json'; diff --git a/src/components/atoms/Paragraph/index.tsx b/src/components/atoms/Paragraph/index.tsx index 0ed8bd1f..cc081291 100644 --- a/src/components/atoms/Paragraph/index.tsx +++ b/src/components/atoms/Paragraph/index.tsx @@ -1,5 +1,5 @@ -import { FC } from 'react'; import cx from 'classnames'; +import { FC } from 'react'; // Internal dependencies import block from './block.json'; diff --git a/src/components/atoms/inputs/Checkbox/edit.tsx b/src/components/atoms/inputs/Checkbox/edit.tsx index c2e4de67..19db908b 100644 --- a/src/components/atoms/inputs/Checkbox/edit.tsx +++ b/src/components/atoms/inputs/Checkbox/edit.tsx @@ -4,6 +4,7 @@ import { TextControl } from '@wordpress/components'; import { _x } from '@wordpress/i18n'; import { IdControl } from '#/components'; + import block from './block.json'; // styles diff --git a/src/components/atoms/inputs/Checkbox/index.tsx b/src/components/atoms/inputs/Checkbox/index.tsx index 42087026..69c91ba5 100644 --- a/src/components/atoms/inputs/Checkbox/index.tsx +++ b/src/components/atoms/inputs/Checkbox/index.tsx @@ -1,7 +1,9 @@ import { FC, forwardRef, useId, useMemo } from 'react'; import slugify from 'slugify'; + // internal imports import { SLUGIFY_ARGS } from '@/components/atoms/inputs/constants'; + import block from './block.json'; // styles import './styles.css'; diff --git a/src/components/atoms/inputs/FormSectionBreaker/index.tsx b/src/components/atoms/inputs/FormSectionBreaker/index.tsx index 3641fa4e..37489586 100644 --- a/src/components/atoms/inputs/FormSectionBreaker/index.tsx +++ b/src/components/atoms/inputs/FormSectionBreaker/index.tsx @@ -1,4 +1,5 @@ import { FC } from 'react'; + // internal imports import block from './block.json'; diff --git a/src/components/atoms/inputs/InputCheckbox/edit.tsx b/src/components/atoms/inputs/InputCheckbox/edit.tsx index c3b66fd8..d3ad6dcd 100644 --- a/src/components/atoms/inputs/InputCheckbox/edit.tsx +++ b/src/components/atoms/inputs/InputCheckbox/edit.tsx @@ -8,7 +8,9 @@ import { PanelBody, PanelRow, ToggleControl } from '@wordpress/components'; import { _x } from '@wordpress/i18n'; import { IdControl, NameControl } from '#/components'; + import { CheckboxBlock } from '../Checkbox/edit'; + import block from './block.json'; // styles diff --git a/src/components/atoms/inputs/InputCheckbox/index.tsx b/src/components/atoms/inputs/InputCheckbox/index.tsx index dbef1321..ef2dc70d 100644 --- a/src/components/atoms/inputs/InputCheckbox/index.tsx +++ b/src/components/atoms/inputs/InputCheckbox/index.tsx @@ -11,7 +11,9 @@ import { } from 'react'; import { useLocale } from '@/contexts/locale-context'; + import { Checkbox } from '../Checkbox'; + import block from './block.json'; // styles diff --git a/src/components/atoms/inputs/InputEmail/edit.tsx b/src/components/atoms/inputs/InputEmail/edit.tsx index ac65e358..5951fde4 100644 --- a/src/components/atoms/inputs/InputEmail/edit.tsx +++ b/src/components/atoms/inputs/InputEmail/edit.tsx @@ -9,6 +9,7 @@ import { useRef } from '@wordpress/element'; import { _x } from '@wordpress/i18n'; import { IdControl, NameControl } from '#/components'; + import block from './block.json'; // styles diff --git a/src/components/atoms/inputs/InputEmail/index.tsx b/src/components/atoms/inputs/InputEmail/index.tsx index 060bdad9..887ace9d 100644 --- a/src/components/atoms/inputs/InputEmail/index.tsx +++ b/src/components/atoms/inputs/InputEmail/index.tsx @@ -2,6 +2,7 @@ import cx from 'classnames'; import { FC, forwardRef, useId } from 'react'; import { useLocale } from '@/contexts/locale-context'; + import block from './block.json'; // styles diff --git a/src/components/atoms/inputs/InputFile/helpers.ts b/src/components/atoms/inputs/InputFile/helpers.ts index bbfcca4f..3a4cc35b 100644 --- a/src/components/atoms/inputs/InputFile/helpers.ts +++ b/src/components/atoms/inputs/InputFile/helpers.ts @@ -1,5 +1,5 @@ -import { sprintf } from 'sprintf-js'; import mime from 'mime'; +import { sprintf } from 'sprintf-js'; export const ONE_MEGA_BYTE = 1000 * 1024; diff --git a/src/components/atoms/inputs/InputFile/index.tsx b/src/components/atoms/inputs/InputFile/index.tsx index 49b3f13b..0457bdc2 100644 --- a/src/components/atoms/inputs/InputFile/index.tsx +++ b/src/components/atoms/inputs/InputFile/index.tsx @@ -14,12 +14,12 @@ import { } from 'react'; import { sprintf } from 'sprintf-js'; -import { useLocale } from '@/contexts/locale-context'; import { IconDelete, IconDocument, IconInvalid, } from '@/components/icons/DocumentIcon'; +import { useLocale } from '@/contexts/locale-context'; import block from './block.json'; diff --git a/src/components/atoms/inputs/InputRadio/edit.tsx b/src/components/atoms/inputs/InputRadio/edit.tsx index af701be4..e7339dde 100644 --- a/src/components/atoms/inputs/InputRadio/edit.tsx +++ b/src/components/atoms/inputs/InputRadio/edit.tsx @@ -9,6 +9,7 @@ import { useRef } from '@wordpress/element'; import { _x } from '@wordpress/i18n'; import { IdControl, NameControl } from '#/components'; + import { RadioBlock } from '../Radio/edit'; import block from './block.json'; diff --git a/src/components/atoms/inputs/InputRadio/index.tsx b/src/components/atoms/inputs/InputRadio/index.tsx index 404c7d78..1f35c0df 100644 --- a/src/components/atoms/inputs/InputRadio/index.tsx +++ b/src/components/atoms/inputs/InputRadio/index.tsx @@ -2,7 +2,9 @@ import cx from 'classnames'; import { FC, forwardRef, useId } from 'react'; import { useLocale } from '@/contexts/locale-context'; + import { Radio } from '../Radio'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/atoms/inputs/InputSelect/index.tsx b/src/components/atoms/inputs/InputSelect/index.tsx index 1a20a105..edbb66a0 100644 --- a/src/components/atoms/inputs/InputSelect/index.tsx +++ b/src/components/atoms/inputs/InputSelect/index.tsx @@ -13,6 +13,7 @@ import { } from 'react'; import { useLocale } from '@/contexts/locale-context'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/atoms/inputs/InputText/index.tsx b/src/components/atoms/inputs/InputText/index.tsx index 6af057d4..a7b5ddf9 100644 --- a/src/components/atoms/inputs/InputText/index.tsx +++ b/src/components/atoms/inputs/InputText/index.tsx @@ -1,7 +1,7 @@ 'use client'; -import { FC, forwardRef, useId } from 'react'; import cx from 'classnames'; +import { FC, forwardRef, useId } from 'react'; import { useLocale } from '@/contexts/locale-context'; diff --git a/src/components/atoms/inputs/InputTextarea/index.tsx b/src/components/atoms/inputs/InputTextarea/index.tsx index 9dd32c2d..47594dea 100644 --- a/src/components/atoms/inputs/InputTextarea/index.tsx +++ b/src/components/atoms/inputs/InputTextarea/index.tsx @@ -2,6 +2,7 @@ import cx from 'classnames'; import { FC, forwardRef, useId } from 'react'; import { useLocale } from '@/contexts/locale-context'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/global/Page404.tsx b/src/components/global/Page404.tsx index 0818aa3e..12a4110e 100644 --- a/src/components/global/Page404.tsx +++ b/src/components/global/Page404.tsx @@ -1,15 +1,16 @@ 'use client'; -import { FC } from 'react'; import { useParams } from 'next/navigation'; +import { FC } from 'react'; +import configs from '@/configs.json'; import { LocaleProvider } from '@/contexts/locale-context'; -import { Container } from './Container'; -import { Footer, MainNav, Section404 } from '../organisms'; import { Gdpr } from '../molecules'; +import { Footer, MainNav, Section404 } from '../organisms'; + +import { Container } from './Container'; -import configs from '@/configs.json'; interface Page404Props { mainNavProps?: MainNavProps | null; diff --git a/src/components/molecules/Buttons/Buttons.stories.tsx b/src/components/molecules/Buttons/Buttons.stories.tsx index e1cecff8..c77c45b4 100644 --- a/src/components/molecules/Buttons/Buttons.stories.tsx +++ b/src/components/molecules/Buttons/Buttons.stories.tsx @@ -1,6 +1,7 @@ import { Meta, StoryObj } from '@storybook/react'; import { Button } from '@/components/atoms'; + import { Buttons } from '.'; const meta = { diff --git a/src/components/molecules/Buttons/edit.tsx b/src/components/molecules/Buttons/edit.tsx index d348c346..27c66077 100644 --- a/src/components/molecules/Buttons/edit.tsx +++ b/src/components/molecules/Buttons/edit.tsx @@ -1,6 +1,6 @@ -import { ComponentType } from 'react'; -import { createHigherOrderComponent } from '@wordpress/compose'; import { BlockEditProps } from '@wordpress/blocks'; +import { createHigherOrderComponent } from '@wordpress/compose'; +import { ComponentType } from 'react'; // internal imports import block from './block.json'; diff --git a/src/components/molecules/Form/edit.tsx b/src/components/molecules/Form/edit.tsx index e2693028..7aa5605e 100644 --- a/src/components/molecules/Form/edit.tsx +++ b/src/components/molecules/Form/edit.tsx @@ -5,12 +5,13 @@ import { useCallback } from '@wordpress/element'; import { _x } from '@wordpress/i18n'; import { useMemo } from 'react'; -import icon from '@/components/icons/FormIcon'; import { useGraphQlApi } from '#/hooks'; +import icon from '@/components/icons/FormIcon'; -import { Form } from '.'; import block from './block.json'; import { getData, getFormsList } from './data'; + +import { Form } from '.'; import './styles.css'; import './styles.edit.css'; diff --git a/src/components/molecules/Form/index.tsx b/src/components/molecules/Form/index.tsx index 5ef62181..370df58c 100644 --- a/src/components/molecules/Form/index.tsx +++ b/src/components/molecules/Form/index.tsx @@ -1,5 +1,8 @@ 'use client'; +import HCaptcha from '@hcaptcha/react-hcaptcha'; +import cx from 'classnames'; +import { usePathname } from 'next/navigation'; import React, { FC, useState, @@ -9,8 +12,6 @@ import React, { useCallback, useId, } from 'react'; -import cx from 'classnames'; -import { usePathname } from 'next/navigation'; import { RegisterOptions, useForm, @@ -21,14 +22,7 @@ import { Merge, FieldErrorsImpl, } from 'react-hook-form'; -import HCaptcha from '@hcaptcha/react-hcaptcha'; -import { useLocale } from '@/contexts/locale-context'; -import { - getAcceptValidator, - getMaxFilesizeValidator, - uploadFile, -} from '@/components/atoms/inputs/InputFile/helpers'; import { Button, FormSectionBreaker, @@ -41,6 +35,13 @@ import { InputRadio, Checkbox, } from '@/components/atoms'; +import { + getAcceptValidator, + getMaxFilesizeValidator, + uploadFile, +} from '@/components/atoms/inputs/InputFile/helpers'; +import { useLocale } from '@/contexts/locale-context'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/molecules/Gdpr/GdprBanner/index.tsx b/src/components/molecules/Gdpr/GdprBanner/index.tsx index 51e526b4..554fa0f3 100644 --- a/src/components/molecules/Gdpr/GdprBanner/index.tsx +++ b/src/components/molecules/Gdpr/GdprBanner/index.tsx @@ -9,9 +9,9 @@ import { useCallback, } from 'react'; +import { Button } from '@/components/atoms'; import { useLocale } from '@/contexts/locale-context'; -import { Button } from '@/components/atoms'; import './styles.css'; diff --git a/src/components/molecules/Gdpr/GdprCategory/index.tsx b/src/components/molecules/Gdpr/GdprCategory/index.tsx index afc2a946..8ff5bd6b 100644 --- a/src/components/molecules/Gdpr/GdprCategory/index.tsx +++ b/src/components/molecules/Gdpr/GdprCategory/index.tsx @@ -1,3 +1,4 @@ +import cx from 'classnames'; import { forwardRef, useState, @@ -8,10 +9,9 @@ import { MouseEvent, useCallback, } from 'react'; -import cx from 'classnames'; -import { useLocale } from '@/contexts/locale-context'; import { ChevronIcon } from '@/components/icons'; +import { useLocale } from '@/contexts/locale-context'; import './styles.css'; diff --git a/src/components/molecules/Gdpr/GdprModal/index.tsx b/src/components/molecules/Gdpr/GdprModal/index.tsx index 14715a4b..70d1fd29 100644 --- a/src/components/molecules/Gdpr/GdprModal/index.tsx +++ b/src/components/molecules/Gdpr/GdprModal/index.tsx @@ -1,3 +1,4 @@ +import cx from 'classnames'; import { forwardRef, useEffect, @@ -8,11 +9,10 @@ import { MouseEvent, useCallback, } from 'react'; -import cx from 'classnames'; -import { useLocale } from '@/contexts/locale-context'; import { Button } from '@/components/atoms'; import { CloseIcon } from '@/components/icons'; +import { useLocale } from '@/contexts/locale-context'; import { GdprCategory, type GdprCategoryType } from '../GdprCategory'; diff --git a/src/components/molecules/Gdpr/index.tsx b/src/components/molecules/Gdpr/index.tsx index d63df7e2..04b71899 100644 --- a/src/components/molecules/Gdpr/index.tsx +++ b/src/components/molecules/Gdpr/index.tsx @@ -1,16 +1,16 @@ 'use client'; -import { FC, useCallback, useEffect, useRef, useState } from 'react'; import Cookies from 'js-cookie'; import Script from 'next/script'; +import { FC, useCallback, useEffect, useRef, useState } from 'react'; import { useLocale } from '@/contexts/locale-context'; import gdprConfigs from '@/gdpr-configs.json'; +import block from './block.json'; import { GdprBanner } from './GdprBanner'; -import { GdprModal, type GdprModalProps } from './GdprModal'; import { type GdprCategoryType } from './GdprCategory'; -import block from './block.json'; +import { GdprModal, type GdprModalProps } from './GdprModal'; /** * Constants diff --git a/src/components/molecules/Image/index.tsx b/src/components/molecules/Image/index.tsx index 1de5be0d..e0dc0b63 100644 --- a/src/components/molecules/Image/index.tsx +++ b/src/components/molecules/Image/index.tsx @@ -1,6 +1,6 @@ import cx from 'classnames'; -import { FC, forwardRef } from 'react'; import NextImage from 'next/image'; +import { FC, forwardRef } from 'react'; import block from './block.json'; diff --git a/src/components/molecules/Media/edit.tsx b/src/components/molecules/Media/edit.tsx index f036ddf7..8195a595 100644 --- a/src/components/molecules/Media/edit.tsx +++ b/src/components/molecules/Media/edit.tsx @@ -1,17 +1,17 @@ -import { useCallback } from 'react'; -import cx from 'classnames'; import { BlockControls, InspectorControls, MediaPlaceholder, MediaReplaceFlow, - MediaUpload, } from '@wordpress/block-editor'; import { PanelBody, RadioControl } from '@wordpress/components'; import { useMemo } from '@wordpress/element'; import { _x } from '@wordpress/i18n'; +import cx from 'classnames'; +import { useCallback } from 'react'; import { ImageEdit, VideoEdit } from '#/components'; + import block from './block.json'; // styles diff --git a/src/components/molecules/Media/index.tsx b/src/components/molecules/Media/index.tsx index d8ee0b2c..890693d6 100644 --- a/src/components/molecules/Media/index.tsx +++ b/src/components/molecules/Media/index.tsx @@ -1,9 +1,10 @@ -import { FC } from 'react'; import cx from 'classnames'; +import { FC } from 'react'; // internal imports import { Image } from '../Image'; import { Video } from '../Video'; + import block from './block.json'; // styles diff --git a/src/components/molecules/PreviewToolbar/index.tsx b/src/components/molecules/PreviewToolbar/index.tsx index e944c6de..a61232a0 100644 --- a/src/components/molecules/PreviewToolbar/index.tsx +++ b/src/components/molecules/PreviewToolbar/index.tsx @@ -1,8 +1,8 @@ 'use client'; +import Cookies from 'js-cookie'; import debounce from 'lodash/debounce'; import { useCallback, useEffect, useState } from 'react'; -import Cookies from 'js-cookie'; import { useLocale } from '@/contexts/locale-context'; diff --git a/src/components/molecules/Video/index.tsx b/src/components/molecules/Video/index.tsx index cdf8af61..59f9b442 100644 --- a/src/components/molecules/Video/index.tsx +++ b/src/components/molecules/Video/index.tsx @@ -1,9 +1,10 @@ 'use client'; -import { FC, useCallback, useEffect, useState } from 'react'; import cx from 'classnames'; +import { FC, useCallback, useEffect, useState } from 'react'; import { Image } from '../Image'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/molecules/cards/CardNews/data.ts b/src/components/molecules/cards/CardNews/data.ts index 4b35099a..a1f4d997 100644 --- a/src/components/molecules/cards/CardNews/data.ts +++ b/src/components/molecules/cards/CardNews/data.ts @@ -1,7 +1,8 @@ +import * as imageData from '@/components/molecules/Image/data'; import { gql } from '@/utils'; + import block from './block.json'; -import * as imageData from '@/components/molecules/Image/data'; export const slug = block.slug; diff --git a/src/components/molecules/cards/CardNews/index.tsx b/src/components/molecules/cards/CardNews/index.tsx index e27e0eee..66121077 100644 --- a/src/components/molecules/cards/CardNews/index.tsx +++ b/src/components/molecules/cards/CardNews/index.tsx @@ -2,9 +2,9 @@ import { FC, useCallback, useMemo } from 'react'; -import { useLocale } from '@/contexts/locale-context'; import { Image } from '@/components/molecules/Image'; import configs from '@/configs.json'; +import { useLocale } from '@/contexts/locale-context'; import { Link } from '@/helpers/Link'; import { phpToJsDateFormat } from '@/utils'; diff --git a/src/components/organisms/Footer/data.ts b/src/components/organisms/Footer/data.ts index faff787e..3a7cdd19 100644 --- a/src/components/organisms/Footer/data.ts +++ b/src/components/organisms/Footer/data.ts @@ -1,7 +1,7 @@ import { menuItemData } from '@/components/molecules/data'; +import configs from '@/configs.json'; import { fetchAPI } from '@/lib'; import { gql } from '@/utils'; -import configs from '@/configs.json'; import block from './block.json'; diff --git a/src/components/organisms/MainNav/data.ts b/src/components/organisms/MainNav/data.ts index 362503e3..e2ed81dd 100644 --- a/src/components/organisms/MainNav/data.ts +++ b/src/components/organisms/MainNav/data.ts @@ -1,7 +1,7 @@ import { imageData, menuItemData } from '@/components/molecules/data'; +import configs from '@/configs.json'; import { fetchAPI } from '@/lib'; import { gql } from '@/utils'; -import configs from '@/configs.json'; import block from './block.json'; diff --git a/src/components/organisms/MainNav/index.tsx b/src/components/organisms/MainNav/index.tsx index c1287dd1..07209d6f 100644 --- a/src/components/organisms/MainNav/index.tsx +++ b/src/components/organisms/MainNav/index.tsx @@ -4,12 +4,13 @@ import cx from 'classnames'; import { usePathname } from 'next/navigation'; import { FC, useCallback, useEffect, useRef, useState } from 'react'; +import { Image } from '@/components/molecules/Image'; +import { LangSwitcher } from '@/components/molecules/LangSwitcher'; +import configs from '@/configs.json'; import { useLocale } from '@/contexts/locale-context'; import { Link } from '@/helpers/Link'; -import configs from '@/configs.json'; -import { LangSwitcher } from '@/components/molecules/LangSwitcher'; -import { Image } from '@/components/molecules/Image'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/organisms/Pagination/index.tsx b/src/components/organisms/Pagination/index.tsx index 14251a19..4f87dd6a 100644 --- a/src/components/organisms/Pagination/index.tsx +++ b/src/components/organisms/Pagination/index.tsx @@ -1,5 +1,5 @@ -import { FC, useCallback } from 'react'; import cx from 'classnames'; +import { FC, useCallback } from 'react'; import { useLocale } from '@/contexts/locale-context'; diff --git a/src/components/organisms/sections/Section404/index.tsx b/src/components/organisms/sections/Section404/index.tsx index f045b23f..7d1c5fb3 100644 --- a/src/components/organisms/sections/Section404/index.tsx +++ b/src/components/organisms/sections/Section404/index.tsx @@ -2,10 +2,10 @@ import { FC } from 'react'; -import { useLocale } from '@/contexts/locale-context'; import { Button } from '@/components/atoms'; - import configs from '@/configs.json'; +import { useLocale } from '@/contexts/locale-context'; + import block from './block.json'; import './styles.css'; diff --git a/src/components/organisms/sections/SectionNews/EditNewsControls.tsx b/src/components/organisms/sections/SectionNews/EditNewsControls.tsx index 714cc38c..cc639935 100644 --- a/src/components/organisms/sections/SectionNews/EditNewsControls.tsx +++ b/src/components/organisms/sections/SectionNews/EditNewsControls.tsx @@ -1,7 +1,7 @@ -import { FC } from 'react'; -import { _x } from '@wordpress/i18n'; -import { useState } from '@wordpress/element'; import { PanelBody, ToggleControl } from '@wordpress/components'; +import { useState } from '@wordpress/element'; +import { _x } from '@wordpress/i18n'; +import { FC } from 'react'; import { PostsSelectControl, TermsSelectControl } from '#/components'; import { CATEGORY_TAX_NAME, POST_PT_NAME, TAG_TAX_NAME } from '#/constants'; diff --git a/src/components/organisms/sections/SectionNews/SectionNews.stories.tsx b/src/components/organisms/sections/SectionNews/SectionNews.stories.tsx index 4035b745..5206dea2 100644 --- a/src/components/organisms/sections/SectionNews/SectionNews.stories.tsx +++ b/src/components/organisms/sections/SectionNews/SectionNews.stories.tsx @@ -1,6 +1,7 @@ import { Meta, StoryObj } from '@storybook/react'; import { Button } from '@/components/atoms'; + import { SectionNews } from './index'; const meta = { diff --git a/src/components/organisms/sections/SectionNews/data.ts b/src/components/organisms/sections/SectionNews/data.ts index 063fd52c..d97464a1 100644 --- a/src/components/organisms/sections/SectionNews/data.ts +++ b/src/components/organisms/sections/SectionNews/data.ts @@ -1,5 +1,4 @@ import { cardNewsData } from '@/components/data'; - import { gql } from '@/utils'; import block from './block.json'; diff --git a/src/components/organisms/sections/SectionNews/edit.tsx b/src/components/organisms/sections/SectionNews/edit.tsx index 4ce0801e..0c357a43 100644 --- a/src/components/organisms/sections/SectionNews/edit.tsx +++ b/src/components/organisms/sections/SectionNews/edit.tsx @@ -1,18 +1,18 @@ -import { useMemo } from 'react'; import { InspectorControls } from '@wordpress/block-editor'; -import { PanelBody, Spinner, TextControl } from '@wordpress/components'; import { InnerBlocks } from '@wordpress/block-editor'; +import { PanelBody, Spinner, TextControl } from '@wordpress/components'; import { _x } from '@wordpress/i18n'; +import { useMemo } from 'react'; import { PreviewBlockImage, SectionEdit } from '#/components'; import { useGraphQlApi } from '#/hooks'; - import { CardNews } from '@/components/molecules/cards/CardNews'; -import EditNewsControls from './EditNewsControls'; + // Data import block from './block.json'; import { getData } from './data'; +import EditNewsControls from './EditNewsControls'; // styles import './styles.css'; diff --git a/src/components/organisms/sections/SectionNews/index.tsx b/src/components/organisms/sections/SectionNews/index.tsx index 55bc7c63..a3813034 100644 --- a/src/components/organisms/sections/SectionNews/index.tsx +++ b/src/components/organisms/sections/SectionNews/index.tsx @@ -1,10 +1,8 @@ -import { FC } from 'react'; import cx from 'classnames'; - -import { Link } from '@/helpers/Link'; -import { Section } from '@/helpers/Section'; +import { FC } from 'react'; import { CardNews } from '@/components/molecules/cards/CardNews'; +import { Section } from '@/helpers/Section'; import block from './block.json'; diff --git a/src/components/templates/ArchivePost/data.ts b/src/components/templates/ArchivePost/data.ts index 35011a89..49cd3c52 100644 --- a/src/components/templates/ArchivePost/data.ts +++ b/src/components/templates/ArchivePost/data.ts @@ -1,7 +1,7 @@ import * as cardNewsData from '@/components/molecules/cards/CardNews/data'; import { termNodeFragment } from '@/components/templates/SingleCategory/data'; -import { gql } from '@/utils'; import configs from '@/configs.json'; +import { gql } from '@/utils'; export const slug = 'archive-post'; diff --git a/src/components/templates/ArchivePost/index.tsx b/src/components/templates/ArchivePost/index.tsx index 3cc33272..219faf8a 100644 --- a/src/components/templates/ArchivePost/index.tsx +++ b/src/components/templates/ArchivePost/index.tsx @@ -3,10 +3,10 @@ import cx from 'classnames'; import { useMemo } from 'react'; +import { Pagination, Button, CardNews } from '@/components'; +import { Blocks, Container } from '@/components/global'; import { useLocale } from '@/contexts/locale-context'; import { Link } from '@/helpers/Link'; -import { Blocks, Container } from '@/components/global'; -import { Pagination, Button, CardNews } from '@/components'; import './styles.css'; diff --git a/src/components/templates/SingleCategory/data.ts b/src/components/templates/SingleCategory/data.ts index 2be0d04f..82dceda8 100644 --- a/src/components/templates/SingleCategory/data.ts +++ b/src/components/templates/SingleCategory/data.ts @@ -1,14 +1,12 @@ import * as cardNewsData from '@/components/molecules/cards/CardNews/data'; - +import { singlePageData, archivePostData } from '@/components/templates/data'; +import configs from '@/configs.json'; import { languageFields, translationsFields, seoTaxFragment, } from '@/lib/fragments'; import { gql } from '@/utils'; -import configs from '@/configs.json'; - -import { singlePageData, archivePostData } from '@/components/templates/data'; export const termNodeFragment = gql` fragment termNodeFragment on TermNode { diff --git a/src/components/templates/SinglePage/data.ts b/src/components/templates/SinglePage/data.ts index 314a284c..f21abc73 100644 --- a/src/components/templates/SinglePage/data.ts +++ b/src/components/templates/SinglePage/data.ts @@ -1,10 +1,10 @@ -import { gql } from '@/utils'; - import { languageFields, translationsFields, seoPostTypeFragment, } from '@/lib/fragments'; +import { gql } from '@/utils'; + export const fragment = gql` fragment singlePageFragment on Page { diff --git a/src/components/templates/SinglePost/data.ts b/src/components/templates/SinglePost/data.ts index ea9e1c70..24cccb76 100644 --- a/src/components/templates/SinglePost/data.ts +++ b/src/components/templates/SinglePost/data.ts @@ -1,5 +1,4 @@ import { cardNewsData, imageData } from '@/components/molecules/data'; - import { languageFields, translationsFields, diff --git a/src/components/templates/SinglePost/index.tsx b/src/components/templates/SinglePost/index.tsx index 05eed8ae..64101aff 100644 --- a/src/components/templates/SinglePost/index.tsx +++ b/src/components/templates/SinglePost/index.tsx @@ -2,10 +2,10 @@ import { useMemo } from 'react'; +import { SectionNews, Image, Button } from '@/components'; +import { Blocks, Container } from '@/components/global'; import { useLocale } from '@/contexts/locale-context'; import { Link } from '@/helpers/Link'; -import { Blocks, Container } from '@/components/global'; -import { SectionNews, Image, Button } from '@/components'; import './styles.css'; diff --git a/src/components/templates/SingleTag/data.ts b/src/components/templates/SingleTag/data.ts index 7b139ecb..f4ef2a6a 100644 --- a/src/components/templates/SingleTag/data.ts +++ b/src/components/templates/SingleTag/data.ts @@ -1,15 +1,13 @@ import * as cardNewsData from '@/components/molecules/cards/CardNews/data'; - +import { singlePageData, archivePostData } from '@/components/templates/data'; +import { termNodeFragment } from '@/components/templates/SingleCategory/data'; +import configs from '@/configs.json'; import { languageFields, translationsFields, seoTaxFragment, } from '@/lib/fragments'; import { gql } from '@/utils'; -import configs from '@/configs.json'; - -import { termNodeFragment } from '@/components/templates/SingleCategory/data'; -import { singlePageData, archivePostData } from '@/components/templates/data'; export const slug = 'single-tag'; diff --git a/src/helpers/Link/index.tsx b/src/helpers/Link/index.tsx index 21f17062..d1c4cc34 100644 --- a/src/helpers/Link/index.tsx +++ b/src/helpers/Link/index.tsx @@ -1,6 +1,6 @@ +import NextLink from 'next/link'; import { forwardRef } from 'react'; -import NextLink from 'next/link'; export const Link = forwardRef( ( diff --git a/src/hooks/use-handle-internal-links.ts b/src/hooks/use-handle-internal-links.ts index 789dbaf3..c706cf5d 100644 --- a/src/hooks/use-handle-internal-links.ts +++ b/src/hooks/use-handle-internal-links.ts @@ -1,5 +1,5 @@ -import { MouseEvent } from 'react'; import { useRouter } from 'next/navigation'; +import { MouseEvent } from 'react'; // handle user-generated links with next/router const useHandleInternalLinks = () => { diff --git a/src/i18n/get-locales.ts b/src/i18n/get-locales.ts index cbd5c819..117cd5f0 100644 --- a/src/i18n/get-locales.ts +++ b/src/i18n/get-locales.ts @@ -1,4 +1,5 @@ import configs from '@/configs.json'; + import fetchAPI from '../lib/fetch-api'; export const getLocales = async () => { diff --git a/src/lib/fetch-api.ts b/src/lib/fetch-api.ts index 97b08336..f3d536d9 100644 --- a/src/lib/fetch-api.ts +++ b/src/lib/fetch-api.ts @@ -1,6 +1,6 @@ -import { getWpGraphqlUrl } from '@/utils/node-utils'; -import { dedupeFragments } from '@/utils'; import { getQueryAttrs } from '#/utils'; +import { dedupeFragments } from '@/utils'; +import { getWpGraphqlUrl } from '@/utils/node-utils'; const WP_GRAPHQL_URL = getWpGraphqlUrl(); diff --git a/src/lib/format-blocks-json.ts b/src/lib/format-blocks-json.ts index 0c8d7839..27e4443f 100644 --- a/src/lib/format-blocks-json.ts +++ b/src/lib/format-blocks-json.ts @@ -1,5 +1,5 @@ -import { getWpUrl } from '@/utils/node-utils'; import { getFunkyWpUploadsURI, getBlockFinalComponentProps } from '@/lib'; +import { getWpUrl } from '@/utils/node-utils'; export default async function formatBlocksJSON(blocksJSON: string) { /** diff --git a/src/lib/get-all-uris.ts b/src/lib/get-all-uris.ts index 8977ad41..5ed7d627 100644 --- a/src/lib/get-all-uris.ts +++ b/src/lib/get-all-uris.ts @@ -1,5 +1,7 @@ import configs from '@/configs.json'; + import { languageFields } from './fragments/language'; + import { fetchAPI } from '.'; const POST_TYPES = ['pages', 'posts']; diff --git a/src/lib/get-preview-node.ts b/src/lib/get-preview-node.ts index 35b181ce..1a01fdf5 100644 --- a/src/lib/get-preview-node.ts +++ b/src/lib/get-preview-node.ts @@ -1,4 +1,5 @@ import { PREVIEW_STATI, fetchAPI } from '@/lib'; + import { languageFields } from './fragments'; const POST_TYPES = ['Page', 'Post']; diff --git a/src/lib/get-redirection.ts b/src/lib/get-redirection.ts index 375413f3..f09350a4 100644 --- a/src/lib/get-redirection.ts +++ b/src/lib/get-redirection.ts @@ -1,5 +1,5 @@ -import { gql } from '@/utils'; import { fetchAPI } from '@/lib'; +import { gql } from '@/utils'; /** * diff --git a/src/lib/get-sitemap-data.ts b/src/lib/get-sitemap-data.ts index d55a8bf7..3f1a8d1a 100644 --- a/src/lib/get-sitemap-data.ts +++ b/src/lib/get-sitemap-data.ts @@ -1,5 +1,6 @@ import configs from '@/configs.json'; import { fetchAPI } from '@/lib'; + import { languageFields, translationsFields } from './fragments'; const GRAPHQL_MAX_SIZE = 100; diff --git a/src/lib/index.ts b/src/lib/index.ts index dc69b000..822985f9 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,18 +1,14 @@ import fetchAPI from './fetch-api'; import formatBlocksJSON from './format-blocks-json'; - -import getBlockFinalComponentProps from './get-block-final-component-props'; import getAllURIs from './get-all-uris'; import getAuthToken from './get-auth-token'; - +import getBlockFinalComponentProps from './get-block-final-component-props'; import getFunkyWpUploadsURI from './get-funky-wp-uploads-uri'; import getNodeByURI from './get-node-by-uri'; -import getWpUriFromNextPath from './get-wp-uri-from-next-path'; - import getPreviewNode from './get-preview-node'; -import getSitemapData from './get-sitemap-data'; - import getRedirection from './get-redirection'; +import getSitemapData from './get-sitemap-data'; +import getWpUriFromNextPath from './get-wp-uri-from-next-path'; export const PREVIEW_STATI = ['PUBLISH', 'DRAFT', 'FUTURE', 'PRIVATE'];