mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
refactor(editor): playground doc collection typing migration (#9593)
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
BlockServiceWatcher,
|
||||
type EditorHost,
|
||||
type ExtensionType,
|
||||
} from '@blocksuite/block-std';
|
||||
import { BlockServiceWatcher, type EditorHost } from '@blocksuite/block-std';
|
||||
import {
|
||||
AffineFormatBarWidget,
|
||||
CommunityCanvasTextFonts,
|
||||
@@ -19,7 +15,7 @@ import {
|
||||
toolbarDefaultConfig,
|
||||
} from '@blocksuite/blocks';
|
||||
import { AffineEditorContainer, CommentPanel } from '@blocksuite/presets';
|
||||
import type { DocCollection } from '@blocksuite/store';
|
||||
import type { ExtensionType, Workspace } from '@blocksuite/store';
|
||||
|
||||
import { AttachmentViewerPanel } from '../../_common/components/attachment-viewer-panel.js';
|
||||
import { CustomFramePanel } from '../../_common/components/custom-frame-panel.js';
|
||||
@@ -47,7 +43,7 @@ function configureFormatBar(formatBar: AffineFormatBarWidget) {
|
||||
toolbarDefaultConfig(formatBar);
|
||||
}
|
||||
|
||||
export async function mountDefaultDocEditor(collection: DocCollection) {
|
||||
export async function mountDefaultDocEditor(collection: Workspace) {
|
||||
const app = document.getElementById('app');
|
||||
if (!app) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user