@tanstack/vue-hotkeys 0.27.2 → 0.27.4
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/dist/useHotkeys.js +5 -1
- package/package.json +2 -2
package/dist/useHotkeys.js
CHANGED
|
@@ -4,7 +4,11 @@ import { onScopeDispose, toValue, watch } from "vue";
|
|
|
4
4
|
import { createHotkeyBindings, prepareHotkeyDefinitions } from "@tanstack/hotkeys/adapter";
|
|
5
5
|
|
|
6
6
|
// src/useHotkeys.ts
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Resolves a ref or getter `enabled` so the core sees a boolean. In Vue a
|
|
9
|
+
* getter is a reactive source, as for other options, so the watcher reruns
|
|
10
|
+
* when its reactive state changes. The core never stores the getter.
|
|
11
|
+
*/
|
|
8
12
|
function resolveEnabled(options) {
|
|
9
13
|
if (!options) return options;
|
|
10
14
|
const { enabled, ...rest } = options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-hotkeys",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.4",
|
|
4
4
|
"description": "Vue adapter for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"skills"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tanstack/hotkeys": "0.
|
|
41
|
+
"@tanstack/hotkeys": "0.40.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tanstack/hotkeys-test-utils": "0.0.0",
|