mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: bump blocksuite (#6015)
## Features - https://github.com/toeverything/BlockSuite/pull/6379 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6375 @doodlewind - https://github.com/toeverything/BlockSuite/pull/6370 @donteatfriedrice ## Bugfix - https://github.com/toeverything/BlockSuite/pull/6380 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6377 @doouding - https://github.com/toeverything/BlockSuite/pull/6376 @fourdim - https://github.com/toeverything/BlockSuite/pull/6374 @regischen ## Misc - docs: update examples desc - ci: start publishing 0.13 canary
This commit is contained in:
@@ -40,13 +40,16 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {
|
||||
|
||||
const importFileAndOpen = useAsyncCallback(async () => {
|
||||
const { showImportModal } = await import('@blocksuite/blocks');
|
||||
const onSuccess = (pageIds: string[], isWorkspaceFile: boolean) => {
|
||||
const onSuccess = (
|
||||
pageIds: string[],
|
||||
options: { isWorkspaceFile: boolean }
|
||||
) => {
|
||||
toast(
|
||||
`Successfully imported ${pageIds.length} Page${
|
||||
pageIds.length > 1 ? 's' : ''
|
||||
}.`
|
||||
);
|
||||
if (isWorkspaceFile) {
|
||||
if (options.isWorkspaceFile) {
|
||||
jumpToSubPath(blockSuiteWorkspace.id, WorkspaceSubPath.ALL);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user