mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
chore(editor): reorg packages (#10702)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { NoteBlockModel } from '@blocksuite/affine-model';
|
||||
import {
|
||||
type BlockStdScope,
|
||||
ConfigExtensionFactory,
|
||||
} from '@blocksuite/block-std';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
type NoteBlockContext = {
|
||||
note: NoteBlockModel;
|
||||
std: BlockStdScope;
|
||||
};
|
||||
|
||||
export type NoteConfig = {
|
||||
edgelessNoteHeader: (context: NoteBlockContext) => TemplateResult;
|
||||
pageBlockTitle: (context: NoteBlockContext) => TemplateResult;
|
||||
};
|
||||
|
||||
export const NoteConfigExtension =
|
||||
ConfigExtensionFactory<NoteConfig>('affine:note');
|
||||
Reference in New Issue
Block a user