feat: add support for commenting and reacting on external content

This commit is contained in:
codytseng 2025-11-15 16:26:19 +08:00
parent 5ba5c26fcd
commit 0bb62dd3fb
76 changed files with 1635 additions and 639 deletions

View file

@ -170,7 +170,14 @@ export type TPollCreateData = {
endsAt?: number
}
export type TSearchType = 'profile' | 'profiles' | 'notes' | 'note' | 'hashtag' | 'relay'
export type TSearchType =
| 'profile'
| 'profiles'
| 'notes'
| 'note'
| 'hashtag'
| 'relay'
| 'externalContent'
export type TSearchParams = {
type: TSearchType

19
src/types/twitter.d.ts vendored Normal file
View file

@ -0,0 +1,19 @@
declare global {
interface Window {
twttr?: {
widgets: {
createTweet: (
tweetId: string,
container: HTMLElement,
options?: {
theme?: 'light' | 'dark'
dnt?: boolean
conversation?: 'none' | 'all'
}
) => Promise<HTMLElement | undefined>
}
}
}
}
export {}