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
@@ -0,0 +1,34 @@
import { createIdentifier } from '@blocksuite/global/di';
import type { Command } from './command/index.js';
import type { EventOptions, UIEventHandler } from './event/index.js';
import type { BlockService, LifeCycleWatcher } from './extension/index.js';
import type { BlockStdScope } from './scope/index.js';
import type { BlockViewType, WidgetViewType } from './spec/type.js';
export const BlockServiceIdentifier =
createIdentifier<BlockService>('BlockService');
export const BlockFlavourIdentifier = createIdentifier<{ flavour: string }>(
'BlockFlavour'
);
export const CommandIdentifier = createIdentifier<Command>('Commands');
export const ConfigIdentifier =
createIdentifier<Record<string, unknown>>('Config');
export const BlockViewIdentifier = createIdentifier<BlockViewType>('BlockView');
export const WidgetViewIdentifier =
createIdentifier<WidgetViewType>('WidgetView');
export const LifeCycleWatcherIdentifier =
createIdentifier<LifeCycleWatcher>('LifeCycleWatcher');
export const StdIdentifier = createIdentifier<BlockStdScope>('Std');
export const KeymapIdentifier = createIdentifier<{
getter: (std: BlockStdScope) => Record<string, UIEventHandler>;
options?: EventOptions;
}>('Keymap');