From c723447094fb351e839b154e3dd123486c784380 Mon Sep 17 00:00:00 2001 From: Linna <38363056+linnall@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:06:08 -0400 Subject: [PATCH 1/6] fix: use same passkey svg from account kit (#970) --- .../src/components/icons/biometric.tsx | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/examples/ui-demo/src/components/icons/biometric.tsx b/examples/ui-demo/src/components/icons/biometric.tsx index 6023d2bc7f..adad225cf3 100644 --- a/examples/ui-demo/src/components/icons/biometric.tsx +++ b/examples/ui-demo/src/components/icons/biometric.tsx @@ -1,29 +1,19 @@ import { SVGProps } from "react"; export const BiometricIcon = ({ - stroke = "currentColor", + fill = "currentColor", ...props }: JSX.IntrinsicAttributes & SVGProps) => ( - - - + + + ); From 714da4652f1b55a763d77cc5a509c04054aab384 Mon Sep 17 00:00:00 2001 From: David Philipson Date: Wed, 18 Sep 2024 13:19:37 -0700 Subject: [PATCH 2/6] fix: don't ignore oauthCallbackUrl config option (#971) --- account-kit/core/src/createConfig.ts | 2 ++ account-kit/signer/src/client/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/account-kit/core/src/createConfig.ts b/account-kit/core/src/createConfig.ts index a96645b50e..ec6239781b 100644 --- a/account-kit/core/src/createConfig.ts +++ b/account-kit/core/src/createConfig.ts @@ -45,6 +45,7 @@ export const createConfig = ( ssr, storage, connectors, + oauthCallbackUrl, enablePopupOauth, ...connectionConfig } = params; @@ -82,6 +83,7 @@ export const createConfig = ( iframeConfig, rootOrgId, rpId, + oauthCallbackUrl, enablePopupOauth, }, sessionConfig, diff --git a/account-kit/signer/src/client/index.ts b/account-kit/signer/src/client/index.ts index 0c88e5df28..2c9c52b8c7 100644 --- a/account-kit/signer/src/client/index.ts +++ b/account-kit/signer/src/client/index.ts @@ -467,7 +467,7 @@ export class AlchemySignerWebClient extends BaseSignerClient const checkCloseIntervalId = setInterval(() => { if (popup?.closed) { cleanup(); - reject(new Error("Oauth cancelled")); + reject(new Error("OAuth cancelled")); } }, CHECK_CLOSE_INTERVAL); From d786e35ceed57e8262a1904c95364203c8c3a3fc Mon Sep 17 00:00:00 2001 From: David Philipson Date: Wed, 18 Sep 2024 13:22:54 -0700 Subject: [PATCH 3/6] chore(release): publish v4.0.0-beta.5 [skip-ci] --- CHANGELOG.md | 7 +++++++ aa-sdk/core/CHANGELOG.md | 4 ++++ aa-sdk/core/package.json | 2 +- aa-sdk/core/src/version.ts | 2 +- aa-sdk/ethers/CHANGELOG.md | 4 ++++ aa-sdk/ethers/package.json | 6 +++--- account-kit/core/CHANGELOG.md | 6 ++++++ account-kit/core/package.json | 8 ++++---- account-kit/core/src/version.ts | 2 +- account-kit/infra/CHANGELOG.md | 4 ++++ account-kit/infra/package.json | 4 ++-- account-kit/infra/src/version.ts | 2 +- account-kit/plugingen/CHANGELOG.md | 4 ++++ account-kit/plugingen/package.json | 4 ++-- account-kit/plugingen/src/version.ts | 2 +- account-kit/react/CHANGELOG.md | 4 ++++ account-kit/react/package.json | 6 +++--- account-kit/react/src/version.ts | 2 +- account-kit/signer/CHANGELOG.md | 6 ++++++ account-kit/signer/package.json | 4 ++-- account-kit/signer/src/version.ts | 2 +- account-kit/smart-contracts/CHANGELOG.md | 4 ++++ account-kit/smart-contracts/package.json | 8 ++++---- lerna.json | 2 +- 24 files changed, 71 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 134c2dc27f..fa52704413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +### Bug Fixes + +- don't ignore oauthCallbackUrl config option ([#971](https://github.com/alchemyplatform/aa-sdk/issues/971)) ([714da46](https://github.com/alchemyplatform/aa-sdk/commit/714da4652f1b55a763d77cc5a509c04054aab384)) +- use same passkey svg from account kit ([#970](https://github.com/alchemyplatform/aa-sdk/issues/970)) ([c723447](https://github.com/alchemyplatform/aa-sdk/commit/c723447094fb351e839b154e3dd123486c784380)) + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) ### Features diff --git a/aa-sdk/core/CHANGELOG.md b/aa-sdk/core/CHANGELOG.md index 2fbe8f1ba9..982040ab37 100644 --- a/aa-sdk/core/CHANGELOG.md +++ b/aa-sdk/core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @aa-sdk/core + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) **Note:** Version bump only for package @aa-sdk/core diff --git a/aa-sdk/core/package.json b/aa-sdk/core/package.json index b0e0bfb03b..68bd3e9efb 100644 --- a/aa-sdk/core/package.json +++ b/aa-sdk/core/package.json @@ -1,7 +1,7 @@ { "name": "@aa-sdk/core", "license": "MIT", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts", "author": "Alchemy", "type": "module", diff --git a/aa-sdk/core/src/version.ts b/aa-sdk/core/src/version.ts index b0a270acfe..26e5449705 100644 --- a/aa-sdk/core/src/version.ts +++ b/aa-sdk/core/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/aa-sdk/ethers/CHANGELOG.md b/aa-sdk/ethers/CHANGELOG.md index 635a48388f..0b924e70de 100644 --- a/aa-sdk/ethers/CHANGELOG.md +++ b/aa-sdk/ethers/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @aa-sdk/ethers + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) **Note:** Version bump only for package @aa-sdk/ethers diff --git a/aa-sdk/ethers/package.json b/aa-sdk/ethers/package.json index 121102a58a..c1b0679dc6 100644 --- a/aa-sdk/ethers/package.json +++ b/aa-sdk/ethers/package.json @@ -1,7 +1,7 @@ { "name": "@aa-sdk/ethers", "license": "MIT", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "Ethers.js wrapper for @aa-sdk/core", "author": "Alchemy", "type": "module", @@ -42,7 +42,7 @@ "test:run-e2e": "vitest run --config vitest.config.e2e.ts" }, "devDependencies": { - "@account-kit/smart-contracts": "^4.0.0-beta.4", + "@account-kit/smart-contracts": "^4.0.0-beta.5", "alchemy-sdk": "^3.0.0", "dotenv": "^16.0.3", "typescript": "^5.0.4", @@ -50,7 +50,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.4", + "@aa-sdk/core": "^4.0.0-beta.5", "@ethersproject/abi": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/bytes": "^5.7.0", diff --git a/account-kit/core/CHANGELOG.md b/account-kit/core/CHANGELOG.md index 326662773a..3691e0bcb2 100644 --- a/account-kit/core/CHANGELOG.md +++ b/account-kit/core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +### Bug Fixes + +- don't ignore oauthCallbackUrl config option ([#971](https://github.com/alchemyplatform/aa-sdk/issues/971)) ([714da46](https://github.com/alchemyplatform/aa-sdk/commit/714da4652f1b55a763d77cc5a509c04054aab384)) + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) ### Features diff --git a/account-kit/core/package.json b/account-kit/core/package.json index 49b1f3d7ba..54367627fc 100644 --- a/account-kit/core/package.json +++ b/account-kit/core/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/core", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "Core library for account kit that provides state management and framework indepednent abstractions across infra, Alchemy Signer, and Smart Contracts", "author": "Alchemy", "license": "MIT", @@ -46,9 +46,9 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/infra": "^4.0.0-beta.4", - "@account-kit/signer": "^4.0.0-beta.4", - "@account-kit/smart-contracts": "^4.0.0-beta.4", + "@account-kit/infra": "^4.0.0-beta.5", + "@account-kit/signer": "^4.0.0-beta.5", + "@account-kit/smart-contracts": "^4.0.0-beta.5", "js-cookie": "^3.0.5", "zod": "^3.22.4", "zustand": "^4.5.2" diff --git a/account-kit/core/src/version.ts b/account-kit/core/src/version.ts index b0a270acfe..26e5449705 100644 --- a/account-kit/core/src/version.ts +++ b/account-kit/core/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/account-kit/infra/CHANGELOG.md b/account-kit/infra/CHANGELOG.md index 190536271b..ca073eeb02 100644 --- a/account-kit/infra/CHANGELOG.md +++ b/account-kit/infra/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @account-kit/infra + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) **Note:** Version bump only for package @account-kit/infra diff --git a/account-kit/infra/package.json b/account-kit/infra/package.json index 5d048dad30..f81b096f34 100644 --- a/account-kit/infra/package.json +++ b/account-kit/infra/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/infra", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "adapters for @aa-sdk/core for interacting with alchemy services", "author": "Alchemy", "license": "MIT", @@ -45,7 +45,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.4", + "@aa-sdk/core": "^4.0.0-beta.5", "eventemitter3": "^5.0.1", "zod": "^3.22.4" }, diff --git a/account-kit/infra/src/version.ts b/account-kit/infra/src/version.ts index b0a270acfe..26e5449705 100644 --- a/account-kit/infra/src/version.ts +++ b/account-kit/infra/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/account-kit/plugingen/CHANGELOG.md b/account-kit/plugingen/CHANGELOG.md index 4638986db6..a9b8871c88 100644 --- a/account-kit/plugingen/CHANGELOG.md +++ b/account-kit/plugingen/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @account-kit/plugingen + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) **Note:** Version bump only for package @account-kit/plugingen diff --git a/account-kit/plugingen/package.json b/account-kit/plugingen/package.json index 86652e8e77..a32b1b28b3 100644 --- a/account-kit/plugingen/package.json +++ b/account-kit/plugingen/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/plugingen", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "A CLI tool that enables you to generate TS code for your ERC-6900 plugins", "author": "Alchemy", "license": "MIT", @@ -60,7 +60,7 @@ }, "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.4", + "@aa-sdk/core": "^4.0.0-beta.5", "bundle-require": "^4.0.2", "cac": "^6.7.14", "change-case": "^5.4.3", diff --git a/account-kit/plugingen/src/version.ts b/account-kit/plugingen/src/version.ts index b0a270acfe..26e5449705 100644 --- a/account-kit/plugingen/src/version.ts +++ b/account-kit/plugingen/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/account-kit/react/CHANGELOG.md b/account-kit/react/CHANGELOG.md index e8597d52dd..14cb460bf1 100644 --- a/account-kit/react/CHANGELOG.md +++ b/account-kit/react/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @account-kit/react + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) ### Features diff --git a/account-kit/react/package.json b/account-kit/react/package.json index e4005d4502..be68e90241 100644 --- a/account-kit/react/package.json +++ b/account-kit/react/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/react", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "React components and hooks for using Account Kit", "author": "Alchemy", "license": "MIT", @@ -67,8 +67,8 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/core": "^4.0.0-beta.4", - "@account-kit/infra": "^4.0.0-beta.4", + "@account-kit/core": "^4.0.0-beta.5", + "@account-kit/infra": "^4.0.0-beta.5", "@tanstack/react-form": "^0.19.4", "@tanstack/zod-form-adapter": "^0.19.4", "@wagmi/connectors": "^4.3.9", diff --git a/account-kit/react/src/version.ts b/account-kit/react/src/version.ts index b0a270acfe..26e5449705 100644 --- a/account-kit/react/src/version.ts +++ b/account-kit/react/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/account-kit/signer/CHANGELOG.md b/account-kit/signer/CHANGELOG.md index 700d8ade57..7a21a4c3ff 100644 --- a/account-kit/signer/CHANGELOG.md +++ b/account-kit/signer/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +### Bug Fixes + +- don't ignore oauthCallbackUrl config option ([#971](https://github.com/alchemyplatform/aa-sdk/issues/971)) ([714da46](https://github.com/alchemyplatform/aa-sdk/commit/714da4652f1b55a763d77cc5a509c04054aab384)) + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) ### Features diff --git a/account-kit/signer/package.json b/account-kit/signer/package.json index 51ffc178eb..98f5bd47de 100644 --- a/account-kit/signer/package.json +++ b/account-kit/signer/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/signer", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "Core interfaces and clients for interfacing with the Alchemy Signer API", "author": "Alchemy", "license": "MIT", @@ -49,7 +49,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.4", + "@aa-sdk/core": "^4.0.0-beta.5", "@turnkey/http": "^2.6.2", "@turnkey/iframe-stamper": "^1.0.0", "@turnkey/viem": "^0.4.8", diff --git a/account-kit/signer/src/version.ts b/account-kit/signer/src/version.ts index b0a270acfe..26e5449705 100644 --- a/account-kit/signer/src/version.ts +++ b/account-kit/signer/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "4.0.0-beta.4"; +export const VERSION = "4.0.0-beta.5"; diff --git a/account-kit/smart-contracts/CHANGELOG.md b/account-kit/smart-contracts/CHANGELOG.md index db68e9ec34..6cfee8eb22 100644 --- a/account-kit/smart-contracts/CHANGELOG.md +++ b/account-kit/smart-contracts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) + +**Note:** Version bump only for package @account-kit/smart-contracts + # [4.0.0-beta.4](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2024-09-18) **Note:** Version bump only for package @account-kit/smart-contracts diff --git a/account-kit/smart-contracts/package.json b/account-kit/smart-contracts/package.json index e5d7c090eb..58f4023ce9 100644 --- a/account-kit/smart-contracts/package.json +++ b/account-kit/smart-contracts/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/smart-contracts", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "description": "aa-sdk compatible interfaces for Alchemy Smart Accounts", "author": "Alchemy", "license": "MIT", @@ -46,7 +46,7 @@ "test:run-e2e": "vitest run --config vitest.config.e2e.ts" }, "devDependencies": { - "@account-kit/plugingen": "^4.0.0-beta.4", + "@account-kit/plugingen": "^4.0.0-beta.5", "change-case": "^5.1.2", "dedent": "^1.5.1", "dotenv": "^16.3.1", @@ -68,8 +68,8 @@ "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.4", - "@account-kit/infra": "^4.0.0-beta.4" + "@aa-sdk/core": "^4.0.0-beta.5", + "@account-kit/infra": "^4.0.0-beta.5" }, "peerDependencies": { "viem": "^2.20.0" diff --git a/lerna.json b/lerna.json index e3650ed773..f52b78330d 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "npmClient": "yarn", "conventionalCommits": true, "changelog": true, From fdf7025aec20aca76f4285769d1f650f3636b78e Mon Sep 17 00:00:00 2001 From: Rob <30500864+RobChangCA@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:47:27 -0400 Subject: [PATCH 4/6] fix: fixed bad svg prop names (#968) --- .../react/src/icons/EOAConnectionFailed.tsx | 8 +++--- .../react/src/icons/connectionFailed.tsx | 28 +++++++++---------- .../src/icons/illustrations/added-passkey.tsx | 8 +++--- .../react/src/icons/illustrations/success.tsx | 4 +-- account-kit/react/src/icons/timeout.tsx | 22 +++++++-------- account-kit/react/src/icons/warning.tsx | 4 +-- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/account-kit/react/src/icons/EOAConnectionFailed.tsx b/account-kit/react/src/icons/EOAConnectionFailed.tsx index 301bfded0f..96f9e2255f 100644 --- a/account-kit/react/src/icons/EOAConnectionFailed.tsx +++ b/account-kit/react/src/icons/EOAConnectionFailed.tsx @@ -26,9 +26,9 @@ export const EOAConnectionFailed = () => { width="196" height="292" filterUnits="userSpaceOnUse" - color-interpolation-filters="sRGB" + colorInterpolationFilters="sRGB" > - + { y2="70" gradientUnits="userSpaceOnUse" > - - + + diff --git a/account-kit/react/src/icons/connectionFailed.tsx b/account-kit/react/src/icons/connectionFailed.tsx index 20d103f23f..b42e13508c 100644 --- a/account-kit/react/src/icons/connectionFailed.tsx +++ b/account-kit/react/src/icons/connectionFailed.tsx @@ -40,19 +40,19 @@ export const ConnectionFailed = () => { height="32" > @@ -83,9 +83,9 @@ export const ConnectionFailed = () => { width="215.231" height="314.308" filterUnits="userSpaceOnUse" - color-interpolation-filters="sRGB" + colorInterpolationFilters="sRGB" > - + { y2="70" gradientUnits="userSpaceOnUse" > - - + + { y2="108" gradientUnits="userSpaceOnUse" > - - + + { y2="120" gradientUnits="userSpaceOnUse" > - - + + diff --git a/account-kit/react/src/icons/illustrations/added-passkey.tsx b/account-kit/react/src/icons/illustrations/added-passkey.tsx index e730b1bd9a..9d74e5b102 100644 --- a/account-kit/react/src/icons/illustrations/added-passkey.tsx +++ b/account-kit/react/src/icons/illustrations/added-passkey.tsx @@ -93,7 +93,7 @@ const AddedPasskeyOutlineLight = ({ r="10" fill="white" stroke="currentColor" - stroke-width="2" + strokeWidth="2" /> { { width="215.231" height="314.308" filterUnits="userSpaceOnUse" - color-interpolation-filters="sRGB" + colorInterpolationFilters="sRGB" > - + { y2="70" gradientUnits="userSpaceOnUse" > - - + + { y2="108.308" gradientUnits="userSpaceOnUse" > - - + + { y2="120.308" gradientUnits="userSpaceOnUse" > - - + + diff --git a/account-kit/react/src/icons/warning.tsx b/account-kit/react/src/icons/warning.tsx index 5b0aca62e2..65c5f8e2a4 100644 --- a/account-kit/react/src/icons/warning.tsx +++ b/account-kit/react/src/icons/warning.tsx @@ -10,8 +10,8 @@ export const Warning = () => { ); From 8175962a509cb6e51ced22b1cd199a57fb7305a4 Mon Sep 17 00:00:00 2001 From: David Philipson Date: Wed, 18 Sep 2024 14:12:16 -0700 Subject: [PATCH 5/6] fix: allow useLogout without authModalContext (#972) `useLogout` does not depend on UI components and now will no longer throw an error when used outside an `AuthModalProvider`.` --- account-kit/react/src/components/auth/context.ts | 6 +++++- account-kit/react/src/hooks/useLogout.ts | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/account-kit/react/src/components/auth/context.ts b/account-kit/react/src/components/auth/context.ts index 098a4c78dc..913b2db474 100644 --- a/account-kit/react/src/components/auth/context.ts +++ b/account-kit/react/src/components/auth/context.ts @@ -27,7 +27,7 @@ export const AuthModalContext = createContext( // eslint-disable-next-line jsdoc/require-jsdoc export const useAuthContext = (): AuthContextType => { - const context = useContext(AuthModalContext); + const context = useOptionalAuthContext(); if (!context) { throw new Error( @@ -37,3 +37,7 @@ export const useAuthContext = (): AuthContextType => { return context; }; + +// eslint-disable-next-line jsdoc/require-jsdoc +export const useOptionalAuthContext = (): AuthContextType | undefined => + useContext(AuthModalContext); diff --git a/account-kit/react/src/hooks/useLogout.ts b/account-kit/react/src/hooks/useLogout.ts index 90429bfacb..8f5deccfb7 100644 --- a/account-kit/react/src/hooks/useLogout.ts +++ b/account-kit/react/src/hooks/useLogout.ts @@ -2,7 +2,7 @@ import { disconnect } from "@account-kit/core"; import { useMutation, type UseMutateFunction } from "@tanstack/react-query"; -import { useAuthContext } from "../components/auth/context.js"; +import { useOptionalAuthContext } from "../components/auth/context.js"; import { useAlchemyAccountContext } from "../context.js"; import type { BaseHookMutationArgs } from "../types.js"; @@ -37,7 +37,7 @@ export function useLogout( mutationArgs?: UseLogoutMutationArgs ): UseLogoutResult { const { queryClient, config } = useAlchemyAccountContext(); - const { resetAuthStep } = useAuthContext(); + const authContext = useOptionalAuthContext(); const { mutate: logout, @@ -47,7 +47,7 @@ export function useLogout( { mutationFn: async () => { await disconnect(config); - resetAuthStep(); + authContext?.resetAuthStep(); }, ...mutationArgs, }, From c25850c8617a78ee1956896b64c85db7a9ad6c08 Mon Sep 17 00:00:00 2001 From: David Philipson Date: Wed, 18 Sep 2024 14:25:10 -0700 Subject: [PATCH 6/6] chore(release): publish v4.0.0-beta.6 [skip-ci] --- CHANGELOG.md | 7 +++++++ aa-sdk/core/CHANGELOG.md | 4 ++++ aa-sdk/core/package.json | 2 +- aa-sdk/ethers/CHANGELOG.md | 4 ++++ aa-sdk/ethers/package.json | 6 +++--- account-kit/core/CHANGELOG.md | 4 ++++ account-kit/core/package.json | 8 ++++---- account-kit/infra/CHANGELOG.md | 4 ++++ account-kit/infra/package.json | 4 ++-- account-kit/plugingen/CHANGELOG.md | 4 ++++ account-kit/plugingen/package.json | 4 ++-- account-kit/react/CHANGELOG.md | 7 +++++++ account-kit/react/package.json | 6 +++--- account-kit/signer/CHANGELOG.md | 4 ++++ account-kit/signer/package.json | 4 ++-- account-kit/smart-contracts/CHANGELOG.md | 4 ++++ account-kit/smart-contracts/package.json | 8 ++++---- lerna.json | 2 +- 18 files changed, 64 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa52704413..05dfd25ee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +### Bug Fixes + +- allow useLogout without authModalContext ([#972](https://github.com/alchemyplatform/aa-sdk/issues/972)) ([8175962](https://github.com/alchemyplatform/aa-sdk/commit/8175962a509cb6e51ced22b1cd199a57fb7305a4)) +- fixed bad svg prop names ([#968](https://github.com/alchemyplatform/aa-sdk/issues/968)) ([fdf7025](https://github.com/alchemyplatform/aa-sdk/commit/fdf7025aec20aca76f4285769d1f650f3636b78e)) + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) ### Bug Fixes diff --git a/aa-sdk/core/CHANGELOG.md b/aa-sdk/core/CHANGELOG.md index 982040ab37..06cd2b0d24 100644 --- a/aa-sdk/core/CHANGELOG.md +++ b/aa-sdk/core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @aa-sdk/core + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @aa-sdk/core diff --git a/aa-sdk/core/package.json b/aa-sdk/core/package.json index 68bd3e9efb..ec9572c80c 100644 --- a/aa-sdk/core/package.json +++ b/aa-sdk/core/package.json @@ -1,7 +1,7 @@ { "name": "@aa-sdk/core", "license": "MIT", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts", "author": "Alchemy", "type": "module", diff --git a/aa-sdk/ethers/CHANGELOG.md b/aa-sdk/ethers/CHANGELOG.md index 0b924e70de..ca449b8e71 100644 --- a/aa-sdk/ethers/CHANGELOG.md +++ b/aa-sdk/ethers/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @aa-sdk/ethers + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @aa-sdk/ethers diff --git a/aa-sdk/ethers/package.json b/aa-sdk/ethers/package.json index c1b0679dc6..150e925f62 100644 --- a/aa-sdk/ethers/package.json +++ b/aa-sdk/ethers/package.json @@ -1,7 +1,7 @@ { "name": "@aa-sdk/ethers", "license": "MIT", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "Ethers.js wrapper for @aa-sdk/core", "author": "Alchemy", "type": "module", @@ -42,7 +42,7 @@ "test:run-e2e": "vitest run --config vitest.config.e2e.ts" }, "devDependencies": { - "@account-kit/smart-contracts": "^4.0.0-beta.5", + "@account-kit/smart-contracts": "^4.0.0-beta.6", "alchemy-sdk": "^3.0.0", "dotenv": "^16.0.3", "typescript": "^5.0.4", @@ -50,7 +50,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.5", + "@aa-sdk/core": "^4.0.0-beta.6", "@ethersproject/abi": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/bytes": "^5.7.0", diff --git a/account-kit/core/CHANGELOG.md b/account-kit/core/CHANGELOG.md index 3691e0bcb2..01c958af6f 100644 --- a/account-kit/core/CHANGELOG.md +++ b/account-kit/core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @account-kit/core + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) ### Bug Fixes diff --git a/account-kit/core/package.json b/account-kit/core/package.json index 54367627fc..ccf850d67c 100644 --- a/account-kit/core/package.json +++ b/account-kit/core/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/core", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "Core library for account kit that provides state management and framework indepednent abstractions across infra, Alchemy Signer, and Smart Contracts", "author": "Alchemy", "license": "MIT", @@ -46,9 +46,9 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/infra": "^4.0.0-beta.5", - "@account-kit/signer": "^4.0.0-beta.5", - "@account-kit/smart-contracts": "^4.0.0-beta.5", + "@account-kit/infra": "^4.0.0-beta.6", + "@account-kit/signer": "^4.0.0-beta.6", + "@account-kit/smart-contracts": "^4.0.0-beta.6", "js-cookie": "^3.0.5", "zod": "^3.22.4", "zustand": "^4.5.2" diff --git a/account-kit/infra/CHANGELOG.md b/account-kit/infra/CHANGELOG.md index ca073eeb02..3389efaea7 100644 --- a/account-kit/infra/CHANGELOG.md +++ b/account-kit/infra/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @account-kit/infra + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @account-kit/infra diff --git a/account-kit/infra/package.json b/account-kit/infra/package.json index f81b096f34..c6bc6dd04d 100644 --- a/account-kit/infra/package.json +++ b/account-kit/infra/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/infra", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "adapters for @aa-sdk/core for interacting with alchemy services", "author": "Alchemy", "license": "MIT", @@ -45,7 +45,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.5", + "@aa-sdk/core": "^4.0.0-beta.6", "eventemitter3": "^5.0.1", "zod": "^3.22.4" }, diff --git a/account-kit/plugingen/CHANGELOG.md b/account-kit/plugingen/CHANGELOG.md index a9b8871c88..7b5b24465a 100644 --- a/account-kit/plugingen/CHANGELOG.md +++ b/account-kit/plugingen/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @account-kit/plugingen + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @account-kit/plugingen diff --git a/account-kit/plugingen/package.json b/account-kit/plugingen/package.json index a32b1b28b3..deda604354 100644 --- a/account-kit/plugingen/package.json +++ b/account-kit/plugingen/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/plugingen", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "A CLI tool that enables you to generate TS code for your ERC-6900 plugins", "author": "Alchemy", "license": "MIT", @@ -60,7 +60,7 @@ }, "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.5", + "@aa-sdk/core": "^4.0.0-beta.6", "bundle-require": "^4.0.2", "cac": "^6.7.14", "change-case": "^5.4.3", diff --git a/account-kit/react/CHANGELOG.md b/account-kit/react/CHANGELOG.md index 14cb460bf1..db97d70d85 100644 --- a/account-kit/react/CHANGELOG.md +++ b/account-kit/react/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +### Bug Fixes + +- allow useLogout without authModalContext ([#972](https://github.com/alchemyplatform/aa-sdk/issues/972)) ([8175962](https://github.com/alchemyplatform/aa-sdk/commit/8175962a509cb6e51ced22b1cd199a57fb7305a4)) +- fixed bad svg prop names ([#968](https://github.com/alchemyplatform/aa-sdk/issues/968)) ([fdf7025](https://github.com/alchemyplatform/aa-sdk/commit/fdf7025aec20aca76f4285769d1f650f3636b78e)) + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @account-kit/react diff --git a/account-kit/react/package.json b/account-kit/react/package.json index be68e90241..6a77010d9e 100644 --- a/account-kit/react/package.json +++ b/account-kit/react/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/react", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "React components and hooks for using Account Kit", "author": "Alchemy", "license": "MIT", @@ -67,8 +67,8 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/core": "^4.0.0-beta.5", - "@account-kit/infra": "^4.0.0-beta.5", + "@account-kit/core": "^4.0.0-beta.6", + "@account-kit/infra": "^4.0.0-beta.6", "@tanstack/react-form": "^0.19.4", "@tanstack/zod-form-adapter": "^0.19.4", "@wagmi/connectors": "^4.3.9", diff --git a/account-kit/signer/CHANGELOG.md b/account-kit/signer/CHANGELOG.md index 7a21a4c3ff..07f1ad2496 100644 --- a/account-kit/signer/CHANGELOG.md +++ b/account-kit/signer/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @account-kit/signer + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) ### Bug Fixes diff --git a/account-kit/signer/package.json b/account-kit/signer/package.json index 98f5bd47de..d4f88a3b31 100644 --- a/account-kit/signer/package.json +++ b/account-kit/signer/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/signer", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "Core interfaces and clients for interfacing with the Alchemy Signer API", "author": "Alchemy", "license": "MIT", @@ -49,7 +49,7 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.5", + "@aa-sdk/core": "^4.0.0-beta.6", "@turnkey/http": "^2.6.2", "@turnkey/iframe-stamper": "^1.0.0", "@turnkey/viem": "^0.4.8", diff --git a/account-kit/smart-contracts/CHANGELOG.md b/account-kit/smart-contracts/CHANGELOG.md index 6cfee8eb22..d175d34a30 100644 --- a/account-kit/smart-contracts/CHANGELOG.md +++ b/account-kit/smart-contracts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0-beta.6](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.5...v4.0.0-beta.6) (2024-09-18) + +**Note:** Version bump only for package @account-kit/smart-contracts + # [4.0.0-beta.5](https://github.com/alchemyplatform/aa-sdk/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2024-09-18) **Note:** Version bump only for package @account-kit/smart-contracts diff --git a/account-kit/smart-contracts/package.json b/account-kit/smart-contracts/package.json index 58f4023ce9..a2ac2385d3 100644 --- a/account-kit/smart-contracts/package.json +++ b/account-kit/smart-contracts/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/smart-contracts", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "description": "aa-sdk compatible interfaces for Alchemy Smart Accounts", "author": "Alchemy", "license": "MIT", @@ -46,7 +46,7 @@ "test:run-e2e": "vitest run --config vitest.config.e2e.ts" }, "devDependencies": { - "@account-kit/plugingen": "^4.0.0-beta.5", + "@account-kit/plugingen": "^4.0.0-beta.6", "change-case": "^5.1.2", "dedent": "^1.5.1", "dotenv": "^16.3.1", @@ -68,8 +68,8 @@ "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", "dependencies": { - "@aa-sdk/core": "^4.0.0-beta.5", - "@account-kit/infra": "^4.0.0-beta.5" + "@aa-sdk/core": "^4.0.0-beta.6", + "@account-kit/infra": "^4.0.0-beta.6" }, "peerDependencies": { "viem": "^2.20.0" diff --git a/lerna.json b/lerna.json index f52b78330d..e748accbe6 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "npmClient": "yarn", "conventionalCommits": true, "changelog": true,