mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
feat(core): bump blocksuite (#6965)
## Features - https://github.com/toeverything/BlockSuite/pull/7052 @donteatfriedrice ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7072 @Flrande - https://github.com/toeverything/BlockSuite/pull/7073 @Flrande - https://github.com/toeverything/BlockSuite/pull/7062 @akumatus - https://github.com/toeverything/BlockSuite/pull/7066 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7061 @Flrande - https://github.com/toeverything/BlockSuite/pull/7058 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7060 @doouding - https://github.com/toeverything/BlockSuite/pull/7051 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7054 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7023 @golok727 - https://github.com/toeverything/BlockSuite/pull/7022 @golok727 - https://github.com/toeverything/BlockSuite/pull/7047 @fundon - https://github.com/toeverything/BlockSuite/pull/7043 @akumatus - https://github.com/toeverything/BlockSuite/pull/7041 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7038 @fourdim - https://github.com/toeverything/BlockSuite/pull/7040 @regischen ## Refactor - https://github.com/toeverything/BlockSuite/pull/7068 @doouding - https://github.com/toeverything/BlockSuite/pull/7069 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7065 @Flrande - https://github.com/toeverything/BlockSuite/pull/7048 @fundon - https://github.com/toeverything/BlockSuite/pull/7045 @Flrande - https://github.com/toeverything/BlockSuite/pull/7046 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7039 @Flrande - https://github.com/toeverything/BlockSuite/pull/7036 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7032 @Saul-Mirone ## Misc - https://github.com/toeverything/BlockSuite/pull/7063 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7050 @fourdim - https://github.com/toeverything/BlockSuite/pull/7044 @doouding - https://github.com/toeverything/BlockSuite/pull/7042 @Flrande - https://github.com/toeverything/BlockSuite/pull/6992 @doouding
This commit is contained in:
@@ -4,12 +4,12 @@ import { PageAIOnboarding } from '@affine/core/components/affine/ai-onboarding';
|
||||
import { useAppSettingHelper } from '@affine/core/hooks/affine/use-app-setting-helper';
|
||||
import type { PageRootService } from '@blocksuite/blocks';
|
||||
import {
|
||||
BookmarkService,
|
||||
BookmarkBlockService,
|
||||
customImageProxyMiddleware,
|
||||
EmbedGithubService,
|
||||
EmbedLoomService,
|
||||
EmbedYoutubeService,
|
||||
ImageService,
|
||||
EmbedGithubBlockService,
|
||||
EmbedLoomBlockService,
|
||||
EmbedYoutubeBlockService,
|
||||
ImageBlockService,
|
||||
} from '@blocksuite/blocks';
|
||||
import { DisposableGroup } from '@blocksuite/global/utils';
|
||||
import { type AffineEditorContainer, AIProvider } from '@blocksuite/presets';
|
||||
@@ -169,13 +169,19 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
||||
editorHost.std.clipboard.use(
|
||||
customImageProxyMiddleware(runtimeConfig.imageProxyUrl)
|
||||
);
|
||||
ImageService.setImageProxyURL(runtimeConfig.imageProxyUrl);
|
||||
ImageBlockService.setImageProxyURL(runtimeConfig.imageProxyUrl);
|
||||
|
||||
// provide link preview endpoint to blocksuite
|
||||
BookmarkService.setLinkPreviewEndpoint(runtimeConfig.linkPreviewUrl);
|
||||
EmbedGithubService.setLinkPreviewEndpoint(runtimeConfig.linkPreviewUrl);
|
||||
EmbedYoutubeService.setLinkPreviewEndpoint(runtimeConfig.linkPreviewUrl);
|
||||
EmbedLoomService.setLinkPreviewEndpoint(runtimeConfig.linkPreviewUrl);
|
||||
BookmarkBlockService.setLinkPreviewEndpoint(runtimeConfig.linkPreviewUrl);
|
||||
EmbedGithubBlockService.setLinkPreviewEndpoint(
|
||||
runtimeConfig.linkPreviewUrl
|
||||
);
|
||||
EmbedYoutubeBlockService.setLinkPreviewEndpoint(
|
||||
runtimeConfig.linkPreviewUrl
|
||||
);
|
||||
EmbedLoomBlockService.setLinkPreviewEndpoint(
|
||||
runtimeConfig.linkPreviewUrl
|
||||
);
|
||||
|
||||
// provide page mode and updated date to blocksuite
|
||||
const pageService =
|
||||
|
||||
Reference in New Issue
Block a user