import client from lex instead of lex-client
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
useRef,
|
||||
} from 'react'
|
||||
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 throttle from 'lodash.throttle'
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {type $Typed} from '@atproto/lex'
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type $Typed, type Client} from '@atproto/lex'
|
||||
import {type DatetimeString, type DidString} from '@atproto/syntax'
|
||||
import {EventEmitter} from 'eventemitter3'
|
||||
import {nanoid} from 'nanoid/non-secure'
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {type $Typed} from '@atproto/lex'
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type $Typed, type Client} from '@atproto/lex'
|
||||
|
||||
import {type MessagesEventBus} from '#/state/messages/events/agent'
|
||||
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 {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'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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 {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 {useQuery} from '@tanstack/react-query'
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {useCallback} from 'react'
|
||||
import {type $Typed} from '@atproto/lex'
|
||||
import {Client} from '@atproto/lex-client'
|
||||
import {type $Typed, Client} from '@atproto/lex'
|
||||
import {toDatetimeString} from '@atproto/syntax'
|
||||
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 InfiniteData,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type Client} from '@atproto/lex'
|
||||
import {
|
||||
type AtIdentifierString,
|
||||
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 {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 {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 {
|
||||
hasMutedWord,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {useState} from 'react'
|
||||
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 {useQuery, useQueryClient} from '@tanstack/react-query'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {useCallback, useEffect, useMemo, useRef} from 'react'
|
||||
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 {
|
||||
moderatePost,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {useRef} from 'react'
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type Client} from '@atproto/lex'
|
||||
import {AtUri} from '@atproto/syntax'
|
||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {useMemo} from 'react'
|
||||
import {Client} from '@atproto/lex-client'
|
||||
import {Client} from '@atproto/lex'
|
||||
import {interpretLabelValueDefinitions} from '@bsky.app/sdk/moderation'
|
||||
|
||||
import {isNonConfigurableModerationAuthority} from '#/state/session/additional-moderation-authorities'
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
type AtIdentifierString,
|
||||
type Client,
|
||||
type DidString,
|
||||
} from '@atproto/lex-client'
|
||||
} from '@atproto/lex'
|
||||
import {type DatetimeString} from '@atproto/lex-schema'
|
||||
import {AtUri, type AtUriString} from '@atproto/syntax'
|
||||
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 {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 {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 {RichText} from '@bsky.app/sdk/richtext'
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type Client} from '@atproto/lex'
|
||||
import {AtUri} from '@atproto/syntax'
|
||||
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 {api} from '@bsky.app/sdk'
|
||||
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'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Client} from '@atproto/lex-client'
|
||||
import {Client} from '@atproto/lex'
|
||||
import {type PasswordSession} from '@atproto/lex-password-session'
|
||||
import {api} from '@bsky.app/sdk'
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
useState,
|
||||
useSyncExternalStore,
|
||||
} 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 * 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 {IS_TEST_USER} from '#/lib/constants'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {TID} from '@atproto/common-web'
|
||||
import {type Client} from '@atproto/lex-client'
|
||||
import {type Client} from '@atproto/lex'
|
||||
import {
|
||||
PasswordSession,
|
||||
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 {isJwtExpired} from '#/lib/jwt'
|
||||
|
||||
Reference in New Issue
Block a user