refactor(editor): move crud to doc (#9479)

This commit is contained in:
Saul-Mirone
2025-01-02 07:27:08 +00:00
parent be387a6f33
commit ad422d2f05
15 changed files with 23 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
import type { ColorScheme } from '@blocksuite/affine-model';
import type { Slot } from '@blocksuite/store';
import type { Slot } from '@blocksuite/global/utils';
import { createContext } from '@lit/context';
import type { EdgelessToolbarWidget } from './edgeless-toolbar.js';

View File

@@ -21,8 +21,7 @@ import {
import { stopPropagation } from '@blocksuite/affine-shared/utils';
import { WidgetComponent } from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { debounce } from '@blocksuite/global/utils';
import { Slot } from '@blocksuite/store';
import { debounce, Slot } from '@blocksuite/global/utils';
import { autoPlacement, offset } from '@floating-ui/dom';
import { ContextProvider } from '@lit/context';
import { computed } from '@preact/signals-core';

View File

@@ -2,8 +2,11 @@
import type { PointerEventState } from '@blocksuite/block-std';
import { BaseTool, MouseButton } from '@blocksuite/block-std/gfx';
import { IS_MAC } from '@blocksuite/global/env';
import { Bound, getCommonBoundWithRotation } from '@blocksuite/global/utils';
import { Slot } from '@blocksuite/store';
import {
Bound,
getCommonBoundWithRotation,
Slot,
} from '@blocksuite/global/utils';
import {
AFFINE_AI_PANEL_WIDGET,

View File

@@ -1,6 +1,6 @@
import { RootBlockSchema } from '@blocksuite/affine-model';
import type { Viewport } from '@blocksuite/affine-shared/types';
import { Slot } from '@blocksuite/store';
import { Slot } from '@blocksuite/global/utils';
import { RootService } from '../root-service.js';