refactor: enhance command palette modularity (#6139)

* refactor: enhance command palette modularity

* chore: minor updates to command palette store
This commit is contained in:
Prateek Shourya 2024-12-11 18:02:58 +05:30 committed by GitHub
parent ca0d50b229
commit a9bd2e243a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 342 additions and 212 deletions

15
packages/types/src/command-palette.d.ts vendored Normal file
View 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;
};

View file

@ -32,3 +32,4 @@ export * from "./workspace-notifications";
export * from "./favorite";
export * from "./file";
export * from "./workspace-draft-issues/base";
export * from "./command-palette";