@pyreon/hotkeys 0.11.8 → 0.11.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/hotkeys",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
4
4
|
"description": "Reactive keyboard shortcut management for Pyreon — scope-aware, conflict detection",
|
|
5
5
|
"homepage": "https://github.com/pyreon/pyreon/tree/main/packages/hotkeys#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@happy-dom/global-registrator": "^20.8.3",
|
|
45
|
-
"@pyreon/core": "^0.11.
|
|
46
|
-
"@pyreon/reactivity": "^0.11.
|
|
45
|
+
"@pyreon/core": "^0.11.10",
|
|
46
|
+
"@pyreon/reactivity": "^0.11.10",
|
|
47
47
|
"@vitus-labs/tools-lint": "^1.11.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@pyreon/core": "^0.11.
|
|
51
|
-
"@pyreon/reactivity": "^0.11.
|
|
50
|
+
"@pyreon/core": "^0.11.10",
|
|
51
|
+
"@pyreon/reactivity": "^0.11.10"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -431,7 +431,6 @@ describe('getRegisteredHotkeys', () => {
|
|
|
431
431
|
})
|
|
432
432
|
|
|
433
433
|
it('returns all registered hotkeys', () => {
|
|
434
|
-
// biome-ignore lint/suspicious/noEmptyBlockStatements: intentional no-op handlers for registry test
|
|
435
434
|
const noop = () => {}
|
|
436
435
|
registerHotkey('ctrl+s', noop, { description: 'Save' })
|
|
437
436
|
registerHotkey('ctrl+z', noop, { scope: 'editor', description: 'Undo' })
|
|
@@ -451,7 +450,6 @@ describe('getRegisteredHotkeys', () => {
|
|
|
451
450
|
})
|
|
452
451
|
|
|
453
452
|
it('reflects unregistered hotkeys', () => {
|
|
454
|
-
// biome-ignore lint/suspicious/noEmptyBlockStatements: intentional no-op handler
|
|
455
453
|
const noop = () => {}
|
|
456
454
|
const unsub = registerHotkey('ctrl+s', noop)
|
|
457
455
|
expect(getRegisteredHotkeys()).toHaveLength(1)
|