From 56fa12fe434e8679e4a25db31fed663bd30e8900 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 18 Mar 2022 21:10:48 +0000 Subject: [PATCH 001/913] chore(deps): update dependency @babel/core to v7.17.8 --- package.json | 2 +- yarn.lock | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index ad43436b77..18d3dab9fc 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "devDependencies": { "@babel/cli": "7.17.6", - "@babel/core": "7.17.7", + "@babel/core": "7.17.8", "@babel/eslint-parser": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/preset-react": "7.16.7", diff --git a/yarn.lock b/yarn.lock index 4cace10fe6..cf221424f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -38,18 +38,18 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.7.tgz#078d8b833fbbcc95286613be8c716cef2b519fa2" integrity sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ== -"@babel/core@7.17.7", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.7.tgz#f7c28228c83cdf2dbd1b9baa06eaf9df07f0c2f9" - integrity sha512-djHlEfFHnSnTAcPb7dATbiM5HxGOP98+3JLBZtjRb5I7RXrw7kFRoG2dXM8cm3H+o11A8IFH/uprmJpwFynRNQ== +"@babel/core@7.17.8", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.8.tgz#3dac27c190ebc3a4381110d46c80e77efe172e1a" + integrity sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ== dependencies: "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.16.7" "@babel/generator" "^7.17.7" "@babel/helper-compilation-targets" "^7.17.7" "@babel/helper-module-transforms" "^7.17.7" - "@babel/helpers" "^7.17.7" - "@babel/parser" "^7.17.7" + "@babel/helpers" "^7.17.8" + "@babel/parser" "^7.17.8" "@babel/template" "^7.16.7" "@babel/traverse" "^7.17.3" "@babel/types" "^7.17.0" @@ -275,10 +275,10 @@ "@babel/traverse" "^7.16.8" "@babel/types" "^7.16.8" -"@babel/helpers@^7.17.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.7.tgz#6fc0a24280fd00026e85424bbfed4650e76d7127" - integrity sha512-TKsj9NkjJfTBxM7Phfy7kv6yYc4ZcOo+AaWGqQOKTPDOmcGkIFb5xNA746eKisQkm4yavUYh4InYM9S+VnO01w== +"@babel/helpers@^7.17.8": + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.8.tgz#288450be8c6ac7e4e44df37bcc53d345e07bc106" + integrity sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw== dependencies: "@babel/template" "^7.16.7" "@babel/traverse" "^7.17.3" @@ -293,10 +293,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.16.7", "@babel/parser@^7.17.3", "@babel/parser@^7.17.7": - version "7.17.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.7.tgz#fc19b645a5456c8d6fdb6cecd3c66c0173902800" - integrity sha512-bm3AQf45vR4gKggRfvJdYJ0gFLoCbsPxiFLSH6hTVYABptNHY6l9NrhnucVjQ/X+SPtLANT9lc0fFhikj+VBRA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.16.7", "@babel/parser@^7.17.3", "@babel/parser@^7.17.8": + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240" + integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.7": version "7.16.7" From 2549373e61961c0098b1bace349d62612da5b8f9 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 21 Mar 2022 00:35:41 +0000 Subject: [PATCH 002/913] chore(deps): lock file maintenance --- yarn.lock | 185 ++++++++++++++++++++++++++---------------------------- 1 file changed, 90 insertions(+), 95 deletions(-) diff --git a/yarn.lock b/yarn.lock index cf221424f2..3a1a9ac1ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -175,11 +175,11 @@ "@babel/types" "^7.16.7" "@babel/helper-member-expression-to-functions@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.16.7.tgz#42b9ca4b2b200123c3b7e726b0ae5153924905b0" - integrity sha512-VtJ/65tYiU/6AbMTDwyoXGPKHgTsfRarivm+YbB5uAzKUyuPjgZSgAFeG87FCigc7KNHu2Pegh1XIT3lXjvz3Q== + version "7.17.7" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4" + integrity sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw== dependencies: - "@babel/types" "^7.16.7" + "@babel/types" "^7.17.0" "@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7": version "7.16.7" @@ -234,7 +234,7 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-simple-access@^7.16.7", "@babel/helper-simple-access@^7.17.7": +"@babel/helper-simple-access@^7.17.7": version "7.17.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.17.7.tgz#aaa473de92b7987c6dfa7ce9a7d9674724823367" integrity sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA== @@ -620,9 +620,9 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/plugin-transform-destructuring@^7.16.7": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.17.3.tgz#c445f75819641788a27a0a3a759d9df911df6abc" - integrity sha512-dDFzegDYKlPqa72xIlbmSkly5MluLoaC1JswABGktyt6NTXSBcUuse/kWE/wvKFWJHPETpi158qJZFS3JmykJg== + version "7.17.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.17.7.tgz#49dc2675a7afa9a5e4c6bdee636061136c3408d1" + integrity sha512-XVh0r5yq9sLR4vZ6eVZe8FKfIcSgaTBxVBRSYokRj2qksf6QerYnTxz9/GTuKTH/n/HwLP7t6gtlybHetJ/6hQ== dependencies: "@babel/helper-plugin-utils" "^7.16.7" @@ -689,22 +689,22 @@ babel-plugin-dynamic-import-node "^2.3.3" "@babel/plugin-transform-modules-commonjs@^7.16.8": - version "7.16.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.8.tgz#cdee19aae887b16b9d331009aa9a219af7c86afe" - integrity sha512-oflKPvsLT2+uKQopesJt3ApiaIS2HW+hzHFcwRNtyDGieAeC/dIHZX8buJQ2J2X1rxGPy4eRcUijm3qcSPjYcA== + version "7.17.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.17.7.tgz#d86b217c8e45bb5f2dbc11eefc8eab62cf980d19" + integrity sha512-ITPmR2V7MqioMJyrxUo2onHNC3e+MvfFiFIR0RP21d3PtlVb6sfzoxNKiphSZUOM9hEIdzCcZe83ieX3yoqjUA== dependencies: - "@babel/helper-module-transforms" "^7.16.7" + "@babel/helper-module-transforms" "^7.17.7" "@babel/helper-plugin-utils" "^7.16.7" - "@babel/helper-simple-access" "^7.16.7" + "@babel/helper-simple-access" "^7.17.7" babel-plugin-dynamic-import-node "^2.3.3" "@babel/plugin-transform-modules-systemjs@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.7.tgz#887cefaef88e684d29558c2b13ee0563e287c2d7" - integrity sha512-DuK5E3k+QQmnOqBR9UkusByy5WZWGRxfzV529s9nPra1GE7olmxfqO2FHobEOYSPIjPBTr4p66YDcjQnt8cBmw== + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.17.8.tgz#81fd834024fae14ea78fbe34168b042f38703859" + integrity sha512-39reIkMTUVagzgA5x88zDYXPCMT6lcaRKs1+S9K6NKBPErbgO/w/kP8GlNQTC87b412ZTlmNgr3k2JrWgHH+Bw== dependencies: "@babel/helper-hoist-variables" "^7.16.7" - "@babel/helper-module-transforms" "^7.16.7" + "@babel/helper-module-transforms" "^7.17.7" "@babel/helper-plugin-utils" "^7.16.7" "@babel/helper-validator-identifier" "^7.16.7" babel-plugin-dynamic-import-node "^2.3.3" @@ -955,17 +955,17 @@ "@babel/plugin-transform-react-pure-annotations" "^7.16.7" "@babel/runtime-corejs3@^7.10.2": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.17.2.tgz#fdca2cd05fba63388babe85d349b6801b008fd13" - integrity sha512-NcKtr2epxfIrNM4VOmPKO46TvDMCBhgi2CrSHaEarrz+Plk2K5r9QemmOFTGpZaoKnWoGH5MO+CzeRsih/Fcgg== + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.17.8.tgz#d7dd49fb812f29c61c59126da3792d8740d4e284" + integrity sha512-ZbYSUvoSF6dXZmMl/CYTMOvzIFnbGfv4W3SEHYgMvNsFTeLaF2gkGAF4K2ddmtSK4Emej+0aYcnSC6N5dPCXUQ== dependencies: core-js-pure "^3.20.2" regenerator-runtime "^0.13.4" "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" - integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw== + version "7.17.8" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.8.tgz#3e56e4aff81befa55ac3ac6a0967349fd1c5bca2" + integrity sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA== dependencies: regenerator-runtime "^0.13.4" @@ -1008,9 +1008,9 @@ integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== "@discoveryjs/json-ext@^0.5.0": - version "0.5.6" - resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.6.tgz#d5e0706cf8c6acd8c6032f8d54070af261bbbb2f" - integrity sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA== + version "0.5.7" + resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" + integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== "@eslint/eslintrc@^1.2.1": version "1.2.1" @@ -1340,9 +1340,9 @@ integrity sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig== "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": - version "7.1.18" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.18.tgz#1a29abcc411a9c05e2094c98f9a1b7da6cdf49f8" - integrity sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ== + version "7.1.19" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" @@ -1496,9 +1496,9 @@ pretty-format "^27.0.0" "@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": - version "7.0.9" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" - integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== + version "7.0.10" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.10.tgz#9b05b7896166cd00e9cbd59864853abf65d9ac23" + integrity sha512-BLO9bBq59vW3fxCpD4o0N4U+DXsvwvIcl+jofw0frQo/GrBFC+/jRZj1E7kgp6dvTyNmA4y6JCV5Id/r3mNP5A== "@types/json5@^0.0.29": version "0.0.29" @@ -1536,16 +1536,16 @@ integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== "@types/react-dom@*": - version "17.0.13" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.13.tgz#a3323b974ee4280070982b3112351bb1952a7809" - integrity sha512-wEP+B8hzvy6ORDv1QBhcQia4j6ea4SFIBttHYpXKPFZRviBvknq0FRh3VrIxeXUmsPkwuXVZrVGG7KUVONmXCQ== + version "17.0.14" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.14.tgz#c8f917156b652ddf807711f5becbd2ab018dea9f" + integrity sha512-H03xwEP1oXmSfl3iobtmQ/2dHF5aBHr8aUMwyGZya6OW45G+xtdzmq6HkncefiBt5JU8DVyaWl/nWZbjZCnzAQ== dependencies: "@types/react" "*" "@types/react@*": - version "17.0.39" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.39.tgz#d0f4cde092502a6db00a1cded6e6bf2abb7633ce" - integrity sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug== + version "17.0.41" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.41.tgz#6e179590d276394de1e357b3f89d05d7d3da8b85" + integrity sha512-chYZ9ogWUodyC7VUTRBfblysKLjnohhFY9bGLwvnUFFy48+vB9DikmB3lW0qTFmBcKSzmdglcvkHK71IioOlDA== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -1603,9 +1603,9 @@ "@types/jest" "*" "@types/ws@^8.2.2": - version "8.5.2" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.2.tgz#77e0c2e360e9579da930ffcfa53c5975ea3bdd26" - integrity sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw== + version "8.5.3" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d" + integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w== dependencies: "@types/node" "*" @@ -2200,12 +2200,12 @@ browser-process-hrtime@^1.0.0: integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== browserslist@^4.14.5, browserslist@^4.17.5, browserslist@^4.19.1: - version "4.20.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.0.tgz#35951e3541078c125d36df76056e94738a52ebe9" - integrity sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ== + version "4.20.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.2.tgz#567b41508757ecd904dab4d1c646c612cd3d4f88" + integrity sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA== dependencies: - caniuse-lite "^1.0.30001313" - electron-to-chromium "^1.4.76" + caniuse-lite "^1.0.30001317" + electron-to-chromium "^1.4.84" escalade "^3.1.1" node-releases "^2.0.2" picocolors "^1.0.0" @@ -2285,10 +2285,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001313: - version "1.0.30001313" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001313.tgz#a380b079db91621e1b7120895874e2fd62ed2e2f" - integrity sha512-rI1UN0koZUiKINjysQDuRi2VeSCce3bYJNmDcj3PIKREiAmjakugBul1QSkg/fPrlULYl6oWfGg3PbgOSY9X4Q== +caniuse-lite@^1.0.30001317: + version "1.0.30001319" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz#eb4da4eb3ecdd409f7ba1907820061d56096e88f" + integrity sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw== chalk@^2.0.0, chalk@^2.4.1: version "2.4.2" @@ -2675,9 +2675,9 @@ debug@2.6.9, debug@^2.6.9: ms "2.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: - version "4.3.3" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" - integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" @@ -2871,9 +2871,9 @@ domexception@^2.0.1: webidl-conversions "^5.0.0" domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.0.tgz#16c658c626cf966967e306f966b431f77d4a5626" - integrity sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g== + version "4.3.1" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c" + integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== dependencies: domelementtype "^2.2.0" @@ -2899,10 +2899,10 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= -electron-to-chromium@^1.4.76: - version "1.4.76" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.76.tgz#a0494baedaf51094b1c172999919becd9975a934" - integrity sha512-3Vftv7cenJtQb+k00McEBZ2vVmZ/x+HEF7pcZONZIkOsESqAqVuACmBxMv0JhzX7u0YltU0vSqRqgBSTAhFUjA== +electron-to-chromium@^1.4.84: + version "1.4.88" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.88.tgz#ebe6a2573b563680c7a7bf3a51b9e465c9c501db" + integrity sha512-oA7mzccefkvTNi9u7DXmT0LqvhnOiN2BhSrKerta7HeUC1cLoIwtbf2wL+Ah2ozh5KQd3/1njrGrwDBXx6d14Q== emittery@^0.8.1: version "0.8.1" @@ -3587,9 +3587,9 @@ globals@^11.1.0: integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== globals@^13.6.0, globals@^13.9.0: - version "13.12.1" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.12.1.tgz#ec206be932e6c77236677127577aa8e50bf1c5cb" - integrity sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw== + version "13.13.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.13.0.tgz#ac32261060d8070e2719dd6998406e27d2b5727b" + integrity sha512-EQ7Q18AJlPwp3vUDL4mKA0KXrXyNIQyWon6T6XQiBQF0XHvRsiCSrWmmeATpUzdJN2HhWZU6Pdl0a9zdep5p6A== dependencies: type-fest "^0.20.2" @@ -3630,7 +3630,7 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.0.1, has-symbols@^1.0.2: +has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== @@ -3776,9 +3776,9 @@ http-proxy-agent@^4.0.1: debug "4" http-proxy-middleware@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.3.tgz#5df04f69a89f530c2284cd71eeaa51ba52243289" - integrity sha512-1bloEwnrHMnCoO/Gcwbz7eSVvW50KPES01PecpagI+YLNLci4AcuKJrujW4Mc3sBLpFxMSlsLNHS5Nl/lvrTPA== + version "2.0.4" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.4.tgz#03af0f4676d172ae775cb5c33f592f40e1a4e07a" + integrity sha512-m/4FxX17SUvz4lJ5WPXOHDUuCwIqXLfLHs1s0uZ3oYjhoXlx9csYxaOa0ElDEJ+h8Q4iJ1s+lTMbiCa4EXIJqg== dependencies: "@types/http-proxy" "^1.17.8" http-proxy "^1.18.1" @@ -4913,22 +4913,17 @@ micromatch@^4.0.2, micromatch@^4.0.4: braces "^3.0.1" picomatch "^2.2.3" -mime-db@1.51.0: - version "1.51.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c" - integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g== - -"mime-db@>= 1.43.0 < 2": +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.34" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24" - integrity sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A== + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: - mime-db "1.51.0" + mime-db "1.52.0" mime@1.6.0, mime@^1.4.1: version "1.6.0" @@ -5047,9 +5042,9 @@ no-case@^3.0.4: tslib "^2.0.3" node-forge@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.2.1.tgz#82794919071ef2eb5c509293325cec8afd0fd53c" - integrity sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w== + version "1.3.0" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.0.tgz#37a874ea723855f37db091e6c186e5b67a01d4b2" + integrity sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA== node-int64@^0.4.0: version "0.4.0" @@ -5491,9 +5486,9 @@ postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== postcss@^8.4.7: - version "8.4.7" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.7.tgz#f99862069ec4541de386bf57f5660a6c7a0875a8" - integrity sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A== + version "8.4.12" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905" + integrity sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg== dependencies: nanoid "^3.3.1" picocolors "^1.0.0" @@ -5783,7 +5778,7 @@ regenerator-transform@^0.14.2: dependencies: "@babel/runtime" "^7.8.4" -regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.3.1: +regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz#b3f4c0059af9e47eca9f3f660e51d81307e72307" integrity sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ== @@ -6367,17 +6362,17 @@ string-width@^4.1.0, string-width@^4.2.0: strip-ansi "^6.0.1" string.prototype.matchall@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa" - integrity sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg== + version "4.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" + integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" es-abstract "^1.19.1" get-intrinsic "^1.1.1" - has-symbols "^1.0.2" + has-symbols "^1.0.3" internal-slot "^1.0.3" - regexp.prototype.flags "^1.3.1" + regexp.prototype.flags "^1.4.1" side-channel "^1.0.4" string.prototype.padend@^3.0.0: @@ -6524,9 +6519,9 @@ terser-webpack-plugin@^5.1.3: terser "^5.7.2" terser@^5.0.0, terser@^5.10.0, terser@^5.7.2: - version "5.12.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.12.0.tgz#728c6bff05f7d1dcb687d8eace0644802a9dae8a" - integrity sha512-R3AUhNBGWiFc77HXag+1fXpAxTAFRQTJemlJKjAgD9r8xXTpjNKqIXwHM/o7Rh+O0kUJtS3WQVdBeMKFk5sw9A== + version "5.12.1" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.12.1.tgz#4cf2ebed1f5bceef5c83b9f60104ac4a78b49e9c" + integrity sha512-NXbs+7nisos5E+yXwAD+y7zrcTkMqb0dEJxIGtSKPdCBzopf7ni4odPul2aechpV7EXNvOudYOX2bb5tln1jbQ== dependencies: acorn "^8.5.0" commander "^2.20.0" @@ -6596,9 +6591,9 @@ tr46@^2.1.0: punycode "^2.1.1" tsconfig-paths@^3.12.0: - version "3.13.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.13.0.tgz#f3e9b8f6876698581d94470c03c95b3a48c0e3d7" - integrity sha512-nWuffZppoaYK0vQ1SQmkSsQzJoHA4s6uzdb2waRpD806x9yfq153AdVsWz4je2qZcW+pENrMQXbGQ3sMCkXuhw== + version "3.14.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.0.tgz#4fcc48f9ccea8826c41b9ca093479de7f5018976" + integrity sha512-cg/1jAZoL57R39+wiw4u/SCC6Ic9Q5NqjBOb+9xISedOYurfog9ZNmKJSxAnb2m/5Bq4lE9lhUcau33Ml8DM0g== dependencies: "@types/json5" "^0.0.29" json5 "^1.0.1" From a5345f9111acdcac226ae41d04daa4c83a523b55 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 21 Mar 2022 11:21:27 +0000 Subject: [PATCH 003/913] chore(deps): update actions/cache action to v3 --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dd6fb787f..8cacc77a51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-nodemodules with: path: node_modules @@ -56,7 +56,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-nodemodules with: path: node_modules @@ -84,7 +84,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-nodemodules with: path: node_modules @@ -115,7 +115,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-nodemodules with: path: node_modules @@ -146,7 +146,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-nodemodules with: path: node_modules From 00d529b0a03b556d3581a0f3af4196d6cea867e7 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 22 Mar 2022 18:29:10 +0000 Subject: [PATCH 004/913] chore(deps): update dependency babel-loader to v8.2.4 --- package.json | 2 +- yarn.lock | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 18d3dab9fc..a777fc828f 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@testing-library/react": "12.1.4", "@testing-library/user-event": "13.5.0", "babel-jest": "27.5.1", - "babel-loader": "8.2.3", + "babel-loader": "8.2.4", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "cross-env": "7.0.3", "css-loader": "6.7.1", diff --git a/yarn.lock b/yarn.lock index 3a1a9ac1ca..3f81c967f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2033,13 +2033,13 @@ babel-jest@27.5.1, babel-jest@^27.5.1: graceful-fs "^4.2.9" slash "^3.0.0" -babel-loader@8.2.3: - version "8.2.3" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.3.tgz#8986b40f1a64cacfcb4b8429320085ef68b1342d" - integrity sha512-n4Zeta8NC3QAsuyiizu0GkmRcQ6clkV9WFUnUf1iXP//IeSKbWjofW3UHyZVwlOB4y039YQKefawyTn64Zwbuw== +babel-loader@8.2.4: + version "8.2.4" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.4.tgz#95f5023c791b2e9e2ca6f67b0984f39c82ff384b" + integrity sha512-8dytA3gcvPPPv4Grjhnt8b5IIiTcq/zeXOPk4iTYI0SVXcsmuGg7JtBRDp8S9X+gJfhQ8ektjXZlDu1Bb33U8A== dependencies: find-cache-dir "^3.3.1" - loader-utils "^1.4.0" + loader-utils "^2.0.0" make-dir "^3.1.0" schema-utils "^2.6.5" @@ -4774,14 +4774,14 @@ loader-runner@^4.2.0: resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.2.0.tgz#d7022380d66d14c5fb1d496b89864ebcfd478384" integrity sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw== -loader-utils@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" - integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA== +loader-utils@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.2.tgz#d6e3b4fb81870721ae4e0868ab11dd638368c129" + integrity sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A== dependencies: big.js "^5.2.2" emojis-list "^3.0.0" - json5 "^1.0.1" + json5 "^2.1.2" locate-path@^2.0.0: version "2.0.0" From 18e7a26d9444d49ef4fe209f1c9a5ea1b9818e89 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 23 Mar 2022 23:25:00 +0000 Subject: [PATCH 005/913] chore(deps): update dependency @testing-library/dom to v8.11.4 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a777fc828f..8f9fb90850 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@babel/eslint-parser": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/preset-react": "7.16.7", - "@testing-library/dom": "8.11.3", + "@testing-library/dom": "8.11.4", "@testing-library/jest-dom": "5.16.2", "@testing-library/react": "12.1.4", "@testing-library/user-event": "13.5.0", diff --git a/yarn.lock b/yarn.lock index 3f81c967f9..8dcf1ce891 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1284,10 +1284,10 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@testing-library/dom@8.11.3", "@testing-library/dom@^8.0.0": - version "8.11.3" - resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.3.tgz#38fd63cbfe14557021e88982d931e33fb7c1a808" - integrity sha512-9LId28I+lx70wUiZjLvi1DB/WT2zGOxUh46glrSNMaWVx849kKAluezVzZrXJfTKKoQTmEOutLes/bHg4Bj3aA== +"@testing-library/dom@8.11.4", "@testing-library/dom@^8.0.0": + version "8.11.4" + resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.4.tgz#dc94d830b862e7a20686b0379eefd931baf0445b" + integrity sha512-7vZ6ZoBEbr6bfEM89W1nzl0vHbuI0g0kRrI0hwSXH3epnuqGO3KulFLQCKfmmW+60t7e4sevAkJPASSMmnNCRw== dependencies: "@babel/code-frame" "^7.10.4" "@babel/runtime" "^7.12.5" From 1266b414c8e32d7f8966cbc2674b0f42e040ca41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Mar 2022 02:09:56 +0000 Subject: [PATCH 006/913] chore(deps): bump minimist from 1.2.5 to 1.2.6 Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8dcf1ce891..dabe7634ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4960,9 +4960,9 @@ minimatch@^3.0.4, minimatch@^3.1.2: brace-expansion "^1.1.7" minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + version "1.2.6" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" + integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== mkdirp@^0.5.5: version "0.5.5" From 69d047859a7eceed83227d22a8620cf1a27e6199 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 24 Mar 2022 13:04:32 +0000 Subject: [PATCH 007/913] chore(deps): update dependency @testing-library/jest-dom to v5.16.3 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8f9fb90850..557cceaff1 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@babel/preset-env": "7.16.11", "@babel/preset-react": "7.16.7", "@testing-library/dom": "8.11.4", - "@testing-library/jest-dom": "5.16.2", + "@testing-library/jest-dom": "5.16.3", "@testing-library/react": "12.1.4", "@testing-library/user-event": "13.5.0", "babel-jest": "27.5.1", diff --git a/yarn.lock b/yarn.lock index dabe7634ab..577802266f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1298,10 +1298,10 @@ lz-string "^1.4.4" pretty-format "^27.0.2" -"@testing-library/jest-dom@5.16.2": - version "5.16.2" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.2.tgz#f329b36b44aa6149cd6ced9adf567f8b6aa1c959" - integrity sha512-6ewxs1MXWwsBFZXIk4nKKskWANelkdUehchEOokHsN8X7c2eKXGw+77aRV63UU8f/DTSVUPLaGxdrj4lN7D/ug== +"@testing-library/jest-dom@5.16.3": + version "5.16.3" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.3.tgz#b76851a909586113c20486f1679ffb4d8ec27bfa" + integrity sha512-u5DfKj4wfSt6akfndfu1eG06jsdyA/IUrlX2n3pyq5UXgXMhXY+NJb8eNK/7pqPWAhCKsCGWDdDO0zKMKAYkEA== dependencies: "@babel/runtime" "^7.9.2" "@types/testing-library__jest-dom" "^5.9.1" From 22fc544e8caa8a69535467d590dc21c62448da51 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 25 Mar 2022 09:36:51 +0000 Subject: [PATCH 008/913] chore(deps): update dependency prettier to v2.6.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 557cceaff1..71016ac4be 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "less-loader": "10.2.0", "mini-css-extract-plugin": "2.6.0", "npm-run-all": "4.1.5", - "prettier": "2.6.0", + "prettier": "2.6.1", "react": "17.0.2", "react-dom": "17.0.2", "react-live": "2.4.1", diff --git a/yarn.lock b/yarn.lock index 577802266f..6a1a80048d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5511,10 +5511,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.0.tgz#12f8f504c4d8ddb76475f441337542fa799207d4" - integrity sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A== +prettier@2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.1.tgz#d472797e0d7461605c1609808e27b80c0f9cfe17" + integrity sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A== pretty-error@^4.0.0: version "4.0.0" From 0f58edb3a55e01371dfcdeecd1816d5c4935619d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 25 Mar 2022 23:10:30 +0000 Subject: [PATCH 009/913] chore(deps): update dependency eslint to v8.12.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 71016ac4be..4ac281093e 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "babel-plugin-transform-react-remove-prop-types": "0.4.24", "cross-env": "7.0.3", "css-loader": "6.7.1", - "eslint": "8.11.0", + "eslint": "8.12.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.25.4", "eslint-plugin-jsx-a11y": "6.5.1", diff --git a/yarn.lock b/yarn.lock index 6a1a80048d..3190e535a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3156,10 +3156,10 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@8.11.0: - version "8.11.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.11.0.tgz#88b91cfba1356fc10bb9eb592958457dfe09fb37" - integrity sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA== +eslint@8.12.0: + version "8.12.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.12.0.tgz#c7a5bd1cfa09079aae64c9076c07eada66a46e8e" + integrity sha512-it1oBL9alZg1S8UycLm5YDMAkIhtH6FtAzuZs6YvoGVldWjbS08BkAdb/ymP9LlAyq8koANu32U7Ib/w+UNh8Q== dependencies: "@eslint/eslintrc" "^1.2.1" "@humanwhocodes/config-array" "^0.9.2" From d17a6808d8a64b8e2733fae00280600f44a9ee5d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 26 Mar 2022 16:05:16 +0000 Subject: [PATCH 010/913] chore(deps): update dependency @testing-library/dom to v8.12.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4ac281093e..98b99a88b9 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@babel/eslint-parser": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/preset-react": "7.16.7", - "@testing-library/dom": "8.11.4", + "@testing-library/dom": "8.12.0", "@testing-library/jest-dom": "5.16.3", "@testing-library/react": "12.1.4", "@testing-library/user-event": "13.5.0", diff --git a/yarn.lock b/yarn.lock index 3190e535a8..5c1052b6ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1284,10 +1284,10 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@testing-library/dom@8.11.4", "@testing-library/dom@^8.0.0": - version "8.11.4" - resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.4.tgz#dc94d830b862e7a20686b0379eefd931baf0445b" - integrity sha512-7vZ6ZoBEbr6bfEM89W1nzl0vHbuI0g0kRrI0hwSXH3epnuqGO3KulFLQCKfmmW+60t7e4sevAkJPASSMmnNCRw== +"@testing-library/dom@8.12.0", "@testing-library/dom@^8.0.0": + version "8.12.0" + resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.12.0.tgz#fef5e545533fb084175dda6509ee71d7d2f72e23" + integrity sha512-rBrJk5WjI02X1edtiUcZhgyhgBhiut96r5Jp8J5qktKdcvLcZpKDW8i2hkGMMItxrghjXuQ5AM6aE0imnFawaw== dependencies: "@babel/code-frame" "^7.10.4" "@babel/runtime" "^7.12.5" From f06dec5476344fb5794abf897fa346eaa8d0f3d3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 28 Mar 2022 00:58:50 +0000 Subject: [PATCH 011/913] chore(deps): lock file maintenance --- yarn.lock | 92 +++++++++++++++++++++++++++---------------------------- 1 file changed, 45 insertions(+), 47 deletions(-) diff --git a/yarn.lock b/yarn.lock index 5c1052b6ec..50f1eaa13b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1496,9 +1496,9 @@ pretty-format "^27.0.0" "@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": - version "7.0.10" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.10.tgz#9b05b7896166cd00e9cbd59864853abf65d9ac23" - integrity sha512-BLO9bBq59vW3fxCpD4o0N4U+DXsvwvIcl+jofw0frQo/GrBFC+/jRZj1E7kgp6dvTyNmA4y6JCV5Id/r3mNP5A== + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== "@types/json5@^0.0.29": version "0.0.29" @@ -1511,9 +1511,9 @@ integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw== "@types/node@*": - version "17.0.21" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644" - integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ== + version "17.0.23" + resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da" + integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw== "@types/prettier@^2.1.5": version "2.4.4" @@ -1543,9 +1543,9 @@ "@types/react" "*" "@types/react@*": - version "17.0.41" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.41.tgz#6e179590d276394de1e357b3f89d05d7d3da8b85" - integrity sha512-chYZ9ogWUodyC7VUTRBfblysKLjnohhFY9bGLwvnUFFy48+vB9DikmB3lW0qTFmBcKSzmdglcvkHK71IioOlDA== + version "17.0.43" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.43.tgz#4adc142887dd4a2601ce730bc56c3436fdb07a55" + integrity sha512-8Q+LNpdxf057brvPu1lMtC5Vn7J119xrP1aq4qiaefNioQUYANF/CYeK4NsKorSZyUGJ66g0IM+4bbjwx45o2A== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -1860,9 +1860,9 @@ ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5: uri-js "^4.2.2" ajv@^8.0.0, ajv@^8.8.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.10.0.tgz#e573f719bd3af069017e3b66538ab968d040e54d" - integrity sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw== + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -2187,7 +2187,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^3.0.1, braces@~3.0.2: +braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -2286,9 +2286,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001317: - version "1.0.30001319" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz#eb4da4eb3ecdd409f7ba1907820061d56096e88f" - integrity sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw== + version "1.0.30001320" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001320.tgz#8397391bec389b8ccce328636499b7284ee13285" + integrity sha512-MWPzG54AGdo3nWx7zHZTefseM5Y1ccM7hlQKHRqJkPozUaw3hNbBTMmLn16GG2FUzjR13Cr3NPfhIieX5PzXDA== chalk@^2.0.0, chalk@^2.4.1: version "2.4.2" @@ -2900,9 +2900,9 @@ ee-first@1.1.1: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.4.84: - version "1.4.88" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.88.tgz#ebe6a2573b563680c7a7bf3a51b9e465c9c501db" - integrity sha512-oA7mzccefkvTNi9u7DXmT0LqvhnOiN2BhSrKerta7HeUC1cLoIwtbf2wL+Ah2ozh5KQd3/1njrGrwDBXx6d14Q== + version "1.4.96" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.96.tgz#a97438a01d5db1460343fea4a344960b09330990" + integrity sha512-DPNjvNGPabv6FcyjzLAN4C0psN/GgD9rSGvMTuv81SeXG/EX3mCz0wiw9N1tUEnfQXYCJi3H8M0oFPRziZh7rw== emittery@^0.8.1: version "0.8.1" @@ -3684,9 +3684,9 @@ html-encoding-sniffer@^2.0.1: whatwg-encoding "^1.0.5" html-entities@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.3.2.tgz#760b404685cb1d794e4f4b744332e3b00dcfe488" - integrity sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ== + version "2.3.3" + resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.3.3.tgz#117d7626bece327fc8baace8868fa6f5ef856e46" + integrity sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA== html-escaper@^2.0.0: version "2.0.2" @@ -4668,11 +4668,9 @@ json5@^1.0.1: minimist "^1.2.0" json5@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" - integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== - dependencies: - minimist "^1.2.5" + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== "jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: version "3.2.1" @@ -4906,12 +4904,12 @@ methods@~1.1.2: integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" - integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== dependencies: - braces "^3.0.1" - picomatch "^2.2.3" + braces "^3.0.2" + picomatch "^2.3.1" mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": version "1.52.0" @@ -4959,17 +4957,17 @@ minimatch@^3.0.4, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimist@^1.2.0, minimist@^1.2.5: +minimist@^1.2.0, minimist@^1.2.6: version "1.2.6" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== mkdirp@^0.5.5: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== dependencies: - minimist "^1.2.5" + minimist "^1.2.6" ms@2.0.0: version "2.0.0" @@ -5041,7 +5039,7 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" -node-forge@^1.2.0: +node-forge@^1: version "1.3.0" resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.0.tgz#37a874ea723855f37db091e6c186e5b67a01d4b2" integrity sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA== @@ -5403,7 +5401,7 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3: +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -6069,11 +6067,11 @@ select-hose@^2.0.0: integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo= selfsigned@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.0.0.tgz#e927cd5377cbb0a1075302cff8df1042cc2bce5b" - integrity sha512-cUdFiCbKoa1mZ6osuJs2uDHrs0k0oprsKveFiiaBKCNq3SYyb5gs2HxhQyDNLCmL51ZZThqi4YNDpCK6GOP1iQ== + version "2.0.1" + resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.0.1.tgz#8b2df7fa56bf014d19b6007655fff209c0ef0a56" + integrity sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ== dependencies: - node-forge "^1.2.0" + node-forge "^1" "semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: version "5.7.1" @@ -6591,13 +6589,13 @@ tr46@^2.1.0: punycode "^2.1.1" tsconfig-paths@^3.12.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.0.tgz#4fcc48f9ccea8826c41b9ca093479de7f5018976" - integrity sha512-cg/1jAZoL57R39+wiw4u/SCC6Ic9Q5NqjBOb+9xISedOYurfog9ZNmKJSxAnb2m/5Bq4lE9lhUcau33Ml8DM0g== + version "3.14.1" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" + integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ== dependencies: "@types/json5" "^0.0.29" json5 "^1.0.1" - minimist "^1.2.0" + minimist "^1.2.6" strip-bom "^3.0.0" tslib@^2.0.3, tslib@^2.3.0: From 3e8b5ddfd30412504fa4bf5bfa98018978725b8a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 29 Mar 2022 18:25:39 +0000 Subject: [PATCH 012/913] chore(deps): update react monorepo to v18 --- package.json | 6 +++--- yarn.lock | 49 +++++++++++++++++++++++++------------------------ 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 98b99a88b9..7d139db155 100644 --- a/package.json +++ b/package.json @@ -79,11 +79,11 @@ "mini-css-extract-plugin": "2.6.0", "npm-run-all": "4.1.5", "prettier": "2.6.1", - "react": "17.0.2", - "react-dom": "17.0.2", + "react": "18.0.0", + "react-dom": "18.0.0", "react-live": "2.4.1", "react-modal": "3.14.4", - "react-test-renderer": "17.0.2", + "react-test-renderer": "18.0.0", "rimraf": "3.0.2", "rollup": "2.70.1", "rollup-plugin-babel": "4.4.0", diff --git a/yarn.lock b/yarn.lock index 50f1eaa13b..c17d4185ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5613,16 +5613,15 @@ raw-body@2.4.3: iconv-lite "0.4.24" unpipe "1.0.0" -react-dom@17.0.2: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" - integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== +react-dom@18.0.0: + version "18.0.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.0.0.tgz#26b88534f8f1dbb80853e1eabe752f24100d8023" + integrity sha512-XqX7uzmFo0pUceWFCt7Gff6IyIMzFUn7QMZrbrQfGxtaxXZIcGQzoNpRLE3fQLnS4XzLLPMZX2T9TRcSrasicw== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" - scheduler "^0.20.2" + scheduler "^0.21.0" -"react-is@^16.12.0 || ^17.0.0", react-is@^17.0.1, react-is@^17.0.2: +"react-is@^16.12.0 || ^17.0.0", react-is@^17.0.1: version "17.0.2" resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== @@ -5632,6 +5631,11 @@ react-is@^16.13.1, react-is@^16.7.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== +react-is@^18.0.0: + version "18.0.0" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.0.0.tgz#026f6c4a27dbe33bf4a35655b9e1327c4e55e3f5" + integrity sha512-yUcBYdBBbo3QiPsgYDcfQcIkGZHfxOaoE6HLSnr1sPzMhdyxusbfKOSUbSd/ocGi32dxcj366PsTj+5oggeKKw== + react-lifecycles-compat@^3.0.0: version "3.0.4" resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" @@ -5674,23 +5678,21 @@ react-simple-code-editor@^0.11.0: resolved "https://registry.yarnpkg.com/react-simple-code-editor/-/react-simple-code-editor-0.11.0.tgz#bb57c7c29b570f2ab229872599eac184f5bc673c" integrity sha512-xGfX7wAzspl113ocfKQAR8lWPhavGWHL3xSzNLeseDRHysT+jzRBi/ExdUqevSMos+7ZtdfeuBOXtgk9HTwsrw== -react-test-renderer@17.0.2: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-17.0.2.tgz#4cd4ae5ef1ad5670fc0ef776e8cc7e1231d9866c" - integrity sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ== +react-test-renderer@18.0.0: + version "18.0.0" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-18.0.0.tgz#fa403d625ea9478a70ace43db88833f6c3a5bb4c" + integrity sha512-SyZTP/FSkwfiKOZuTZiISzsrC8A80KNlQ8PyyoGoOq+VzMAab6Em1POK/CiX3+XyXG6oiJa1C53zYDbdrJu9fw== dependencies: - object-assign "^4.1.1" - react-is "^17.0.2" + react-is "^18.0.0" react-shallow-renderer "^16.13.1" - scheduler "^0.20.2" + scheduler "^0.21.0" -react@17.0.2: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" - integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== +react@18.0.0: + version "18.0.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.0.0.tgz#b468736d1f4a5891f38585ba8e8fb29f91c3cb96" + integrity sha512-x+VL6wbT4JRVPm7EGxXhZ8w8LTROaxPXOqhlGyVSrv0sB1jkyFGgXxJ8LVoPRLvPR6/CIZGFmfzqUa2NYeMr2A== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" read-pkg@^3.0.0: version "3.0.0" @@ -6025,13 +6027,12 @@ saxes@^5.0.1: dependencies: xmlchars "^2.2.0" -scheduler@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" - integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== +scheduler@^0.21.0: + version "0.21.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.21.0.tgz#6fd2532ff5a6d877b6edb12f00d8ab7e8f308820" + integrity sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" schema-utils@^2.6.5: version "2.7.1" From b8718378401f6385bf34efd05f947b0a36a1f355 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 31 Mar 2022 09:42:53 +0000 Subject: [PATCH 013/913] chore(deps): update dependency @testing-library/react to v13 --- package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7d139db155..23d7cc4fe6 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@babel/preset-react": "7.16.7", "@testing-library/dom": "8.12.0", "@testing-library/jest-dom": "5.16.3", - "@testing-library/react": "12.1.4", + "@testing-library/react": "13.0.0", "@testing-library/user-event": "13.5.0", "babel-jest": "27.5.1", "babel-loader": "8.2.4", diff --git a/yarn.lock b/yarn.lock index c17d4185ba..2f0e9121ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1284,7 +1284,7 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@testing-library/dom@8.12.0", "@testing-library/dom@^8.0.0": +"@testing-library/dom@8.12.0", "@testing-library/dom@^8.5.0": version "8.12.0" resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.12.0.tgz#fef5e545533fb084175dda6509ee71d7d2f72e23" integrity sha512-rBrJk5WjI02X1edtiUcZhgyhgBhiut96r5Jp8J5qktKdcvLcZpKDW8i2hkGMMItxrghjXuQ5AM6aE0imnFawaw== @@ -1313,13 +1313,13 @@ lodash "^4.17.15" redent "^3.0.0" -"@testing-library/react@12.1.4": - version "12.1.4" - resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-12.1.4.tgz#09674b117e550af713db3f4ec4c0942aa8bbf2c0" - integrity sha512-jiPKOm7vyUw311Hn/HlNQ9P8/lHNtArAx0PisXyFixDDvfl8DbD6EUdbshK5eqauvBSvzZd19itqQ9j3nferJA== +"@testing-library/react@13.0.0": + version "13.0.0" + resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.0.0.tgz#8cdaf4667c6c2b082eb0513731551e9db784e8bc" + integrity sha512-p0lYA1M7uoEmk2LnCbZLGmHJHyH59sAaZVXChTXlyhV/PRW9LoIh4mdf7tiXsO8BoNG+vN8UnFJff1hbZeXv+w== dependencies: "@babel/runtime" "^7.12.5" - "@testing-library/dom" "^8.0.0" + "@testing-library/dom" "^8.5.0" "@types/react-dom" "*" "@testing-library/user-event@13.5.0": From d29431b07037155e9480f11921dbdf7000fd6448 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:28:51 +0000 Subject: [PATCH 014/913] chore: Fix website for react 18 --- .gitpod.yml | 2 +- examples/src/app.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 8906664673..22304ace94 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ tasks: - - init: yarn install && yarn run builds + - init: yarn install && yarn run build vscode: extensions: diff --git a/examples/src/app.js b/examples/src/app.js index 98b1d4f45f..7e0c5b6f3f 100644 --- a/examples/src/app.js +++ b/examples/src/app.js @@ -1,17 +1,18 @@ import React from 'react'; -import ReactDOM from 'react-dom'; +import * as ReactDOM from 'react-dom/client'; import './example.less'; import SuperMario from './components/examples/SuperMario'; import MattGroening from './components/examples/MattGroening'; import Avengers from './components/examples/Avengers'; import RightToLeft from './components/examples/RightToLeft'; -ReactDOM.render( +const root = ReactDOM.createRoot(document.getElementById('example')); + +root.render(
, - document.getElementById('example'), ); From f849c3025eb43be173b9c07ee831ef279d26beaa Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:31:30 +0000 Subject: [PATCH 015/913] feat: Support react version 18 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 23d7cc4fe6..441948aa04 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "react-component" ], "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-0" + "react": "^16.8.0 || ^17.0.0-0 || ^18.0.0" }, "devDependencies": { "@babel/cli": "7.17.6", From 85caf7a08ec6c3f04f65356a6b3599aa8fdde1ae Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Thu, 31 Mar 2022 17:15:21 +0000 Subject: [PATCH 016/913] feat: New prop to disable focusing tabs on click --- README.md | 43 +++++++++++++++++---------- src/components/Tabs.js | 12 ++++++-- src/components/__tests__/Tabs-test.js | 15 ++++++++++ 3 files changed, 52 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 24da281962..701b012360 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ https://reactcommunity.org/react-tabs/ > Supports React 16.8.0 or newer

react-tabs was tested on real mobile devices and browsers with
- Browserstack +Browserstack

@@ -16,7 +16,9 @@ https://reactcommunity.org/react-tabs/ ```bash yarn add react-tabs ``` + or + ```bash npm install --save react-tabs ``` @@ -78,7 +80,7 @@ react-tabs consists of 4 components which all need to be used together. If you specify additional props on the `` component they will be forwarded to the rendered `
`. -#### className: `string | Array | { [string]: boolean }` +#### className: `string | Array | { [string]: boolean }` > default: `"react-tabs"` @@ -130,6 +132,14 @@ Register a callback that will receive the underlying DOM node for every mount. I If you're rendering `react-tabs` within a different `window` context than the default one; for example, an iframe. +#### focusTabOnClick: `boolean` + +> default: `true` + +By default the tab that is clicked will also be focused in the DOM. If set to `false` the tab will not be focused anymore. + +> Be aware that keyboard navigation will not work after click if set to false. Though one can still focus the tabs by pressing `tab` and then keyboard navigation will work. + #### forceRenderTabPanel: `boolean` > default: `false` @@ -178,7 +188,7 @@ Provide a custom class name for the active tab panel. If you specify additional props on the `` component they will be forwarded to the rendered `
    `. -#### className: `string | Array | { [string]: boolean }` +#### className: `string | Array | { [string]: boolean }` > default: `"react-tabs__tab-list"` @@ -190,7 +200,7 @@ Provide a custom class name for the `
      `. If you specify additional props on the `` component they will be forwarded to the rendered `
    • `. -#### className: `string | Array | { [string]: boolean }` +#### className: `string | Array | { [string]: boolean }` > default: `"react-tabs__tab"` @@ -230,7 +240,7 @@ Overrides the tabIndex to enabled tabbing between tabs. If you specify additional props on the `` component they will be forwarded to the rendered `
      `. -#### className: `string | Array | { [string]: boolean }` +#### className: `string | Array | { [string]: boolean }` > default: `"react-tabs__tab-panel"` @@ -265,7 +275,7 @@ This is the default mode of react-tabs and makes the react-tabs components handl In this mode you cannot force a tab change during runtime. ```js - console.log(index)}> + console.log(index)}> Title 1 Title 2 @@ -288,7 +298,7 @@ const App = () => { const [tabIndex, setTabIndex] = useState(0); return ( - setTabIndex(index)}> + setTabIndex(index)}> Title 1 Title 2 @@ -340,13 +350,15 @@ When using the UMD version of react-tabs you can easily use the default styles b ... - + ... ``` - ### Custom Style You can also always just simply copy the default style to your own css/scss/less and modify it to your own needs. The changelog will always tell you when classes change and we also consider changes that break the styling as semver major. @@ -354,19 +366,20 @@ You can also always just simply copy the default style to your own css/scss/less ### Custom Components #### Set `tabsRole` + In case you want to create your own component wrapping the ones that the library provides, you have to set its `tabsRole`. This value is used inside react-tabs to check the role of a component inside ``. Possible values for tabsRole are: - * Tab - * TabPanel - * TabList -#### Pass through properties -Note: Because of how react-tabs works internally (it uses cloning to opaquely control various parts of the tab state), you need to pass any incoming props to the component you're wrapping. The easiest way to do this is to use the rest and spread operators, e.g. see `{...otherProps}` below. +- Tab +- TabPanel +- TabList +#### Pass through properties +Note: Because of how react-tabs works internally (it uses cloning to opaquely control various parts of the tab state), you need to pass any incoming props to the component you're wrapping. The easiest way to do this is to use the rest and spread operators, e.g. see `{...otherProps}` below. -``` javascript +```javascript import { Tabs, TabList, Tab, TabPanel } from 'react-tabs'; // All custom elements should pass through other props diff --git a/src/components/Tabs.js b/src/components/Tabs.js index 5416b14488..9978e52d69 100644 --- a/src/components/Tabs.js +++ b/src/components/Tabs.js @@ -23,6 +23,7 @@ const propTypes = { disabledTabClassName: PropTypes.string, disableUpDownKeys: PropTypes.bool, domRef: PropTypes.func, + focusTabOnClick: PropTypes.bool, forceRenderTabPanel: PropTypes.bool, onSelect: onSelectPropType, selectedIndex: selectedIndexPropType, @@ -32,6 +33,7 @@ const propTypes = { }; const defaultProps = { defaultFocus: false, + focusTabOnClick: true, forceRenderTabPanel: false, selectedIndex: null, defaultIndex: null, @@ -64,7 +66,8 @@ For more information about controlled and uncontrolled mode of react-tabs see ht * It is initialized from the prop defaultFocus, and after the first render it is reset back to false. Later it can become true again when using keys to navigate the tabs. */ const Tabs = (props) => { - const { children, defaultFocus, defaultIndex, onSelect } = props; + const { children, defaultFocus, defaultIndex, focusTabOnClick, onSelect } = + props; const [focus, setFocus] = useState(defaultFocus); const [mode] = useState(getModeFromProps(props)); @@ -97,8 +100,10 @@ const Tabs = (props) => { if (onSelect(index, last, event) === false) return; } - // Always set focus on tabs - setFocus(true); + // Always set focus on tabs unless it is disabled + if (focusTabOnClick) { + setFocus(true); + } if (mode === MODE_UNCONTROLLED) { // Update selected index @@ -116,6 +121,7 @@ const Tabs = (props) => { } delete subProps.defaultFocus; delete subProps.defaultIndex; + delete subProps.focusTabOnClick; return {children}; }; diff --git a/src/components/__tests__/Tabs-test.js b/src/components/__tests__/Tabs-test.js index 4dedaec614..9fe0adc59f 100644 --- a/src/components/__tests__/Tabs-test.js +++ b/src/components/__tests__/Tabs-test.js @@ -594,6 +594,21 @@ describe('', () => { assertTabSelected(1); }); + test('should not focus tabs if focusTabOnClick is false', () => { + render(createTabs({ focusTabOnClick: false })); + const firstTab = screen.getByTestId('tab1'); + const secondTab = screen.getByTestId('tab2'); + + expect(firstTab).not.toHaveFocus(); + expect(secondTab).not.toHaveFocus(); + assertTabSelected(1); + + userEvent.click(secondTab); + expect(firstTab).not.toHaveFocus(); + expect(secondTab).not.toHaveFocus(); + assertTabSelected(2); + }); + test('should not change tabs when arrow up/down is pressed and disableUpDownKeys is passed', () => { render( createTabs({ From 4c63bcb057f82de498bbb3325556f6d26064aa8e Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Thu, 31 Mar 2022 17:18:16 +0000 Subject: [PATCH 017/913] fix: Do not always refocus tab if rerender happens --- src/components/Tab.js | 17 ++++++-------- src/components/__tests__/Tabs-test.js | 34 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/src/components/Tab.js b/src/components/Tab.js index 8c0c5dc670..5f8ad0c442 100644 --- a/src/components/Tab.js +++ b/src/components/Tab.js @@ -37,21 +37,12 @@ const propTypes = { const Tab = (props) => { let nodeRef = useRef(); - const checkFocus = () => { - const { selected, focus } = props; - if (selected && focus) { - nodeRef.current.focus(); - } - }; - useEffect(() => { - checkFocus(); - }); const { children, className, disabled, disabledClassName, - focus, // unused + focus, id, panelId, selected, @@ -61,6 +52,12 @@ const Tab = (props) => { ...attributes } = props; + useEffect(() => { + if (selected && focus) { + nodeRef.current.focus(); + } + }, [selected, focus]); + return (
    • ', () => { assertTabSelected(2); }); + test('should not focus tab again on rerender', () => { + const { rerender } = render( + <> + + {createTabs()} + , + ); + const firstTab = screen.getByTestId('tab1'); + const inputField = screen.getByTestId('input1'); + + expect(firstTab).not.toHaveFocus(); + expect(inputField).not.toHaveFocus(); + + userEvent.click(firstTab); + + expect(firstTab).toHaveFocus(); + expect(inputField).not.toHaveFocus(); + + userEvent.click(inputField); + + expect(firstTab).not.toHaveFocus(); + expect(inputField).toHaveFocus(); + + rerender( + <> + + {createTabs()} + , + ); + + expect(firstTab).not.toHaveFocus(); + expect(inputField).toHaveFocus(); + }); + test('should not change tabs when arrow up/down is pressed and disableUpDownKeys is passed', () => { render( createTabs({ From d14708f8a675442bcbf5b371c3d640dd85538c11 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 1 Apr 2022 15:55:34 +0000 Subject: [PATCH 018/913] chore(deps): update dependency webpack to v5.71.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 441948aa04..9f924b08d0 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "rollup-plugin-node-resolve": "5.2.0", "rollup-plugin-replace": "2.2.0", "rollup-plugin-terser": "7.0.2", - "webpack": "5.70.0", + "webpack": "5.71.0", "webpack-cli": "4.9.2", "webpack-dev-server": "4.7.4" }, diff --git a/yarn.lock b/yarn.lock index 2f0e9121ef..4891ce26ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6888,10 +6888,10 @@ webpack-sources@^3.2.3: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@5.70.0: - version "5.70.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.70.0.tgz#3461e6287a72b5e6e2f4872700bc8de0d7500e6d" - integrity sha512-ZMWWy8CeuTTjCxbeaQI21xSswseF2oNOwc70QSKNePvmxE7XW36i7vpBMYZFAUHPwQiEbNGCEYIOOlyRbdGmxw== +webpack@5.71.0: + version "5.71.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.71.0.tgz#b01fcf379570b8c5ee06ca06c829ca168c951884" + integrity sha512-g4dFT7CFG8LY0iU5G8nBL6VlkT21Z7dcYDpJAEJV5Q1WLb9UwnFbrem1k7K52ILqEmomN7pnzWFxxE6SlDY56A== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^0.0.51" From 2ecc4484ae05f8237974f1f0b5073922c1a4755e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 2 Apr 2022 17:44:38 +0200 Subject: [PATCH 019/913] chore(deps): update dependency @testing-library/user-event to v14 (#454) Co-authored-by: Renovate Bot Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com> --- .babelrc.js | 7 +- .vscode/launch.json | 14 + package.json | 2 +- src/components/UncontrolledTabs.js | 21 +- src/components/__tests__/Tabs-errors-test.js | 175 ++++++++++++ src/components/__tests__/Tabs-test.js | 251 +++++------------- .../__tests__/__snapshots__/Tabs-test.js.snap | 19 -- yarn.lock | 10 +- 8 files changed, 277 insertions(+), 222 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 src/components/__tests__/Tabs-errors-test.js diff --git a/.babelrc.js b/.babelrc.js index 2bc3fa220b..68561cd589 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -2,10 +2,13 @@ const target = process.env.BABEL_TARGET; const output = process.env.BABEL_OUTPUT; +const env = process.env.NODE_ENV; const modules = output == null ? false : output; +const targets = env === 'test' ? { node: 'current' } : undefined; + const options = { - presets: [['@babel/env', { loose: true, modules }], '@babel/react'], + presets: [['@babel/env', { loose: true, modules, targets }], '@babel/react'], plugins: [], }; @@ -14,7 +17,7 @@ if (target === 'examples') { 'transform-react-remove-prop-types', { removeImport: true }, ]); -} else { +} else if (env !== 'test') { options.plugins.push(['transform-react-remove-prop-types', { mode: 'wrap' }]); } diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..6917d94dd8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Process", + "type": "node", + "request": "attach", + "port": 9229 + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 9f924b08d0..113852be2b 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@testing-library/dom": "8.12.0", "@testing-library/jest-dom": "5.16.3", "@testing-library/react": "13.0.0", - "@testing-library/user-event": "13.5.0", + "@testing-library/user-event": "14.0.2", "babel-jest": "27.5.1", "babel-loader": "8.2.4", "babel-plugin-transform-react-remove-prop-types": "0.4.24", diff --git a/src/components/UncontrolledTabs.js b/src/components/UncontrolledTabs.js index 8000366c3b..318fd02873 100644 --- a/src/components/UncontrolledTabs.js +++ b/src/components/UncontrolledTabs.js @@ -266,15 +266,24 @@ const UncontrolledTabs = (props) => { let preventDefault = false; let useSelectedIndex = false; - if (e.keyCode === 32 /* space */ || e.keyCode === 13 /* enter */) { + if ( + e.code === 'Space' || + e.keyCode === 32 /* space */ || + e.code === 'Enter' || + e.keyCode === 13 /* enter */ + ) { preventDefault = true; useSelectedIndex = false; handleClick(e); } + // keyCode is deprecated and only used here for IE + if ( + e.code === 'ArrowLeft' || e.keyCode === 37 /* arrow left */ || - (!disableUpDownKeys && e.keyCode === 38) /* arrow up */ + (!disableUpDownKeys && + (e.keyCode === 38 || e.code === 'ArrowUp')) /* arrow up */ ) { // Select next tab to the left, validate if up arrow is not disabled if (direction === 'rtl') { @@ -285,8 +294,10 @@ const UncontrolledTabs = (props) => { preventDefault = true; useSelectedIndex = true; } else if ( + e.code === 'ArrowRight' || e.keyCode === 39 /* arrow right */ || - (!disableUpDownKeys && e.keyCode === 40) /* arrow down */ + (!disableUpDownKeys && + (e.keyCode === 40 || e.code === 'ArrowDown')) /* arrow down */ ) { // Select next tab to the right, validate if down arrow is not disabled if (direction === 'rtl') { @@ -296,12 +307,12 @@ const UncontrolledTabs = (props) => { } preventDefault = true; useSelectedIndex = true; - } else if (e.keyCode === 35) { + } else if (e.keyCode === 35 || e.code === 'End') { // Select last tab (End key) index = getLastTab(); preventDefault = true; useSelectedIndex = true; - } else if (e.keyCode === 36) { + } else if (e.keyCode === 36 || e.code === 'Home') { // Select first tab (Home key) index = getFirstTab(); preventDefault = true; diff --git a/src/components/__tests__/Tabs-errors-test.js b/src/components/__tests__/Tabs-errors-test.js new file mode 100644 index 0000000000..ddc0f37032 --- /dev/null +++ b/src/components/__tests__/Tabs-errors-test.js @@ -0,0 +1,175 @@ +import React from 'react'; +import { render } from '@testing-library/react'; +import '@testing-library/jest-dom'; +import Tab from '../Tab'; +import TabList from '../TabList'; +import TabPanel from '../TabPanel'; +import Tabs from '../Tabs'; +import { reset as resetIdCounter } from '../../helpers/uuid'; + +describe('', () => { + let consoleErrorMock; + + function assertPropTypeWarning(message, nth = 1) { + expect(consoleErrorMock).toHaveBeenNthCalledWith( + nth, + expect.anything(), + expect.anything(), + expect.stringMatching(message), + expect.anything(), + ); + } + + beforeEach(() => { + resetIdCounter(); + consoleErrorMock = jest.spyOn(console, 'error').mockImplementation(); + }); + + afterEach(() => { + consoleErrorMock.mockRestore(); + }); + + describe('errors', () => { + test('should result with warning when tabs/panels are imbalanced and it should ignore non tab children', () => { + render( + + + Foo +
      +
      +
      + + Hello Foo + Hello Bar +
      , + ); + + assertPropTypeWarning( + "There should be an equal number of 'Tab' and 'TabPanel' in `Tabs`. Received 1 'Tab' and 2 'TabPanel'.", + 1, + ); + assertPropTypeWarning( + "There should be an equal number of 'Tab' and 'TabPanel' in `UncontrolledTabs`. Received 1 'Tab' and 2 'TabPanel'.", + 2, + ); + }); + + test('should result with warning when multiple tablist components exist', () => { + render( + + + Foo + + + Foo + + + + , + ); + + assertPropTypeWarning( + "Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.", + ); + }); + + test('should result with warning when tab outside of tablist', () => { + render( + + + Foo + + Foo + + + , + ); + + assertPropTypeWarning( + "Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.", + ); + }); + + test('should result with warning when defaultIndex and selectedIndex set', () => { + render( + {}}> + + Foo + + Foo + , + ); + + assertPropTypeWarning( + 'The prop `selectedIndex` cannot be used together with `defaultIndex` in `Tabs`.\nEither remove `selectedIndex` to let `Tabs` handle the selected tab internally or remove `defaultIndex` to handle it yourself.', + ); + }); + + test('should throw when mode of component changes', () => { + const onSelect = () => {}; + const { rerender } = render( + + + Foo + Foo2 + + Foo + Foo2 + , + ); + + const consoleLogMock = jest.spyOn(console, 'log').mockImplementation(); + try { + rerender( + + + Foo + Foo2 + + Foo + Foo2 + , + ); + } catch (e) { + expect(e.message).toContain( + 'Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.', + ); + } finally { + consoleLogMock.mockRestore(); + } + }); + + test('should result with warning when tabs/panels are imbalanced', () => { + render( + + + Foo + + , + ); + + assertPropTypeWarning( + "There should be an equal number of 'Tab' and 'TabPanel' in `Tabs`. Received 1 'Tab' and 0 'TabPanel'.", + 1, + ); + assertPropTypeWarning( + "There should be an equal number of 'Tab' and 'TabPanel' in `UncontrolledTabs`. Received 1 'Tab' and 0 'TabPanel'.", + 2, + ); + }); + + test('should result with warning when onSelect missing when selectedIndex set', () => { + render( + + + Foo + + Foo + , + ); + + assertPropTypeWarning( + 'The prop `onSelect` is marked as required in `Tabs`, but its value is `undefined` or `null`.\n`onSelect` is required when `selectedIndex` is also set. Not doing so will make the tabs not do anything, as `selectedIndex` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace `selectedIndex` with `defaultIndex`.', + ); + }); + }); +}); diff --git a/src/components/__tests__/Tabs-test.js b/src/components/__tests__/Tabs-test.js index f0814a5dcd..2077832498 100644 --- a/src/components/__tests__/Tabs-test.js +++ b/src/components/__tests__/Tabs-test.js @@ -1,4 +1,3 @@ -import { format } from 'util'; import React from 'react'; import { render, screen, within } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; @@ -50,19 +49,6 @@ function assertTabSelected(tabNo, node = screen) { describe('', () => { beforeEach(() => resetIdCounter()); - beforeAll(() => { - // eslint-disable-next-line no-console - console.error = (error, ...args) => { - if (args.length > 0 && typeof error === 'string') { - if (error.endsWith('%s%s')) { - throw new Error(format(error.slice(0, -2), ...args.slice(0, -1))); - } - throw new Error(format(error, ...args)); - } - throw new Error(error); - }; - }); - describe('props', () => { test('should have sane defaults', () => { expectToMatchSnapshot(createTabs()); @@ -76,7 +62,7 @@ describe('', () => { expectToMatchSnapshot(createTabs({ defaultIndex: -1 })); }); - test('should call onSelect when selection changes', () => { + test('should call onSelect when selection changes', async () => { const called = { index: -1, last: -1 }; render( createTabs({ @@ -87,7 +73,7 @@ describe('', () => { }), ); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); expect(called.index).toBe(1); expect(called.last).toBe(0); @@ -124,97 +110,97 @@ describe('', () => { describe('interaction', () => { describe('mouse', () => { - test('should update selectedIndex when clicked', () => { + test('should update selectedIndex when clicked', async () => { render(createTabs()); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); assertTabSelected(2); }); - test('should update selectedIndex when tab child is clicked', () => { + test('should update selectedIndex when tab child is clicked', async () => { render(createTabs()); - userEvent.click(screen.getByTestId('tab3')); + await userEvent.click(screen.getByTestId('tab3')); assertTabSelected(3); }); - test('should not change selectedIndex when clicking a disabled tab', () => { + test('should not change selectedIndex when clicking a disabled tab', async () => { render(createTabs({ defaultIndex: 0 })); - userEvent.click(screen.getByTestId('tab4')); + await userEvent.click(screen.getByTestId('tab4')); assertTabSelected(1); }); }); describe('keyboard', () => { - test('should update selectedIndex when arrow right key pressed', () => { + test('should update selectedIndex when arrow right key pressed', async () => { render(createTabs()); const element = screen.getByTestId('tab1'); - userEvent.click(element); - userEvent.type(element, '{arrowright}'); + await userEvent.click(element); + await userEvent.type(element, '{ArrowRight}'); assertTabSelected(2); }); - test('should overflow when arrow right key pressed and no right tab available', () => { + test('should overflow when arrow right key pressed and no right tab available', async () => { render(createTabs()); const element = screen.getByTestId('tab3'); - userEvent.click(element); - userEvent.type(element, '{arrowright}'); + await userEvent.click(element); + await userEvent.type(element, '{ArrowRight}'); assertTabSelected(1); }); - test('should overflow when arrow left key pressed and no left tab available', () => { + test('should overflow when arrow left key pressed and no left tab available', async () => { render(createTabs()); const element = screen.getByTestId('tab1'); - userEvent.click(element); - userEvent.type(element, '{arrowleft}'); + await userEvent.click(element); + await userEvent.keyboard('{ArrowLeft}'); assertTabSelected(3); }); - test('should move to first tab on home key', () => { + test('should move to first tab on home key', async () => { render(createTabs()); const element = screen.getByTestId('tab3'); - userEvent.click(element); - userEvent.type(element, '{home}'); + await userEvent.click(element); + await userEvent.type(element, '{Home}'); assertTabSelected(1); }); - test('should move to first tab on end key', () => { + test('should move to first tab on end key', async () => { render(createTabs()); const element = screen.getByTestId('tab1'); - userEvent.click(element); - userEvent.type(element, '{end}'); + await userEvent.click(element); + await userEvent.type(element, '{End}'); assertTabSelected(3); }); - test('should update selectedIndex when arrow left key pressed (RTL)', () => { + test('should update selectedIndex when arrow left key pressed (RTL)', async () => { render(createTabs({ direction: 'rtl' })); const element = screen.getByTestId('tab1'); - userEvent.click(element); - userEvent.type(element, '{arrowleft}'); + await userEvent.click(element); + await userEvent.type(element, '{ArrowLeft}'); assertTabSelected(2); }); - test('should update selectedIndex when arrow right key pressed (RTL)', () => { + test('should update selectedIndex when arrow right key pressed (RTL)', async () => { render(createTabs({ direction: 'rtl' })); const element = screen.getByTestId('tab2'); - userEvent.click(element); - userEvent.type(element, '{arrowright}'); + await userEvent.click(element); + await userEvent.type(element, '{ArrowRight}'); assertTabSelected(1); }); - test.skip('should not change selectedIndex when arrow left key pressed on a disabled tab', () => { + test('should not change selectedIndex when arrow left key pressed on a disabled tab', async () => { render(createTabs()); const element = screen.getByTestId('tab4'); - userEvent.click(element); - userEvent.type(element, '{arrowleft}'); + await userEvent.click(element); + await userEvent.type(element, '{ArrowLeft}'); assertTabSelected(1); }); @@ -222,7 +208,7 @@ describe('', () => { }); describe('performance', () => { - test('should only render the selected tab panel', () => { + test('should only render the selected tab panel', async () => { render(createTabs()); const tabPanels = screen.getAllByRole('tabpanel'); @@ -231,14 +217,14 @@ describe('', () => { expect(tabPanels[2]).toHaveTextContent(''); expect(tabPanels[3]).toHaveTextContent(''); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); expect(tabPanels[0]).toHaveTextContent(''); expect(tabPanels[1]).toHaveTextContent('Hello Tab2'); expect(tabPanels[2]).toHaveTextContent(''); expect(tabPanels[3]).toHaveTextContent(''); - userEvent.click(screen.getByTestId('tab3')); + await userEvent.click(screen.getByTestId('tab3')); expect(tabPanels[0]).toHaveTextContent(''); expect(tabPanels[1]).toHaveTextContent(''); @@ -252,121 +238,6 @@ describe('', () => { }); describe('validation', () => { - test('should result with warning when tabs/panels are imbalanced', () => { - expect(() => - render( - - - Foo - - , - ), - ).toThrowErrorMatchingSnapshot(); - }); - - test('should result with warning when tab outside of tablist', () => { - expect(() => - render( - - - Foo - - Foo - - - , - ), - ).toThrowErrorMatchingSnapshot(); - }); - - test('should result with warning when multiple tablist components exist', () => { - expect(() => - render( - - - Foo - - - Foo - - - - , - ), - ).toThrowErrorMatchingSnapshot(); - }); - - test('should result with warning when onSelect missing when selectedIndex set', () => { - expect(() => - render( - - - Foo - - Foo - , - ), - ).toThrowErrorMatchingSnapshot(); - }); - - test('should throw when mode of component changes', () => { - const { rerender } = render( - {}}> - - Foo - Foo2 - - Foo - Foo2 - , - ); - try { - rerender( - {}}> - - Foo - Foo2 - - Foo - Foo2 - , - ); - } catch (e) { - expect(e.message).toContain( - 'Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.', - ); - } - }); - - test('should result with warning when defaultIndex and selectedIndex set', () => { - expect(() => - render( - - - Foo - - Foo - , - ), - ).toThrowErrorMatchingSnapshot(); - }); - - test('should result with warning when tabs/panels are imbalanced and it should ignore non tab children', () => { - expect(() => - render( - - - Foo -
      +
      -
      - - Hello Foo - Hello Bar -
      , - ), - ).toThrowErrorMatchingSnapshot(); - }); - test('should allow random order for elements', () => { expectToMatchSnapshot( @@ -417,7 +288,7 @@ describe('', () => { ); }); - test('should support nested tabs', () => { + test('should support nested tabs', async () => { render( @@ -439,7 +310,9 @@ describe('', () => { , ); - userEvent.click(within(screen.getByTestId('second')).getByTestId('tab2')); + await userEvent.click( + within(screen.getByTestId('second')).getByTestId('tab2'), + ); assertTabSelected(1); assertTabSelected(2, within(screen.getByTestId('second'))); @@ -475,19 +348,19 @@ describe('', () => { expectToMatchSnapshot(); }); - test('should cancel if event handler returns false', () => { + test('should cancel if event handler returns false', async () => { render(createTabs({ onSelect: () => false })); assertTabSelected(1); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); assertTabSelected(1); - userEvent.click(screen.getByTestId('tab3')); + await userEvent.click(screen.getByTestId('tab3')); assertTabSelected(1); }); - test('should trigger onSelect handler when clicking', () => { + test('should trigger onSelect handler when clicking', async () => { let wasClicked = false; render( createTabs({ @@ -499,12 +372,12 @@ describe('', () => { assertTabSelected(1); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); assertTabSelected(2); expect(wasClicked).toBe(true); }); - test('should trigger onSelect handler when clicking on open tab', () => { + test('should trigger onSelect handler when clicking on open tab', async () => { let wasClicked = false; render( createTabs({ @@ -516,12 +389,12 @@ describe('', () => { assertTabSelected(1); - userEvent.click(screen.getByTestId('tab1')); + await userEvent.click(screen.getByTestId('tab1')); assertTabSelected(1); expect(wasClicked).toBe(true); }); - test('should switch tabs if setState is called within onSelect', () => { + test('should switch tabs if setState is called within onSelect', async () => { class Wrap extends React.Component { state = {}; @@ -538,10 +411,10 @@ describe('', () => { render(); - userEvent.click(screen.getByTestId('tab2')); + await userEvent.click(screen.getByTestId('tab2')); assertTabSelected(2); - userEvent.click(screen.getByTestId('tab3')); + await userEvent.click(screen.getByTestId('tab3')); assertTabSelected(3); }); @@ -576,25 +449,25 @@ describe('', () => { ); }); - test('should change tabs when arrow up/down is pressed', () => { + test('should change tabs when arrow up/down is pressed', async () => { render(createTabs()); const firstTab = screen.getByTestId('tab1'); const secondTab = screen.getByTestId('tab2'); - userEvent.tab(); + await userEvent.tab(); expect(firstTab).toHaveFocus(); assertTabSelected(1); - userEvent.type(firstTab, '{arrowdown}'); + await userEvent.type(firstTab, '{ArrowDown}'); expect(secondTab).toHaveFocus(); assertTabSelected(2); - userEvent.type(secondTab, '{arrowup}'); + await userEvent.type(secondTab, '{ArrowUp}'); expect(firstTab).toHaveFocus(); assertTabSelected(1); }); - test('should not focus tabs if focusTabOnClick is false', () => { + test('should not focus tabs if focusTabOnClick is false', async () => { render(createTabs({ focusTabOnClick: false })); const firstTab = screen.getByTestId('tab1'); const secondTab = screen.getByTestId('tab2'); @@ -603,13 +476,13 @@ describe('', () => { expect(secondTab).not.toHaveFocus(); assertTabSelected(1); - userEvent.click(secondTab); + await userEvent.click(secondTab); expect(firstTab).not.toHaveFocus(); expect(secondTab).not.toHaveFocus(); assertTabSelected(2); }); - test('should not focus tab again on rerender', () => { + test('should not focus tab again on rerender', async () => { const { rerender } = render( <> @@ -622,12 +495,12 @@ describe('', () => { expect(firstTab).not.toHaveFocus(); expect(inputField).not.toHaveFocus(); - userEvent.click(firstTab); + await userEvent.click(firstTab); expect(firstTab).toHaveFocus(); expect(inputField).not.toHaveFocus(); - userEvent.click(inputField); + await userEvent.click(inputField); expect(firstTab).not.toHaveFocus(); expect(inputField).toHaveFocus(); @@ -643,7 +516,7 @@ describe('', () => { expect(inputField).toHaveFocus(); }); - test('should not change tabs when arrow up/down is pressed and disableUpDownKeys is passed', () => { + test('should not change tabs when arrow up/down is pressed and disableUpDownKeys is passed', async () => { render( createTabs({ disableUpDownKeys: true, @@ -651,15 +524,15 @@ describe('', () => { ); const firstTab = screen.getByTestId('tab1'); - userEvent.tab(); + await userEvent.tab(); expect(firstTab).toHaveFocus(); assertTabSelected(1); - userEvent.type(firstTab, '{arrowdown}'); + await userEvent.type(firstTab, '{ArrowDown}'); expect(firstTab).toHaveFocus(); assertTabSelected(1); - userEvent.type(firstTab, '{arrowup}'); + await userEvent.type(firstTab, '{ArrowUp}'); expect(firstTab).toHaveFocus(); assertTabSelected(1); }); diff --git a/src/components/__tests__/__snapshots__/Tabs-test.js.snap b/src/components/__tests__/__snapshots__/Tabs-test.js.snap index acdf178673..e573a03b78 100644 --- a/src/components/__tests__/__snapshots__/Tabs-test.js.snap +++ b/src/components/__tests__/__snapshots__/Tabs-test.js.snap @@ -994,22 +994,3 @@ exports[` validation should not throw a warning when wrong element is fo />
`; - -exports[` validation should result with warning when defaultIndex and selectedIndex set 1`] = ` -"Warning: Failed prop type: The prop \`selectedIndex\` cannot be used together with \`defaultIndex\` in \`Tabs\`. -Either remove \`selectedIndex\` to let \`Tabs\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself." -`; - -exports[` validation should result with warning when multiple tablist components exist 1`] = `"Warning: Failed prop type: Found multiple 'TabList' components inside 'Tabs'. Only one is allowed."`; - -exports[` validation should result with warning when onSelect missing when selectedIndex set 1`] = ` -"Warning: Failed prop type: The prop \`onSelect\` is marked as required in \`Tabs\`, but its value is \`undefined\` or \`null\`. -\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself. -If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`." -`; - -exports[` validation should result with warning when tab outside of tablist 1`] = `"Warning: Failed prop type: Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component."`; - -exports[` validation should result with warning when tabs/panels are imbalanced 1`] = `"Warning: Failed prop type: There should be an equal number of 'Tab' and 'TabPanel' in \`Tabs\`. Received 1 'Tab' and 0 'TabPanel'."`; - -exports[` validation should result with warning when tabs/panels are imbalanced and it should ignore non tab children 1`] = `"Warning: Failed prop type: There should be an equal number of 'Tab' and 'TabPanel' in \`Tabs\`. Received 1 'Tab' and 2 'TabPanel'."`; diff --git a/yarn.lock b/yarn.lock index 4891ce26ba..d7a13e38dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1322,12 +1322,10 @@ "@testing-library/dom" "^8.5.0" "@types/react-dom" "*" -"@testing-library/user-event@13.5.0": - version "13.5.0" - resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-13.5.0.tgz#69d77007f1e124d55314a2b73fd204b333b13295" - integrity sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg== - dependencies: - "@babel/runtime" "^7.12.5" +"@testing-library/user-event@14.0.2": + version "14.0.2" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.0.2.tgz#dccf8aa4fcc1ccee2872a5c40b5c9b481cc475cb" + integrity sha512-EyFixW34OaSoYN1x+L0Wi7RQPfj/plZKjWgGf0g+tX2cen7qF/4E3VrDOe0Ykym2UHW5XwUz0ZjHJRwSBFdKPw== "@tootallnate/once@1": version "1.1.2" From 824a6f07de2f690f2f5cf540a2a51096c4736626 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 2 Apr 2022 15:45:17 +0000 Subject: [PATCH 020/913] chore(deps): update dependency @testing-library/user-event to v14.0.4 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 113852be2b..8af75fe00e 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@testing-library/dom": "8.12.0", "@testing-library/jest-dom": "5.16.3", "@testing-library/react": "13.0.0", - "@testing-library/user-event": "14.0.2", + "@testing-library/user-event": "14.0.4", "babel-jest": "27.5.1", "babel-loader": "8.2.4", "babel-plugin-transform-react-remove-prop-types": "0.4.24", diff --git a/yarn.lock b/yarn.lock index d7a13e38dd..cb30f99834 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1322,10 +1322,10 @@ "@testing-library/dom" "^8.5.0" "@types/react-dom" "*" -"@testing-library/user-event@14.0.2": - version "14.0.2" - resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.0.2.tgz#dccf8aa4fcc1ccee2872a5c40b5c9b481cc475cb" - integrity sha512-EyFixW34OaSoYN1x+L0Wi7RQPfj/plZKjWgGf0g+tX2cen7qF/4E3VrDOe0Ykym2UHW5XwUz0ZjHJRwSBFdKPw== +"@testing-library/user-event@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.0.4.tgz#5b430a9c27f25078bff4471661b755115d0db9d4" + integrity sha512-VBZe5lcUsmrQyOwIFvqOxLBoaTw1/Qy4Ek+VgmFYs719bs2SxUp42vbsb7ATlQDkHdj4OIQlucfpwxe5WoG1jA== "@tootallnate/once@1": version "1.1.2" From ca34e7506fe37bd49345e9cedcb238e7d219e1da Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Sat, 2 Apr 2022 21:18:38 +0000 Subject: [PATCH 021/913] chore: Fix example to not jump on removing tab --- examples/src/components/examples/Avengers.js | 39 +++++++++++--------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/examples/src/components/examples/Avengers.js b/examples/src/components/examples/Avengers.js index a363bacbc3..ccb53aa3e3 100644 --- a/examples/src/components/examples/Avengers.js +++ b/examples/src/components/examples/Avengers.js @@ -14,17 +14,17 @@ const code = `class Component extends React.Component { constructor(props) { super(props); - this.characters = { - "Ant-Man": { img: "${antMan}", color: "IndianRed", text: "white", desc: "\\"I do some dumb things, and the people I love the most...they pay the price.\\"" }, - "Black Widow": { img: "${blackWidow}", color: "SlateGrey", text: "white", desc: "\\"After everything that happened with S.H.I.E.L.D., during my little hiatus, I went back to Russia and tried to find my parents. Two little graves linked by a chain fence. I pulled some weeds and left some flowers. We have what we have when we have it.\\"" }, - "Captain America": { img: "${captain}", color: "RoyalBlue", text: "white", desc: "\\"I'm not looking for forgiveness. And I'm way past asking for permission. Earth just lost their best defender. So we're here to fight. If you wanna stay in our way... we'll fight you, too.\\"" }, - "Director Fury": { img: "${fury}", color: "Sienna", text: "white", desc: "\\"Back in the day, I had eyes everywhere, ears everywhere else. Here we all are, back on earth, with nothing but our wit, and our will to save the world. So stand. Outwit the platinum bastard.\\"" }, - Hawkeye: { img: "${hawkeye}", color: "MediumOrchid", text: "white", desc: "\\"Just can't seem to miss.\\"" }, - "Iron Man": { img: "${ironman}", color: "LightCoral", text: "black", desc: "\\"My armor was never a distraction or a hobby. It was a cocoon. And now I'm a changed man. You can take away my house, all my tricks and toys. But one thing you can't take away... I am Iron Man.\\"" }, - Loki: { img: "${loki}", color: "LightGreen", text: "black", desc: "\\"I, Loki, Prince of Asgard, Odinson, the rightful King of Jotunheim, God of Mischief, do hereby pledge to you, my undying fidelity.\\"" }, - Thor: { img: "${thor}", color: "SkyBlue", text: "black", desc: "\\"You know I’m 1500 years old. I’ve killed twice as many enemies as that. And every one of them would have rather killed me than not succeeded. I’m only alive because fate wants me alive. Thanos is just the latest of a long line of bastards, and he’ll be the latest to feel my vengeance. Fate wills it so.\\"" }, - "War Machine": { img: "${warMachine}", color: "LightGrey", text: "black", desc: "\\"138 combat missions. That's how many I've flown, Tony. Every one of them could've been my last, but I flew 'em. Because the fight needed to be fought.\\"" } - }; + this.characters = [ + { name: "Ant-Man", img: "${antMan}", color: "IndianRed", text: "white", desc: "\\"I do some dumb things, and the people I love the most...they pay the price.\\"" }, + { name: "Black Widow", img: "${blackWidow}", color: "SlateGrey", text: "white", desc: "\\"After everything that happened with S.H.I.E.L.D., during my little hiatus, I went back to Russia and tried to find my parents. Two little graves linked by a chain fence. I pulled some weeds and left some flowers. We have what we have when we have it.\\"" }, + { name: "Captain America", img: "${captain}", color: "RoyalBlue", text: "white", desc: "\\"I'm not looking for forgiveness. And I'm way past asking for permission. Earth just lost their best defender. So we're here to fight. If you wanna stay in our way... we'll fight you, too.\\"" }, + { name: "Director Fury", img: "${fury}", color: "Sienna", text: "white", desc: "\\"Back in the day, I had eyes everywhere, ears everywhere else. Here we all are, back on earth, with nothing but our wit, and our will to save the world. So stand. Outwit the platinum bastard.\\"" }, + { name: "Hawkeye", img: "${hawkeye}", color: "MediumOrchid", text: "white", desc: "\\"Just can't seem to miss.\\"" }, + { name: "Iron Man", img: "${ironman}", color: "LightCoral", text: "black", desc: "\\"My armor was never a distraction or a hobby. It was a cocoon. And now I'm a changed man. You can take away my house, all my tricks and toys. But one thing you can't take away... I am Iron Man.\\"" }, + { name: "Loki", img: "${loki}", color: "LightGreen", text: "black", desc: "\\"I, Loki, Prince of Asgard, Odinson, the rightful King of Jotunheim, God of Mischief, do hereby pledge to you, my undying fidelity.\\"" }, + { name: "Thor", img: "${thor}", color: "SkyBlue", text: "black", desc: "\\"You know I’m 1500 years old. I’ve killed twice as many enemies as that. And every one of them would have rather killed me than not succeeded. I’m only alive because fate wants me alive. Thanos is just the latest of a long line of bastards, and he’ll be the latest to feel my vengeance. Fate wills it so.\\"" }, + { name: "War Machine", img: "${warMachine}", color: "LightGrey", text: "black", desc: "\\"138 combat missions. That's how many I've flown, Tony. Every one of them could've been my last, but I flew 'em. Because the fight needed to be fought.\\"" } + ]; this.state = { "Ant-Man": true, @@ -35,16 +35,21 @@ const code = `class Component extends React.Component { Hawkeye: true, "Iron Man": true, Thor: true, - "War Machine": true + "War Machine": true, + selectedIndex: 0 }; this.handleCheckClicked = this.handleCheckClicked.bind(this); } handleCheckClicked(e) { - this.setState({ + const state = { [e.target.name]: e.target.checked - }); + }; + if (this.characters.findIndex(({name}) => name === e.target.name) <= this.state.selectedIndex) { + state.selectedIndex = this.state.selectedIndex + (e.target.checked ? 1 : -1); + } + this.setState(state); } render() { @@ -52,7 +57,7 @@ const code = `class Component extends React.Component { const tabs = []; const tabPanels = []; - Object.keys(this.characters).forEach(name => { + this.characters.forEach(({ name, img, color: backgroundColor, text: color, desc }) => { links.push(