import { BlockService } from '@blockeditor/block-std';
import { assertExists } from '@blockeditor/global/utils';
import { EmbedFigmaStyles, figmaUrlRegex, } from './embed-figma-model.js';
export class EmbedFigmaService extends BlockService {
    mounted() {
        super.mounted();
        const pageService = this.std.spec.getService('affine:page');
        assertExists(pageService);
        pageService.registerEmbedBlockOptions({
            flavour: this.flavour,
            urlRegex: figmaUrlRegex,
            styles: EmbedFigmaStyles,
            viewType: 'embed',
        });
    }
}
//# sourceMappingURL=embed-figma-service.js.map