feat: use custom @ import dialog (#8723)

[BS-1747](https://linear.app/affine-design/issue/BS-1747/[ui]-通过导入的ui还是旧的,需要更新)
This commit is contained in:
donteatfriedrice
2024-11-08 01:53:29 +00:00
parent d8eda5e42d
commit c323e5ae93
11 changed files with 257 additions and 531 deletions
@@ -26,7 +26,6 @@ export type GLOBAL_DIALOG_SCHEMA = {
templateMode: DocMode;
snapshotUrl: string;
}) => void;
import: () => void;
setting: (props: {
activeTab?: SettingTab;
workspaceMetadata?: WorkspaceMetadata | null;
@@ -52,4 +51,9 @@ export type WORKSPACE_DIALOG_SCHEMA = {
init: string[];
onBeforeConfirm?: (ids: string[], cb: () => void) => void;
}) => string[];
import: () => {
docIds: string[];
entryId?: string;
isWorkspaceFile?: boolean;
};
};