From 51a2440a416abe0f984125e2b4b565fad81df9a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:01:57 +0100 Subject: [PATCH 01/10] Bump cross-spawn from 7.0.3 to 7.0.6 in /examples/nuxt (#2975) Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/nuxt/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nuxt/package-lock.json b/examples/nuxt/package-lock.json index c5c372de77..370812bf0c 100644 --- a/examples/nuxt/package-lock.json +++ b/examples/nuxt/package-lock.json @@ -3721,9 +3721,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", From 305efff4e0bdd69dca5e8c46aa5a377efac747d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:02:18 +0100 Subject: [PATCH 02/10] chore(deps): update dependency @types/jest to v29.5.14 (#2971) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 54a301985b..f7ccf867ae 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -102,7 +102,7 @@ "@testing-library/preact-hooks": "1.1.0", "@testing-library/user-event": "14.5.2", "@types/eslint__js": "8.42.3", - "@types/jest": "29.5.12", + "@types/jest": "29.5.14", "autoprefixer": "10.4.19", "cross-env": "7.0.3", "cssnano": "7.0.4", diff --git a/yarn.lock b/yarn.lock index 4ffe5ab25b..130186e75c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2266,10 +2266,10 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@29.5.12": - version "29.5.12" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.12.tgz#7f7dc6eb4cf246d2474ed78744b05d06ce025544" - integrity sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw== +"@types/jest@29.5.14": + version "29.5.14" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.14.tgz#2b910912fa1d6856cadcd0c1f95af7df1d6049e5" + integrity sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ== dependencies: expect "^29.0.0" pretty-format "^29.0.0" From 8fa60e96b203de662343fa387ee1aab96cbe0202 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:02:51 +0100 Subject: [PATCH 03/10] chore(deps): update dependency @size-limit/preset-big-lib to v11.1.6 (#2969) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 180 ++++++++++++++++++++++++++++++++------ 2 files changed, 155 insertions(+), 27 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index f7ccf867ae..be5a9b2a38 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -90,7 +90,7 @@ "@rollup/plugin-node-resolve": "15.2.3", "@rollup/plugin-replace": "5.0.7", "@rollup/plugin-terser": "0.4.4", - "@size-limit/preset-big-lib": "11.1.4", + "@size-limit/preset-big-lib": "11.1.6", "@storybook/addon-a11y": "^8.3.4", "@storybook/addon-essentials": "^8.3.4", "@storybook/manager-api": "^8.3.4", diff --git a/yarn.lock b/yarn.lock index 130186e75c..13919e4e6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1670,35 +1670,35 @@ dependencies: debug "^4.1.1" -"@size-limit/file@11.1.4": - version "11.1.4" - resolved "https://registry.yarnpkg.com/@size-limit/file/-/file-11.1.4.tgz#b5bba86918123783b730879362e78c8cb737d149" - integrity sha512-QxnGj9cxhCEuqMAV01gqonXIKcc+caZqFHZpV51oL2ZJNGSPP9Q/yyf+7HbVe00faOFd1dZZwMwzZmX7HQ9LbA== - -"@size-limit/preset-big-lib@11.1.4": - version "11.1.4" - resolved "https://registry.yarnpkg.com/@size-limit/preset-big-lib/-/preset-big-lib-11.1.4.tgz#6af8ff2d6d74080b7a13d4df922ab4a428d0f2d9" - integrity sha512-bejHzQXW+RkWNmCRsny/MmmjshQsU0/vVKSYnZKiu8J2zWIpxZ2pFT79ud+pCQoXeH11rI/YObItcaPf+URAng== - dependencies: - "@size-limit/file" "11.1.4" - "@size-limit/time" "11.1.4" - "@size-limit/webpack" "11.1.4" - size-limit "11.1.4" - -"@size-limit/time@11.1.4": - version "11.1.4" - resolved "https://registry.yarnpkg.com/@size-limit/time/-/time-11.1.4.tgz#636f635eede75d05fb084de5c56dbd589e57d994" - integrity sha512-TxEeDZrNWQ1uwFjQT0d4NHUG7MGGrjnKSn9CwuF+Wb4AeZWy1nb93HjPCfe8LbQedV7xRY6dV/oSiARYvReuYg== +"@size-limit/file@11.1.6": + version "11.1.6" + resolved "https://registry.yarnpkg.com/@size-limit/file/-/file-11.1.6.tgz#de1244aef06081a93bd594ddc28ef14080ca5b01" + integrity sha512-ojzzJMrTfcSECRnaTjGy0wNIolTCRdyqZTSWG9sG5XEoXG6PNgHXDDS6gf6YNxnqb+rWfCfVe93u6aKi3wEocQ== + +"@size-limit/preset-big-lib@11.1.6": + version "11.1.6" + resolved "https://registry.yarnpkg.com/@size-limit/preset-big-lib/-/preset-big-lib-11.1.6.tgz#0ba85e6d1f65c164319739619b5e23bb41c18b52" + integrity sha512-GE93qIW9C3+8MXOsYgV0QcLfKv6B+Q8u/Jjb5rLfetDHBKoZV7HmedM/bv0vrbdcZlT8elk5P18Jo6L6yeV/8Q== + dependencies: + "@size-limit/file" "11.1.6" + "@size-limit/time" "11.1.6" + "@size-limit/webpack" "11.1.6" + size-limit "11.1.6" + +"@size-limit/time@11.1.6": + version "11.1.6" + resolved "https://registry.yarnpkg.com/@size-limit/time/-/time-11.1.6.tgz#214e2a927993bcd42b15e9d2155124564b26443e" + integrity sha512-NIlJEPvUIxw87gHjriHpPhvd9fIC94S9wq7OW25K7Ctn14FZ2NlOTezPCfVViPmdlXjBYdi8vjsbc7kLCF1EpA== dependencies: estimo "^3.0.3" -"@size-limit/webpack@11.1.4": - version "11.1.4" - resolved "https://registry.yarnpkg.com/@size-limit/webpack/-/webpack-11.1.4.tgz#9eb65b921954608823daa366687b012b2af401f0" - integrity sha512-ikkvhPID8smxuBpO0VO2cgTutHcY3INPtVO4z9Qzb/ZdLV4zQ0MwtxWA9mZz92p+wLvTBKkMrewCdUYO2CIIaQ== +"@size-limit/webpack@11.1.6": + version "11.1.6" + resolved "https://registry.yarnpkg.com/@size-limit/webpack/-/webpack-11.1.6.tgz#a73f5b82a88d0896e45697863370e7a56e6cf2b9" + integrity sha512-PTZCgwJsgdzdEj2wPFuLm0cCge8N2WbswMcKWNwMJibxQxPAmiF+sZ2F6GYBS7G7K3Fb4ovCliuN+wnnRACPNg== dependencies: nanoid "^5.0.7" - webpack "^5.91.0" + webpack "^5.95.0" "@storybook/addon-a11y@^8.3.4": version "8.3.6" @@ -2156,6 +2156,14 @@ resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.6.0.tgz#eac397f28bf1d6ae0ae081363eca2f425bedf0d5" integrity sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA== +"@types/eslint-scope@^3.7.7": + version "3.7.7" + resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" + integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + "@types/eslint@*": version "8.56.10" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.10.tgz#eb2370a73bf04a901eeba8f22595c7ee0f7eb58d" @@ -2181,7 +2189,7 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== -"@types/estree@1.0.6": +"@types/estree@1.0.6", "@types/estree@^1.0.6": version "1.0.6" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50" integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw== @@ -2770,6 +2778,11 @@ acorn@^8.1.0, acorn@^8.11.0, acorn@^8.11.3, acorn@^8.12.0, acorn@^8.7.1, acorn@^ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== +acorn@^8.14.0: + version "8.14.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0" + integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA== + agent-base@6: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" @@ -3319,6 +3332,16 @@ browserslist@^4.0.0, browserslist@^4.21.10, browserslist@^4.21.4, browserslist@^ node-releases "^2.0.14" update-browserslist-db "^1.1.0" +browserslist@^4.24.0: + version "4.24.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.2.tgz#f5845bc91069dbd55ee89faf9822e1d885d16580" + integrity sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg== + dependencies: + caniuse-lite "^1.0.30001669" + electron-to-chromium "^1.5.41" + node-releases "^2.0.18" + update-browserslist-db "^1.1.1" + bs-logger@0.x: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" @@ -3420,6 +3443,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001599, caniuse-lite@^1.0.30001640: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== +caniuse-lite@^1.0.30001669: + version "1.0.30001680" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz#5380ede637a33b9f9f1fc6045ea99bd142f3da5e" + integrity sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA== + chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -3500,6 +3528,13 @@ cheerio@^1.0.0-rc.3: optionalDependencies: fsevents "~2.3.2" +chokidar@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.1.tgz#4a6dff66798fb0f72a94f616abbd7e1a19f31d41" + integrity sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA== + dependencies: + readdirp "^4.0.1" + chrome-trace-event@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz#05bffd7ff928465093314708c93bdfa9bd1f0f5b" @@ -4397,6 +4432,11 @@ electron-to-chromium@^1.4.820: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.830.tgz#a11899bc3343bc28f57a87fcf83060e0d28038d4" integrity sha512-TrPKKH20HeN0J1LHzsYLs2qwXrp8TF4nHdu4sq61ozGbzMpWhI7iIOPYPPkxeq1azMT9PZ8enPFcftbs/Npcjg== +electron-to-chromium@^1.5.41: + version "1.5.63" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz#69444d592fbbe628d129866c2355691ea93eda3e" + integrity sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA== + emittery@^0.13.1: version "0.13.1" resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" @@ -4759,6 +4799,11 @@ escalade@^3.1.1, escalade@^3.1.2: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== +escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -5286,6 +5331,11 @@ fd-slicer@~1.1.0: dependencies: pend "~1.2.0" +fdir@^6.4.2: + version "6.4.2" + resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.2.tgz#ddaa7ce1831b161bc3657bb99cb36e1622702689" + integrity sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ== + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -6950,6 +7000,11 @@ jiti@^1.20.0, jiti@^1.21.0: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.6.tgz#6c7f7398dd4b3142767f9a168af2f317a428d268" integrity sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w== +jiti@^2.0.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-2.4.0.tgz#393d595fb6031a11d11171b5e4fc0b989ba3e053" + integrity sha512-H5UpaUI+aHOqZXlYOaFP/8AzKsg+guWu+Pr3Y8i7+Y3zr1aXAvCvTAQ1RxSc6oVD8R8c7brgNtTVP91E7upH/g== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -7688,6 +7743,11 @@ node-releases@^2.0.14: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.17.tgz#d74bc4fec38d839eec5db2a3c9c963d4f33cb366" integrity sha512-Ww6ZlOiEQfPfXM45v17oabk77Z7mg5bOt7AjDyzy7RjK9OrLrLC8dyZQoAPEOtFX9SaNf1Tdvr5gRJWdTJj7GA== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -8109,6 +8169,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatc resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +picomatch@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab" + integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg== + pidtree@~0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" @@ -8951,6 +9016,11 @@ readable-stream@^3.0.6: string_decoder "^1.1.1" util-deprecate "^1.0.1" +readdirp@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.2.tgz#388fccb8b75665da3abffe2d8f8ed59fe74c230a" + integrity sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA== + readdirp@~3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" @@ -9578,6 +9648,19 @@ size-limit@11.1.4: nanospinner "^1.1.0" picocolors "^1.0.1" +size-limit@11.1.6: + version "11.1.6" + resolved "https://registry.yarnpkg.com/size-limit/-/size-limit-11.1.6.tgz#75cd54f9326d1b065ebcb6ca9ec27294e7ccdfb1" + integrity sha512-S5ux2IB8rU26xwVgMskmknGMFkieaIAqDLuwgKiypk6oa4lFsie8yFPrzRFV+yrLDY2GddjXuCaVk5PveVOHiQ== + dependencies: + bytes-iec "^3.1.1" + chokidar "^4.0.1" + jiti "^2.0.0" + lilconfig "^3.1.2" + nanospinner "^1.1.0" + picocolors "^1.1.0" + tinyglobby "^0.2.7" + slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -10288,6 +10371,14 @@ tiny-invariant@^1.3.1, tiny-invariant@^1.3.3: resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127" integrity sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg== +tinyglobby@^0.2.7: + version "0.2.10" + resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f" + integrity sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew== + dependencies: + fdir "^6.4.2" + picomatch "^4.0.2" + tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -10620,6 +10711,14 @@ update-browserslist-db@^1.1.0: escalade "^3.1.2" picocolors "^1.0.1" +update-browserslist-db@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" + integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== + dependencies: + escalade "^3.2.0" + picocolors "^1.1.0" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -10844,7 +10943,7 @@ webpack-virtual-modules@^0.6.1: resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz#057faa9065c8acf48f24cb57ac0e77739ab9a7e8" integrity sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ== -webpack@5.94.0, webpack@^5.91.0: +webpack@5.94.0: version "5.94.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.94.0.tgz#77a6089c716e7ab90c1c67574a28da518a20970f" integrity sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg== @@ -10873,6 +10972,35 @@ webpack@5.94.0, webpack@^5.91.0: watchpack "^2.4.1" webpack-sources "^3.2.3" +webpack@^5.95.0: + version "5.96.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.96.1.tgz#3676d1626d8312b6b10d0c18cc049fba7ac01f0c" + integrity sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA== + dependencies: + "@types/eslint-scope" "^3.7.7" + "@types/estree" "^1.0.6" + "@webassemblyjs/ast" "^1.12.1" + "@webassemblyjs/wasm-edit" "^1.12.1" + "@webassemblyjs/wasm-parser" "^1.12.1" + acorn "^8.14.0" + browserslist "^4.24.0" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.17.1" + es-module-lexer "^1.2.1" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.11" + json-parse-even-better-errors "^2.3.1" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.2.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.3.10" + watchpack "^2.4.1" + webpack-sources "^3.2.3" + websocket-driver@>=0.5.1, websocket-driver@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" From 1a127f72c935f9cdac97841b32684d07ad698de4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:05:19 +0100 Subject: [PATCH 04/10] chore(deps): update dependency @preact/preset-vite to v2.9.1 (#2966) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index be5a9b2a38..09624357b0 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -83,7 +83,7 @@ "devDependencies": { "@eslint/compat": "1.1.1", "@eslint/js": "9.7.0", - "@preact/preset-vite": "2.9.0", + "@preact/preset-vite": "2.9.1", "@rollup/plugin-commonjs": "26.0.1", "@rollup/plugin-eslint": "9.0.5", "@rollup/plugin-json": "6.1.0", diff --git a/yarn.lock b/yarn.lock index 13919e4e6b..cb45dd5a9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1324,10 +1324,10 @@ dependencies: playwright "1.48.2" -"@preact/preset-vite@2.9.0": - version "2.9.0" - resolved "https://registry.yarnpkg.com/@preact/preset-vite/-/preset-vite-2.9.0.tgz#14bfebee1b1bf1c04726dae377434c29706a75d0" - integrity sha512-B9yVT7AkR6owrt84K3pLNyaKSvlioKdw65VqE/zMiR6HMovPekpsrwBNs5DJhBFEd5cvLMtCjHNHZ9P7Oblveg== +"@preact/preset-vite@2.9.1": + version "2.9.1" + resolved "https://registry.yarnpkg.com/@preact/preset-vite/-/preset-vite-2.9.1.tgz#489c4c4f6ca9122a25b9cb577563e8fd09bd9865" + integrity sha512-JecWzrOx7ogFhklSMhY+aH/24pajL0Vx+beEgau3WDMUUAo32cpUo/UqerPhLOyhCKXlxK9a3cRoa8g68ZAp5g== dependencies: "@babel/code-frame" "^7.22.13" "@babel/plugin-transform-react-jsx" "^7.22.15" @@ -1339,7 +1339,6 @@ kolorist "^1.8.0" magic-string "0.30.5" node-html-parser "^6.1.10" - resolve "^1.22.8" source-map "^0.7.4" stack-trace "^1.0.0-pre2" @@ -9168,7 +9167,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.4, resolve@^1.22.8: +resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.4: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== From 0b1769a5b4f31ba63a9962810812b5cf625cd894 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:07:14 +0100 Subject: [PATCH 05/10] chore(deps): update dependency @rollup/plugin-commonjs to v26.0.3 (#2967) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 09624357b0..859a6261e5 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -84,7 +84,7 @@ "@eslint/compat": "1.1.1", "@eslint/js": "9.7.0", "@preact/preset-vite": "2.9.1", - "@rollup/plugin-commonjs": "26.0.1", + "@rollup/plugin-commonjs": "26.0.3", "@rollup/plugin-eslint": "9.0.5", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "15.2.3", diff --git a/yarn.lock b/yarn.lock index cb45dd5a9a..53161a9e76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1396,10 +1396,10 @@ unbzip2-stream "^1.4.3" yargs "^17.7.2" -"@rollup/plugin-commonjs@26.0.1": - version "26.0.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz#16d4d6e54fa63021249a292b50f27c0b0f1a30d8" - integrity sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ== +"@rollup/plugin-commonjs@26.0.3": + version "26.0.3" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.3.tgz#085ffb49818e43e4a2a96816a37affcc8a8cbaca" + integrity sha512-2BJcolt43MY+y5Tz47djHkodCC3c1VKVrBDKpVqHKpQ9z9S158kCCqB8NF6/gzxLdNlYW9abB3Ibh+kOWLp8KQ== dependencies: "@rollup/pluginutils" "^5.0.1" commondir "^1.0.1" From d5a457b6056e420425403e8025992b6d82ebd506 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:09:30 +0100 Subject: [PATCH 06/10] chore(deps): update dependency @swc/core to v1.8.0 (#2970) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 138 +++++++++++++++++++------------------- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 859a6261e5..5ee7312ec0 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -96,7 +96,7 @@ "@storybook/manager-api": "^8.3.4", "@storybook/preact": "^8.3.4", "@storybook/preact-vite": "^8.3.4", - "@swc/core": "1.7.0", + "@swc/core": "1.8.0", "@testing-library/jest-dom": "6.4.6", "@testing-library/preact": "3.2.4", "@testing-library/preact-hooks": "1.1.0", diff --git a/yarn.lock b/yarn.lock index 53161a9e76..1c1e3f1159 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1936,84 +1936,84 @@ resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-8.3.6.tgz#57c5789903e50b84844aa8e7ce0e1f031e98a948" integrity sha512-LQjUk6GXRW9ELkoBKuqzQKFUW+ajfGPfVELcfs3/VQX61VhthJ4olov4bGPc04wsmmFMgN/qODxT485IwOHfPQ== -"@swc/core-darwin-arm64@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.0.tgz#fdc694dd6e8543f3efea0619a6fba9ce82939205" - integrity sha512-2ylhM7f0HwUwLrFYZAe/dse8PCbPsYcJS3Dt7Q8NT3PUn7vy6QOMxNcOPPuDrnmaXqQQO3oxdmRapguTxaat9g== - -"@swc/core-darwin-x64@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.7.0.tgz#a9a78ace5c7e43c8cb68d11c53d33a0bf966ca8e" - integrity sha512-SgVnN4gT1Rb9YfTkp4FCUITqSs7Yj0uB2SUciu5CV3HuGvS5YXCUzh+KrwpLFtx8NIgivISKcNnb41mJi98X8Q== - -"@swc/core-linux-arm-gnueabihf@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.0.tgz#6861ac82fda01b68b44970d3b9aaa955d7311d98" - integrity sha512-+Z9Dayart1iKJQEJJ9N/KS4z5EdXJE3WPFikY0jonKTo4Dd8RuyVz5yLvqcIMeVdz/SwximATaL6iJXw7hZS9A== - -"@swc/core-linux-arm64-gnu@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.0.tgz#aa0e3dac17807c73d501f52526115666d60ea7a6" - integrity sha512-UnLrCiZ1EI4shznJn0xP6DLgsXUSwtfsdgHhGYCrvbgVBBve3S9iFgVFEB3SPl7Q/TdowNbrN4zHU0oChfiNfw== - -"@swc/core-linux-arm64-musl@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.0.tgz#4bb226a4e9eabac4e1a3b3ffd7ea5955629c84ed" - integrity sha512-H724UANA+ptsfwKRr9mnaDa9cb5fw0oFysiGKTgb3DMYcgk3Od0jMTnXVPFSVpo7FlmyxeC9K8ueUPBOoOK6XA== - -"@swc/core-linux-x64-gnu@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.0.tgz#ee65d1362214e91de89414f41b3310ba5302c2c5" - integrity sha512-SY3HA0K0Dpqt1HIfMLGpwL4hd4UaL2xHP5oZXPlRQPhUDZrbb4PbI3ZJnh66c63eL4ZR8EJ+HRFI0Alx5p69Zw== - -"@swc/core-linux-x64-musl@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.0.tgz#0868518771004753acb07d9871cf5b143b51dc30" - integrity sha512-cEJ2ebtV1v/5Ilb55E05J6F5SrHKQWzUttIhR5Mkayyo+yvPslcpByuFC3D+J7X1ebziTOBpWuMpUdjLfh3SMQ== - -"@swc/core-win32-arm64-msvc@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.0.tgz#43048d67f871e798566c3883c991bed521ef3b9e" - integrity sha512-ecQOOmzEssz+m0pR4xDYCGuvn3E/l0nQ3tk5jp1NA1lsAy4bMV0YbYCHjptYvWL/UjhIerIp3IlCJ8x5DodSog== - -"@swc/core-win32-ia32-msvc@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.0.tgz#6e98f413e6469cfd00dcc7c106cb69f2c709e581" - integrity sha512-gz81seZkRn3zMnVOc7L5k6F4vQC82gIxmHiL+GedK+A37XI/X26AASU3zxvORnqQbwQYXQ+AEVckxBmFlz3v2g== - -"@swc/core-win32-x64-msvc@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.0.tgz#79dfce878552f0a066a40c9cef524f4a8f872674" - integrity sha512-b5Fd1xEOw9uqBpj2lqsaR4Iq9UhiL84hNDcEsi6DQA7Y1l85waQAslTbS0E4/pJ1PISAs0jW0zIGLco1eaWBOg== - -"@swc/core@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.7.0.tgz#81f4e7dadf03e1d7f9a5e48a87f5d857e8fc1468" - integrity sha512-d4vMzH6ICllDwlPuhset2h8gu/USHdbyfJim+2hQEdxC0UONtfpmu38XBgNqRjStrji1Q5M10jfeUZL3cu1i8g== +"@swc/core-darwin-arm64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.8.0.tgz#4dc9e0918c9c2907f670fdb101f35574d4024892" + integrity sha512-TIus1/SE/Ud4g84hCnchcagu+LfyndSDy5r5qf64nflojejDidPU9Fp1InzQhQpEgIpntnZID/KFCP5rQnvsIw== + +"@swc/core-darwin-x64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.8.0.tgz#ff06624452ee9081735671f5bed93fb776c5524e" + integrity sha512-yCb1FHCX/HUmNRGB1X3CFJ1WPKXMosZVUe3K2TrosCGvytwgaLoW5FS0bZg5Qv6cEUERQBg75cJnOUPwLLRCVg== + +"@swc/core-linux-arm-gnueabihf@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.8.0.tgz#2c093ff8733fbc10804e3fe74ddb1252740ad0d3" + integrity sha512-6TdjVdiLaSW+eGiHKEojMDlx673nowrPHa6nM6toWgRzy8tIZgjPOguVKJDoMnoHuvO7SkOLCUiMRw0rTskypA== + +"@swc/core-linux-arm64-gnu@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.8.0.tgz#70e0772a29be00b80e381a528262b1a846a47a1b" + integrity sha512-TU2YcTornnyZiJUabRuk7Xtvzaep11FwK77IkFomjN9/Os5s25B8ea652c2fAQMe9RsM84FPVmX303ohxavjKQ== + +"@swc/core-linux-arm64-musl@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.8.0.tgz#651647747f820f4667ad926c965b396bb82122fa" + integrity sha512-2CdPTEKxx2hJIj/B0fn8L8k2coo/FDS95smzXyi2bov5FcrP6Ohboq8roFBYgj38fkHusXjY8qt+cCH7yXWAdg== + +"@swc/core-linux-x64-gnu@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.8.0.tgz#745a3113bc48ee867631a77bb239ec598a2fc8f2" + integrity sha512-14StQBifCs/AMsySdU95OmwNJr9LOVqo6rcTFt2b7XaWpe/AyeuMJFxcndLgUewksJHpfepzCTwNdbcYmuNo6A== + +"@swc/core-linux-x64-musl@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.8.0.tgz#547c8176971cd1c3746d9d5feda3bacf2f95074a" + integrity sha512-qemJnAQlYqKCfWNqVv5SG8uGvw8JotwU86cuFUkq35oTB+dsSFM3b83+B1giGTKKFOh2nfWT7bvPXTKk+aUjew== + +"@swc/core-win32-arm64-msvc@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.8.0.tgz#363340f0fcb0d9e7b9e6d4167171ae64be0a114d" + integrity sha512-fXt5vZbnrVdXZzGj2qRnZtY3uh+NtLCaFjS2uD9w8ssdbjhbDZYlJCj2JINOjv35ttEfAD2goiYmVa5P/Ypl+g== + +"@swc/core-win32-ia32-msvc@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.8.0.tgz#95ce2aecbe794e6357214b44bac6d5d1ad296bcc" + integrity sha512-W4FA2vSJ+bGYiTj6gspxghSdKQNLfLMo65AH07u797x7I+YJj8amnFY/fQRlroDv5Dez/FHTv14oPlTlNFUpIw== + +"@swc/core-win32-x64-msvc@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.8.0.tgz#2b31cb9db381d6863727190bb4b1a7be7ce78ce8" + integrity sha512-Il4y8XwKDV0Bnk0IpA00kGcSQC6I9XOIinW5egTutnwIDfDE+qsD0j+0isW5H76GetY3/Ze0lVxeOXLAUgpegA== + +"@swc/core@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.8.0.tgz#ae9290e6d138abc7c3d6b50fe5223d3c601f9155" + integrity sha512-EF8C5lp1RKMp3426tAKwQyVbg4Zcn/2FDax3cz8EcOXYQJM/ctB687IvBm9Ciej1wMcQ/dMRg+OB4Xl8BGLBoA== dependencies: "@swc/counter" "^0.1.3" - "@swc/types" "^0.1.9" + "@swc/types" "^0.1.14" optionalDependencies: - "@swc/core-darwin-arm64" "1.7.0" - "@swc/core-darwin-x64" "1.7.0" - "@swc/core-linux-arm-gnueabihf" "1.7.0" - "@swc/core-linux-arm64-gnu" "1.7.0" - "@swc/core-linux-arm64-musl" "1.7.0" - "@swc/core-linux-x64-gnu" "1.7.0" - "@swc/core-linux-x64-musl" "1.7.0" - "@swc/core-win32-arm64-msvc" "1.7.0" - "@swc/core-win32-ia32-msvc" "1.7.0" - "@swc/core-win32-x64-msvc" "1.7.0" + "@swc/core-darwin-arm64" "1.8.0" + "@swc/core-darwin-x64" "1.8.0" + "@swc/core-linux-arm-gnueabihf" "1.8.0" + "@swc/core-linux-arm64-gnu" "1.8.0" + "@swc/core-linux-arm64-musl" "1.8.0" + "@swc/core-linux-x64-gnu" "1.8.0" + "@swc/core-linux-x64-musl" "1.8.0" + "@swc/core-win32-arm64-msvc" "1.8.0" + "@swc/core-win32-ia32-msvc" "1.8.0" + "@swc/core-win32-x64-msvc" "1.8.0" "@swc/counter@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9" integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ== -"@swc/types@^0.1.9": - version "0.1.9" - resolved "https://registry.yarnpkg.com/@swc/types/-/types-0.1.9.tgz#e67cdcc2e4dd74a3cef4474b465eb398e7ae83e2" - integrity sha512-qKnCno++jzcJ4lM4NTfYifm1EFSCeIfKiAHAfkENZAV5Kl9PjJIyd2yeeVv6c/2CckuLyv2NmRC5pv6pm2WQBg== +"@swc/types@^0.1.14": + version "0.1.17" + resolved "https://registry.yarnpkg.com/@swc/types/-/types-0.1.17.tgz#bd1d94e73497f27341bf141abdf4c85230d41e7c" + integrity sha512-V5gRru+aD8YVyCOMAjMpWR1Ui577DD5KSJsHP8RAxopAH22jFz6GZd/qxqjO6MJHQhcsjvjOFXyDhyLQUnMveQ== dependencies: "@swc/counter" "^0.1.3" From 2f25535b3b853c08b8205a5d0601061d89795b9f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:14:30 +0100 Subject: [PATCH 07/10] chore(deps): update dependency autoprefixer to v10.4.20 (#2983) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 5ee7312ec0..e8d3afd03f 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -103,7 +103,7 @@ "@testing-library/user-event": "14.5.2", "@types/eslint__js": "8.42.3", "@types/jest": "29.5.14", - "autoprefixer": "10.4.19", + "autoprefixer": "10.4.20", "cross-env": "7.0.3", "cssnano": "7.0.4", "dotenv": "16.4.5", diff --git a/yarn.lock b/yarn.lock index 1c1e3f1159..f4c3102e73 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3080,7 +3080,19 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -autoprefixer@10.4.19, autoprefixer@^10.4.9: +autoprefixer@10.4.20: + version "10.4.20" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.20.tgz#5caec14d43976ef42e32dcb4bd62878e96be5b3b" + integrity sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g== + dependencies: + browserslist "^4.23.3" + caniuse-lite "^1.0.30001646" + fraction.js "^4.3.7" + normalize-range "^0.1.2" + picocolors "^1.0.1" + postcss-value-parser "^4.2.0" + +autoprefixer@^10.4.9: version "10.4.19" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.19.tgz#ad25a856e82ee9d7898c59583c1afeb3fa65f89f" integrity sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew== @@ -3331,7 +3343,7 @@ browserslist@^4.0.0, browserslist@^4.21.10, browserslist@^4.21.4, browserslist@^ node-releases "^2.0.14" update-browserslist-db "^1.1.0" -browserslist@^4.24.0: +browserslist@^4.23.3, browserslist@^4.24.0: version "4.24.2" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.2.tgz#f5845bc91069dbd55ee89faf9822e1d885d16580" integrity sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg== @@ -3442,6 +3454,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001599, caniuse-lite@^1.0.30001640: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== +caniuse-lite@^1.0.30001646: + version "1.0.30001684" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz#0eca437bab7d5f03452ff0ef9de8299be6b08e16" + integrity sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ== + caniuse-lite@^1.0.30001669: version "1.0.30001680" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz#5380ede637a33b9f9f1fc6045ea99bd142f3da5e" From dfa4a75fc30a924396309fd06fce40c6cba9c2a6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:14:52 +0100 Subject: [PATCH 08/10] chore(deps): update dependency cssnano to v7.0.6 (#2984) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/lib/package.json | 2 +- yarn.lock | 186 ++++++++++++++++++++------------------ 2 files changed, 98 insertions(+), 90 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index e8d3afd03f..6ff84792e1 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -105,7 +105,7 @@ "@types/jest": "29.5.14", "autoprefixer": "10.4.20", "cross-env": "7.0.3", - "cssnano": "7.0.4", + "cssnano": "7.0.6", "dotenv": "16.4.5", "enzyme": "3.11.0", "enzyme-adapter-preact-pure": "4.1.0", diff --git a/yarn.lock b/yarn.lock index f4c3102e73..1944f0f940 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3983,41 +3983,41 @@ cssnano-preset-default@^5.2.14: postcss-svgo "^5.1.0" postcss-unique-selectors "^5.1.1" -cssnano-preset-default@^7.0.4: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-7.0.4.tgz#9cfcd25f85bfedc84367b881dad56b75a0f976b5" - integrity sha512-jQ6zY9GAomQX7/YNLibMEsRZguqMUGuupXcEk2zZ+p3GUxwCAsobqPYE62VrJ9qZ0l9ltrv2rgjwZPBIFIjYtw== +cssnano-preset-default@^7.0.6: + version "7.0.6" + resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-7.0.6.tgz#0220fa7507478369aa2a226bac03e1204cd024c1" + integrity sha512-ZzrgYupYxEvdGGuqL+JKOY70s7+saoNlHSCK/OGn1vB2pQK8KSET8jvenzItcY+kA7NoWvfbb/YhlzuzNKjOhQ== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" css-declaration-sorter "^7.2.0" cssnano-utils "^5.0.0" - postcss-calc "^10.0.0" - postcss-colormin "^7.0.1" - postcss-convert-values "^7.0.2" - postcss-discard-comments "^7.0.1" - postcss-discard-duplicates "^7.0.0" + postcss-calc "^10.0.2" + postcss-colormin "^7.0.2" + postcss-convert-values "^7.0.4" + postcss-discard-comments "^7.0.3" + postcss-discard-duplicates "^7.0.1" postcss-discard-empty "^7.0.0" postcss-discard-overridden "^7.0.0" - postcss-merge-longhand "^7.0.2" - postcss-merge-rules "^7.0.2" + postcss-merge-longhand "^7.0.4" + postcss-merge-rules "^7.0.4" postcss-minify-font-values "^7.0.0" postcss-minify-gradients "^7.0.0" - postcss-minify-params "^7.0.1" - postcss-minify-selectors "^7.0.2" + postcss-minify-params "^7.0.2" + postcss-minify-selectors "^7.0.4" postcss-normalize-charset "^7.0.0" postcss-normalize-display-values "^7.0.0" postcss-normalize-positions "^7.0.0" postcss-normalize-repeat-style "^7.0.0" postcss-normalize-string "^7.0.0" postcss-normalize-timing-functions "^7.0.0" - postcss-normalize-unicode "^7.0.1" + postcss-normalize-unicode "^7.0.2" postcss-normalize-url "^7.0.0" postcss-normalize-whitespace "^7.0.0" postcss-ordered-values "^7.0.1" - postcss-reduce-initial "^7.0.1" + postcss-reduce-initial "^7.0.2" postcss-reduce-transforms "^7.0.0" postcss-svgo "^7.0.1" - postcss-unique-selectors "^7.0.1" + postcss-unique-selectors "^7.0.3" cssnano-utils@^3.1.0: version "3.1.0" @@ -4029,12 +4029,12 @@ cssnano-utils@^5.0.0: resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-5.0.0.tgz#b53a0343dd5d21012911882db6ae7d2eae0e3687" integrity sha512-Uij0Xdxc24L6SirFr25MlwC2rCFX6scyUmuKpzI+JQ7cyqDEwD42fJ0xfB3yLfOnRDU5LKGgjQ9FA6LYh76GWQ== -cssnano@7.0.4: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-7.0.4.tgz#13a4fb4dd14f3b1ee0cd51e6404ae4656f8ad9a0" - integrity sha512-rQgpZra72iFjiheNreXn77q1haS2GEy69zCMbu4cpXCFPMQF+D4Ik5V7ktMzUF/sA7xCIgcqHwGPnCD+0a1vHg== +cssnano@7.0.6: + version "7.0.6" + resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-7.0.6.tgz#63d54fd42bc017f6aaed69e47d9aaef85b7850ec" + integrity sha512-54woqx8SCbp8HwvNZYn68ZFAepuouZW4lTwiMVnBErM3VkO7/Sd4oTOt3Zz3bPx3kxQ36aISppyXj2Md4lg8bw== dependencies: - cssnano-preset-default "^7.0.4" + cssnano-preset-default "^7.0.6" lilconfig "^3.1.2" cssnano@^5.0.1: @@ -8243,12 +8243,12 @@ possible-typed-array-names@^1.0.0: resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== -postcss-calc@^10.0.0: - version "10.0.0" - resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-10.0.0.tgz#aca29a1c66dd481ca30d08f6932b1274a1003716" - integrity sha512-OmjhudoNTP0QleZCwl1i6NeBwN+5MZbY5ersLZz69mjJiDVv/p57RjRuKDkHeDWr4T+S97wQfsqRTNoDHB2e3g== +postcss-calc@^10.0.2: + version "10.0.2" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-10.0.2.tgz#15f01635a27b9d38913a98c4ef2877f5b715b439" + integrity sha512-DT/Wwm6fCKgpYVI7ZEWuPJ4az8hiEHtCUeYjZXqU7Ou4QqYh1Df2yCQ7Ca6N7xqKPFkxN3fhf+u9KSoOCJNAjg== dependencies: - postcss-selector-parser "^6.0.16" + postcss-selector-parser "^6.1.2" postcss-value-parser "^4.2.0" postcss-calc@^8.2.3: @@ -8269,12 +8269,12 @@ postcss-colormin@^5.3.1: colord "^2.9.1" postcss-value-parser "^4.2.0" -postcss-colormin@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-7.0.1.tgz#6534c7d1175e30f788d4ced891436ad2fa3bd173" - integrity sha512-uszdT0dULt3FQs47G5UHCduYK+FnkLYlpu1HpWu061eGsKZ7setoG7kA+WC9NQLsOJf69D5TxGHgnAdRgylnFQ== +postcss-colormin@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-7.0.2.tgz#6f3c53c13158168669f45adc3926f35cb240ef8e" + integrity sha512-YntRXNngcvEvDbEjTdRWGU606eZvB5prmHG4BF0yLmVpamXbpsRJzevyy6MZVyuecgzI2AWAlvFi8DAeCqwpvA== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" caniuse-api "^3.0.0" colord "^2.9.3" postcss-value-parser "^4.2.0" @@ -8287,12 +8287,12 @@ postcss-convert-values@^5.1.3: browserslist "^4.21.4" postcss-value-parser "^4.2.0" -postcss-convert-values@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-7.0.2.tgz#8a33265f5f1decfc93328e2a23e03e8491a3d9ae" - integrity sha512-MuZIF6HJ4izko07Q0TgW6pClalI4al6wHRNPkFzqQdwAwG7hPn0lA58VZdxyb2Vl5AYjJ1piO+jgF9EnTjQwQQ== +postcss-convert-values@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-7.0.4.tgz#fc13ecedded6365f3c794b502dbcf77d298da12c" + integrity sha512-e2LSXPqEHVW6aoGbjV9RsSSNDO3A0rZLCBxN24zvxF25WknMPpX8Dm9UxxThyEbaytzggRuZxaGXqaOhxQ514Q== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" postcss-value-parser "^4.2.0" postcss-discard-comments@^5.1.2: @@ -8300,22 +8300,22 @@ postcss-discard-comments@^5.1.2: resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz#8df5e81d2925af2780075840c1526f0660e53696" integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ== -postcss-discard-comments@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-7.0.1.tgz#00b01c5a99e95f97927b0ba12a1c422ab90bf55f" - integrity sha512-GVrQxUOhmle1W6jX2SvNLt4kmN+JYhV7mzI6BMnkAWR9DtVvg8e67rrV0NfdWhn7x1zxvzdWkMBPdBDCls+uwQ== +postcss-discard-comments@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-7.0.3.tgz#9c414e8ee99d3514ad06a3465ccc20ec1dbce780" + integrity sha512-q6fjd4WU4afNhWOA2WltHgCbkRhZPgQe7cXF74fuVB/ge4QbM9HEaOIzGSiMvM+g/cOsNAUGdf2JDzqA2F8iLA== dependencies: - postcss-selector-parser "^6.1.0" + postcss-selector-parser "^6.1.2" postcss-discard-duplicates@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz#9eb4fe8456706a4eebd6d3b7b777d07bad03e848" integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw== -postcss-discard-duplicates@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.0.tgz#47ae1154cc89ad0a50099fbac1f74c942214c961" - integrity sha512-bAnSuBop5LpAIUmmOSsuvtKAAKREB6BBIYStWUTGq8oG5q9fClDMMuY8i4UPI/cEcDx2TN+7PMnXYIId20UVDw== +postcss-discard-duplicates@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.1.tgz#f87f2fe47d8f01afb1e98361c1db3ce1e8afd1a3" + integrity sha512-oZA+v8Jkpu1ct/xbbrntHRsfLGuzoP+cpt0nJe5ED2FQF8n8bJtn7Bo28jSmBYwqgqnqkuSXJfSUEE7if4nClQ== postcss-discard-empty@^5.1.1: version "5.1.1" @@ -8367,13 +8367,13 @@ postcss-merge-longhand@^5.1.7: postcss-value-parser "^4.2.0" stylehacks "^5.1.1" -postcss-merge-longhand@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-7.0.2.tgz#b9fddce88498ca7e45ff130163b69864b25c05dc" - integrity sha512-06vrW6ZWi9qeP7KMS9fsa9QW56+tIMW55KYqF7X3Ccn+NI2pIgPV6gFfvXTMQ05H90Y5DvnCDPZ2IuHa30PMUg== +postcss-merge-longhand@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-7.0.4.tgz#a52d0662b4b29420f3b64a8d5b0ac5133d8db776" + integrity sha512-zer1KoZA54Q8RVHKOY5vMke0cCdNxMP3KBfDerjH/BYHh4nCIh+1Yy0t1pAEQF18ac/4z3OFclO+ZVH8azjR4A== dependencies: postcss-value-parser "^4.2.0" - stylehacks "^7.0.2" + stylehacks "^7.0.4" postcss-merge-rules@^5.1.4: version "5.1.4" @@ -8385,15 +8385,15 @@ postcss-merge-rules@^5.1.4: cssnano-utils "^3.1.0" postcss-selector-parser "^6.0.5" -postcss-merge-rules@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-7.0.2.tgz#f7c991576cff4c7d0a8f16101c20bbfa9426695c" - integrity sha512-VAR47UNvRsdrTHLe7TV1CeEtF9SJYR5ukIB9U4GZyZOptgtsS20xSxy+k5wMrI3udST6O1XuIn7cjQkg7sDAAw== +postcss-merge-rules@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-7.0.4.tgz#648cc864d3121e6ec72c2a4f08df1cc801e60ce8" + integrity sha512-ZsaamiMVu7uBYsIdGtKJ64PkcQt6Pcpep/uO90EpLS3dxJi6OXamIobTYcImyXGoW0Wpugh7DSD3XzxZS9JCPg== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" caniuse-api "^3.0.0" cssnano-utils "^5.0.0" - postcss-selector-parser "^6.1.0" + postcss-selector-parser "^6.1.2" postcss-minify-font-values@^5.1.0: version "5.1.0" @@ -8436,12 +8436,12 @@ postcss-minify-params@^5.1.4: cssnano-utils "^3.1.0" postcss-value-parser "^4.2.0" -postcss-minify-params@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-7.0.1.tgz#08d753bb09d3ebf1a6d6fb0968d60bb3b981e513" - integrity sha512-e+Xt8xErSRPgSRFxHeBCSxMiO8B8xng7lh8E0A5ep1VfwYhY8FXhu4Q3APMjgx9YDDbSp53IBGENrzygbUvgUQ== +postcss-minify-params@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-7.0.2.tgz#264a76e25f202d8b5ca5290569c0e8c3ac599dfe" + integrity sha512-nyqVLu4MFl9df32zTsdcLqCFfE/z2+f8GE1KHPxWOAmegSo6lpV2GNy5XQvrzwbLmiU7d+fYay4cwto1oNdAaQ== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" cssnano-utils "^5.0.0" postcss-value-parser "^4.2.0" @@ -8452,13 +8452,13 @@ postcss-minify-selectors@^5.2.1: dependencies: postcss-selector-parser "^6.0.5" -postcss-minify-selectors@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-7.0.2.tgz#869c8ef885a4f9c2550d0d5ec1a2876027d3965c" - integrity sha512-dCzm04wqW1uqLmDZ41XYNBJfjgps3ZugDpogAmJXoCb5oCiTzIX4oPXXKxDpTvWOnKxQKR4EbV4ZawJBLcdXXA== +postcss-minify-selectors@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-7.0.4.tgz#2b69c99ec48a1c223fce4840609d9c53340a11f5" + integrity sha512-JG55VADcNb4xFCf75hXkzc1rNeURhlo7ugf6JjiiKRfMsKlDzN9CXHZDyiG6x/zGchpjQS+UAgb1d4nqXqOpmA== dependencies: cssesc "^3.0.0" - postcss-selector-parser "^6.1.0" + postcss-selector-parser "^6.1.2" postcss-modules-extract-imports@^3.0.0, postcss-modules-extract-imports@^3.1.0: version "3.1.0" @@ -8590,12 +8590,12 @@ postcss-normalize-unicode@^5.1.1: browserslist "^4.21.4" postcss-value-parser "^4.2.0" -postcss-normalize-unicode@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.1.tgz#6545debfff2b4b154583cb24bb388b9681ffa119" - integrity sha512-PTPGdY9xAkTw+8ZZ71DUePb7M/Vtgkbbq+EoI33EuyQEzbKemEQMhe5QSr0VP5UfZlreANDPxSfcdSprENcbsg== +postcss-normalize-unicode@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.2.tgz#095f8d36ea29adfdf494069c1de101112992a713" + integrity sha512-ztisabK5C/+ZWBdYC+Y9JCkp3M9qBv/XFvDtSw0d/XwfT3UaKeW/YTm/MD/QrPNxuecia46vkfEhewjwcYFjkg== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" postcss-value-parser "^4.2.0" postcss-normalize-url@^5.1.0: @@ -8651,12 +8651,12 @@ postcss-reduce-initial@^5.1.2: browserslist "^4.21.4" caniuse-api "^3.0.0" -postcss-reduce-initial@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-7.0.1.tgz#d5308153f757ff9dd5b041cd4954a7592ef0d43b" - integrity sha512-0JDUSV4bGB5FGM5g8MkS+rvqKukJZ7OTHw/lcKn7xPNqeaqJyQbUO8/dJpvyTpaVwPsd3Uc33+CfNzdVowp2WA== +postcss-reduce-initial@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-7.0.2.tgz#3dc085347a5943e18547d4b0aa5bd4ff5a93b2c5" + integrity sha512-pOnu9zqQww7dEKf62Nuju6JgsW2V0KRNBHxeKohU+JkHd/GAH5uvoObqFLqkeB2n20mr6yrlWDvo5UBU5GnkfA== dependencies: - browserslist "^4.23.1" + browserslist "^4.23.3" caniuse-api "^3.0.0" postcss-reduce-transforms@^5.1.0: @@ -8688,7 +8688,7 @@ postcss-scss@^4.0.9: resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-4.0.9.tgz#a03c773cd4c9623cb04ce142a52afcec74806685" integrity sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A== -postcss-selector-parser@^6.0.16, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9, postcss-selector-parser@^6.1.0: +postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9, postcss-selector-parser@^6.1.0: version "6.1.1" resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.1.tgz#5be94b277b8955904476a2400260002ce6c56e38" integrity sha512-b4dlw/9V8A71rLIDsSwVmak9z2DuBUB7CA1/wSdelNEzqsjoSPeADTWNO09lpH49Diy3/JIZ2bSPB1dI3LJCHg== @@ -8696,6 +8696,14 @@ postcss-selector-parser@^6.0.16, postcss-selector-parser@^6.0.2, postcss-selecto cssesc "^3.0.0" util-deprecate "^1.0.2" +postcss-selector-parser@^6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de" + integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + postcss-svgo@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d" @@ -8719,12 +8727,12 @@ postcss-unique-selectors@^5.1.1: dependencies: postcss-selector-parser "^6.0.5" -postcss-unique-selectors@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-7.0.1.tgz#3e4e7c408ca5cd57e834d197e9c96111fc163237" - integrity sha512-MH7QE/eKUftTB5ta40xcHLl7hkZjgDFydpfTK+QWXeHxghVt3VoPqYL5/G+zYZPPIs+8GuqFXSTgxBSoB1RZtQ== +postcss-unique-selectors@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-7.0.3.tgz#483fc11215b23d517d5d9bbe5833d9915619ca33" + integrity sha512-J+58u5Ic5T1QjP/LDV9g3Cx4CNOgB5vz+kM6+OxHHhFACdcDeKhBXjQmB7fnIZM12YSTvsL0Opwco83DmacW2g== dependencies: - postcss-selector-parser "^6.1.0" + postcss-selector-parser "^6.1.2" postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: version "4.2.0" @@ -10103,13 +10111,13 @@ stylehacks@^5.1.1: browserslist "^4.21.4" postcss-selector-parser "^6.0.4" -stylehacks@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-7.0.2.tgz#cc0ec317e9d5b30fdbdfe7ed6b8d3b1a8c57fa06" - integrity sha512-HdkWZS9b4gbgYTdMg4gJLmm7biAUug1qTqXjS+u8X+/pUd+9Px1E+520GnOW3rST9MNsVOVpsJG+mPHNosxjOQ== +stylehacks@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-7.0.4.tgz#9c21f7374f4bccc0082412b859b3c89d77d3277c" + integrity sha512-i4zfNrGMt9SB4xRK9L83rlsFCgdGANfeDAYacO1pkqcE7cRHPdWHwnKZVz7WY17Veq/FvyYsRAU++Ga+qDFIww== dependencies: - browserslist "^4.23.1" - postcss-selector-parser "^6.1.0" + browserslist "^4.23.3" + postcss-selector-parser "^6.1.2" stylelint-config-recommended-scss@^14.0.0: version "14.1.0" From 7854997038bc384ed3acd47f702c58ee2cb7ebe6 Mon Sep 17 00:00:00 2001 From: Yu Long <longyu901009@gmail.com> Date: Mon, 25 Nov 2024 13:14:09 +0100 Subject: [PATCH 09/10] Update DonationComponent UI (#2934) (#2980) (cherry picked from commit 1541573e5bfbbe8f8a9b9e31245615391bf05b30) Co-authored-by: joao <joao_santos9@proton.me> --- .changeset/brown-lions-study.md | 5 ++ .../lib/src/components/Donation/Donation.scss | 60 +++++++------------ .../Donation/components/CampaignContainer.tsx | 18 ------ .../Donation/components/CampaignContent.tsx | 26 ++++---- .../Donation/components/CampaignInfo.tsx | 27 +++++++++ .../Donation/components/DonationComponent.tsx | 4 +- .../playground/src/pages/Helpers/Helpers.js | 3 +- 7 files changed, 69 insertions(+), 74 deletions(-) create mode 100644 .changeset/brown-lions-study.md delete mode 100644 packages/lib/src/components/Donation/components/CampaignContainer.tsx create mode 100644 packages/lib/src/components/Donation/components/CampaignInfo.tsx diff --git a/.changeset/brown-lions-study.md b/.changeset/brown-lions-study.md new file mode 100644 index 0000000000..394dbb2ed1 --- /dev/null +++ b/.changeset/brown-lions-study.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': minor +--- + +Updated DonationComponent UI diff --git a/packages/lib/src/components/Donation/Donation.scss b/packages/lib/src/components/Donation/Donation.scss index eeb130bd75..74631741fc 100644 --- a/packages/lib/src/components/Donation/Donation.scss +++ b/packages/lib/src/components/Donation/Donation.scss @@ -20,10 +20,6 @@ } .adyen-checkout__campaign { - border-radius: token(border-radius-m); - background: token(color-label-primary); - height: 227px; - overflow: hidden; position: relative; } @@ -31,77 +27,67 @@ text-decoration: underline; } -.adyen-checkout__campaign-container { - height: 100%; -} - .adyen-checkout__campaign-logo { - border: token(spacer-010) solid rgb(255 255 255 / 40%); border-radius: token(border-radius-s); + border: token(border-width-s) solid token(color-outline-primary); display: block; + flex-shrink: 0; height: token(spacer-120); - margin-bottom: token(spacer-070); + object-fit: cover; + object-position: center; overflow: hidden; width: token(spacer-120); } .adyen-checkout__campaign-background-image { + aspect-ratio: 5 / 2; background-color: token(color-label-primary); background-position: center; - background-size: cover; - height: 100%; + background-size: 100%; + border-radius: token(border-radius-m); + margin-bottom: token(spacer-060); + overflow: hidden; + transition: background-size 0.6s ease-out; + + &:hover { + background-size: 110%; + } } .adyen-checkout__campaign-link { - .adyen-checkout__campaign-background-image { - &::before { - background: inherit; - content: ''; - height: 100%; - position: absolute; - transition: transform 0.6s ease-out; - width: 100%; - } - - &:hover::before { - transform: scale(1.1); - } - } + text-decoration: none; - .adyen-checkout__campaign-content { - pointer-events: none; + &:hover { + text-decoration: underline; } } .adyen-checkout__campaign-content { - bottom: 0; - padding: token(spacer-070); - position: absolute; - z-index: 2; + align-items: flex-start; + display: flex; + gap: token(spacer-060); } .adyen-checkout__campaign-title, .adyen-checkout__campaign-description { - color: token(color-label-on-color); - font-weight: normal; + color: token(color-label-primary); margin: 0; } .adyen-checkout__campaign-title { @include index.adyen-checkout-text-title; - - margin-bottom: token(spacer-040); } .adyen-checkout__campaign-cause { @include index.adyen-checkout-text-caption; - color: token(color-label-on-color); font-weight: token(text-caption-stronger-font-weight); } .adyen-checkout__campaign-description { @include index.adyen-checkout-text-caption; + + margin-top: token(spacer-060); } .adyen-checkout-roundup-description { diff --git a/packages/lib/src/components/Donation/components/CampaignContainer.tsx b/packages/lib/src/components/Donation/components/CampaignContainer.tsx deleted file mode 100644 index c546de66cf..0000000000 --- a/packages/lib/src/components/Donation/components/CampaignContainer.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { h } from 'preact'; -import CampaignContent, { CampaignContentProps } from './CampaignContent'; - -export default function CampaignContainer(props: CampaignContentProps) { - const { nonprofitUrl } = props; - - return ( - <div className="adyen-checkout__campaign"> - {!nonprofitUrl && <CampaignContent {...props} />} - - {nonprofitUrl && ( - <a href={nonprofitUrl} className="adyen-checkout__campaign-link" target="_blank" rel="noopener noreferrer"> - <CampaignContent {...props} /> - </a> - )} - </div> - ); -} diff --git a/packages/lib/src/components/Donation/components/CampaignContent.tsx b/packages/lib/src/components/Donation/components/CampaignContent.tsx index dfb1520701..7520d63339 100644 --- a/packages/lib/src/components/Donation/components/CampaignContent.tsx +++ b/packages/lib/src/components/Donation/components/CampaignContent.tsx @@ -1,5 +1,5 @@ import { h } from 'preact'; -import Img from '../../internal/Img'; +import CampaignInfo from './CampaignInfo'; export interface CampaignContentProps { logoUrl?: string; @@ -18,23 +18,17 @@ export default function CampaignContent({ nonprofitUrl = '', bannerUrl = '' }: CampaignContentProps) { - const backgroundImage = `linear-gradient(0, #000, #0003), url(${bannerUrl})`; - return ( - <div className="adyen-checkout__campaign-container"> - <Img className="adyen-checkout__campaign-background-image" style={{ backgroundImage }} backgroundUrl={bannerUrl} /> + <div className="adyen-checkout__campaign"> + {nonprofitUrl ? ( + <a href={nonprofitUrl} className="adyen-checkout__campaign-link" target="_blank" rel="noopener noreferrer"> + <CampaignInfo logoUrl={logoUrl} nonprofitName={nonprofitName} causeName={causeName} bannerUrl={bannerUrl} /> + </a> + ) : ( + <CampaignInfo logoUrl={logoUrl} nonprofitName={nonprofitName} causeName={causeName} bannerUrl={bannerUrl} /> + )} - <div className="adyen-checkout__campaign-content"> - {logoUrl && <img src={logoUrl} className="adyen-checkout__campaign-logo" alt={nonprofitName} />} - {nonprofitName && <div className="adyen-checkout__campaign-title">{nonprofitName}</div>} - {causeName && <div className="adyen-checkout__campaign-cause">{causeName}</div>} - {nonprofitDescription && ( - <div className="adyen-checkout__campaign-description"> - {nonprofitDescription} - {nonprofitUrl && ' ›'} - </div> - )} - </div> + {nonprofitDescription && <div className="adyen-checkout__campaign-description">{nonprofitDescription}</div>} </div> ); } diff --git a/packages/lib/src/components/Donation/components/CampaignInfo.tsx b/packages/lib/src/components/Donation/components/CampaignInfo.tsx new file mode 100644 index 0000000000..d15c11bafd --- /dev/null +++ b/packages/lib/src/components/Donation/components/CampaignInfo.tsx @@ -0,0 +1,27 @@ +import { Fragment, h } from 'preact'; +import Img from '../../internal/Img'; + +export interface CampaignInfoProps { + logoUrl?: string; + nonprofitName?: string; + causeName?: string; + bannerUrl?: string; +} + +export default function CampaignInfo({ logoUrl = '', nonprofitName = '', causeName = '', bannerUrl = '' }: CampaignInfoProps) { + const backgroundImage = `url(${bannerUrl})`; + + return ( + <Fragment> + <Img className="adyen-checkout__campaign-background-image" style={{ backgroundImage }} backgroundUrl={bannerUrl} /> + + <div className="adyen-checkout__campaign-content"> + {logoUrl && <img src={logoUrl} className="adyen-checkout__campaign-logo" alt={nonprofitName} />} + <div> + {nonprofitName && <div className="adyen-checkout__campaign-title">{nonprofitName}</div>} + {causeName && <div className="adyen-checkout__campaign-cause">{causeName}</div>} + </div> + </div> + </Fragment> + ); +} diff --git a/packages/lib/src/components/Donation/components/DonationComponent.tsx b/packages/lib/src/components/Donation/components/DonationComponent.tsx index e6aa94b0f6..8a6e050c1c 100644 --- a/packages/lib/src/components/Donation/components/DonationComponent.tsx +++ b/packages/lib/src/components/Donation/components/DonationComponent.tsx @@ -1,6 +1,6 @@ import { h } from 'preact'; import { useEffect, useState } from 'preact/hooks'; -import CampaignContainer from './CampaignContainer'; +import CampaignContent from './CampaignContent'; import Button from '../../internal/Button'; import Img from '../../internal/Img'; import { useCoreContext } from '../../../core/Context/CoreProvider'; @@ -78,7 +78,7 @@ export default function DonationComponent(props: DonationComponentProps) { return ( <div className="adyen-checkout__adyen-giving"> - <CampaignContainer {...props} /> + <CampaignContent {...props} /> <div className="adyen-checkout__adyen-giving-actions"> {termsAndConditionsUrl && <DisclaimerMessage message={i18n.get('donationTermsCondition')} urls={[termsAndConditionsUrl]} />} diff --git a/packages/playground/src/pages/Helpers/Helpers.js b/packages/playground/src/pages/Helpers/Helpers.js index 39f7c4ab0e..0ccffe09e2 100644 --- a/packages/playground/src/pages/Helpers/Helpers.js +++ b/packages/playground/src/pages/Helpers/Helpers.js @@ -35,7 +35,8 @@ getPaymentMethods({ amount, shopperLocale }).then(async paymentMethodsResponse = termsAndConditionsUrl: 'https://www.adyen.com', bannerUrl: '/banner.png', logoUrl: '/logo.png', - nonprofitDescription: 'Lorem ipsum...', + nonprofitDescription: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', nonprofitName: 'Test Charity', causeName: 'Earthquake Turkey & Syria', nonprofitUrl: 'https://example.org', From e863f37e0ef45e3d1b9c3d4a8dfb4fa3290aa072 Mon Sep 17 00:00:00 2001 From: Guilherme Ribeiro <guilhermemrr@gmail.com> Date: Tue, 26 Nov 2024 10:29:56 +0100 Subject: [PATCH 10/10] kcp tests (#2981) --- packages/e2e-playwright/fixtures/URL_MAP.ts | 2 +- .../mocks/payments/payments.mock.ts | 17 +- packages/e2e-playwright/models/card-kcp.ts | 27 ++- .../tests/e2e/card/kcp/card.kcp.spec.ts | 149 +++++++++++++++ .../startWithKCP.clientScripts.js | 11 -- .../kcp/startWithKCP/startWithKCP.spec.ts | 137 -------------- .../startWithoutKCP.clientScripts.js | 10 - .../startWithoutKCP/startWithoutKCP.spec.ts | 174 ------------------ .../storybook/stories/cards/Card.stories.tsx | 6 +- 9 files changed, 190 insertions(+), 343 deletions(-) create mode 100644 packages/e2e-playwright/tests/e2e/card/kcp/card.kcp.spec.ts delete mode 100644 packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.clientScripts.js delete mode 100644 packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.spec.ts delete mode 100644 packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.clientScripts.js delete mode 100644 packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.spec.ts diff --git a/packages/e2e-playwright/fixtures/URL_MAP.ts b/packages/e2e-playwright/fixtures/URL_MAP.ts index fa54bc3da4..564323a858 100644 --- a/packages/e2e-playwright/fixtures/URL_MAP.ts +++ b/packages/e2e-playwright/fixtures/URL_MAP.ts @@ -16,7 +16,7 @@ export const URL_MAP = { cardWithAvs: '/iframe.html?args=&globals=&id=cards-card--with-avs&viewMode=story', cardWithPartialAvs: '/iframe.html?args=&globals=&id=cards-card--with-partial-avs&viewMode=story', cardWithInstallments: '/iframe.html?args=&id=cards-card--with-installments&viewMode=story', - cardWithKcp: '/iframe.html?args=&id=cards-card--kcp&viewMode=story', + cardWithKcp: '/iframe.html?args=&globals=&id=cards-card--with-kcp&viewMode=story', cardWithClickToPay: '/iframe.html?args=&id=cards-card--with-click-to-pay&viewMode=story', fullAvsWithoutPrefilledDataUrl: '/iframe.html?args=componentConfiguration.data:!undefined&globals=&id=cards-card--with-avs&viewMode=story', fullAvsWithPrefilledDataUrl: '/iframe.html?globals=&args=&id=cards-card--with-avs&viewMode=story', diff --git a/packages/e2e-playwright/mocks/payments/payments.mock.ts b/packages/e2e-playwright/mocks/payments/payments.mock.ts index 31a140778a..fd3daa31e0 100644 --- a/packages/e2e-playwright/mocks/payments/payments.mock.ts +++ b/packages/e2e-playwright/mocks/payments/payments.mock.ts @@ -1,11 +1,12 @@ import { Page } from '@playwright/test'; const PAYMENTS_URL = 'https://checkoutshopper-*.adyen.com/checkoutshopper/v1/sessions/*/payments?*'; + const paymentsMock = async (page: Page, mockedResponse: any): Promise<void> => { - await page.route(PAYMENTS_URL, (route, request) => { + await page.route(PAYMENTS_URL, async (route, request) => { const requestData = JSON.parse(request.postData() || ''); - route.fulfill({ + await route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ @@ -19,4 +20,14 @@ const paymentsMock = async (page: Page, mockedResponse: any): Promise<void> => { }); }; -export { paymentsMock }; +const paymentSuccessfulMock = async (page: Page) => { + await page.route(PAYMENTS_URL, async route => { + await route.fulfill({ + json: { + resultCode: 'Authorised' + } + }); + }); +}; + +export { paymentsMock, paymentSuccessfulMock }; diff --git a/packages/e2e-playwright/models/card-kcp.ts b/packages/e2e-playwright/models/card-kcp.ts index 6232690341..6ad15831d3 100644 --- a/packages/e2e-playwright/models/card-kcp.ts +++ b/packages/e2e-playwright/models/card-kcp.ts @@ -1,16 +1,35 @@ import { Card } from './card'; import { type Locator, Page } from '@playwright/test'; +import { USER_TYPE_DELAY } from '../tests/utils/constants'; class CardWithKCP extends Card { - readonly kcpTaxNumberField: Locator; - constructor(page: Page) { super(page); - this.kcpTaxNumberField = this.rootElement.locator('.adyen-checkout__field--kcp-taxNumber'); // Holder } get taxNumberInput() { - return this.kcpTaxNumberField.getByRole('textbox', { name: /Cardholder birthdate/i }); + return this.rootElement.getByRole('textbox', { name: /Cardholder birthdate/i }); + } + + get taxNumberErrorLocator() { + return this.rootElement.locator('.adyen-checkout__field--kcp-taxNumber .adyen-checkout-contextual-text--error'); + } + + get passwordInput() { + const passwordIframe = this.rootElement.frameLocator('[title="Iframe for password"]'); + return passwordIframe.locator('input[aria-label="First 2 digits of card password"]'); + } + + get passwordErrorLocator() { + return this.rootElement.locator('.adyen-checkout__field--koreanAuthentication-encryptedPassword .adyen-checkout-contextual-text--error'); + } + + async typeTaxNumber(taxNumber: string) { + return this.taxNumberInput.pressSequentially(taxNumber, { delay: USER_TYPE_DELAY }); + } + + async typePassword(password: string) { + return this.passwordInput.pressSequentially(password, { delay: USER_TYPE_DELAY }); } } diff --git a/packages/e2e-playwright/tests/e2e/card/kcp/card.kcp.spec.ts b/packages/e2e-playwright/tests/e2e/card/kcp/card.kcp.spec.ts new file mode 100644 index 0000000000..fd4c3ffb8f --- /dev/null +++ b/packages/e2e-playwright/tests/e2e/card/kcp/card.kcp.spec.ts @@ -0,0 +1,149 @@ +import { expect, test } from '../../../../fixtures/card.fixture'; +import { URL_MAP } from '../../../../fixtures/URL_MAP'; +import { + KOREAN_TEST_CARD, + PAYMENT_RESULT, + REGULAR_TEST_CARD, + TEST_CVC_VALUE, + TEST_DATE_VALUE, + TEST_PWD_VALUE, + TEST_TAX_NUMBER_VALUE +} from '../../../utils/constants'; +import { getStoryUrl } from '../../../utils/getStoryUrl'; +import { paymentSuccessfulMock } from '../../../../mocks/payments/payments.mock'; + +test.describe('Card with KCP fields', () => { + test.describe('Displaying KCP fields by default', () => { + test('should hide KCP fields if Card is not korean and make the payment', async ({ cardWithKCP }) => { + await cardWithKCP.goto(URL_MAP.cardWithKcp); + await cardWithKCP.typeCardNumber(REGULAR_TEST_CARD); + + await expect(cardWithKCP.passwordInput).not.toBeVisible(); + await expect(cardWithKCP.taxNumberInput).not.toBeVisible(); + + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + await cardWithKCP.pay(); + + await expect(cardWithKCP.paymentResult).toContainText(PAYMENT_RESULT.authorised); + }); + + test('should hide KCP fields if Card is not korean, then show them again once the Card is replaced by korean card and make the payment', async ({ + cardWithKCP, + page + }) => { + await paymentSuccessfulMock(page); + const paymentsRequestPromise = page.waitForRequest(request => request.url().includes('/payments') && request.method() === 'POST'); + + await cardWithKCP.goto(URL_MAP.cardWithKcp); + await cardWithKCP.typeCardNumber(REGULAR_TEST_CARD); + + await expect(cardWithKCP.passwordInput).not.toBeVisible(); + await expect(cardWithKCP.taxNumberInput).not.toBeVisible(); + + await cardWithKCP.deleteCardNumber(); + + await cardWithKCP.typeCardNumber(KOREAN_TEST_CARD); + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + await cardWithKCP.typeTaxNumber(TEST_TAX_NUMBER_VALUE); + await cardWithKCP.typePassword(TEST_PWD_VALUE); + await cardWithKCP.pay(); + + // Check that KCP fields are passed in + const request = await paymentsRequestPromise; + const paymentMethod = await request.postDataJSON().paymentMethod; + expect(paymentMethod.encryptedPassword).not.toBeNull(); + expect(paymentMethod.taxNumber).not.toBeNull(); + + await expect(cardWithKCP.paymentResult).toContainText(PAYMENT_RESULT.authorised); + }); + test('should fill in KCP fields, then replace with non-korean Card and make a payment', async ({ cardWithKCP }) => { + await cardWithKCP.goto(URL_MAP.cardWithKcp); + + await cardWithKCP.typeCardNumber(KOREAN_TEST_CARD); + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + await cardWithKCP.typeTaxNumber(TEST_TAX_NUMBER_VALUE); + await cardWithKCP.typePassword(TEST_PWD_VALUE); + + await cardWithKCP.deleteCardNumber(); + await cardWithKCP.typeCardNumber(REGULAR_TEST_CARD); + + await expect(cardWithKCP.passwordInput).not.toBeVisible(); + await expect(cardWithKCP.taxNumberInput).not.toBeVisible(); + + await cardWithKCP.pay(); + + await expect(cardWithKCP.paymentResult).toContainText(PAYMENT_RESULT.authorised); + }); + }); + + test.describe('Displaying KCP fields once Korean card is detected', () => { + const url = getStoryUrl({ + baseUrl: URL_MAP.card, + componentConfig: { + brands: ['mc', 'visa', 'amex', 'korean_local_card'], + configuration: { + koreanAuthenticationRequired: true + } + } + }); + + test('should display KCP fields once korean card is entered and make the payment', async ({ cardWithKCP, page }) => { + await paymentSuccessfulMock(page); + + await cardWithKCP.goto(url); + + await expect(cardWithKCP.passwordInput).not.toBeVisible(); + await expect(cardWithKCP.taxNumberInput).not.toBeVisible(); + + await cardWithKCP.typeCardNumber(KOREAN_TEST_CARD); + + await expect(cardWithKCP.passwordInput).toBeVisible(); + await expect(cardWithKCP.taxNumberInput).toBeVisible(); + + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + await cardWithKCP.typeTaxNumber(TEST_TAX_NUMBER_VALUE); + await cardWithKCP.typePassword(TEST_PWD_VALUE); + await cardWithKCP.pay(); + + await expect(cardWithKCP.paymentResult).toContainText(PAYMENT_RESULT.authorised); + }); + + test('should display KCP fields once korean card is entered, then replace by regular Card and make the payment', async ({ cardWithKCP }) => { + await cardWithKCP.goto(url); + + await cardWithKCP.typeCardNumber(KOREAN_TEST_CARD); + + await expect(cardWithKCP.passwordInput).toBeVisible(); + await expect(cardWithKCP.taxNumberInput).toBeVisible(); + + await cardWithKCP.deleteCardNumber(); + + await cardWithKCP.typeCardNumber(REGULAR_TEST_CARD); + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + + await expect(cardWithKCP.passwordInput).not.toBeVisible(); + await expect(cardWithKCP.taxNumberInput).not.toBeVisible(); + + await cardWithKCP.pay(); + + await expect(cardWithKCP.paymentResult).toContainText(PAYMENT_RESULT.authorised); + }); + + test('should apply validation to KCP fields', async ({ cardWithKCP }) => { + await cardWithKCP.goto(url); + + await cardWithKCP.typeCardNumber(KOREAN_TEST_CARD); + await cardWithKCP.typeCvc(TEST_CVC_VALUE); + await cardWithKCP.typeExpiryDate(TEST_DATE_VALUE); + await cardWithKCP.pay(); + + await expect(cardWithKCP.taxNumberErrorLocator).toHaveText('Invalid Cardholder birthdate or Corporate registration number'); + await expect(cardWithKCP.passwordErrorLocator).toHaveText('Enter the password'); + }); + }); +}); diff --git a/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.clientScripts.js b/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.clientScripts.js deleted file mode 100644 index 3350649fa4..0000000000 --- a/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.clientScripts.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Set koreanAuthenticationRequired & countryCode so KCP fields show at start - */ -window.cardConfig = { - type: 'scheme', - brands: ['mc', 'visa', 'amex', 'korean_local_card'], - configuration: { - koreanAuthenticationRequired: true - }, - countryCode: 'kr' -}; diff --git a/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.spec.ts b/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.spec.ts deleted file mode 100644 index face759bd0..0000000000 --- a/packages/e2e-playwright/tests/ui/card/kcp/startWithKCP/startWithKCP.spec.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { test } from '@playwright/test'; -import { turnOffSDKMocking } from '../../cardMocks'; - -test.describe('Starting with KCP fields', () => { - test.beforeEach(async () => { - // await t.navigateTo(cardPage.pageUrl); - await turnOffSDKMocking(); - //use startWithKCP.clientScripts.js - }); - test( - '#1 Fill in card number that will hide KCP fields, ' + - 'then check password iframe is hidden, ' + - 'then complete the form & check component becomes valid', - async () => { - // Wait for field to appear in DOM - // await cardPage.numHolder(); - // - // // Fill card field with non-korean card - // await cardPage.cardUtils.fillCardNumber(t, REGULAR_TEST_CARD); - // - // // Does the password securedField get removed - // await t.expect(cardPage.pwdSpan.exists).notOk(); - // - // // Complete form - // await cardPage.cardUtils.fillDateAndCVC(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - } - ); - - test( - '#2 Fill in all KCP details, ' + - 'then check card state for taxNumber & password entries, ' + - 'then replace card number with non-korean card and check taxNumber and password state are cleared', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.9); - // - // await cardPage.numHolder(); - // - // // Complete form with korean card number - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD); - // await cardPage.cardUtils.fillDateAndCVC(t); - // await cardPage.kcpUtils.fillTaxNumber(t); - // await cardPage.kcpUtils.fillPwd(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // Expect card state to have tax and pwd elements - // await t.expect(cardPage.getFromState('data.taxNumber')).eql(TEST_TAX_NUMBER_VALUE); - // - // // Extract & decode JWE header - // const JWEToken = await cardPage.getFromState('data.encryptedPassword'); - // const JWETokenArr = JWEToken.split('.'); - // const blobHeader = JWETokenArr[0]; - // const base64Decoded = await cardPage.decodeBase64(blobHeader); - // const headerObj = JSON.parse(base64Decoded); - // - // // Look for expected properties - // await t.expect(JWETokenArr.length).eql(5); // Expected number of components in the JWE token - // - // await t.expect(headerObj.alg).eql(JWE_ALG).expect(headerObj.enc).eql(JWE_CONTENT_ALG).expect(headerObj.version).eql(JWE_VERSION); - // - // // await t.expect(cardPage.getFromState('data.encryptedPassword')).contains('adyenjs_0_1_'); - // - // await t.expect(cardPage.getFromState('valid.taxNumber')).eql(true); - // await t.expect(cardPage.getFromState('valid.encryptedPassword')).eql(true); - // - // // Replace number - // await cardPage.cardUtils.fillCardNumber(t, REGULAR_TEST_CARD, 'replace'); - // - // // (Does the password securedField get removed) - // await t.expect(cardPage.pwdSpan.exists).notOk(); - // - // // Expect card state's tax and pwd elements to have been cleared/reset - // await t.expect(cardPage.getFromState('data.taxNumber')).eql(undefined); - // await t.expect(cardPage.getFromState('data.encryptedPassword')).eql(undefined); - // - // await t.expect(cardPage.getFromState('valid.taxNumber')).eql(false); - // await t.expect(cardPage.getFromState('valid.encryptedPassword')).eql(false); - // - // // Expect card to still be valid (get it from window.card this time - just to check that is also set) - // await t.expect(cardPage.getFromWindow('card.isValid')).eql(true); - } - ); - - test( - '#3 Fill in card number that will hide KCP fields, ' + - 'then complete form and expect component to be valid & to be able to pay,' + - 'then replace card number with korean card and expect component to be valid & to be able to pay', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.9); - // - // await cardPage.numHolder(); - // - // // handler for alert that's triggered on successful payment - // await t.setNativeDialogHandler(() => true); - // - // // Complete form with regular card number - // await cardPage.cardUtils.fillCardNumber(t, REGULAR_TEST_CARD); - // await cardPage.cardUtils.fillDateAndCVC(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // Click pay - except we can't... - // await t; - // // .click(cardPage.payButton) // Can't do this in testing scenario - for some reason it triggers a redirect to a hpp/collectKcpAuthentication page - // // ... & no errors - // await t.expect(cardPage.numLabelTextError.exists).notOk(); - // - // // Replace number with korean card (pasting works better than replacing in textcafe >1.13.0) - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD, 'paste'); // 'replace' - // - // // Expect card to now be invalid - // await t.expect(cardPage.getFromState('isValid')).eql(false); - // - // // Complete form - // await cardPage.kcpUtils.fillTaxNumber(t); - // await cardPage.kcpUtils.fillPwd(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // Click pay - // await t - // .click(cardPage.payButton) - // // no errors - // .expect(cardPage.numLabelTextError.exists) - // .notOk() - // .wait(1000); - } - ); -}); diff --git a/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.clientScripts.js b/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.clientScripts.js deleted file mode 100644 index cf15e10a94..0000000000 --- a/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.clientScripts.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Set koreanAuthenticationRequired so KCP fields will show if a korean card number is entered - */ -window.cardConfig = { - type: 'scheme', - brands: ['mc', 'visa', 'amex', 'korean_local_card'], - configuration: { - koreanAuthenticationRequired: true - } -}; diff --git a/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.spec.ts b/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.spec.ts deleted file mode 100644 index 1ff8e75263..0000000000 --- a/packages/e2e-playwright/tests/ui/card/kcp/startWithoutKCP/startWithoutKCP.spec.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { test } from '@playwright/test'; -import { turnOffSDKMocking } from '../../cardMocks'; - -test.describe('Starting without KCP fields', () => { - test.beforeEach(async () => { - // await t.navigateTo(cardPage.pageUrl); - await turnOffSDKMocking(); - //use startWithoutKCP.clientScripts.js - }); - - test( - '#1 Fill in card number that will trigger addition of KCP fields, ' + - 'then check new iframe field is correctly set up, ' + - 'then complete the form & check component becomes valid', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.5); - // - // // Wait for field to appear in DOM - // await cardPage.numHolder(); - // - // // Fill card field with korean card - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD); - // - // // Does a newly added password securedField now exist with a state.valid entry, a holder and an iframe...? - // await t - // .expect(cardPage.getFromState('valid.encryptedPassword')) - // .eql(false) - // .expect(cardPage.pwdSpan.exists) - // .ok() - // .expect(cardPage.pwdSpan.find('iframe').getAttribute('src')) - // .contains('securedFields.html'); - // - // // ...and can we can type into the iframe? - // await cardPage.kcpUtils.fillPwd(t); - // - // // Check pwd field for value - // await cardPage.kcpUtils.checkPwd(t, TEST_PWD_VALUE); - // - // // // Complete form - // await cardPage.cardUtils.fillDateAndCVC(t); - // await cardPage.kcpUtils.fillTaxNumber(t); - // - // // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - } - ); - - test( - '#2 Fill in card number that will trigger addition of KCP fields, ' + - 'then fill in all KCP details & check card state for taxNumber & password entries, ' + - 'then delete card number and check taxNumber and password state are cleared', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.5); - // - // await cardPage.numHolder(); - // - // // Complete form with korean card number - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD); - // await cardPage.cardUtils.fillDateAndCVC(t); - // await cardPage.kcpUtils.fillTaxNumber(t); - // await cardPage.kcpUtils.fillPwd(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // Expect card state to have tax and pwd elements - // await t.expect(cardPage.getFromState('data.taxNumber')).eql(TEST_TAX_NUMBER_VALUE); - // - // // Extract & decode JWE header - // const JWEToken = await cardPage.getFromState('data.encryptedPassword'); - // const JWETokenArr = JWEToken.split('.'); - // const blobHeader = JWETokenArr[0]; - // const base64Decoded = await cardPage.decodeBase64(blobHeader); - // const headerObj = JSON.parse(base64Decoded); - // - // // Look for expected properties - // await t.expect(JWETokenArr.length).eql(5); // Expected number of components in the JWE token - // - // await t.expect(headerObj.alg).eql(JWE_ALG).expect(headerObj.enc).eql(JWE_CONTENT_ALG).expect(headerObj.version).eql(JWE_VERSION); - // - // // await t.expect(cardPage.getFromState('data.encryptedPassword')).contains('adyenjs_0_1_'); - // - // await t.expect(cardPage.getFromState('valid.taxNumber')).eql(true); - // await t.expect(cardPage.getFromState('valid.encryptedPassword')).eql(true); - // - // // Delete number - // await cardPage.cardUtils.deleteCardNumber(t); - // - // // Expect card state's tax and pwd elements to have been cleared/reset - // await t.expect(cardPage.getFromState('data.taxNumber')).eql(undefined); - // await t.expect(cardPage.getFromState('data.encryptedPassword')).eql(undefined); - // - // await t.expect(cardPage.getFromState('valid.taxNumber')).eql(false); - // await t.expect(cardPage.getFromState('valid.encryptedPassword')).eql(false); - // - // // Expect card to no longer be valid - // await t.expect(cardPage.getFromState('isValid')).eql(false); - } - ); - - test( - '#3 Fill in card number that will trigger addition of KCP fields, ' + - 'then complete form and expect component to be valid & to be able to pay,' + - 'then replace card number with non-korean card and expect component to be valid & to be able to pay', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.5); - // - // await cardPage.numHolder(); - // - // // handler for alert that's triggered on successful payment - // await t.setNativeDialogHandler(() => true); - // - // // Complete form with korean card number - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD); - // await cardPage.cardUtils.fillDateAndCVC(t); - // await cardPage.kcpUtils.fillTaxNumber(t); - // await cardPage.kcpUtils.fillPwd(t); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // click pay - // await t - // .click(cardPage.payButton) - // // no errors - // .expect(cardPage.numLabelTextError.exists) - // .notOk(); - // - // // Replace number with non-korean card - // await cardPage.cardUtils.fillCardNumber(t, REGULAR_TEST_CARD, 'replace'); - // - // // Expect card to now be valid - // await t.expect(cardPage.getFromState('isValid')).eql(true); - // - // // click pay - // await t - // .click(cardPage.payButton) - // // no errors - // .expect(cardPage.numLabelTextError.exists) - // .notOk() - // .wait(1000); - } - ); - - test( - '#4 Fill in card number that will trigger addition of KCP fields, ' + - 'then complete form except for password field,' + - 'expect component not to be valid and for password field to show error', - async () => { - // For some reason, at full speed, testcafe can fail to fill in the taxNumber correctly - // await t.setTestSpeed(0.5); - // - // await cardPage.numHolder(); - // - // // Complete form with korean card number - // await cardPage.cardUtils.fillCardNumber(t, KOREAN_TEST_CARD); - // await cardPage.cardUtils.fillDateAndCVC(t); - // await cardPage.kcpUtils.fillTaxNumber(t); - // - // // Expect card to not be valid - // await t.expect(cardPage.getFromState('isValid')).eql(false); - // - // // click pay - // await t - // .click(cardPage.payButton) - // // Expect error on password field - // .expect(cardPage.pwdErrorText.exists) - // .ok(); - } - ); -}); diff --git a/packages/lib/storybook/stories/cards/Card.stories.tsx b/packages/lib/storybook/stories/cards/Card.stories.tsx index 2741afcb5b..4fd713929e 100644 --- a/packages/lib/storybook/stories/cards/Card.stories.tsx +++ b/packages/lib/storybook/stories/cards/Card.stories.tsx @@ -127,9 +127,10 @@ export const WithInstallments: CardStory = { } }; -export const KCP: CardStory = { +export const WithKCP: CardStory = { render: createCardComponent, args: { + countryCode: 'KR', componentConfiguration: { ...{ brands: ['mc', 'visa', 'amex', 'bcmc', 'maestro', 'korean_local_card'] }, _disableClickToPay: true, @@ -137,8 +138,7 @@ export const KCP: CardStory = { // Just set koreanAuthenticationRequired if KCP fields should only show if korean_local_card entered configuration: { koreanAuthenticationRequired: true - }, - countryCode: 'KR' + } } } };