fix type errors
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@
|
|||||||
"open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 yarn build-web"
|
"open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 yarn build-web"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/api": "^0.12.19-next.0",
|
"@atproto/api": "0.12.19-next.0",
|
||||||
"@bam.tech/react-native-image-resizer": "^3.0.4",
|
"@bam.tech/react-native-image-resizer": "^3.0.4",
|
||||||
"@braintree/sanitize-url": "^6.0.2",
|
"@braintree/sanitize-url": "^6.0.2",
|
||||||
"@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
|
"@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ export function QrCodeDialog({
|
|||||||
await setImageAsync(base64)
|
await setImageAsync(base64)
|
||||||
} else {
|
} else {
|
||||||
const canvas = await getCanvas(uri)
|
const canvas = await getCanvas(uri)
|
||||||
|
// @ts-expect-error web only
|
||||||
canvas.toBlob((blob: Blob) => {
|
canvas.toBlob((blob: Blob) => {
|
||||||
const item = new ClipboardItem({'image/png': blob})
|
const item = new ClipboardItem({'image/png': blob})
|
||||||
navigator.clipboard.write([item])
|
navigator.clipboard.write([item])
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export function useStarterPackEntry() {
|
|||||||
|
|
||||||
if (name && rkey) {
|
if (name && rkey) {
|
||||||
setUsedStarterPack({
|
setUsedStarterPack({
|
||||||
uri: window.href,
|
uri: window.location.href,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ export const createStarterPackList = async ({
|
|||||||
descriptionFacets?: Facet[]
|
descriptionFacets?: Facet[]
|
||||||
profiles: AppBskyActorDefs.ProfileViewBasic[]
|
profiles: AppBskyActorDefs.ProfileViewBasic[]
|
||||||
agent: BskyAgent
|
agent: BskyAgent
|
||||||
}): Promise<{uri: string; cid: string} | undefined> => {
|
}): Promise<{uri: string; cid: string}> => {
|
||||||
if (profiles.length === 0) return
|
if (profiles.length === 0) throw new Error('No profiles given')
|
||||||
|
|
||||||
const list = await agent.app.bsky.graph.list.create(
|
const list = await agent.app.bsky.graph.list.create(
|
||||||
{repo: agent.session!.did},
|
{repo: agent.session!.did},
|
||||||
@@ -90,7 +90,7 @@ export async function generateStarterpack({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: defaultName ?? '',
|
name: defaultName ?? '',
|
||||||
list: list?.uri,
|
list: list.uri,
|
||||||
createdAt: new Date().toISOString(),
|
createdAt: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ function WizardInner({
|
|||||||
name: state.name ?? defaultName,
|
name: state.name ?? defaultName,
|
||||||
description: state.description,
|
description: state.description,
|
||||||
descriptionFacets: [],
|
descriptionFacets: [],
|
||||||
list: list?.uri,
|
list: list.uri,
|
||||||
feeds: state.feeds.map(f => ({
|
feeds: state.feeds.map(f => ({
|
||||||
uri: f.uri,
|
uri: f.uri,
|
||||||
})),
|
})),
|
||||||
|
|||||||
@@ -34,10 +34,10 @@
|
|||||||
jsonpointer "^5.0.0"
|
jsonpointer "^5.0.0"
|
||||||
leven "^3.1.0"
|
leven "^3.1.0"
|
||||||
|
|
||||||
"@atproto/api@^0.12.19-next.0":
|
"@atproto/api@0.12.19-next.0":
|
||||||
version "0.12.19"
|
version "0.12.19-next.0"
|
||||||
resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.19.tgz#6d842269b6b9cd3fc5864e12824d4fb04cc033cf"
|
resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.19-next.0.tgz#9592476cbdba8482d0fd8d65e20275c95d6d5fd4"
|
||||||
integrity sha512-dsiTpjqBhjGwNW/qG/tLSgUQnmOSvd8hsQr5d8GCUDGK2AEHWl0KNgLPbwxIBEIo8Jg9NHsvqV7BMoix8YreIg==
|
integrity sha512-wyWr4uIabTgDTBY99y3QyrFxcIx1Mh4DkURgSv8sd/b+w0lfrZAJh0Gg9BXdg/iIjcf/M2lCTL04r0vASfkMVg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@atproto/common-web" "^0.3.0"
|
"@atproto/common-web" "^0.3.0"
|
||||||
"@atproto/lexicon" "^0.4.0"
|
"@atproto/lexicon" "^0.4.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user