mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
32
blocksuite/affine/shared/src/commands/index.ts
Normal file
32
blocksuite/affine/shared/src/commands/index.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export {
|
||||
getBlockIndexCommand,
|
||||
getNextBlockCommand,
|
||||
getPrevBlockCommand,
|
||||
getSelectedBlocksCommand,
|
||||
} from './block-crud/index.js';
|
||||
export {
|
||||
clearAndSelectFirstModelCommand,
|
||||
copySelectedModelsCommand,
|
||||
deleteSelectedModelsCommand,
|
||||
draftSelectedModelsCommand,
|
||||
duplicateSelectedModelsCommand,
|
||||
getSelectedModelsCommand,
|
||||
retainFirstModelCommand,
|
||||
} from './model-crud/index.js';
|
||||
export {
|
||||
getBlockSelectionsCommand,
|
||||
getImageSelectionsCommand,
|
||||
getSelectionRectsCommand,
|
||||
getTextSelectionCommand,
|
||||
type SelectionRect,
|
||||
} from './selection/index.js';
|
||||
|
||||
declare global {
|
||||
namespace BlockSuite {
|
||||
// if we use `with` or `inline` to add command data either then use a command we
|
||||
// need to update this interface
|
||||
interface CommandContext {
|
||||
currentSelectionPath?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user