mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
@@ -14,6 +14,7 @@ import { ListStoreExtension } from '@blocksuite/affine-block-list/store';
|
||||
import { NoteStoreExtension } from '@blocksuite/affine-block-note/store';
|
||||
import { ParagraphStoreExtension } from '@blocksuite/affine-block-paragraph/store';
|
||||
import { SurfaceRefStoreExtension } from '@blocksuite/affine-block-surface-ref/store';
|
||||
import { TableStoreExtension } from '@blocksuite/affine-block-table/store';
|
||||
import { StoreExtensionManager } from '@blocksuite/affine-ext-loader';
|
||||
|
||||
import { MigratingStoreExtension } from '../../extensions/store';
|
||||
@@ -35,6 +36,7 @@ const manager = new StoreExtensionManager([
|
||||
NoteStoreExtension,
|
||||
ParagraphStoreExtension,
|
||||
SurfaceRefStoreExtension,
|
||||
TableStoreExtension,
|
||||
|
||||
MigratingStoreExtension,
|
||||
]);
|
||||
|
||||
1
blocksuite/affine/all/src/blocks/table/store.ts
Normal file
1
blocksuite/affine/all/src/blocks/table/store.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from '@blocksuite/affine-block-table/store';
|
||||
1
blocksuite/affine/all/src/blocks/table/view.ts
Normal file
1
blocksuite/affine/all/src/blocks/table/view.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from '@blocksuite/affine-block-table/view';
|
||||
@@ -1,6 +1,5 @@
|
||||
import { effects as blockRootEffects } from '@blocksuite/affine-block-root/effects';
|
||||
import { effects as blockSurfaceEffects } from '@blocksuite/affine-block-surface/effects';
|
||||
import { effects as blockTableEffects } from '@blocksuite/affine-block-table/effects';
|
||||
import { BlockSelection } from '@blocksuite/affine-components/block-selection';
|
||||
import { BlockZeroWidth } from '@blocksuite/affine-components/block-zero-width';
|
||||
import { effects as componentCaptionEffects } from '@blocksuite/affine-components/caption';
|
||||
@@ -61,7 +60,6 @@ export function effects() {
|
||||
inlineMentionEffects();
|
||||
|
||||
blockSurfaceEffects();
|
||||
blockTableEffects();
|
||||
blockRootEffects();
|
||||
|
||||
componentCaptionEffects();
|
||||
|
||||
@@ -11,7 +11,6 @@ import {
|
||||
PageSurfaceBlockSpec,
|
||||
SurfaceBlockAdapterExtensions,
|
||||
} from '@blocksuite/affine-block-surface';
|
||||
import { TableBlockSpec } from '@blocksuite/affine-block-table';
|
||||
import {
|
||||
brushToMarkdownAdapterMatcher,
|
||||
brushToPlainTextAdapterMatcher,
|
||||
@@ -67,7 +66,6 @@ const CommonBlockSpecs: ExtensionType[] = [
|
||||
inlinePresetExtensions,
|
||||
DocDisplayMetaService,
|
||||
EditPropsStore,
|
||||
TableBlockSpec,
|
||||
DefaultOpenDocExtension,
|
||||
FontLoaderService,
|
||||
|
||||
|
||||
@@ -9,10 +9,6 @@ import {
|
||||
RootBlockNotionHtmlAdapterExtension,
|
||||
} from '@blocksuite/affine-block-root';
|
||||
import { SurfaceBlockSchemaExtension } from '@blocksuite/affine-block-surface';
|
||||
import {
|
||||
TableBlockAdapterExtensions,
|
||||
TableSelectionExtension,
|
||||
} from '@blocksuite/affine-block-table';
|
||||
import {
|
||||
type StoreExtensionContext,
|
||||
StoreExtensionProvider,
|
||||
@@ -27,7 +23,6 @@ import {
|
||||
} from '@blocksuite/affine-inline-preset';
|
||||
import {
|
||||
RootBlockSchemaExtension,
|
||||
TableBlockSchemaExtension,
|
||||
TranscriptionBlockSchemaExtension,
|
||||
} from '@blocksuite/affine-model';
|
||||
import {
|
||||
@@ -114,7 +109,6 @@ function getPlainTextAdapterExtensions(): ExtensionType[] {
|
||||
const MigratingStoreExtensions: ExtensionType[] = [
|
||||
RootBlockSchemaExtension,
|
||||
SurfaceBlockSchemaExtension,
|
||||
TableBlockSchemaExtension,
|
||||
TranscriptionBlockSchemaExtension,
|
||||
|
||||
BlockSelectionExtension,
|
||||
@@ -123,9 +117,7 @@ const MigratingStoreExtensions: ExtensionType[] = [
|
||||
CursorSelectionExtension,
|
||||
HighlightSelectionExtension,
|
||||
DatabaseSelectionExtension,
|
||||
TableSelectionExtension,
|
||||
|
||||
TableBlockAdapterExtensions,
|
||||
getHtmlAdapterExtensions(),
|
||||
getMarkdownAdapterExtensions(),
|
||||
getNotionHtmlAdapterExtensions(),
|
||||
|
||||
Reference in New Issue
Block a user