diff --git a/package.json b/package.json index e3909134..fd723cd9 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,8 @@ "dependencies": { "@commercelayer/js-auth": "^6.3.0", "@commercelayer/organization-config": "^1.4.8", - "@commercelayer/react-components": "4.13.3", - "@commercelayer/sdk": "^6.0.2", + "@commercelayer/react-components": "^4.14.3", + "@commercelayer/sdk": "^6.9.1", "@faker-js/faker": "^8.4.1", "@headlessui/react": "^1.7.19", "@next/bundle-analyzer": "^14.2.4", @@ -132,7 +132,7 @@ "eslint-plugin-tailwind": "^0.2.1", "npm-check-updates": "^16.14.20", "prettier": "^3.3.2", - "semantic-release": "^23.1.1", + "semantic-release": "^24.0.0", "serve": "^14.2.3", "stylelint": "^16.6.1", "stylelint-config-standard": "^36.0.1" @@ -150,4 +150,4 @@ "cacheDirectories": [ ".next/cache" ] -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d833dbb3..cbff81b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,11 +20,11 @@ importers: specifier: ^1.4.8 version: 1.4.8(eslint@8.57.0)(typescript@5.5.3) '@commercelayer/react-components': - specifier: 4.13.3 - version: 4.13.3(eslint@8.57.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.3) + specifier: ^4.14.3 + version: 4.14.3(eslint@8.57.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.3) '@commercelayer/sdk': - specifier: ^6.0.2 - version: 6.0.2 + specifier: ^6.9.1 + version: 6.9.1 '@faker-js/faker': specifier: ^8.4.1 version: 8.4.1 @@ -127,22 +127,22 @@ importers: devDependencies: '@semantic-release/changelog': specifier: ^6.0.3 - version: 6.0.3(semantic-release@23.1.1(typescript@5.5.3)) + version: 6.0.3(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/commit-analyzer': specifier: ^13.0.0 - version: 13.0.0(semantic-release@23.1.1(typescript@5.5.3)) + version: 13.0.0(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/git': specifier: ^10.0.1 - version: 10.0.1(semantic-release@23.1.1(typescript@5.5.3)) + version: 10.0.1(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/github': specifier: ^10.1.0 - version: 10.1.0(semantic-release@23.1.1(typescript@5.5.3)) + version: 10.1.0(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/npm': specifier: ^12.0.1 - version: 12.0.1(semantic-release@23.1.1(typescript@5.5.3)) + version: 12.0.1(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/release-notes-generator': specifier: ^14.0.1 - version: 14.0.1(semantic-release@23.1.1(typescript@5.5.3)) + version: 14.0.1(semantic-release@24.0.0(typescript@5.5.3)) '@typescript-eslint/eslint-plugin': specifier: ^7.15.0 version: 7.15.0(@typescript-eslint/parser@7.15.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) @@ -189,8 +189,8 @@ importers: specifier: ^3.3.2 version: 3.3.2 semantic-release: - specifier: ^23.1.1 - version: 23.1.1(typescript@5.5.3) + specifier: ^24.0.0 + version: 24.0.0(typescript@5.5.3) serve: specifier: ^14.2.3 version: 14.2.3 @@ -398,13 +398,17 @@ packages: eslint: '>=8.0' typescript: '>=5.0' - '@commercelayer/react-components@4.13.3': - resolution: {integrity: sha512-IkezpwVlbyrR0Y5IWe84SgAaxtITa4hd/q107TpU9mfa0my9MRDaI3te+IezbGK8NWCiRLVmO56aCeKNXFgbfw==} + '@commercelayer/react-components@4.14.3': + resolution: {integrity: sha512-bZN9buLkpWhWdQq2L5LEj7Io4qf8GSqXoGQtuC67BKSUWOPXiLpZv91kOUOfDHo8+ZhxnwuEPKBKzGmHXwcjrw==} peerDependencies: react: '>=18.0.0' - '@commercelayer/sdk@6.0.2': - resolution: {integrity: sha512-iHdZWb/Lfy3OFUkggeW800155yF464bcIIPrUNV6HTE9NZAbkzvB3K8Z8UGnm4QqskzaByrX36zAVrbI9aUWYQ==} + '@commercelayer/sdk@6.9.0': + resolution: {integrity: sha512-9UN+VKHvVRZuKMRyv2FlEfqARFNiM+OGGsECsThCt8fo/rpo8qD6MGQm+1FNaLYpQBDAJRZABgQVKOXNbfuxng==} + engines: {node: '>=20'} + + '@commercelayer/sdk@6.9.1': + resolution: {integrity: sha512-mRBM6dRASxPs/G6RMZzDXSPIZxONpF2sHTZhHjK5bWROtLYB0VF/5c9z5v2T/X+KlC5xxntz03Yxi1gHAgm5+g==} engines: {node: '>=20'} '@csstools/css-parser-algorithms@2.7.1': @@ -706,12 +710,6 @@ packages: peerDependencies: semantic-release: '>=18.0.0' - '@semantic-release/commit-analyzer@12.0.0': - resolution: {integrity: sha512-qG+md5gdes+xa8zP7lIo1fWE17zRdO8yMCaxh9lyL65TQleoSv8WHHOqRURfghTytUh+NpkSyBprQ5hrkxOKVQ==} - engines: {node: '>=20.8.1'} - peerDependencies: - semantic-release: '>=20.1.0' - '@semantic-release/commit-analyzer@13.0.0': resolution: {integrity: sha512-KtXWczvTAB1ZFZ6B4O+w8HkfYm/OgQb1dUGNFZtDgQ0csggrmkq8sTxhd+lwGF8kMb59/RnG9o4Tn7M/I8dQ9Q==} engines: {node: '>=20.8.1'} @@ -744,12 +742,6 @@ packages: peerDependencies: semantic-release: '>=20.1.0' - '@semantic-release/release-notes-generator@13.0.0': - resolution: {integrity: sha512-LEeZWb340keMYuREMyxrODPXJJ0JOL8D/mCl74B4LdzbxhtXV2LrPN2QBEcGJrlQhoqLO0RhxQb6masHytKw+A==} - engines: {node: '>=20.8.1'} - peerDependencies: - semantic-release: '>=20.1.0' - '@semantic-release/release-notes-generator@14.0.1': resolution: {integrity: sha512-K0w+5220TM4HZTthE5dDpIuFrnkN1NfTGPidJFm04ULT1DEZ9WG89VNXN7F0c+6nMEpWgqmPvb7vY7JkB2jyyA==} engines: {node: '>=20.8.1'} @@ -787,8 +779,8 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@stripe/stripe-js@3.5.0': - resolution: {integrity: sha512-pKS3wZnJoL1iTyGBXAvCwduNNeghJHY6QSRSNNvpYnrrQrLZ6Owsazjyynu0e0ObRgks0i7Rv+pe2M7/MBTZpQ==} + '@stripe/stripe-js@4.1.0': + resolution: {integrity: sha512-HhstGRUz/4JdbZpb26OcOf8Qb/cFR02arvHvgz4sPFLSnI6ZNHC53Jc6JP/FGNwxtrF719YyUnK0gGy4oyhucQ==} engines: {node: '>=12.16'} '@swc/counter@0.1.3': @@ -990,10 +982,6 @@ packages: '@zeit/schemas@2.36.0': resolution: {integrity: sha512-7kjMwcChYEzMKjeex9ZFXkt1AyNov9R5HZtjBKVsmVpw7pa7ZtlCGvCBC2vnnXctaYN+aRI61HjIqeetZW5ROg==} - JSONStream@1.3.5: - resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} - hasBin: true - abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} @@ -1472,37 +1460,19 @@ packages: resolution: {integrity: sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==} engines: {node: '>= 0.6'} - conventional-changelog-angular@7.0.0: - resolution: {integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==} - engines: {node: '>=16'} - conventional-changelog-angular@8.0.0: resolution: {integrity: sha512-CLf+zr6St0wIxos4bmaKHRXWAcsCXrJU6F4VdNDrGRK3B8LDLKoX3zuMV5GhtbGkVR/LohZ6MT6im43vZLSjmA==} engines: {node: '>=18'} - conventional-changelog-writer@7.0.1: - resolution: {integrity: sha512-Uo+R9neH3r/foIvQ0MKcsXkX642hdm9odUp7TqgFS7BsalTcjzRlIfWZrZR1gbxOozKucaKt5KAbjW8J8xRSmA==} - engines: {node: '>=16'} - hasBin: true - conventional-changelog-writer@8.0.0: resolution: {integrity: sha512-TQcoYGRatlAnT2qEWDON/XSfnVG38JzA7E0wcGScu7RElQBkg9WWgZd1peCWFcWDh1xfb2CfsrcvOn1bbSzztA==} engines: {node: '>=18'} hasBin: true - conventional-commits-filter@4.0.0: - resolution: {integrity: sha512-rnpnibcSOdFcdclpFwWa+pPlZJhXE7l+XK04zxhbWrhgpR96h33QLz8hITTXbcYICxVr3HZFtbtUAQ+4LdBo9A==} - engines: {node: '>=16'} - conventional-commits-filter@5.0.0: resolution: {integrity: sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==} engines: {node: '>=18'} - conventional-commits-parser@5.0.0: - resolution: {integrity: sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==} - engines: {node: '>=16'} - hasBin: true - conventional-commits-parser@6.0.0: resolution: {integrity: sha512-TbsINLp48XeMXR8EvGjTnKGsZqBemisPoyWESlpRyR8lif0lcwzqz+NMtYSj1ooF/WYjSuu7wX0CtdeeMEQAmA==} engines: {node: '>=18'} @@ -2101,10 +2071,6 @@ packages: resolution: {integrity: sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==} engines: {node: '>=4'} - figures@6.0.1: - resolution: {integrity: sha512-0oY/olScYD4IhQ8u//gCPA4F3mlTn2dacYmiDm/mbDQvpmLjV4uH+zhsQ5IyXRyvqkvtUkXkNdGvg5OFJTCsuQ==} - engines: {node: '>=18'} - figures@6.1.0: resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} engines: {node: '>=18'} @@ -2791,10 +2757,6 @@ packages: resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} engines: {node: '>= 0.4'} - is-text-path@2.0.0: - resolution: {integrity: sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==} - engines: {node: '>=8'} - is-typed-array@1.1.10: resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==} engines: {node: '>= 0.4'} @@ -2910,9 +2872,6 @@ packages: json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - json-stringify-safe@5.0.1: - resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} - json5@1.0.2: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true @@ -3069,10 +3028,6 @@ packages: mdn-data@2.0.30: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} - meow@12.1.1: - resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} - engines: {node: '>=16.10'} - meow@13.2.0: resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} engines: {node: '>=18'} @@ -3348,10 +3303,6 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} - npm-run-path@5.1.0: - resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - npm-run-path@5.3.0: resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -3926,11 +3877,6 @@ packages: resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==} engines: {node: '>=18'} - read-pkg-up@11.0.0: - resolution: {integrity: sha512-LOVbvF1Q0SZdjClSefZ0Nz5z8u+tIE7mV5NibzmE9VYmDe9CaBbAVtz1veOSZbofrdsilxuDAYnFenukZVp8/Q==} - engines: {node: '>=18'} - deprecated: Renamed to read-package-up - read-pkg@9.0.0: resolution: {integrity: sha512-SBoBio4xhJmlF4xs9IBliWZGSbDAnrOfQkLGL7xB+RYEUZNAN2LlNkzO45B7gc7c2dLMX987bhHAaJ/LG3efeQ==} engines: {node: '>=18'} @@ -4103,8 +4049,8 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} - semantic-release@23.1.1: - resolution: {integrity: sha512-qqJDBhbtHsjUEMsojWKGuL5lQFCJuPtiXKEIlFKyTzDDGTAE/oyvznaP8GeOr5PvcqBJ6LQz4JCENWPLeehSpA==} + semantic-release@24.0.0: + resolution: {integrity: sha512-v46CRPw+9eI3ZuYGF2oAjqPqsfbnfFTwLBgQsv/lch4goD09ytwOTESMN4QIrx/wPLxUGey60/NMx+ANQtWRsA==} engines: {node: '>=20.8.1'} hasBin: true @@ -4275,10 +4221,6 @@ packages: split2@1.0.0: resolution: {integrity: sha512-NKywug4u4pX/AZBB1FCPzZ6/7O+Xhz1qMVbzTvvKvikjO99oPN87SkK08mEY9P63/5lWjK+wgOOgApnTg5r6qg==} - split2@4.2.0: - resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} - engines: {node: '>= 10.x'} - sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} @@ -4492,10 +4434,6 @@ packages: resolution: {integrity: sha512-B2I9X7+o2wOaW4r/CWMkpOO9mdiTRCxXNgob6iGvPmfPWgH/KyUD6Uy5crtWBxIBe3YrNZKR2lSzv1JJKWD4vA==} engines: {node: '>=14.16'} - text-extensions@2.4.0: - resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} - engines: {node: '>=8'} - text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -5083,13 +5021,13 @@ snapshots: merge-anything: 5.1.7 typescript: 5.5.3 - '@commercelayer/react-components@4.13.3(eslint@8.57.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.3)': + '@commercelayer/react-components@4.14.3(eslint@8.57.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.3)': dependencies: '@adyen/adyen-web': 5.66.1 '@commercelayer/organization-config': 1.4.8(eslint@8.57.0)(typescript@5.5.3) - '@commercelayer/sdk': 6.0.2 - '@stripe/react-stripe-js': 2.7.3(@stripe/stripe-js@3.5.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@stripe/stripe-js': 3.5.0 + '@commercelayer/sdk': 6.9.0 + '@stripe/react-stripe-js': 2.7.3(@stripe/stripe-js@4.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@stripe/stripe-js': 4.1.0 '@tanstack/react-table': 8.19.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/iframe-resizer': 3.5.13 axios: 1.7.2 @@ -5106,7 +5044,9 @@ snapshots: - react-dom - typescript - '@commercelayer/sdk@6.0.2': {} + '@commercelayer/sdk@6.9.0': {} + + '@commercelayer/sdk@6.9.1': {} '@csstools/css-parser-algorithms@2.7.1(@csstools/css-tokenizer@2.4.1)': dependencies: @@ -5388,28 +5328,15 @@ snapshots: '@sec-ant/readable-stream@0.4.1': {} - '@semantic-release/changelog@6.0.3(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/changelog@6.0.3(semantic-release@24.0.0(typescript@5.5.3))': dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 fs-extra: 11.1.1 lodash: 4.17.21 - semantic-release: 23.1.1(typescript@5.5.3) - - '@semantic-release/commit-analyzer@12.0.0(semantic-release@23.1.1(typescript@5.5.3))': - dependencies: - conventional-changelog-angular: 7.0.0 - conventional-commits-filter: 4.0.0 - conventional-commits-parser: 5.0.0 - debug: 4.3.4 - import-from-esm: 1.3.3 - lodash-es: 4.17.21 - micromatch: 4.0.5 - semantic-release: 23.1.1(typescript@5.5.3) - transitivePeerDependencies: - - supports-color + semantic-release: 24.0.0(typescript@5.5.3) - '@semantic-release/commit-analyzer@13.0.0(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/commit-analyzer@13.0.0(semantic-release@24.0.0(typescript@5.5.3))': dependencies: conventional-changelog-angular: 8.0.0 conventional-changelog-writer: 8.0.0 @@ -5419,7 +5346,7 @@ snapshots: import-from-esm: 1.3.3 lodash-es: 4.17.21 micromatch: 4.0.7 - semantic-release: 23.1.1(typescript@5.5.3) + semantic-release: 24.0.0(typescript@5.5.3) transitivePeerDependencies: - supports-color @@ -5427,7 +5354,7 @@ snapshots: '@semantic-release/error@4.0.0': {} - '@semantic-release/git@10.0.1(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/git@10.0.1(semantic-release@24.0.0(typescript@5.5.3))': dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 @@ -5437,11 +5364,11 @@ snapshots: lodash: 4.17.21 micromatch: 4.0.5 p-reduce: 2.1.0 - semantic-release: 23.1.1(typescript@5.5.3) + semantic-release: 24.0.0(typescript@5.5.3) transitivePeerDependencies: - supports-color - '@semantic-release/github@10.1.0(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/github@10.1.0(semantic-release@24.0.0(typescript@5.5.3))': dependencies: '@octokit/core': 6.0.1 '@octokit/plugin-paginate-rest': 11.0.0(@octokit/core@6.0.1) @@ -5458,12 +5385,12 @@ snapshots: lodash-es: 4.17.21 mime: 4.0.1 p-filter: 4.1.0 - semantic-release: 23.1.1(typescript@5.5.3) + semantic-release: 24.0.0(typescript@5.5.3) url-join: 5.0.0 transitivePeerDependencies: - supports-color - '@semantic-release/npm@12.0.1(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/npm@12.0.1(semantic-release@24.0.0(typescript@5.5.3))': dependencies: '@semantic-release/error': 4.0.0 aggregate-error: 5.0.0 @@ -5476,27 +5403,11 @@ snapshots: rc: 1.2.8 read-pkg: 9.0.0 registry-auth-token: 5.0.2 - semantic-release: 23.1.1(typescript@5.5.3) + semantic-release: 24.0.0(typescript@5.5.3) semver: 7.6.0 tempy: 3.0.0 - '@semantic-release/release-notes-generator@13.0.0(semantic-release@23.1.1(typescript@5.5.3))': - dependencies: - conventional-changelog-angular: 7.0.0 - conventional-changelog-writer: 7.0.1 - conventional-commits-filter: 4.0.0 - conventional-commits-parser: 5.0.0 - debug: 4.3.4 - get-stream: 7.0.0 - import-from-esm: 1.3.3 - into-stream: 7.0.0 - lodash-es: 4.17.21 - read-pkg-up: 11.0.0 - semantic-release: 23.1.1(typescript@5.5.3) - transitivePeerDependencies: - - supports-color - - '@semantic-release/release-notes-generator@14.0.1(semantic-release@23.1.1(typescript@5.5.3))': + '@semantic-release/release-notes-generator@14.0.1(semantic-release@24.0.0(typescript@5.5.3))': dependencies: conventional-changelog-angular: 8.0.0 conventional-changelog-writer: 8.0.0 @@ -5508,7 +5419,7 @@ snapshots: into-stream: 7.0.0 lodash-es: 4.17.21 read-package-up: 11.0.0 - semantic-release: 23.1.1(typescript@5.5.3) + semantic-release: 24.0.0(typescript@5.5.3) transitivePeerDependencies: - supports-color @@ -5529,14 +5440,14 @@ snapshots: '@sindresorhus/merge-streams@4.0.0': {} - '@stripe/react-stripe-js@2.7.3(@stripe/stripe-js@3.5.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@stripe/react-stripe-js@2.7.3(@stripe/stripe-js@4.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@stripe/stripe-js': 3.5.0 + '@stripe/stripe-js': 4.1.0 prop-types: 15.8.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@stripe/stripe-js@3.5.0': {} + '@stripe/stripe-js@4.1.0': {} '@swc/counter@0.1.3': {} @@ -5759,11 +5670,6 @@ snapshots: '@zeit/schemas@2.36.0': {} - JSONStream@1.3.5: - dependencies: - jsonparse: 1.3.1 - through: 2.3.8 - abbrev@1.1.1: {} accepts@1.3.8: @@ -6343,23 +6249,10 @@ snapshots: content-disposition@0.5.2: {} - conventional-changelog-angular@7.0.0: - dependencies: - compare-func: 2.0.0 - conventional-changelog-angular@8.0.0: dependencies: compare-func: 2.0.0 - conventional-changelog-writer@7.0.1: - dependencies: - conventional-commits-filter: 4.0.0 - handlebars: 4.7.7 - json-stringify-safe: 5.0.1 - meow: 12.1.1 - semver: 7.6.0 - split2: 4.2.0 - conventional-changelog-writer@8.0.0: dependencies: '@types/semver': 7.5.8 @@ -6368,17 +6261,8 @@ snapshots: meow: 13.2.0 semver: 7.6.0 - conventional-commits-filter@4.0.0: {} - conventional-commits-filter@5.0.0: {} - conventional-commits-parser@5.0.0: - dependencies: - JSONStream: 1.3.5 - is-text-path: 2.0.0 - meow: 12.1.1 - split2: 4.2.0 - conventional-commits-parser@6.0.0: dependencies: meow: 13.2.0 @@ -7251,7 +7135,7 @@ snapshots: human-signals: 5.0.0 is-stream: 3.0.0 merge-stream: 2.0.0 - npm-run-path: 5.1.0 + npm-run-path: 5.3.0 onetime: 6.0.0 signal-exit: 4.1.0 strip-final-newline: 3.0.0 @@ -7311,10 +7195,6 @@ snapshots: dependencies: escape-string-regexp: 1.0.5 - figures@6.0.1: - dependencies: - is-unicode-supported: 2.0.0 - figures@6.1.0: dependencies: is-unicode-supported: 2.0.0 @@ -8019,10 +7899,6 @@ snapshots: dependencies: has-symbols: 1.0.3 - is-text-path@2.0.0: - dependencies: - text-extensions: 2.4.0 - is-typed-array@1.1.10: dependencies: available-typed-arrays: 1.0.5 @@ -8129,8 +8005,6 @@ snapshots: json-stable-stringify-without-jsonify@1.0.1: {} - json-stringify-safe@5.0.1: {} - json5@1.0.2: dependencies: minimist: 1.2.8 @@ -8280,8 +8154,6 @@ snapshots: mdn-data@2.0.30: {} - meow@12.1.1: {} - meow@13.2.0: {} merge-anything@5.1.7: @@ -8590,10 +8462,6 @@ snapshots: dependencies: path-key: 3.1.1 - npm-run-path@5.1.0: - dependencies: - path-key: 4.0.0 - npm-run-path@5.3.0: dependencies: path-key: 4.0.0 @@ -9082,12 +8950,6 @@ snapshots: read-pkg: 9.0.0 type-fest: 4.7.1 - read-pkg-up@11.0.0: - dependencies: - find-up-simple: 1.0.0 - read-pkg: 9.0.0 - type-fest: 4.7.1 - read-pkg@9.0.0: dependencies: '@types/normalize-package-data': 2.4.4 @@ -9279,19 +9141,19 @@ snapshots: dependencies: loose-envify: 1.4.0 - semantic-release@23.1.1(typescript@5.5.3): + semantic-release@24.0.0(typescript@5.5.3): dependencies: - '@semantic-release/commit-analyzer': 12.0.0(semantic-release@23.1.1(typescript@5.5.3)) + '@semantic-release/commit-analyzer': 13.0.0(semantic-release@24.0.0(typescript@5.5.3)) '@semantic-release/error': 4.0.0 - '@semantic-release/github': 10.1.0(semantic-release@23.1.1(typescript@5.5.3)) - '@semantic-release/npm': 12.0.1(semantic-release@23.1.1(typescript@5.5.3)) - '@semantic-release/release-notes-generator': 13.0.0(semantic-release@23.1.1(typescript@5.5.3)) + '@semantic-release/github': 10.1.0(semantic-release@24.0.0(typescript@5.5.3)) + '@semantic-release/npm': 12.0.1(semantic-release@24.0.0(typescript@5.5.3)) + '@semantic-release/release-notes-generator': 14.0.1(semantic-release@24.0.0(typescript@5.5.3)) aggregate-error: 5.0.0 cosmiconfig: 9.0.0(typescript@5.5.3) debug: 4.3.4 env-ci: 11.0.0 execa: 9.1.0 - figures: 6.0.1 + figures: 6.1.0 find-versions: 6.0.0 get-stream: 6.0.1 git-log-parser: 1.2.0 @@ -9301,7 +9163,7 @@ snapshots: lodash-es: 4.17.21 marked: 12.0.0 marked-terminal: 7.0.0(marked@12.0.0) - micromatch: 4.0.5 + micromatch: 4.0.7 p-each-series: 3.0.0 p-reduce: 3.0.0 read-package-up: 11.0.0 @@ -9511,8 +9373,6 @@ snapshots: dependencies: through2: 2.0.5 - split2@4.2.0: {} - sprintf-js@1.0.3: {} sprintf-js@1.1.3: {} @@ -9822,8 +9682,6 @@ snapshots: type-fest: 2.19.0 unique-string: 3.0.0 - text-extensions@2.4.0: {} - text-table@0.2.0: {} thenify-all@1.6.0: diff --git a/specs/e2e/payments-klarna.spec.ts b/specs/e2e/payments-klarna.spec.ts index 281de639..e5f535b0 100644 --- a/specs/e2e/payments-klarna.spec.ts +++ b/specs/e2e/payments-klarna.spec.ts @@ -5,54 +5,98 @@ import { test, expect } from "../fixtures/tokenizedPage" const customerEmail = faker.internet.email().toLocaleLowerCase() -test.use({ - defaultParams: { - order: "with-items", - lineItemsAttributes: [ - { sku_code: "BABYONBU000000E63E7412MX", quantity: 2 }, - ], - orderAttributes: { - customer_email: customerEmail, +test.describe("with physical product", () => { + test.use({ + defaultParams: { + order: "with-items", + lineItemsAttributes: [ + { sku_code: "BABYONBU000000E63E7412MX", quantity: 2 }, + ], + orderAttributes: { + customer_email: customerEmail, + }, }, - }, -}) + }) + + test("should execute a checkout with klarna", async ({ checkoutPage }) => { + await checkoutPage.checkOrderSummary("Order Summary") + + await checkoutPage.setCustomerMail() + await checkoutPage.setBillingAddress({ + ...euAddress2, + phone: "+393473399466", + }) + + await checkoutPage.checkStep("Customer", "open") + + await checkoutPage.save("Customer") + + await checkoutPage.checkStep("Shipping", "open") + + await checkoutPage.checkShippingSummary("To be calculated") + + await expect( + checkoutPage.page.locator("text=Standard Shipping") + ).toBeVisible() + await checkoutPage.selectShippingMethod({ text: "Standard Shipping" }) + + await checkoutPage.checkShippingSummary("FREE") + await checkoutPage.save("Shipping") -test.skip("should execute a checkout with klarna", async ({ checkoutPage }) => { - await checkoutPage.checkOrderSummary("Order Summary") + await checkoutPage.checkStep("Payment", "open") - await checkoutPage.setCustomerMail() - await checkoutPage.setBillingAddress({ - ...euAddress2, - phone: "+393473399466", + await checkoutPage.selectPayment("klarna") + + await checkoutPage.save("Payment", undefined, true) + + await checkoutPage.completePayment({ type: "klarna" }) + + await checkoutPage.checkPaymentRecap("Klarna") + + await checkoutPage.page.reload() + + await checkoutPage.checkPaymentRecap("Klarna") }) +}) - await checkoutPage.checkStep("Customer", "open") +test.describe("with digital product", () => { + test.use({ + defaultParams: { + order: "with-items", + lineItemsAttributes: [{ sku_code: "NFTEBOOK", quantity: 2 }], + orderAttributes: { + customer_email: customerEmail, + }, + }, + }) - await checkoutPage.save("Customer") + test("should execute a checkout with klarna", async ({ checkoutPage }) => { + await checkoutPage.checkOrderSummary("Order Summary") - await checkoutPage.checkStep("Shipping", "open") + await checkoutPage.setCustomerMail() + await checkoutPage.setBillingAddress({ + ...euAddress2, + phone: "+393473399466", + }) - await checkoutPage.checkShippingSummary("To be calculated") + await checkoutPage.checkStep("Customer", "open") - await expect( - checkoutPage.page.locator("text=Standard Shipping") - ).toBeVisible() - await checkoutPage.selectShippingMethod({ text: "Standard Shipping" }) + await checkoutPage.save("Customer") - await checkoutPage.checkShippingSummary("FREE") - await checkoutPage.save("Shipping") + await checkoutPage.checkStep("Shipping", "not_present") - await checkoutPage.checkStep("Payment", "open") + await checkoutPage.checkStep("Payment", "open") - await checkoutPage.selectPayment("klarna") + await checkoutPage.selectPayment("klarna") - await checkoutPage.save("Payment", undefined, true) + await checkoutPage.save("Payment", undefined, true) - await checkoutPage.completePayment({ type: "klarna" }) + await checkoutPage.completePayment({ type: "klarna" }) - await checkoutPage.checkPaymentRecap("Klarna") + await checkoutPage.checkPaymentRecap("Klarna") - await checkoutPage.page.reload() + await checkoutPage.page.reload() - await checkoutPage.checkPaymentRecap("Klarna") + await checkoutPage.checkPaymentRecap("Klarna") + }) }) diff --git a/specs/fixtures/CheckoutPage.ts b/specs/fixtures/CheckoutPage.ts index f9a68733..4f230ba6 100644 --- a/specs/fixtures/CheckoutPage.ts +++ b/specs/fixtures/CheckoutPage.ts @@ -928,7 +928,7 @@ export class CheckoutPage { // const i = this.page.locator("#klarna-apf-iframe") const klarnaIframe = this.page //.frameLocator("#klarna-apf-iframe") - await klarnaIframe + await this.page .getByTestId("kaf-field") .waitFor({ state: "visible" })