update lexicons, update threaditempostnumber
This commit is contained in:
@@ -6,48 +6,31 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {
|
"uri": { "type": "string", "format": "at-uri" }
|
||||||
"type": "string",
|
|
||||||
"format": "at-uri"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skeletonSearchActor": {
|
"skeletonSearchActor": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did"],
|
"required": ["did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {
|
"did": { "type": "string", "format": "did" }
|
||||||
"type": "string",
|
|
||||||
"format": "did"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skeletonSearchStarterPack": {
|
"skeletonSearchStarterPack": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {
|
"uri": { "type": "string", "format": "at-uri" }
|
||||||
"type": "string",
|
|
||||||
"format": "at-uri"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"trendingTopic": {
|
"trendingTopic": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["topic", "link"],
|
"required": ["topic", "link"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"topic": {
|
"topic": { "type": "string" },
|
||||||
"type": "string"
|
"displayName": { "type": "string" },
|
||||||
},
|
"description": { "type": "string" },
|
||||||
"displayName": {
|
"link": { "type": "string" }
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skeletonTrend": {
|
"skeletonTrend": {
|
||||||
@@ -61,32 +44,14 @@
|
|||||||
"dids"
|
"dids"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"topic": {
|
"topic": { "type": "string" },
|
||||||
"type": "string"
|
"displayName": { "type": "string" },
|
||||||
},
|
"description": { "type": "string" },
|
||||||
"displayName": {
|
"link": { "type": "string" },
|
||||||
"type": "string"
|
"startedAt": { "type": "string", "format": "datetime" },
|
||||||
},
|
"postCount": { "type": "integer" },
|
||||||
"description": {
|
"status": { "type": "string", "knownValues": ["hot"] },
|
||||||
"type": "string"
|
"category": { "type": "string" },
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"startedAt": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "datetime"
|
|
||||||
},
|
|
||||||
"postCount": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
"type": "string",
|
|
||||||
"knownValues": ["hot"]
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"dids": {
|
"dids": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@@ -107,32 +72,14 @@
|
|||||||
"actors"
|
"actors"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"topic": {
|
"topic": { "type": "string" },
|
||||||
"type": "string"
|
"displayName": { "type": "string" },
|
||||||
},
|
"description": { "type": "string" },
|
||||||
"displayName": {
|
"link": { "type": "string" },
|
||||||
"type": "string"
|
"startedAt": { "type": "string", "format": "datetime" },
|
||||||
},
|
"postCount": { "type": "integer" },
|
||||||
"description": {
|
"status": { "type": "string", "knownValues": ["hot"] },
|
||||||
"type": "string"
|
"category": { "type": "string" },
|
||||||
},
|
|
||||||
"link": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"startedAt": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "datetime"
|
|
||||||
},
|
|
||||||
"postCount": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
"type": "string",
|
|
||||||
"knownValues": ["hot"]
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@@ -153,10 +100,7 @@
|
|||||||
"mutedByViewer"
|
"mutedByViewer"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"post": {
|
"post": { "type": "ref", "ref": "app.bsky.feed.defs#postView" },
|
||||||
"type": "ref",
|
|
||||||
"ref": "app.bsky.feed.defs#postView"
|
|
||||||
},
|
|
||||||
"moreParents": {
|
"moreParents": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "This post has more parents that were not present in the response. This is just a boolean, without the number of parents."
|
"description": "This post has more parents that were not present in the response. This is just a boolean, without the number of parents."
|
||||||
@@ -167,7 +111,15 @@
|
|||||||
},
|
},
|
||||||
"opThread": {
|
"opThread": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread."
|
"description": "This post is part of a contiguous thread by the OP from the thread root. Sub-threads by OP deeper in the tree are not considered an OP thread."
|
||||||
|
},
|
||||||
|
"opThreadPostIndex": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The 1-indexed position of this post within the contiguous OP thread. Only present when this post is part of the OP thread (see `opThread`)."
|
||||||
|
},
|
||||||
|
"opThreadPostCount": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The total number of posts in the contiguous OP thread that this post belongs to. Only present when this post is part of the OP thread (see `opThread`)."
|
||||||
},
|
},
|
||||||
"hiddenByThreadgate": {
|
"hiddenByThreadgate": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -191,10 +143,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["author"],
|
"required": ["author"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"author": {
|
"author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" }
|
||||||
"type": "ref",
|
|
||||||
"ref": "app.bsky.feed.defs#blockedAuthor"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ageAssuranceState": {
|
"ageAssuranceState": {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {Text, View} from 'react-native'
|
import {Text, View} from 'react-native'
|
||||||
import {type AppBskyUnspeccedDefs} from '@atproto/api'
|
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {atoms as a, ios, platform, useTheme} from '#/alf'
|
import {atoms as a, ios, platform, useTheme} from '#/alf'
|
||||||
import {useAnalytics} from '#/analytics'
|
import {useAnalytics} from '#/analytics'
|
||||||
|
import {type app} from '#/lexicons'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How far the inline badge is nudged below the text baseline. Android's
|
* How far the inline badge is nudged below the text baseline. Android's
|
||||||
@@ -12,7 +12,7 @@ import {useAnalytics} from '#/analytics'
|
|||||||
export const POST_NUMBER_INLINE_OFFSET = 6
|
export const POST_NUMBER_INLINE_OFFSET = 6
|
||||||
|
|
||||||
export function useHasThreadItemPostNumber(
|
export function useHasThreadItemPostNumber(
|
||||||
value: AppBskyUnspeccedDefs.ThreadItemPost,
|
value: app.bsky.unspecced.defs.ThreadItemPost,
|
||||||
) {
|
) {
|
||||||
const ax = useAnalytics()
|
const ax = useAnalytics()
|
||||||
const index = value.opThreadPostIndex
|
const index = value.opThreadPostIndex
|
||||||
@@ -32,7 +32,7 @@ export function ThreadItemPostNumber({
|
|||||||
value,
|
value,
|
||||||
inline = true,
|
inline = true,
|
||||||
}: {
|
}: {
|
||||||
value: AppBskyUnspeccedDefs.ThreadItemPost
|
value: app.bsky.unspecced.defs.ThreadItemPost
|
||||||
inline?: boolean
|
inline?: boolean
|
||||||
}) {
|
}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|||||||
Reference in New Issue
Block a user