[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
+4 -4
View File
@@ -1,5 +1,4 @@
import {type StyleProp, View, type ViewStyle} from 'react-native'
import {type AppBskyFeedDefs, type ComAtprotoLabelDefs} from '@atproto/api'
import {type ModerationCause, type ModerationUI} from '@bsky.app/sdk/moderation'
import {plural} from '@lingui/core/macro'
import {useLingui} from '@lingui/react/macro'
@@ -16,6 +15,7 @@ import {
useLabelsOnMeDialogControl,
} from '#/components/moderation/LabelsOnMeDialog'
import * as Pills from '#/components/Pills'
import {type app, type com} from '#/lexicons'
export function PostAlerts({
post,
@@ -24,7 +24,7 @@ export function PostAlerts({
style,
additionalCauses,
}: {
post?: AppBskyFeedDefs.PostView
post?: app.bsky.feed.defs.PostView
modui: ModerationUI
/**
* Expanded views (e.g. the thread anchor post) render larger pills and
@@ -48,7 +48,7 @@ export function PostAlerts({
* author's only entry point to appeal labels on their content.
*/
const isOwnPost = !!post && post.author.did === currentAccount?.did
const allLabels: ComAtprotoLabelDefs.Label[] =
const allLabels: com.atproto.label.defs.Label[] =
isOwnPost && view === 'expanded'
? [
...(post.labels ?? []),
@@ -134,7 +134,7 @@ function AdditionalLabels({
size,
hasPrecedingPills,
}: {
labels: ComAtprotoLabelDefs.Label[]
labels: com.atproto.label.defs.Label[]
size?: Pills.CommonProps['size']
/**
* The compact "+n" syntax only makes sense as a continuation of other