diff --git a/.changeset/alpine-hotkey-directive.md b/.changeset/alpine-hotkey-directive.md deleted file mode 100644 index 9ec869fe2..000000000 --- a/.changeset/alpine-hotkey-directive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/alpine-hotkeys': minor ---- - -Add the `x-hotkey` directive, installed with `Alpine.plugin(hotkeyDirective)`. Name the hotkey with modifiers and give the callback as the expression: `x-hotkey.mod.s="save()"`, `x-hotkey.escape="close()"`, or `x-hotkey.g.h="goHome()"` for a sequence. The hotkey lives as long as the attribute, so a morph that changes or removes it, as Livewire does on every update, replaces or removes the hotkey. A changed `x-init="$hotkeys.createHotkey(...)"` stays registered until its element is removed. With Alpine's CSP build, name a component method: `x-hotkey.mod.s="save"`. A page that only uses `x-hotkey` doesn't ship the `$hotkeys` owners and readers. diff --git a/.changeset/ember-4-12-floor.md b/.changeset/ember-4-12-floor.md deleted file mode 100644 index 07c8740f2..000000000 --- a/.changeset/ember-4-12-floor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ember-hotkeys': minor ---- - -Support Ember 4.12 and newer, including the 4.12 and 5.12 LTS lines and ember-source 6.8.0 to 6.8.2, 6.9.0 and 6.10.0. The adapter tracked its state with `@ember/reactive/collections`, which only newer ember-source versions ship. It now uses `@glimmer/tracking`, which every supported version has. diff --git a/.changeset/ember-scope-defaults-order.md b/.changeset/ember-scope-defaults-order.md deleted file mode 100644 index cedbbc965..000000000 --- a/.changeset/ember-scope-defaults-order.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ember-hotkeys': minor ---- - -`createHotkeysScope` defaults no longer override an app hotkey's declared options. The helpers and modifiers from a scope put its defaults below the declaration, as the App Hotkeys guide says: scope defaults, then declared options, then call-site options. Before, a scope default such as `preventDefault: true` replaced `preventDefault: false` from `defineAppHotkeys`. diff --git a/.changeset/format-for-aria.md b/.changeset/format-for-aria.md deleted file mode 100644 index 7144476da..000000000 --- a/.changeset/format-for-aria.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@tanstack/hotkeys': minor -'@tanstack/react-hotkeys': minor -'@tanstack/preact-hotkeys': minor -'@tanstack/octane-hotkeys': minor -'@tanstack/solid-hotkeys': minor -'@tanstack/vue-hotkeys': minor -'@tanstack/svelte-hotkeys': minor -'@tanstack/angular-hotkeys': minor -'@tanstack/ember-hotkeys': minor -'@tanstack/lit-hotkeys': minor -'@tanstack/alpine-hotkeys': minor ---- - -Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. - -Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: - -- `useFormatForAria` (React, Preact, Octane, Vue, Ember) -- `createFormatForAria` (Solid, and on Alpine scopes) -- `getFormatForAria` (Svelte) -- `injectFormatForAria` (Angular) -- `FormatForAriaController` (Lit) diff --git a/.changeset/suspend-character-keys.md b/.changeset/suspend-character-keys.md deleted file mode 100644 index 3551fb307..000000000 --- a/.changeset/suspend-character-keys.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@tanstack/hotkeys': minor -'@tanstack/react-hotkeys': minor -'@tanstack/preact-hotkeys': minor -'@tanstack/octane-hotkeys': minor -'@tanstack/solid-hotkeys': minor -'@tanstack/vue-hotkeys': minor -'@tanstack/svelte-hotkeys': minor -'@tanstack/angular-hotkeys': minor -'@tanstack/hotkeys-devtools': patch ---- - -Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. - -A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. - -Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). diff --git a/examples/angular/injectFormatForDisplay-analog/package.json b/examples/angular/injectFormatForDisplay-analog/package.json index ea9025699..6cac6e66e 100644 --- a/examples/angular/injectFormatForDisplay-analog/package.json +++ b/examples/angular/injectFormatForDisplay-analog/package.json @@ -17,7 +17,7 @@ "@angular/platform-browser": "^22.2.5", "@angular/platform-server": "^22.2.5", "@angular/router": "^22.2.5", - "@tanstack/angular-hotkeys": "^0.25.6", + "@tanstack/angular-hotkeys": "^0.26.0", "rxjs": "~7.8.2", "tslib": "^2.9.1" }, diff --git a/examples/angular/injectFormatForDisplay-angular-ssr/package.json b/examples/angular/injectFormatForDisplay-angular-ssr/package.json index 797acc565..8ef58db28 100644 --- a/examples/angular/injectFormatForDisplay-angular-ssr/package.json +++ b/examples/angular/injectFormatForDisplay-angular-ssr/package.json @@ -17,7 +17,7 @@ "@angular/platform-server": "^22.2.5", "@angular/router": "^22.2.5", "@angular/ssr": "^22.2.6", - "@tanstack/angular-hotkeys": "^0.25.6", + "@tanstack/angular-hotkeys": "^0.26.0", "express": "^5.3.0", "rxjs": "~7.8.2", "tslib": "^2.9.1" diff --git a/examples/angular/injectHeldKeys/package.json b/examples/angular/injectHeldKeys/package.json index cacd0907a..f8ed007c8 100644 --- a/examples/angular/injectHeldKeys/package.json +++ b/examples/angular/injectHeldKeys/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkey-sequences/package.json b/examples/angular/injectHotkey-sequences/package.json index 420c74af0..5b243a5b8 100644 --- a/examples/angular/injectHotkey-sequences/package.json +++ b/examples/angular/injectHotkey-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkey/package.json b/examples/angular/injectHotkey/package.json index 8c45c2a7c..192db744f 100644 --- a/examples/angular/injectHotkey/package.json +++ b/examples/angular/injectHotkey/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeyRecorder-sequences/package.json b/examples/angular/injectHotkeyRecorder-sequences/package.json index d444a3c5e..839349555 100644 --- a/examples/angular/injectHotkeyRecorder-sequences/package.json +++ b/examples/angular/injectHotkeyRecorder-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeyRecorder/package.json b/examples/angular/injectHotkeyRecorder/package.json index c9bf79e70..335a873dc 100644 --- a/examples/angular/injectHotkeyRecorder/package.json +++ b/examples/angular/injectHotkeyRecorder/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeys-sequences/package.json b/examples/angular/injectHotkeys-sequences/package.json index 1e430fe80..b57a10465 100644 --- a/examples/angular/injectHotkeys-sequences/package.json +++ b/examples/angular/injectHotkeys-sequences/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectHotkeys/package.json b/examples/angular/injectHotkeys/package.json index 386c6f0de..b42e59d3b 100644 --- a/examples/angular/injectHotkeys/package.json +++ b/examples/angular/injectHotkeys/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/injectKeyHold/package.json b/examples/angular/injectKeyHold/package.json index 8ce429d4e..c03c2d20c 100644 --- a/examples/angular/injectKeyHold/package.json +++ b/examples/angular/injectKeyHold/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/keyboard-layouts/package.json b/examples/angular/keyboard-layouts/package.json index cb1a1b693..d679b17b8 100644 --- a/examples/angular/keyboard-layouts/package.json +++ b/examples/angular/keyboard-layouts/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/kitchen-sink/package.json b/examples/angular/kitchen-sink/package.json index 6ad8abc32..36d3fdfcc 100644 --- a/examples/angular/kitchen-sink/package.json +++ b/examples/angular/kitchen-sink/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/angular/scopes/package.json b/examples/angular/scopes/package.json index cb06ab76b..487220cbb 100644 --- a/examples/angular/scopes/package.json +++ b/examples/angular/scopes/package.json @@ -18,8 +18,8 @@ "@angular/platform-browser-dynamic": "^22.2.5", "@angular/router": "^22.2.5", "@tanstack/angular-devtools": "^0.0.14", - "@tanstack/angular-hotkeys": "^0.25.6", - "@tanstack/angular-hotkeys-devtools": "^0.5.18", + "@tanstack/angular-hotkeys": "^0.26.0", + "@tanstack/angular-hotkeys-devtools": "^0.5.19", "rxjs": "~7.8.2", "tslib": "^2.9.1", "zone.js": "~0.16.3" diff --git a/examples/lit/held-keys/package.json b/examples/lit/held-keys/package.json index a149f10bc..b52635258 100644 --- a/examples/lit/held-keys/package.json +++ b/examples/lit/held-keys/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-recorder-sequences/package.json b/examples/lit/hotkey-recorder-sequences/package.json index 0fd727ad0..14f705c45 100644 --- a/examples/lit/hotkey-recorder-sequences/package.json +++ b/examples/lit/hotkey-recorder-sequences/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-recorder/package.json b/examples/lit/hotkey-recorder/package.json index 33100b5d6..8eda6af4f 100644 --- a/examples/lit/hotkey-recorder/package.json +++ b/examples/lit/hotkey-recorder/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey-sequences/package.json b/examples/lit/hotkey-sequences/package.json index 44e1065b2..75c8cd4c1 100644 --- a/examples/lit/hotkey-sequences/package.json +++ b/examples/lit/hotkey-sequences/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/hotkey/package.json b/examples/lit/hotkey/package.json index ec4be82d1..65f960fde 100644 --- a/examples/lit/hotkey/package.json +++ b/examples/lit/hotkey/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/key-hold/package.json b/examples/lit/key-hold/package.json index bddfc3ddd..e55cf3bad 100644 --- a/examples/lit/key-hold/package.json +++ b/examples/lit/key-hold/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/keyboard-layouts/package.json b/examples/lit/keyboard-layouts/package.json index 0cdeac42a..f03b7ba8e 100644 --- a/examples/lit/keyboard-layouts/package.json +++ b/examples/lit/keyboard-layouts/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/lit/kitchen-sink/package.json b/examples/lit/kitchen-sink/package.json index 0d53cb0e0..981bed691 100644 --- a/examples/lit/kitchen-sink/package.json +++ b/examples/lit/kitchen-sink/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/lit-hotkeys": "0.27.6", + "@tanstack/lit-hotkeys": "0.28.0", "lit": "^3.3.3" }, "devDependencies": { diff --git a/examples/preact/keyboard-layouts/package.json b/examples/preact/keyboard-layouts/package.json index 8fbad3d72..1a3bd1cb3 100644 --- a/examples/preact/keyboard-layouts/package.json +++ b/examples/preact/keyboard-layouts/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/kitchen-sink/package.json b/examples/preact/kitchen-sink/package.json index 4d242921d..68c8f79ab 100644 --- a/examples/preact/kitchen-sink/package.json +++ b/examples/preact/kitchen-sink/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/scopes/package.json b/examples/preact/scopes/package.json index d43622036..89a463c1a 100644 --- a/examples/preact/scopes/package.json +++ b/examples/preact/scopes/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useFormatForDisplay-astro/package.json b/examples/preact/useFormatForDisplay-astro/package.json index 0d3de211b..f34c850b5 100644 --- a/examples/preact/useFormatForDisplay-astro/package.json +++ b/examples/preact/useFormatForDisplay-astro/package.json @@ -22,7 +22,7 @@ "dependencies": { "@astrojs/node": "^11.1.11", "@astrojs/preact": "^6.1.2", - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "astro": "^7.4.7", "preact": "^11.2.0" }, diff --git a/examples/preact/useFormatForDisplay-vite-ssr/package.json b/examples/preact/useFormatForDisplay-vite-ssr/package.json index 47e2b4d7e..30ba45e58 100644 --- a/examples/preact/useFormatForDisplay-vite-ssr/package.json +++ b/examples/preact/useFormatForDisplay-vite-ssr/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0", "preact-render-to-string": "^6.8.2" }, diff --git a/examples/preact/useHeldKeys/package.json b/examples/preact/useHeldKeys/package.json index 469aba52f..5cb1d5aca 100644 --- a/examples/preact/useHeldKeys/package.json +++ b/examples/preact/useHeldKeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkey-sequences/package.json b/examples/preact/useHotkey-sequences/package.json index a248a52ad..e63fb504f 100644 --- a/examples/preact/useHotkey-sequences/package.json +++ b/examples/preact/useHotkey-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkey/package.json b/examples/preact/useHotkey/package.json index 4d9fa6866..4675acbf0 100644 --- a/examples/preact/useHotkey/package.json +++ b/examples/preact/useHotkey/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkeyRecorder-sequences/package.json b/examples/preact/useHotkeyRecorder-sequences/package.json index dffcf583d..a3dcdc0c3 100644 --- a/examples/preact/useHotkeyRecorder-sequences/package.json +++ b/examples/preact/useHotkeyRecorder-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkeyRecorder/package.json b/examples/preact/useHotkeyRecorder/package.json index 4e18fd1e3..538891647 100644 --- a/examples/preact/useHotkeyRecorder/package.json +++ b/examples/preact/useHotkeyRecorder/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkeys-sequences/package.json b/examples/preact/useHotkeys-sequences/package.json index f7f27e096..77b0fcb50 100644 --- a/examples/preact/useHotkeys-sequences/package.json +++ b/examples/preact/useHotkeys-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useHotkeys/package.json b/examples/preact/useHotkeys/package.json index 4e9019f2d..8df3a1b74 100644 --- a/examples/preact/useHotkeys/package.json +++ b/examples/preact/useHotkeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/preact/useKeyhold/package.json b/examples/preact/useKeyhold/package.json index 1ab2ea74e..3b7d639a6 100644 --- a/examples/preact/useKeyhold/package.json +++ b/examples/preact/useKeyhold/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/preact-hotkeys": "^0.24.6", + "@tanstack/preact-hotkeys": "^0.25.0", "preact": "^11.2.0" }, "devDependencies": { "@preact/preset-vite": "^2.10.6", "@tanstack/preact-devtools": "0.10.16", - "@tanstack/preact-hotkeys-devtools": "^0.13.18", + "@tanstack/preact-hotkeys-devtools": "^0.13.19", "typescript": "6.0.3", "vite": "^8.3.7" } diff --git a/examples/react/keyboard-layouts/package.json b/examples/react/keyboard-layouts/package.json index 74ff6c022..d23d87d26 100644 --- a/examples/react/keyboard-layouts/package.json +++ b/examples/react/keyboard-layouts/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 048a20cec..8fc9db89c 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -11,14 +11,14 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "@tanstack/react-router": "^1.170.46", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/scopes/package.json b/examples/react/scopes/package.json index 77a5ce686..15a8ca15c 100644 --- a/examples/react/scopes/package.json +++ b/examples/react/scopes/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useFormatForDisplay-astro/package.json b/examples/react/useFormatForDisplay-astro/package.json index 22ad8a51a..2f7233083 100644 --- a/examples/react/useFormatForDisplay-astro/package.json +++ b/examples/react/useFormatForDisplay-astro/package.json @@ -22,7 +22,7 @@ "dependencies": { "@astrojs/node": "^11.1.11", "@astrojs/react": "^7.1.4", - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "astro": "^7.4.7", "react": "^19.3.1", "react-dom": "^19.3.1" diff --git a/examples/react/useFormatForDisplay-nextjs/package.json b/examples/react/useFormatForDisplay-nextjs/package.json index c1f4a8bd0..dd4b8d9c6 100644 --- a/examples/react/useFormatForDisplay-nextjs/package.json +++ b/examples/react/useFormatForDisplay-nextjs/package.json @@ -20,7 +20,7 @@ } }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "next": "^16.4.5", "react": "^19.3.1", "react-dom": "^19.3.1" diff --git a/examples/react/useFormatForDisplay-react-router/package.json b/examples/react/useFormatForDisplay-react-router/package.json index 85f2c052e..81883d9a4 100644 --- a/examples/react/useFormatForDisplay-react-router/package.json +++ b/examples/react/useFormatForDisplay-react-router/package.json @@ -22,7 +22,7 @@ "dependencies": { "@react-router/node": "^8.5.1", "@react-router/serve": "^8.5.1", - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "isbot": "^5.2.3", "react": "^19.3.1", "react-dom": "^19.3.1", diff --git a/examples/react/useFormatForDisplay-tanstack-start/package.json b/examples/react/useFormatForDisplay-tanstack-start/package.json index 9ef725fe4..2319bf7d5 100644 --- a/examples/react/useFormatForDisplay-tanstack-start/package.json +++ b/examples/react/useFormatForDisplay-tanstack-start/package.json @@ -11,7 +11,7 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "@tanstack/react-router": "^1.170.46", "@tanstack/react-start": "^1.169.5", "react": "^19.3.1", diff --git a/examples/react/useHeldKeys/package.json b/examples/react/useHeldKeys/package.json index 91e0e2f95..72b5ade23 100644 --- a/examples/react/useHeldKeys/package.json +++ b/examples/react/useHeldKeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkey-sequences/package.json b/examples/react/useHotkey-sequences/package.json index 81acd1737..602d55218 100644 --- a/examples/react/useHotkey-sequences/package.json +++ b/examples/react/useHotkey-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkey/package.json b/examples/react/useHotkey/package.json index f57c74d2b..2428c9fba 100644 --- a/examples/react/useHotkey/package.json +++ b/examples/react/useHotkey/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkeyRecorder-sequences/package.json b/examples/react/useHotkeyRecorder-sequences/package.json index c77abe882..98b5f9d2c 100644 --- a/examples/react/useHotkeyRecorder-sequences/package.json +++ b/examples/react/useHotkeyRecorder-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkeyRecorder/package.json b/examples/react/useHotkeyRecorder/package.json index 82726a3b2..7d1941c57 100644 --- a/examples/react/useHotkeyRecorder/package.json +++ b/examples/react/useHotkeyRecorder/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkeys-sequences/package.json b/examples/react/useHotkeys-sequences/package.json index 058bd485e..af6d5c92d 100644 --- a/examples/react/useHotkeys-sequences/package.json +++ b/examples/react/useHotkeys-sequences/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useHotkeys/package.json b/examples/react/useHotkeys/package.json index 2494acc4f..f7eedd957 100644 --- a/examples/react/useHotkeys/package.json +++ b/examples/react/useHotkeys/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/react/useKeyhold/package.json b/examples/react/useKeyhold/package.json index 3491e6967..5d21b845e 100644 --- a/examples/react/useKeyhold/package.json +++ b/examples/react/useKeyhold/package.json @@ -11,13 +11,13 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-hotkeys": "^0.27.5", + "@tanstack/react-hotkeys": "^0.28.0", "react": "^19.3.1", "react-dom": "^19.3.1" }, "devDependencies": { "@tanstack/react-devtools": "0.10.15", - "@tanstack/react-hotkeys-devtools": "^0.14.18", + "@tanstack/react-hotkeys-devtools": "^0.14.19", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", diff --git a/examples/solid/createFormatForDisplay-tanstack-start/package.json b/examples/solid/createFormatForDisplay-tanstack-start/package.json index 6532e307b..662bccfc1 100644 --- a/examples/solid/createFormatForDisplay-tanstack-start/package.json +++ b/examples/solid/createFormatForDisplay-tanstack-start/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@solidjs/web": "^2.0.3", - "@tanstack/solid-hotkeys": "^0.26.3", + "@tanstack/solid-hotkeys": "^0.27.0", "@tanstack/solid-router": "^2.0.0-rc.12", "@tanstack/solid-start": "^2.0.0-rc.12", "solid-js": "^2.0.3" diff --git a/examples/solid/createHeldKeys/package.json b/examples/solid/createHeldKeys/package.json index a63ad7934..b7713c4e9 100644 --- a/examples/solid/createHeldKeys/package.json +++ b/examples/solid/createHeldKeys/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkey-sequences/package.json b/examples/solid/createHotkey-sequences/package.json index 3367641da..d341cca44 100644 --- a/examples/solid/createHotkey-sequences/package.json +++ b/examples/solid/createHotkey-sequences/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkey/package.json b/examples/solid/createHotkey/package.json index 659cbebdf..4e1e63108 100644 --- a/examples/solid/createHotkey/package.json +++ b/examples/solid/createHotkey/package.json @@ -13,8 +13,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkeyRecorder-sequences/package.json b/examples/solid/createHotkeyRecorder-sequences/package.json index e2f06a63f..5554ec6a5 100644 --- a/examples/solid/createHotkeyRecorder-sequences/package.json +++ b/examples/solid/createHotkeyRecorder-sequences/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkeyRecorder/package.json b/examples/solid/createHotkeyRecorder/package.json index 81a27635f..e201c6df2 100644 --- a/examples/solid/createHotkeyRecorder/package.json +++ b/examples/solid/createHotkeyRecorder/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkeys-sequences/package.json b/examples/solid/createHotkeys-sequences/package.json index 81f440bfb..9e1cbff2c 100644 --- a/examples/solid/createHotkeys-sequences/package.json +++ b/examples/solid/createHotkeys-sequences/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createHotkeys/package.json b/examples/solid/createHotkeys/package.json index b6d3e4275..3a58a1a20 100644 --- a/examples/solid/createHotkeys/package.json +++ b/examples/solid/createHotkeys/package.json @@ -13,8 +13,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/createKeyHold/package.json b/examples/solid/createKeyHold/package.json index 00f80a2b8..489d7e585 100644 --- a/examples/solid/createKeyHold/package.json +++ b/examples/solid/createKeyHold/package.json @@ -10,8 +10,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/keyboard-layouts/package.json b/examples/solid/keyboard-layouts/package.json index c50ee223a..d42ca1c3b 100644 --- a/examples/solid/keyboard-layouts/package.json +++ b/examples/solid/keyboard-layouts/package.json @@ -13,8 +13,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/kitchen-sink/package.json b/examples/solid/kitchen-sink/package.json index 29c3f0362..c6646390e 100644 --- a/examples/solid/kitchen-sink/package.json +++ b/examples/solid/kitchen-sink/package.json @@ -13,8 +13,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/solid/scopes/package.json b/examples/solid/scopes/package.json index f93d9523f..42ddc5167 100644 --- a/examples/solid/scopes/package.json +++ b/examples/solid/scopes/package.json @@ -13,8 +13,8 @@ "dependencies": { "@solidjs/web": "^2.0.3", "@tanstack/solid-devtools": "0.9.0", - "@tanstack/solid-hotkeys": "^0.26.3", - "@tanstack/solid-hotkeys-devtools": "^0.14.3", + "@tanstack/solid-hotkeys": "^0.27.0", + "@tanstack/solid-hotkeys-devtools": "^0.14.4", "solid-js": "^2.0.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-recorder-sequences/package.json b/examples/svelte/create-hotkey-recorder-sequences/package.json index 0000e1b66..bee722525 100644 --- a/examples/svelte/create-hotkey-recorder-sequences/package.json +++ b/examples/svelte/create-hotkey-recorder-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-recorder/package.json b/examples/svelte/create-hotkey-recorder/package.json index a153739e3..19b8c1e90 100644 --- a/examples/svelte/create-hotkey-recorder/package.json +++ b/examples/svelte/create-hotkey-recorder/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey-sequences/package.json b/examples/svelte/create-hotkey-sequences/package.json index dc5de61b0..05ba42eb8 100644 --- a/examples/svelte/create-hotkey-sequences/package.json +++ b/examples/svelte/create-hotkey-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkey/package.json b/examples/svelte/create-hotkey/package.json index a6b0f871a..5f0594c19 100644 --- a/examples/svelte/create-hotkey/package.json +++ b/examples/svelte/create-hotkey/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkeys-sequences/package.json b/examples/svelte/create-hotkeys-sequences/package.json index 54a994e89..2fc69d63b 100644 --- a/examples/svelte/create-hotkeys-sequences/package.json +++ b/examples/svelte/create-hotkeys-sequences/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/create-hotkeys/package.json b/examples/svelte/create-hotkeys/package.json index 1a9e501c1..92ccc2f55 100644 --- a/examples/svelte/create-hotkeys/package.json +++ b/examples/svelte/create-hotkeys/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/get-held-keys/package.json b/examples/svelte/get-held-keys/package.json index cbf0d23eb..16a6d5df8 100644 --- a/examples/svelte/get-held-keys/package.json +++ b/examples/svelte/get-held-keys/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/get-is-key-held/package.json b/examples/svelte/get-is-key-held/package.json index 7a22146e5..8ac4f0b12 100644 --- a/examples/svelte/get-is-key-held/package.json +++ b/examples/svelte/get-is-key-held/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/getFormatForDisplay-astro/package.json b/examples/svelte/getFormatForDisplay-astro/package.json index 1fccb897c..620966880 100644 --- a/examples/svelte/getFormatForDisplay-astro/package.json +++ b/examples/svelte/getFormatForDisplay-astro/package.json @@ -22,7 +22,7 @@ "dependencies": { "@astrojs/node": "^11.1.11", "@astrojs/svelte": "^9.1.2", - "@tanstack/svelte-hotkeys": "0.25.6", + "@tanstack/svelte-hotkeys": "0.26.0", "astro": "^7.4.7", "svelte": "^5.57.3" }, diff --git a/examples/svelte/getFormatForDisplay-sveltekit/package.json b/examples/svelte/getFormatForDisplay-sveltekit/package.json index 4576b4c54..5df668c44 100644 --- a/examples/svelte/getFormatForDisplay-sveltekit/package.json +++ b/examples/svelte/getFormatForDisplay-sveltekit/package.json @@ -24,7 +24,7 @@ } }, "dependencies": { - "@tanstack/svelte-hotkeys": "0.25.6", + "@tanstack/svelte-hotkeys": "0.26.0", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/keyboard-layouts/package.json b/examples/svelte/keyboard-layouts/package.json index ccdd0c278..878f9165f 100644 --- a/examples/svelte/keyboard-layouts/package.json +++ b/examples/svelte/keyboard-layouts/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/kitchen-sink/package.json b/examples/svelte/kitchen-sink/package.json index 2cdcf11be..9f614c365 100644 --- a/examples/svelte/kitchen-sink/package.json +++ b/examples/svelte/kitchen-sink/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/svelte/scopes/package.json b/examples/svelte/scopes/package.json index bb9f8a177..c8309df14 100644 --- a/examples/svelte/scopes/package.json +++ b/examples/svelte/scopes/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@tanstack/svelte-devtools": "^0.1.9", - "@tanstack/svelte-hotkeys": "0.25.6", - "@tanstack/svelte-hotkeys-devtools": "^0.5.18", + "@tanstack/svelte-hotkeys": "0.26.0", + "@tanstack/svelte-hotkeys-devtools": "^0.5.19", "svelte": "^5.57.3" }, "devDependencies": { diff --git a/examples/vue/keyboard-layouts/package.json b/examples/vue/keyboard-layouts/package.json index 54579b851..9c9ed8c67 100644 --- a/examples/vue/keyboard-layouts/package.json +++ b/examples/vue/keyboard-layouts/package.json @@ -11,12 +11,12 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7", diff --git a/examples/vue/kitchen-sink/package.json b/examples/vue/kitchen-sink/package.json index 0be1d361a..91a89d89a 100644 --- a/examples/vue/kitchen-sink/package.json +++ b/examples/vue/kitchen-sink/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/scopes/package.json b/examples/vue/scopes/package.json index a042cb239..12e34228c 100644 --- a/examples/vue/scopes/package.json +++ b/examples/vue/scopes/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useFormatForDisplay-astro/package.json b/examples/vue/useFormatForDisplay-astro/package.json index 66863429e..eddd3e92e 100644 --- a/examples/vue/useFormatForDisplay-astro/package.json +++ b/examples/vue/useFormatForDisplay-astro/package.json @@ -22,7 +22,7 @@ "dependencies": { "@astrojs/node": "^11.1.11", "@astrojs/vue": "^7.1.2", - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "astro": "^7.4.7", "vue": "^3.5.45" }, diff --git a/examples/vue/useFormatForDisplay-nuxt/package.json b/examples/vue/useFormatForDisplay-nuxt/package.json index 9c60dc235..a8fbe00e6 100644 --- a/examples/vue/useFormatForDisplay-nuxt/package.json +++ b/examples/vue/useFormatForDisplay-nuxt/package.json @@ -20,7 +20,7 @@ } }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "nuxt": "^4.6.4", "vue": "^3.5.45" }, diff --git a/examples/vue/useFormatForDisplay-vite-ssr/package.json b/examples/vue/useFormatForDisplay-vite-ssr/package.json index d7ad8b5cd..27e493488 100644 --- a/examples/vue/useFormatForDisplay-vite-ssr/package.json +++ b/examples/vue/useFormatForDisplay-vite-ssr/package.json @@ -11,7 +11,7 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "express": "^5.3.0", "vue": "^3.5.45" }, diff --git a/examples/vue/useFormatForDisplay-vitepress/package.json b/examples/vue/useFormatForDisplay-vitepress/package.json index 318450d34..d04678b1b 100644 --- a/examples/vue/useFormatForDisplay-vitepress/package.json +++ b/examples/vue/useFormatForDisplay-vitepress/package.json @@ -11,7 +11,7 @@ "test:types": "vue-tsc --noEmit" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { diff --git a/examples/vue/useHeldKeys/package.json b/examples/vue/useHeldKeys/package.json index 99d0afe77..fe71b24ac 100644 --- a/examples/vue/useHeldKeys/package.json +++ b/examples/vue/useHeldKeys/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkey-sequences/package.json b/examples/vue/useHotkey-sequences/package.json index 1fa435a62..ecfd00e37 100644 --- a/examples/vue/useHotkey-sequences/package.json +++ b/examples/vue/useHotkey-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkey/package.json b/examples/vue/useHotkey/package.json index 122e8e730..542f1be39 100644 --- a/examples/vue/useHotkey/package.json +++ b/examples/vue/useHotkey/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkeyRecorder-sequences/package.json b/examples/vue/useHotkeyRecorder-sequences/package.json index 64890ebb5..ff41d5a3a 100644 --- a/examples/vue/useHotkeyRecorder-sequences/package.json +++ b/examples/vue/useHotkeyRecorder-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkeyRecorder/package.json b/examples/vue/useHotkeyRecorder/package.json index da914b699..0339733f4 100644 --- a/examples/vue/useHotkeyRecorder/package.json +++ b/examples/vue/useHotkeyRecorder/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkeys-sequences/package.json b/examples/vue/useHotkeys-sequences/package.json index 0589fdbc0..b55266ef2 100644 --- a/examples/vue/useHotkeys-sequences/package.json +++ b/examples/vue/useHotkeys-sequences/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useHotkeys/package.json b/examples/vue/useHotkeys/package.json index 128535567..854d89d88 100644 --- a/examples/vue/useHotkeys/package.json +++ b/examples/vue/useHotkeys/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/examples/vue/useKeyhold/package.json b/examples/vue/useKeyhold/package.json index c15db3c2d..cbd7c7730 100644 --- a/examples/vue/useKeyhold/package.json +++ b/examples/vue/useKeyhold/package.json @@ -11,12 +11,12 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/vue-hotkeys": "^0.25.6", + "@tanstack/vue-hotkeys": "^0.26.0", "vue": "^3.5.45" }, "devDependencies": { "@tanstack/vue-devtools": "^0.2.29", - "@tanstack/vue-hotkeys-devtools": "^0.13.18", + "@tanstack/vue-hotkeys-devtools": "^0.13.19", "@vitejs/plugin-vue": "^6.0.10", "typescript": "6.0.3", "vite": "^8.3.7" diff --git a/packages/alpine-hotkeys/CHANGELOG.md b/packages/alpine-hotkeys/CHANGELOG.md index aff2a8b9f..d7d006eb2 100644 --- a/packages/alpine-hotkeys/CHANGELOG.md +++ b/packages/alpine-hotkeys/CHANGELOG.md @@ -1,5 +1,26 @@ # @tanstack/alpine-hotkeys +## 0.16.0 + +### Minor Changes + +- [#312](https://github.com/TanStack/hotkeys/pull/312) [`d7e198d`](https://github.com/TanStack/hotkeys/commit/d7e198dfa6393746fc2fb3217f408cc2412f439e) - Add the `x-hotkey` directive, installed with `Alpine.plugin(hotkeyDirective)`. Name the hotkey with modifiers and give the callback as the expression: `x-hotkey.mod.s="save()"`, `x-hotkey.escape="close()"`, or `x-hotkey.g.h="goHome()"` for a sequence. The hotkey lives as long as the attribute, so a morph that changes or removes it, as Livewire does on every update, replaces or removes the hotkey. A changed `x-init="$hotkeys.createHotkey(...)"` stays registered until its element is removed. With Alpine's CSP build, name a component method: `x-hotkey.mod.s="save"`. A page that only uses `x-hotkey` doesn't ship the `$hotkeys` owners and readers. + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.15.6 ### Patch Changes diff --git a/packages/alpine-hotkeys/package.json b/packages/alpine-hotkeys/package.json index 57f02ae5b..2ab628edb 100644 --- a/packages/alpine-hotkeys/package.json +++ b/packages/alpine-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/alpine-hotkeys", - "version": "0.15.6", + "version": "0.16.0", "description": "Alpine adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/angular-hotkeys-devtools/CHANGELOG.md b/packages/angular-hotkeys-devtools/CHANGELOG.md index adf02f26c..18d74d0fb 100644 --- a/packages/angular-hotkeys-devtools/CHANGELOG.md +++ b/packages/angular-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/angular-hotkeys-devtools +## 0.5.19 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.5.18 ### Patch Changes diff --git a/packages/angular-hotkeys-devtools/package.json b/packages/angular-hotkeys-devtools/package.json index ba1d33e3e..2b331bbf8 100644 --- a/packages/angular-hotkeys-devtools/package.json +++ b/packages/angular-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-hotkeys-devtools", - "version": "0.5.18", + "version": "0.5.19", "description": "Angular devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/angular-hotkeys/CHANGELOG.md b/packages/angular-hotkeys/CHANGELOG.md index 0998ffa64..6ee57301a 100644 --- a/packages/angular-hotkeys/CHANGELOG.md +++ b/packages/angular-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/angular-hotkeys +## 0.26.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.25.6 ### Patch Changes diff --git a/packages/angular-hotkeys/package.json b/packages/angular-hotkeys/package.json index d829dbe04..d48af4394 100644 --- a/packages/angular-hotkeys/package.json +++ b/packages/angular-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-hotkeys", - "version": "0.25.6", + "version": "0.26.0", "description": "Angular adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ember-hotkeys/CHANGELOG.md b/packages/ember-hotkeys/CHANGELOG.md index fd08b1619..9183c7c8a 100644 --- a/packages/ember-hotkeys/CHANGELOG.md +++ b/packages/ember-hotkeys/CHANGELOG.md @@ -1,5 +1,28 @@ # @tanstack/ember-hotkeys +## 0.15.0 + +### Minor Changes + +- [#312](https://github.com/TanStack/hotkeys/pull/312) [`d7e198d`](https://github.com/TanStack/hotkeys/commit/d7e198dfa6393746fc2fb3217f408cc2412f439e) - Support Ember 4.12 and newer, including the 4.12 and 5.12 LTS lines and ember-source 6.8.0 to 6.8.2, 6.9.0 and 6.10.0. The adapter tracked its state with `@ember/reactive/collections`, which only newer ember-source versions ship. It now uses `@glimmer/tracking`, which every supported version has. + +- [#312](https://github.com/TanStack/hotkeys/pull/312) [`d7e198d`](https://github.com/TanStack/hotkeys/commit/d7e198dfa6393746fc2fb3217f408cc2412f439e) - `createHotkeysScope` defaults no longer override an app hotkey's declared options. The helpers and modifiers from a scope put its defaults below the declaration, as the App Hotkeys guide says: scope defaults, then declared options, then call-site options. Before, a scope default such as `preventDefault: true` replaced `preventDefault: false` from `defineAppHotkeys`. + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.14.6 ### Patch Changes diff --git a/packages/ember-hotkeys/package.json b/packages/ember-hotkeys/package.json index 750157023..4b4ed7adf 100644 --- a/packages/ember-hotkeys/package.json +++ b/packages/ember-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ember-hotkeys", - "version": "0.14.6", + "version": "0.15.0", "description": "Ember adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/hotkeys-devtools/CHANGELOG.md b/packages/hotkeys-devtools/CHANGELOG.md index 069bae067..25cb0c9a9 100644 --- a/packages/hotkeys-devtools/CHANGELOG.md +++ b/packages/hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,18 @@ # @tanstack/hotkeys-devtools +## 1.12.4 + +### Patch Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 1.12.3 ### Patch Changes diff --git a/packages/hotkeys-devtools/package.json b/packages/hotkeys-devtools/package.json index cb4aa3b2c..90b022691 100644 --- a/packages/hotkeys-devtools/package.json +++ b/packages/hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/hotkeys-devtools", - "version": "1.12.3", + "version": "1.12.4", "description": "Devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/hotkeys/CHANGELOG.md b/packages/hotkeys/CHANGELOG.md index 4da186e49..1e60bd9a2 100644 --- a/packages/hotkeys/CHANGELOG.md +++ b/packages/hotkeys/CHANGELOG.md @@ -1,5 +1,25 @@ # @tanstack/hotkeys +## 0.37.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + ## 0.36.0 ### Minor Changes diff --git a/packages/hotkeys/package.json b/packages/hotkeys/package.json index 6de641ac1..6dc821797 100644 --- a/packages/hotkeys/package.json +++ b/packages/hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/hotkeys", - "version": "0.36.0", + "version": "0.37.0", "description": "Type-safe, framework-agnostic keyboard hotkey management for the browser", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/lit-hotkeys/CHANGELOG.md b/packages/lit-hotkeys/CHANGELOG.md index e65e2198f..d1e08f5b5 100644 --- a/packages/lit-hotkeys/CHANGELOG.md +++ b/packages/lit-hotkeys/CHANGELOG.md @@ -1,5 +1,24 @@ # @tanstack/react-hotkeys +## 0.28.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.27.6 ### Patch Changes diff --git a/packages/lit-hotkeys/package.json b/packages/lit-hotkeys/package.json index d6b13680c..4b70c5041 100644 --- a/packages/lit-hotkeys/package.json +++ b/packages/lit-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/lit-hotkeys", - "version": "0.27.6", + "version": "0.28.0", "description": "Lit adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/octane-hotkeys/CHANGELOG.md b/packages/octane-hotkeys/CHANGELOG.md index a7ca6b6a6..6b5a0d317 100644 --- a/packages/octane-hotkeys/CHANGELOG.md +++ b/packages/octane-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/octane-hotkeys +## 0.16.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.15.6 ### Patch Changes diff --git a/packages/octane-hotkeys/package.json b/packages/octane-hotkeys/package.json index 4a7c469f7..9db553ad1 100644 --- a/packages/octane-hotkeys/package.json +++ b/packages/octane-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/octane-hotkeys", - "version": "0.15.6", + "version": "0.16.0", "description": "Octane adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/preact-hotkeys-devtools/CHANGELOG.md b/packages/preact-hotkeys-devtools/CHANGELOG.md index ed8ca467f..0d4889fa2 100644 --- a/packages/preact-hotkeys-devtools/CHANGELOG.md +++ b/packages/preact-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/preact-hotkeys-devtools +## 0.13.19 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.13.18 ### Patch Changes diff --git a/packages/preact-hotkeys-devtools/package.json b/packages/preact-hotkeys-devtools/package.json index 98730ae3a..8c0f9218e 100644 --- a/packages/preact-hotkeys-devtools/package.json +++ b/packages/preact-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/preact-hotkeys-devtools", - "version": "0.13.18", + "version": "0.13.19", "description": "Preact devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/preact-hotkeys/CHANGELOG.md b/packages/preact-hotkeys/CHANGELOG.md index d6e9dc6c2..5176d5ee5 100644 --- a/packages/preact-hotkeys/CHANGELOG.md +++ b/packages/preact-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/preact-hotkeys +## 0.25.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.24.6 ### Patch Changes diff --git a/packages/preact-hotkeys/package.json b/packages/preact-hotkeys/package.json index 2b7ae10b3..81c3e734a 100644 --- a/packages/preact-hotkeys/package.json +++ b/packages/preact-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/preact-hotkeys", - "version": "0.24.6", + "version": "0.25.0", "description": "Preact adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-hotkeys-devtools/CHANGELOG.md b/packages/react-hotkeys-devtools/CHANGELOG.md index d281e6054..a0e68cf9a 100644 --- a/packages/react-hotkeys-devtools/CHANGELOG.md +++ b/packages/react-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/react-hotkeys-devtools +## 0.14.19 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.14.18 ### Patch Changes diff --git a/packages/react-hotkeys-devtools/package.json b/packages/react-hotkeys-devtools/package.json index 15a682cfa..c0c768833 100644 --- a/packages/react-hotkeys-devtools/package.json +++ b/packages/react-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-hotkeys-devtools", - "version": "0.14.18", + "version": "0.14.19", "description": "React devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-hotkeys/CHANGELOG.md b/packages/react-hotkeys/CHANGELOG.md index 72562c874..1b11a5fed 100644 --- a/packages/react-hotkeys/CHANGELOG.md +++ b/packages/react-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/react-hotkeys +## 0.28.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.27.5 ### Patch Changes diff --git a/packages/react-hotkeys/package.json b/packages/react-hotkeys/package.json index 4abf16e37..438163f9c 100644 --- a/packages/react-hotkeys/package.json +++ b/packages/react-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-hotkeys", - "version": "0.27.5", + "version": "0.28.0", "description": "React adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-hotkeys-devtools/CHANGELOG.md b/packages/solid-hotkeys-devtools/CHANGELOG.md index 425416739..1d6bef581 100644 --- a/packages/solid-hotkeys-devtools/CHANGELOG.md +++ b/packages/solid-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/solid-hotkeys-devtools +## 0.14.4 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.14.3 ### Patch Changes diff --git a/packages/solid-hotkeys-devtools/package.json b/packages/solid-hotkeys-devtools/package.json index 7e6d8c6f2..00b950e26 100644 --- a/packages/solid-hotkeys-devtools/package.json +++ b/packages/solid-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-hotkeys-devtools", - "version": "0.14.3", + "version": "0.14.4", "description": "SolidJS devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-hotkeys/CHANGELOG.md b/packages/solid-hotkeys/CHANGELOG.md index 37db4a29a..b39a05714 100644 --- a/packages/solid-hotkeys/CHANGELOG.md +++ b/packages/solid-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/solid-hotkeys +## 0.27.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.26.3 ### Patch Changes diff --git a/packages/solid-hotkeys/package.json b/packages/solid-hotkeys/package.json index b6f012540..47c6c0ddf 100644 --- a/packages/solid-hotkeys/package.json +++ b/packages/solid-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-hotkeys", - "version": "0.26.3", + "version": "0.27.0", "description": "SolidJS adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/svelte-hotkeys-devtools/CHANGELOG.md b/packages/svelte-hotkeys-devtools/CHANGELOG.md index 923e27993..fe773e18b 100644 --- a/packages/svelte-hotkeys-devtools/CHANGELOG.md +++ b/packages/svelte-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/svelte-hotkeys-devtools +## 0.5.19 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.5.18 ### Patch Changes diff --git a/packages/svelte-hotkeys-devtools/package.json b/packages/svelte-hotkeys-devtools/package.json index 49d1cad17..6e6d5e6cf 100644 --- a/packages/svelte-hotkeys-devtools/package.json +++ b/packages/svelte-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-hotkeys-devtools", - "version": "0.5.18", + "version": "0.5.19", "description": "Svelte devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/svelte-hotkeys/CHANGELOG.md b/packages/svelte-hotkeys/CHANGELOG.md index 584343ae4..8d030fde9 100644 --- a/packages/svelte-hotkeys/CHANGELOG.md +++ b/packages/svelte-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/svelte-hotkeys +## 0.26.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.25.6 ### Patch Changes diff --git a/packages/svelte-hotkeys/package.json b/packages/svelte-hotkeys/package.json index 185e1403a..28543b352 100644 --- a/packages/svelte-hotkeys/package.json +++ b/packages/svelte-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-hotkeys", - "version": "0.25.6", + "version": "0.26.0", "description": "Svelte adapter for TanStack Hotkeys", "author": "Kunal Rao", "license": "MIT", diff --git a/packages/vue-hotkeys-devtools/CHANGELOG.md b/packages/vue-hotkeys-devtools/CHANGELOG.md index c58f34d54..8ff2c9399 100644 --- a/packages/vue-hotkeys-devtools/CHANGELOG.md +++ b/packages/vue-hotkeys-devtools/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/vue-hotkeys-devtools +## 0.13.19 + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys-devtools@1.12.4 + ## 0.13.18 ### Patch Changes diff --git a/packages/vue-hotkeys-devtools/package.json b/packages/vue-hotkeys-devtools/package.json index 535617c0d..17919f4d1 100644 --- a/packages/vue-hotkeys-devtools/package.json +++ b/packages/vue-hotkeys-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-hotkeys-devtools", - "version": "0.13.18", + "version": "0.13.19", "description": "Vue devtools for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/vue-hotkeys/CHANGELOG.md b/packages/vue-hotkeys/CHANGELOG.md index 708d36488..201b674c3 100644 --- a/packages/vue-hotkeys/CHANGELOG.md +++ b/packages/vue-hotkeys/CHANGELOG.md @@ -1,5 +1,30 @@ # @tanstack/vue-hotkeys +## 0.26.0 + +### Minor Changes + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `formatForAria` to format hotkeys for the `aria-keyshortcuts` attribute. `formatForAria('Mod+K')` returns `'Meta+K'` on macOS and `'Control+K'` elsewhere. Modifiers and keys use the ARIA specification's names, with `Space` for the space bar, `Plus` for the plus key, and the key at that position for physical bindings. Punctuation in a logical hotkey stays as written, so `'?'` gives `?` rather than `Shift+/`. `formatForAria` returns `undefined` for multi-step sequences, standalone modifiers, empty hotkeys, and physical codes with no key value so the attribute is omitted. + + Each framework adapter exports a formatter that fills in the configured platform and the user's keyboard layout, and returns `undefined` while the hotkey can't fire, so screen readers announce only working shortcuts: + + - `useFormatForAria` (React, Preact, Octane, Vue, Ember) + - `createFormatForAria` (Solid, and on Alpine scopes) + - `getFormatForAria` (Svelte) + - `injectFormatForAria` (Angular) + - `FormatForAriaController` (Lit) + +- [#315](https://github.com/TanStack/hotkeys/pull/315) [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e) - Add `HotkeyManager.suspendCharacterKeys()` and the `suspendCharacterKeys` provider option so apps can let users turn off character key shortcuts for WCAG 2.1.4. + + A character key shortcut is a document-level hotkey whose every step types a character, alone or with `Shift`, such as `'K'`, `'?'`, `'Shift+K'`, `'Space'`, or `['G', 'H']`. While suspended, those hotkeys do not fire and report the status `'suspended'`. Hotkeys with `Control`, `Alt`, or `Meta`, non-character keys such as `Escape` or `F1`, and hotkeys targeted at an element keep working. + + Suspensions are counted like scope activations, and `HotkeyScopesState` now includes `characterKeysSuspended`. Bind the provider option to a user setting with `` (or `provideHotkeys({ suspendCharacterKeys })` in Angular). + +### Patch Changes + +- Updated dependencies [[`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e), [`f9fc17f`](https://github.com/TanStack/hotkeys/commit/f9fc17f0bbb537e70119ec81cec5d3d94294aa8e)]: + - @tanstack/hotkeys@0.37.0 + ## 0.25.6 ### Patch Changes diff --git a/packages/vue-hotkeys/package.json b/packages/vue-hotkeys/package.json index 69dc533c4..dc1ee689c 100644 --- a/packages/vue-hotkeys/package.json +++ b/packages/vue-hotkeys/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-hotkeys", - "version": "0.25.6", + "version": "0.26.0", "description": "Vue adapter for TanStack Hotkeys", "author": "Tanner Linsley", "license": "MIT",