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
@@ -23,7 +23,7 @@ import {
BlockSelection,
type Command,
TextSelection,
} from '@blocksuite/block-std';
} from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
type UpdateBlockConfig = {
@@ -1,6 +1,6 @@
import { NoteBlockModel, NoteDisplayMode } from '@blocksuite/affine-model';
import { matchModels } from '@blocksuite/affine-shared/utils';
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
export const changeNoteDisplayMode: Command<{
noteId: string;
@@ -1,6 +1,6 @@
import { NoteBlockModel } from '@blocksuite/affine-model';
import { matchModels } from '@blocksuite/affine-shared/utils';
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import { dedentBlock } from './dedent-block';
@@ -3,7 +3,7 @@ import {
calculateCollapsedSiblings,
matchModels,
} from '@blocksuite/affine-shared/utils';
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
/**
* @example
@@ -1,6 +1,6 @@
import { NoteBlockModel } from '@blocksuite/affine-model';
import { matchModels } from '@blocksuite/affine-shared/utils';
import { type Command, TextSelection } from '@blocksuite/block-std';
import { type Command, TextSelection } from '@blocksuite/std';
import { dedentBlockToRoot } from './dedent-block-to-root';
@@ -3,7 +3,7 @@ import {
calculateCollapsedSiblings,
matchModels,
} from '@blocksuite/affine-shared/utils';
import { type Command, TextSelection } from '@blocksuite/block-std';
import { type Command, TextSelection } from '@blocksuite/std';
import { dedentBlock } from './dedent-block';
@@ -3,7 +3,7 @@ import {
calculateCollapsedSiblings,
matchModels,
} from '@blocksuite/affine-shared/utils';
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
/**
* @example
@@ -4,7 +4,7 @@ import {
getNearestHeadingBefore,
matchModels,
} from '@blocksuite/affine-shared/utils';
import { type Command, TextSelection } from '@blocksuite/block-std';
import { type Command, TextSelection } from '@blocksuite/std';
import { indentBlock } from './indent-block';
@@ -2,7 +2,7 @@ import {
type BlockComponent,
BlockSelection,
type Command,
} from '@blocksuite/block-std';
} from '@blocksuite/std';
export const selectBlock: Command<{
focusBlock?: BlockComponent;
@@ -2,7 +2,7 @@ import {
type BlockComponent,
BlockSelection,
type Command,
} from '@blocksuite/block-std';
} from '@blocksuite/std';
export const selectBlocksBetween: Command<{
focusBlock?: BlockComponent;