[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
+9 -9
View File
@@ -1,6 +1,5 @@
import {memo, useCallback, useMemo, useState} from 'react'
import {ActivityIndicator, View} from 'react-native'
import {type AppBskyFeedDefs, type AppBskyGraphDefs} from '@atproto/api'
import {Trans, useLingui} from '@lingui/react/macro'
import {urls} from '#/lib/constants'
@@ -37,6 +36,7 @@ import {ListFooter} from '#/components/Lists'
import {SearchError} from '#/components/SearchError'
import {Text} from '#/components/Typography'
import {type Metrics, useAnalytics} from '#/analytics'
import {type app} from '#/lexicons'
import type * as bsky from '#/types/bsky'
let SearchResults = ({
@@ -292,7 +292,7 @@ type SearchResultSlice =
| {
type: 'post'
key: string
post: AppBskyFeedDefs.PostView
post: app.bsky.feed.defs.PostView
}
| {
type: 'loadingMore'
@@ -504,7 +504,7 @@ function SearchPost({
}: {
from: Metrics['search:result:press']['tab']
position: Metrics['search:result:press']['position']
post: AppBskyFeedDefs.PostView
post: app.bsky.feed.defs.PostView
}) {
const ax = useAnalytics()
@@ -672,7 +672,7 @@ let SearchScreenFeedsResults = ({
item,
index,
}: {
item: AppBskyFeedDefs.GeneratorView
item: app.bsky.feed.defs.GeneratorView
index: number
}) => (
<View
@@ -685,7 +685,7 @@ let SearchScreenFeedsResults = ({
<SearchFeedCard position={index} view={item} />
</View>
)}
keyExtractor={(item: AppBskyFeedDefs.GeneratorView) => item.uri}
keyExtractor={(item: app.bsky.feed.defs.GeneratorView) => item.uri}
desktopFixedHeight
ListFooterComponent={<ListFooter />}
/>
@@ -704,7 +704,7 @@ function SearchFeedCard({
view,
}: {
position: number
view: AppBskyFeedDefs.GeneratorView
view: app.bsky.feed.defs.GeneratorView
}) {
const ax = useAnalytics()
@@ -790,14 +790,14 @@ let SearchScreenStarterPackResults = ({
item,
index,
}: {
item: AppBskyGraphDefs.StarterPackView
item: app.bsky.graph.defs.StarterPackView
index: number
}) => (
<View style={[a.px_lg, a.pb_lg, index === 0 && a.pt_lg]}>
<SearchStarterPack position={index} view={item} />
</View>
)}
keyExtractor={(item: AppBskyGraphDefs.StarterPackView) => item.uri}
keyExtractor={(item: app.bsky.graph.defs.StarterPackView) => item.uri}
refreshing={isPTR}
onRefresh={() => void onPullToRefresh()}
onEndReached={onEndReached}
@@ -824,7 +824,7 @@ function SearchStarterPack({
view,
}: {
position: number
view: AppBskyGraphDefs.StarterPackView
view: app.bsky.graph.defs.StarterPackView
}) {
const ax = useAnalytics()