mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 11:30:04 +08:00
15 lines
605 B
TypeScript
15 lines
605 B
TypeScript
import { EmbedFigmaBlockSchema } from '@blocksuite/affine-model';
|
|
import { BlockNotionHtmlAdapterExtension } from '@blocksuite/affine-shared/adapters';
|
|
|
|
import { createEmbedBlockNotionHtmlAdapterMatcher } from '../../common/adapters/notion-html.js';
|
|
import { figmaUrlRegex } from '../embed-figma-model.js';
|
|
|
|
export const embedFigmaBlockNotionHtmlAdapterMatcher =
|
|
createEmbedBlockNotionHtmlAdapterMatcher(
|
|
EmbedFigmaBlockSchema.model.flavour,
|
|
figmaUrlRegex
|
|
);
|
|
|
|
export const EmbedFigmaBlockNotionHtmlAdapterExtension =
|
|
BlockNotionHtmlAdapterExtension(embedFigmaBlockNotionHtmlAdapterMatcher);
|