mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 07:17:00 +08:00
refactor(editor): move extension to store (#9552)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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[] = [
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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[] = [
|
||||
|
||||
Reference in New Issue
Block a user