[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
+6 -5
View File
@@ -1,5 +1,4 @@
import {StyleSheet, View} from 'react-native'
import {AppBskyFeedDefs} from '@atproto/api'
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
import {msg} from '@lingui/core/macro'
import {useLingui} from '@lingui/react'
@@ -15,6 +14,8 @@ import {Repost_Stroke2_Corner3_Rounded as RepostIcon} from '#/components/icons/R
import {Link} from '#/components/Link'
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
import {Text} from '#/components/Typography'
import {app} from '#/lexicons'
import * as bsky from '#/types/bsky'
import {FeedNameText} from '../util/FeedInfoText'
export function PostFeedReason({
@@ -24,8 +25,8 @@ export function PostFeedReason({
}: {
reason:
| ReasonFeedSource
| AppBskyFeedDefs.ReasonRepost
| AppBskyFeedDefs.ReasonPin
| app.bsky.feed.defs.ReasonRepost
| app.bsky.feed.defs.ReasonPin
| {[k: string]: unknown; $type: string}
moderation?: ModerationDecision
onOpenReposter?: () => void
@@ -64,7 +65,7 @@ export function PostFeedReason({
)
}
if (AppBskyFeedDefs.isReasonRepost(reason)) {
if (bsky.isType(app.bsky.feed.defs.reasonRepost, reason)) {
const isOwner = reason.by.did === currentAccount?.did
const reposter = createSanitizedDisplayName(
reason.by,
@@ -103,7 +104,7 @@ export function PostFeedReason({
)
}
if (AppBskyFeedDefs.isReasonPin(reason)) {
if (bsky.isType(app.bsky.feed.defs.reasonPin, reason)) {
return (
<View style={styles.includeReason}>
<PinIcon