refactor(editor): move extension to store (#9552)

This commit is contained in:
Saul-Mirone
2025-01-06 15:15:14 +00:00
parent 46c8c4a408
commit f778d1a28a
127 changed files with 170 additions and 207 deletions

View File

@@ -1,7 +1,6 @@
import {
BlockStdScope,
type EditorHost,
type ExtensionType,
ShadowlessElement,
} from '@blocksuite/affine/block-std';
import type {
@@ -21,6 +20,7 @@ import { Container, type ServiceProvider } from '@blocksuite/affine/global/di';
import { WithDisposable } from '@blocksuite/affine/global/utils';
import {
type Blocks,
type ExtensionType,
type JobMiddleware,
type Query,
type Schema,

View File

@@ -1,8 +1,6 @@
import {
BlockViewIdentifier,
type ExtensionType,
} from '@blocksuite/affine/block-std';
import { BlockViewIdentifier } from '@blocksuite/affine/block-std';
import { PageEditorBlockSpecs } from '@blocksuite/affine/blocks';
import type { ExtensionType } from '@blocksuite/affine/store';
import { literal } from 'lit/static-html.js';
export const CustomPageEditorBlockSpecs: ExtensionType[] = [

View File

@@ -1,6 +1,5 @@
import {
BlockServiceWatcher,
type ExtensionType,
WidgetViewMapIdentifier,
} from '@blocksuite/affine/block-std';
import {
@@ -23,6 +22,7 @@ import {
ParagraphBlockSpec,
} from '@blocksuite/affine/blocks';
import { assertInstanceOf } from '@blocksuite/affine/global/utils';
import type { ExtensionType } from '@blocksuite/affine/store';
import { literal, unsafeStatic } from 'lit/static-html.js';
import { buildAIPanelConfig } from './ai-panel';

View File

@@ -1,6 +1,5 @@
import {
BlockViewExtension,
type ExtensionType,
FlavourExtension,
} from '@blocksuite/affine/block-std';
import {
@@ -10,7 +9,7 @@ import {
SurfaceBlockSchema,
ThemeService,
} from '@blocksuite/affine/blocks';
import type { BlockSchema } from '@blocksuite/affine/store';
import type { BlockSchema, ExtensionType } from '@blocksuite/affine/store';
import { literal } from 'lit/static-html.js';
import type { z } from 'zod';

View File

@@ -1,7 +1,5 @@
import {
BlockViewExtension,
type ExtensionType,
} from '@blocksuite/affine/block-std';
import { BlockViewExtension } from '@blocksuite/affine/block-std';
import type { ExtensionType } from '@blocksuite/affine/store';
import { literal } from 'lit/static-html.js';
export const AIChatBlockSpec: ExtensionType[] = [