[SDK] Remove @atproto/api (#11386)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {createContext, useContext, useMemo, useState} from 'react'
|
||||
import {
|
||||
type AppBskyActorDefs,
|
||||
type AppBskyFeedDefs,
|
||||
type AppBskyUnspeccedGetPostThreadV2,
|
||||
} from '@atproto/api'
|
||||
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
|
||||
import {msg} from '@lingui/core/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
@@ -18,21 +13,22 @@ import {
|
||||
RQKEY_LINK_ROOT,
|
||||
} from '#/state/queries/resolve-link'
|
||||
import * as Toast from '#/components/Toast'
|
||||
import {type app} from '#/lexicons'
|
||||
|
||||
export interface ComposerOptsPostRef {
|
||||
uri: string
|
||||
cid: string
|
||||
text: string
|
||||
langs?: string[]
|
||||
author: AppBskyActorDefs.ProfileViewBasic
|
||||
embed?: AppBskyFeedDefs.PostView['embed']
|
||||
author: app.bsky.actor.defs.ProfileViewBasic
|
||||
embed?: app.bsky.feed.defs.PostView['embed']
|
||||
moderation?: ModerationDecision
|
||||
}
|
||||
|
||||
export type OnPostSuccessData =
|
||||
| {
|
||||
replyToUri?: string
|
||||
posts: AppBskyUnspeccedGetPostThreadV2.ThreadItem[]
|
||||
posts: app.bsky.unspecced.getPostThreadV2.ThreadItem[]
|
||||
}
|
||||
| undefined
|
||||
|
||||
@@ -48,7 +44,7 @@ export interface ComposerOpts {
|
||||
replyTo?: ComposerOptsPostRef
|
||||
onPost?: (postUri: string | undefined) => void
|
||||
onPostSuccess?: (data: OnPostSuccessData) => void
|
||||
quote?: AppBskyFeedDefs.PostView
|
||||
quote?: app.bsky.feed.defs.PostView
|
||||
mention?: string // handle of user to mention
|
||||
text?: string
|
||||
imageUris?: {uri: string; width: number; height: number; altText?: string}[]
|
||||
|
||||
Reference in New Issue
Block a user