mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
205cd7a86d
Closes: BS-2946
21 lines
654 B
TypeScript
21 lines
654 B
TypeScript
import type { NoteBlockModel } from '@blocksuite/affine-model';
|
|
import { type BlockStdScope, ConfigExtensionFactory } from '@blocksuite/std';
|
|
import type { TemplateResult } from 'lit';
|
|
|
|
type NoteBlockContext = {
|
|
note: NoteBlockModel;
|
|
std: BlockStdScope;
|
|
};
|
|
|
|
export type NoteConfig = {
|
|
edgelessNoteHeader: (context: NoteBlockContext) => TemplateResult;
|
|
pageBlockTitle: (context: NoteBlockContext) => TemplateResult;
|
|
/**
|
|
* @returns if the viewport fit animation executed
|
|
*/
|
|
pageBlockViewportFitAnimation?: (context: NoteBlockContext) => boolean;
|
|
};
|
|
|
|
export const NoteConfigExtension =
|
|
ConfigExtensionFactory<NoteConfig>('affine:note');
|