refactor: enhance command palette modularity (#6139)
* refactor: enhance command palette modularity * chore: minor updates to command palette store
This commit is contained in:
parent
ca0d50b229
commit
a9bd2e243a
16 changed files with 342 additions and 212 deletions
15
packages/types/src/command-palette.d.ts
vendored
Normal file
15
packages/types/src/command-palette.d.ts
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export type TCommandPaletteActionList = Record<
|
||||
string,
|
||||
{ title: string; description: string; action: () => void }
|
||||
>;
|
||||
|
||||
export type TCommandPaletteShortcutList = {
|
||||
key: string;
|
||||
title: string;
|
||||
shortcuts: TCommandPaletteShortcut[];
|
||||
};
|
||||
|
||||
export type TCommandPaletteShortcut = {
|
||||
keys: string; // comma separated keys
|
||||
description: string;
|
||||
};
|
||||
1
packages/types/src/index.d.ts
vendored
1
packages/types/src/index.d.ts
vendored
|
|
@ -32,3 +32,4 @@ export * from "./workspace-notifications";
|
|||
export * from "./favorite";
|
||||
export * from "./file";
|
||||
export * from "./workspace-draft-issues/base";
|
||||
export * from "./command-palette";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue