mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
31 lines
878 B
TypeScript
31 lines
878 B
TypeScript
import {
|
|
BlockViewExtension,
|
|
CommandExtension,
|
|
type ExtensionType,
|
|
FlavourExtension,
|
|
} from '@blocksuite/block-std';
|
|
import { literal } from 'lit/static-html.js';
|
|
|
|
import {
|
|
DocNoteBlockAdapterExtensions,
|
|
EdgelessNoteBlockAdapterExtensions,
|
|
} from './adapters/index.js';
|
|
import { commands } from './commands/index.js';
|
|
import { NoteBlockService } from './note-service.js';
|
|
|
|
export const NoteBlockSpec: ExtensionType[] = [
|
|
FlavourExtension('affine:note'),
|
|
NoteBlockService,
|
|
CommandExtension(commands),
|
|
BlockViewExtension('affine:note', literal`affine-note`),
|
|
DocNoteBlockAdapterExtensions,
|
|
].flat();
|
|
|
|
export const EdgelessNoteBlockSpec: ExtensionType[] = [
|
|
FlavourExtension('affine:note'),
|
|
NoteBlockService,
|
|
CommandExtension(commands),
|
|
BlockViewExtension('affine:note', literal`affine-edgeless-note`),
|
|
EdgelessNoteBlockAdapterExtensions,
|
|
].flat();
|