mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
feat: migrate to blocksuite/affine (#8332)
Use `@blocksuite/affine` package for all blocksuite features in affine. ```ts @blocksuite/store -> @blocksuite/affine/store @blocksuite/global -> @blocksuite/affine/global @blocksuite/block-std -> @blocksuite/affine/block-std @blocksuite/blocks -> @blocksuite/affine/blocks @blocksuite/presets -> @blocksuite/affine/presets ```
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { DocMode, RootBlockModel } from '@blocksuite/blocks';
|
||||
import type { DocMode, RootBlockModel } from '@blocksuite/affine/blocks';
|
||||
|
||||
import { Entity } from '../../../framework';
|
||||
import type { WorkspaceService } from '../../workspace';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DocMode } from '@blocksuite/blocks';
|
||||
import type { DocMode } from '@blocksuite/affine/blocks';
|
||||
import { map } from 'rxjs';
|
||||
|
||||
import { Entity } from '../../../framework';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { DocMode } from '@blocksuite/blocks';
|
||||
import type { DocMeta } from '@blocksuite/store';
|
||||
import type { DocMode } from '@blocksuite/affine/blocks';
|
||||
import type { DocMeta } from '@blocksuite/affine/store';
|
||||
|
||||
import { Entity } from '../../../framework';
|
||||
import { LiveData } from '../../../livedata';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Doc as BlockSuiteDoc } from '@blocksuite/store';
|
||||
import type { Doc as BlockSuiteDoc } from '@blocksuite/affine/store';
|
||||
|
||||
import { Scope } from '../../../framework';
|
||||
import type { DocRecord } from '../entities/record';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Unreachable } from '@affine/env/constant';
|
||||
import { type DocMode } from '@blocksuite/blocks';
|
||||
import { type DocMode } from '@blocksuite/affine/blocks';
|
||||
|
||||
import { Service } from '../../../framework';
|
||||
import { type DocProps, initDocFromProps } from '../../../initialization';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { DocMode } from '@blocksuite/blocks';
|
||||
import type { DocMeta } from '@blocksuite/store';
|
||||
import type { DocMode } from '@blocksuite/affine/blocks';
|
||||
import type { DocMeta } from '@blocksuite/affine/store';
|
||||
import { isEqual } from 'lodash-es';
|
||||
import { distinctUntilChanged, Observable } from 'rxjs';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user