feat(editor): add feature flag service (#9592)

This commit is contained in:
Saul-Mirone
2025-01-08 15:46:31 +00:00
parent fd26b72255
commit 3683297ccf
55 changed files with 283 additions and 188 deletions

View File

@@ -9,6 +9,7 @@ effects();
import {
CommunityCanvasTextFonts,
type DocMode,
FeatureFlagService,
FontConfigExtension,
} from '@blocksuite/blocks';
import { AffineSchemas } from '@blocksuite/blocks/schemas';
@@ -84,6 +85,7 @@ async function createEditor(collection: TestWorkspace, mode: DocMode = 'page') {
export async function setupEditor(mode: DocMode = 'page') {
const collection = new TestWorkspace(createCollectionOptions());
collection.storeExtensions = [FeatureFlagService];
collection.meta.initialize();
window.collection = collection;