mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat: bump blocksuite (#7603)
## Features - https://github.com/toeverything/BlockSuite/pull/7717 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7691 @L-Sun ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7720 @akumatus - https://github.com/toeverything/BlockSuite/pull/7719 @doouding ## Refactor - https://github.com/toeverything/BlockSuite/pull/7703 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7694 @doouding - https://github.com/toeverything/BlockSuite/pull/7700 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7716 @doodlewind ## Misc
This commit is contained in:
@@ -26,6 +26,10 @@ function fitViewport(
|
||||
xywh?: `[${number},${number},${number},${number}]`
|
||||
) {
|
||||
try {
|
||||
if (!editor.host) {
|
||||
throw new Error('editor host is not ready');
|
||||
}
|
||||
|
||||
const rootService =
|
||||
editor.host.std.spec.getService<EdgelessRootService>('affine:page');
|
||||
rootService.viewport.onResize();
|
||||
@@ -113,6 +117,10 @@ export function DocPeekPreview({
|
||||
if (editor) {
|
||||
editor.updateComplete
|
||||
.then(() => {
|
||||
if (!editor.host) {
|
||||
return;
|
||||
}
|
||||
|
||||
const rootService = editor.host.std.spec.getService('affine:page');
|
||||
// doc change event inside peek view should be handled by peek view
|
||||
disposableGroup.add(
|
||||
|
||||
Reference in New Issue
Block a user