chore: each block maintain its own adapter extension (#9224)

This commit is contained in:
donteatfriedrice
2024-12-23 07:54:58 +00:00
parent 5716fbf0ed
commit a187f23452
43 changed files with 264 additions and 264 deletions
@@ -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,
];
@@ -5,6 +5,7 @@ import {
} from '@blocksuite/block-std';
import { literal } from 'lit/static-html.js';
import { EmbedGithubBlockAdapterExtensions } from './adapters/extension.js';
import { EmbedGithubBlockService } from './embed-github-service.js';
export const EmbedGithubBlockSpec: ExtensionType[] = [
@@ -15,4 +16,5 @@ export const EmbedGithubBlockSpec: ExtensionType[] = [
? literal`affine-embed-edgeless-github-block`
: literal`affine-embed-github-block`;
}),
];
EmbedGithubBlockAdapterExtensions,
].flat();