mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user