mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
refactor(editor): store should not rely on inline (#11017)
This commit is contained in:
@@ -34,7 +34,6 @@ import {
|
||||
ErrorCode,
|
||||
} from '@blocksuite/affine/global/exceptions';
|
||||
import type { SerializedXYWH } from '@blocksuite/affine/global/gfx';
|
||||
import type { DeltaInsert } from '@blocksuite/affine/inline/types';
|
||||
import { ColorScheme, type DocMode } from '@blocksuite/affine/model';
|
||||
import {
|
||||
docLinkBaseURLMiddleware,
|
||||
@@ -51,7 +50,11 @@ import {
|
||||
StyleVariables,
|
||||
} from '@blocksuite/affine/shared/theme';
|
||||
import { openFileOrFiles, printToPdf } from '@blocksuite/affine/shared/utils';
|
||||
import { Text, type Workspace } from '@blocksuite/affine/store';
|
||||
import {
|
||||
type DeltaInsert,
|
||||
Text,
|
||||
type Workspace,
|
||||
} from '@blocksuite/affine/store';
|
||||
import { NotionHtmlAdapter } from '@blocksuite/affine-shared/adapters';
|
||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||
import { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
|
||||
@@ -3,12 +3,14 @@ import '@shoelace-style/shoelace';
|
||||
import { ShadowlessElement } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
type AttributeRenderer,
|
||||
type BaseTextAttributes,
|
||||
baseTextAttributes,
|
||||
InlineEditor,
|
||||
ZERO_WIDTH_NON_JOINER,
|
||||
} from '@blocksuite/affine/inline';
|
||||
import { effects } from '@blocksuite/affine/inline/effects';
|
||||
import {
|
||||
type BaseTextAttributes,
|
||||
baseTextAttributes,
|
||||
} from '@blocksuite/affine/store';
|
||||
import { effect } from '@preact/signals-core';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { customElement, property, query } from 'lit/decorators.js';
|
||||
|
||||
Reference in New Issue
Block a user