mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(editor): merge inline to std (#11025)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import '../declare-test-window.js';
|
||||
|
||||
import type { InlineRange, InlineRootElement } from '@blocksuite/affine/inline';
|
||||
import type {
|
||||
InlineRange,
|
||||
InlineRootElement,
|
||||
} from '@blocksuite/affine/block-std/inline';
|
||||
import type { DatabaseBlockModel, ListType } from '@blocksuite/affine/model';
|
||||
import type { RichText } from '@blocksuite/affine/rich-text';
|
||||
import type { BlockModel } from '@blocksuite/affine/store';
|
||||
|
||||
@@ -5,8 +5,8 @@ import type {
|
||||
EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import type { InlineRootElement } from '@blocksuite/affine/block-std/inline';
|
||||
import type { EdgelessNoteBackground } from '@blocksuite/affine/blocks/note';
|
||||
import type { InlineRootElement } from '@blocksuite/affine/inline';
|
||||
import type { NoteBlockModel, RootBlockModel } from '@blocksuite/affine/model';
|
||||
import type {
|
||||
AffineInlineEditor,
|
||||
|
||||
@@ -20,3 +20,10 @@ export async function getStringFromRichText(
|
||||
[index]
|
||||
);
|
||||
}
|
||||
|
||||
// Why? we can't import from `@blocksuite/affine/block-std/inline` because playwright will throw an error
|
||||
export const ZERO_WIDTH_SPACE = /Apple Computer/.test(
|
||||
globalThis.navigator?.vendor
|
||||
)
|
||||
? '\u200C'
|
||||
: '\u200B';
|
||||
|
||||
Reference in New Issue
Block a user