[SDK] Use finalised package (#11398)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {RichText} from '@bsky.app/sdk/richtext'
|
import {RichText} from '@bsky/sdk/richtext'
|
||||||
import {i18n} from '@lingui/core'
|
import {i18n} from '@lingui/core'
|
||||||
|
|
||||||
import {parseEmbedPlayerFromUrl} from '#/lib/strings/embed-player'
|
import {parseEmbedPlayerFromUrl} from '#/lib/strings/embed-player'
|
||||||
|
|||||||
+1
-1
@@ -726,7 +726,7 @@
|
|||||||
},
|
},
|
||||||
"app.bsky.video.defs": {
|
"app.bsky.video.defs": {
|
||||||
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.defs",
|
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.defs",
|
||||||
"cid": "bafyreibxabe2aejhtnjbwsnt7va4bvge35p7lzcjt2nwmf2c4taww46yyq"
|
"cid": "bafyreicorzkcw5zp4zjsiepyakpfn3vvtpwsbqwzsy43d2y6i3t5rp3meu"
|
||||||
},
|
},
|
||||||
"app.bsky.video.getJobStatus": {
|
"app.bsky.video.getJobStatus": {
|
||||||
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.getJobStatus",
|
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.getJobStatus",
|
||||||
|
|||||||
@@ -11,15 +11,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [],
|
"required": [],
|
||||||
"properties": {
|
"properties": {
|
||||||
"checkEmailConfirmed": {
|
"checkEmailConfirmed": { "type": "boolean" },
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"liveNow": {
|
"liveNow": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": { "type": "ref", "ref": "#liveNowConfig" }
|
||||||
"type": "ref",
|
|
||||||
"ref": "#liveNowConfig"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,10 +24,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "domains"],
|
"required": ["did", "domains"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {
|
"did": { "type": "string", "format": "did" },
|
||||||
"type": "string",
|
|
||||||
"format": "did"
|
|
||||||
},
|
|
||||||
"domains": {
|
"domains": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton",
|
||||||
|
"defs": {
|
||||||
|
"main": {
|
||||||
|
"type": "query",
|
||||||
|
"description": "Get a skeleton of suggested starterpacks for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getOnboardingSuggestedStarterPacks",
|
||||||
|
"parameters": {
|
||||||
|
"type": "params",
|
||||||
|
"properties": {
|
||||||
|
"viewer": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did",
|
||||||
|
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 25,
|
||||||
|
"default": 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"encoding": "application/json",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["starterPacks"],
|
||||||
|
"properties": {
|
||||||
|
"starterPacks": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "at-uri"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton",
|
||||||
|
"defs": {
|
||||||
|
"main": {
|
||||||
|
"type": "query",
|
||||||
|
"description": "Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers",
|
||||||
|
"parameters": {
|
||||||
|
"type": "params",
|
||||||
|
"properties": {
|
||||||
|
"viewer": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did",
|
||||||
|
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Category of users to get suggestions for."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 50,
|
||||||
|
"default": 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"encoding": "application/json",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["dids"],
|
||||||
|
"properties": {
|
||||||
|
"dids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recId": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "DEPRECATED: use recIdStr instead."
|
||||||
|
},
|
||||||
|
"recIdStr": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Snowflake for this recommendation, use when submitting recommendation events."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,12 +14,8 @@
|
|||||||
"maximum": 100,
|
"maximum": 100,
|
||||||
"default": 50
|
"default": 50
|
||||||
},
|
},
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
"query": { "type": "string" }
|
||||||
},
|
|
||||||
"query": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@@ -28,9 +24,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feeds"],
|
"required": ["feeds"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton",
|
||||||
|
"defs": {
|
||||||
|
"main": {
|
||||||
|
"type": "query",
|
||||||
|
"description": "Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover",
|
||||||
|
"parameters": {
|
||||||
|
"type": "params",
|
||||||
|
"properties": {
|
||||||
|
"viewer": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did",
|
||||||
|
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 50,
|
||||||
|
"default": 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"encoding": "application/json",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["dids"],
|
||||||
|
"properties": {
|
||||||
|
"dids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recIdStr": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Snowflake for this recommendation, use when submitting recommendation events."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton",
|
||||||
|
"defs": {
|
||||||
|
"main": {
|
||||||
|
"type": "query",
|
||||||
|
"description": "Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore",
|
||||||
|
"parameters": {
|
||||||
|
"type": "params",
|
||||||
|
"properties": {
|
||||||
|
"viewer": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did",
|
||||||
|
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Category of users to get suggestions for."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 50,
|
||||||
|
"default": 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"encoding": "application/json",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["dids"],
|
||||||
|
"properties": {
|
||||||
|
"dids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recIdStr": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Snowflake for this recommendation, use when submitting recommendation events."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton",
|
||||||
|
"defs": {
|
||||||
|
"main": {
|
||||||
|
"type": "query",
|
||||||
|
"description": "Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore",
|
||||||
|
"parameters": {
|
||||||
|
"type": "params",
|
||||||
|
"properties": {
|
||||||
|
"viewer": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did",
|
||||||
|
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Category of users to get suggestions for."
|
||||||
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 50,
|
||||||
|
"default": 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"output": {
|
||||||
|
"encoding": "application/json",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["dids"],
|
||||||
|
"properties": {
|
||||||
|
"dids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "did"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recIdStr": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Snowflake for this recommendation, use when submitting recommendation events."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,9 +19,7 @@
|
|||||||
"maximum": 100,
|
"maximum": 100,
|
||||||
"default": 50
|
"default": 50
|
||||||
},
|
},
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"relativeToDid": {
|
"relativeToDid": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "did",
|
"format": "did",
|
||||||
@@ -35,9 +33,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actors"],
|
"required": ["actors"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|||||||
@@ -30,17 +30,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["tag", "subjectType", "subject"],
|
"required": ["tag", "subjectType", "subject"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"tag": {
|
"tag": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"subjectType": {
|
"subjectType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"knownValues": ["actor", "feed"]
|
"knownValues": ["actor", "feed"]
|
||||||
},
|
},
|
||||||
"subject": {
|
"subject": { "type": "string", "format": "uri" }
|
||||||
"type": "string",
|
|
||||||
"format": "uri"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,10 @@
|
|||||||
"type": "ref",
|
"type": "ref",
|
||||||
"ref": "app.bsky.unspecced.defs#skeletonTrend"
|
"ref": "app.bsky.unspecced.defs#skeletonTrend"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"recIdStr": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Snowflake for this recommendation, use when submitting recommendation events."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,15 +34,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [
|
||||||
{
|
{ "name": "InvalidEmail" },
|
||||||
"name": "InvalidEmail"
|
{ "name": "DidTooLong" },
|
||||||
},
|
{ "name": "InvalidInitiation" }
|
||||||
{
|
|
||||||
"name": "DidTooLong"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "InvalidInitiation"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,9 +40,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actors"],
|
"required": ["actors"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"hitsTotal": {
|
"hitsTotal": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
|
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
|
||||||
@@ -57,11 +55,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "BadQueryString" }]
|
||||||
{
|
|
||||||
"name": "BadQueryString"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,9 +83,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["posts"],
|
"required": ["posts"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {
|
"cursor": { "type": "string" },
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"hitsTotal": {
|
"hitsTotal": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
|
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
|
||||||
@@ -100,11 +98,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "BadQueryString" }]
|
||||||
{
|
|
||||||
"name": "BadQueryString"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,13 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The state of the video processing job. All values not listed as a known value indicate that the job is in process.",
|
"description": "The state of the video processing job. All values not listed as a known value indicate that the job is in process.",
|
||||||
"knownValues": [
|
"knownValues": [
|
||||||
|
"JOB_STATE_CREATED",
|
||||||
|
"JOB_STATE_ENCODING",
|
||||||
|
"JOB_STATE_ENCODED",
|
||||||
|
"JOB_STATE_SCANNING",
|
||||||
|
"JOB_STATE_SCANNED",
|
||||||
|
"JOB_STATE_UPLOADING",
|
||||||
|
"JOB_STATE_UPLOADED",
|
||||||
"JOB_STATE_COMPLETED",
|
"JOB_STATE_COMPLETED",
|
||||||
"JOB_STATE_FAILED"
|
"JOB_STATE_FAILED"
|
||||||
]
|
]
|
||||||
|
|||||||
+2
-2
@@ -114,11 +114,11 @@
|
|||||||
"@bsky.app/expo-translate-text": "^0.2.9",
|
"@bsky.app/expo-translate-text": "^0.2.9",
|
||||||
"@bsky.app/peek-menu": "^0.3.2",
|
"@bsky.app/peek-menu": "^0.3.2",
|
||||||
"@bsky.app/react-native-uitextview": "^2.7.0",
|
"@bsky.app/react-native-uitextview": "^2.7.0",
|
||||||
"@bsky.app/sdk": "npm:bsky-sdk-preview@0.0.1-preview.2",
|
|
||||||
"@bsky.app/sift": "^0.3.9",
|
"@bsky.app/sift": "^0.3.9",
|
||||||
"@bsky.app/tapper": "^0.6.1",
|
"@bsky.app/tapper": "^0.6.1",
|
||||||
"@bsky.app/video": "0.3.6",
|
"@bsky.app/video": "0.3.6",
|
||||||
"@bsky.app/video-compressor": "0.2.0",
|
"@bsky.app/video-compressor": "0.2.0",
|
||||||
|
"@bsky/sdk": "1.0.0",
|
||||||
"@emoji-mart/data": "^1.2.1",
|
"@emoji-mart/data": "^1.2.1",
|
||||||
"@emoji-mart/react": "^1.1.1",
|
"@emoji-mart/react": "^1.1.1",
|
||||||
"@expo/html-elements": "^0.12.5",
|
"@expo/html-elements": "^0.12.5",
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
"^cborg$": "<rootDir>/node_modules/cborg/cborg.js"
|
"^cborg$": "<rootDir>/node_modules/cborg/cborg.js"
|
||||||
},
|
},
|
||||||
"transformIgnorePatterns": [
|
"transformIgnorePatterns": [
|
||||||
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|nanoid|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|normalize-url|react-native-svg|@sentry/.*|sentry-expo|bcp-47-match|@atproto/.*|@bsky.app/sdk|tlds|multiformats|uint8arrays|@ipld/.*|cborg|await-lock)"
|
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|nanoid|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|normalize-url|react-native-svg|@sentry/.*|sentry-expo|bcp-47-match|@atproto/.*|@bsky/sdk|tlds|multiformats|uint8arrays|@ipld/.*|cborg|await-lock)"
|
||||||
],
|
],
|
||||||
"modulePathIgnorePatterns": [
|
"modulePathIgnorePatterns": [
|
||||||
"__tests__/.*/__mocks__",
|
"__tests__/.*/__mocks__",
|
||||||
|
|||||||
Generated
+16
-16
@@ -284,9 +284,6 @@ importers:
|
|||||||
'@bsky.app/react-native-uitextview':
|
'@bsky.app/react-native-uitextview':
|
||||||
specifier: ^2.7.0
|
specifier: ^2.7.0
|
||||||
version: 2.7.0(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0(supports-color@8.1.1))(@react-native/metro-config@0.86.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.1.17)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)
|
version: 2.7.0(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0(supports-color@8.1.1))(@react-native/metro-config@0.86.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.1.17)(react@19.1.0)(supports-color@8.1.1))(react@19.1.0)
|
||||||
'@bsky.app/sdk':
|
|
||||||
specifier: npm:bsky-sdk-preview@0.0.1-preview.2
|
|
||||||
version: bsky-sdk-preview@0.0.1-preview.2(@atproto/lex@0.3.6)
|
|
||||||
'@bsky.app/sift':
|
'@bsky.app/sift':
|
||||||
specifier: ^0.3.9
|
specifier: ^0.3.9
|
||||||
version: 0.3.9(2d5c14016450c7e55c8cd0dffcca6f69)
|
version: 0.3.9(2d5c14016450c7e55c8cd0dffcca6f69)
|
||||||
@@ -299,6 +296,9 @@ importers:
|
|||||||
'@bsky.app/video-compressor':
|
'@bsky.app/video-compressor':
|
||||||
specifier: 0.2.0
|
specifier: 0.2.0
|
||||||
version: 0.2.0(83e0f64f4281e4798012214ad5b2d72d)
|
version: 0.2.0(83e0f64f4281e4798012214ad5b2d72d)
|
||||||
|
'@bsky/sdk':
|
||||||
|
specifier: 1.0.0
|
||||||
|
version: 1.0.0(@atproto/lex@0.3.6)
|
||||||
'@emoji-mart/data':
|
'@emoji-mart/data':
|
||||||
specifier: ^1.2.1
|
specifier: ^1.2.1
|
||||||
version: 1.2.1
|
version: 1.2.1
|
||||||
@@ -1771,6 +1771,12 @@ packages:
|
|||||||
react: '*'
|
react: '*'
|
||||||
react-native: '*'
|
react-native: '*'
|
||||||
|
|
||||||
|
'@bsky/sdk@1.0.0':
|
||||||
|
resolution: {integrity: sha512-nnVYpbESETN5R/dyBLWE+5u52HkJO0+EWMv+bLDRZUkHEQtHV2RX3kLMqXaEWVJgijagziLPXb6179mkml8WZA==}
|
||||||
|
engines: {node: '>=22.12.0'}
|
||||||
|
peerDependencies:
|
||||||
|
'@atproto/lex': ^0.3.0
|
||||||
|
|
||||||
'@crowdin/cli@4.14.2':
|
'@crowdin/cli@4.14.2':
|
||||||
resolution: {integrity: sha512-JRrHvitc0w+r/h6XXSOq917HxsjRoxPEtyNYSmylKirjiPNrRx84VKtqFlOIWIFCOZI5BoXg6hNpE0Zq7CwVBA==}
|
resolution: {integrity: sha512-JRrHvitc0w+r/h6XXSOq917HxsjRoxPEtyNYSmylKirjiPNrRx84VKtqFlOIWIFCOZI5BoXg6hNpE0Zq7CwVBA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -4494,12 +4500,6 @@ packages:
|
|||||||
bser@2.1.1:
|
bser@2.1.1:
|
||||||
resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
|
resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
|
||||||
|
|
||||||
bsky-sdk-preview@0.0.1-preview.2:
|
|
||||||
resolution: {integrity: sha512-LOcuvzc6UASiI5os1BUIo9dxAeVPIFiplcVSYbaDCgpH+tkpv2mqSqqsCRTP0g2CaVCwozqaTVy+jnsTO6/9BQ==}
|
|
||||||
engines: {node: '>=22.12.0'}
|
|
||||||
peerDependencies:
|
|
||||||
'@atproto/lex': ^0.3.0
|
|
||||||
|
|
||||||
buffer-crc32@0.2.13:
|
buffer-crc32@0.2.13:
|
||||||
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
|
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
|
||||||
|
|
||||||
@@ -10840,6 +10840,13 @@ snapshots:
|
|||||||
react: 19.1.0
|
react: 19.1.0
|
||||||
react-native: 0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0(supports-color@8.1.1))(@react-native/metro-config@0.86.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.1.17)(react@19.1.0)(supports-color@8.1.1)
|
react-native: 0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0(supports-color@8.1.1))(@react-native/metro-config@0.86.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.1.17)(react@19.1.0)(supports-color@8.1.1)
|
||||||
|
|
||||||
|
'@bsky/sdk@1.0.0(@atproto/lex@0.3.6)':
|
||||||
|
dependencies:
|
||||||
|
'@atproto-labs/handle-resolver': 0.4.8
|
||||||
|
'@atproto/lex': 0.3.6
|
||||||
|
'@atproto/syntax': 0.7.4
|
||||||
|
tlds: 1.261.0
|
||||||
|
|
||||||
'@crowdin/cli@4.14.2':
|
'@crowdin/cli@4.14.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
command-exists-promise: 2.0.2
|
command-exists-promise: 2.0.2
|
||||||
@@ -14040,13 +14047,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
node-int64: 0.4.0
|
node-int64: 0.4.0
|
||||||
|
|
||||||
bsky-sdk-preview@0.0.1-preview.2(@atproto/lex@0.3.6):
|
|
||||||
dependencies:
|
|
||||||
'@atproto-labs/handle-resolver': 0.4.8
|
|
||||||
'@atproto/lex': 0.3.6
|
|
||||||
'@atproto/syntax': 0.7.4
|
|
||||||
tlds: 1.261.0
|
|
||||||
|
|
||||||
buffer-crc32@0.2.13: {}
|
buffer-crc32@0.2.13: {}
|
||||||
|
|
||||||
buffer-from@1.1.2: {}
|
buffer-from@1.1.2: {}
|
||||||
|
|||||||
+1
-9
@@ -46,12 +46,4 @@ minimumReleaseAgeExclude:
|
|||||||
- '@atproto/*'
|
- '@atproto/*'
|
||||||
- '@atproto-labs/*'
|
- '@atproto-labs/*'
|
||||||
- '@bsky.app/*'
|
- '@bsky.app/*'
|
||||||
# todo: remove when old enough
|
- '@bsky/*'
|
||||||
- '@oxlint-tsgolint/darwin-arm64@7.0.2001'
|
|
||||||
- '@oxlint-tsgolint/darwin-x64@7.0.2001'
|
|
||||||
- '@oxlint-tsgolint/linux-arm64@7.0.2001'
|
|
||||||
- '@oxlint-tsgolint/linux-x64@7.0.2001'
|
|
||||||
- '@oxlint-tsgolint/win32-arm64@7.0.2001'
|
|
||||||
- '@oxlint-tsgolint/win32-x64@7.0.2001'
|
|
||||||
- oxlint-tsgolint@7.0.2001
|
|
||||||
- bsky-sdk-preview@0.0.1-preview.2
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
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 {type Client} from '@atproto/lex'
|
import {type Client} from '@atproto/lex'
|
||||||
import {getPreferences} from '@bsky.app/sdk'
|
import {getPreferences} from '@bsky/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'
|
||||||
import {persistQueryClient} from '@tanstack/react-query-persist-client'
|
import {persistQueryClient} from '@tanstack/react-query-persist-client'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useEffect, useMemo, useState} from 'react'
|
import {useEffect, useMemo, useState} from 'react'
|
||||||
import type * as AgeRange from 'expo-age-range'
|
import type * as AgeRange from 'expo-age-range'
|
||||||
import {computeAgeAssuranceRegionAccess} from '@bsky.app/sdk/utils'
|
import {computeAgeAssuranceRegionAccess} from '@bsky/sdk/utils'
|
||||||
|
|
||||||
import {getAge} from '#/lib/strings/time'
|
import {getAge} from '#/lib/strings/time'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type * as AgeRange from 'expo-age-range'
|
import type * as AgeRange from 'expo-age-range'
|
||||||
import {type computeAgeAssuranceRegionAccess} from '@bsky.app/sdk/utils'
|
import {type computeAgeAssuranceRegionAccess} from '@bsky/sdk/utils'
|
||||||
|
|
||||||
import {logger} from '#/ageAssurance/logger'
|
import {logger} from '#/ageAssurance/logger'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useCallback} from 'react'
|
import {useCallback} from 'react'
|
||||||
import {computeAgeAssuranceRegionAccess} from '@bsky.app/sdk/utils'
|
import {computeAgeAssuranceRegionAccess} from '@bsky/sdk/utils'
|
||||||
|
|
||||||
import {useAgeAssuranceServerDataContext} from '#/ageAssurance/data'
|
import {useAgeAssuranceServerDataContext} from '#/ageAssurance/data'
|
||||||
import {logger} from '#/ageAssurance/logger'
|
import {logger} from '#/ageAssurance/logger'
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import type * as AgeRange from 'expo-age-range'
|
import type * as AgeRange from 'expo-age-range'
|
||||||
import {type ModerationPrefs} from '@bsky.app/sdk/moderation'
|
import {type ModerationPrefs} from '@bsky/sdk/moderation'
|
||||||
import {
|
import {
|
||||||
computeAgeAssuranceRegionAccess,
|
computeAgeAssuranceRegionAccess,
|
||||||
getAgeAssuranceRegionConfig,
|
getAgeAssuranceRegionConfig,
|
||||||
} from '@bsky.app/sdk/utils'
|
} from '@bsky/sdk/utils'
|
||||||
|
|
||||||
import {getAge} from '#/lib/strings/time'
|
import {getAge} from '#/lib/strings/time'
|
||||||
import {regionName} from '#/locale/helpers'
|
import {regionName} from '#/locale/helpers'
|
||||||
@@ -45,28 +45,10 @@ export function getAgeAssuranceRegionConfigForGeolocation(
|
|||||||
config: app.bsky.ageassurance.defs.Config,
|
config: app.bsky.ageassurance.defs.Config,
|
||||||
geolocation: Geolocation,
|
geolocation: Geolocation,
|
||||||
): app.bsky.ageassurance.defs.ConfigRegion | undefined {
|
): app.bsky.ageassurance.defs.ConfigRegion | undefined {
|
||||||
/*
|
return getAgeAssuranceRegionConfig(config, {
|
||||||
* The SDK's region matcher takes no `platform` filter, so platform scoping
|
|
||||||
* is applied here: regions restricted to other platforms are dropped before
|
|
||||||
* matching. Once the SDK accepts a platform, this whole function body
|
|
||||||
* collapses to:
|
|
||||||
*
|
|
||||||
* return getAgeAssuranceRegionConfig(config, {
|
|
||||||
* countryCode: geolocation.countryCode ?? '',
|
|
||||||
* regionCode: geolocation.regionCode,
|
|
||||||
* platform: AGE_ASSURANCE_PLATFORM,
|
|
||||||
* })
|
|
||||||
*/
|
|
||||||
const scoped: app.bsky.ageassurance.defs.Config = {
|
|
||||||
...config,
|
|
||||||
regions: config.regions.filter(
|
|
||||||
region =>
|
|
||||||
!region.platforms || region.platforms.includes(AGE_ASSURANCE_PLATFORM),
|
|
||||||
),
|
|
||||||
}
|
|
||||||
return getAgeAssuranceRegionConfig(scoped, {
|
|
||||||
countryCode: geolocation.countryCode ?? '',
|
countryCode: geolocation.countryCode ?? '',
|
||||||
regionCode: geolocation.regionCode,
|
regionCode: geolocation.regionCode,
|
||||||
|
platform: AGE_ASSURANCE_PLATFORM,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useCallback, useMemo} from 'react'
|
import {useCallback, useMemo} from 'react'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {keepPreviousData, useQuery} from '@tanstack/react-query'
|
import {keepPreviousData, useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {isJustAMute, moduiContainsHideableOffense} from '#/lib/moderation'
|
import {isJustAMute, moduiContainsHideableOffense} from '#/lib/moderation'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import Animated, {
|
|||||||
withDelay,
|
withDelay,
|
||||||
withTiming,
|
withTiming,
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {useMaybeProfileShadow} from '#/state/cache/profile-shadow'
|
import {useMaybeProfileShadow} from '#/state/cache/profile-shadow'
|
||||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useCallback, useEffect, useMemo} from 'react'
|
import {useCallback, useEffect, useMemo} from 'react'
|
||||||
import {type GestureResponderEvent, View} from 'react-native'
|
import {type GestureResponderEvent, View} from 'react-native'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {RichText as RichTextApi} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextApi} from '@bsky/sdk/richtext'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useRef} from 'react'
|
import {useRef} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {makeProfileLink} from '#/lib/routes/links'
|
import {makeProfileLink} from '#/lib/routes/links'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useEffect, useMemo} from 'react'
|
import {useEffect, useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {moderateUserList, type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {moderateUserList, type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
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,6 +1,6 @@
|
|||||||
import {useMemo, useState} from 'react'
|
import {useMemo, useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
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,7 +1,7 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky/sdk'
|
||||||
import {type ModerationCause} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {useModerationCauseDescription} from '#/lib/moderation/useModerationCauseDescription'
|
import {useModerationCauseDescription} from '#/lib/moderation/useModerationCauseDescription'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {moderateFeedGenerator} from '@bsky.app/sdk/moderation'
|
import {moderateFeedGenerator} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {moderateUserList} from '@bsky.app/sdk/moderation'
|
import {moderateUserList} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import {useCallback, useMemo} from 'react'
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed} from '@atproto/lex'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {moderatePost} from '@bsky.app/sdk/moderation'
|
import {moderatePost} from '@bsky/sdk/moderation'
|
||||||
import {RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {Trans} from '@lingui/react/macro'
|
import {Trans} from '@lingui/react/macro'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {type StyleProp, type ViewStyle} from 'react-native'
|
import {type StyleProp, type ViewStyle} from 'react-native'
|
||||||
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
|
import {type ModerationDecision} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import * as Clipboard from 'expo-clipboard'
|
import * as Clipboard from 'expo-clipboard'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {type RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {type RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {memo, useMemo, useState} from 'react'
|
import {memo, useMemo, useState} from 'react'
|
||||||
import {type Insets} from 'react-native'
|
import {type Insets} from 'react-native'
|
||||||
import {type RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {type RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {type Shadow} from '#/state/cache/post-shadow'
|
import {type Shadow} from '#/state/cache/post-shadow'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {ScrollView, View} from 'react-native'
|
import {ScrollView, View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
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,5 +1,5 @@
|
|||||||
import {type PressableProps, type StyleProp, type ViewStyle} from 'react-native'
|
import {type PressableProps, type StyleProp, type ViewStyle} from 'react-native'
|
||||||
import {type RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {type RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
|
|
||||||
import {type Shadow} from '#/state/cache/post-shadow'
|
import {type Shadow} from '#/state/cache/post-shadow'
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {memo, useMemo, useState} from 'react'
|
import {memo, useMemo, useState} from 'react'
|
||||||
import {type Insets} from 'react-native'
|
import {type Insets} from 'react-native'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {type RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {type RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {memo, useMemo, useState} from 'react'
|
import {memo, useMemo, useState} from 'react'
|
||||||
import {type StyleProp, View, type ViewStyle} from 'react-native'
|
import {type StyleProp, View, type ViewStyle} from 'react-native'
|
||||||
import {type RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {type RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
View,
|
View,
|
||||||
type ViewStyle,
|
type ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {RichText as RichTextApi} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextApi} from '@bsky/sdk/richtext'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {getModerationCauseKey} from '#/lib/moderation'
|
import {getModerationCauseKey} from '#/lib/moderation'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {memo, useCallback, useEffect, useMemo, useReducer, useRef} from 'react'
|
import {memo, useCallback, useEffect, useMemo, useReducer, useRef} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {flip, offset, shift, size, useFloating} from '@floating-ui/react-dom'
|
import {flip, offset, shift, size, useFloating} from '@floating-ui/react-dom'
|
||||||
import {msg, plural} from '@lingui/core/macro'
|
import {msg, plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {memo, useCallback, useEffect, useMemo, useRef, useState} from 'react'
|
import {memo, useCallback, useEffect, useMemo, useRef, useState} from 'react'
|
||||||
import {TextInput, View, type ViewToken} from 'react-native'
|
import {TextInput, View, type ViewToken} from 'react-native'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
|
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {type StyleProp, type TextStyle} from 'react-native'
|
import {type StyleProp, type TextStyle} from 'react-native'
|
||||||
import {RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
|
|
||||||
import {toShortUrl} from '#/lib/strings/url-helpers'
|
import {toShortUrl} from '#/lib/strings/url-helpers'
|
||||||
import {android, atoms as a, flatten, type TextStyleProp} from '#/alf'
|
import {android, atoms as a, flatten, type TextStyleProp} from '#/alf'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {forwardRef, useCallback, useImperativeHandle, useState} from 'react'
|
import {forwardRef, useCallback, useImperativeHandle, useState} from 'react'
|
||||||
import {type ListRenderItemInfo, View} from 'react-native'
|
import {type ListRenderItemInfo, View} from 'react-native'
|
||||||
import {AtUri} from '@atproto/syntax'
|
import {AtUri} from '@atproto/syntax'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {
|
import {
|
||||||
type InfiniteData,
|
type InfiniteData,
|
||||||
type UseInfiniteQueryResult,
|
type UseInfiniteQueryResult,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useRef} from 'react'
|
import {useRef} from 'react'
|
||||||
import {type ListRenderItemInfo} from 'react-native'
|
import {type ListRenderItemInfo} from 'react-native'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
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'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
moderateProfile,
|
moderateProfile,
|
||||||
type ModerationOpts,
|
type ModerationOpts,
|
||||||
type ModerationUI,
|
type ModerationUI,
|
||||||
} from '@bsky.app/sdk/moderation'
|
} from '@bsky/sdk/moderation'
|
||||||
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'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {useMemo} from 'react'
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {LinearGradient} from 'expo-linear-gradient'
|
import {LinearGradient} from 'expo-linear-gradient'
|
||||||
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
|
import {type ModerationDecision} from '@bsky/sdk/moderation'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useCallback, useEffect, useState} from 'react'
|
import {useCallback, useEffect, useState} from 'react'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {useRequireEmailVerification} from '#/lib/hooks/useRequireEmailVerification'
|
import {useRequireEmailVerification} from '#/lib/hooks/useRequireEmailVerification'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useMemo, useState} from 'react'
|
import {useMemo, useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type Un$Typed} from '@atproto/lex'
|
import {type Un$Typed} from '@atproto/lex'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
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'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ 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'
|
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/sdk'
|
||||||
import {msg, t} from '@lingui/core/macro'
|
import {msg, t} 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'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {View} from 'react-native'
|
|||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import * as SMS from 'expo-sms'
|
import * as SMS from 'expo-sms'
|
||||||
import {type DidString} from '@atproto/syntax'
|
import {type DidString} from '@atproto/syntax'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {Plural, Trans} from '@lingui/react/macro'
|
import {Plural, Trans} from '@lingui/react/macro'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useCallback, useState} from 'react'
|
import {useCallback, useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type DatetimeString, toDatetimeString} from '@atproto/syntax'
|
import {type DatetimeString, toDatetimeString} from '@atproto/syntax'
|
||||||
import {sanitizeMutedWordValue} from '@bsky.app/sdk/utils'
|
import {sanitizeMutedWordValue} from '@bsky/sdk/utils'
|
||||||
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'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import {TextInput, View} from 'react-native'
|
import {TextInput, View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-display-name'
|
import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-display-name'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useEffect, useMemo, useState} from 'react'
|
import {useCallback, useEffect, useMemo, useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {Plural, Trans} from '@lingui/react/macro'
|
import {Plural, Trans} from '@lingui/react/macro'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useMemo} from 'react'
|
import {useCallback, useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
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,5 +1,5 @@
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {MessageContextMenu} from '#/components/dms/MessageContextMenu'
|
import {MessageContextMenu} from '#/components/dms/MessageContextMenu'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useRef, useState} from 'react'
|
import {useCallback, useRef, useState} from 'react'
|
||||||
import {Pressable, View} from 'react-native'
|
import {Pressable, View} from 'react-native'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Fragment} from 'react'
|
import {Fragment} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationCause} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause} from '@bsky/sdk/moderation'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useCallback, useEffect} from 'react'
|
import {useCallback, useEffect} from 'react'
|
||||||
import {type ScrollView, View} from 'react-native'
|
import {type ScrollView, View} from 'react-native'
|
||||||
import Animated, {useAnimatedRef, useSharedValue} from 'react-native-reanimated'
|
import Animated, {useAnimatedRef, useSharedValue} from 'react-native-reanimated'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {HITSLOP_10} from '#/lib/constants'
|
import {HITSLOP_10} from '#/lib/constants'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {memo, useCallback} from 'react'
|
import {memo, useCallback} from 'react'
|
||||||
import {Keyboard, View} from 'react-native'
|
import {Keyboard, View} from 'react-native'
|
||||||
import {type ModerationCause} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import {LayoutAnimation, type TextInput, View} from 'react-native'
|
import {LayoutAnimation, type TextInput, View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {MAX_GROUP_NAME_GRAPHEME_LENGTH} from '#/lib/constants'
|
import {MAX_GROUP_NAME_GRAPHEME_LENGTH} from '#/lib/constants'
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import {memo, useCallback} from 'react'
|
|||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import {type GestureType} from 'react-native-gesture-handler'
|
import {type GestureType} from 'react-native-gesture-handler'
|
||||||
import * as Clipboard from 'expo-clipboard'
|
import * as Clipboard from 'expo-clipboard'
|
||||||
import {type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {RichText} from '@bsky.app/sdk/richtext'
|
import {RichText} from '@bsky/sdk/richtext'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ import Animated, {
|
|||||||
ZoomIn,
|
ZoomIn,
|
||||||
ZoomOut,
|
ZoomOut,
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
import {RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useCallback, useMemo} from 'react'
|
import {useCallback, useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
|
import {type ModerationDecision} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {useProfileShadow} from '#/state/cache/profile-shadow'
|
import {useProfileShadow} from '#/state/cache/profile-shadow'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-display-name'
|
import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-display-name'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
import {Trans} from '@lingui/react/macro'
|
import {Trans} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {type $Typed} from '@atproto/lex'
|
import {type $Typed} from '@atproto/lex'
|
||||||
import {moderateProfile, type ModerationOpts} from '@bsky.app/sdk/moderation'
|
import {moderateProfile, type ModerationOpts} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {EMOJI_REACTION_LIMIT} from '#/lib/constants'
|
import {EMOJI_REACTION_LIMIT} from '#/lib/constants'
|
||||||
import {isBlockedOrBlocking} from '#/lib/moderation/blocked-and-muted'
|
import {isBlockedOrBlocking} from '#/lib/moderation/blocked-and-muted'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useEffect, useState} from 'react'
|
import {useEffect, useState} from 'react'
|
||||||
import {RichText as RichTextAPI} from '@bsky.app/sdk/richtext'
|
import {RichText as RichTextAPI} from '@bsky/sdk/richtext'
|
||||||
|
|
||||||
import {useAppviewClient} from '#/state/session'
|
import {useAppviewClient} from '#/state/session'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type ModerationCause, type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause, type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {unique} from '#/lib/moderation'
|
import {unique} from '#/lib/moderation'
|
||||||
import {type AppModerationCause} from '#/components/Pills'
|
import {type AppModerationCause} from '#/components/Pills'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useEffect} from 'react'
|
import {useEffect} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {Pressable, View} from 'react-native'
|
import {Pressable, View} from 'react-native'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
type ViewStyle,
|
type ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {createContext, useContext, useState} from 'react'
|
import {createContext, useContext, useState} from 'react'
|
||||||
import {type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ModerationCauseDescription,
|
type ModerationCauseDescription,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {View} from 'react-native'
|
|||||||
import {
|
import {
|
||||||
type InterpretedLabelValueDefinition,
|
type InterpretedLabelValueDefinition,
|
||||||
type LabelPreference,
|
type LabelPreference,
|
||||||
} from '@bsky.app/sdk/moderation'
|
} from '@bsky/sdk/moderation'
|
||||||
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,6 +1,6 @@
|
|||||||
import {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {type ModerationCause} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause} from '@bsky/sdk/moderation'
|
||||||
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,5 +1,5 @@
|
|||||||
import {type StyleProp, View, type ViewStyle} from 'react-native'
|
import {type StyleProp, View, type ViewStyle} from 'react-native'
|
||||||
import {type ModerationCause, type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause, type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
import {plural} from '@lingui/core/macro'
|
import {plural} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react/macro'
|
import {useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
type ViewStyle,
|
type ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {type ModerationCause, type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause, type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
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,5 +1,5 @@
|
|||||||
import {type StyleProp, type ViewStyle} from 'react-native'
|
import {type StyleProp, type ViewStyle} from 'react-native'
|
||||||
import {type ModerationDecision} from '@bsky.app/sdk/moderation'
|
import {type ModerationDecision} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {getModerationCauseKey, unique} from '#/lib/moderation'
|
import {getModerationCauseKey, unique} from '#/lib/moderation'
|
||||||
import * as Pills from '#/components/Pills'
|
import * as Pills from '#/components/Pills'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {type AtUriString, type DidString} from '@atproto/syntax'
|
import {type AtUriString, type DidString} from '@atproto/syntax'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky/sdk'
|
||||||
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'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import {Pressable, type ScrollView, View} from 'react-native'
|
import {Pressable, type ScrollView, View} from 'react-native'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky/sdk'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
|
|
||||||
import {wait} from '#/lib/async/wait'
|
import {wait} from '#/lib/async/wait'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
type ViewStyle,
|
type ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {createContext, useContext, useMemo} from 'react'
|
import {createContext, useContext, useMemo} from 'react'
|
||||||
import {hasMutedWord} from '@bsky.app/sdk/moderation'
|
import {hasMutedWord} from '@bsky/sdk/moderation'
|
||||||
import {QueryClient, useQuery} from '@tanstack/react-query'
|
import {QueryClient, useQuery} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {useOnAppStateChange} from '#/lib/appState'
|
import {useOnAppStateChange} from '#/lib/appState'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {useEffect} from 'react'
|
import {useEffect} from 'react'
|
||||||
import {getPreferences, updateLiveEventPreferences} from '@bsky.app/sdk'
|
import {getPreferences, updateLiveEventPreferences} from '@bsky/sdk'
|
||||||
import {useMutation, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useCallback, useMemo} from 'react'
|
import {useCallback, useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {moderateStatus} from '@bsky.app/sdk/moderation'
|
import {moderateStatus} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import {useQueryClient} from '@tanstack/react-query'
|
import {useQueryClient} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {useMemo} from 'react'
|
|||||||
import {retry} from '@atproto/common-web'
|
import {retry} from '@atproto/common-web'
|
||||||
import {type $Typed, type l, type UriString} from '@atproto/lex'
|
import {type $Typed, type l, type UriString} from '@atproto/lex'
|
||||||
import {AtUri, toDatetimeString} from '@atproto/syntax'
|
import {AtUri, toDatetimeString} from '@atproto/syntax'
|
||||||
import {moderateStatus} from '@bsky.app/sdk/moderation'
|
import {moderateStatus} from '@bsky/sdk/moderation'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
toDatetimeString,
|
toDatetimeString,
|
||||||
type UriString,
|
type UriString,
|
||||||
} from '@atproto/syntax'
|
} from '@atproto/syntax'
|
||||||
import {RichText} from '@bsky.app/sdk/richtext'
|
import {RichText} from '@bsky/sdk/richtext'
|
||||||
import {t} from '@lingui/core/macro'
|
import {t} from '@lingui/core/macro'
|
||||||
import {type QueryClient} from '@tanstack/react-query'
|
import {type QueryClient} from '@tanstack/react-query'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {type Insets, Platform} from 'react-native'
|
import {type Insets, Platform} from 'react-native'
|
||||||
import {type Service} from '@atproto/lex'
|
import {type Service} from '@atproto/lex'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky/sdk'
|
||||||
|
|
||||||
import {BLUESKY_PROXY_DID, CHAT_PROXY_DID, IS_DEV} from '#/env'
|
import {BLUESKY_PROXY_DID, CHAT_PROXY_DID, IS_DEV} from '#/env'
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
type ModerationCause,
|
type ModerationCause,
|
||||||
type ModerationOpts,
|
type ModerationOpts,
|
||||||
type ModerationUI,
|
type ModerationUI,
|
||||||
} from '@bsky.app/sdk/moderation'
|
} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
type InterpretedLabelValueDefinition,
|
type InterpretedLabelValueDefinition,
|
||||||
type LabelPreference,
|
type LabelPreference,
|
||||||
} from '@bsky.app/sdk/moderation'
|
} from '@bsky/sdk/moderation'
|
||||||
import {msg} from '@lingui/core/macro'
|
import {msg} from '@lingui/core/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
type InterpretedLabelValueDefinition,
|
type InterpretedLabelValueDefinition,
|
||||||
interpretLabelValueDefinition,
|
interpretLabelValueDefinition,
|
||||||
LABELS,
|
LABELS,
|
||||||
} from '@bsky.app/sdk/moderation'
|
} from '@bsky/sdk/moderation'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import * as bcp47Match from 'bcp-47-match'
|
import * as bcp47Match from 'bcp-47-match'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {api} from '@bsky.app/sdk'
|
import {api} from '@bsky/sdk'
|
||||||
import {type ModerationCause} from '@bsky.app/sdk/moderation'
|
import {type ModerationCause} from '@bsky/sdk/moderation'
|
||||||
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 ModerationUI} from '@bsky.app/sdk/moderation'
|
import {type ModerationUI} from '@bsky/sdk/moderation'
|
||||||
|
|
||||||
// \u2705 = ✅
|
// \u2705 = ✅
|
||||||
// \u2713 = ✓
|
// \u2713 = ✓
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type RichText} from '@bsky.app/sdk/richtext'
|
import {type RichText} from '@bsky/sdk/richtext'
|
||||||
import {countGraphemes} from 'unicode-segmenter/grapheme'
|
import {countGraphemes} from 'unicode-segmenter/grapheme'
|
||||||
|
|
||||||
import {shortenLinks} from './rich-text-manip'
|
import {shortenLinks} from './rich-text-manip'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type RichText} from '@bsky.app/sdk/richtext'
|
import {type RichText} from '@bsky/sdk/richtext'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import * as bsky from '#/types/bsky'
|
import * as bsky from '#/types/bsky'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {type RichText, UnicodeString} from '@bsky.app/sdk/richtext'
|
import {type RichText, UnicodeString} from '@bsky/sdk/richtext'
|
||||||
|
|
||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
import * as bsky from '#/types/bsky'
|
import * as bsky from '#/types/bsky'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
ScrollEdgeEffect,
|
ScrollEdgeEffect,
|
||||||
ScrollEdgeEffectProvider,
|
ScrollEdgeEffectProvider,
|
||||||
} from '@bsky.app/expo-scroll-edge-effect'
|
} from '@bsky.app/expo-scroll-edge-effect'
|
||||||
import {moderateProfile} from '@bsky.app/sdk/moderation'
|
import {moderateProfile} from '@bsky/sdk/moderation'
|
||||||
import {Trans, useLingui} from '@lingui/react/macro'
|
import {Trans, useLingui} from '@lingui/react/macro'
|
||||||
import {
|
import {
|
||||||
type RouteProp,
|
type RouteProp,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user