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
@@ -1,4 +1,4 @@
import type { BlockComponent, Command } from '@blocksuite/block-std';
import type { BlockComponent, Command } from '@blocksuite/std';
export const getBlockIndexCommand: Command<
{
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
type Role = 'content' | 'hub';
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
type Role = 'content' | 'hub';
@@ -1,8 +1,4 @@
import type {
BlockComponent,
BlockStdScope,
Command,
} from '@blocksuite/block-std';
import type { BlockComponent, BlockStdScope, Command } from '@blocksuite/std';
import { getNextContentBlock } from '../../utils/index.js';
@@ -1,8 +1,4 @@
import type {
BlockComponent,
BlockStdScope,
Command,
} from '@blocksuite/block-std';
import type { BlockComponent, BlockStdScope, Command } from '@blocksuite/std';
import { getPrevContentBlock } from '../../utils/index.js';
@@ -1,9 +1,5 @@
import type {
BlockSelection,
Command,
TextSelection,
} from '@blocksuite/block-std';
import { BlockComponent } from '@blocksuite/block-std';
import type { BlockSelection, Command, TextSelection } from '@blocksuite/std';
import { BlockComponent } from '@blocksuite/std';
import type { RoleType } from '@blocksuite/store';
import type { ImageSelection } from '../../selection/index.js';
@@ -1,4 +1,4 @@
import { type Command, TextSelection } from '@blocksuite/block-std';
import { type Command, TextSelection } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
export const clearAndSelectFirstModelCommand: Command<{
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import { type BlockModel, type DraftModel, Slice } from '@blocksuite/store';
export const copySelectedModelsCommand: Command<{
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
export const deleteSelectedModelsCommand: Command<{
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import {
type BlockModel,
type DraftModel,
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import { type BlockModel, type DraftModel, Slice } from '@blocksuite/store';
export const duplicateSelectedModelsCommand: Command<{
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
import { getSelectedBlocksCommand } from '../block-crud/get-selected-blocks';
@@ -1,4 +1,4 @@
import type { Command } from '@blocksuite/block-std';
import type { Command } from '@blocksuite/std';
import type { BlockModel } from '@blocksuite/store';
export const retainFirstModelCommand: Command<{
@@ -2,7 +2,7 @@ import {
type BlockComponent,
type Command,
TextSelection,
} from '@blocksuite/block-std';
} from '@blocksuite/std';
/**
* Focus the end of the block
@@ -2,7 +2,7 @@ import {
type BlockComponent,
type Command,
TextSelection,
} from '@blocksuite/block-std';
} from '@blocksuite/std';
export const focusBlockStart: Command<{
focusBlock?: BlockComponent;
@@ -1,4 +1,4 @@
import { BlockSelection } from '@blocksuite/block-std';
import { BlockSelection } from '@blocksuite/std';
import type { GetSelectionCommand } from './types';
@@ -1,8 +1,4 @@
import type {
BlockSelection,
Command,
TextSelection,
} from '@blocksuite/block-std';
import type { BlockSelection, Command, TextSelection } from '@blocksuite/std';
import { getViewportElement } from '../../utils/index.js';
@@ -1,4 +1,4 @@
import { TextSelection } from '@blocksuite/block-std';
import { TextSelection } from '@blocksuite/std';
import type { GetSelectionCommand } from './types';
@@ -1,8 +1,4 @@
import {
BlockSelection,
type Command,
TextSelection,
} from '@blocksuite/block-std';
import { BlockSelection, type Command, TextSelection } from '@blocksuite/std';
import { ImageSelection } from '../../selection';
@@ -1,8 +1,4 @@
import type {
BlockSelection,
Command,
TextSelection,
} from '@blocksuite/block-std';
import type { BlockSelection, Command, TextSelection } from '@blocksuite/std';
import type { ImageSelection } from '../../selection/image';