refactor(editor): rename block-std to std (#11250)

Closes: BS-2946
This commit is contained in:
Saul-Mirone
2025-03-28 07:20:34 +00:00
parent 4498676a96
commit 205cd7a86d
1029 changed files with 1580 additions and 1698 deletions

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -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;

View File

@@ -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
)