import client from lex instead of lex-client
This commit is contained in:
@@ -100,7 +100,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/common-web": "0.5.6",
|
"@atproto/common-web": "0.5.6",
|
||||||
"@atproto/lex": "0.2.2",
|
"@atproto/lex": "0.2.2",
|
||||||
"@atproto/lex-client": "0.2.4",
|
|
||||||
"@atproto/lex-password-session": "0.1.7",
|
"@atproto/lex-password-session": "0.1.7",
|
||||||
"@atproto/syntax": "0.7.2",
|
"@atproto/syntax": "0.7.2",
|
||||||
"@bitdrift/react-native": "^0.6.8",
|
"@bitdrift/react-native": "^0.6.8",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {createContext, useCallback, useContext, useEffect, useMemo} from 'react'
|
import {createContext, useCallback, useContext, useEffect, useMemo} from 'react'
|
||||||
import * as AgeRange from 'expo-age-range'
|
import * as AgeRange from 'expo-age-range'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {getPreferences} from '@bsky.app/sdk'
|
import {getPreferences} from '@bsky.app/sdk'
|
||||||
import {createAsyncStoragePersister} from '@tanstack/query-async-storage-persister'
|
import {createAsyncStoragePersister} from '@tanstack/query-async-storage-persister'
|
||||||
import {focusManager, QueryClient, useQuery} from '@tanstack/react-query'
|
import {focusManager, QueryClient, useQuery} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {useMutation} from '@tanstack/react-query'
|
import {useMutation} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {wait} from '#/lib/async/wait'
|
import {wait} from '#/lib/async/wait'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {Alert, View} from 'react-native'
|
|||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import * as Contacts from 'expo-contacts'
|
import * as Contacts from 'expo-contacts'
|
||||||
import {type Un$Typed} from '@atproto/lex'
|
import {type Un$Typed} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {toDatetimeString} from '@atproto/syntax'
|
import {toDatetimeString} from '@atproto/syntax'
|
||||||
import {upsertProfile} from '@bsky.app/sdk'
|
import {upsertProfile} from '@bsky.app/sdk'
|
||||||
import {msg, t} from '@lingui/core/macro'
|
import {msg, t} from '@lingui/core/macro'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {useMutation} from '@tanstack/react-query'
|
import {useMutation} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {usePdsClient, useSessionApi} from '#/state/session'
|
import {usePdsClient, useSessionApi} from '#/state/session'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type Service} from '@atproto/lex-client'
|
import {type Service} from '@atproto/lex'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {Trans} from '@lingui/react/macro'
|
import {Trans} from '@lingui/react/macro'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Service} from '@atproto/lex-client'
|
import {type Service} from '@atproto/lex'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useMutation} from '@tanstack/react-query'
|
import {useMutation} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import * as bsky from '#/types/bsky'
|
import * as bsky from '#/types/bsky'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {lexParse} from '@atproto/lex'
|
import {lexParse} from '@atproto/lex'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getAppLanguageAsContentLanguage,
|
getAppLanguageAsContentLanguage,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {DEMO_FEED} from '#/lib/demo'
|
import {DEMO_FEED} from '#/lib/demo'
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import {type FeedAPI, type FeedAPIResponse} from './types'
|
import {type FeedAPI, type FeedAPIResponse} from './types'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type AtUriString} from '@atproto/syntax'
|
import {type AtUriString} from '@atproto/syntax'
|
||||||
|
|
||||||
import {PROD_DEFAULT_FEED} from '#/lib/constants'
|
import {PROD_DEFAULT_FEED} from '#/lib/constants'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import {type FeedAPI, type FeedAPIResponse} from './types'
|
import {type FeedAPI, type FeedAPIResponse} from './types'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import {type FeedAPI, type FeedAPIResponse} from './types'
|
import {type FeedAPI, type FeedAPIResponse} from './types'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type AtUriString} from '@atproto/syntax'
|
import {type AtUriString} from '@atproto/syntax'
|
||||||
import shuffle from 'lodash.shuffle'
|
import shuffle from 'lodash.shuffle'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {TID} from '@atproto/common-web'
|
import {TID} from '@atproto/common-web'
|
||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {
|
import {
|
||||||
type AtUriString,
|
type AtUriString,
|
||||||
toDatetimeString,
|
toDatetimeString,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri, type AtUriString, type HandleString} from '@atproto/syntax'
|
import {AtUri, type AtUriString, type HandleString} from '@atproto/syntax'
|
||||||
|
|
||||||
import {IMAGE_SIZE_CONFIG_2K_1MB} from '#/lib/constants'
|
import {IMAGE_SIZE_CONFIG_2K_1MB} from '#/lib/constants'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {copyAsync} from 'expo-file-system/legacy'
|
import {copyAsync} from 'expo-file-system/legacy'
|
||||||
import {type BlobRef} from '@atproto/lex'
|
import {type BlobRef, type Client, type EncodingString} from '@atproto/lex'
|
||||||
import {type Client, type EncodingString} from '@atproto/lex-client'
|
|
||||||
|
|
||||||
import {safeDeleteAsync} from '#/lib/media/manip'
|
import {safeDeleteAsync} from '#/lib/media/manip'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import {type BlobRef} from '@atproto/lex'
|
import {type BlobRef, type Client, type EncodingString} from '@atproto/lex'
|
||||||
import {type Client, type EncodingString} from '@atproto/lex-client'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The blob-upload response body: `{blob}`. lex `Client.uploadBlob` returns the
|
* The blob-upload response body: `{blob}`. lex `Client.uploadBlob` returns the
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {type Insets, Platform} from 'react-native'
|
import {type Insets, Platform} from 'react-native'
|
||||||
import {type Service} from '@atproto/lex-client'
|
import {type Service} from '@atproto/lex'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky.app/sdk'
|
||||||
|
|
||||||
import {BLUESKY_PROXY_DID, IS_DEV} from '#/env'
|
import {BLUESKY_PROXY_DID, IS_DEV} from '#/env'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type AtUriString, type DatetimeString} from '@atproto/syntax'
|
import {type AtUriString, type DatetimeString} from '@atproto/syntax'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|
||||||
import {AbortError} from '#/lib/async/cancelable'
|
import {AbortError} from '#/lib/async/cancelable'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type NsidString} from '@atproto/syntax'
|
import {type NsidString} from '@atproto/syntax'
|
||||||
import {type I18n} from '@lingui/core'
|
import {type I18n} from '@lingui/core'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {createUploadTask, FileSystemUploadType} from 'expo-file-system/legacy'
|
import {createUploadTask, FileSystemUploadType} from 'expo-file-system/legacy'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type I18n} from '@lingui/core'
|
import {type I18n} from '@lingui/core'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type I18n} from '@lingui/core'
|
import {type I18n} from '@lingui/core'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {type SupportedMimeTypes, VIDEO_SERVICE} from '#/lib/constants'
|
import {type SupportedMimeTypes, VIDEO_SERVICE} from '#/lib/constants'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {
|
import {
|
||||||
type InterpretedLabelValueDefinition,
|
type InterpretedLabelValueDefinition,
|
||||||
LABELS,
|
LABELS,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {describe, expect, it} from '@jest/globals'
|
import {describe, expect, it} from '@jest/globals'
|
||||||
|
|
||||||
import {NOTIF_SERVICE} from '#/lib/constants'
|
import {NOTIF_SERVICE} from '#/lib/constants'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {useCallback, useEffect} from 'react'
|
|||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import * as Notifications from 'expo-notifications'
|
import * as Notifications from 'expo-notifications'
|
||||||
import {getBadgeCountAsync, setBadgeCountAsync} from 'expo-notifications'
|
import {getBadgeCountAsync, setBadgeCountAsync} from 'expo-notifications'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
import {
|
import {type Procedure, type Query, XrpcResponseError} from '@atproto/lex'
|
||||||
type Procedure,
|
|
||||||
type Query,
|
|
||||||
XrpcResponseError,
|
|
||||||
} from '@atproto/lex-client'
|
|
||||||
import {describe, expect, it} from '@jest/globals'
|
import {describe, expect, it} from '@jest/globals'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {LexError, XrpcError, XrpcResponseError} from '@atproto/lex-client'
|
import {LexError, XrpcError, XrpcResponseError} from '@atproto/lex'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* True for an XRPC error from a lex `Client` (`@atproto/lex-client` `XrpcError`,
|
* True for an XRPC error from a lex `Client` (`@atproto/lex-client` `XrpcError`,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useState} from 'react'
|
import {useCallback, useState} from 'react'
|
||||||
import {Keyboard, View} from 'react-native'
|
import {Keyboard, View} from 'react-native'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import * as EmailValidator from 'email-validator'
|
import * as EmailValidator from 'email-validator'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {cleanError, isNetworkError} from '#/lib/strings/errors'
|
import {cleanError, isNetworkError} from '#/lib/strings/errors'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {TID} from '@atproto/common-web'
|
import {TID} from '@atproto/common-web'
|
||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed, type Client} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
|
||||||
import {
|
import {
|
||||||
type AtIdentifierString,
|
type AtIdentifierString,
|
||||||
type DidString,
|
type DidString,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Platform, View} from 'react-native'
|
import {Platform, View} from 'react-native'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type DidString} from '@atproto/syntax'
|
import {type DidString} from '@atproto/syntax'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useRef,
|
useRef,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import {AppState, type AppStateStatus} from 'react-native'
|
import {AppState, type AppStateStatus} from 'react-native'
|
||||||
import {type Service} from '@atproto/lex-client'
|
import {type Service} from '@atproto/lex'
|
||||||
import {type AtUriString} from '@atproto/syntax'
|
import {type AtUriString} from '@atproto/syntax'
|
||||||
import throttle from 'lodash.throttle'
|
import throttle from 'lodash.throttle'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed, type Client} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
|
||||||
import {type DatetimeString, type DidString} from '@atproto/syntax'
|
import {type DatetimeString, type DidString} from '@atproto/syntax'
|
||||||
import {EventEmitter} from 'eventemitter3'
|
import {EventEmitter} from 'eventemitter3'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed, type Client} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
|
||||||
|
|
||||||
import {type MessagesEventBus} from '#/state/messages/events/agent'
|
import {type MessagesEventBus} from '#/state/messages/events/agent'
|
||||||
import {type ConvoWithDetails} from '#/components/dms/util'
|
import {type ConvoWithDetails} from '#/components/dms/util'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {EventEmitter} from 'eventemitter3'
|
import {EventEmitter} from 'eventemitter3'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {type chat} from '#/lexicons'
|
import {type chat} from '#/lexicons'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {createContext, useContext, useMemo} from 'react'
|
import {createContext, useContext, useMemo} from 'react'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
||||||
|
|
||||||
import {useHiddenPosts, useLabelDefinitions} from '#/state/preferences'
|
import {useHiddenPosts, useLabelDefinitions} from '#/state/preferences'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {type DatetimeString, type HandleString} from '@atproto/syntax'
|
import {type DatetimeString, type HandleString} from '@atproto/syntax'
|
||||||
import {useQuery} from '@tanstack/react-query'
|
import {useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {useCallback} from 'react'
|
import {useCallback} from 'react'
|
||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed, Client} from '@atproto/lex'
|
||||||
import {Client} from '@atproto/lex-client'
|
|
||||||
import {toDatetimeString} from '@atproto/syntax'
|
import {toDatetimeString} from '@atproto/syntax'
|
||||||
import {type QueryClient, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {type QueryClient, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type AtUriString} from '@atproto/syntax'
|
import {type AtUriString} from '@atproto/syntax'
|
||||||
import {
|
import {
|
||||||
type InfiniteData,
|
type InfiniteData,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {
|
import {
|
||||||
type AtIdentifierString,
|
type AtIdentifierString,
|
||||||
AtUri,
|
AtUri,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type DidString} from '@atproto/syntax'
|
import {type DidString} from '@atproto/syntax'
|
||||||
import {useMutation, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {networkRetry} from '#/lib/async/retry'
|
import {networkRetry} from '#/lib/async/retry'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {type AtUriString} from '@atproto/syntax'
|
import {type AtUriString} from '@atproto/syntax'
|
||||||
import {
|
import {
|
||||||
hasMutedWord,
|
hasMutedWord,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import {type DidDocument, getPdsEndpoint} from '@atproto/common-web'
|
import {type DidDocument, getPdsEndpoint} from '@atproto/common-web'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {type HandleString} from '@atproto/syntax'
|
import {type HandleString} from '@atproto/syntax'
|
||||||
import {useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useEffect, useMemo, useRef} from 'react'
|
import {useCallback, useEffect, useMemo, useRef} from 'react'
|
||||||
import {AppState} from 'react-native'
|
import {AppState} from 'react-native'
|
||||||
import {type AtIdentifierString, type Client} from '@atproto/lex-client'
|
import {type AtIdentifierString, type Client} from '@atproto/lex'
|
||||||
import {AtUri, type AtUriString} from '@atproto/syntax'
|
import {AtUri, type AtUriString} from '@atproto/syntax'
|
||||||
import {
|
import {
|
||||||
moderatePost,
|
moderatePost,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useRef} from 'react'
|
import {useRef} from 'react'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {interpretLabelValueDefinitions} from '@bsky.app/sdk/moderation'
|
import {interpretLabelValueDefinitions} from '@bsky.app/sdk/moderation'
|
||||||
|
|
||||||
import {isNonConfigurableModerationAuthority} from '#/state/session/additional-moderation-authorities'
|
import {isNonConfigurableModerationAuthority} from '#/state/session/additional-moderation-authorities'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
type AtIdentifierString,
|
type AtIdentifierString,
|
||||||
type Client,
|
type Client,
|
||||||
type DidString,
|
type DidString,
|
||||||
} from '@atproto/lex-client'
|
} from '@atproto/lex'
|
||||||
import {type DatetimeString} from '@atproto/lex-schema'
|
import {type DatetimeString} from '@atproto/lex-schema'
|
||||||
import {AtUri, type AtUriString} from '@atproto/syntax'
|
import {AtUri, type AtUriString} from '@atproto/syntax'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri, type HandleString} from '@atproto/syntax'
|
import {AtUri, type HandleString} from '@atproto/syntax'
|
||||||
import {type QueryClient, queryOptions, useQuery} from '@tanstack/react-query'
|
import {type QueryClient, queryOptions, useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {useQuery} from '@tanstack/react-query'
|
import {useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {com} from '#/lexicons'
|
import {com} from '#/lexicons'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri, type AtUriString, type DatetimeString} from '@atproto/syntax'
|
import {AtUri, type AtUriString, type DatetimeString} from '@atproto/syntax'
|
||||||
import {RichText} from '@bsky.app/sdk/richtext'
|
import {RichText} from '@bsky.app/sdk/richtext'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {PasswordSession} from '@atproto/lex-password-session'
|
import {PasswordSession} from '@atproto/lex-password-session'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky.app/sdk'
|
||||||
import {describe, expect, it, jest} from '@jest/globals'
|
import {describe, expect, it, jest} from '@jest/globals'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
|
|
||||||
import {device} from '#/storage'
|
import {device} from '#/storage'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {type PasswordSession} from '@atproto/lex-password-session'
|
import {type PasswordSession} from '@atproto/lex-password-session'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky.app/sdk'
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
useSyncExternalStore,
|
useSyncExternalStore,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {PasswordSession, type SessionData} from '@atproto/lex-password-session'
|
import {PasswordSession, type SessionData} from '@atproto/lex-password-session'
|
||||||
|
|
||||||
import * as persisted from '#/state/persisted'
|
import * as persisted from '#/state/persisted'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky.app/sdk'
|
||||||
|
|
||||||
import {IS_TEST_USER} from '#/lib/constants'
|
import {IS_TEST_USER} from '#/lib/constants'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {TID} from '@atproto/common-web'
|
import {TID} from '@atproto/common-web'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {
|
import {
|
||||||
PasswordSession,
|
PasswordSession,
|
||||||
type PasswordSessionOptions,
|
type PasswordSessionOptions,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Client} from '@atproto/lex-client'
|
import {Client} from '@atproto/lex'
|
||||||
import {PasswordSession} from '@atproto/lex-password-session'
|
import {PasswordSession} from '@atproto/lex-password-session'
|
||||||
|
|
||||||
import {isJwtExpired} from '#/lib/jwt'
|
import {isJwtExpired} from '#/lib/jwt'
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
|||||||
import {scheduleOnUI} from 'react-native-worklets'
|
import {scheduleOnUI} from 'react-native-worklets'
|
||||||
import * as FileSystem from 'expo-file-system'
|
import * as FileSystem from 'expo-file-system'
|
||||||
import {type ImagePickerAsset} from 'expo-image-picker'
|
import {type ImagePickerAsset} from 'expo-image-picker'
|
||||||
import {type Client} from '@atproto/lex-client'
|
import {type Client} from '@atproto/lex'
|
||||||
import {AtUri, type AtUriString} from '@atproto/syntax'
|
import {AtUri, type AtUriString} from '@atproto/syntax'
|
||||||
import {type RichText} from '@bsky.app/sdk/richtext'
|
import {type RichText} from '@bsky.app/sdk/richtext'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {type ImagePickerAsset} from 'expo-image-picker'
|
import {type ImagePickerAsset} from 'expo-image-picker'
|
||||||
import {type BlobRef} from '@atproto/lex'
|
import {type BlobRef, type Client} from '@atproto/lex'
|
||||||
import {type Client} from '@atproto/lex-client'
|
|
||||||
import {type I18n} from '@lingui/core'
|
import {type I18n} from '@lingui/core'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user