mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
refactor(editor): remove page root service (#12048)
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
RootBlockSchema,
|
||||
} from '@blocksuite/affine-model';
|
||||
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||
import type { BlockStdScope } from '@blocksuite/std';
|
||||
import { BlockService, type BlockStdScope } from '@blocksuite/std';
|
||||
import type {
|
||||
GfxController,
|
||||
GfxModel,
|
||||
@@ -30,10 +30,12 @@ import {
|
||||
import { effect } from '@preact/signals-core';
|
||||
import clamp from 'lodash-es/clamp';
|
||||
|
||||
import { RootService } from '../root-service.js';
|
||||
import { getCursorMode } from './utils/query.js';
|
||||
|
||||
export class EdgelessRootService extends RootService implements SurfaceContext {
|
||||
export class EdgelessRootService
|
||||
extends BlockService
|
||||
implements SurfaceContext
|
||||
{
|
||||
static override readonly flavour = RootBlockSchema.model.flavour;
|
||||
|
||||
private readonly _surface: SurfaceBlockModel;
|
||||
|
||||
Reference in New Issue
Block a user