mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
@@ -1,7 +1,4 @@
|
||||
import type {
|
||||
InlineEditor,
|
||||
InlineRange,
|
||||
} from '@blocksuite/affine/block-std/inline';
|
||||
import type { InlineEditor, InlineRange } from '@blocksuite/affine/std/inline';
|
||||
import type { DeltaInsert } from '@blocksuite/affine/store';
|
||||
import { expect, type Page, test } from '@playwright/test';
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import '../declare-test-window.js';
|
||||
|
||||
import type { DatabaseBlockModel, ListType } from '@blocksuite/affine/model';
|
||||
import type { RichText } from '@blocksuite/affine/rich-text';
|
||||
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';
|
||||
} from '@blocksuite/affine/std/inline';
|
||||
import type { BlockModel } from '@blocksuite/affine/store';
|
||||
import { uuidv4 } from '@blocksuite/affine/store';
|
||||
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import './declare-test-window.js';
|
||||
|
||||
import type {
|
||||
BlockComponent,
|
||||
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 { NoteBlockModel, RootBlockModel } from '@blocksuite/affine/model';
|
||||
import type { RichText } from '@blocksuite/affine/rich-text';
|
||||
import type { AffineInlineEditor } from '@blocksuite/affine/shared/types';
|
||||
import type {
|
||||
BlockComponent,
|
||||
EditorHost,
|
||||
TextSelection,
|
||||
} from '@blocksuite/affine/std';
|
||||
import type { InlineRootElement } from '@blocksuite/affine/std/inline';
|
||||
import type { BlockModel } from '@blocksuite/affine/store';
|
||||
import { expect, type Locator, type Page } from '@playwright/test';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import type * as Effects from '@blocksuite/affine/effects';
|
||||
import type * as ConnectorToolEffect from '@blocksuite/affine/gfx/connector';
|
||||
import type * as ShapeToolEffect from '@blocksuite/affine/gfx/shape';
|
||||
import type { EditorHost } from '@blocksuite/affine/std';
|
||||
import type { Store, Transformer, Workspace } from '@blocksuite/affine/store';
|
||||
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
|
||||
@@ -26,7 +26,7 @@ declare global {
|
||||
};
|
||||
services: typeof import('@blocksuite/affine/shared/services');
|
||||
editor: typeof import('@blocksuite/integration-test');
|
||||
blockStd: typeof import('@blocksuite/affine/block-std');
|
||||
blockStd: typeof import('@blocksuite/affine/std');
|
||||
};
|
||||
collection: Workspace;
|
||||
doc: Store;
|
||||
|
||||
@@ -21,7 +21,7 @@ export async function getStringFromRichText(
|
||||
);
|
||||
}
|
||||
|
||||
// Why? we can't import from `@blocksuite/affine/block-std/inline` because playwright will throw an error
|
||||
// Why? we can't import from `@blocksuite/affine/std/inline` because playwright will throw an error
|
||||
export const ZERO_WIDTH_SPACE = /Apple Computer/.test(
|
||||
globalThis.navigator?.vendor
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user