-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: each block maintain its own adapter matcher extension
- Loading branch information
1 parent
cb1c432
commit 124cadb
Showing
45 changed files
with
270 additions
and
267 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-figma-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedFigmaBlockHtmlAdapterExtension } from './html.js'; | ||
import { EmbedFigmaMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedFigmaBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedFigmaBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedFigmaBlockHtmlAdapterExtension, | ||
EmbedFigmaMarkdownAdapterExtension, | ||
EmbedFigmaBlockPlainTextAdapterExtension, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-github-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedGithubBlockHtmlAdapterExtension } from './html.js'; | ||
import { EmbedGithubMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedGithubBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedGithubBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedGithubBlockHtmlAdapterExtension, | ||
EmbedGithubMarkdownAdapterExtension, | ||
EmbedGithubBlockPlainTextAdapterExtension, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-linked-doc-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedLinkedDocHtmlAdapterExtension } from './html.js'; | ||
import { EmbedLinkedDocMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedLinkedDocBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedLinkedDocBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedLinkedDocHtmlAdapterExtension, | ||
EmbedLinkedDocMarkdownAdapterExtension, | ||
EmbedLinkedDocBlockPlainTextAdapterExtension, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-loom-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedLoomBlockHtmlAdapterExtension } from './html.js'; | ||
import { EmbedLoomMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedLoomBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedLoomBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedLoomBlockHtmlAdapterExtension, | ||
EmbedLoomMarkdownAdapterExtension, | ||
EmbedLoomBlockPlainTextAdapterExtension, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-synced-doc-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedSyncedDocBlockHtmlAdapterExtension } from './html.js'; | ||
import { EmbedSyncedDocBlockMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedSyncedDocBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedSyncedDocBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedSyncedDocBlockHtmlAdapterExtension, | ||
EmbedSyncedDocBlockMarkdownAdapterExtension, | ||
EmbedSyncedDocBlockPlainTextAdapterExtension, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
packages/affine/block-embed/src/embed-youtube-block/adapters/extension.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,11 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { EmbedYoutubeBlockHtmlAdapterExtension } from './html.js'; | ||
import { EmbedYoutubeMarkdownAdapterExtension } from './markdown.js'; | ||
import { EmbedYoutubeBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const EmbedYoutubeBlockAdapterExtensions: ExtensionType[] = [ | ||
EmbedYoutubeBlockHtmlAdapterExtension, | ||
EmbedYoutubeMarkdownAdapterExtension, | ||
EmbedYoutubeBlockPlainTextAdapterExtension, | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { ListBlockHtmlAdapterExtension } from './html.js'; | ||
import { ListBlockMarkdownAdapterExtension } from './markdown.js'; | ||
import { ListBlockNotionHtmlAdapterExtension } from './notion-html.js'; | ||
import { ListBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const ListBlockAdapterExtensions: ExtensionType[] = [ | ||
ListBlockHtmlAdapterExtension, | ||
ListBlockMarkdownAdapterExtension, | ||
ListBlockPlainTextAdapterExtension, | ||
ListBlockNotionHtmlAdapterExtension, | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { ExtensionType } from '@blocksuite/block-std'; | ||
|
||
import { ParagraphBlockHtmlAdapterExtension } from './html.js'; | ||
import { ParagraphBlockMarkdownAdapterExtension } from './markdown.js'; | ||
import { ParagraphBlockNotionHtmlAdapterExtension } from './notion-html.js'; | ||
import { ParagraphBlockPlainTextAdapterExtension } from './plain-text.js'; | ||
|
||
export const ParagraphBlockAdapterExtensions: ExtensionType[] = [ | ||
ParagraphBlockHtmlAdapterExtension, | ||
ParagraphBlockMarkdownAdapterExtension, | ||
ParagraphBlockPlainTextAdapterExtension, | ||
ParagraphBlockNotionHtmlAdapterExtension, | ||
]; |
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
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
Oops, something went wrong.