Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Feb 21, 2024
1 parent 520db0f commit 20e62d2
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
6 changes: 6 additions & 0 deletions site/docs/pages/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ OnchainKit is divided into various theme utilities and components that are avail
- [Framegear](/framekit/framegear)

- [Identity Kit](/identitykit/introduction)

- Components:
- [`<Avatar />`](/identitykit/avatar)
- [`<Name />`](/identitykit/name)

- [XMTP Kit](/xmtpkit/introduction)
- Utilities:
- [`getXmtpFrameMessage`](/xmtpkit/get-xmtp-frame-message)
- [`isXmtpFrameRequest`](/xmtpkit/is-xmtp-frame-request)
1 change: 1 addition & 0 deletions site/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ OnchainKit offers three themes packed with React components and TypeScript utili
- [XMTP Kit](/xmtpkit/introduction)
- Utilities:
- [`getXmtpFrameMessage`](/xmtpkit/get-xmtp-frame-message)
- [`isXmtpFrameRequest`](/xmtpkit/is-xmtp-frame-request)

# Community

Expand Down
4 changes: 2 additions & 2 deletions site/docs/pages/xmtpkit/get-xmtp-frame-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async function getResponse(req: any): Promise<NextResponse> {

## Returns

[`Promise<XmtpFrameValidationResponse>`](/framekit/types#xmtpframevalidationresponse)
[`Promise<XmtpFrameValidationResponse>`](/xmtpkit/types#xmtpframevalidationresponse)

## Parameters

[`Promise<XmtpFramesRequest>`](/framekit/types#xmtpframesrequest)
[`Promise<XmtpFramesRequest>`](/xmtpkit/types#xmtpframesrequest)
1 change: 1 addition & 0 deletions site/docs/pages/xmtpkit/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ To assist you in engaging with XMTP, here is the XMTP Kit which includes:
- [XMTP Kit](/xmtpkit/introduction)
- Utilities:
- [`getXmtpFrameMessage`](/xmtpkit/get-xmtp-frame-message)
- [`isXmtpFrameRequest`](/xmtpkit/is-xmtp-frame-request)
22 changes: 21 additions & 1 deletion site/docs/pages/xmtpkit/is-xmtp-frame-request.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# isXmtpFrameRequest

isXmtpFrameRequest
```ts
import { FrameRequest } from '@coinbase/onchainkit';
import { isXmtpFrameRequest } from '@coinbase/onchainkit/xmtp'; // [!code focus]
import { NextResponse } from 'next/server';

async function getResponse(req: any): Promise<NextResponse> {
const body: FrameRequest = await req.json();
if (isXmtpFrameRequest(body)) { // [!code focus]
// [!code focus]
// ...
}
}
```

## Returns

- **Type:** `boolean`

## Parameters

[`XmtpFramesRequest`](/xmtpkit/types#xmtpframesrequest)
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '0.8.0';
export const version = '0.8.2';

0 comments on commit 20e62d2

Please sign in to comment.