@tanstack/angular-hotkeys-devtools 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tanner Linsley
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,140 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
+ <picture>
3
+ <source
4
+ media="(prefers-color-scheme: dark)"
5
+ srcset="https://tanstack.com/api/readme/hotkeys.png?theme=dark"
6
+ />
7
+ <source
8
+ media="(prefers-color-scheme: light)"
9
+ srcset="https://tanstack.com/api/readme/hotkeys.png"
10
+ />
11
+ <img
12
+ src="https://tanstack.com/api/readme/hotkeys.png"
13
+ alt="TanStack Hotkeys"
14
+ width="900"
15
+ />
16
+ </picture>
17
+ </div>
2
18
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
19
+ <br />
20
+
21
+ <div align="center">
22
+ <a href="https://www.npmjs.com/package/@tanstack/hotkeys" target="\_parent">
23
+ <img alt="" src="https://img.shields.io/npm/dm/@tanstack/hotkeys.svg" alt="npm downloads" />
24
+ </a>
25
+ <a href="https://github.com/TanStack/hotkeys" target="\_parent">
26
+ <img alt="" src="https://img.shields.io/github/stars/TanStack/hotkeys.svg?style=social&label=Star" alt="GitHub stars" />
27
+ </a>
28
+ <a href="https://bundlephobia.com/result?p=@tanstack/react-hotkeys@latest" target="\_parent">
29
+ <img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-hotkeys@latest" alt="Bundle size" />
30
+ </a>
31
+ </div>
32
+
33
+ <div align="center">
34
+ <a href="#badge">
35
+ <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
36
+ </a>
37
+ <a href="#badge">
38
+ <img src="https://img.shields.io/github/v/release/tanstack/hotkeys" alt="Release"/>
39
+ </a>
40
+ <a href="https://twitter.com/tan_stack">
41
+ <img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/>
42
+ </a>
43
+ </div>
44
+
45
+ <div align="center">
46
+
47
+ ### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
48
+
49
+ </div>
50
+
51
+ # TanStack Hotkeys
52
+
53
+ > [!NOTE]
54
+ > TanStack Hotkeys is alpha. We are actively developing the library and are open to feedback and contributions.
55
+
56
+ Type-safe keyboard shortcuts for the web. Template-string bindings, parsed objects, a cross-platform `Mod` key, a singleton Hotkey Manager, and utilities for cheatsheet UIs—built to stay SSR-friendly.
57
+
58
+ - Type-safe bindings — template strings (`Mod+Shift+S`, `Escape`) or parsed objects for full control
59
+ - Flexible options — `keydown`/`keyup`, `preventDefault`, `stopPropagation`, conditional enabled, `requireReset`
60
+ - Cross-platform Mod — maps to Cmd on macOS and Ctrl on Windows/Linux
61
+ - Batteries included — validation + matching, sequences (Vim-style), key-state tracking, recorder UI helpers, framework adapters, and devtools
62
+
63
+ ### <a href="https://tanstack.com/hotkeys">Read the docs →</a>
64
+
65
+ <br />
66
+
67
+ > [!NOTE]
68
+ > You may know **TanStack Hotkeys** by our adapter names, too!
69
+ >
70
+ > - [**Alpine Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/alpine/quick-start)
71
+ > - [**Ember Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/ember/quick-start)
72
+ > - [**Octane Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/octane/quick-start)
73
+ > - [**React Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/react/react-hotkeys)
74
+ > - [**Preact Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/preact/preact-hotkeys)
75
+ > - [**Solid Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/solid/reference)
76
+ > - [**Angular Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/angular/reference)
77
+ > - [**Vue Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/vue/reference)
78
+ > - [**Lit Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/lit/reference)
79
+ > - [**Svelte Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/svelte/reference)
80
+
81
+ ## Get Involved
82
+
83
+ - We welcome issues and pull requests!
84
+ - Participate in [GitHub discussions](https://github.com/TanStack/hotkeys/discussions)
85
+ - Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
86
+ - See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
87
+
88
+ ## Partners
89
+
90
+ <div align="center">
91
+
92
+ <table align="center">
93
+ <tr>
94
+ <td>
95
+ <a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
96
+ <picture>
97
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" height="40" />
98
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" />
99
+ <img src="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" alt="CodeRabbit" />
100
+ </picture>
101
+ </a>
102
+ </td>
103
+ <td>
104
+ <a href="https://www.cloudflare.com?utm_source=tanstack">
105
+ <picture>
106
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" />
107
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" height="60" />
108
+ <img src="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" alt="Cloudflare" />
109
+ </picture>
110
+ </a>
111
+ </td>
112
+ </tr>
113
+ </table>
114
+
115
+ <div align="center">
116
+ <img src="media/partner_logo.svg" alt="Keys & you?" height="65">
117
+ <p>
118
+ We're looking for TanStack Hotkeys Partners to join our mission! Partner with us to push the boundaries of TanStack Hotkeys and build amazing things together.
119
+ </p>
120
+ <a href="mailto:partners@tanstack.com?subject=TanStack Hotkeys Partnership"><b>LET'S CHAT</b></a>
121
+ </div>
122
+
123
+ </div>
124
+
125
+ ## Explore the TanStack Ecosystem
126
+
127
+ - <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
128
+ - <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
129
+ - <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
130
+ - <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
131
+ - <a href="https://github.com/tanstack/hotkeys"><b>TanStack Hotkeys</b></a> – Type‑safe keyboard shortcuts
132
+ - <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
133
+ - <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
134
+ - <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
135
+ - <a href="https://github.com/tanstack/start"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
136
+ - <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
137
+ - <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
138
+ - <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
139
+
140
+ … and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
@@ -0,0 +1,9 @@
1
+ import { DevtoolsPanelProps } from "@tanstack/devtools-utils/angular";
2
+ declare namespace AngularHotkeysDevtools_d_exports {
3
+ export { HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
4
+ }
5
+ export interface HotkeysDevtoolsAngularInit extends Partial<DevtoolsPanelProps> {}
6
+ declare const HotkeysDevtoolsPanelNoOp: () => null;
7
+ export declare const HotkeysDevtoolsPanel: () => (inputs: () => HotkeysDevtoolsAngularInit, host: HTMLElement) => () => void;
8
+ //#endregion
9
+ export { AngularHotkeysDevtools_d_exports, HotkeysDevtoolsPanelNoOp };
@@ -0,0 +1,19 @@
1
+ import { createAngularPanel } from "@tanstack/devtools-utils/angular";
2
+ import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools/production";
3
+
4
+ //#region src/AngularHotkeysDevtools.ts
5
+ const [createPanel, HotkeysDevtoolsPanelNoOp] = createAngularPanel(HotkeysDevtoolsCore);
6
+ const HotkeysDevtoolsPanel = () => {
7
+ const render = createPanel();
8
+ return (inputs, host) => render(() => {
9
+ const props = inputs();
10
+ return {
11
+ ...props,
12
+ theme: props.theme ?? "dark",
13
+ devtoolsOpen: props.devtoolsOpen ?? true
14
+ };
15
+ }, host);
16
+ };
17
+
18
+ //#endregion
19
+ export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
@@ -0,0 +1,18 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) {
6
+ __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ }
11
+ if (!no_symbols) {
12
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ }
14
+ return target;
15
+ };
16
+
17
+ //#endregion
18
+ export { __exportAll };
@@ -0,0 +1,17 @@
1
+ import { AngularHotkeysDevtools_d_exports, HotkeysDevtoolsAngularInit } from "./AngularHotkeysDevtools.js";
2
+ //#region src/index.d.ts
3
+ export declare const HotkeysDevtoolsPanel: (() => null) | (() => (inputs: () => HotkeysDevtoolsAngularInit, host: HTMLElement) => () => void);
4
+ export declare const hotkeysDevtoolsPlugin: (() => {
5
+ render: null;
6
+ name: string;
7
+ id?: string;
8
+ defaultOpen?: boolean;
9
+ }) | ((inputs?: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined) => {
10
+ render: import("@tanstack/devtools-utils/angular").TanStackDevtoolsAngularPluginRender<import("@tanstack/devtools-utils/angular").DevtoolsPluginProps>;
11
+ inputs: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined;
12
+ name: string;
13
+ id?: string;
14
+ defaultOpen?: boolean;
15
+ });
16
+ //#endregion
17
+ export type { HotkeysDevtoolsAngularInit };
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPanelNoOp } from "./AngularHotkeysDevtools.js";
2
+ import { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
3
+
4
+ //#region src/index.ts
5
+ const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? HotkeysDevtoolsPanelNoOp : HotkeysDevtoolsPanel$1;
6
+ const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== "development" ? hotkeysDevtoolsNoOpPlugin : hotkeysDevtoolsPlugin$1;
7
+
8
+ //#endregion
9
+ export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
@@ -0,0 +1,15 @@
1
+ //#region src/plugin.d.ts
2
+ declare const hotkeysDevtoolsPlugin: (inputs?: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined) => {
3
+ render: import("@tanstack/devtools-utils/angular").TanStackDevtoolsAngularPluginRender<import("@tanstack/devtools-utils/angular").DevtoolsPluginProps>;
4
+ inputs: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined;
5
+ name: string;
6
+ id?: string;
7
+ defaultOpen?: boolean;
8
+ }, hotkeysDevtoolsNoOpPlugin: () => {
9
+ render: null;
10
+ name: string;
11
+ id?: string;
12
+ defaultOpen?: boolean;
13
+ };
14
+ //#endregion
15
+ export { hotkeysDevtoolsPlugin };
package/dist/plugin.js ADDED
@@ -0,0 +1,11 @@
1
+ import { HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
2
+ import { createAngularPlugin } from "@tanstack/devtools-utils/angular";
3
+
4
+ //#region src/plugin.ts
5
+ const [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createAngularPlugin({
6
+ name: "TanStack Hotkeys",
7
+ render: HotkeysDevtoolsPanel
8
+ });
9
+
10
+ //#endregion
11
+ export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
@@ -0,0 +1,3 @@
1
+ import { HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
2
+ import { hotkeysDevtoolsPlugin } from "./plugin.js";
3
+ export { type HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
@@ -0,0 +1,4 @@
1
+ import { HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
2
+ import { hotkeysDevtoolsPlugin } from "./plugin.js";
3
+
4
+ export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@tanstack/angular-hotkeys-devtools",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "Angular devtools for TanStack Hotkeys",
5
+ "author": "Tanner Linsley",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/TanStack/hotkeys.git",
10
+ "directory": "packages/angular-hotkeys-devtools"
11
+ },
12
+ "homepage": "https://tanstack.com/hotkeys",
13
+ "funding": {
14
+ "type": "github",
15
+ "url": "https://github.com/sponsors/tannerlinsley"
16
+ },
17
+ "keywords": [
18
+ "angular",
19
+ "tanstack",
20
+ "keys",
21
+ "devtools",
22
+ "hotkeys",
23
+ "keyboard"
24
+ ],
25
+ "type": "module",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": "./dist/index.js",
29
+ "./production": "./dist/production.js",
30
+ "./package.json": "./package.json"
31
+ },
32
+ "sideEffects": false,
33
+ "engines": {
34
+ "node": ">=20"
35
+ },
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "peerDependencies": {
40
+ "@angular/core": ">=21.0.0"
41
+ },
42
+ "dependencies": {
43
+ "@tanstack/devtools-utils": "^0.7.0",
44
+ "@tanstack/hotkeys-devtools": "1.2.0"
45
+ },
46
+ "devDependencies": {
47
+ "@angular/core": "^22.2.1"
48
+ },
49
+ "scripts": {
50
+ "clean": "premove ./build ./dist",
51
+ "lint": "eslint ./src",
52
+ "lint:fix": "eslint ./src --fix",
53
+ "test:eslint": "eslint ./src",
54
+ "test:lib": "vitest --passWithNoTests",
55
+ "test:lib:dev": "pnpm test:lib --watch",
56
+ "test:types": "tsc",
57
+ "build": "tsdown",
58
+ "test:build": "publint --strict && node ../../scripts/verify-package.ts"
59
+ }
6
60
  }