diff --git a/.changeset/nice-bottles-arrive.md b/.changeset/nice-bottles-arrive.md new file mode 100644 index 0000000000..847b412478 --- /dev/null +++ b/.changeset/nice-bottles-arrive.md @@ -0,0 +1,5 @@ +--- +'@coinbase/onchainkit': patch +--- + +- **feat**: added `textInput` to `FrameData`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 980225a637..1f46be1e1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -133,7 +133,7 @@ const frameMetadata = getFrameMetadata({ ```ts type Button = { label: string; - action?: "post" | "post_redirect"; + action?: 'post' | 'post_redirect'; }; type FrameMetadata = { diff --git a/src/core/farcaster.integ.ts b/src/core/farcaster.integ.ts index 8c94ecb23b..62b254a82a 100644 --- a/src/core/farcaster.integ.ts +++ b/src/core/farcaster.integ.ts @@ -8,6 +8,7 @@ describe('getFrameValidatedMessage integration tests', () => { url: 'https://frame-demo.vercel.app/2', messageHash: '0x7099de8afb08984d53f56a02b28d0f96097bfd82', timestamp: 1706559790000, + inputText: '', network: 1, buttonIndex: 1, castId: { fid: 194519, hash: '0x3d7c0dac1dd0ee588eb58d07105b14786cfca976' }, diff --git a/src/core/types.ts b/src/core/types.ts index a05a7d6551..83f121934e 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -1,16 +1,17 @@ import { NeynarFrameValidationInternalModel } from '../utils/neynar/frame/types'; export interface FrameData { - fid: number; - url: string; - messageHash: string; - timestamp: number; - network: number; buttonIndex: number; castId: { fid: number; hash: string; }; + inputText: string; + fid: number; + messageHash: string; + network: number; + timestamp: number; + url: string; } export interface FrameRequest { diff --git a/src/version.ts b/src/version.ts index 11ae428317..4092d855d7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '0.4.2'; +export const version = '0.4.3';