mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
import {
|
||||
ListBlockNotionHtmlAdapterExtension,
|
||||
listBlockNotionHtmlAdapterMatcher,
|
||||
} from '@blocksuite/affine-block-list';
|
||||
import {
|
||||
ParagraphBlockNotionHtmlAdapterExtension,
|
||||
paragraphBlockNotionHtmlAdapterMatcher,
|
||||
} from '@blocksuite/affine-block-paragraph';
|
||||
import type { BlockNotionHtmlAdapterMatcher } from '@blocksuite/affine-shared/adapters';
|
||||
import type { ExtensionType } from '@blocksuite/block-std';
|
||||
|
||||
import {
|
||||
AttachmentBlockNotionHtmlAdapterExtension,
|
||||
attachmentBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../attachment-block/adapters/notion-html.js';
|
||||
import {
|
||||
BookmarkBlockNotionHtmlAdapterExtension,
|
||||
bookmarkBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../bookmark-block/adapters/notion-html.js';
|
||||
import {
|
||||
CodeBlockNotionHtmlAdapterExtension,
|
||||
codeBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../code-block/adapters/notion-html.js';
|
||||
import {
|
||||
DatabaseBlockNotionHtmlAdapterExtension,
|
||||
databaseBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../database-block/adapters/notion-html.js';
|
||||
import {
|
||||
DividerBlockNotionHtmlAdapterExtension,
|
||||
dividerBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../divider-block/adapters/notion-html.js';
|
||||
import {
|
||||
ImageBlockNotionHtmlAdapterExtension,
|
||||
imageBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../image-block/adapters/notion-html.js';
|
||||
import {
|
||||
LatexBlockNotionHtmlAdapterExtension,
|
||||
latexBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../latex-block/adapters/notion-html.js';
|
||||
import {
|
||||
RootBlockNotionHtmlAdapterExtension,
|
||||
rootBlockNotionHtmlAdapterMatcher,
|
||||
} from '../../../root-block/adapters/notion-html.js';
|
||||
|
||||
export const defaultBlockNotionHtmlAdapterMatchers: BlockNotionHtmlAdapterMatcher[] =
|
||||
[
|
||||
listBlockNotionHtmlAdapterMatcher,
|
||||
paragraphBlockNotionHtmlAdapterMatcher,
|
||||
codeBlockNotionHtmlAdapterMatcher,
|
||||
dividerBlockNotionHtmlAdapterMatcher,
|
||||
imageBlockNotionHtmlAdapterMatcher,
|
||||
rootBlockNotionHtmlAdapterMatcher,
|
||||
bookmarkBlockNotionHtmlAdapterMatcher,
|
||||
databaseBlockNotionHtmlAdapterMatcher,
|
||||
attachmentBlockNotionHtmlAdapterMatcher,
|
||||
latexBlockNotionHtmlAdapterMatcher,
|
||||
];
|
||||
|
||||
export const BlockNotionHtmlAdapterExtensions: ExtensionType[] = [
|
||||
ListBlockNotionHtmlAdapterExtension,
|
||||
ParagraphBlockNotionHtmlAdapterExtension,
|
||||
CodeBlockNotionHtmlAdapterExtension,
|
||||
DividerBlockNotionHtmlAdapterExtension,
|
||||
ImageBlockNotionHtmlAdapterExtension,
|
||||
RootBlockNotionHtmlAdapterExtension,
|
||||
BookmarkBlockNotionHtmlAdapterExtension,
|
||||
DatabaseBlockNotionHtmlAdapterExtension,
|
||||
AttachmentBlockNotionHtmlAdapterExtension,
|
||||
LatexBlockNotionHtmlAdapterExtension,
|
||||
];
|
||||
Reference in New Issue
Block a user