[SDK] Remove @atproto/api (#11386)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-13 22:26:22 +03:00
committed by GitHub
parent 54da80dfb0
commit 9fe0084874
391 changed files with 3130 additions and 3589 deletions
+8 -15
View File
@@ -6,12 +6,7 @@ import {
View,
type ViewStyle,
} from 'react-native'
import {
type AppBskyFeedDefs,
AppBskyFeedPost,
type AppBskyGraphDefs,
AtUri,
} from '@atproto/api'
import {AtUri} from '@atproto/syntax'
import {msg} from '@lingui/core/macro'
import {useLingui} from '@lingui/react'
import {Trans} from '@lingui/react/macro'
@@ -38,10 +33,11 @@ import {InlineLinkText} from '#/components/Link'
import {Text} from '#/components/Typography'
import {useAnalytics} from '#/analytics'
import {IS_NATIVE} from '#/env'
import {app} from '#/lexicons'
import * as bsky from '#/types/bsky'
interface WhoCanReplyProps {
post: AppBskyFeedDefs.PostView
post: app.bsky.feed.defs.PostView
isThreadAuthor: boolean
style?: StyleProp<ViewStyle>
}
@@ -58,10 +54,7 @@ export function WhoCanReply({post, isThreadAuthor, style}: WhoCanReplyProps) {
* unexpectedly, we should check to make sure it's for sure the root URI.
*/
const rootUri =
bsky.dangerousIsType<AppBskyFeedPost.Record>(
post.record,
AppBskyFeedPost.isRecord,
) && post.record.reply?.root
bsky.isType(app.bsky.feed.post, post.record) && post.record.reply?.root
? post.record.reply.root.uri
: post.uri
const settings = useMemo(() => {
@@ -209,7 +202,7 @@ function WhoCanReplyDialog({
embeddingDisabled,
}: {
control: Dialog.DialogControlProps
post: AppBskyFeedDefs.PostView
post: app.bsky.feed.defs.PostView
settings: ThreadgateAllowUISetting[]
embeddingDisabled: boolean
}) {
@@ -255,7 +248,7 @@ function Rules({
settings,
embeddingDisabled,
}: {
post: AppBskyFeedDefs.PostView
post: app.bsky.feed.defs.PostView
settings: ThreadgateAllowUISetting[]
embeddingDisabled: boolean
}) {
@@ -313,8 +306,8 @@ function Rule({
lists,
}: {
rule: ThreadgateAllowUISetting
post: AppBskyFeedDefs.PostView
lists: AppBskyGraphDefs.ListViewBasic[] | undefined
post: app.bsky.feed.defs.PostView
lists: app.bsky.graph.defs.ListViewBasic[] | undefined
}) {
if (rule.type === 'mention') {
return <Trans>mentioned users</Trans>