From afc60ad795c04e30d4728d3d9cc1fb428d722e7a Mon Sep 17 00:00:00 2001 From: Caleb Briancesco Date: Mon, 27 Jan 2025 15:16:30 -0600 Subject: [PATCH 1/3] feat: adding delay after OTP code validation (#1288) --- .../src/components/auth/card/loading/otp.tsx | 4 +-- .../react/src/components/auth/context.ts | 15 +++++++- account-kit/react/src/index.ts | 1 + .../components/preview/AuthCardWrapper.tsx | 21 ++++++++--- .../react/hooks/useAuthContext.mdx | 35 +++++++++++++++++++ 5 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 site/pages/reference/account-kit/react/hooks/useAuthContext.mdx diff --git a/account-kit/react/src/components/auth/card/loading/otp.tsx b/account-kit/react/src/components/auth/card/loading/otp.tsx index ce65dc8958..40f994b89e 100644 --- a/account-kit/react/src/components/auth/card/loading/otp.tsx +++ b/account-kit/react/src/components/auth/card/loading/otp.tsx @@ -12,7 +12,7 @@ import { AuthStepStatus, useAuthContext } from "../../context.js"; import { useAuthenticate } from "../../../../hooks/useAuthenticate.js"; import { useSignerStatus } from "../../../../hooks/useSignerStatus.js"; -const AUTH_DELAY = 3000; +const AUTH_DELAY = 1000; export const LoadingOtp = () => { const { isConnected } = useSignerStatus(); @@ -20,7 +20,7 @@ export const LoadingOtp = () => { const [otpCode, setOtpCode] = useState(initialOTPValue); const [errorText, setErrorText] = useState(authStep.error?.message || ""); const [titleText, setTitleText] = useState(ls.loadingOtp.title); - // const { setAuthStep } = useAuthContext(); + const resetOTP = (errorText = "") => { setOtpCode(initialOTPValue); setErrorText(errorText); diff --git a/account-kit/react/src/components/auth/context.ts b/account-kit/react/src/components/auth/context.ts index 6c7d0fd219..12942ad768 100644 --- a/account-kit/react/src/components/auth/context.ts +++ b/account-kit/react/src/components/auth/context.ts @@ -56,7 +56,20 @@ export function useAuthContext< TType extends AuthStep["type"] | undefined = AuthStep["type"] | undefined >(type?: TType): AuthContextType; -export function useAuthContext( +/** + * A custom hook that provides the authentication context based on the specified authentication step type. It ensures that the hook is used within an `AuthModalProvider` and throws an error if the context is not available or if the current auth step type does not match the expected type. + * + * @example + * ```tsx twoslash + * import { useAuthContext } from "@account-kit/react"; + * + * const { authStep } = useAuthContext(); + * ``` + * + * @param {AuthStep["type"]} [type] Optional type of authentication step to validate against the current context + * @returns {AuthContextType} The authentication context for the current component + * @throws Will throw an error if the hook is not used within an `AuthModalProvider` or if the current auth step type does not match the expected type + */ export function useAuthContext( type?: AuthStep["type"] | undefined ): AuthContextType { const context = useOptionalAuthContext(); diff --git a/account-kit/react/src/index.ts b/account-kit/react/src/index.ts index badb898258..61a04476bf 100644 --- a/account-kit/react/src/index.ts +++ b/account-kit/react/src/index.ts @@ -59,3 +59,4 @@ export { Dialog } from "./components/dialog/dialog.js"; export { AuthCard } from "./components/auth/card/index.js"; export type * from "./components/auth/types.js"; export { useAuthModal } from "./hooks/useAuthModal.js"; +export { useAuthContext } from "./components/auth/context.js"; diff --git a/examples/ui-demo/src/components/preview/AuthCardWrapper.tsx b/examples/ui-demo/src/components/preview/AuthCardWrapper.tsx index 9b94e30120..bc84407c98 100644 --- a/examples/ui-demo/src/components/preview/AuthCardWrapper.tsx +++ b/examples/ui-demo/src/components/preview/AuthCardWrapper.tsx @@ -1,8 +1,9 @@ "use client"; +import { useEffect, useState } from "react"; import { cn } from "@/lib/utils"; import { useTheme } from "@/state/useTheme"; -import { AuthCard, useUser } from "@account-kit/react"; +import { AuthCard, useUser, useAuthContext } from "@account-kit/react"; import { EOAPostLogin } from "../shared/eoa-post-login/EOAPostLogin"; import { MintCard } from "../shared/mint-card/MintCard"; @@ -25,10 +26,22 @@ export function AuthCardWrapper({ className }: { className?: string }) { } const RenderContent = () => { + const { authStep } = useAuthContext(); const user = useUser(); - const hasUser = !!user; + const [showAuthCard, setShowAuthCard] = useState(() => !user); - if (!hasUser) { + useEffect(() => { + // Show auth card for unauthenticated users + if (!user) { + setShowAuthCard(true); + + // Get auth details for authenticated users + } else if (!!user && ["complete", "initial"].includes(authStep.type)) { + setShowAuthCard(false); + } + }, [authStep.type, user]); + + if (showAuthCard) { return (
{ ); } - const isEOAUser = user.type === "eoa"; + const isEOAUser = user?.type === "eoa"; if (isEOAUser) { return ( diff --git a/site/pages/reference/account-kit/react/hooks/useAuthContext.mdx b/site/pages/reference/account-kit/react/hooks/useAuthContext.mdx new file mode 100644 index 0000000000..d684d68a16 --- /dev/null +++ b/site/pages/reference/account-kit/react/hooks/useAuthContext.mdx @@ -0,0 +1,35 @@ +--- +# This file is autogenerated +title: useAuthContext +description: Overview of the useAuthContext method +--- + +# useAuthContext + +A custom hook that provides the authentication context based on the specified authentication step type. It ensures that the hook is used within an `AuthModalProvider` and throws an error if the context is not available or if the current auth step type does not match the expected type. + +## Import + +```ts +import { useAuthContext } from "@account-kit/react"; +``` + +## Usage + +```tsx +import { useAuthContext } from "@account-kit/react"; + +const { authStep } = useAuthContext(); +``` + +## Parameters + +### type + +`AuthStep["type"]` +Optional type of authentication step to validate against the current context + +## Returns + +`AuthContextType` +The authentication context for the current component From 359669ce61946b1b715e2a5e235c5a14394172d9 Mon Sep 17 00:00:00 2001 From: jakehobbs Date: Tue, 28 Jan 2025 09:43:29 -0800 Subject: [PATCH 2/3] fix: remove unnecessary getTransaction call (#1299) --- .../actions/smartAccount/waitForUserOperationTransacation.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts b/aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts index 17c68371d5..16cbf17661 100644 --- a/aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts +++ b/aa-sdk/core/src/actions/smartAccount/waitForUserOperationTransacation.ts @@ -1,5 +1,4 @@ import type { Chain, Client, Hex, Transport } from "viem"; -import { getTransaction } from "viem/actions"; import { isBaseSmartAccountClient } from "../../client/isSmartAccountClient.js"; import { IncompatibleClientError } from "../../errors/client.js"; import { FailedToFindTransactionError } from "../../errors/transaction.js"; @@ -72,9 +71,7 @@ export const waitForUserOperationTransaction: < }); if (receipt) { - return getTransaction(client, { - hash: receipt.receipt.transactionHash, - }).then((x) => x.hash); + return receipt?.receipt.transactionHash; } } From 8acd2d8e45410bfb2d7e4447d3a130e23e605cd4 Mon Sep 17 00:00:00 2001 From: Alchemy Bot Date: Tue, 28 Jan 2025 18:20:45 +0000 Subject: [PATCH 3/3] chore(release): publish v4.10.0 [skip-ci] --- CHANGELOG.md | 17 +++++++++++++++++ aa-sdk/core/CHANGELOG.md | 6 ++++++ 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 | 4 ++++ account-kit/core/package.json | 10 +++++----- account-kit/core/src/version.ts | 2 +- account-kit/infra/CHANGELOG.md | 4 ++++ account-kit/infra/package.json | 6 +++--- account-kit/infra/src/version.ts | 2 +- account-kit/logging/CHANGELOG.md | 4 ++++ account-kit/logging/package.json | 2 +- account-kit/logging/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 | 13 +++++++++++++ account-kit/react/package.json | 10 +++++----- account-kit/react/src/version.ts | 2 +- account-kit/rn-signer/CHANGELOG.md | 6 ++++++ account-kit/rn-signer/package.json | 6 +++--- account-kit/signer/CHANGELOG.md | 6 ++++++ account-kit/signer/package.json | 6 +++--- account-kit/signer/src/version.ts | 2 +- account-kit/smart-contracts/CHANGELOG.md | 4 ++++ account-kit/smart-contracts/package.json | 8 ++++---- lerna.json | 2 +- 29 files changed, 110 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 136e213f8e..fc1c8a4cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +### Bug Fixes + +- add logoUrlDark for auth0 provider logos ([#1298](https://github.com/alchemyplatform/aa-sdk/issues/1298)) ([80a0132](https://github.com/alchemyplatform/aa-sdk/commit/80a0132916cd1c89c8c622f5dfafca0b7a1a9508)) +- don't cache anvil state in CI and limit parallelism ([#1290](https://github.com/alchemyplatform/aa-sdk/issues/1290)) ([82ce8ca](https://github.com/alchemyplatform/aa-sdk/commit/82ce8ca483693137937eec1abc99583f23537839)) +- otp new styles and flow ([#1250](https://github.com/alchemyplatform/aa-sdk/issues/1250)) ([7295249](https://github.com/alchemyplatform/aa-sdk/commit/72952498d91056fdf4086557ed3963c18a5d5879)) +- remove unnecessary getTransaction call ([#1299](https://github.com/alchemyplatform/aa-sdk/issues/1299)) ([359669c](https://github.com/alchemyplatform/aa-sdk/commit/359669ce61946b1b715e2a5e235c5a14394172d9)) + +### Features + +- add oauth support to react native signer ([#1273](https://github.com/alchemyplatform/aa-sdk/issues/1273)) ([61984bd](https://github.com/alchemyplatform/aa-sdk/commit/61984bdd65d5432a0abf8b5ce3549423438abe4e)) +- adding delay after OTP code validation ([#1288](https://github.com/alchemyplatform/aa-sdk/issues/1288)) ([afc60ad](https://github.com/alchemyplatform/aa-sdk/commit/afc60ad795c04e30d4728d3d9cc1fb428d722e7a)) +- address bar tooltip ([#1188](https://github.com/alchemyplatform/aa-sdk/issues/1188)) ([fe67cfa](https://github.com/alchemyplatform/aa-sdk/commit/fe67cfac61585104323b83b0b8bbac0516f6d543)) +- enable discord social auth ([#1281](https://github.com/alchemyplatform/aa-sdk/issues/1281)) ([1772da9](https://github.com/alchemyplatform/aa-sdk/commit/1772da972f2cc78dde3786fb9ebe3ec19f01e78b)) +- enable twitter social auth ([#1230](https://github.com/alchemyplatform/aa-sdk/issues/1230)) ([f4e8533](https://github.com/alchemyplatform/aa-sdk/commit/f4e8533ae0d79e22c939b4fa84da6801f6626bec)) + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) ### Features diff --git a/aa-sdk/core/CHANGELOG.md b/aa-sdk/core/CHANGELOG.md index abbf8ade29..c4d1d92afc 100644 --- a/aa-sdk/core/CHANGELOG.md +++ b/aa-sdk/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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +### Bug Fixes + +- remove unnecessary getTransaction call ([#1299](https://github.com/alchemyplatform/aa-sdk/issues/1299)) ([359669c](https://github.com/alchemyplatform/aa-sdk/commit/359669ce61946b1b715e2a5e235c5a14394172d9)) + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) ### Features diff --git a/aa-sdk/core/package.json b/aa-sdk/core/package.json index 4191124117..05270745d3 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.9.0", + "version": "4.10.0", "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 aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/aa-sdk/ethers/CHANGELOG.md b/aa-sdk/ethers/CHANGELOG.md index fb1168873a..54726a73c9 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @aa-sdk/ethers + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @aa-sdk/ethers diff --git a/aa-sdk/ethers/package.json b/aa-sdk/ethers/package.json index 244e68dd78..1c019ebc1e 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.9.0", + "version": "4.10.0", "description": "Ethers.js wrapper for @aa-sdk/core", "author": "Alchemy", "type": "module", @@ -42,7 +42,7 @@ "test:run": "vitest run" }, "devDependencies": { - "@account-kit/smart-contracts": "^4.9.0", + "@account-kit/smart-contracts": "^4.10.0", "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.9.0", + "@aa-sdk/core": "^4.10.0", "@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 c615860ba6..dd011334e0 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @account-kit/core + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @account-kit/core diff --git a/account-kit/core/package.json b/account-kit/core/package.json index f69f43153f..22f924725d 100644 --- a/account-kit/core/package.json +++ b/account-kit/core/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/core", - "version": "4.9.0", + "version": "4.10.0", "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,10 +46,10 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/infra": "^4.9.0", - "@account-kit/logging": "^4.9.0", - "@account-kit/signer": "^4.9.0", - "@account-kit/smart-contracts": "^4.9.0", + "@account-kit/infra": "^4.10.0", + "@account-kit/logging": "^4.10.0", + "@account-kit/signer": "^4.10.0", + "@account-kit/smart-contracts": "^4.10.0", "js-cookie": "^3.0.5", "zod": "^3.22.4", "zustand": "^5.0.0-rc.2" diff --git a/account-kit/core/src/version.ts b/account-kit/core/src/version.ts index aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/infra/CHANGELOG.md b/account-kit/infra/CHANGELOG.md index 6cdd382bbc..81da3a82a4 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @account-kit/infra + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) ### Features diff --git a/account-kit/infra/package.json b/account-kit/infra/package.json index 15e79f4b17..d084f7aa1a 100644 --- a/account-kit/infra/package.json +++ b/account-kit/infra/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/infra", - "version": "4.9.0", + "version": "4.10.0", "description": "adapters for @aa-sdk/core for interacting with alchemy services", "author": "Alchemy", "license": "MIT", @@ -45,8 +45,8 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.9.0", - "@account-kit/logging": "^4.9.0", + "@aa-sdk/core": "^4.10.0", + "@account-kit/logging": "^4.10.0", "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 aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/logging/CHANGELOG.md b/account-kit/logging/CHANGELOG.md index 468d6545cb..5d99a970d9 100644 --- a/account-kit/logging/CHANGELOG.md +++ b/account-kit/logging/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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @account-kit/logging + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @account-kit/logging diff --git a/account-kit/logging/package.json b/account-kit/logging/package.json index 8dc7b4a7b9..05a5d6ebe0 100644 --- a/account-kit/logging/package.json +++ b/account-kit/logging/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/logging", - "version": "4.9.0", + "version": "4.10.0", "description": "Core logging library for Account Kit packages", "author": "Alchemy", "license": "MIT", diff --git a/account-kit/logging/src/version.ts b/account-kit/logging/src/version.ts index aa17eb9f3b..42bd7d8792 100644 --- a/account-kit/logging/src/version.ts +++ b/account-kit/logging/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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/plugingen/CHANGELOG.md b/account-kit/plugingen/CHANGELOG.md index ce59422526..4c16cd0079 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @account-kit/plugingen + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @account-kit/plugingen diff --git a/account-kit/plugingen/package.json b/account-kit/plugingen/package.json index 3326c50350..c1689ce34e 100644 --- a/account-kit/plugingen/package.json +++ b/account-kit/plugingen/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/plugingen", - "version": "4.9.0", + "version": "4.10.0", "description": "A CLI tool that enables you to generate TS code for your ERC-6900 plugins", "author": "Alchemy", "license": "MIT", @@ -61,7 +61,7 @@ }, "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "dependencies": { - "@aa-sdk/core": "^4.9.0", + "@aa-sdk/core": "^4.10.0", "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 aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/react/CHANGELOG.md b/account-kit/react/CHANGELOG.md index d2856da175..ed10afbb9a 100644 --- a/account-kit/react/CHANGELOG.md +++ b/account-kit/react/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +### Bug Fixes + +- add logoUrlDark for auth0 provider logos ([#1298](https://github.com/alchemyplatform/aa-sdk/issues/1298)) ([80a0132](https://github.com/alchemyplatform/aa-sdk/commit/80a0132916cd1c89c8c622f5dfafca0b7a1a9508)) +- otp new styles and flow ([#1250](https://github.com/alchemyplatform/aa-sdk/issues/1250)) ([7295249](https://github.com/alchemyplatform/aa-sdk/commit/72952498d91056fdf4086557ed3963c18a5d5879)) + +### Features + +- adding delay after OTP code validation ([#1288](https://github.com/alchemyplatform/aa-sdk/issues/1288)) ([afc60ad](https://github.com/alchemyplatform/aa-sdk/commit/afc60ad795c04e30d4728d3d9cc1fb428d722e7a)) +- enable discord social auth ([#1281](https://github.com/alchemyplatform/aa-sdk/issues/1281)) ([1772da9](https://github.com/alchemyplatform/aa-sdk/commit/1772da972f2cc78dde3786fb9ebe3ec19f01e78b)) +- enable twitter social auth ([#1230](https://github.com/alchemyplatform/aa-sdk/issues/1230)) ([f4e8533](https://github.com/alchemyplatform/aa-sdk/commit/f4e8533ae0d79e22c939b4fa84da6801f6626bec)) + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @account-kit/react diff --git a/account-kit/react/package.json b/account-kit/react/package.json index 9265f620c9..ee00d12803 100644 --- a/account-kit/react/package.json +++ b/account-kit/react/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/react", - "version": "4.9.0", + "version": "4.10.0", "description": "React components and hooks for using Account Kit", "author": "Alchemy", "license": "MIT", @@ -68,10 +68,10 @@ "vitest": "^2.0.4" }, "dependencies": { - "@account-kit/core": "^4.9.0", - "@account-kit/infra": "^4.9.0", - "@account-kit/logging": "^4.9.0", - "@account-kit/signer": "^4.9.0", + "@account-kit/core": "^4.10.0", + "@account-kit/infra": "^4.10.0", + "@account-kit/logging": "^4.10.0", + "@account-kit/signer": "^4.10.0", "@tanstack/react-form": "^0.33.0", "@tanstack/zod-form-adapter": "^0.33.0", "@wagmi/connectors": "^5.1.15", diff --git a/account-kit/react/src/version.ts b/account-kit/react/src/version.ts index aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/rn-signer/CHANGELOG.md b/account-kit/rn-signer/CHANGELOG.md index 773f5e73c9..ad93cff26a 100644 --- a/account-kit/rn-signer/CHANGELOG.md +++ b/account-kit/rn-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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +### Features + +- add oauth support to react native signer ([#1273](https://github.com/alchemyplatform/aa-sdk/issues/1273)) ([61984bd](https://github.com/alchemyplatform/aa-sdk/commit/61984bdd65d5432a0abf8b5ce3549423438abe4e)) + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) ### Features diff --git a/account-kit/rn-signer/package.json b/account-kit/rn-signer/package.json index 5f052b0486..95032dbd9e 100644 --- a/account-kit/rn-signer/package.json +++ b/account-kit/rn-signer/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/react-native-signer", - "version": "4.9.0", + "version": "4.10.0", "author": "Alchemy", "description": "React Native compatible Account Kit signer", "source": "./src/index.tsx", @@ -149,8 +149,8 @@ "version": "0.42.2" }, "dependencies": { - "@aa-sdk/core": "^4.9.0", - "@account-kit/signer": "^4.9.0", + "@aa-sdk/core": "^4.10.0", + "@account-kit/signer": "^4.10.0", "viem": "^2.21.40" } } diff --git a/account-kit/signer/CHANGELOG.md b/account-kit/signer/CHANGELOG.md index 779f67de79..921db09447 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +### Features + +- add oauth support to react native signer ([#1273](https://github.com/alchemyplatform/aa-sdk/issues/1273)) ([61984bd](https://github.com/alchemyplatform/aa-sdk/commit/61984bdd65d5432a0abf8b5ce3549423438abe4e)) + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) **Note:** Version bump only for package @account-kit/signer diff --git a/account-kit/signer/package.json b/account-kit/signer/package.json index d158a6ea01..cf14d31ae9 100644 --- a/account-kit/signer/package.json +++ b/account-kit/signer/package.json @@ -1,6 +1,6 @@ { "name": "@account-kit/signer", - "version": "4.9.0", + "version": "4.10.0", "description": "Core interfaces and clients for interfacing with the Alchemy Signer API", "author": "Alchemy", "license": "MIT", @@ -49,8 +49,8 @@ "vitest": "^2.0.4" }, "dependencies": { - "@aa-sdk/core": "^4.9.0", - "@account-kit/logging": "^4.9.0", + "@aa-sdk/core": "^4.10.0", + "@account-kit/logging": "^4.10.0", "@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 aa17eb9f3b..42bd7d8792 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.9.0"; +export const VERSION = "4.10.0"; diff --git a/account-kit/smart-contracts/CHANGELOG.md b/account-kit/smart-contracts/CHANGELOG.md index 1169993847..613253ab8f 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.10.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.9.0...v4.10.0) (2025-01-28) + +**Note:** Version bump only for package @account-kit/smart-contracts + # [4.9.0](https://github.com/alchemyplatform/aa-sdk/compare/v4.8.0...v4.9.0) (2025-01-13) ### Features diff --git a/account-kit/smart-contracts/package.json b/account-kit/smart-contracts/package.json index 22b23a17a6..e946f3dd11 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.9.0", + "version": "4.10.0", "description": "aa-sdk compatible interfaces for Alchemy Smart Accounts", "author": "Alchemy", "license": "MIT", @@ -52,7 +52,7 @@ "test:run": "vitest run" }, "devDependencies": { - "@account-kit/plugingen": "^4.9.0", + "@account-kit/plugingen": "^4.10.0", "change-case": "^5.1.2", "dedent": "^1.5.1", "dotenv": "^16.3.1", @@ -74,8 +74,8 @@ "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", "dependencies": { - "@aa-sdk/core": "^4.9.0", - "@account-kit/infra": "^4.9.0" + "@aa-sdk/core": "^4.10.0", + "@account-kit/infra": "^4.10.0" }, "peerDependencies": { "viem": "^2.20.0" diff --git a/lerna.json b/lerna.json index 1970af1565..0c1e6730ed 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "4.9.0", + "version": "4.10.0", "npmClient": "yarn", "conventionalCommits": true, "changelog": true,