feat: bump blocksuite (#5575)

This commit is contained in:
regischen
2024-01-12 12:41:27 +08:00
committed by GitHub
parent 89b5c96d25
commit 3602f1cac0
16 changed files with 221 additions and 215 deletions

View File

@@ -1,18 +0,0 @@
import { ContentParser } from '@blocksuite/blocks/content-parser';
import type { Page } from '@blocksuite/store';
const contentParserWeakMap = new WeakMap<Page, ContentParser>();
export function getContentParser(page: Page) {
if (!contentParserWeakMap.has(page)) {
contentParserWeakMap.set(
page,
new ContentParser(page, {
imageProxyEndpoint: !environment.isDesktop
? runtimeConfig.imageProxyUrl
: undefined,
})
);
}
return contentParserWeakMap.get(page) as ContentParser;
}