diff --git a/CHANGELOG.md b/CHANGELOG.md index de4552e90f..f09a0117d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ ### Patch Changes -- 8028007: - **feat**: added `post_url` optional metadata for `tx` Frame. By @zizzamia, @cnasc, @spennyp #237 +- **feat**: added `post_url` optional metadata for `tx` Frame. By @zizzamia, @cnasc, @spennyp #237 8028007 + +Note: this is the version with fully working Frame TX feature. ## 0.10.0 @@ -21,15 +23,15 @@ The input parameters as well as return types of `useName` and `useAvatar` hooks Before ```tsx -import { useName } from "@coinbase/onchainkit/identity"; +import { useName } from '@coinbase/onchainkit/identity'; -const { ensName, isLoading } = useName("0x1234"); +const { ensName, isLoading } = useName('0x1234'); ``` After ```tsx -import { useName } from "@coinbase/onchainkit/identity"; +import { useName } from '@coinbase/onchainkit/identity'; // Return type signature is following @tanstack/react-query useQuery hook signature const { @@ -38,10 +40,7 @@ const { isError, error, status, -} = useName( - { address: "0x1234" }, - { enabled: true, cacheTime: 1000 * 60 * 60 * 24 }, -); +} = useName({ address: '0x1234' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 }); ``` ### `useAvatar` @@ -49,15 +48,15 @@ const { Before ```tsx -import { useAvatar } from "@coinbase/onchainkit/identity"; +import { useAvatar } from '@coinbase/onchainkit/identity'; -const { ensAvatar, isLoading } = useAvatar("vitalik.eth"); +const { ensAvatar, isLoading } = useAvatar('vitalik.eth'); ``` After ```tsx -import { useAvatar } from "@coinbase/onchainkit/identity"; +import { useAvatar } from '@coinbase/onchainkit/identity'; // Return type signature is following @tanstack/react-query useQuery hook signature const { @@ -66,10 +65,7 @@ const { isError, error, status, -} = useAvatar( - { ensName: "vitalik.eth" }, - { enabled: true, cacheTime: 1000 * 60 * 60 * 24 }, -); +} = useAvatar({ ensName: 'vitalik.eth' }, { enabled: true, cacheTime: 1000 * 60 * 60 * 24 }); ``` ## 0.9.12 diff --git a/site/docs/pages/frame/types.mdx b/site/docs/pages/frame/types.mdx index addb95ad15..b0d2bb22d1 100644 --- a/site/docs/pages/frame/types.mdx +++ b/site/docs/pages/frame/types.mdx @@ -10,7 +10,7 @@ deescription: Glossary of Types for Frame utilities and components ```ts type FrameButtonMetadata = | { - action: 'link' | 'mint' | 'tx'; + action: 'link' | 'mint'; label: string; target: string; } @@ -18,6 +18,12 @@ type FrameButtonMetadata = action?: 'post' | 'post_redirect'; label: string; target?: string; + } + | { + action: 'tx'; + label: string; + target: string; + postUrl?: string; }; ```