refactor(editor): remove attachment and image block service (#9909)

This commit is contained in:
Saul-Mirone
2025-01-28 20:53:23 +00:00
parent 9c65c42d64
commit f3f6e8c6ac
22 changed files with 95 additions and 109 deletions
@@ -23,7 +23,7 @@ import { WorkspaceService } from '@affine/core/modules/workspace';
import { i18nTime } from '@affine/i18n';
import {
customImageProxyMiddleware,
ImageBlockService,
ImageProxyService,
LinkPreviewerService,
RefNodeSlotsProvider,
} from '@blocksuite/affine/blocks';
@@ -162,7 +162,7 @@ const DetailPageImpl = () => {
).toString();
editorHost?.std.clipboard.use(customImageProxyMiddleware(imageProxyUrl));
ImageBlockService.setImageProxyURL(imageProxyUrl);
editorHost?.doc.get(ImageProxyService).setImageProxyURL(imageProxyUrl);
// provide link preview endpoint to blocksuite
editorHost?.doc.get(LinkPreviewerService).setEndpoint(linkPreviewUrl);