insomnia-common
Advanced tools
Comparing version 3.6.0 to 3.6.1-beta.0
/** | ||
* The readable definition of a hotkey. | ||
*/ | ||
export interface KeyboardShortcutDefinition { | ||
id: string; | ||
description: string; | ||
} | ||
/** | ||
* The combination of key presses that will activate a hotkey if pressed. | ||
@@ -14,6 +21,7 @@ */ | ||
*/ | ||
export interface KeyBindings { | ||
export interface PlatformKeyCombinations { | ||
macKeys: KeyCombination[]; | ||
winLinuxKeys: KeyCombination[]; | ||
} | ||
export declare type KeyboardShortcut = 'workspace_showSettings' | 'request_showSettings' | 'preferences_showKeyboardShortcuts' | 'preferences_showGeneral' | 'request_quickSwitch' | 'request_showRecent' | 'request_showRecentPrevious' | 'plugin_reload' | 'showAutocomplete' | 'request_send' | 'request_showOptions' | 'environment_showEditor' | 'environment_showSwitchMenu' | 'request_toggleHttpMethodMenu' | 'request_toggleHistory' | 'request_focusUrl' | 'request_showGenerateCodeEditor' | 'sidebar_focusFilter' | 'sidebar_toggle' | 'response_focus' | 'showCookiesEditor' | 'request_createHTTP' | 'request_showDelete' | 'request_showCreateFolder' | 'request_showDuplicate' | 'request_togglePin' | 'environment_showVariableSourceAndValue' | 'beautifyRequestBody' | 'graphql_explorer_focus_filter' | 'documents_filter'; | ||
/** | ||
@@ -23,3 +31,3 @@ * The collection of defined hotkeys. | ||
*/ | ||
export declare type HotKeyRegistry = Record<string, KeyBindings>; | ||
export declare type HotKeyRegistry = Record<KeyboardShortcut, PlatformKeyCombinations>; | ||
//# sourceMappingURL=hotkeys.d.ts.map |
{ | ||
"private": false, | ||
"name": "insomnia-common", | ||
"version": "3.6.0", | ||
"version": "3.6.1-beta.0", | ||
"homepage": "https://insomnia.rest", | ||
@@ -33,3 +33,3 @@ "description": "Top-level entities and utilities for Insomnia", | ||
}, | ||
"gitHead": "123253811c01504066a79e3eea40b2c775ffb6ff" | ||
"gitHead": "a2d503da085655265504ba9da9cd402182d34de7" | ||
} |
/** | ||
* The readable definition of a hotkey. | ||
*/ | ||
export interface KeyboardShortcutDefinition { | ||
id: string; | ||
description: string; | ||
} | ||
/** | ||
* The combination of key presses that will activate a hotkey if pressed. | ||
@@ -15,3 +23,3 @@ */ | ||
*/ | ||
export interface KeyBindings { | ||
export interface PlatformKeyCombinations { | ||
macKeys: KeyCombination[]; | ||
@@ -22,2 +30,34 @@ // The key combinations for both Windows and Linux. | ||
export type KeyboardShortcut = | ||
| 'workspace_showSettings' | ||
| 'request_showSettings' | ||
| 'preferences_showKeyboardShortcuts' | ||
| 'preferences_showGeneral' | ||
| 'request_quickSwitch' | ||
| 'request_showRecent' | ||
| 'request_showRecentPrevious' | ||
| 'plugin_reload' | ||
| 'showAutocomplete' | ||
| 'request_send' | ||
| 'request_showOptions' | ||
| 'environment_showEditor' | ||
| 'environment_showSwitchMenu' | ||
| 'request_toggleHttpMethodMenu' | ||
| 'request_toggleHistory' | ||
| 'request_focusUrl' | ||
| 'request_showGenerateCodeEditor' | ||
| 'sidebar_focusFilter' | ||
| 'sidebar_toggle' | ||
| 'response_focus' | ||
| 'showCookiesEditor' | ||
| 'request_createHTTP' | ||
| 'request_showDelete' | ||
| 'request_showCreateFolder' | ||
| 'request_showDuplicate' | ||
| 'request_togglePin' | ||
| 'environment_showVariableSourceAndValue' | ||
| 'beautifyRequestBody' | ||
| 'graphql_explorer_focus_filter' | ||
| 'documents_filter'; | ||
/** | ||
@@ -27,2 +67,2 @@ * The collection of defined hotkeys. | ||
*/ | ||
export type HotKeyRegistry = Record<string, KeyBindings>; | ||
export type HotKeyRegistry = Record<KeyboardShortcut, PlatformKeyCombinations>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
41984
362
1