From d3a86248ba87b265ca4e7a2dfc08f44a3f6c86d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:36:23 +0100 Subject: [PATCH 01/14] chore: update dependencies --- package-lock.json | 1594 +++++++++++++++++++++------------------------ package.json | 31 +- 2 files changed, 767 insertions(+), 858 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6765db68..06e47333 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "debounce-promise": "^3.1.2", "install": "^0.13.0", "react-datepicker": "^4.23.0", - "react-hook-form": "^7.49.3", + "react-hook-form": "^7.50.1", "react-markdown": "^5.0.3", "react-phone-number-input": "^3.3.9", "react-select": "^5.8.0", @@ -22,26 +22,27 @@ }, "devDependencies": { "@babel/core": "^7.23.9", - "@babel/eslint-parser": "^7.23.9", + "@babel/eslint-parser": "^7.23.10", + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-react": "^7.23.3", - "@commitlint/cli": "^18.6.0", - "@commitlint/config-conventional": "^18.6.0", + "@commitlint/cli": "^19.0.0", + "@commitlint/config-conventional": "^19.0.0", "@hookform/devtools": "^4.3.1", "@rollup/plugin-babel": "^5.2.2", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "@sheerun/mutationobserver-shim": "^0.3.3", - "@storybook/addon-actions": "^7.6.10", - "@storybook/addon-essentials": "^7.6.10", - "@storybook/addon-links": "^7.6.10", + "@storybook/addon-actions": "^7.6.17", + "@storybook/addon-essentials": "^7.6.17", + "@storybook/addon-links": "^7.6.17", "@storybook/preset-create-react-app": "^3.1.5", - "@storybook/react": "^7.6.10", + "@storybook/react": "^7.6.17", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^14.1.2", + "@testing-library/react": "^14.2.1", "cross-env": "^7.0.3", "date-fns": "^2.30.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard": "^17.1.0", "eslint-config-standard-react": "^13.0.0", @@ -55,12 +56,12 @@ "eslint-plugin-standard": "^4.1.0", "generate-changelog": "^1.8.0", "gh-pages": "^2.2.0", - "husky": "^9.0.7", - "joi": "^17.12.1", - "npm-check-updates": "^16.14.14", + "husky": "^9.0.11", + "joi": "^17.12.2", + "npm-check-updates": "^16.14.15", "npm-run-all": "^4.1.5", - "postcss": "^8.4.33", - "prettier": "^3.2.4", + "postcss": "^8.4.35", + "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "^5.0.1", @@ -713,10 +714,17 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, "engines": { "node": ">=6.9.0" }, @@ -2031,6 +2039,18 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/preset-modules": { "version": "0.1.6-no-external-plugins", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", @@ -2172,20 +2192,19 @@ } }, "node_modules/@commitlint/cli": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-18.6.0.tgz", - "integrity": "sha512-FiH23cr9QG8VdfbmvJJZmdfHGVMCouOOAzoXZ3Cd7czGC52RbycwNt8YCI7SA69pAl+t30vh8LMaO/N+kcel6w==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-19.0.0.tgz", + "integrity": "sha512-SVBQG6k+eOOmlejYTtxnqJGmhrzy/m0qH3bVeoHY3gtlJBK3Kb32RjJioteBYk8Vuo58x5ehAjXwsQFX58X+xw==", "dev": true, "dependencies": { - "@commitlint/format": "^18.6.0", - "@commitlint/lint": "^18.6.0", - "@commitlint/load": "^18.6.0", - "@commitlint/read": "^18.6.0", - "@commitlint/types": "^18.6.0", - "execa": "^5.0.0", - "lodash.isfunction": "^3.0.9", - "resolve-from": "5.0.0", - "resolve-global": "1.0.0", + "@commitlint/format": "^19.0.0", + "@commitlint/lint": "^19.0.0", + "@commitlint/load": "^19.0.0", + "@commitlint/read": "^19.0.0", + "@commitlint/types": "^19.0.0", + "execa": "^8.0.1", + "resolve-from": "^5.0.0", + "resolve-global": "^2.0.0", "yargs": "^17.0.0" }, "bin": { @@ -2195,12 +2214,147 @@ "node": ">=v18" } }, + "node_modules/@commitlint/cli/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/@commitlint/cli/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/@commitlint/cli/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/cli/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@commitlint/cli/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@commitlint/config-conventional": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-18.6.0.tgz", - "integrity": "sha512-CDCOf2eJz9D/TL44IBks0stM9TmdLCNE2B48owIU3YCadwzts/bobXPScagIgPQF6hhKYMEdj5zpUDlmbwuqwQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-19.0.0.tgz", + "integrity": "sha512-d8lPm+slPUdA8Zof2Y36RqAm/MmAYx/QQIEd2gKbpfLThQK1oYLs+0C3sMPD+4LIq2kh4cnbV9WnPA0P5sN8Ig==", "dev": true, "dependencies": { + "@commitlint/types": "^19.0.0", "conventional-changelog-conventionalcommits": "^7.0.2" }, "engines": { @@ -2208,12 +2362,12 @@ } }, "node_modules/@commitlint/config-validator": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-18.6.0.tgz", - "integrity": "sha512-Ptfa865arNozlkjxrYG3qt6wT9AlhNUHeuDyKEZiTL/l0ftncFhK/KN0t/EAMV2tec+0Mwxo0FmhbESj/bI+1g==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-19.0.0.tgz", + "integrity": "sha512-oxJ2k+jBPRyWzv1ixfxwGZO5DJ1S+v3D8u/QESMwuPh3kQmeOYBRxGI+5FDWMwiVSHpztlhvvxDAU9SFXeMqUA==", "dev": true, "dependencies": { - "@commitlint/types": "^18.6.0", + "@commitlint/types": "^19.0.0", "ajv": "^8.11.0" }, "engines": { @@ -2221,12 +2375,12 @@ } }, "node_modules/@commitlint/ensure": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-18.6.0.tgz", - "integrity": "sha512-xY07NmOBJ7JuhX3tic021PaeLepZARIQyqpAQoNQZoml1keBFfB6MbA7XlWZv0ebbarUFE4yhKxOPw+WFv7/qw==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-19.0.0.tgz", + "integrity": "sha512-G0avCIwjKplTP1Oc9MlDhsYqi1yOWORtJSBpyMbQEnalQAW1tuRxG4LOLRZVKfFqlDWs2SfVQPN0Uw51Ge0f6w==", "dev": true, "dependencies": { - "@commitlint/types": "^18.6.0", + "@commitlint/types": "^19.0.0", "lodash.camelcase": "^4.3.0", "lodash.kebabcase": "^4.1.1", "lodash.snakecase": "^4.1.1", @@ -2238,87 +2392,47 @@ } }, "node_modules/@commitlint/execute-rule": { - "version": "18.4.4", - "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-18.4.4.tgz", - "integrity": "sha512-a37Nd3bDQydtg9PCLLWM9ZC+GO7X5i4zJvrggJv5jBhaHsXeQ9ZWdO6ODYR+f0LxBXXNYK3geYXJrCWUCP8JEg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-19.0.0.tgz", + "integrity": "sha512-mtsdpY1qyWgAO/iOK0L6gSGeR7GFcdW7tIjcNFxcWkfLDF5qVbPHKuGATFqRMsxcO8OUKNj0+3WOHB7EHm4Jdw==", "dev": true, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/format": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-18.6.0.tgz", - "integrity": "sha512-8UNWfs2slPPSQiiVpLGJTnPHv7Jkd5KYxfbNXbmLL583bjom4RrylvyrCVnmZReA8nNad7pPXq6mDH4FNVj6xg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-19.0.0.tgz", + "integrity": "sha512-36P4/2tpGSGQsYoSZEso5fTSTaMSArIK9fszy+5B8hwwAvOfnD4kQtrwfMhiXnf7PCgeX2lx5Jma+pY3Bq326A==", "dev": true, "dependencies": { - "@commitlint/types": "^18.6.0", - "chalk": "^4.1.0" + "@commitlint/types": "^19.0.0", + "chalk": "^5.3.0" }, "engines": { "node": ">=v18" } }, - "node_modules/@commitlint/format/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/@commitlint/format/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" + "node": "^12.17.0 || ^14.13 || >=16.0.0" }, "funding": { "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@commitlint/format/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@commitlint/format/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@commitlint/is-ignored": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-18.6.0.tgz", - "integrity": "sha512-Xjx/ZyyJ4FdLuz0FcOvqiqSFgiO2yYj3QN9XlvyrxqbXTxPVC7QFEXJYBVPulUSN/gR7WXH1Udw+HYYfD17xog==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-19.0.0.tgz", + "integrity": "sha512-5b2nIrl8GEjzYAnOK2ZAUxBXvUonYrp3+8kJkUMl8QOtjt2O1gsd71jar7UtoDEqTWJhc+n7lG6lQYMXtcQJAw==", "dev": true, "dependencies": { - "@commitlint/types": "^18.6.0", - "semver": "7.5.4" + "@commitlint/types": "^19.0.0", + "semver": "^7.6.0" }, "engines": { "node": ">=v18" @@ -2337,9 +2451,9 @@ } }, "node_modules/@commitlint/is-ignored/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2358,110 +2472,69 @@ "dev": true }, "node_modules/@commitlint/lint": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-18.6.0.tgz", - "integrity": "sha512-ycbuDWfyykPmslgiHzhz8dL6F0BJYltXLVfc+M49z0c+FNITM0v+r0Vd2+Tdtq06VTc894p2+YSmZhulY8Jn3Q==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-19.0.0.tgz", + "integrity": "sha512-rAAisSpxhA+z4uhsveSt1CuTB+Jld5d7zyNSEK2UWjQaOxicwDP+LFiOdM32n/vwsLlOJqhrInA50UcbRSVaGg==", "dev": true, "dependencies": { - "@commitlint/is-ignored": "^18.6.0", - "@commitlint/parse": "^18.6.0", - "@commitlint/rules": "^18.6.0", - "@commitlint/types": "^18.6.0" + "@commitlint/is-ignored": "^19.0.0", + "@commitlint/parse": "^19.0.0", + "@commitlint/rules": "^19.0.0", + "@commitlint/types": "^19.0.0" }, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/load": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-18.6.0.tgz", - "integrity": "sha512-RRssj7TmzT0bowoEKlgwg8uQ7ORXWkw7lYLsZZBMi9aInsJuGNLNWcMxJxRZbwxG3jkCidGUg85WmqJvRjsaDA==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.0.0.tgz", + "integrity": "sha512-pC/6xDjkWPWgqfILY0KMMpxz0dTZqC7fUpxyWMLRrlbZCC9S54/gsg/8UltFrUH+C+F1zz4Ip8CQgzKonpH6rg==", "dev": true, "dependencies": { - "@commitlint/config-validator": "^18.6.0", - "@commitlint/execute-rule": "^18.4.4", - "@commitlint/resolve-extends": "^18.6.0", - "@commitlint/types": "^18.6.0", - "chalk": "^4.1.0", + "@commitlint/config-validator": "^19.0.0", + "@commitlint/execute-rule": "^19.0.0", + "@commitlint/resolve-extends": "^19.0.0", + "@commitlint/types": "^19.0.0", + "chalk": "^5.3.0", "cosmiconfig": "^8.3.6", "cosmiconfig-typescript-loader": "^5.0.0", "lodash.isplainobject": "^4.0.6", "lodash.merge": "^4.6.2", - "lodash.uniq": "^4.5.0", - "resolve-from": "^5.0.0" + "lodash.uniq": "^4.5.0" }, "engines": { "node": ">=v18" } }, - "node_modules/@commitlint/load/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/@commitlint/load/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" + "node": "^12.17.0 || ^14.13 || >=16.0.0" }, "funding": { "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@commitlint/load/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@commitlint/load/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@commitlint/message": { - "version": "18.4.4", - "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-18.4.4.tgz", - "integrity": "sha512-lHF95mMDYgAI1LBXveJUyg4eLaMXyOqJccCK3v55ZOEUsMPrDi8upqDjd/NmzWmESYihaOMBTAnxm+6oD1WoDQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-19.0.0.tgz", + "integrity": "sha512-c9czf6lU+9oF9gVVa2lmKaOARJvt4soRsVmbR7Njwp9FpbBgste5i7l/2l5o8MmbwGh4yE1snfnsy2qyA2r/Fw==", "dev": true, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/parse": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-18.6.0.tgz", - "integrity": "sha512-Y/G++GJpATFw54O0jikc/h2ibyGHgghtPnwsOk3O/aU092ydJ5XEHYcd7xGNQYuLweLzQis2uEwRNk9AVIPbQQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-19.0.0.tgz", + "integrity": "sha512-/2hT08V/2Lh+aQ5cSAw5vO74FlA3LJGYzLfsNMcx6aW8Kmrsa9W7chNNY5hMWbucCF92s/JE3eVIHnzoEBKTTA==", "dev": true, "dependencies": { - "@commitlint/types": "^18.6.0", + "@commitlint/types": "^19.0.0", "conventional-changelog-angular": "^7.0.0", "conventional-commits-parser": "^5.0.0" }, @@ -2470,136 +2543,313 @@ } }, "node_modules/@commitlint/read": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-18.6.0.tgz", - "integrity": "sha512-w39ji8VfWhPKRquPhRHB3Yd8XIHwaNHgOh28YI1QEmZ59qVpuVUQo6h/NsVb+uoC6LbXZiofTZv2iFR084jKEA==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-19.0.0.tgz", + "integrity": "sha512-AbK/fQjWrXGAAHl+KeOtZtWJryhzkTnynhkABF4IUFZqK71JSviSIPHYuUQjdwNrD0PJGs5f19ORjY8LOXP08w==", "dev": true, "dependencies": { - "@commitlint/top-level": "^18.4.4", - "@commitlint/types": "^18.6.0", - "git-raw-commits": "^2.0.11", - "minimist": "^1.2.6" + "@commitlint/top-level": "^19.0.0", + "@commitlint/types": "^19.0.0", + "git-raw-commits": "^4.0.0", + "minimist": "^1.2.8" }, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/resolve-extends": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-18.6.0.tgz", - "integrity": "sha512-k2Xp+Fxeggki2i90vGrbiLDMefPius3zGSTFFlRAPKce/SWLbZtI+uqE9Mne23mHO5lmcSV8z5m6ziiJwGpOcg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-19.0.0.tgz", + "integrity": "sha512-ej0fALn5yZQOYKH8wPZnzw5LGvD0n5gJBPvV6DnMiSYudqgwYwhdNJ//MukZCXNpLIM1yMA8KUyrCP6D4WnUbg==", "dev": true, "dependencies": { - "@commitlint/config-validator": "^18.6.0", - "@commitlint/types": "^18.6.0", + "@commitlint/config-validator": "^19.0.0", + "@commitlint/types": "^19.0.0", "import-fresh": "^3.0.0", + "import-meta-resolve": "^4.0.0", "lodash.mergewith": "^4.6.2", - "resolve-from": "^5.0.0", - "resolve-global": "^1.0.0" + "resolve-global": "^2.0.0" }, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/rules": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-18.6.0.tgz", - "integrity": "sha512-pTalvCEvuCWrBWZA/YqO/3B3nZnY3Ncc+TmQsRajBdC1tkQIm5Iovdo4Ec7f2Dw1tVvpYMUUNAgcWqsY0WckWg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-19.0.0.tgz", + "integrity": "sha512-uwb5Ro5vvJlEjnWPezL3AcdlbLdJz24SD5VembgA6IXqqunphZr5LFsQL1z5efP7p3MUdJEXFynIx8o62+j2lA==", "dev": true, "dependencies": { - "@commitlint/ensure": "^18.6.0", - "@commitlint/message": "^18.4.4", - "@commitlint/to-lines": "^18.4.4", - "@commitlint/types": "^18.6.0", - "execa": "^5.0.0" + "@commitlint/ensure": "^19.0.0", + "@commitlint/message": "^19.0.0", + "@commitlint/to-lines": "^19.0.0", + "@commitlint/types": "^19.0.0", + "execa": "^8.0.1" }, "engines": { "node": ">=v18" } }, + "node_modules/@commitlint/rules/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/@commitlint/rules/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/@commitlint/rules/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/rules/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@commitlint/rules/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@commitlint/to-lines": { - "version": "18.4.4", - "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-18.4.4.tgz", - "integrity": "sha512-mwe2Roa59NCz/krniAdCygFabg7+fQCkIhXqBHw00XQ8Y7lw4poZLLxeGI3p3bLpcEOXdqIDrEGLwHmG5lBdwQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-19.0.0.tgz", + "integrity": "sha512-vkxWo+VQU5wFhiP9Ub9Sre0FYe019JxFikrALVoD5UGa8/t3yOJEpEhxC5xKiENKKhUkTpEItMTRAjHw2SCpZw==", "dev": true, "engines": { "node": ">=v18" } }, "node_modules/@commitlint/top-level": { - "version": "18.4.4", - "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-18.4.4.tgz", - "integrity": "sha512-PBwW1drgeavl9CadB7IPRUk6rkUP/O8jEkxjlC+ofuh3pw0bzJdAT+Kw7M1Yc9KtTb9xTaqUB8uvRtaybHa/tQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-19.0.0.tgz", + "integrity": "sha512-KKjShd6u1aMGNkCkaX4aG1jOGdn7f8ZI8TR1VEuNqUOjWTOdcDSsmglinglJ18JTjuBX5I1PtjrhQCRcixRVFQ==", "dev": true, "dependencies": { - "find-up": "^5.0.0" + "find-up": "^7.0.0" }, "engines": { "node": ">=v18" } }, - "node_modules/@commitlint/types": { - "version": "18.6.0", - "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-18.6.0.tgz", - "integrity": "sha512-oavoKLML/eJa2rJeyYSbyGAYzTxQ6voG5oeX3OrxpfrkRWhJfm4ACnhoRf5tgiybx2MZ+EVFqC1Lw3W8/uwpZA==", + "node_modules/@commitlint/top-level/node_modules/find-up": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-7.0.0.tgz", + "integrity": "sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==", "dev": true, "dependencies": { - "chalk": "^4.1.0" + "locate-path": "^7.2.0", + "path-exists": "^5.0.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": ">=v18" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@commitlint/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@commitlint/top-level/node_modules/locate-path": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "p-locate": "^6.0.0" }, "engines": { - "node": ">=8" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@commitlint/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@commitlint/top-level/node_modules/p-limit": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "yocto-queue": "^1.0.0" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@commitlint/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@commitlint/top-level/node_modules/p-locate": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", "dev": true, + "dependencies": { + "p-limit": "^4.0.0" + }, "engines": { - "node": ">=8" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@commitlint/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@commitlint/top-level/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/@commitlint/top-level/node_modules/yocto-queue": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@commitlint/types": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-19.0.0.tgz", + "integrity": "sha512-qLjLUdYXKi0TIavONrjBkxrElp7KguqDbvzIRbqTdJBV/cAAr8QEhHe1qUq8OcCM3gFWTlUrDz3ISZbkRoGsAg==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "chalk": "^5.3.0" }, "engines": { - "node": ">=8" + "node": ">=v18" + } + }, + "node_modules/@commitlint/types/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/@csstools/normalize.css": { @@ -3507,9 +3757,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", - "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -6702,12 +6952,12 @@ } }, "node_modules/@storybook/addon-actions": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-7.6.12.tgz", - "integrity": "sha512-vK/H6K+AJ4ZSsCu/+MapYYI/xrynB6JoCOejt//flTigZOhwTWv7WXbmEeqGIIToXy0LA2IUZ1/kCjFXR0lEdQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-7.6.17.tgz", + "integrity": "sha512-TBphs4v6LRfyTpFo/WINF0TkMaE3rrNog7wW5mbz6n0j8o53kDN4o9ZEcygSL5zQX43CAaghQTeDCss7ueG7ZQ==", "dev": true, "dependencies": { - "@storybook/core-events": "7.6.12", + "@storybook/core-events": "7.6.17", "@storybook/global": "^5.0.0", "@types/uuid": "^9.0.1", "dequal": "^2.0.2", @@ -6720,9 +6970,9 @@ } }, "node_modules/@storybook/addon-backgrounds": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-backgrounds/-/addon-backgrounds-7.6.12.tgz", - "integrity": "sha512-G14uN5lDXUtXw+dmEPaB6lpDpR9K25ssYuWWn8yYR44B1WMuD4kDgw0QGb0g+xYQj9R1TsalKEJHA4AuSYkVGQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-backgrounds/-/addon-backgrounds-7.6.17.tgz", + "integrity": "sha512-7dize7x8+37PH77kmt69b0xSaeDqOcZ4fpzW6+hk53hIaCVU26eGs4+j+743Xva31eOgZWNLupUhOpUDc6SqZw==", "dev": true, "dependencies": { "@storybook/global": "^5.0.0", @@ -6735,12 +6985,12 @@ } }, "node_modules/@storybook/addon-controls": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-controls/-/addon-controls-7.6.12.tgz", - "integrity": "sha512-NX4KajscOsuXyYE3hhniF+y0E59E6rM0FgIaZ48P9c0DD+wDo8bAISHjZvmKXtDVajLk4/JySvByx1eN6V3hmA==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-controls/-/addon-controls-7.6.17.tgz", + "integrity": "sha512-zR0aLaUF7FtV/nMRyfniFbCls/e0DAAoXACuOAUAwNAv0lbIS8AyZZiHSmKucCvziUQ6WceeCC7+du3C+9y0rQ==", "dev": true, "dependencies": { - "@storybook/blocks": "7.6.12", + "@storybook/blocks": "7.6.17", "lodash": "^4.17.21", "ts-dedent": "^2.0.0" }, @@ -6750,26 +7000,26 @@ } }, "node_modules/@storybook/addon-docs": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-docs/-/addon-docs-7.6.12.tgz", - "integrity": "sha512-AzMgnGYfEg+Z1ycJh8MEp44x1DfjRijKCVYNaPFT6o+TjN/9GBaAkV4ydxmQzMEMnnnh/0E9YeHO+ivBVSkNog==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-docs/-/addon-docs-7.6.17.tgz", + "integrity": "sha512-FKa4Mdy7nhgvEVZJHpMkHriDzpVHbohn87zv9NCL+Ctjs1iAmzGwxEm0culszyDS1HN2ToVoY0h8CSi2RSSZqA==", "dev": true, "dependencies": { "@jest/transform": "^29.3.1", "@mdx-js/react": "^2.1.5", - "@storybook/blocks": "7.6.12", - "@storybook/client-logger": "7.6.12", - "@storybook/components": "7.6.12", - "@storybook/csf-plugin": "7.6.12", - "@storybook/csf-tools": "7.6.12", + "@storybook/blocks": "7.6.17", + "@storybook/client-logger": "7.6.17", + "@storybook/components": "7.6.17", + "@storybook/csf-plugin": "7.6.17", + "@storybook/csf-tools": "7.6.17", "@storybook/global": "^5.0.0", "@storybook/mdx2-csf": "^1.0.0", - "@storybook/node-logger": "7.6.12", - "@storybook/postinstall": "7.6.12", - "@storybook/preview-api": "7.6.12", - "@storybook/react-dom-shim": "7.6.12", - "@storybook/theming": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/node-logger": "7.6.17", + "@storybook/postinstall": "7.6.17", + "@storybook/preview-api": "7.6.17", + "@storybook/react-dom-shim": "7.6.17", + "@storybook/theming": "7.6.17", + "@storybook/types": "7.6.17", "fs-extra": "^11.1.0", "remark-external-links": "^8.0.0", "remark-slug": "^6.0.0", @@ -6785,24 +7035,24 @@ } }, "node_modules/@storybook/addon-essentials": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-essentials/-/addon-essentials-7.6.12.tgz", - "integrity": "sha512-Pl6n+19QC/T+cuU8DZjCwILXVxrdRTivNxPOiy8SEX+jjR4H0uAfXC9+RXCPjRFn64t4j1K7oIyoNokEn39cNw==", - "dev": true, - "dependencies": { - "@storybook/addon-actions": "7.6.12", - "@storybook/addon-backgrounds": "7.6.12", - "@storybook/addon-controls": "7.6.12", - "@storybook/addon-docs": "7.6.12", - "@storybook/addon-highlight": "7.6.12", - "@storybook/addon-measure": "7.6.12", - "@storybook/addon-outline": "7.6.12", - "@storybook/addon-toolbars": "7.6.12", - "@storybook/addon-viewport": "7.6.12", - "@storybook/core-common": "7.6.12", - "@storybook/manager-api": "7.6.12", - "@storybook/node-logger": "7.6.12", - "@storybook/preview-api": "7.6.12", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-essentials/-/addon-essentials-7.6.17.tgz", + "integrity": "sha512-qlSpamxuYfT2taF953nC9QijGF2pSbg1ewMNpdwLTj16PTZvR/d8NCDMTJujI1bDwM2m18u8Yc43ibh5LEmxCw==", + "dev": true, + "dependencies": { + "@storybook/addon-actions": "7.6.17", + "@storybook/addon-backgrounds": "7.6.17", + "@storybook/addon-controls": "7.6.17", + "@storybook/addon-docs": "7.6.17", + "@storybook/addon-highlight": "7.6.17", + "@storybook/addon-measure": "7.6.17", + "@storybook/addon-outline": "7.6.17", + "@storybook/addon-toolbars": "7.6.17", + "@storybook/addon-viewport": "7.6.17", + "@storybook/core-common": "7.6.17", + "@storybook/manager-api": "7.6.17", + "@storybook/node-logger": "7.6.17", + "@storybook/preview-api": "7.6.17", "ts-dedent": "^2.0.0" }, "funding": { @@ -6815,9 +7065,9 @@ } }, "node_modules/@storybook/addon-highlight": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-highlight/-/addon-highlight-7.6.12.tgz", - "integrity": "sha512-rWNEyBhwncXEDd9z7l67BLBIPqn0SRI/CJpZvCSF5KLWrVaoSEDF8INavmbikd1JBMcajJ28Ur6NsGj+eJjJiw==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-highlight/-/addon-highlight-7.6.17.tgz", + "integrity": "sha512-R1yBPUUqGn+60aJakn8q+5Zt34E/gU3n3VmgPdryP0LJUdZ5q1/RZShoVDV+yYQ40htMH6oaCv3OyyPzFAGJ6A==", "dev": true, "dependencies": { "@storybook/global": "^5.0.0" @@ -6828,9 +7078,9 @@ } }, "node_modules/@storybook/addon-links": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-links/-/addon-links-7.6.12.tgz", - "integrity": "sha512-rGwPYpZAANPrf2GaNi5t9zAjLF8PgzKizyBPltIXUtplxDg88ziXlDA1dhsuGDs4Kf0oXECyAHPw79JjkJQziA==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-links/-/addon-links-7.6.17.tgz", + "integrity": "sha512-iFUwKObRn0EKI0zMETsil2p9a/81rCuSMEWECsi+khkCAs1FUnD2cT6Ag5ydcNcBXsdtdfDJdtXQrkw+TSoStQ==", "dev": true, "dependencies": { "@storybook/csf": "^0.1.2", @@ -6851,9 +7101,9 @@ } }, "node_modules/@storybook/addon-measure": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-measure/-/addon-measure-7.6.12.tgz", - "integrity": "sha512-K3aKErr84V0eVK7t+wco5cSYDdeotwoXi4e7VLSa2cdUz0wanOb4R7v3kf6vxucUyp05Lv+yHkz9zsbwuezepA==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-measure/-/addon-measure-7.6.17.tgz", + "integrity": "sha512-O5vnHZNkduvZ95jf1UssbOl6ivIxzl5tv+4EpScPYId7w700bxWsJH+QX7ip6KlrCf2o3iUhmPe8bm05ghG2KA==", "dev": true, "dependencies": { "@storybook/global": "^5.0.0", @@ -6865,9 +7115,9 @@ } }, "node_modules/@storybook/addon-outline": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-outline/-/addon-outline-7.6.12.tgz", - "integrity": "sha512-r6eO4EKh+zwGUNjxe8v/44BhyV+JD3Dl9GYMutsFqbwYsoWHJaZmzHuyqeFBXwx2MEoixdWdIzNMP71+srQqvw==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-outline/-/addon-outline-7.6.17.tgz", + "integrity": "sha512-9o9JXDsYjNaDgz/cY5+jv694+aik/1aiRGGvsCv68e1p/ob0glkGKav4lnJe2VJqD+gCmaARoD8GOJlhoQl8JQ==", "dev": true, "dependencies": { "@storybook/global": "^5.0.0", @@ -6879,9 +7129,9 @@ } }, "node_modules/@storybook/addon-toolbars": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-7.6.12.tgz", - "integrity": "sha512-TSwq8xO7fmS6GRTgJJa31OBzm+5zlgDYK2Q42jxFo/Vm10uMzCpjYJE6mIHpUDyjyBVQk6xxMMEcvo6no2eAWg==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-7.6.17.tgz", + "integrity": "sha512-UMrchbUHiyWrh6WuGnpy34Jqzkx/63B+MSgb3CW7YsQaXz64kE0Rol0TNSznnB+mYXplcqH+ndI4r4kFsmgwDg==", "dev": true, "funding": { "type": "opencollective", @@ -6889,9 +7139,9 @@ } }, "node_modules/@storybook/addon-viewport": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/addon-viewport/-/addon-viewport-7.6.12.tgz", - "integrity": "sha512-51zsBeoaEzq699SKDCe+GG/2PDAJKKJtpjqxIc4lDskogaCJSb3Ie8LyookHAKYgbi2qealVgK8zaP27KUj3Pg==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/addon-viewport/-/addon-viewport-7.6.17.tgz", + "integrity": "sha512-sA0QCcf4QAMixWvn8uvRYPfkKCSl6JajJaAspoPqXSxHEpK7uwOlpg3kqFU5XJJPXD0X957M+ONgNvBzYqSpEw==", "dev": true, "dependencies": { "memoizerific": "^1.11.3" @@ -6902,22 +7152,22 @@ } }, "node_modules/@storybook/blocks": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-7.6.12.tgz", - "integrity": "sha512-T47KOAjgZmhV+Ov59A70inE5edInh1Jh5w/5J5cjpk9a2p4uhd337SnK4B8J5YLhcM2lbKRWJjzIJ0nDZQTdnQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-7.6.17.tgz", + "integrity": "sha512-PsNVoe0bX1mMn4Kk3nbKZ0ItDZZ0YJnYAFJ6toAbsyBAbgzg1sce88sQinzvbn58/RT9MPKeWMPB45ZS7ggiNg==", "dev": true, "dependencies": { - "@storybook/channels": "7.6.12", - "@storybook/client-logger": "7.6.12", - "@storybook/components": "7.6.12", - "@storybook/core-events": "7.6.12", + "@storybook/channels": "7.6.17", + "@storybook/client-logger": "7.6.17", + "@storybook/components": "7.6.17", + "@storybook/core-events": "7.6.17", "@storybook/csf": "^0.1.2", - "@storybook/docs-tools": "7.6.12", + "@storybook/docs-tools": "7.6.17", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.6.12", - "@storybook/preview-api": "7.6.12", - "@storybook/theming": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/manager-api": "7.6.17", + "@storybook/preview-api": "7.6.17", + "@storybook/theming": "7.6.17", + "@storybook/types": "7.6.17", "@types/lodash": "^4.14.167", "color-convert": "^2.0.1", "dequal": "^2.0.2", @@ -6941,13 +7191,13 @@ } }, "node_modules/@storybook/channels": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/channels/-/channels-7.6.12.tgz", - "integrity": "sha512-TaPl5Y3lOoVi5kTLgKNRX8xh2sUPekH0Id1l4Ymw+lpgriEY6r60bmkZLysLG1GhlskpQ/da2+S2ap2ht8P2TQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/channels/-/channels-7.6.17.tgz", + "integrity": "sha512-GFG40pzaSxk1hUr/J/TMqW5AFDDPUSu+HkeE/oqSWJbOodBOLJzHN6CReJS6y1DjYSZLNFt1jftPWZZInG/XUA==", "dev": true, "dependencies": { - "@storybook/client-logger": "7.6.12", - "@storybook/core-events": "7.6.12", + "@storybook/client-logger": "7.6.17", + "@storybook/core-events": "7.6.17", "@storybook/global": "^5.0.0", "qs": "^6.10.0", "telejson": "^7.2.0", @@ -6959,9 +7209,9 @@ } }, "node_modules/@storybook/client-logger": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/client-logger/-/client-logger-7.6.12.tgz", - "integrity": "sha512-hiRv6dXsOttMPqm9SxEuFoAtDe9rs7TUS8XcO5rmJ9BgfwBJsYlHzAxXkazxmvlyZtKL7gMx6m8OYbCdZgUqtA==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/client-logger/-/client-logger-7.6.17.tgz", + "integrity": "sha512-6WBYqixAXNAXlSaBWwgljWpAu10tPRBJrcFvx2gPUne58EeMM20Gi/iHYBz2kMCY+JLAgeIH7ZxInqwO8vDwiQ==", "dev": true, "dependencies": { "@storybook/global": "^5.0.0" @@ -6972,18 +7222,18 @@ } }, "node_modules/@storybook/components": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/components/-/components-7.6.12.tgz", - "integrity": "sha512-PCijPqmlZd7qyTzNr+vD0Kf8sAI9vWJIaxbSjXwn/De3e63m4fsEcIf8FaUT8cMZ46AWZvaxaxX5km2u0UISJQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/components/-/components-7.6.17.tgz", + "integrity": "sha512-lbh7GynMidA+CZcJnstVku6Nhs+YkqjYaZ+mKPugvlVhGVWv0DaaeQFVuZ8cJtUGJ/5FFU4Y+n+gylYUHkGBMA==", "dev": true, "dependencies": { "@radix-ui/react-select": "^1.2.2", "@radix-ui/react-toolbar": "^1.0.4", - "@storybook/client-logger": "7.6.12", + "@storybook/client-logger": "7.6.17", "@storybook/csf": "^0.1.2", "@storybook/global": "^5.0.0", - "@storybook/theming": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/theming": "7.6.17", + "@storybook/types": "7.6.17", "memoizerific": "^1.11.3", "use-resize-observer": "^9.1.0", "util-deprecate": "^1.0.2" @@ -6998,13 +7248,13 @@ } }, "node_modules/@storybook/core-client": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/core-client/-/core-client-7.6.12.tgz", - "integrity": "sha512-VzVp32tMZsCzM4UIqfvCoJF7N9mBf6dsAxh1/ZgViy75Fht78pGo3JwZXW8osMbFSRpmWD7fxlUM5S7TQOYQug==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/core-client/-/core-client-7.6.17.tgz", + "integrity": "sha512-LuDbADK+DPNAOOCXOlvY09hdGVueXlDetsdOJ/DgYnSa9QSWv9Uv+F8QcEgR3QckZJbPlztKJIVLgP2n/Xkijw==", "dev": true, "dependencies": { - "@storybook/client-logger": "7.6.12", - "@storybook/preview-api": "7.6.12" + "@storybook/client-logger": "7.6.17", + "@storybook/preview-api": "7.6.17" }, "funding": { "type": "opencollective", @@ -7012,14 +7262,14 @@ } }, "node_modules/@storybook/core-common": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/core-common/-/core-common-7.6.12.tgz", - "integrity": "sha512-kM9YiBBMM2x5v/oylL7gdO1PS4oehgJC21MivS9p5QZ8uuXKtCQ6UQvI3rzaV+1ZzUA4n+I8MyaMrNIQk8KDbw==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/core-common/-/core-common-7.6.17.tgz", + "integrity": "sha512-me2TP3Q9/qzqCLoDHUSsUF+VS1MHxfHbTVF6vAz0D/COTxzsxLpu9TxTbzJoBCxse6XRb6wWI1RgF1mIcjic7g==", "dev": true, "dependencies": { - "@storybook/core-events": "7.6.12", - "@storybook/node-logger": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/core-events": "7.6.17", + "@storybook/node-logger": "7.6.17", + "@storybook/types": "7.6.17", "@types/find-cache-dir": "^3.2.1", "@types/node": "^18.0.0", "@types/node-fetch": "^2.6.4", @@ -7047,9 +7297,9 @@ } }, "node_modules/@storybook/core-common/node_modules/@types/node": { - "version": "18.19.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.11.tgz", - "integrity": "sha512-hzdHPKpDdp5bEcRq1XTlZ2ntVjLcHCTV73dEcGg02eSY/+9AZ+jlfz6i00+zOrunMWenjHuI49J8J7Y9uz50JQ==", + "version": "18.19.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.18.tgz", + "integrity": "sha512-80CP7B8y4PzZF0GWx15/gVWRrB5y/bIjNI84NK3cmQJu0WZwvmj2WMA5LcofQFVfLqqCSp545+U2LsrVzX36Zg==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -7182,9 +7432,9 @@ } }, "node_modules/@storybook/core-events": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/core-events/-/core-events-7.6.12.tgz", - "integrity": "sha512-IO4cwk7bBCKH6lLnnIlHO9FwQXt/9CzLUAoZSY9msWsdPppCdKlw8ynJI5YarSNKDBUn8ArIfnRf0Mve0KQr9Q==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/core-events/-/core-events-7.6.17.tgz", + "integrity": "sha512-AriWMCm/k1cxlv10f+jZ1wavThTRpLaN3kY019kHWbYT9XgaSuLU67G7GPr3cGnJ6HuA6uhbzu8qtqVCd6OfXA==", "dev": true, "dependencies": { "ts-dedent": "^2.0.0" @@ -7204,12 +7454,12 @@ } }, "node_modules/@storybook/csf-plugin": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/csf-plugin/-/csf-plugin-7.6.12.tgz", - "integrity": "sha512-fe/84AyctJcrpH1F/tTBxKrbjv0ilmG3ZTwVcufEiAzupZuYjQ/0P+Pxs8m8VxiGJZZ1pWofFFDbYi+wERjamQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/csf-plugin/-/csf-plugin-7.6.17.tgz", + "integrity": "sha512-xTHv9BUh3bkDVCvcbmdfVF0/e96BdrEgqPJ3G3RmKbSzWLOkQ2U9yiPfHzT0KJWPhVwj12fjfZp0zunu+pcS6Q==", "dev": true, "dependencies": { - "@storybook/csf-tools": "7.6.12", + "@storybook/csf-tools": "7.6.17", "unplugin": "^1.3.1" }, "funding": { @@ -7218,9 +7468,9 @@ } }, "node_modules/@storybook/csf-tools": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/csf-tools/-/csf-tools-7.6.12.tgz", - "integrity": "sha512-MdhkYYxSW5I6Jpk34gTkAZsuj9sxe0xdyeUQpNa8CgJxG43F+ehZ6scW/IPjoSG9gCXBUJMekq26UrmbVfsLCQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/csf-tools/-/csf-tools-7.6.17.tgz", + "integrity": "sha512-dAQtam0EBPeTJYcQPLxXgz4L9JFqD+HWbLFG9CmNIhMMjticrB0mpk1EFIS6vPXk/VsVWpBgMLD7dZlD6YMKcQ==", "dev": true, "dependencies": { "@babel/generator": "^7.23.0", @@ -7228,7 +7478,7 @@ "@babel/traverse": "^7.23.2", "@babel/types": "^7.23.0", "@storybook/csf": "^0.1.2", - "@storybook/types": "7.6.12", + "@storybook/types": "7.6.17", "fs-extra": "^11.1.0", "recast": "^0.23.1", "ts-dedent": "^2.0.0" @@ -7239,14 +7489,14 @@ } }, "node_modules/@storybook/docs-tools": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/docs-tools/-/docs-tools-7.6.12.tgz", - "integrity": "sha512-nY2lqEDTd/fR/D91ZLlIp+boSuJtkb8DqHW7pECy61rJqzGq4QpepRaWjQDKnGTgPItrsPfTPOu6iXvXNK07Ow==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/docs-tools/-/docs-tools-7.6.17.tgz", + "integrity": "sha512-bYrLoj06adqklyLkEwD32C0Ww6t+9ZVvrJHiVT42bIhTRpFiFPAetl1a9KPHtFLnfduh4n2IxIr1jv32ThPDTA==", "dev": true, "dependencies": { - "@storybook/core-common": "7.6.12", - "@storybook/preview-api": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/core-common": "7.6.17", + "@storybook/preview-api": "7.6.17", + "@storybook/types": "7.6.17", "@types/doctrine": "^0.0.3", "assert": "^2.1.0", "doctrine": "^3.0.0", @@ -7264,19 +7514,19 @@ "dev": true }, "node_modules/@storybook/manager-api": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/manager-api/-/manager-api-7.6.12.tgz", - "integrity": "sha512-XA5KQpY44d6mlqt0AlesZ7fsPpm1PCpoV+nRGFBR0YtF6RdPFvrPyHhlGgLkJC4xSyb2YJmLKn8cERSluAcEgQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/manager-api/-/manager-api-7.6.17.tgz", + "integrity": "sha512-IJIV1Yc6yw1dhCY4tReHCfBnUKDqEBnMyHp3mbXpsaHxnxJZrXO45WjRAZIKlQKhl/Ge1CrnznmHRCmYgqmrWg==", "dev": true, "dependencies": { - "@storybook/channels": "7.6.12", - "@storybook/client-logger": "7.6.12", - "@storybook/core-events": "7.6.12", + "@storybook/channels": "7.6.17", + "@storybook/client-logger": "7.6.17", + "@storybook/core-events": "7.6.17", "@storybook/csf": "^0.1.2", "@storybook/global": "^5.0.0", - "@storybook/router": "7.6.12", - "@storybook/theming": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/router": "7.6.17", + "@storybook/theming": "7.6.17", + "@storybook/types": "7.6.17", "dequal": "^2.0.2", "lodash": "^4.17.21", "memoizerific": "^1.11.3", @@ -7296,9 +7546,9 @@ "dev": true }, "node_modules/@storybook/node-logger": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/node-logger/-/node-logger-7.6.12.tgz", - "integrity": "sha512-iS44/EjfF6hLecKzICmcpQoB9bmVi4tXx5gVXnbI5ZyziBibRQcg/U191Njl7wY2ScN/RCQOr8lh5k57rI3Prg==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/node-logger/-/node-logger-7.6.17.tgz", + "integrity": "sha512-w59MQuXhhUNrUVmVkXhMwIg2nvFWjdDczLTwYLorhfsE36CWeUOY5QCZWQy0Qf/h+jz8Uo7Evy64qn18v9C4wA==", "dev": true, "funding": { "type": "opencollective", @@ -7306,9 +7556,9 @@ } }, "node_modules/@storybook/postinstall": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/postinstall/-/postinstall-7.6.12.tgz", - "integrity": "sha512-uR0mDPxLzPaouCNrLp8vID8lATVTOtG7HB6lfjjzMdE3sN6MLmK9n2z2nXjb5DRRxOFWMeE1/4Age1/Ml2tnmA==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/postinstall/-/postinstall-7.6.17.tgz", + "integrity": "sha512-WaWqB8o9vUc9aaVls+povQSVirf1Xd1LZcVhUKfAocAF3mzYUsnJsVqvnbjRj/F96UFVihOyDt9Zjl/9OvrCvQ==", "dev": true, "funding": { "type": "opencollective", @@ -8395,17 +8645,17 @@ } }, "node_modules/@storybook/preview-api": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/preview-api/-/preview-api-7.6.12.tgz", - "integrity": "sha512-uSzeMSLnCRROjiofJP0F0niLWL+sboQ5ktHW6BAYoPwprumXduPxKBUVEZNxMbVYoAz9v/kEZmaLauh8LRP2Hg==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/preview-api/-/preview-api-7.6.17.tgz", + "integrity": "sha512-wLfDdI9RWo1f2zzFe54yRhg+2YWyxLZvqdZnSQ45mTs4/7xXV5Wfbv3QNTtcdw8tT3U5KRTrN1mTfTCiRJc0Kw==", "dev": true, "dependencies": { - "@storybook/channels": "7.6.12", - "@storybook/client-logger": "7.6.12", - "@storybook/core-events": "7.6.12", + "@storybook/channels": "7.6.17", + "@storybook/client-logger": "7.6.17", + "@storybook/core-events": "7.6.17", "@storybook/csf": "^0.1.2", "@storybook/global": "^5.0.0", - "@storybook/types": "7.6.12", + "@storybook/types": "7.6.17", "@types/qs": "^6.9.5", "dequal": "^2.0.2", "lodash": "^4.17.21", @@ -8421,18 +8671,18 @@ } }, "node_modules/@storybook/react": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/react/-/react-7.6.12.tgz", - "integrity": "sha512-ITDRGi79Qg+z1kGYv+yyJESz/5AsJVdBTMO7tr1qV7gmHElkASt6UR8SBSqKgePOnYgy3k/1PLfbzOs6G4OgYQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/react/-/react-7.6.17.tgz", + "integrity": "sha512-lVqzQSU03rRJWYW+gK2gq6mSo3/qtnVICY8B8oP7gc36jVu4ksDIu45bTfukM618ODkUZy0vZe6T4engK3azjA==", "dev": true, "dependencies": { - "@storybook/client-logger": "7.6.12", - "@storybook/core-client": "7.6.12", - "@storybook/docs-tools": "7.6.12", + "@storybook/client-logger": "7.6.17", + "@storybook/core-client": "7.6.17", + "@storybook/docs-tools": "7.6.17", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.6.12", - "@storybook/react-dom-shim": "7.6.12", - "@storybook/types": "7.6.12", + "@storybook/preview-api": "7.6.17", + "@storybook/react-dom-shim": "7.6.17", + "@storybook/types": "7.6.17", "@types/escodegen": "^0.0.6", "@types/estree": "^0.0.51", "@types/node": "^18.0.0", @@ -8467,9 +8717,9 @@ } }, "node_modules/@storybook/react-dom-shim": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-7.6.12.tgz", - "integrity": "sha512-P8eu/s/RQlc/7Yvr260lqNa6rttxIYiPUuHQBu9oCacwkpB3Xep2R/PUY2CifRHqlDhaOINO/Z79oGZl4EBQRQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-7.6.17.tgz", + "integrity": "sha512-32Sa/G+WnvaPiQ1Wvjjw5UM9rr2c4GDohwCcWVv3/LJuiFPqNS6zglAtmnsrlIBnUwRBMLMh/ekCTdqMiUmfDw==", "dev": true, "funding": { "type": "opencollective", @@ -8496,12 +8746,12 @@ } }, "node_modules/@storybook/router": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/router/-/router-7.6.12.tgz", - "integrity": "sha512-1fqscJbePFJXhapqiv7fAIIqAvouSsdPnqWjJGJrUMR6JBtRYMcrb3MnDeqi9OYnU73r65BrQBPtSzWM8nP0LQ==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/router/-/router-7.6.17.tgz", + "integrity": "sha512-GnyC0j6Wi5hT4qRhSyT8NPtJfGmf82uZw97LQRWeyYu5gWEshUdM7aj40XlNiScd5cZDp0owO1idduVF2k2l2A==", "dev": true, "dependencies": { - "@storybook/client-logger": "7.6.12", + "@storybook/client-logger": "7.6.17", "memoizerific": "^1.11.3", "qs": "^6.10.0" }, @@ -8511,13 +8761,13 @@ } }, "node_modules/@storybook/theming": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/theming/-/theming-7.6.12.tgz", - "integrity": "sha512-P4zoMKlSYbNrWJjQROuz+DZSDEpdf3TUvk203EqBRdElqw2EMHcqZ8+0HGPFfVHpqEj05+B9Mr6R/Z/BURj0lw==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/theming/-/theming-7.6.17.tgz", + "integrity": "sha512-ZbaBt3KAbmBtfjNqgMY7wPMBshhSJlhodyMNQypv+95xLD/R+Az6aBYbpVAOygLaUQaQk4ar7H/Ww6lFIoiFbA==", "dev": true, "dependencies": { "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", - "@storybook/client-logger": "7.6.12", + "@storybook/client-logger": "7.6.17", "@storybook/global": "^5.0.0", "memoizerific": "^1.11.3" }, @@ -8531,12 +8781,12 @@ } }, "node_modules/@storybook/types": { - "version": "7.6.12", - "resolved": "https://registry.npmjs.org/@storybook/types/-/types-7.6.12.tgz", - "integrity": "sha512-Wsbd+NS10/2yMHQ/26rXHflXam0hm2qufTFiHOX6VXZWxij3slRU88Fnwzp+1QSyjXb0qkEr8dOx7aG00+ItVw==", + "version": "7.6.17", + "resolved": "https://registry.npmjs.org/@storybook/types/-/types-7.6.17.tgz", + "integrity": "sha512-GRY0xEJQ0PrL7DY2qCNUdIfUOE0Gsue6N+GBJw9ku1IUDFLJRDOF+4Dx2BvYcVCPI5XPqdWKlEyZdMdKjiQN7Q==", "dev": true, "dependencies": { - "@storybook/channels": "7.6.12", + "@storybook/channels": "7.6.17", "@types/babel__core": "^7.0.0", "@types/express": "^4.7.0", "file-system-cache": "2.3.0" @@ -9149,9 +9399,9 @@ } }, "node_modules/@testing-library/react": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.2.0.tgz", - "integrity": "sha512-7uBnPHyOG6nDGCzv8SLeJbSa33ZoYw7swYpSLIgJvBALdq7l9zPNk33om4USrxy1lKTxXaVfufzLmq83WNfWIw==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.2.1.tgz", + "integrity": "sha512-sGdjws32ai5TLerhvzThYFbpnF9XtL65Cjf+gB0Dhr29BGqK+mAeN7SURSdu+eqgET4ANcWoC7FQpkaiGvBr+A==", "dev": true, "dependencies": { "@babel/runtime": "^7.12.5", @@ -9624,12 +9874,6 @@ "optional": true, "peer": true }, - "node_modules/@types/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", - "dev": true - }, "node_modules/@types/node": { "version": "20.11.13", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.13.tgz", @@ -9658,12 +9902,6 @@ "@types/node": "*" } }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", - "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", - "dev": true - }, "node_modules/@types/parse-json": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", @@ -11026,15 +11264,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -12471,32 +12700,6 @@ "node": ">= 6" } }, - "node_modules/camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/camelcase-keys/node_modules/quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/caniuse-api": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", @@ -13896,12 +14099,15 @@ "dev": true }, "node_modules/dargs": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", - "integrity": "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-8.1.0.tgz", + "integrity": "sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/data-urls": { @@ -13985,31 +14191,8 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", - "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", - "dev": true, - "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } @@ -14532,15 +14715,15 @@ } }, "node_modules/dotenv": { - "version": "16.4.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", - "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true, "engines": { "node": ">=12" }, "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" + "url": "https://dotenvx.com" } }, "node_modules/dotenv-expand": { @@ -15001,16 +15184,16 @@ } }, "node_modules/eslint": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", - "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.56.0", - "@humanwhocodes/config-array": "^0.11.13", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -17412,130 +17595,22 @@ } }, "node_modules/git-raw-commits": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz", - "integrity": "sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==", - "dev": true, - "dependencies": { - "dargs": "^7.0.0", - "lodash": "^4.17.15", - "meow": "^8.0.0", - "split2": "^3.0.0", - "through2": "^4.0.0" - }, - "bin": { - "git-raw-commits": "cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/git-raw-commits/node_modules/hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/git-raw-commits/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/git-raw-commits/node_modules/meow": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", - "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", - "dev": true, - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/git-raw-commits/node_modules/normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/git-raw-commits/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-4.0.0.tgz", + "integrity": "sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "dargs": "^8.0.0", + "meow": "^12.0.1", + "split2": "^4.0.0" }, "bin": { - "semver": "bin/semver.js" + "git-raw-commits": "cli.mjs" }, "engines": { - "node": ">=10" - } - }, - "node_modules/git-raw-commits/node_modules/split2": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", - "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", - "dev": true, - "dependencies": { - "readable-stream": "^3.0.0" - } - }, - "node_modules/git-raw-commits/node_modules/type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=16" } }, - "node_modules/git-raw-commits/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/github-slugger": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", @@ -17586,24 +17661,21 @@ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, - "node_modules/global-dirs": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", - "integrity": "sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==", + "node_modules/global-directory": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-4.0.1.tgz", + "integrity": "sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==", "dev": true, "dependencies": { - "ini": "^1.3.4" + "ini": "4.1.1" }, "engines": { - "node": ">=4" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/global-dirs/node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, "node_modules/global-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", @@ -17788,15 +17860,6 @@ "node": ">=0.10.0" } }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/harmony-reflect": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", @@ -18371,12 +18434,12 @@ } }, "node_modules/husky": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", - "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, "bin": { - "husky": "bin.js" + "husky": "bin.mjs" }, "engines": { "node": ">=18" @@ -18627,6 +18690,16 @@ "node": ">=8" } }, + "node_modules/import-meta-resolve": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.0.0.tgz", + "integrity": "sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -18895,9 +18968,9 @@ } }, "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==", "dev": true, "optional": true, "peer": true @@ -23559,9 +23632,9 @@ "dev": true }, "node_modules/joi": { - "version": "17.12.1", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.12.1.tgz", - "integrity": "sha512-vtxmq+Lsc5SlfqotnfVjlViWfOL9nt/avKNbKYizwf6gsCfq9NYY/ceYRMFD8XDdrjJ9abJyScWmhmIiy+XRtQ==", + "version": "17.12.2", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.12.2.tgz", + "integrity": "sha512-RonXAIzCiHLc8ss3Ibuz45u28GOsWE1UpfDXLbN/9NKbL4tCJf8TWYVKsoYuuh+sAUt7fsSNpA+r2+TBA6Wjmw==", "dev": true, "dependencies": { "@hapi/hoek": "^9.3.0", @@ -24127,12 +24200,6 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, - "node_modules/lodash.isfunction": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", - "integrity": "sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==", - "dev": true - }, "node_modules/lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", @@ -24337,18 +24404,6 @@ "node": ">=0.10.0" } }, - "node_modules/map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/map-or-similar": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/map-or-similar/-/map-or-similar-1.5.0.tgz", @@ -24735,20 +24790,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dev": true, - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/minipass": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", @@ -25678,9 +25719,9 @@ } }, "node_modules/npm-check-updates": { - "version": "16.14.14", - "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.14.tgz", - "integrity": "sha512-Y3ajS/Ep40jM489rLBdz9jehn/BMil5s9fA4PSr2ZJxxSmtLWCSmRqsI2IEZ9Nb3MTMu8a3s7kBs0l+JbjdkTA==", + "version": "16.14.15", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.15.tgz", + "integrity": "sha512-WH0wJ9j6CP7Azl+LLCxWAYqroT2IX02kRIzgK/fg0rPpMbETgHITWBdOPtrv521xmA3JMgeNsQ62zvVtS/nCmQ==", "dev": true, "dependencies": { "chalk": "^5.3.0", @@ -27255,9 +27296,9 @@ } }, "node_modules/postcss": { - "version": "8.4.33", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", - "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", + "version": "8.4.35", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz", + "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==", "dev": true, "funding": [ { @@ -28600,9 +28641,9 @@ } }, "node_modules/prettier": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", - "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -29375,12 +29416,11 @@ "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" }, "node_modules/react-hook-form": { - "version": "7.49.3", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.49.3.tgz", - "integrity": "sha512-foD6r3juidAT1cOZzpmD/gOKt7fRsDhXXZ0y28+Al1CHgX+AY1qIN9VSIIItXRq1dN68QrRwl1ORFlwjBaAqeQ==", + "version": "7.50.1", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.50.1.tgz", + "integrity": "sha512-3PCY82oE0WgeOgUtIr3nYNNtNvqtJ7BZjsbxh6TnYNbXButaD5WpjOmTjdxZfheuHKR68qfeFnEDVYoSSFPMTQ==", "engines": { - "node": ">=18", - "pnpm": "8" + "node": ">=12.22.0" }, "funding": { "type": "opencollective", @@ -29499,9 +29539,9 @@ } }, "node_modules/react-remove-scroll-bar": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz", - "integrity": "sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.5.tgz", + "integrity": "sha512-3cqjOqg6s0XbOjWvmasmqHch+RLxIEk2r/70rzGXuz3iIGQsQheEQyqYCBb5EECoD01Vo2SIbDqW4paLeLTASw==", "dev": true, "dependencies": { "react-style-singleton": "^2.2.1", @@ -30015,135 +30055,6 @@ "node": ">=4" } }, - "node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/read-pkg/node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -30752,15 +30663,18 @@ } }, "node_modules/resolve-global": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz", - "integrity": "sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-global/-/resolve-global-2.0.0.tgz", + "integrity": "sha512-gnAQ0Q/KkupGkuiMyX4L0GaBV8iFwlmoXsMtOz+DFTaKmHhOO/dSlP1RMKhpvHv/dh6K/IQkowGJBqUG0NfBUw==", "dev": true, "dependencies": { - "global-dirs": "^0.1.1" + "global-directory": "^4.0.1" }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/resolve-pkg-maps": { @@ -32402,9 +32316,9 @@ } }, "node_modules/store2": { - "version": "2.14.2", - "resolved": "https://registry.npmjs.org/store2/-/store2-2.14.2.tgz", - "integrity": "sha512-siT1RiqlfQnGqgT/YzXVUNsom9S0H1OX+dpdGN1xkyYATo4I6sep5NmsRD/40s3IIOvlCq6akxkqG82urIZW1w==", + "version": "2.14.3", + "resolved": "https://registry.npmjs.org/store2/-/store2-2.14.3.tgz", + "integrity": "sha512-4QcZ+yx7nzEFiV4BMLnr/pRa5HYzNITX2ri0Zh6sT9EyQHbBHacC6YigllUPU9X3D0f/22QCgfokpKs52YRrUg==", "dev": true }, "node_modules/strict-uri-encode": { @@ -33542,15 +33456,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/through2": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", - "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", - "dev": true, - "dependencies": { - "readable-stream": "3" - } - }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -33558,9 +33463,9 @@ "dev": true }, "node_modules/tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", "dev": true }, "node_modules/tmpl": { @@ -33760,15 +33665,6 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true }, - "node_modules/trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/trim-repeated": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", @@ -34122,6 +34018,18 @@ "node": ">=4" } }, + "node_modules/unicorn-magic": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", + "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/unified": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", @@ -34275,12 +34183,12 @@ } }, "node_modules/unplugin": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.6.0.tgz", - "integrity": "sha512-BfJEpWBu3aE/AyHx8VaNE/WgouoQxgH9baAiH82JjX8cqVyi3uJQstqwD5J+SZxIK326SZIhsSZlALXVBCknTQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.7.1.tgz", + "integrity": "sha512-JqzORDAPxxs8ErLV4x+LL7bk5pk3YlcWqpSNsIkAZj972KzFZLClc/ekppahKkOczGkwIG6ElFgdOgOlK4tXZw==", "dev": true, "dependencies": { - "acorn": "^8.11.2", + "acorn": "^8.11.3", "chokidar": "^3.5.3", "webpack-sources": "^3.2.3", "webpack-virtual-modules": "^0.6.1" diff --git a/package.json b/package.json index ce3f6f7d..54866c61 100644 --- a/package.json +++ b/package.json @@ -42,26 +42,27 @@ }, "devDependencies": { "@babel/core": "^7.23.9", - "@babel/eslint-parser": "^7.23.9", + "@babel/eslint-parser": "^7.23.10", + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-react": "^7.23.3", - "@commitlint/cli": "^18.6.0", - "@commitlint/config-conventional": "^18.6.0", + "@commitlint/cli": "^19.0.0", + "@commitlint/config-conventional": "^19.0.0", "@hookform/devtools": "^4.3.1", "@rollup/plugin-babel": "^5.2.2", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "@sheerun/mutationobserver-shim": "^0.3.3", - "@storybook/addon-actions": "^7.6.10", - "@storybook/addon-essentials": "^7.6.10", - "@storybook/addon-links": "^7.6.10", + "@storybook/addon-actions": "^7.6.17", + "@storybook/addon-essentials": "^7.6.17", + "@storybook/addon-links": "^7.6.17", "@storybook/preset-create-react-app": "^3.1.5", - "@storybook/react": "^7.6.10", + "@storybook/react": "^7.6.17", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^14.1.2", + "@testing-library/react": "^14.2.1", "cross-env": "^7.0.3", "date-fns": "^2.30.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard": "^17.1.0", "eslint-config-standard-react": "^13.0.0", @@ -75,12 +76,12 @@ "eslint-plugin-standard": "^4.1.0", "generate-changelog": "^1.8.0", "gh-pages": "^2.2.0", - "husky": "^9.0.7", - "joi": "^17.12.1", - "npm-check-updates": "^16.14.14", + "husky": "^9.0.11", + "joi": "^17.12.2", + "npm-check-updates": "^16.14.15", "npm-run-all": "^4.1.5", - "postcss": "^8.4.33", - "prettier": "^3.2.4", + "postcss": "^8.4.35", + "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "^5.0.1", @@ -98,7 +99,7 @@ "debounce-promise": "^3.1.2", "install": "^0.13.0", "react-datepicker": "^4.23.0", - "react-hook-form": "^7.49.3", + "react-hook-form": "^7.50.1", "react-markdown": "^5.0.3", "react-phone-number-input": "^3.3.9", "react-select": "^5.8.0", From 2ad934871c657d4182868755aa3206e4f9b2d496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:18:03 +0100 Subject: [PATCH 02/14] refactor: improve example app to support multiple forms --- example/.eslintrc.js | 6 +- example/package-lock.json | 74 ++++++++--- example/package.json | 1 + example/src/App.jsx | 27 ++++ example/src/error-page.jsx | 17 +++ .../Contact/Contact.test.js} | 7 +- example/src/{ => forms/Contact}/forms.json | 0 .../src/{App.js => forms/Contact/index.jsx} | 7 +- example/src/forms/Contact/styles.js | 5 + example/src/forms/Countries/form-new.json | 27 ++++ example/src/forms/Countries/form-old.json | 27 ++++ example/src/forms/Countries/index.jsx | 92 +++++++++++++ example/src/forms/Countries/styles.js | 9 ++ example/src/index.js | 121 ++++-------------- example/src/styles.js | 20 --- example/src/theme.js | 94 ++++++++++++++ package-lock.json | 23 ++++ package.json | 2 + src/Questions/Country/index.js | 1 + 19 files changed, 420 insertions(+), 140 deletions(-) create mode 100644 example/src/App.jsx create mode 100644 example/src/error-page.jsx rename example/src/{App.test.js => forms/Contact/Contact.test.js} (57%) rename example/src/{ => forms/Contact}/forms.json (100%) rename example/src/{App.js => forms/Contact/index.jsx} (92%) create mode 100644 example/src/forms/Contact/styles.js create mode 100644 example/src/forms/Countries/form-new.json create mode 100644 example/src/forms/Countries/form-old.json create mode 100644 example/src/forms/Countries/index.jsx create mode 100644 example/src/forms/Countries/styles.js delete mode 100644 example/src/styles.js create mode 100644 example/src/theme.js diff --git a/example/.eslintrc.js b/example/.eslintrc.js index 5848cfd1..d82bc4cc 100644 --- a/example/.eslintrc.js +++ b/example/.eslintrc.js @@ -1,4 +1,4 @@ -var OFF = 0, +const OFF = 0, WARN = 1, ERROR = 2 @@ -223,6 +223,8 @@ module.exports = exports = { 'spaced-comment': [WARN, 'always'], 'import/no-duplicates': WARN, 'react/jsx-no-bind': WARN, - 'wrap-regex': WARN + 'wrap-regex': WARN, + + 'no-console': WARN, } } diff --git a/example/package-lock.json b/example/package-lock.json index 2ab9dd81..687b9aa4 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -11,6 +11,7 @@ "react": "file:../node_modules/react", "react-dom": "file:../node_modules/react-dom", "react-form-builder": "file:..", + "react-router-dom": "^6.22.1", "react-scripts": "file:../node_modules/react-scripts" }, "devDependencies": { @@ -20,13 +21,15 @@ }, "..": { "name": "@onebeyond/react-form-builder", - "version": "1.0.1", + "version": "1.1.1", "license": "MIT", "dependencies": { + "countries-list": "^3.0.6", "debounce-promise": "^3.1.2", + "i18n-iso-countries": "^7.10.0", "install": "^0.13.0", "react-datepicker": "^4.23.0", - "react-hook-form": "^7.49.3", + "react-hook-form": "^7.50.1", "react-markdown": "^5.0.3", "react-phone-number-input": "^3.3.9", "react-select": "^5.8.0", @@ -36,26 +39,27 @@ }, "devDependencies": { "@babel/core": "^7.23.9", - "@babel/eslint-parser": "^7.23.9", + "@babel/eslint-parser": "^7.23.10", + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-react": "^7.23.3", - "@commitlint/cli": "^18.6.0", - "@commitlint/config-conventional": "^18.6.0", + "@commitlint/cli": "^19.0.0", + "@commitlint/config-conventional": "^19.0.0", "@hookform/devtools": "^4.3.1", "@rollup/plugin-babel": "^5.2.2", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "@sheerun/mutationobserver-shim": "^0.3.3", - "@storybook/addon-actions": "^7.6.10", - "@storybook/addon-essentials": "^7.6.10", - "@storybook/addon-links": "^7.6.10", + "@storybook/addon-actions": "^7.6.17", + "@storybook/addon-essentials": "^7.6.17", + "@storybook/addon-links": "^7.6.17", "@storybook/preset-create-react-app": "^3.1.5", - "@storybook/react": "^7.6.10", + "@storybook/react": "^7.6.17", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^14.1.2", + "@testing-library/react": "^14.2.1", "cross-env": "^7.0.3", "date-fns": "^2.30.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard": "^17.1.0", "eslint-config-standard-react": "^13.0.0", @@ -69,12 +73,12 @@ "eslint-plugin-standard": "^4.1.0", "generate-changelog": "^1.8.0", "gh-pages": "^2.2.0", - "husky": "^9.0.7", - "joi": "^17.12.1", - "npm-check-updates": "^16.14.14", + "husky": "^9.0.11", + "joi": "^17.12.2", + "npm-check-updates": "^16.14.15", "npm-run-all": "^4.1.5", - "postcss": "^8.4.33", - "prettier": "^3.2.4", + "postcss": "^8.4.35", + "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "^5.0.1", @@ -999,6 +1003,14 @@ "node": ">=12" } }, + "node_modules/@remix-run/router": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.1.tgz", + "integrity": "sha512-zcU0gM3z+3iqj8UX45AmWY810l3oUmXM7uH4dt5xtzvMhRtYVhKGOmgOd1877dOPPepfCjUv57w+syamWIYe7w==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@sigstore/bundle": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-1.1.0.tgz", @@ -4190,6 +4202,36 @@ "resolved": "..", "link": true }, + "node_modules/react-router": { + "version": "6.22.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.1.tgz", + "integrity": "sha512-0pdoRGwLtemnJqn1K0XHUbnKiX0S4X8CgvVVmHGOWmofESj31msHo/1YiqcJWK7Wxfq2a4uvvtS01KAQyWK/CQ==", + "dependencies": { + "@remix-run/router": "1.15.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.22.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.1.tgz", + "integrity": "sha512-iwMyyyrbL7zkKY7MRjOVRy+TMnS/OPusaFVxM2P11x9dzSzGmLsebkCvYirGq0DWB9K9hOspHYYtDz33gE5Duw==", + "dependencies": { + "@remix-run/router": "1.15.1", + "react-router": "6.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/react-scripts": { "resolved": "../node_modules/react-scripts", "link": true diff --git a/example/package.json b/example/package.json index 3caeafef..3a9b2135 100644 --- a/example/package.json +++ b/example/package.json @@ -14,6 +14,7 @@ "react": "file:../node_modules/react", "react-dom": "file:../node_modules/react-dom", "react-form-builder": "file:..", + "react-router-dom": "^6.22.1", "react-scripts": "file:../node_modules/react-scripts" }, "devDependencies": { diff --git a/example/src/App.jsx b/example/src/App.jsx new file mode 100644 index 00000000..a338d81f --- /dev/null +++ b/example/src/App.jsx @@ -0,0 +1,27 @@ +import React from 'react' +import { Link, Outlet } from 'react-router-dom' + +import 'react-datepicker/dist/react-datepicker.css' +import 'react-phone-number-input/style.css' + +const App = () => { + return ( +
+ +
+ +
+
+ ) +} + +export default App diff --git a/example/src/error-page.jsx b/example/src/error-page.jsx new file mode 100644 index 00000000..935bb597 --- /dev/null +++ b/example/src/error-page.jsx @@ -0,0 +1,17 @@ +import React from 'react' +import { useRouteError } from 'react-router-dom' + +export default function ErrorPage() { + const error = useRouteError(); + // console.error(error); + + return ( +
+

Oops!

+

Sorry, an unexpected error has occurred.

+

+ {error.statusText || error.message} +

+
+ ); +} \ No newline at end of file diff --git a/example/src/App.test.js b/example/src/forms/Contact/Contact.test.js similarity index 57% rename from example/src/App.test.js rename to example/src/forms/Contact/Contact.test.js index 5120ebb5..f25dcc49 100644 --- a/example/src/App.test.js +++ b/example/src/forms/Contact/Contact.test.js @@ -1,9 +1,10 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import App from './App' -it('renders without crashing', () => { +import Contact from './index' + +it.skip('renders without crashing', () => { const div = document.createElement('div') - ReactDOM.createRoot(, div) + ReactDOM.createRoot(, div) ReactDOM.unmountComponentAtNode(div) }) diff --git a/example/src/forms.json b/example/src/forms/Contact/forms.json similarity index 100% rename from example/src/forms.json rename to example/src/forms/Contact/forms.json diff --git a/example/src/App.js b/example/src/forms/Contact/index.jsx similarity index 92% rename from example/src/App.js rename to example/src/forms/Contact/index.jsx index ecb96c05..cc93d51d 100644 --- a/example/src/App.js +++ b/example/src/forms/Contact/index.jsx @@ -12,12 +12,9 @@ import { import forms from './forms.json' import styles from './styles.js' -import 'react-datepicker/dist/react-datepicker.css' -import 'react-phone-number-input/style.css' - const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); -const App = () => { +const Contact = () => { const [modalText, setModalText] = useState('') const [show, setShow] = useState(false) const [isLoading, setLoading] = useState(false) @@ -71,4 +68,4 @@ const App = () => { ) } -export default App +export default Contact diff --git a/example/src/forms/Contact/styles.js b/example/src/forms/Contact/styles.js new file mode 100644 index 00000000..0ef595e3 --- /dev/null +++ b/example/src/forms/Contact/styles.js @@ -0,0 +1,5 @@ +export default { + container: { + padding: '30px 30px' + } +} diff --git a/example/src/forms/Countries/form-new.json b/example/src/forms/Countries/form-new.json new file mode 100644 index 00000000..aa03c6dc --- /dev/null +++ b/example/src/forms/Countries/form-new.json @@ -0,0 +1,27 @@ +{ + "name": "Form with new Country question format", + "title": "Form with new Country question format", + "questions": [ + { + "name": "Country", + "placeholder": "Select your country", + "priorityOptions": [ + "GB" + ], + "type": "country", + "label": "Current country question", + "errorMessages": { + "required": "This field is required" + }, + "registerConfig": { + "required": true + } + } + ], + "callForAction": [ + { + "caption": "Enter", + "type": "submit" + } + ] +} \ No newline at end of file diff --git a/example/src/forms/Countries/form-old.json b/example/src/forms/Countries/form-old.json new file mode 100644 index 00000000..d8868e39 --- /dev/null +++ b/example/src/forms/Countries/form-old.json @@ -0,0 +1,27 @@ +{ + "name": "Form with old Country question format", + "title": "Form with old Country question format", + "questions": [ + { + "name": "Country", + "placeholder": "Select your country", + "priorityOptions": [ + "GB" + ], + "type": "country", + "label": "Current country question", + "errorMessages": { + "required": "This field is required" + }, + "registerConfig": { + "required": true + } + } + ], + "callForAction": [ + { + "caption": "Enter", + "type": "submit" + } + ] +} \ No newline at end of file diff --git a/example/src/forms/Countries/index.jsx b/example/src/forms/Countries/index.jsx new file mode 100644 index 00000000..7e5a797e --- /dev/null +++ b/example/src/forms/Countries/index.jsx @@ -0,0 +1,92 @@ +/* eslint-disable */ +/** @jsxRuntime classic */ +/** @jsx jsx */ +import { jsx } from 'theme-ui' +import React, { useState } from 'react' +import { + Label, + Modal, + FormBuilder +} from 'react-form-builder' + +import oldForm from './form-old.json' +import newForm from './form-new.json' +import styles from './styles.js' + +const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); + +const CountriesForm = () => { + const [modalText, setModalText] = useState('') + const [show, setShow] = useState(false) + const [isLoading, setLoading] = useState(false) + const [formErrors, setFormErrors] = useState() + + function onLinkOpen(name) { + setModalText(forms.contact.textToShow[name]) + setShow(true) + } + + const onSubmitForm = async (data) => { + console.log('Submitting the form...') + + // Simulate loading + setLoading(true) + await sleep(5000); + setLoading(false) + + alert( + `You have submitted your form correctly: ${'\n'} ${JSON.stringify( + data, + null, + 2 + )}` + ) + } + + return ( +
+
+

+ {oldForm.title} +

+ setShow(false)} + show={show} + modalText={modalText} + /> + +
+
+

+ {newForm.title} +

+ setShow(false)} + show={show} + modalText={modalText} + /> + +
+
+ ) +} + +export default CountriesForm diff --git a/example/src/forms/Countries/styles.js b/example/src/forms/Countries/styles.js new file mode 100644 index 00000000..c92c5231 --- /dev/null +++ b/example/src/forms/Countries/styles.js @@ -0,0 +1,9 @@ +export default { + container: { + padding: '30px 30px', + display: 'flex', + }, + formContainer: { + padding: '30px 30px', + } +} diff --git a/example/src/index.js b/example/src/index.js index 2660d421..52d7df0f 100644 --- a/example/src/index.js +++ b/example/src/index.js @@ -2,107 +2,40 @@ /** @jsx jsx */ import React from 'react' import ReactDOM from 'react-dom/client' -import App from './App' import { jsx, ThemeProvider, merge } from 'theme-ui' import { ExampleTheme } from 'react-form-builder' +import { + createBrowserRouter, + RouterProvider, +} from "react-router-dom" -const theme = { - buttons: { - primary: { - color: 'red' - }, - customButton: { - color: 'green' - } - }, - select: { - backgroundColor: 'red', - option: { - color: 'purple', - fontSize: '30px' - }, - control: { - backgroundColor: 'gray', - borderRadius: '20px' - } - }, - forms: { - container: { - contact: { - display: 'grid', - backgroundColor: 'green', - gridTemplateColumns: '1fr 1fr' - } - }, - multipleImageCheckboxes: { - contact: { - display: 'grid', - gridTemplateColumns: '1fr 1fr', - label: { - div: { - backgroundColor: '#fff', - border: '1px solid #ccc', - borderRadius: '50%', - cursor: 'pointer', - height: '28px', - left: '0', - width: '28px', - svg: { - visibility: 'hidden' - } - } - } - } - }, - selectContainer: { - gridColumnStart: '1', - gridColumnEnd: '3' - }, - countryContainer: { - gridColumnStart: '1', - gridColumnEnd: '3' - }, - inputContainer: { - gridColumnStart: '1', - gridColumnEnd: '3' - }, - autoCompleteContainer: { - gridColumnStart: '1', - gridColumnEnd: '3' - }, - selectImagesContainer: { - '>div': { - display: 'flex', - maxWidth: '100%', - flexWrap: 'wrap', - gap: ['2px', '10px'], - justifyContent: 'center', - alignItems: 'center' - } - }, - selectImagesInput: { - svg: { - width: '10px', - ':nth-of-type(2)': { - color: 'transparent' - }, - ':nth-of-type(1)': { - color: 'transparent' - } +import App from './App' +import Contact from './forms/Contact' +import Countries from './forms/Countries' +import ErrorPage from './error-page' +import theme from './theme' + +const router = createBrowserRouter([ + { + path: '/', + element: , + errorElement: , + children: [ + { + path: 'contact', + element: , + }, + { + path: 'countries', + element: , }, - 'input:focus ~ svg': { - color: 'transparent', - backgroundColor: 'transparent' - } - } + ], }, - label: { - color: 'brown' - } -} +]); + const root = ReactDOM.createRoot(document.getElementById('root')) root.render( - + ) diff --git a/example/src/styles.js b/example/src/styles.js deleted file mode 100644 index fe472f48..00000000 --- a/example/src/styles.js +++ /dev/null @@ -1,20 +0,0 @@ -export default { - container: { - padding: '30px 30px' - }, - fullWidth: { - gridColumnStart: '1', - gridColumnEnd: '3' - }, - selectOption: { - background: 'bg', - color: 'black' - }, - markDown: { - fontFamily: 'regular', - width: ['90%', '95%', '95%'], - p: { - margin: 0 - } - } -} diff --git a/example/src/theme.js b/example/src/theme.js new file mode 100644 index 00000000..5d1ddc58 --- /dev/null +++ b/example/src/theme.js @@ -0,0 +1,94 @@ +export default { + buttons: { + primary: { + color: 'red' + }, + customButton: { + color: 'green' + } + }, + select: { + backgroundColor: 'red', + option: { + color: 'purple', + fontSize: '30px' + }, + control: { + backgroundColor: 'gray', + borderRadius: '20px' + } + }, + forms: { + container: { + contact: { + display: 'grid', + backgroundColor: 'green', + gridTemplateColumns: '1fr 1fr' + } + }, + multipleImageCheckboxes: { + contact: { + display: 'grid', + gridTemplateColumns: '1fr 1fr', + label: { + div: { + backgroundColor: '#fff', + border: '1px solid #ccc', + borderRadius: '50%', + cursor: 'pointer', + height: '28px', + left: '0', + width: '28px', + svg: { + visibility: 'hidden' + } + } + } + } + }, + selectContainer: { + gridColumnStart: '1', + gridColumnEnd: '3' + }, + countryContainer: { + gridColumnStart: '1', + gridColumnEnd: '3' + }, + inputContainer: { + gridColumnStart: '1', + gridColumnEnd: '3' + }, + autoCompleteContainer: { + gridColumnStart: '1', + gridColumnEnd: '3' + }, + selectImagesContainer: { + '>div': { + display: 'flex', + maxWidth: '100%', + flexWrap: 'wrap', + gap: ['2px', '10px'], + justifyContent: 'center', + alignItems: 'center' + } + }, + selectImagesInput: { + svg: { + width: '10px', + ':nth-of-type(2)': { + color: 'transparent' + }, + ':nth-of-type(1)': { + color: 'transparent' + } + }, + 'input:focus ~ svg': { + color: 'transparent', + backgroundColor: 'transparent' + } + } + }, + label: { + color: 'brown' + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 06e47333..74e87fcd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,9 @@ "version": "1.1.1", "license": "MIT", "dependencies": { + "countries-list": "^3.0.6", "debounce-promise": "^3.1.2", + "i18n-iso-countries": "^7.10.0", "install": "^0.13.0", "react-datepicker": "^4.23.0", "react-hook-form": "^7.50.1", @@ -13506,6 +13508,11 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/countries-list": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/countries-list/-/countries-list-3.0.6.tgz", + "integrity": "sha512-BCJODHTSRMIxS0W80NZw8bC7x6/WS8Tf4FdtFrEbW0FONBbqTAzOrKNG06UEMgLGxOZpOJddiVEdCztKLpmPxA==" + }, "node_modules/country-flag-icons": { "version": "1.5.9", "resolved": "https://registry.npmjs.org/country-flag-icons/-/country-flag-icons-1.5.9.tgz", @@ -14519,6 +14526,11 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, + "node_modules/diacritics": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/diacritics/-/diacritics-1.3.0.tgz", + "integrity": "sha512-wlwEkqcsaxvPJML+rDh/2iS824jbREk6DUMUKkEaSlxdYHeS43cClJtsWglvw2RfeXGm6ohKDqsXteJ5sP5enA==" + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -18448,6 +18460,17 @@ "url": "https://github.com/sponsors/typicode" } }, + "node_modules/i18n-iso-countries": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/i18n-iso-countries/-/i18n-iso-countries-7.10.0.tgz", + "integrity": "sha512-Y4wkIS2MzYk7cvaV665qcHpBUK4FaMcAhSfsggu9SPV9VpWvmH8NklofWvPPFWG1ZXmxqZ0Ubgr+ZtqddxG4ag==", + "dependencies": { + "diacritics": "1.3.0" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", diff --git a/package.json b/package.json index 54866c61..8bdbb65e 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,9 @@ "dist" ], "dependencies": { + "countries-list": "^3.0.6", "debounce-promise": "^3.1.2", + "i18n-iso-countries": "^7.10.0", "install": "^0.13.0", "react-datepicker": "^4.23.0", "react-hook-form": "^7.50.1", diff --git a/src/Questions/Country/index.js b/src/Questions/Country/index.js index d7be8e5f..c9ca66c5 100644 --- a/src/Questions/Country/index.js +++ b/src/Questions/Country/index.js @@ -87,6 +87,7 @@ const QuestionCountry = ({ )) } + const options = question.region ? getRegionOptions(watch('Country').label) : getCountriesOptions(question.placeholder, countryAndRegions) From 77293f88f6244d6fb50c63fced4a9cd24665253c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:22:55 +0100 Subject: [PATCH 03/14] feat(wip): new country question with countries enriched data --- example/src/forms/Countries/form-new.json | 4 +- example/src/forms/Countries/form-old.json | 2 +- .../CountryNew/__tests__/country.test.js | 312 +++++ src/Questions/CountryNew/country.stories.js | 224 +++ .../CountryNew/data/countryAndRegion.js | 1247 +++++++++++++++++ src/Questions/CountryNew/data/de.js | 319 +++++ src/Questions/CountryNew/data/es.js | 315 +++++ src/Questions/CountryNew/data/fr.js | 331 +++++ src/Questions/CountryNew/index.js | 149 ++ src/builder.js | 19 +- 10 files changed, 2918 insertions(+), 4 deletions(-) create mode 100644 src/Questions/CountryNew/__tests__/country.test.js create mode 100644 src/Questions/CountryNew/country.stories.js create mode 100644 src/Questions/CountryNew/data/countryAndRegion.js create mode 100644 src/Questions/CountryNew/data/de.js create mode 100644 src/Questions/CountryNew/data/es.js create mode 100644 src/Questions/CountryNew/data/fr.js create mode 100644 src/Questions/CountryNew/index.js diff --git a/example/src/forms/Countries/form-new.json b/example/src/forms/Countries/form-new.json index aa03c6dc..14281c53 100644 --- a/example/src/forms/Countries/form-new.json +++ b/example/src/forms/Countries/form-new.json @@ -3,12 +3,12 @@ "title": "Form with new Country question format", "questions": [ { - "name": "Country", + "name": "country", "placeholder": "Select your country", "priorityOptions": [ "GB" ], - "type": "country", + "type": "country_new", "label": "Current country question", "errorMessages": { "required": "This field is required" diff --git a/example/src/forms/Countries/form-old.json b/example/src/forms/Countries/form-old.json index d8868e39..89299b37 100644 --- a/example/src/forms/Countries/form-old.json +++ b/example/src/forms/Countries/form-old.json @@ -3,7 +3,7 @@ "title": "Form with old Country question format", "questions": [ { - "name": "Country", + "name": "country", "placeholder": "Select your country", "priorityOptions": [ "GB" diff --git a/src/Questions/CountryNew/__tests__/country.test.js b/src/Questions/CountryNew/__tests__/country.test.js new file mode 100644 index 00000000..0916f4cc --- /dev/null +++ b/src/Questions/CountryNew/__tests__/country.test.js @@ -0,0 +1,312 @@ +import React from 'react' +import { + cleanup, + getByText, + screen, + render, + fireEvent, + renderHook +} from '@testing-library/react' +import QuestionCountry from '../' +import selectEvent from 'react-select-event' +import { useForm } from 'react-hook-form' + +import MutationObserver from '@sheerun/mutationobserver-shim' +window.MutationObserver = MutationObserver + +afterEach(cleanup) + +const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['GB', 'ES'], + errorMessages: { + required: 'This field is required' + } +} + +const customListCountries = [ + { cn: 'MyOwnCountry1', cs: 'MC1' }, + { cn: 'MyOwnCountry2', cs: 'MC2' }, + { cn: 'MyOwnCountry3', cs: 'MC3' }, + { cn: 'MyOwnCountry4', cs: 'MC4' } +] + +const { result } = renderHook(() => useForm()) +const formMethods = result.current + +const setup = (customListCountries) => { + const renderComponent = render( + + ) + + const countryComponent = renderComponent.getByTestId('question-country') + const placeholderComponent = renderComponent.getByText( + 'Please select an option ^^' + ) + + return { countryComponent, placeholderComponent } +} + +test('check the placeholder text', () => { + const { countryComponent } = setup() + getByText(countryComponent, 'Please select an option ^^') +}) + +test('Country label', () => { + const { countryComponent } = setup() + getByText(countryComponent, 'This is the label of the country select') +}) + +test('change value of select', async () => { + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + } + } + const { getByText } = render( + + ) + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText('Spain')) +}) + +test('sort country list by default', async () => { + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText('Afghanistan')) +}) + +test('handle country priority order', async () => { + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['GB', 'ES'], + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText('United Kingdom')) +}) + +test('check all the countries are rendered', async () => { + const { placeholderComponent } = setup(customListCountries) + + await selectEvent.openMenu(placeholderComponent) + for (let i = 0; i < customListCountries.length; i++) { + expect(screen.getByText('MyOwnCountry' + (i + 1))) + } +}) + +test('label tag is not displayed when label value is null', () => { + const questionNoLabel = { ...question } + delete questionNoLabel.label + render() + + expect(!screen.queryByTestId('country-label')) +}) + +test('renders a country list in spanish', async () => { + const data = { + language: 'es', + select: 'España' + } + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText(data.select)) +}) + +test('renders a country list in french', async () => { + const data = { + language: 'fr', + select: 'Espagne' + } + + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText(data.select)) +}) + +test('renders a country list in deusche', async () => { + const data = { + language: 'de', + select: 'Spanien' + } + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText(data.select)) +}) + +test('renders a fallback country list when the language is not supported', async () => { + const data = { + language: 'qwerty', + select: 'Spain' + } + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + } + } + + const { getByText } = render( + + ) + + const select = getByText('Please select an option ^^') + + await selectEvent.openMenu(select) + fireEvent.keyDown(select, { key: 'Enter', code: 13 }) + expect(screen.getByText(data.select)) +}) + +test('show an error message', () => { + const { getByText } = render( + + ) + expect(getByText(question.errorMessages.required)).toBeTruthy() +}) + +test('Option values are country names (instead of country codes) if "returnCountryCode" is true', async () => { + const question = { + name: 'country_of_residence', + type: 'country', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + priorityOptions: ['ES'], + errorMessages: { + required: 'This field is required' + }, + returnCountryCode: true + } + const { getByText } = render( + + ) + const select = getByText('Please select an option ^^') + await selectEvent.select(select, 'Spain') + expect(screen.getByText('Spain')) +}) diff --git a/src/Questions/CountryNew/country.stories.js b/src/Questions/CountryNew/country.stories.js new file mode 100644 index 00000000..0a80395e --- /dev/null +++ b/src/Questions/CountryNew/country.stories.js @@ -0,0 +1,224 @@ +import React from 'react' +import Country from '.' + +export default { + title: 'Question/Country', + component: Country, + argTypes: { + name: { + type: { name: 'string', required: true }, + description: 'Name of the country component', + table: { + type: { summary: 'string' } + } + }, + isFullWidth: { + type: { name: 'boolean' }, + description: + 'Define if the field takes all the available width in the grid or not', + table: { + type: { summary: 'boolean' }, + defaultValue: { summary: false } + } + }, + label: { + type: { name: 'string' }, + description: + 'Text shown with the select. This text can be written in markdown style', + table: { + type: { summary: 'string' } + } + }, + placeholder: { + type: { name: 'string' }, + description: 'The text that will be shown as placeholder in the select', + table: { + type: { summary: 'string' } + } + }, + priorityOptions: { + type: { name: 'Array' }, + description: + 'An array of Strings with the name(s) of the countries that you want to be shown the first in the country list', + table: { + type: { summary: 'Array' } + } + }, + language: { + type: { name: 'string' }, + description: + 'An string with the language shortcode in which you want to display the country names opt: es,en,fr,de', + table: { + type: { summary: 'string' }, + defaultValue: { summary: 'en' } + } + }, + countryAndRegionsData: { + type: { name: 'object' }, + description: + 'An object or array of objects with the acronym(s) and the names of the countries that you want to be shown in the select.', + table: { + type: { + summary: 'json' + }, + defaultValue: { summary: '[]' }, + category: 'countryAndRegionsData' + } + }, + countryName: { + type: { name: 'string' }, + description: 'The name of the country', + table: { + type: { summary: 'string' }, + category: 'countryAndRegionsData' + } + }, + countryShortCode: { + type: { name: 'string' }, + description: 'The code/shortcut for the country', + table: { + type: { summary: 'string' }, + category: 'countryAndRegionsData' + } + }, + component: { + description: 'Customization of the country select', + table: { + type: { summary: 'func component' }, + defaultValue: { summary: '() => {}' } + } + }, + errorMessages: { + description: '', + table: { + type: { summary: 'json' }, + category: 'errorMessages' + } + }, + requiredError: { + name: 'required', + description: + 'error message to display on submit if the country is not selected', + table: { + type: { summary: 'string' }, + category: 'errorMessages' + } + }, + registerConfig: { + description: '', + table: { + type: { summary: 'json' }, + category: 'registerConfig' + } + }, + required: { + description: 'Define if the country select is required or not', + table: { + type: { summary: 'boolean' }, + category: 'registerConfig', + defaultValue: { summary: false } + } + } + } +} + +const question = { + name: 'country_of_residence', + label: 'This is the label of the country select', + placeholder: 'Please select an option ^^', + errorMessages: { + required: 'This field is required' + }, + registerConfig: { + required: false + } +} + +const customListCountries = [ + { countryName: 'MyOwnCountry1', countryShortCode: 'MC1' }, + { countryName: 'MyOwnCountry2', countryShortCode: 'MC2' }, + { countryName: 'MyOwnCountry3', countryShortCode: 'MC3' }, + { countryName: 'MyOwnCountry4', countryShortCode: 'MC4' } +] + +const customListCountryQst = { ...question } +customListCountryQst.priorityOptions = ['GB', 'ES'] + +const Template = (args) => ( + ({}), + formState: { errors: {} }, + register: () => {}, + setValue: () => {} + }} + /> +) + +const errorTemplate = (args) => ( + ({}), + formState: { + errors: { + [question.name]: { + type: 'required' + } + } + }, + register: () => {}, + setValue: () => {} + }} + /> +) + +const customOrderTemplate = (args) => ( + ({}), + formState: { errors: {} }, + register: () => {}, + setValue: () => {} + }} + /> +) + +const customListCountriesTemplate = (args) => ( + ({}), + formState: { errors: {} }, + register: () => {}, + setValue: () => {} + }} + /> +) + +const idiomChangedTemplate = (args) => ( + ({}), + formState: { errors: {} }, + register: () => {}, + setValue: () => {} + }} + /> +) +export const defaultCountry = Template.bind({}) +export const errorCountry = errorTemplate.bind({}) +export const customOrderCountries = customOrderTemplate.bind({}) +export const customListCountry = customListCountriesTemplate.bind({}) +export const idiomEsCountry = idiomChangedTemplate.bind({}) + +defaultCountry.args = question +errorCountry.args = question +customOrderCountries.args = customListCountryQst +customListCountry.args = question +idiomEsCountry.args = question diff --git a/src/Questions/CountryNew/data/countryAndRegion.js b/src/Questions/CountryNew/data/countryAndRegion.js new file mode 100644 index 00000000..67041267 --- /dev/null +++ b/src/Questions/CountryNew/data/countryAndRegion.js @@ -0,0 +1,1247 @@ +export default [ + { + cn: 'Afghanistan', + cs: 'AF', + value: 'afghanistan' + }, + { + cn: 'Åland Islands', + cs: 'AX', + value: 'åland islands' + }, + { + cn: 'Albania', + cs: 'AL', + value: 'albania' + }, + { + cn: 'Algeria', + cs: 'DZ', + value: 'algeria' + }, + { + cn: 'American Samoa', + cs: 'AS', + value: 'american samoa' + }, + { + cn: 'Andorra', + cs: 'AD', + value: 'andorra' + }, + { + cn: 'Angola', + cs: 'AO', + value: 'angola' + }, + { + cn: 'Anguilla', + cs: 'AI', + value: 'anguilla' + }, + { + cn: 'Antarctica', + cs: 'AQ', + value: 'antarctica' + }, + { + cn: 'Antigua and Barbuda', + cs: 'AG', + value: 'antigua and barbuda' + }, + { + cn: 'Argentina', + cs: 'AR', + value: 'argentina' + }, + { + cn: 'Armenia', + cs: 'AM', + value: 'armenia' + }, + { + cn: 'Aruba', + cs: 'AW', + value: 'aruba' + }, + { + cn: 'Australia', + cs: 'AU', + value: 'australia' + }, + { + cn: 'Austria', + cs: 'AT', + value: 'austria' + }, + { + cn: 'Azerbaijan', + cs: 'AZ', + value: 'azerbaijan' + }, + { + cn: 'Bahamas', + cs: 'BS', + value: 'bahamas' + }, + { + cn: 'Bahrain', + cs: 'BH', + value: 'bahrain' + }, + { + cn: 'Bangladesh', + cs: 'BD', + value: 'bangladesh' + }, + { + cn: 'Barbados', + cs: 'BB', + value: 'barbados' + }, + { + cn: 'Belarus', + cs: 'BY', + value: 'belarus' + }, + { + cn: 'Belgium', + cs: 'BE', + value: 'belgium' + }, + { + cn: 'Belize', + cs: 'BZ', + value: 'belize' + }, + { + cn: 'Benin', + cs: 'BJ', + value: 'benin' + }, + { + cn: 'Bermuda', + cs: 'BM', + value: 'bermuda' + }, + { + cn: 'Bhutan', + cs: 'BT', + value: 'bhutan' + }, + { + cn: 'Bolivia', + cs: 'BO', + value: 'bolivia' + }, + { + cn: 'Bonaire, Sint Eustatius and Saba', + cs: 'BQ', + value: 'bonaire, sint eustatius and saba' + }, + { + cn: 'Bosnia and Herzegovina', + cs: 'BA', + value: 'bosnia and herzegovina' + }, + { + cn: 'Botswana', + cs: 'BW', + value: 'botswana' + }, + { + cn: 'Bouvet Island', + cs: 'BV', + value: 'bouvet island' + }, + { + cn: 'Brazil', + cs: 'BR', + value: 'brazil' + }, + { + cn: 'British Indian Ocean Territory', + cs: 'IO', + value: 'british indian ocean territory' + }, + { + cn: 'Brunei Darussalam', + cs: 'BN', + value: 'brunei darussalam' + }, + { + cn: 'Bulgaria', + cs: 'BG', + value: 'bulgaria' + }, + { + cn: 'Burkina Faso', + cs: 'BF', + value: 'burkina faso' + }, + { + cn: 'Burundi', + cs: 'BI', + value: 'burundi' + }, + { + cn: 'Cambodia', + cs: 'KH', + value: 'cambodia' + }, + { + cn: 'Cameroon', + cs: 'CM', + value: 'cameroon' + }, + { + cn: 'Canada', + cs: 'CA', + value: 'canada' + }, + { + cn: 'Cape Verde', + cs: 'CV', + value: 'cape verde' + }, + { + cn: 'Cayman Islands', + cs: 'KY', + value: 'cayman islands' + }, + { + cn: 'Central African Republic', + cs: 'CF', + value: 'central african republic' + }, + { + cn: 'Chad', + cs: 'TD', + value: 'chad' + }, + { + cn: 'Chile', + cs: 'CL', + value: 'chile' + }, + { + cn: 'China', + cs: 'CN', + value: 'china' + }, + { + cn: 'Christmas Island', + cs: 'CX', + value: 'christmas island' + }, + { + cn: 'Cocos (Keeling) Islands', + cs: 'CC', + value: 'cocos (keeling) islands' + }, + { + cn: 'Colombia', + cs: 'CO', + value: 'colombia' + }, + { + cn: 'Comoros', + cs: 'KM', + value: 'comoros' + }, + { + cn: 'Congo', + cs: 'CG', + value: 'congo' + }, + { + cn: 'Cook Islands', + cs: 'CK', + value: 'cook islands' + }, + { + cn: 'Costa Rica', + cs: 'CR', + value: 'costa rica' + }, + { + cn: "Côte d'Ivoire", + cs: 'CI', + value: "côte d'ivoire" + }, + { + cn: 'Croatia', + cs: 'HR', + value: 'croatia' + }, + { + cn: 'Cuba', + cs: 'CU', + value: 'cuba' + }, + { + cn: 'Curaçao', + cs: 'CW', + value: 'curaçao' + }, + { + cn: 'Cyprus', + cs: 'CY', + value: 'cyprus' + }, + { + cn: 'Czech Republic', + cs: 'CZ', + value: 'czech republic' + }, + { + cn: 'Denmark', + cs: 'DK', + value: 'denmark' + }, + { + cn: 'Djibouti', + cs: 'DJ', + value: 'djibouti' + }, + { + cn: 'Dominica', + cs: 'DM', + value: 'dominica' + }, + { + cn: 'Dominican Republic', + cs: 'DO', + value: 'dominican republic' + }, + { + cn: 'Ecuador', + cs: 'EC', + value: 'ecuador' + }, + { + cn: 'Egypt', + cs: 'EG', + value: 'egypt' + }, + { + cn: 'El Salvador', + cs: 'SV', + value: 'el salvador' + }, + { + cn: 'Equatorial Guinea', + cs: 'GQ', + value: 'equatorial guinea' + }, + { + cn: 'Eritrea', + cs: 'ER', + value: 'eritrea' + }, + { + cn: 'Estonia', + cs: 'EE', + value: 'estonia' + }, + { + cn: 'Ethiopia', + cs: 'ET', + value: 'ethiopia' + }, + { + cn: 'Falkland Islands (Malvinas)', + cs: 'FK', + value: 'falkland islands (malvinas)' + }, + { + cn: 'Faroe Islands', + cs: 'FO', + value: 'faroe islands' + }, + { + cn: 'Fiji', + cs: 'FJ', + value: 'fiji' + }, + { + cn: 'Finland', + cs: 'FI', + value: 'finland' + }, + { + cn: 'France', + cs: 'FR', + value: 'france' + }, + { + cn: 'French Guiana', + cs: 'GF', + value: 'french guiana' + }, + { + cn: 'French Polynesia', + cs: 'PF', + value: 'french polynesia' + }, + { + cn: 'French Southern Territories', + cs: 'TF', + value: 'french southern territories' + }, + { + cn: 'Gabon', + cs: 'GA', + value: 'gabon' + }, + { + cn: 'Gambia', + cs: 'GM', + value: 'gambia' + }, + { + cn: 'Georgia', + cs: 'GE', + value: 'georgia' + }, + { + cn: 'Germany', + cs: 'DE', + value: 'germany' + }, + { + cn: 'Ghana', + cs: 'GH', + value: 'ghana' + }, + { + cn: 'Gibraltar', + cs: 'GI', + value: 'gibraltar' + }, + { + cn: 'Greece', + cs: 'GR', + value: 'greece' + }, + { + cn: 'Greenland', + cs: 'GL', + value: 'greenland' + }, + { + cn: 'Grenada', + cs: 'GD', + value: 'grenada' + }, + { + cn: 'Guadeloupe', + cs: 'GP', + value: 'guadeloupe' + }, + { + cn: 'Guam', + cs: 'GU', + value: 'guam' + }, + { + cn: 'Guatemala', + cs: 'GT', + value: 'guatemala' + }, + { + cn: 'Guernsey', + cs: 'GG', + value: 'guernsey' + }, + { + cn: 'Guinea', + cs: 'GN', + value: 'guinea' + }, + { + cn: 'Guinea-Bissau', + cs: 'GW', + value: 'guinea-bissau' + }, + { + cn: 'Guyana', + cs: 'GY', + value: 'guyana' + }, + { + cn: 'Haiti', + cs: 'HT', + value: 'haiti' + }, + { + cn: 'Heard Island and Mcdonald Islands', + cs: 'HM', + value: 'heard island and mcdonald islands' + }, + { + cn: 'Holy See (Vatican City State)', + cs: 'VA', + value: 'holy see (vatican city state)' + }, + { + cn: 'Honduras', + cs: 'HN', + value: 'honduras' + }, + { + cn: 'Hong Kong', + cs: 'HK', + value: 'hong kong' + }, + { + cn: 'Hungary', + cs: 'HU', + value: 'hungary' + }, + { + cn: 'Iceland', + cs: 'IS', + value: 'iceland' + }, + { + cn: 'India', + cs: 'IN', + value: 'india' + }, + { + cn: 'Indonesia', + cs: 'ID', + value: 'indonesia' + }, + { + cn: 'Iran, Islamic Republic Of', + cs: 'IR', + value: 'iran, islamic republic of' + }, + { + cn: 'Iraq', + cs: 'IQ', + value: 'iraq' + }, + { + cn: 'Isle of Man', + cs: 'IM', + value: 'isle of man' + }, + { + cn: 'Israel', + cs: 'IL', + value: 'israel' + }, + { + cn: 'Italy', + cs: 'IT', + value: 'italy' + }, + { + cn: 'Jamaica', + cs: 'JM', + value: 'jamaica' + }, + { + cn: 'Japan', + cs: 'JP', + value: 'japan' + }, + { + cn: 'Jersey', + cs: 'JE', + value: 'jersey' + }, + { + cn: 'Jordan', + cs: 'JO', + value: 'jordan' + }, + { + cn: 'Kazakhstan', + cs: 'KZ', + value: 'kazakhstan' + }, + { + cn: 'Kenya', + cs: 'KE', + value: 'kenya' + }, + { + cn: 'Kiribati', + cs: 'KI', + value: 'kiribati' + }, + { + cn: "Korea, Democratic People's Republic of", + cs: 'KP', + value: "korea, democratic people's republic of" + }, + { + cn: 'Korea, Republic of', + cs: 'KR', + value: 'korea, republic of' + }, + { + cn: 'Kuwait', + cs: 'KW', + value: 'kuwait' + }, + { + cn: 'Kyrgyzstan', + cs: 'KG', + value: 'kyrgyzstan' + }, + { + cn: 'Laos', + cs: 'LA', + value: 'laos' + }, + { + cn: 'Latvia', + cs: 'LV', + value: 'latvia' + }, + { + cn: 'Lebanon', + cs: 'LB', + value: 'lebanon' + }, + { + cn: 'Lesotho', + cs: 'LS', + value: 'lesotho' + }, + { + cn: 'Liberia', + cs: 'LR', + value: 'liberia' + }, + { + cn: 'Libyan Arab Jamahiriya', + cs: 'LY', + value: 'libyan arab jamahiriya' + }, + { + cn: 'Liechtenstein', + cs: 'LI', + value: 'liechtenstein' + }, + { + cn: 'Lithuania', + cs: 'LT', + value: 'lithuania' + }, + { + cn: 'Luxembourg', + cs: 'LU', + value: 'luxembourg' + }, + { + cn: 'Macao', + cs: 'MO', + value: 'macao' + }, + { + cn: 'Madagascar', + cs: 'MG', + value: 'madagascar' + }, + { + cn: 'Malawi', + cs: 'MW', + value: 'malawi' + }, + { + cn: 'Malaysia', + cs: 'MY', + value: 'malaysia' + }, + { + cn: 'Maldives', + cs: 'MV', + value: 'maldives' + }, + { + cn: 'Mali', + cs: 'ML', + value: 'mali' + }, + { + cn: 'Malta', + cs: 'MT', + value: 'malta' + }, + { + cn: 'Marshall Islands', + cs: 'MH', + value: 'marshall islands' + }, + { + cn: 'Martinique', + cs: 'MQ', + value: 'martinique' + }, + { + cn: 'Mauritania', + cs: 'MR', + value: 'mauritania' + }, + { + cn: 'Mauritius', + cs: 'MU', + value: 'mauritius' + }, + { + cn: 'Mayotte', + cs: 'YT', + value: 'mayotte' + }, + { + cn: 'Mexico', + cs: 'MX', + value: 'mexico' + }, + { + cn: 'Micronesia, Federated States of', + cs: 'FM', + value: 'micronesia, federated states of' + }, + { + cn: 'Moldova, Republic of', + cs: 'MD', + value: 'moldova, republic of' + }, + { + cn: 'Monaco', + cs: 'MC', + value: 'monaco' + }, + { + cn: 'Mongolia', + cs: 'MN', + value: 'mongolia' + }, + { + cn: 'Montenegro', + cs: 'ME', + value: 'montenegro' + }, + { + cn: 'Montserrat', + cs: 'MS', + value: 'montserrat' + }, + { + cn: 'Morocco', + cs: 'MA', + value: 'morocco' + }, + { + cn: 'Mozambique', + cs: 'MZ', + value: 'mozambique' + }, + { + cn: 'Myanmar', + cs: 'MM', + value: 'myanmar' + }, + { + cn: 'Namibia', + cs: 'NA', + value: 'namibia' + }, + { + cn: 'Nauru', + cs: 'NR', + value: 'nauru' + }, + { + cn: 'Nepal', + cs: 'NP', + value: 'nepal' + }, + { + cn: 'Netherlands', + cs: 'NL', + value: 'netherlands' + }, + { + cn: 'Netherlands Antilles', + cs: 'AN', + value: 'netherlands antilles' + }, + { + cn: 'New Caledonia', + cs: 'NC', + value: 'new caledonia' + }, + { + cn: 'New Zealand', + cs: 'NZ', + value: 'new zealand' + }, + { + cn: 'Nicaragua', + cs: 'NI', + value: 'nicaragua' + }, + { + cn: 'Niger', + cs: 'NE', + value: 'niger' + }, + { + cn: 'Nigeria', + cs: 'NG', + value: 'nigeria' + }, + { + cn: 'Niue', + cs: 'NU', + value: 'niue' + }, + { + cn: 'Norfolk Island', + cs: 'NF', + value: 'norfolk island' + }, + { + cn: 'North Macedonia', + cs: 'MK', + value: 'north macedonia' + }, + { + cn: 'Northern Mariana Islands', + cs: 'MP', + value: 'northern mariana islands' + }, + { + cn: 'Norway', + cs: 'NO', + value: 'norway' + }, + { + cn: 'Oman', + cs: 'OM', + value: 'oman' + }, + { + cn: 'Pakistan', + cs: 'PK', + value: 'pakistan' + }, + { + cn: 'Palau', + cs: 'PW', + value: 'palau' + }, + { + cn: 'Palestinian Territory, Occupied', + cs: 'PS', + value: 'palestinian territory, occupied' + }, + { + cn: 'Panama', + cs: 'PA', + value: 'panama' + }, + { + cn: 'Papua New Guinea', + cs: 'PG', + value: 'papua new guinea' + }, + { + cn: 'Paraguay', + cs: 'PY', + value: 'paraguay' + }, + { + cn: 'Peru', + cs: 'PE', + value: 'peru' + }, + { + cn: 'Philippines', + cs: 'PH', + value: 'philippines' + }, + { + cn: 'Pitcairn', + cs: 'PN', + value: 'pitcairn' + }, + { + cn: 'Poland', + cs: 'PL', + value: 'poland' + }, + { + cn: 'Portugal', + cs: 'PT', + value: 'portugal' + }, + { + cn: 'Puerto Rico', + cs: 'PR', + value: 'puerto rico' + }, + { + cn: 'Qatar', + cs: 'QA', + value: 'qatar' + }, + { + cn: 'Republic of Ireland', + cs: 'IE', + value: 'ireland' + }, + { + cn: 'Reunion', + cs: 'RE', + value: 'reunion' + }, + { + cn: 'Romania', + cs: 'RO', + value: 'romania' + }, + { + cn: 'Russian Federation', + cs: 'RU', + value: 'russian federation' + }, + { + cn: 'Rwanda', + cs: 'RW', + value: 'rwanda' + }, + { + cn: 'Saint Barthélemy', + cs: 'BL', + value: 'saint barthélemy' + }, + { + cn: 'Saint Helena, Ascension and Tristan de Cunha', + cs: 'SH', + value: 'saint helena, ascension and tristan de cunha' + }, + { + cn: 'Saint Kitts and Nevis', + cs: 'KN', + value: 'saint kitts and nevis' + }, + { + cn: 'Saint Lucia', + cs: 'LC', + value: 'saint lucia' + }, + { + cn: 'Saint Martin', + cs: 'MF', + value: 'saint martin' + }, + { + cn: 'Saint Pierre and Miquelon', + cs: 'PM', + value: 'saint pierre and miquelon' + }, + { + cn: 'Saint Vincent and the Grenadines', + cs: 'VC', + value: 'saint vincent and the grenadines' + }, + { + cn: 'Samoa', + cs: 'WS', + value: 'samoa' + }, + { + cn: 'San Marino', + cs: 'SM', + value: 'san marino' + }, + { + cn: 'Sao Tome and Principe', + cs: 'ST', + value: 'sao tome and principe' + }, + { + cn: 'Saudi Arabia', + cs: 'SA', + value: 'saudi arabia' + }, + { + cn: 'Senegal', + cs: 'SN', + value: 'senegal' + }, + { + cn: 'Serbia and Montenegro', + cs: 'CS', + value: 'serbia and montenegro' + }, + { + cn: 'Seychelles', + cs: 'SC', + value: 'seychelles' + }, + { + cn: 'Sierra Leone', + cs: 'SL', + value: 'sierra leone' + }, + { + cn: 'Singapore', + cs: 'SG', + value: 'singapore' + }, + { + cn: 'Sint Maarten (Dutch part)', + cs: 'SX', + value: 'sint maarten (dutch part)' + }, + { + cn: 'Slovakia', + cs: 'SK', + value: 'slovakia' + }, + { + cn: 'Slovenia', + cs: 'SI', + value: 'slovenia' + }, + { + cn: 'Solomon Islands', + cs: 'SB', + value: 'solomon islands' + }, + { + cn: 'Somalia', + cs: 'SO', + value: 'somalia' + }, + { + cn: 'South Africa', + cs: 'ZA', + value: 'south africa' + }, + { + cn: 'South Georgia and the South Sandwich Islands', + cs: 'GS', + value: 'south georgia and the south sandwich islands' + }, + { + cn: 'South Sudan', + cs: 'SS', + value: 'south sudan' + }, + { + cn: 'Spain', + cs: 'ES', + value: 'spain' + }, + { + cn: 'Sri Lanka', + cs: 'LK', + value: 'sri lanka' + }, + { + cn: 'Sudan', + cs: 'SD', + value: 'sudan' + }, + { + cn: 'Suricn', + cs: 'SR', + value: 'suricn' + }, + { + cn: 'Svalbard and Jan Mayen', + cs: 'SJ', + value: 'svalbard and jan mayen' + }, + { + cn: 'Swaziland', + cs: 'SZ', + value: 'swaziland' + }, + { + cn: 'Sweden', + cs: 'SE', + value: 'sweden' + }, + { + cn: 'Switzerland', + cs: 'CH', + value: 'switzerland' + }, + { + cn: 'Syrian Arab Republic', + cs: 'SY', + value: 'syrian arab republic' + }, + { + cn: 'Taiwan, Province of China', + cs: 'TW', + value: 'taiwan, province of china' + }, + { + cn: 'Tajikistan', + cs: 'TJ', + value: 'tajikistan' + }, + { + cn: 'Tanzania, United Republic of', + cs: 'TZ', + value: 'tanzania, united republic of' + }, + { + cn: 'Thailand', + cs: 'TH', + value: 'thailand' + }, + { + cn: 'Timor-Leste', + cs: 'TL', + value: 'timor-leste' + }, + { + cn: 'Togo', + cs: 'TG', + value: 'togo' + }, + { + cn: 'Tokelau', + cs: 'TK', + value: 'tokelau' + }, + { + cn: 'Tonga', + cs: 'TO', + value: 'tonga' + }, + { + cn: 'Trinidad and Tobago', + cs: 'TT', + value: 'trinidad and tobago' + }, + { + cn: 'Tunisia', + cs: 'TN', + value: 'tunisia' + }, + { + cn: 'Turkey', + cs: 'TR', + value: 'turkey' + }, + { + cn: 'Turkmenistan', + cs: 'TM', + value: 'turkmenistan' + }, + { + cn: 'Turks and Caicos Islands', + cs: 'TC', + value: 'turks and caicos islands' + }, + { + cn: 'Tuvalu', + cs: 'TV', + value: 'tuvalu' + }, + { + cn: 'Uganda', + cs: 'UG', + value: 'uganda' + }, + { + cn: 'Ukraine', + cs: 'UA', + value: 'ukraine' + }, + { + cn: 'United Arab Emirates', + cs: 'AE', + value: 'united arab emirates' + }, + { + cn: 'United Kingdom', + cs: 'GB', + value: 'united kingdom' + }, + { + cn: 'United States', + cs: 'US', + value: 'united states' + }, + { + cn: 'United States Minor Outlying Islands', + cs: 'UM', + value: 'united states minor outlying islands' + }, + { + cn: 'Uruguay', + cs: 'UY', + value: 'uruguay' + }, + { + cn: 'Uzbekistan', + cs: 'UZ', + value: 'uzbekistan' + }, + { + cn: 'Vanuatu', + cs: 'VU', + value: 'vanuatu' + }, + { + cn: 'Venezuela', + cs: 'VE', + value: 'venezuela' + }, + { + cn: 'Vietnam', + cs: 'VN', + value: 'vietnam' + }, + { + cn: 'Virgin Islands, British', + cs: 'VG', + value: 'virgin islands, british' + }, + { + cn: 'Virgin Islands, U.S.', + cs: 'VI', + value: 'virgin islands, u.s.' + }, + { + cn: 'Wallis and Futuna', + cs: 'WF', + value: 'wallis and futuna' + }, + { + cn: 'Western Sahara', + cs: 'EH', + value: 'western sahara' + }, + { + cn: 'Yemen', + cs: 'YE', + value: 'yemen' + }, + { + cn: 'Zambia', + cs: 'ZM', + value: 'zambia' + }, + { + cn: 'Zimbabwe', + cs: 'ZW', + value: 'zimbabwe' + } +] diff --git a/src/Questions/CountryNew/data/de.js b/src/Questions/CountryNew/data/de.js new file mode 100644 index 00000000..4e835491 --- /dev/null +++ b/src/Questions/CountryNew/data/de.js @@ -0,0 +1,319 @@ +export default [ + { cn: 'Afghanistan', cs: 'AF', value: 'afghanistan' }, + { cn: 'Ägypten', cs: 'EG', value: 'egypt' }, + { cn: 'Åland', cs: 'AX', value: 'åland islands' }, + { cn: 'Albanien', cs: 'AL', value: 'albania' }, + { cn: 'Algerien', cs: 'DZ', value: 'algeria' }, + { cn: 'Amerikanisch-Samoa', cs: 'AS', value: 'american samoa' }, + { + cn: 'Amerikanische Jungferninseln', + cs: 'VI', + value: 'virgin islands, u.s.' + }, + { cn: 'Andorra', cs: 'AD', value: 'andorra' }, + { cn: 'Angola', cs: 'AO', value: 'angola' }, + { cn: 'Anguilla', cs: 'AI', value: 'anguilla' }, + { + cn: 'Antarktis (Sonderstatus durch Antarktisvertrag)', + cs: 'AQ', + value: 'antarctica' + }, + { cn: 'Antigua und Barbuda', cs: 'AG', value: 'antigua and barbuda' }, + { cn: 'Äquatorialguinea', cs: 'GQ', value: 'equatorial guinea' }, + { cn: 'Argentinien', cs: 'AR', value: 'argentina' }, + { cn: 'Armenien', cs: 'AM', value: 'armenia' }, + { cn: 'Aruba', cs: 'AW', value: 'aruba' }, + { cn: 'Aserbaidschan', cs: 'AZ', value: 'azerbaijan' }, + { cn: 'Äthiopien', cs: 'ET', value: 'ethiopia' }, + { cn: 'Australien', cs: 'AU', value: 'australia' }, + { cn: 'Bahamas', cs: 'BS', value: 'bahamas' }, + { cn: 'Bahrain', cs: 'BH', value: 'bahrain' }, + { cn: 'Bangladesch', cs: 'BD', value: 'bangladesh' }, + { cn: 'Barbados', cs: 'BB', value: 'barbados' }, + { cn: 'Belarus', cs: 'BY', value: 'belarus' }, + { cn: 'Belgien', cs: 'BE', value: 'belgium' }, + { cn: 'Belize', cs: 'BZ', value: 'belize' }, + { cn: 'Benin', cs: 'BJ', value: 'benin' }, + { cn: 'Bermuda', cs: 'BM', value: 'bermuda' }, + { cn: 'Bhutan', cs: 'BT', value: 'bhutan' }, + { cn: 'Bolivien', cs: 'BO', value: 'bolivia' }, + { + cn: 'Bonaire, Saba, Sint Eustatius', + cs: 'BQ', + value: 'bonaire, sint eustatius and saba' + }, + { cn: 'Bosnien und Herzegowina', cs: 'BA', value: 'bosnia and herzegovina' }, + { cn: 'Botswana', cs: 'BW', value: 'botswana' }, + { cn: 'Bouvetinsel', cs: 'BV', value: 'bouvet island' }, + { cn: 'Brasilien', cs: 'BR', value: 'brazil' }, + { + cn: 'Britische Jungferninseln', + cs: 'VG', + value: 'virgin islands, british' + }, + { + cn: 'Britisches Territorium im Indischen Ozean', + cs: 'IO', + value: 'british indian ocean territory' + }, + { cn: 'Brunei', cs: 'BN', value: 'brunei darussalam' }, + { cn: 'Bulgarien', cs: 'BG', value: 'bulgaria' }, + { cn: 'Burkina Faso', cs: 'BF', value: 'burkina faso' }, + { cn: 'Burundi', cs: 'BI', value: 'burundi' }, + { cn: 'Chile', cs: 'CL', value: 'chile' }, + { cn: 'Cookinseln', cs: 'CK', value: 'cook islands' }, + { cn: 'Costa Rica', cs: 'CR', value: 'costa rica' }, + { cn: 'Curaçao', cs: 'CW', value: 'curaçao' }, + { cn: 'Dänemark', cs: 'DK', value: 'denmark' }, + { cn: 'Deutschland', cs: 'DE', value: 'germany' }, + { cn: 'Dominica', cs: 'DM', value: 'dominica' }, + { cn: 'Dominikanische Republik', cs: 'DO', value: 'dominican republic' }, + { cn: 'Dschibuti', cs: 'DJ', value: 'djibouti' }, + { cn: 'Ecuador', cs: 'EC', value: 'ecuador' }, + { cn: 'El Salvador', cs: 'SV', value: 'el salvador' }, + { cn: 'Elfenbeinküste', cs: 'CI', value: "côte d'ivoire" }, + { cn: 'Eritrea', cs: 'ER', value: 'eritrea' }, + { cn: 'Estland', cs: 'EE', value: 'estonia' }, + { cn: 'Eswatini', cs: 'SZ', value: 'swaziland' }, + { cn: 'Falklandinseln', cs: 'FK', value: 'falkland islands (malvinas)' }, + { cn: 'Färöer', cs: 'FO', value: 'faroe islands' }, + { cn: 'Fidschi', cs: 'FJ', value: 'fiji' }, + { cn: 'Finnland', cs: 'FI', value: 'finland' }, + { cn: 'Frankreich', cs: 'FR', value: 'france' }, + { cn: 'Französisch-Guayana', cs: 'GF', value: 'french guiana' }, + { cn: 'Französisch-Polynesien', cs: 'PF', value: 'french polynesia' }, + { + cn: 'Französische Süd- und Antarktisgebiete', + cs: 'TF', + value: 'french southern territories' + }, + { cn: 'Gabun', cs: 'GA', value: 'gabon' }, + { cn: 'Gambia', cs: 'GM', value: 'gambia' }, + { cn: 'Georgien', cs: 'GE', value: 'georgia' }, + { cn: 'Ghana', cs: 'GH', value: 'ghana' }, + { cn: 'Gibraltar', cs: 'GI', value: 'gibraltar' }, + { cn: 'Grenada', cs: 'GD', value: 'grenada' }, + { cn: 'Griechenland', cs: 'GR', value: 'greece' }, + { cn: 'Grönland', cs: 'GL', value: 'greenland' }, + { cn: 'Guadeloupe', cs: 'GP', value: 'guadeloupe' }, + { cn: 'Guam', cs: 'GU', value: 'guam' }, + { cn: 'Guatemala', cs: 'GT', value: 'guatemala' }, + { cn: 'Guernsey (Kanalinsel)', cs: 'GG', value: 'guernsey' }, + { cn: 'Guinea', cs: 'GN', value: 'guinea' }, + { cn: 'Guinea-Bissau', cs: 'GW', value: 'guinea-bissau' }, + { cn: 'Guyana', cs: 'GY', value: 'guyana' }, + { cn: 'Haiti', cs: 'HT', value: 'haiti' }, + { + cn: 'Heard und McDonaldinseln', + cs: 'HM', + value: 'heard island and mcdonald islands' + }, + { cn: 'Honduras', cs: 'HN', value: 'honduras' }, + { cn: 'Hongkong', cs: 'HK', value: 'hong kong' }, + { cn: 'Indien', cs: 'IN', value: 'india' }, + { cn: 'Indonesien', cs: 'ID', value: 'indonesia' }, + { cn: 'Insel Man', cs: 'IM', value: 'isle of man' }, + { cn: 'Irak', cs: 'IQ', value: 'iraq' }, + { cn: 'Iran', cs: 'IR', value: 'iran, islamic republic of' }, + { cn: 'Irland', cs: 'IE', value: 'ireland' }, + { cn: 'Island', cs: 'IS', value: 'iceland' }, + { cn: 'Israel', cs: 'IL', value: 'israel' }, + { cn: 'Italien', cs: 'IT', value: 'italy' }, + { cn: 'Jamaika', cs: 'JM', value: 'jamaica' }, + { cn: 'Japan', cs: 'JP', value: 'japan' }, + { cn: 'Jemen', cs: 'YE', value: 'yemen' }, + { cn: 'Jersey (Kanalinsel)', cs: 'JE', value: 'jersey' }, + { cn: 'Jordanien', cs: 'JO', value: 'jordan' }, + { cn: 'Kaimaninseln', cs: 'KY', value: 'cayman islands' }, + { cn: 'Kambodscha', cs: 'KH', value: 'cambodia' }, + { cn: 'Kamerun', cs: 'CM', value: 'cameroon' }, + { cn: 'Kanada', cs: 'CA', value: 'canada' }, + { cn: 'Kap Verde', cs: 'CV', value: 'cape verde' }, + { cn: 'Kasachstan', cs: 'KZ', value: 'kazakhstan' }, + { cn: 'Katar', cs: 'QA', value: 'qatar' }, + { cn: 'Kenia', cs: 'KE', value: 'kenya' }, + { cn: 'Kirgisistan', cs: 'KG', value: 'kyrgyzstan' }, + { cn: 'Kiribati', cs: 'KI', value: 'kiribati' }, + { cn: 'Kokosinseln', cs: 'CC', value: 'cocos (keeling) islands' }, + { cn: 'Kolumbien', cs: 'CO', value: 'colombia' }, + { cn: 'Komoren', cs: 'KM', value: 'comoros' }, + { cn: 'Kongo, Demokratische Republik', cs: 'CD', value: 'congo' }, + { cn: 'Kongo, Republik', cs: 'CG', value: 'congo' }, + { + cn: 'Korea, Nord', + cs: 'KP', + value: "korea, democratic people's republic of" + }, + { cn: 'Korea, Süd', cs: 'KR', value: 'korea, republic of' }, + { cn: 'Kroatien', cs: 'HR', value: 'croatia' }, + { cn: 'Kuba', cs: 'CU', value: 'cuba' }, + { cn: 'Kuwait', cs: 'KW', value: 'kuwait' }, + { cn: 'Laos', cs: 'LA', value: 'laos' }, + { cn: 'Lesotho', cs: 'LS', value: 'lesotho' }, + { cn: 'Lettland', cs: 'LV', value: 'latvia' }, + { cn: 'Libanon', cs: 'LB', value: 'lebanon' }, + { cn: 'Liberia', cs: 'LR', value: 'liberia' }, + { cn: 'Libyen', cs: 'LY', value: 'libyan arab jamahiriya' }, + { cn: 'Liechtenstein', cs: 'LI', value: 'liechtenstein' }, + { cn: 'Litauen', cs: 'LT', value: 'lithuania' }, + { cn: 'Luxemburg', cs: 'LU', value: 'luxembourg' }, + { cn: 'Macau', cs: 'MO', value: 'macao' }, + { cn: 'Madagaskar', cs: 'MG', value: 'madagascar' }, + { cn: 'Malawi', cs: 'MW', value: 'malawi' }, + { cn: 'Malaysia', cs: 'MY', value: 'malaysia' }, + { cn: 'Malediven', cs: 'MV', value: 'maldives' }, + { cn: 'Mali', cs: 'ML', value: 'mali' }, + { cn: 'Malta', cs: 'MT', value: 'malta' }, + { cn: 'Marokko', cs: 'MA', value: 'morocco' }, + { cn: 'Marshallinseln', cs: 'MH', value: 'marshall islands' }, + { cn: 'Martinique', cs: 'MQ', value: 'martinique' }, + { cn: 'Mauretanien', cs: 'MR', value: 'mauritania' }, + { cn: 'Mauritius', cs: 'MU', value: 'mauritius' }, + { cn: 'Mayotte', cs: 'YT', value: 'mayotte' }, + { cn: 'Mexiko', cs: 'MX', value: 'mexico' }, + { cn: 'Mikronesien', cs: 'FM', value: 'micronesia, federated states of' }, + { cn: 'Moldau', cs: 'MD', value: 'moldova, republic of' }, + { cn: 'Monaco', cs: 'MC', value: 'monaco' }, + { cn: 'Mongolei', cs: 'MN', value: 'mongolia' }, + { cn: 'Montenegro', cs: 'ME', value: 'montenegro' }, + { cn: 'Montserrat', cs: 'MS', value: 'montserrat' }, + { cn: 'Mosambik', cs: 'MZ', value: 'mozambique' }, + { cn: 'Myanmar', cs: 'MM', value: 'myanmar' }, + { cn: 'Namibia', cs: 'NA', value: 'namibia' }, + { cn: 'Nauru', cs: 'NR', value: 'nauru' }, + { cn: 'Nepal', cs: 'NP', value: 'nepal' }, + { cn: 'Neukaledonien', cs: 'NC', value: 'new caledonia' }, + { cn: 'Neuseeland', cs: 'NZ', value: 'new zealand' }, + { cn: 'Nicaragua', cs: 'NI', value: 'nicaragua' }, + { cn: 'Niederlande', cs: 'NL', value: 'netherlands' }, + { cn: 'Niger', cs: 'NE', value: 'niger' }, + { cn: 'Nigeria', cs: 'NG', value: 'nigeria' }, + { cn: 'Niue', cs: 'NU', value: 'niue' }, + { cn: 'Nördliche Marianen', cs: 'MP', value: 'northern mariana islands' }, + { cn: 'Nordmazedonien', cs: 'MK', value: 'north macedonia' }, + { cn: 'Norfolkinsel', cs: 'NF', value: 'norfolk island' }, + { cn: 'Norwegen', cs: 'NO', value: 'norway' }, + { cn: 'Oman', cs: 'OM', value: 'oman' }, + { cn: 'Österreich', cs: 'AT', value: 'austria' }, + { cn: 'Osttimor', cs: 'TL', value: 'timor-leste' }, + { cn: 'Pakistan', cs: 'PK', value: 'pakistan' }, + { cn: 'Palästina', cs: 'PS', value: 'palestinian territory, occupied' }, + { cn: 'Palau', cs: 'PW', value: 'palau' }, + { cn: 'Panama', cs: 'PA', value: 'panama' }, + { cn: 'Papua-Neuguinea', cs: 'PG', value: 'papua new guinea' }, + { cn: 'Paraguay', cs: 'PY', value: 'paraguay' }, + { cn: 'Peru', cs: 'PE', value: 'peru' }, + { cn: 'Philippinen', cs: 'PH', value: 'philippines' }, + { cn: 'Pitcairninseln', cs: 'PN', value: 'pitcairn' }, + { cn: 'Polen', cs: 'PL', value: 'poland' }, + { cn: 'Portugal', cs: 'PT', value: 'portugal' }, + { cn: 'Puerto Rico', cs: 'PR', value: 'puerto rico' }, + { cn: 'Republik China', cs: 'TW', value: 'taiwan, province of china' }, + { cn: 'Réunion', cs: 'RE', value: 'reunion' }, + { cn: 'Ruanda', cs: 'RW', value: 'rwanda' }, + { cn: 'Rumänien', cs: 'RO', value: 'romania' }, + { cn: 'Russland', cs: 'RU', value: 'russian federation' }, + { cn: 'Saint-Barthélemy', cs: 'BL', value: 'saint barthélemy' }, + { cn: 'Saint-Martin (französischer Teil)', cs: 'MF', value: 'saint martin' }, + { + cn: 'Saint-Pierre und Miquelon', + cs: 'PM', + value: 'saint pierre and miquelon' + }, + { cn: 'Salomonen', cs: 'SB', value: 'solomon islands' }, + { cn: 'Sambia', cs: 'ZM', value: 'zambia' }, + { cn: 'Samoa', cs: 'WS', value: 'samoa' }, + { cn: 'San Marino', cs: 'SM', value: 'san marino' }, + { cn: 'São Tomé und Príncipe', cs: 'ST', value: 'sao tome and principe' }, + { cn: 'Saudi-Arabien', cs: 'SA', value: 'saudi arabia' }, + { cn: 'Schweden', cs: 'SE', value: 'sweden' }, + { cn: 'Schweiz', cs: 'CH', value: 'switzerland' }, + { cn: 'Senegal', cs: 'SN', value: 'senegal' }, + { cn: 'Serbien', cs: 'RS', value: 'serbia' }, + { cn: 'Seychellen', cs: 'SC', value: 'seychelles' }, + { cn: 'Sierra Leone', cs: 'SL', value: 'sierra leone' }, + { cn: 'Simbabwe', cs: 'ZW', value: 'zimbabwe' }, + { cn: 'Singapur', cs: 'SG', value: 'singapore' }, + { cn: 'Sint Maarten', cs: 'SX', value: 'sint maarten (dutch part)' }, + { cn: 'Slowakei', cs: 'SK', value: 'slovakia' }, + { cn: 'Slowenien', cs: 'SI', value: 'slovenia' }, + { cn: 'Somalia', cs: 'SO', value: 'somalia' }, + { cn: 'Spanien', cs: 'ES', value: 'spain' }, + { + cn: 'Spitzbergen und Jan Mayen', + cs: 'SJ', + value: 'svalbard and jan mayen' + }, + { cn: 'Sri Lanka', cs: 'LK', value: 'sri lanka' }, + { + cn: 'St. Helena, Ascension und Tristan da Cunha', + cs: 'SH', + value: 'saint helena, ascension and tristan de cunha' + }, + { cn: 'St. Kitts und Nevis', cs: 'KN', value: 'saint kitts and nevis' }, + { cn: 'St. Lucia', cs: 'LC', value: 'saint lucia' }, + { + cn: 'St. Vincent und die Grenadinen', + cs: 'VC', + value: 'saint vincent and the grenadines' + }, + { cn: 'Südafrika', cs: 'ZA', value: 'south africa' }, + { cn: 'Sudan', cs: 'SD', value: 'sudan' }, + { + cn: 'Südgeorgien und die Südlichen Sandwichinseln', + cs: 'GS', + value: 'south georgia and the south sandwich islands' + }, + { cn: 'Südsudan', cs: 'SS', value: 'south sudan' }, + { cn: 'Suricn', cs: 'SR', value: 'suricn' }, + { cn: 'Syrien', cs: 'SY', value: 'syrian arab republic' }, + { cn: 'Tadschikistan', cs: 'TJ', value: 'tajikistan' }, + { cn: 'Tansania', cs: 'TZ', value: 'tanzania, united republic of' }, + { cn: 'Thailand', cs: 'TH', value: 'thailand' }, + { cn: 'Togo', cs: 'TG', value: 'togo' }, + { cn: 'Tokelau', cs: 'TK', value: 'tokelau' }, + { cn: 'Tonga', cs: 'TO', value: 'tonga' }, + { cn: 'Trinidad und Tobago', cs: 'TT', value: 'trinidad and tobago' }, + { cn: 'Tschad', cs: 'TD', value: 'chad' }, + { cn: 'Tschechien', cs: 'CZ', value: 'czech republic' }, + { cn: 'Tunesien', cs: 'TN', value: 'tunisia' }, + { cn: 'Türkei', cs: 'TR', value: 'turkey' }, + { cn: 'Turkmenistan', cs: 'TM', value: 'turkmenistan' }, + { + cn: 'Turks- und Caicosinseln', + cs: 'TC', + value: 'turks and caicos islands' + }, + { cn: 'Tuvalu', cs: 'TV', value: 'tuvalu' }, + { cn: 'Uganda', cs: 'UG', value: 'uganda' }, + { cn: 'Ukraine', cs: 'UA', value: 'ukraine' }, + { cn: 'Ungarn', cs: 'HU', value: 'hungary' }, + { + cn: 'United States Minor Outlying Islands', + cs: 'UM', + value: 'united states minor outlying islands' + }, + { cn: 'Uruguay', cs: 'UY', value: 'uruguay' }, + { cn: 'Usbekistan', cs: 'UZ', value: 'uzbekistan' }, + { cn: 'Vanuatu', cs: 'VU', value: 'vanuatu' }, + { cn: 'Vatikanstadt', cs: 'VA', value: 'holy see (vatican city state)' }, + { cn: 'Venezuela', cs: 'VE', value: 'venezuela' }, + { + cn: 'Vereinigte Arabische Emirate', + cs: 'AE', + value: 'united arab emirates' + }, + { cn: 'Vereinigte Staaten', cs: 'US', value: 'united states' }, + { cn: 'Vereinigtes Königreich', cs: 'GB', value: 'united kingdom' }, + { cn: 'Vietnam', cs: 'VN', value: 'vietnam' }, + { cn: 'Volksrepublik China', cs: 'CN', value: 'china' }, + { cn: 'Wallis und Futuna', cs: 'WF', value: 'wallis and futuna' }, + { cn: 'Weihnachtsinsel', cs: 'CX', value: 'christmas island' }, + { cn: 'Westsahara', cs: 'EH', value: 'western sahara' }, + { + cn: 'Zentral­afrikanische Republik', + cs: 'CF', + value: 'central african republic' + }, + { cn: 'Zypern', cs: 'CY', value: 'cyprus' } +] diff --git a/src/Questions/CountryNew/data/es.js b/src/Questions/CountryNew/data/es.js new file mode 100644 index 00000000..4e1ac7e0 --- /dev/null +++ b/src/Questions/CountryNew/data/es.js @@ -0,0 +1,315 @@ +export default [ + { cn: 'Afganistán', cs: 'AF', value: 'afghanistan' }, + { cn: 'Åland', cs: 'AX', value: 'åland islands' }, + { cn: 'Albania', cs: 'AL', value: 'albania' }, + { cn: 'Alemania', cs: 'DE', value: 'germany' }, + { cn: 'Andorra', cs: 'AD', value: 'andorra' }, + { cn: 'Angola', cs: 'AO', value: 'angola' }, + { cn: 'Anguila', cs: 'AI', value: 'anguilla' }, + { cn: 'Antártida', cs: 'AQ', value: 'antarctica' }, + { cn: 'Antigua y Barbuda', cs: 'AG', value: 'antigua and barbuda' }, + { cn: 'Arabia Saudita', cs: 'SA', value: 'saudi arabia' }, + { cn: 'Argelia', cs: 'DZ', value: 'algeria' }, + { cn: 'Argentina', cs: 'AR', value: 'argentina' }, + { cn: 'Armenia', cs: 'AM', value: 'armenia' }, + { cn: 'Aruba', cs: 'AW', value: 'aruba' }, + { cn: 'Australia', cs: 'AU', value: 'australia' }, + { cn: 'Austria', cs: 'AT', value: 'austria' }, + { cn: 'Azerbaiyán', cs: 'AZ', value: 'azerbaijan' }, + { cn: 'Bahamas', cs: 'BS', value: 'bahamas' }, + { cn: 'Bangladés', cs: 'BD', value: 'bangladesh' }, + { cn: 'Barbados', cs: 'BB', value: 'barbados' }, + { cn: 'Baréin', cs: 'BH', value: 'bahrain' }, + { cn: 'Bélgica', cs: 'BE', value: 'belgium' }, + { cn: 'Belice', cs: 'BZ', value: 'belize' }, + { cn: 'Benín', cs: 'BJ', value: 'benin' }, + { cn: 'Bermudas', cs: 'BM', value: 'bermuda' }, + { cn: 'Bielorrusia', cs: 'BY', value: 'belarus' }, + { cn: 'Birmania', cs: 'MM', value: 'myanmar' }, + { cn: 'Bolivia', cs: 'BO', value: 'bolivia' }, + { + cn: 'Bonaire, San Eustaquio y Saba', + cs: 'BQ', + value: 'bonaire, sint eustatius and saba' + }, + { cn: 'Bosnia y Herzegovina', cs: 'BA', value: 'bosnia and herzegovina' }, + { cn: 'Botsuana', cs: 'BW', value: 'botswana' }, + { cn: 'Brasil', cs: 'BR', value: 'brazil' }, + { cn: 'Brunéi', cs: 'BN', value: 'brunei darussalam' }, + { cn: 'Bulgaria', cs: 'BG', value: 'bulgaria' }, + { cn: 'Burkina Faso', cs: 'BF', value: 'burkina faso' }, + { cn: 'Burundi', cs: 'BI', value: 'burundi' }, + { cn: 'Bután', cs: 'BT', value: 'bhutan' }, + { cn: 'Cabo Verde', cs: 'CV', value: 'cape verde' }, + { cn: 'Camboya', cs: 'KH', value: 'cambodia' }, + { cn: 'Camerún', cs: 'CM', value: 'cameroon' }, + { cn: 'Canadá', cs: 'CA', value: 'canada' }, + { cn: 'Catar', cs: 'QA', value: 'qatar' }, + { cn: 'Chad', cs: 'TD', value: 'chad' }, + { cn: 'Chile', cs: 'CL', value: 'chile' }, + { cn: 'China', cs: 'CN', value: 'china' }, + { cn: 'Chipre', cs: 'CY', value: 'cyprus' }, + { cn: 'Colombia', cs: 'CO', value: 'colombia' }, + { cn: 'Comoras', cs: 'KM', value: 'comoros' }, + { + cn: 'Corea del Norte', + cs: 'KP', + value: "korea, democratic people's republic of" + }, + { cn: 'Corea del Sur', cs: 'KR', value: 'korea, republic of' }, + { cn: 'Costa de Marfil', cs: 'CI', value: "côte d'ivoire" }, + { cn: 'Costa Rica', cs: 'CR', value: 'costa rica' }, + { cn: 'Croacia', cs: 'HR', value: 'croatia' }, + { cn: 'Cuba', cs: 'CU', value: 'cuba' }, + { cn: 'Curazao', cs: 'CW', value: 'curaçao' }, + { cn: 'Dinamarca', cs: 'DK', value: 'denmark' }, + { cn: 'Dominica', cs: 'DM', value: 'dominica' }, + { cn: 'Ecuador', cs: 'EC', value: 'ecuador' }, + { cn: 'Egipto', cs: 'EG', value: 'egypt' }, + { cn: 'El Salvador', cs: 'SV', value: 'el salvador' }, + { cn: 'Emiratos Árabes Unidos', cs: 'AE', value: 'united arab emirates' }, + { cn: 'Eritrea', cs: 'ER', value: 'eritrea' }, + { cn: 'Eslovaquia', cs: 'SK', value: 'slovakia' }, + { cn: 'Eslovenia', cs: 'SI', value: 'slovenia' }, + { cn: 'España', cs: 'ES', value: 'spain' }, + { cn: 'Estados Unidos', cs: 'US', value: 'united states' }, + { cn: 'Estonia', cs: 'EE', value: 'estonia' }, + { cn: 'Etiopía', cs: 'ET', value: 'ethiopia' }, + { cn: 'Filipinas', cs: 'PH', value: 'philippines' }, + { cn: 'Finlandia', cs: 'FI', value: 'finland' }, + { cn: 'Fiyi', cs: 'FJ', value: 'fiji' }, + { cn: 'Francia', cs: 'FR', value: 'france' }, + { cn: 'Gabón', cs: 'GA', value: 'gabon' }, + { cn: 'Gambia', cs: 'GM', value: 'gambia' }, + { cn: 'Georgia', cs: 'GE', value: 'georgia' }, + { cn: 'Ghana', cs: 'GH', value: 'ghana' }, + { cn: 'Gibraltar', cs: 'GI', value: 'gibraltar' }, + { cn: 'Granada', cs: 'GD', value: 'grenada' }, + { cn: 'Grecia', cs: 'GR', value: 'greece' }, + { cn: 'Groenlandia', cs: 'GL', value: 'greenland' }, + { cn: 'Guadalupe', cs: 'GP', value: 'guadeloupe' }, + { cn: 'Guam', cs: 'GU', value: 'guam' }, + { cn: 'Guatemala', cs: 'GT', value: 'guatemala' }, + { cn: 'Guayana Francesa', cs: 'GF', value: 'french guiana' }, + { cn: 'Guernsey', cs: 'GG', value: 'guernsey' }, + { cn: 'Guinea', cs: 'GN', value: 'guinea' }, + { cn: 'Guinea Ecuatorial', cs: 'GQ', value: 'equatorial guinea' }, + { cn: 'Guinea-Bisáu', cs: 'GW', value: 'guinea-bissau' }, + { cn: 'Guyana', cs: 'GY', value: 'guyana' }, + { cn: 'Haití', cs: 'HT', value: 'haiti' }, + { cn: 'Honduras', cs: 'HN', value: 'honduras' }, + { cn: 'Hong Kong', cs: 'HK', value: 'hong kong' }, + { cn: 'Hungría', cs: 'HU', value: 'hungary' }, + { cn: 'India', cs: 'IN', value: 'india' }, + { cn: 'Indonesia', cs: 'ID', value: 'indonesia' }, + { cn: 'Irak', cs: 'IQ', value: 'iraq' }, + { cn: 'Irán', cs: 'IR', value: 'iran, islamic republic of' }, + { cn: 'Irlanda', cs: 'IE', value: 'ireland' }, + { cn: 'Isla Bouvet', cs: 'BV', value: 'bouvet island' }, + { cn: 'Isla de Man', cs: 'IM', value: 'isle of man' }, + { cn: 'Isla de Navidad', cs: 'CX', value: 'christmas island' }, + { cn: 'Isla Norfolk', cs: 'NF', value: 'norfolk island' }, + { cn: 'Islandia', cs: 'IS', value: 'iceland' }, + { cn: 'Islas Caimán', cs: 'KY', value: 'cayman islands' }, + { cn: 'Islas Cocos', cs: 'CC', value: 'cocos (keeling) islands' }, + { cn: 'Islas Cook', cs: 'CK', value: 'cook islands' }, + { cn: 'Islas Feroe', cs: 'FO', value: 'faroe islands' }, + { + cn: 'Islas Georgias del Sur y Sandwich del Sur', + cs: 'GS', + value: 'south georgia and the south sandwich islands' + }, + { + cn: 'Islas Heard y McDonald', + cs: 'HM', + value: 'heard island and mcdonald islands' + }, + { cn: 'Islas Malvinas', cs: 'FK', value: 'falkland islands (malvinas)' }, + { + cn: 'Islas Marianas del Norte', + cs: 'MP', + value: 'northern mariana islands' + }, + { cn: 'Islas Marshall', cs: 'MH', value: 'marshall islands' }, + { cn: 'Islas Pitcairn', cs: 'PN', value: 'pitcairn' }, + { cn: 'Islas Salomón', cs: 'SB', value: 'solomon islands' }, + { cn: 'Islas Turcas y Caicos', cs: 'TC', value: 'turks and caicos islands' }, + { + cn: 'Islas Ultramarinas Menores de los Estados Unidos', + cs: 'UM', + value: 'united states minor outlying islands' + }, + { + cn: 'Islas Vírgenes Británicas', + cs: 'VG', + value: 'virgin islands, british' + }, + { + cn: 'Islas Vírgenes de los Estados Unidos', + cs: 'VI', + value: 'virgin islands, u.s.' + }, + { cn: 'Israel', cs: 'IL', value: 'israel' }, + { cn: 'Italia', cs: 'IT', value: 'italy' }, + { cn: 'Jamaica', cs: 'JM', value: 'jamaica' }, + { cn: 'Japón', cs: 'JP', value: 'japan' }, + { cn: 'Jersey', cs: 'JE', value: 'jersey' }, + { cn: 'Jordania', cs: 'JO', value: 'jordan' }, + { cn: 'Kazajistán', cs: 'KZ', value: 'kazakhstan' }, + { cn: 'Kenia', cs: 'KE', value: 'kenya' }, + { cn: 'Kirguistán', cs: 'KG', value: 'kyrgyzstan' }, + { cn: 'Kiribati', cs: 'KI', value: 'kiribati' }, + { cn: 'Kuwait', cs: 'KW', value: 'kuwait' }, + { cn: 'Laos', cs: 'LA', value: 'laos' }, + { cn: 'Lesoto', cs: 'LS', value: 'lesotho' }, + { cn: 'Letonia', cs: 'LV', value: 'latvia' }, + { cn: 'Líbano', cs: 'LB', value: 'lebanon' }, + { cn: 'Liberia', cs: 'LR', value: 'liberia' }, + { cn: 'Libia', cs: 'LY', value: 'libyan arab jamahiriya' }, + { cn: 'Liechtenstein', cs: 'LI', value: 'liechtenstein' }, + { cn: 'Lituania', cs: 'LT', value: 'lithuania' }, + { cn: 'Luxemburgo', cs: 'LU', value: 'luxembourg' }, + { cn: 'Macao', cs: 'MO', value: 'macao' }, + { cn: 'Macedonia del Norte', cs: 'MK', value: 'north macedonia' }, + { cn: 'Madagascar', cs: 'MG', value: 'madagascar' }, + { cn: 'Malasia', cs: 'MY', value: 'malaysia' }, + { cn: 'Malaui', cs: 'MW', value: 'malawi' }, + { cn: 'Maldivas', cs: 'MV', value: 'maldives' }, + { cn: 'Malí', cs: 'ML', value: 'mali' }, + { cn: 'Malta', cs: 'MT', value: 'malta' }, + { cn: 'Marruecos', cs: 'MA', value: 'morocco' }, + { cn: 'Martinica', cs: 'MQ', value: 'martinique' }, + { cn: 'Mauricio', cs: 'MU', value: 'mauritius' }, + { cn: 'Mauritania', cs: 'MR', value: 'mauritania' }, + { cn: 'Mayotte', cs: 'YT', value: 'mayotte' }, + { cn: 'México', cs: 'MX', value: 'mexico' }, + { cn: 'Micronesia', cs: 'FM', value: 'micronesia, federated states of' }, + { cn: 'Moldavia', cs: 'MD', value: 'moldova, republic of' }, + { cn: 'Mónaco', cs: 'MC', value: 'monaco' }, + { cn: 'Mongolia', cs: 'MN', value: 'mongolia' }, + { cn: 'Montenegro', cs: 'ME', value: 'montenegro' }, + { cn: 'Montserrat', cs: 'MS', value: 'montserrat' }, + { cn: 'Mozambique', cs: 'MZ', value: 'mozambique' }, + { cn: 'Namibia', cs: 'NA', value: 'namibia' }, + { cn: 'Nauru', cs: 'NR', value: 'nauru' }, + { cn: 'Nepal', cs: 'NP', value: 'nepal' }, + { cn: 'Nicaragua', cs: 'NI', value: 'nicaragua' }, + { cn: 'Níger', cs: 'NE', value: 'niger' }, + { cn: 'Nigeria', cs: 'NG', value: 'nigeria' }, + { cn: 'Niue', cs: 'NU', value: 'niue' }, + { cn: 'Noruega', cs: 'NO', value: 'norway' }, + { cn: 'Nueva Caledonia', cs: 'NC', value: 'new caledonia' }, + { cn: 'Nueva Zelanda', cs: 'NZ', value: 'new zealand' }, + { cn: 'Omán', cs: 'OM', value: 'oman' }, + { cn: 'Países Bajos', cs: 'NL', value: 'netherlands' }, + { cn: 'Pakistán', cs: 'PK', value: 'pakistan' }, + { cn: 'Palaos', cs: 'PW', value: 'palau' }, + { cn: 'Palestina', cs: 'PS', value: 'palestinian territory, occupied' }, + { cn: 'Panamá', cs: 'PA', value: 'panama' }, + { cn: 'Papúa Nueva Guinea', cs: 'PG', value: 'papua new guinea' }, + { cn: 'Paraguay', cs: 'PY', value: 'paraguay' }, + { cn: 'Perú', cs: 'PE', value: 'peru' }, + { cn: 'Polinesia Francesa', cs: 'PF', value: 'french polynesia' }, + { cn: 'Polonia', cs: 'PL', value: 'poland' }, + { cn: 'Portugal', cs: 'PT', value: 'portugal' }, + { cn: 'Puerto Rico', cs: 'PR', value: 'puerto rico' }, + { cn: 'Reino Unido', cs: 'GB', value: 'united kingdom' }, + { + cn: 'República Árabe Saharaui Democrática', + cs: 'EH', + value: 'western sahara' + }, + { + cn: 'República Centroafricana', + cs: 'CF', + value: 'central african republic' + }, + { cn: 'República Checa', cs: 'CZ', value: 'czech republic' }, + { cn: 'República del Congo', cs: 'CG', value: 'congo' }, + { cn: 'República Democrática del Congo', cs: 'CD', value: 'congo' }, + { cn: 'República Dominicana', cs: 'DO', value: 'dominican republic' }, + { cn: 'Reunión', cs: 'RE', value: 'reunion' }, + { cn: 'Ruanda', cs: 'RW', value: 'rwanda' }, + { cn: 'Rumania', cs: 'RO', value: 'romania' }, + { cn: 'Rusia', cs: 'RU', value: 'russian federation' }, + { cn: 'Samoa', cs: 'WS', value: 'samoa' }, + { cn: 'Samoa Americana', cs: 'AS', value: 'american samoa' }, + { cn: 'San Bartolomé', cs: 'BL', value: 'saint barthélemy' }, + { cn: 'San Cristóbal y Nieves', cs: 'KN', value: 'saint kitts and nevis' }, + { cn: 'San Marino', cs: 'SM', value: 'san marino' }, + { cn: 'San Martín', cs: 'MF', value: 'saint martin' }, + { cn: 'San Martín', cs: 'MF', value: 'sint maarten (dutch part)' }, + { cn: 'San Pedro y Miquelón', cs: 'PM', value: 'saint pierre and miquelon' }, + { + cn: 'San Vicente y las Granadinas', + cs: 'VC', + value: 'saint vincent and the grenadines' + }, + { + cn: 'Santa Elena, Ascensión y Tristán de Acuña', + cs: 'SH', + value: 'saint helena, ascension and tristan de cunha' + }, + { cn: 'Santa Lucía', cs: 'LC', value: 'saint lucia' }, + { cn: 'Santo Tomé y Príncipe', cs: 'ST', value: 'sao tome and principe' }, + { cn: 'Senegal', cs: 'SN', value: 'senegal' }, + { cn: 'Serbia', cs: 'RS', value: 'serbia' }, + { cn: 'Seychelles', cs: 'SC', value: 'seychelles' }, + { cn: 'Sierra Leona', cs: 'SL', value: 'sierra leone' }, + { cn: 'Singapur', cs: 'SG', value: 'singapore' }, + { cn: 'Siria', cs: 'SY', value: 'syrian arab republic' }, + { cn: 'Somalia', cs: 'SO', value: 'somalia' }, + { cn: 'Sri Lanka', cs: 'LK', value: 'sri lanka' }, + { cn: 'Suazilandia', cs: 'SZ', value: 'swaziland' }, + { cn: 'Sudáfrica', cs: 'ZA', value: 'south africa' }, + { cn: 'Sudán', cs: 'SD', value: 'sudan' }, + { cn: 'Sudán del Sur', cs: 'SS', value: 'south sudan' }, + { cn: 'Suecia', cs: 'SE', value: 'sweden' }, + { cn: 'Suiza', cs: 'CH', value: 'switzerland' }, + { cn: 'Surinam', cs: 'SR', value: 'suricn' }, + { cn: 'Svalbard y Jan Mayen', cs: 'SJ', value: 'svalbard and jan mayen' }, + { cn: 'Tailandia', cs: 'TH', value: 'thailand' }, + { + cn: 'Taiwán (República de China)', + cs: 'TW', + value: 'taiwan, province of china' + }, + { cn: 'Tanzania', cs: 'TZ', value: 'tanzania, united republic of' }, + { cn: 'Tayikistán', cs: 'TJ', value: 'tajikistan' }, + { + cn: 'Territorio Británico del Océano Índico', + cs: 'IO', + value: 'british indian ocean territory' + }, + { + cn: 'Tierras Australes y Antárticas Francesas', + cs: 'TF', + value: 'french southern territories' + }, + { cn: 'Timor Oriental', cs: 'TL', value: 'timor-leste' }, + { cn: 'Togo', cs: 'TG', value: 'togo' }, + { cn: 'Tokelau', cs: 'TK', value: 'tokelau' }, + { cn: 'Tonga', cs: 'TO', value: 'tonga' }, + { cn: 'Trinidad y Tobago', cs: 'TT', value: 'trinidad and tobago' }, + { cn: 'Túnez', cs: 'TN', value: 'tunisia' }, + { cn: 'Turkmenistán', cs: 'TM', value: 'turkmenistan' }, + { cn: 'Turquía', cs: 'TR', value: 'turkey' }, + { cn: 'Tuvalu', cs: 'TV', value: 'tuvalu' }, + { cn: 'Ucrania', cs: 'UA', value: 'ukraine' }, + { cn: 'Uganda', cs: 'UG', value: 'uganda' }, + { cn: 'Uruguay', cs: 'UY', value: 'uruguay' }, + { cn: 'Uzbekistán', cs: 'UZ', value: 'uzbekistan' }, + { cn: 'Vanuatu', cs: 'VU', value: 'vanuatu' }, + { + cn: 'Vaticano, Ciudad del', + cs: 'VA', + value: 'holy see (vatican city state)' + }, + { cn: 'Venezuela', cs: 'VE', value: 'venezuela' }, + { cn: 'Vietnam', cs: 'VN', value: 'vietnam' }, + { cn: 'Wallis y Futuna', cs: 'WF', value: 'wallis and futuna' }, + { cn: 'Yemen', cs: 'YE', value: 'yemen' }, + { cn: 'Yibuti', cs: 'DJ', value: 'djibouti' }, + { cn: 'Zambia', cs: 'ZM', value: 'zambia' }, + { cn: 'Zimbabue', cs: 'ZW', value: 'zimbabwe' } +] diff --git a/src/Questions/CountryNew/data/fr.js b/src/Questions/CountryNew/data/fr.js new file mode 100644 index 00000000..a6f6d36b --- /dev/null +++ b/src/Questions/CountryNew/data/fr.js @@ -0,0 +1,331 @@ +export default [ + { cn: 'Afghanistan', cs: 'AF', value: 'afghanistan' }, + { cn: 'Afrique du Sud', cs: 'ZA', value: 'south africa' }, + { cn: 'Albanie', cs: 'AL', value: 'albania' }, + { cn: 'Algérie', cs: 'DZ', value: 'algeria' }, + { cn: 'Allemagne', cs: 'DE', value: 'germany' }, + { cn: 'Andorre', cs: 'AD', value: 'andorra' }, + { cn: 'Angola', cs: 'AO', value: 'angola' }, + { cn: 'Anguilla', cs: 'AI', value: 'anguilla' }, + { cn: 'Antarctique', cs: 'AQ', value: 'antarctica' }, + { cn: 'Antigua-et-Barbuda', cs: 'AG', value: 'antigua and barbuda' }, + { cn: 'Arabie saoudite', cs: 'SA', value: 'saudi arabia' }, + { cn: 'Argentine', cs: 'AR', value: 'argentina' }, + { cn: 'Arménie', cs: 'AM', value: 'armenia' }, + { cn: 'Aruba', cs: 'AW', value: 'aruba' }, + { cn: 'Australie', cs: 'AU', value: 'australia' }, + { cn: 'Autriche', cs: 'AT', value: 'austria' }, + { cn: 'Azerbaïdjan', cs: 'AZ', value: 'azerbaijan' }, + { cn: 'Bahamas', cs: 'BS', value: 'bahamas' }, + { cn: 'Bahreïn', cs: 'BH', value: 'bahrain' }, + { cn: 'Bangladesh', cs: 'BD', value: 'bangladesh' }, + { cn: 'Barbade', cs: 'BB', value: 'barbados' }, + { cn: 'Belgique', cs: 'BE', value: 'belgium' }, + { cn: 'Belize', cs: 'BZ', value: 'belize' }, + { cn: 'Bénin', cs: 'BJ', value: 'benin' }, + { cn: 'Bermudes', cs: 'BM', value: 'bermuda' }, + { cn: 'Bhoutan', cs: 'BT', value: 'bhutan' }, + { cn: 'Biélorussie', cs: 'BY', value: 'belarus' }, + { cn: 'Birmanie', cs: 'MM', value: 'myanmar' }, + { cn: 'Bolivie', cs: 'BO', value: 'bolivia' }, + { cn: 'Bosnie-Herzégovine', cs: 'BA', value: 'bosnia and herzegovina' }, + { cn: 'Botswana', cs: 'BW', value: 'botswana' }, + { cn: 'Brésil', cs: 'BR', value: 'brazil' }, + { cn: 'Brunei', cs: 'BN', value: 'brunei darussalam' }, + { cn: 'Bulgarie', cs: 'BG', value: 'bulgaria' }, + { cn: 'Burkina Faso', cs: 'BF', value: 'burkina faso' }, + { cn: 'Burundi', cs: 'BI', value: 'burundi' }, + { cn: 'Cambodge', cs: 'KH', value: 'cambodia' }, + { cn: 'Cameroun', cs: 'CM', value: 'cameroon' }, + { cn: 'Canada', cs: 'CA', value: 'canada' }, + { cn: 'Cap-Vert', cs: 'CV', value: 'cape verde' }, + { cn: 'Chili', cs: 'CL', value: 'chile' }, + { cn: 'Chine', cs: 'CN', value: 'china' }, + { cn: 'Chypre (pays)', cs: 'CY', value: 'cyprus' }, + { cn: 'Colombie', cs: 'CO', value: 'colombia' }, + { cn: 'Comores (pays)', cs: 'KM', value: 'comoros' }, + { + cn: 'Corée du Nord', + cs: 'KP', + value: "korea, democratic people's republic of" + }, + { cn: 'Corée du Sud', cs: 'KR', value: 'korea, republic of' }, + { cn: 'Costa Rica', cs: 'CR', value: 'costa rica' }, + { cn: "Côte d'Ivoire", cs: 'CI', value: "côte d'ivoire" }, + { cn: 'Croatie', cs: 'HR', value: 'croatia' }, + { cn: 'Cuba', cs: 'CU', value: 'cuba' }, + { cn: 'Curaçao', cs: 'CW', value: 'curaçao' }, + { cn: 'Danemark', cs: 'DK', value: 'denmark' }, + { cn: 'Djibouti', cs: 'DJ', value: 'djibouti' }, + { cn: 'Dominique', cs: 'DM', value: 'dominica' }, + { cn: 'Égypte', cs: 'EG', value: 'egypt' }, + { cn: 'Émirats arabes unis', cs: 'AE', value: 'united arab emirates' }, + { cn: 'Équateur (pays)', cs: 'EC', value: 'ecuador' }, + { cn: 'Érythrée', cs: 'ER', value: 'eritrea' }, + { cn: 'Espagne', cs: 'ES', value: 'spain' }, + { cn: 'Estonie', cs: 'EE', value: 'estonia' }, + { cn: 'Eswatini', cs: 'SZ', value: 'swaziland' }, + { + cn: 'États fédérés de Micronésie (pays)', + cs: 'FM', + value: 'micronesia, federated states of' + }, + { cn: 'États-Unis', cs: 'US', value: 'united states' }, + { cn: 'Éthiopie', cs: 'ET', value: 'ethiopia' }, + { cn: 'Fidji', cs: 'FJ', value: 'fiji' }, + { cn: 'Finlande', cs: 'FI', value: 'finland' }, + { cn: 'France', cs: 'FR', value: 'france' }, + { cn: 'Gabon', cs: 'GA', value: 'gabon' }, + { cn: 'Gambie', cs: 'GM', value: 'gambia' }, + { cn: 'Géorgie (pays)', cs: 'GE', value: 'georgia' }, + { + cn: 'Géorgie du Sud-et-les îles Sandwich du Sud', + cs: 'GS', + value: 'south georgia and the south sandwich islands' + }, + { cn: 'Ghana', cs: 'GH', value: 'ghana' }, + { cn: 'Gibraltar', cs: 'GI', value: 'gibraltar' }, + { cn: 'Grèce', cs: 'GR', value: 'greece' }, + { cn: 'Grenade (pays)', cs: 'GD', value: 'grenada' }, + { cn: 'Groenland', cs: 'GL', value: 'greenland' }, + { cn: 'Guadeloupe', cs: 'GP', value: 'guadeloupe' }, + { cn: 'Guam', cs: 'GU', value: 'guam' }, + { cn: 'Guatemala', cs: 'GT', value: 'guatemala' }, + { cn: 'Guernesey', cs: 'GG', value: 'guernsey' }, + { cn: 'Guinée', cs: 'GN', value: 'guinea' }, + { cn: 'Guinée équatoriale', cs: 'GQ', value: 'equatorial guinea' }, + { cn: 'Guinée-Bissau', cs: 'GW', value: 'guinea-bissau' }, + { cn: 'Guyana', cs: 'GY', value: 'guyana' }, + { cn: 'Guyane', cs: 'GF', value: 'french guiana' }, + { cn: 'Haïti', cs: 'HT', value: 'haiti' }, + { cn: 'Honduras', cs: 'HN', value: 'honduras' }, + { cn: 'Hong Kong', cs: 'HK', value: 'hong kong' }, + { cn: 'Hongrie', cs: 'HU', value: 'hungary' }, + { cn: 'Île Bouvet', cs: 'BV', value: 'bouvet island' }, + { cn: 'Île Christmas', cs: 'CX', value: 'christmas island' }, + { cn: 'Île de Man', cs: 'IM', value: 'isle of man' }, + { cn: 'Île Norfolk', cs: 'NF', value: 'norfolk island' }, + { cn: 'Îles Åland', cs: 'AX', value: 'åland islands' }, + { cn: 'Îles Caïmans', cs: 'KY', value: 'cayman islands' }, + { cn: 'Îles Cocos', cs: 'CC', value: 'cocos (keeling) islands' }, + { cn: 'Îles Cook', cs: 'CK', value: 'cook islands' }, + { cn: 'Îles Féroé', cs: 'FO', value: 'faroe islands' }, + { + cn: 'Îles Heard-et-MacDonald', + cs: 'HM', + value: 'heard island and mcdonald islands' + }, + { cn: 'Îles Mariannes du Nord', cs: 'MP', value: 'northern mariana islands' }, + { cn: 'Îles Marshall (pays)', cs: 'MH', value: 'marshall islands' }, + { + cn: 'Îles mineures éloignées des États-Unis', + cs: 'UM', + value: 'united states minor outlying islands' + }, + { cn: 'Îles Pitcairn', cs: 'PN', value: 'pitcairn' }, + { + cn: 'Îles Turques-et-Caïques', + cs: 'TC', + value: 'turks and caicos islands' + }, + { + cn: 'Îles Vierges britanniques', + cs: 'VG', + value: 'virgin islands, british' + }, + { + cn: 'Îles Vierges des États-Unis', + cs: 'VI', + value: 'virgin islands, u.s.' + }, + { cn: 'Inde', cs: 'IN', value: 'india' }, + { cn: 'Indonésie', cs: 'ID', value: 'indonesia' }, + { cn: 'Irak', cs: 'IQ', value: 'iraq' }, + { cn: 'Iran', cs: 'IR', value: 'iran, islamic republic of' }, + { cn: 'Irlande (pays)', cs: 'IE', value: 'ireland' }, + { cn: 'Islande', cs: 'IS', value: 'iceland' }, + { cn: 'Israël', cs: 'IL', value: 'israel' }, + { cn: 'Italie', cs: 'IT', value: 'italy' }, + { cn: 'Jamaïque', cs: 'JM', value: 'jamaica' }, + { cn: 'Japon', cs: 'JP', value: 'japan' }, + { cn: 'Jersey', cs: 'JE', value: 'jersey' }, + { cn: 'Jordanie', cs: 'JO', value: 'jordan' }, + { cn: 'Kazakhstan', cs: 'KZ', value: 'kazakhstan' }, + { cn: 'Kenya', cs: 'KE', value: 'kenya' }, + { cn: 'Kirghizistan', cs: 'KG', value: 'kyrgyzstan' }, + { cn: 'Kiribati', cs: 'KI', value: 'kiribati' }, + { cn: 'Koweït', cs: 'KW', value: 'kuwait' }, + { cn: 'La Réunion', cs: 'RE', value: 'reunion' }, + { cn: 'Laos', cs: 'LA', value: 'laos' }, + { cn: 'Lesotho', cs: 'LS', value: 'lesotho' }, + { cn: 'Lettonie', cs: 'LV', value: 'latvia' }, + { cn: 'Liban', cs: 'LB', value: 'lebanon' }, + { cn: 'Liberia', cs: 'LR', value: 'liberia' }, + { cn: 'Libye', cs: 'LY', value: 'libyan arab jamahiriya' }, + { cn: 'Liechtenstein', cs: 'LI', value: 'liechtenstein' }, + { cn: 'Lituanie', cs: 'LT', value: 'lithuania' }, + { cn: 'Luxembourg (pays)', cs: 'LU', value: 'luxembourg' }, + { cn: 'Macao', cs: 'MO', value: 'macao' }, + { cn: 'Macédoine du Nord', cs: 'MK', value: 'north macedonia' }, + { cn: 'Madagascar', cs: 'MG', value: 'madagascar' }, + { cn: 'Malaisie', cs: 'MY', value: 'malaysia' }, + { cn: 'Malawi', cs: 'MW', value: 'malawi' }, + { cn: 'Maldives', cs: 'MV', value: 'maldives' }, + { cn: 'Mali', cs: 'ML', value: 'mali' }, + { cn: 'Malouines', cs: 'FK', value: 'falkland islands (malvinas)' }, + { cn: 'Malte', cs: 'MT', value: 'malta' }, + { cn: 'Maroc', cs: 'MA', value: 'morocco' }, + { cn: 'Martinique', cs: 'MQ', value: 'martinique' }, + { cn: 'Maurice (pays)', cs: 'MU', value: 'mauritius' }, + { cn: 'Mauritanie', cs: 'MR', value: 'mauritania' }, + { cn: 'Mayotte', cs: 'YT', value: 'mayotte' }, + { cn: 'Mexique', cs: 'MX', value: 'mexico' }, + { cn: 'Moldavie', cs: 'MD', value: 'moldova, republic of' }, + { cn: 'Monaco', cs: 'MC', value: 'monaco' }, + { cn: 'Mongolie', cs: 'MN', value: 'mongolia' }, + { cn: 'Monténégro', cs: 'ME', value: 'montenegro' }, + { cn: 'Montserrat', cs: 'MS', value: 'montserrat' }, + { cn: 'Mozambique', cs: 'MZ', value: 'mozambique' }, + { cn: 'Namibie', cs: 'NA', value: 'namibia' }, + { cn: 'Nauru', cs: 'NR', value: 'nauru' }, + { cn: 'Népal', cs: 'NP', value: 'nepal' }, + { cn: 'Nicaragua', cs: 'NI', value: 'nicaragua' }, + { cn: 'Niger', cs: 'NE', value: 'niger' }, + { cn: 'Nigeria', cs: 'NG', value: 'nigeria' }, + { cn: 'Niue', cs: 'NU', value: 'niue' }, + { cn: 'Norvège', cs: 'NO', value: 'norway' }, + { cn: 'Nouvelle-Calédonie', cs: 'NC', value: 'new caledonia' }, + { cn: 'Nouvelle-Zélande', cs: 'NZ', value: 'new zealand' }, + { cn: 'Oman', cs: 'OM', value: 'oman' }, + { cn: 'Ouganda', cs: 'UG', value: 'uganda' }, + { cn: 'Ouzbékistan', cs: 'UZ', value: 'uzbekistan' }, + { cn: 'Pakistan', cs: 'PK', value: 'pakistan' }, + { cn: 'Palaos', cs: 'PW', value: 'palau' }, + { cn: 'Palestine', cs: 'PS', value: 'palestinian territory, occupied' }, + { cn: 'Panama', cs: 'PA', value: 'panama' }, + { cn: 'Papouasie-Nouvelle-Guinée', cs: 'PG', value: 'papua new guinea' }, + { cn: 'Paraguay', cs: 'PY', value: 'paraguay' }, + { cn: 'Pays-Bas', cs: 'NL', value: 'netherlands' }, + { + cn: 'Pays-Bas caribéens', + cs: 'BQ', + value: 'bonaire, sint eustatius and saba' + }, + { cn: 'Pérou', cs: 'PE', value: 'peru' }, + { cn: 'Philippines', cs: 'PH', value: 'philippines' }, + { cn: 'Pologne', cs: 'PL', value: 'poland' }, + { cn: 'Polynésie française', cs: 'PF', value: 'french polynesia' }, + { cn: 'Porto Rico', cs: 'PR', value: 'puerto rico' }, + { cn: 'Portugal', cs: 'PT', value: 'portugal' }, + { cn: 'Qatar', cs: 'QA', value: 'qatar' }, + { + cn: 'République arabe sahraouie démocratique', + cs: 'EH', + value: 'western sahara' + }, + { + cn: 'République centrafricaine', + cs: 'CF', + value: 'central african republic' + }, + { cn: 'République démocratique du Congo', cs: 'CD', value: 'congo' }, + { cn: 'République dominicaine', cs: 'DO', value: 'dominican republic' }, + { cn: 'République du Congo', cs: 'CG', value: 'congo' }, + { cn: 'Roumanie', cs: 'RO', value: 'romania' }, + { cn: 'Royaume-Uni', cs: 'GB', value: 'united kingdom' }, + { cn: 'Russie', cs: 'RU', value: 'russian federation' }, + { cn: 'Rwanda', cs: 'RW', value: 'rwanda' }, + { cn: 'Saint-Barthélemy', cs: 'BL', value: 'saint barthélemy' }, + { + cn: 'Saint-Christophe-et-Niévès', + cs: 'KN', + value: 'saint kitts and nevis' + }, + { cn: 'Saint-Marin', cs: 'SM', value: 'san marino' }, + { cn: 'Saint-Martin', cs: 'MF', value: 'saint martin' }, + { cn: 'Saint-Martin', cs: 'MF', value: 'sint maarten (dutch part)' }, + { + cn: 'Saint-Pierre-et-Miquelon', + cs: 'PM', + value: 'saint pierre and miquelon' + }, + { + cn: 'Saint-Siège (État de la Cité du Vatican)', + cs: 'VA', + value: 'holy see (vatican city state)' + }, + { + cn: 'Saint-Vincent-et-les-Grenadines', + cs: 'VC', + value: 'saint vincent and the grenadines' + }, + { + cn: 'Sainte-Hélène, Ascension et Tristan da Cunha', + cs: 'SH', + value: 'saint helena, ascension and tristan de cunha' + }, + { cn: 'Sainte-Lucie', cs: 'LC', value: 'saint lucia' }, + { cn: 'Salomon', cs: 'SB', value: 'solomon islands' }, + { cn: 'Salvador', cs: 'SV', value: 'el salvador' }, + { cn: 'Samoa', cs: 'WS', value: 'samoa' }, + { cn: 'Samoa américaines', cs: 'AS', value: 'american samoa' }, + { cn: 'Sao Tomé-et-Principe', cs: 'ST', value: 'sao tome and principe' }, + { cn: 'Sénégal', cs: 'SN', value: 'senegal' }, + { cn: 'Serbie', cs: 'RS', value: 'serbia' }, + { cn: 'Seychelles', cs: 'SC', value: 'seychelles' }, + { cn: 'Sierra Leone', cs: 'SL', value: 'sierra leone' }, + { cn: 'Singapour', cs: 'SG', value: 'singapore' }, + { cn: 'Slovaquie', cs: 'SK', value: 'slovakia' }, + { cn: 'Slovénie', cs: 'SI', value: 'slovenia' }, + { cn: 'Somalie', cs: 'SO', value: 'somalia' }, + { cn: 'Soudan', cs: 'SD', value: 'sudan' }, + { cn: 'Soudan du Sud', cs: 'SS', value: 'south sudan' }, + { cn: 'Sri Lanka', cs: 'LK', value: 'sri lanka' }, + { cn: 'Suède', cs: 'SE', value: 'sweden' }, + { cn: 'Suisse', cs: 'CH', value: 'switzerland' }, + { cn: 'Suricn', cs: 'SR', value: 'suricn' }, + { + cn: 'Svalbard et ile Jan Mayen', + cs: 'SJ', + value: 'svalbard and jan mayen' + }, + { cn: 'Syrie', cs: 'SY', value: 'syrian arab republic' }, + { cn: 'Tadjikistan', cs: 'TJ', value: 'tajikistan' }, + { + cn: 'Taïwan / (République de Chine (Taïwan))', + cs: 'TW', + value: 'taiwan, province of china' + }, + { cn: 'Tanzanie', cs: 'TZ', value: 'tanzania, united republic of' }, + { cn: 'Tchad', cs: 'TD', value: 'chad' }, + { cn: 'Tchéquie', cs: 'CZ', value: 'czech republic' }, + { + cn: 'Terres australes et antarctiques françaises', + cs: 'TF', + value: 'french southern territories' + }, + { + cn: "Territoire britannique de l'océan Indien", + cs: 'IO', + value: 'british indian ocean territory' + }, + { cn: 'Thaïlande', cs: 'TH', value: 'thailand' }, + { cn: 'Timor oriental', cs: 'TL', value: 'timor-leste' }, + { cn: 'Togo', cs: 'TG', value: 'togo' }, + { cn: 'Tokelau', cs: 'TK', value: 'tokelau' }, + { cn: 'Tonga', cs: 'TO', value: 'tonga' }, + { cn: 'Trinité-et-Tobago', cs: 'TT', value: 'trinidad and tobago' }, + { cn: 'Tunisie', cs: 'TN', value: 'tunisia' }, + { cn: 'Turkménistan', cs: 'TM', value: 'turkmenistan' }, + { cn: 'Turquie', cs: 'TR', value: 'turkey' }, + { cn: 'Tuvalu', cs: 'TV', value: 'tuvalu' }, + { cn: 'Ukraine', cs: 'UA', value: 'ukraine' }, + { cn: 'Uruguay', cs: 'UY', value: 'uruguay' }, + { cn: 'Vanuatu', cs: 'VU', value: 'vanuatu' }, + { cn: 'Venezuela', cs: 'VE', value: 'venezuela' }, + { cn: 'Viêt Nam', cs: 'VN', value: 'vietnam' }, + { cn: 'Wallis-et-Futuna', cs: 'WF', value: 'wallis and futuna' }, + { cn: 'Yémen', cs: 'YE', value: 'yemen' }, + { cn: 'Zambie', cs: 'ZM', value: 'zambia' }, + { cn: 'Zimbabwe', cs: 'ZW', value: 'zimbabwe' } +] diff --git a/src/Questions/CountryNew/index.js b/src/Questions/CountryNew/index.js new file mode 100644 index 00000000..28975e7c --- /dev/null +++ b/src/Questions/CountryNew/index.js @@ -0,0 +1,149 @@ +/** @jsxRuntime classic */ +/** @jsx jsx */ +import { jsx } from 'theme-ui' +import { getCountryDataList } from 'countries-list' +// import countriesTools from 'i18n-iso-countries' + +// import CountryAndRegionsData from './data/countryAndRegion' +// import DeuschCountryData from './data/de' +// import SpanishCountryData from './data/es' +// import FrenchCountryData from './data/fr' +import ErrorMessage from '../../Fields/Error' +import Select from '../../Fields/Select' +import Label from '../../Fields/Label' + +// const prioritySort = (countries, order) => { +// const countryOrder = [] + +// order.forEach((isoCountryCode) => { +// const found = countries.find((country) => isoCountryCode.toString().toLowerCase() === country.cs.toLowerCase()) +// if (found) countryOrder.push(found) +// }) + +// const origin = countries.filter((item) => !order.includes(item.cs)) + +// return [...countryOrder, ...origin] +// } + +// const countriesMapData = { +// es: SpanishCountryData, +// fr: FrenchCountryData, +// de: DeuschCountryData +// } + +const QuestionCountryNew = ({ + component, + question, + useForm, + countryAndRegionsData, + language, + ...props +}) => { + const { + formState: { errors }, + trigger, + control, + defaultValue, + // watch, + unregister + } = useForm + + // const countryAndRegions = + // language && countriesMapData[language] + // ? countriesMapData[language] + // : countryAndRegionsData || CountryAndRegionsData + + // const getCountriesOptions = (countries) => { + // const filteredCountries = prioritySort( + // countries, + // question.priorityOptions || [] + // ) + + // return [].concat( + // filteredCountries.map((country) => ({ + // value: (question.returnCountryName && country.value) || country.cs, + // label: country.cn + // })) + // ) + // } + + // const getRegionOptions = (country) => { + // const list = + // countryAndRegionsData.find((item) => item.cn === country) && + // countryAndRegionsData + // .find((item) => item.cn === country) + // .regions.map((option) => { + // return { + // value: option.cn, + // label: option.cn + // } + // }) + + // return list + // } + + // const renderCountryOptions = (items) => { + // return items.map((item) => ( + // + // )) + // } + + // const options = question.region + // ? getRegionOptions(watch('Country').label) + // : getCountriesOptions(countryAndRegions) + + const options = getCountryDataList().map((country) => { + return { + value: country.iso2, + label: country.native + } + }) + + return ( +
+ {question.label && ( + + )} + { - trigger(question.name) - }} - id={question.name} - key={question.name} - name={question.name} - options={options} - isSearchable={false} - registerConfig={question.registerConfig} - placeholder={question.placeholder} - label={question.label} - data-haserrors={!!errors[question.name]} - {...props} - /> - - {errors[question.name] && - (errors[question.name].type === 'required' || - errors[question.name].type === 'noEmpty') && ( - - )} -
- ) -} - -export default QuestionCountryNew diff --git a/src/Questions/CountryV2/index.js b/src/Questions/CountryV2/index.js new file mode 100644 index 00000000..9b001650 --- /dev/null +++ b/src/Questions/CountryV2/index.js @@ -0,0 +1,110 @@ +/** @jsxRuntime classic */ +/** @jsx jsx */ +import { jsx } from 'theme-ui' +import { getCountryDataList } from 'countries-list' +import countriesTools from 'i18n-iso-countries' + +import ErrorMessage from '../../Fields/Error' +import Select from '../../Fields/Select' +import Label from '../../Fields/Label' + +// TODO: import all languages +countriesTools.registerLocale(require('i18n-iso-countries/langs/en.json')) +countriesTools.registerLocale(require('i18n-iso-countries/langs/es.json')) +countriesTools.registerLocale(require('i18n-iso-countries/langs/fr.json')) + +const QuestionCountryV2 = ({ + component, + question, + useForm, + countryAndRegionsData, + language, + ...props +}) => { + const { + formState: { errors }, + trigger, + control, + defaultValue, + unregister + } = useForm + + const buildCountryOptions = (config) => { + const priorityOptions = config?.priorityOptions || [] + const whitelist = config?.whitelist || [] + const blacklist = config?.blacklist || [] + + let finalListOfCountries = getCountryDataList() + + // whitelist and blacklist are mutually exclusive + if (whitelist.length > 0) { + finalListOfCountries = finalListOfCountries.filter((country) => whitelist.includes(country.iso2)) + } else if (blacklist.length > 0) { + finalListOfCountries = finalListOfCountries.filter((country) => !blacklist.includes(country.iso2)) + } + + // translate the country names and sort them by translated name + finalListOfCountries = finalListOfCountries.map((country) => ({ + value: country.iso2, + label: countriesTools.getName(country.iso2, language) || country.name + })).sort((a, b) => a.label.localeCompare(b.label)) + + // sort the countries by priority + if (priorityOptions.length > 0) { + priorityOptions.toReversed().forEach((isoCountryCode) => { + const foundIndex = finalListOfCountries.findIndex((country) => country.value.toLowerCase() === isoCountryCode.toLowerCase()) + if (foundIndex !== -1) { + const foundCountry = finalListOfCountries[foundIndex] + finalListOfCountries.splice(foundIndex, 1); + finalListOfCountries.unshift(foundCountry) + } + }) + } + + return finalListOfCountries + } + + return ( +
+ {question.label && ( + + )} +