feat(core): add new loading doc component (#11737)

This commit is contained in:
JimmFly
2025-04-17 18:54:38 +08:00
committed by GitHub
parent bfecd1856b
commit c2c106f508
28 changed files with 257 additions and 88 deletions

View File

@@ -49,6 +49,7 @@ type DocEvents =
| 'openDocOptionsMenu'
| 'openDocInfo'
| 'copyBlockToLink'
| 'loadDoc'
| 'bookmark'
| 'editProperty'
| 'editPropertyMeta'
@@ -409,6 +410,9 @@ const PageEvents = {
},
},
doc: {
$: {
$: ['loadDoc'],
},
editor: {
slashMenu: ['linkDoc', 'createDoc', 'bookmark'],
atMenu: [
@@ -714,6 +718,12 @@ export type EventArgs = {
type: 'member' | 'invite' | 'more';
};
noAccessPrompted: {};
loadDoc: {
workspaceId: string;
docId: string;
time: number;
success: boolean;
};
};
// for type checking