mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 09:52:49 +08:00
chore: bump blocksuite version (#4862)
This commit is contained in:
@@ -18,12 +18,12 @@
|
||||
"devDependencies": {
|
||||
"@affine/debug": "workspace:*",
|
||||
"@affine/env": "workspace:*",
|
||||
"@blocksuite/block-std": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/global": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/store": "0.0.0-20231101080734-aa27dc89-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@blocksuite/global": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@blocksuite/store": "0.0.0-20231108041746-2e7e3467-nightly",
|
||||
"@testing-library/react": "^14.0.0",
|
||||
"@types/image-blob-reduce": "^4.1.3",
|
||||
"@types/lodash.debounce": "^4.0.7",
|
||||
|
||||
@@ -55,7 +55,7 @@ export function useBlockSuiteWorkspaceAvatarUrl(
|
||||
const { data: avatar, mutate } = useSWR(url, {
|
||||
fetcher: async avatar => {
|
||||
assertExists(blockSuiteWorkspace);
|
||||
const blobs = blockSuiteWorkspace.blobs;
|
||||
const blobs = blockSuiteWorkspace.blob;
|
||||
const blob = await blobs.get(avatar);
|
||||
if (blob) {
|
||||
return URL.createObjectURL(blob);
|
||||
@@ -75,7 +75,7 @@ export function useBlockSuiteWorkspaceAvatarUrl(
|
||||
}
|
||||
try {
|
||||
const reducedFile = await validateAndReduceImage(file);
|
||||
const blobs = blockSuiteWorkspace.blobs;
|
||||
const blobs = blockSuiteWorkspace.blob;
|
||||
const blobId = await blobs.set(reducedFile);
|
||||
blockSuiteWorkspace.meta.setAvatar(blobId);
|
||||
await mutate(blobId);
|
||||
|
||||
Reference in New Issue
Block a user