Comparing version 0.0.16 to 0.0.17
@@ -0,1 +1,2 @@ | ||
import { Ref } from "vue"; | ||
import { Icon } from "../icon/types"; | ||
@@ -14,6 +15,16 @@ export type Shortcut = { | ||
}; | ||
export type CommandGroup = { | ||
type UseCommandsArgs = { | ||
dialog: Ref<HTMLDialogElement | null>; | ||
}; | ||
export declare function useCommands({ dialog }: UseCommandsArgs): Ref<{ | ||
label: string; | ||
commands: Command[]; | ||
}; | ||
export declare const getCommands: () => Command[]; | ||
icon: Icon; | ||
shortcut?: { | ||
keys: string[]; | ||
cmd?: boolean | undefined; | ||
alt?: boolean | undefined; | ||
shift?: boolean | undefined; | ||
} | undefined; | ||
callback: () => void; | ||
}[]>; | ||
export {}; |
@@ -10,3 +10,3 @@ import { Ref } from "vue"; | ||
label: string; | ||
icon: "add"; | ||
icon: import("../icon/types").Icon; | ||
shortcut?: { | ||
@@ -13,0 +13,0 @@ keys: string[]; |
@@ -1,2 +0,1 @@ | ||
export type Icon = 'add'; | ||
export {}; | ||
export type Icon = 'add' | 'home'; |
{ | ||
"name": "key-7", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
385910
5241