@scalar/oas-utils 0.2.28 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/entities/workspace/consts/hot-keys.d.ts +4 -2
- package/dist/entities/workspace/consts/hot-keys.d.ts.map +1 -1
- package/dist/entities/workspace/consts/hot-keys.js +24 -1
- package/dist/entities/workspace/workspace.d.ts +37 -37
- package/dist/entities/workspace/workspace.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.js +3 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/oas-utils
|
|
2
2
|
|
|
3
|
+
## 0.2.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c450bb3]
|
|
8
|
+
- @scalar/themes@0.9.23
|
|
9
|
+
|
|
10
|
+
## 0.2.29
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 8672a78: feat(api-client): moved command palette to the global key event bus
|
|
15
|
+
- 078ca72: feat: add topnav and addressbar hotkeys
|
|
16
|
+
- 520caff: fix: hot keys bus modifier
|
|
17
|
+
- Updated dependencies [03e9bbb]
|
|
18
|
+
- @scalar/object-utils@1.1.7
|
|
19
|
+
|
|
3
20
|
## 0.2.28
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Array of all of the events that we support
|
|
3
3
|
*/
|
|
4
|
-
export declare const HOTKEY_EVENT_NAMES: readonly ["closeModal"];
|
|
4
|
+
export declare const HOTKEY_EVENT_NAMES: readonly ["closeModal", "commandPaletteDown", "commandPaletteSelect", "commandPaletteUp", "openCommandPalette", "toggleSidebar", "addTopNav", "closeTopNav", "navigateTopNavLeft", "navigateTopNavRight", "focusAddressBar"];
|
|
5
5
|
export type HotkeyEventName = (typeof HOTKEY_EVENT_NAMES)[number];
|
|
6
6
|
/**
|
|
7
7
|
* Array of all of the hotkeys that we support
|
|
8
8
|
*
|
|
9
9
|
* Space is a special case because its actually ' ' but we name it space here and will handle it separately
|
|
10
|
+
* If you need more
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
|
|
10
12
|
*/
|
|
11
|
-
export declare const KEYDOWN_KEYS: readonly ["Space", "Backspace", "Tab", "Enter", "Escape", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""];
|
|
13
|
+
export declare const KEYDOWN_KEYS: readonly ["Space", "Backspace", "Tab", "Enter", "Escape", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", "PageDown", "PageUp", "Delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""];
|
|
12
14
|
export type KeydownKey = (typeof KEYDOWN_KEYS)[number];
|
|
13
15
|
//# sourceMappingURL=hot-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hot-keys.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/consts/hot-keys.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hot-keys.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/consts/hot-keys.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,8NAYrB,CAAA;AACV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,8hBAyFf,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Array of all of the events that we support
|
|
3
3
|
*/
|
|
4
|
-
const HOTKEY_EVENT_NAMES = [
|
|
4
|
+
const HOTKEY_EVENT_NAMES = [
|
|
5
|
+
'closeModal',
|
|
6
|
+
'commandPaletteDown',
|
|
7
|
+
'commandPaletteSelect',
|
|
8
|
+
'commandPaletteUp',
|
|
9
|
+
'openCommandPalette',
|
|
10
|
+
'toggleSidebar',
|
|
11
|
+
'addTopNav',
|
|
12
|
+
'closeTopNav',
|
|
13
|
+
'navigateTopNavLeft',
|
|
14
|
+
'navigateTopNavRight',
|
|
15
|
+
'focusAddressBar',
|
|
16
|
+
];
|
|
5
17
|
/**
|
|
6
18
|
* Array of all of the hotkeys that we support
|
|
7
19
|
*
|
|
8
20
|
* Space is a special case because its actually ' ' but we name it space here and will handle it separately
|
|
21
|
+
* If you need more
|
|
22
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
|
|
9
23
|
*/
|
|
10
24
|
const KEYDOWN_KEYS = [
|
|
11
25
|
'Space',
|
|
@@ -13,6 +27,15 @@ const KEYDOWN_KEYS = [
|
|
|
13
27
|
'Tab',
|
|
14
28
|
'Enter',
|
|
15
29
|
'Escape',
|
|
30
|
+
'ArrowDown',
|
|
31
|
+
'ArrowLeft',
|
|
32
|
+
'ArrowRight',
|
|
33
|
+
'ArrowUp',
|
|
34
|
+
'End',
|
|
35
|
+
'Home',
|
|
36
|
+
'PageDown',
|
|
37
|
+
'PageUp',
|
|
38
|
+
'Delete',
|
|
16
39
|
'0',
|
|
17
40
|
'1',
|
|
18
41
|
'2',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const
|
|
3
|
-
export type
|
|
4
|
-
declare const hotKeys: z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
5
|
-
|
|
6
|
-
event: z.ZodEnum<["closeModal"]>;
|
|
2
|
+
declare const modifiers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>;
|
|
3
|
+
export type HotKeyModifiers = z.infer<typeof modifiers>;
|
|
4
|
+
declare const hotKeys: z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", "PageDown", "PageUp", "Delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
5
|
+
modifiers: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>>;
|
|
6
|
+
event: z.ZodEnum<["closeModal", "commandPaletteDown", "commandPaletteSelect", "commandPaletteUp", "openCommandPalette", "toggleSidebar", "addTopNav", "closeTopNav", "navigateTopNavLeft", "navigateTopNavRight", "focusAddressBar"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
event: "closeModal";
|
|
9
|
-
|
|
8
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
9
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
event: "closeModal";
|
|
12
|
-
|
|
11
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
12
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
13
13
|
}>>;
|
|
14
14
|
export type HotKeyConfig = z.infer<typeof hotKeys>;
|
|
15
15
|
declare const workspaceSchema: z.ZodObject<{
|
|
@@ -25,28 +25,28 @@ declare const workspaceSchema: z.ZodObject<{
|
|
|
25
25
|
environmentUids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
26
26
|
/** Customize hotkeys */
|
|
27
27
|
hotKeyConfig: z.ZodOptional<z.ZodObject<{
|
|
28
|
-
|
|
29
|
-
hotKeys: z.ZodOptional<z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
30
|
-
|
|
31
|
-
event: z.ZodEnum<["closeModal"]>;
|
|
28
|
+
modifiers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>;
|
|
29
|
+
hotKeys: z.ZodOptional<z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", "PageDown", "PageUp", "Delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
30
|
+
modifiers: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>>;
|
|
31
|
+
event: z.ZodEnum<["closeModal", "commandPaletteDown", "commandPaletteSelect", "commandPaletteUp", "openCommandPalette", "toggleSidebar", "addTopNav", "closeTopNav", "navigateTopNavLeft", "navigateTopNavRight", "focusAddressBar"]>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
event: "closeModal";
|
|
34
|
-
|
|
33
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
34
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
event: "closeModal";
|
|
37
|
-
|
|
36
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
37
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
38
38
|
}>>>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
|
|
41
|
-
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
42
|
-
event: "closeModal";
|
|
43
|
-
|
|
40
|
+
modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[];
|
|
41
|
+
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
42
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
43
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
|
|
44
44
|
}>> | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
|
|
47
|
-
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
48
|
-
event: "closeModal";
|
|
49
|
-
|
|
46
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
47
|
+
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
48
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
49
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
50
50
|
}>> | undefined;
|
|
51
51
|
}>>;
|
|
52
52
|
/** List of all cookie uids in a given workspace */
|
|
@@ -65,10 +65,10 @@ declare const workspaceSchema: z.ZodObject<{
|
|
|
65
65
|
cookieUids: string[];
|
|
66
66
|
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
67
67
|
hotKeyConfig?: {
|
|
68
|
-
|
|
69
|
-
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
70
|
-
event: "closeModal";
|
|
71
|
-
|
|
68
|
+
modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[];
|
|
69
|
+
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
70
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
71
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
} | undefined;
|
|
74
74
|
proxyUrl?: string | undefined;
|
|
@@ -80,10 +80,10 @@ declare const workspaceSchema: z.ZodObject<{
|
|
|
80
80
|
collectionUids?: string[] | undefined;
|
|
81
81
|
environmentUids?: string[] | undefined;
|
|
82
82
|
hotKeyConfig?: {
|
|
83
|
-
|
|
84
|
-
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
85
|
-
event: "closeModal";
|
|
86
|
-
|
|
83
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
84
|
+
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
85
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
86
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt" | undefined)[] | undefined;
|
|
87
87
|
}>> | undefined;
|
|
88
88
|
} | undefined;
|
|
89
89
|
cookieUids?: string[] | undefined;
|
|
@@ -103,10 +103,10 @@ export declare const createWorkspace: (payload: WorkspacePayload) => {
|
|
|
103
103
|
cookieUids: string[];
|
|
104
104
|
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
105
105
|
hotKeyConfig?: {
|
|
106
|
-
|
|
107
|
-
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
108
|
-
event: "closeModal";
|
|
109
|
-
|
|
106
|
+
modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[];
|
|
107
|
+
hotKeys?: Partial<Record<"" | "0" | "1" | "2" | "/" | "[" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "\\" | "]", {
|
|
108
|
+
event: "closeModal" | "commandPaletteDown" | "commandPaletteSelect" | "commandPaletteUp" | "openCommandPalette" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar";
|
|
109
|
+
modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
|
|
110
110
|
}>> | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
proxyUrl?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/entities/workspace/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/entities/workspace/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,QAAA,MAAM,SAAS,yIAAoD,CAAA;AAEnE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,QAAA,MAAM,OAAO;;;;;;;;;GAMZ,CAAA;AACD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;AASlD,QAAA,MAAM,eAAe;;;IAGnB,4BAA4B;;IAE5B,6EAA6E;;IAE7E,uDAAuD;;IAEvD,wDAAwD;;IAExD,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;IAExB,mDAAmD;;IAEnD,gEAAgE;;IAEhE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpE,CAAA;AAEF,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE9D,eAAO,MAAM,eAAe,YAAa,gBAAgB;;;;;;;;;;;;;;;;;CACzB,CAAA"}
|
|
@@ -7,13 +7,14 @@ const modifier = z
|
|
|
7
7
|
.enum(['Meta', 'Control', 'Shift', 'Alt', 'default'])
|
|
8
8
|
.optional()
|
|
9
9
|
.default('default');
|
|
10
|
+
const modifiers = z.array(modifier).optional().default(['default']);
|
|
10
11
|
const hotKeys = z.record(z.enum(KEYDOWN_KEYS), z.object({
|
|
11
|
-
|
|
12
|
+
modifiers: modifiers.optional(),
|
|
12
13
|
event: z.enum(HOTKEY_EVENT_NAMES),
|
|
13
14
|
}));
|
|
14
15
|
const hotKeyConfigSchema = z
|
|
15
16
|
.object({
|
|
16
|
-
|
|
17
|
+
modifiers,
|
|
17
18
|
hotKeys: hotKeys.optional(),
|
|
18
19
|
})
|
|
19
20
|
.optional();
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.2.
|
|
19
|
+
"version": "0.2.30",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"nanoid": "^5.0.7",
|
|
95
95
|
"yaml": "^2.4.5",
|
|
96
96
|
"zod": "^3.22.4",
|
|
97
|
-
"@scalar/object-utils": "1.1.
|
|
98
|
-
"@scalar/themes": "0.9.
|
|
97
|
+
"@scalar/object-utils": "1.1.7",
|
|
98
|
+
"@scalar/themes": "0.9.23"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@scalar/openapi-parser": "^0.7.2",
|