-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(editor): extensionalize html adapter (#9299)
- Loading branch information
1 parent
a15009c
commit 50ff365
Showing
16 changed files
with
183 additions
and
144 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
blocksuite/blocks/src/_common/adapters/html-adapter/block-matcher.ts
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
blocksuite/blocks/src/_common/adapters/html/block-matcher.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
EmbedFigmaBlockHtmlAdapterExtension, | ||
EmbedGithubBlockHtmlAdapterExtension, | ||
EmbedLinkedDocHtmlAdapterExtension, | ||
EmbedLoomBlockHtmlAdapterExtension, | ||
EmbedSyncedDocBlockHtmlAdapterExtension, | ||
EmbedYoutubeBlockHtmlAdapterExtension, | ||
} from '@blocksuite/affine-block-embed'; | ||
import { ListBlockHtmlAdapterExtension } from '@blocksuite/affine-block-list'; | ||
import { ParagraphBlockHtmlAdapterExtension } from '@blocksuite/affine-block-paragraph'; | ||
|
||
import { BookmarkBlockHtmlAdapterExtension } from '../../../bookmark-block/adapters/html.js'; | ||
import { CodeBlockHtmlAdapterExtension } from '../../../code-block/adapters/html.js'; | ||
import { DatabaseBlockHtmlAdapterExtension } from '../../../database-block/adapters/html.js'; | ||
import { DividerBlockHtmlAdapterExtension } from '../../../divider-block/adapters/html.js'; | ||
import { ImageBlockHtmlAdapterExtension } from '../../../image-block/adapters/html.js'; | ||
import { RootBlockHtmlAdapterExtension } from '../../../root-block/adapters/html.js'; | ||
|
||
export const defaultBlockHtmlAdapterMatchers = [ | ||
ListBlockHtmlAdapterExtension, | ||
ParagraphBlockHtmlAdapterExtension, | ||
CodeBlockHtmlAdapterExtension, | ||
DividerBlockHtmlAdapterExtension, | ||
ImageBlockHtmlAdapterExtension, | ||
RootBlockHtmlAdapterExtension, | ||
EmbedYoutubeBlockHtmlAdapterExtension, | ||
EmbedFigmaBlockHtmlAdapterExtension, | ||
EmbedLoomBlockHtmlAdapterExtension, | ||
EmbedGithubBlockHtmlAdapterExtension, | ||
BookmarkBlockHtmlAdapterExtension, | ||
DatabaseBlockHtmlAdapterExtension, | ||
EmbedLinkedDocHtmlAdapterExtension, | ||
EmbedSyncedDocBlockHtmlAdapterExtension, | ||
]; |
Oops, something went wrong.