@tanstack/vue-hotkeys-devtools 0.0.1
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/README.md +122 -0
- package/dist/VueHotkeysDevtools.cjs +10 -0
- package/dist/VueHotkeysDevtools.cjs.map +1 -0
- package/dist/VueHotkeysDevtools.d.cts +15 -0
- package/dist/VueHotkeysDevtools.d.ts +15 -0
- package/dist/VueHotkeysDevtools.js +9 -0
- package/dist/VueHotkeysDevtools.js.map +1 -0
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +41 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.cjs +10 -0
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts +36 -0
- package/dist/plugin.d.ts +36 -0
- package/dist/plugin.js +9 -0
- package/dist/plugin.js.map +1 -0
- package/dist/production.cjs +6 -0
- package/dist/production.d.cts +3 -0
- package/dist/production.d.ts +3 -0
- package/dist/production.js +4 -0
- package/package.json +70 -0
- package/src/VueHotkeysDevtools.tsx +16 -0
- package/src/index.ts +14 -0
- package/src/plugin.ts +9 -0
- package/src/production.ts +5 -0
- package/src/vue.d.ts +6 -0
package/README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="./media/header_hotkeys.png" alt="TanStack Hotkeys" />
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<br />
|
|
6
|
+
|
|
7
|
+
<div align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/@tanstack/hotkeys" target="\_parent">
|
|
9
|
+
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/hotkeys.svg" alt="npm downloads" />
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://github.com/TanStack/hotkeys" target="\_parent">
|
|
12
|
+
<img alt="" src="https://img.shields.io/github/stars/TanStack/hotkeys.svg?style=social&label=Star" alt="GitHub stars" />
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://bundlephobia.com/result?p=@tanstack/react-hotkeys@latest" target="\_parent">
|
|
15
|
+
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-hotkeys@latest" alt="Bundle size" />
|
|
16
|
+
</a>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div align="center">
|
|
20
|
+
<a href="#badge">
|
|
21
|
+
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
|
|
22
|
+
</a>
|
|
23
|
+
<a href="#badge">
|
|
24
|
+
<img src="https://img.shields.io/github/v/release/tanstack/hotkeys" alt="Release"/>
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://twitter.com/tan_stack">
|
|
27
|
+
<img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/>
|
|
28
|
+
</a>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div align="center">
|
|
32
|
+
|
|
33
|
+
### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
|
|
34
|
+
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
# TanStack Hotkeys
|
|
38
|
+
|
|
39
|
+
> [!NOTE]
|
|
40
|
+
> TanStack Hotkeys is pre-alpha (prototyping phase). We are actively developing the library and are open to feedback and contributions.
|
|
41
|
+
|
|
42
|
+
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.
|
|
43
|
+
|
|
44
|
+
- Type-safe bindings — template strings (`Mod+Shift+S`, `Escape`) or parsed objects for full control
|
|
45
|
+
- Flexible options — `keydown`/`keyup`, `preventDefault`, `stopPropagation`, conditional enabled, `requireReset`
|
|
46
|
+
- Cross-platform Mod — maps to Cmd on macOS and Ctrl on Windows/Linux
|
|
47
|
+
- Batteries included — validation + matching, sequences (Vim-style), key-state tracking, recorder UI helpers, framework adapters, and devtools
|
|
48
|
+
|
|
49
|
+
### <a href="https://tanstack.com/hotkeys">Read the docs →</a>
|
|
50
|
+
|
|
51
|
+
<br />
|
|
52
|
+
|
|
53
|
+
> [!NOTE]
|
|
54
|
+
> You may know **TanStack Hotkeys** by our adapter names, too!
|
|
55
|
+
>
|
|
56
|
+
> - [**React Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/react/react-hotkeys)
|
|
57
|
+
> - [**Preact Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/preact/preact-hotkeys)
|
|
58
|
+
> - [**Solid Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/solid/reference)
|
|
59
|
+
> - [**Angular Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/angular/reference)
|
|
60
|
+
> - [**Vue Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/vue/reference)
|
|
61
|
+
> - Svelte Hotkeys – needs a contributor!
|
|
62
|
+
|
|
63
|
+
## Get Involved
|
|
64
|
+
|
|
65
|
+
- We welcome issues and pull requests!
|
|
66
|
+
- Participate in [GitHub discussions](https://github.com/TanStack/hotkeys/discussions)
|
|
67
|
+
- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
|
|
68
|
+
- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
|
|
69
|
+
|
|
70
|
+
## Partners
|
|
71
|
+
|
|
72
|
+
<div align="center">
|
|
73
|
+
|
|
74
|
+
<table align="center">
|
|
75
|
+
<tr>
|
|
76
|
+
<td>
|
|
77
|
+
<a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
|
|
78
|
+
<picture>
|
|
79
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" height="40" />
|
|
80
|
+
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" />
|
|
81
|
+
<img src="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" alt="CodeRabbit" />
|
|
82
|
+
</picture>
|
|
83
|
+
</a>
|
|
84
|
+
</td>
|
|
85
|
+
<td>
|
|
86
|
+
<a href="https://www.cloudflare.com?utm_source=tanstack">
|
|
87
|
+
<picture>
|
|
88
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" />
|
|
89
|
+
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" height="60" />
|
|
90
|
+
<img src="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" alt="Cloudflare" />
|
|
91
|
+
</picture>
|
|
92
|
+
</a>
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
</table>
|
|
96
|
+
|
|
97
|
+
<div align="center">
|
|
98
|
+
<img src="media/partner_logo.svg" alt="Keys & you?" height="65">
|
|
99
|
+
<p>
|
|
100
|
+
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.
|
|
101
|
+
</p>
|
|
102
|
+
<a href="mailto:partners@tanstack.com?subject=TanStack Hotkeys Partnership"><b>LET'S CHAT</b></a>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
## Explore the TanStack Ecosystem
|
|
108
|
+
|
|
109
|
+
- <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
|
|
110
|
+
- <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
|
|
111
|
+
- <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
|
|
112
|
+
- <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
|
|
113
|
+
- <a href="https://github.com/tanstack/hotkeys"><b>TanStack Hotkeys</b></a> – Type‑safe keyboard shortcuts
|
|
114
|
+
- <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
|
|
115
|
+
- <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
|
|
116
|
+
- <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
|
|
117
|
+
- <a href="https://github.com/tanstack/start"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
|
|
118
|
+
- <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
|
|
119
|
+
- <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
|
|
120
|
+
- <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
|
|
121
|
+
|
|
122
|
+
… and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
let _tanstack_devtools_utils_vue = require("@tanstack/devtools-utils/vue");
|
|
2
|
+
let _tanstack_hotkeys_devtools = require("@tanstack/hotkeys-devtools");
|
|
3
|
+
|
|
4
|
+
//#region src/VueHotkeysDevtools.tsx
|
|
5
|
+
const [HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp] = (0, _tanstack_devtools_utils_vue.createVuePanel)(_tanstack_hotkeys_devtools.HotkeysDevtoolsCore);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.HotkeysDevtoolsPanel = HotkeysDevtoolsPanel;
|
|
9
|
+
exports.HotkeysDevtoolsPanelNoOp = HotkeysDevtoolsPanelNoOp;
|
|
10
|
+
//# sourceMappingURL=VueHotkeysDevtools.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VueHotkeysDevtools.cjs","names":["HotkeysDevtoolsCore"],"sources":["../src/VueHotkeysDevtools.tsx"],"sourcesContent":["import { createVuePanel } from '@tanstack/devtools-utils/vue'\nimport { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/vue'\n\nexport interface HotkeysDevtoolsVueInit extends DevtoolsPanelProps {}\n\ntype DevtoolsPanelConstructor = new (props: DevtoolsPanelProps) => {\n mount: (el: HTMLElement, theme?: 'dark' | 'light' | 'system') => void\n unmount: () => void\n}\n\nconst [HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp] = createVuePanel(\n HotkeysDevtoolsCore as unknown as DevtoolsPanelConstructor,\n)\n\nexport { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp }\n"],"mappings":";;;;AAWA,MAAM,CAAC,sBAAsB,6EAC3BA,+CACD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/vue";
|
|
2
|
+
import * as vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/VueHotkeysDevtools.d.ts
|
|
5
|
+
interface HotkeysDevtoolsVueInit extends DevtoolsPanelProps {}
|
|
6
|
+
declare const HotkeysDevtoolsPanel: vue.DefineComponent<{
|
|
7
|
+
theme?: DevtoolsPanelProps["theme"];
|
|
8
|
+
devtoolsProps: DevtoolsPanelProps;
|
|
9
|
+
}>, HotkeysDevtoolsPanelNoOp: vue.DefineComponent<{
|
|
10
|
+
theme?: DevtoolsPanelProps["theme"];
|
|
11
|
+
devtoolsProps: DevtoolsPanelProps;
|
|
12
|
+
}>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsVueInit };
|
|
15
|
+
//# sourceMappingURL=VueHotkeysDevtools.d.cts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/vue";
|
|
2
|
+
import * as vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/VueHotkeysDevtools.d.ts
|
|
5
|
+
interface HotkeysDevtoolsVueInit extends DevtoolsPanelProps {}
|
|
6
|
+
declare const HotkeysDevtoolsPanel: vue.DefineComponent<{
|
|
7
|
+
theme?: DevtoolsPanelProps["theme"];
|
|
8
|
+
devtoolsProps: DevtoolsPanelProps;
|
|
9
|
+
}>, HotkeysDevtoolsPanelNoOp: vue.DefineComponent<{
|
|
10
|
+
theme?: DevtoolsPanelProps["theme"];
|
|
11
|
+
devtoolsProps: DevtoolsPanelProps;
|
|
12
|
+
}>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsVueInit };
|
|
15
|
+
//# sourceMappingURL=VueHotkeysDevtools.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createVuePanel } from "@tanstack/devtools-utils/vue";
|
|
2
|
+
import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools";
|
|
3
|
+
|
|
4
|
+
//#region src/VueHotkeysDevtools.tsx
|
|
5
|
+
const [HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp] = createVuePanel(HotkeysDevtoolsCore);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
|
|
9
|
+
//# sourceMappingURL=VueHotkeysDevtools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VueHotkeysDevtools.js","names":[],"sources":["../src/VueHotkeysDevtools.tsx"],"sourcesContent":["import { createVuePanel } from '@tanstack/devtools-utils/vue'\nimport { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/vue'\n\nexport interface HotkeysDevtoolsVueInit extends DevtoolsPanelProps {}\n\ntype DevtoolsPanelConstructor = new (props: DevtoolsPanelProps) => {\n mount: (el: HTMLElement, theme?: 'dark' | 'light' | 'system') => void\n unmount: () => void\n}\n\nconst [HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp] = createVuePanel(\n HotkeysDevtoolsCore as unknown as DevtoolsPanelConstructor,\n)\n\nexport { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp }\n"],"mappings":";;;;AAWA,MAAM,CAAC,sBAAsB,4BAA4B,eACvD,oBACD"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_VueHotkeysDevtools = require('./VueHotkeysDevtools.cjs');
|
|
3
|
+
const require_plugin = require('./plugin.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/index.ts
|
|
6
|
+
const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? require_VueHotkeysDevtools.HotkeysDevtoolsPanelNoOp : require_VueHotkeysDevtools.HotkeysDevtoolsPanel;
|
|
7
|
+
const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== "development" ? require_plugin.hotkeysDevtoolsNoOpPlugin : require_plugin.hotkeysDevtoolsPlugin;
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.HotkeysDevtoolsPanel = HotkeysDevtoolsPanel;
|
|
11
|
+
exports.hotkeysDevtoolsPlugin = hotkeysDevtoolsPlugin;
|
|
12
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import * as Devtools from './VueHotkeysDevtools'\nimport * as plugin from './plugin'\n\nexport const HotkeysDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.HotkeysDevtoolsPanelNoOp\n : Devtools.HotkeysDevtoolsPanel\n\nexport const hotkeysDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.hotkeysDevtoolsNoOpPlugin\n : plugin.hotkeysDevtoolsPlugin\n\nexport type { HotkeysDevtoolsVueInit } from './VueHotkeysDevtools'\n"],"mappings":";;;;;AAGA,MAAa,uBACX,QAAQ,IAAI,aAAa;AAI3B,MAAa,wBACX,QAAQ,IAAI,aAAa"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HotkeysDevtoolsVueInit } from "./VueHotkeysDevtools.cjs";
|
|
2
|
+
import * as _tanstack_devtools_utils_vue0 from "@tanstack/devtools-utils/vue";
|
|
3
|
+
import * as vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare const HotkeysDevtoolsPanel: vue.DefineComponent<{
|
|
7
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
8
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
9
|
+
}>;
|
|
10
|
+
declare const hotkeysDevtoolsPlugin: ((props: {
|
|
11
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
12
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
13
|
+
}) => {
|
|
14
|
+
name: string;
|
|
15
|
+
component: vue.DefineComponent<{
|
|
16
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
17
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
18
|
+
}, {}, unknown>;
|
|
19
|
+
props: {
|
|
20
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
21
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
22
|
+
};
|
|
23
|
+
}) | ((props: {
|
|
24
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
25
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
26
|
+
}) => {
|
|
27
|
+
name: string;
|
|
28
|
+
component: {
|
|
29
|
+
new (): {
|
|
30
|
+
$props: vue.VNodeProps;
|
|
31
|
+
};
|
|
32
|
+
__isFragment: true;
|
|
33
|
+
};
|
|
34
|
+
props: {
|
|
35
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
36
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { HotkeysDevtoolsPanel, type HotkeysDevtoolsVueInit, hotkeysDevtoolsPlugin };
|
|
41
|
+
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HotkeysDevtoolsVueInit } from "./VueHotkeysDevtools.js";
|
|
2
|
+
import * as _tanstack_devtools_utils_vue0 from "@tanstack/devtools-utils/vue";
|
|
3
|
+
import * as vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare const HotkeysDevtoolsPanel: vue.DefineComponent<{
|
|
7
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
8
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
9
|
+
}>;
|
|
10
|
+
declare const hotkeysDevtoolsPlugin: ((props: {
|
|
11
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
12
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
13
|
+
}) => {
|
|
14
|
+
name: string;
|
|
15
|
+
component: vue.DefineComponent<{
|
|
16
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
17
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
18
|
+
}, {}, unknown>;
|
|
19
|
+
props: {
|
|
20
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
21
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
22
|
+
};
|
|
23
|
+
}) | ((props: {
|
|
24
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
25
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
26
|
+
}) => {
|
|
27
|
+
name: string;
|
|
28
|
+
component: {
|
|
29
|
+
new (): {
|
|
30
|
+
$props: vue.VNodeProps;
|
|
31
|
+
};
|
|
32
|
+
__isFragment: true;
|
|
33
|
+
};
|
|
34
|
+
props: {
|
|
35
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
36
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { HotkeysDevtoolsPanel, type HotkeysDevtoolsVueInit, hotkeysDevtoolsPlugin };
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPanelNoOp } from "./VueHotkeysDevtools.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 };
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Devtools.HotkeysDevtoolsPanelNoOp","Devtools.HotkeysDevtoolsPanel","plugin.hotkeysDevtoolsNoOpPlugin","plugin.hotkeysDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["import * as Devtools from './VueHotkeysDevtools'\nimport * as plugin from './plugin'\n\nexport const HotkeysDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.HotkeysDevtoolsPanelNoOp\n : Devtools.HotkeysDevtoolsPanel\n\nexport const hotkeysDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.hotkeysDevtoolsNoOpPlugin\n : plugin.hotkeysDevtoolsPlugin\n\nexport type { HotkeysDevtoolsVueInit } from './VueHotkeysDevtools'\n"],"mappings":";;;;AAGA,MAAa,uBACX,QAAQ,IAAI,aAAa,gBACrBA,2BACAC;AAEN,MAAa,wBACX,QAAQ,IAAI,aAAa,gBACrBC,4BACAC"}
|
package/dist/plugin.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_VueHotkeysDevtools = require('./VueHotkeysDevtools.cjs');
|
|
2
|
+
let _tanstack_devtools_utils_vue = require("@tanstack/devtools-utils/vue");
|
|
3
|
+
|
|
4
|
+
//#region src/plugin.ts
|
|
5
|
+
const [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = (0, _tanstack_devtools_utils_vue.createVuePlugin)("TanStack Hotkeys", require_VueHotkeysDevtools.HotkeysDevtoolsPanel);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.hotkeysDevtoolsNoOpPlugin = hotkeysDevtoolsNoOpPlugin;
|
|
9
|
+
exports.hotkeysDevtoolsPlugin = hotkeysDevtoolsPlugin;
|
|
10
|
+
//# sourceMappingURL=plugin.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs","names":["HotkeysDevtoolsPanel"],"sources":["../src/plugin.ts"],"sourcesContent":["import { createVuePlugin } from '@tanstack/devtools-utils/vue'\nimport { HotkeysDevtoolsPanel } from './VueHotkeysDevtools'\n\nconst [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createVuePlugin(\n 'TanStack Hotkeys',\n HotkeysDevtoolsPanel,\n)\n\nexport { hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin }\n"],"mappings":";;;;AAGA,MAAM,CAAC,uBAAuB,+EAC5B,oBACAA,gDACD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as _tanstack_devtools_utils_vue0 from "@tanstack/devtools-utils/vue";
|
|
2
|
+
import * as vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/plugin.d.ts
|
|
5
|
+
declare const hotkeysDevtoolsPlugin: (props: {
|
|
6
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
7
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
8
|
+
}) => {
|
|
9
|
+
name: string;
|
|
10
|
+
component: vue.DefineComponent<{
|
|
11
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
12
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
13
|
+
}, {}, unknown>;
|
|
14
|
+
props: {
|
|
15
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
16
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
17
|
+
};
|
|
18
|
+
}, hotkeysDevtoolsNoOpPlugin: (props: {
|
|
19
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
20
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
21
|
+
}) => {
|
|
22
|
+
name: string;
|
|
23
|
+
component: {
|
|
24
|
+
new (): {
|
|
25
|
+
$props: vue.VNodeProps;
|
|
26
|
+
};
|
|
27
|
+
__isFragment: true;
|
|
28
|
+
};
|
|
29
|
+
props: {
|
|
30
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
31
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { hotkeysDevtoolsPlugin };
|
|
36
|
+
//# sourceMappingURL=plugin.d.cts.map
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as _tanstack_devtools_utils_vue0 from "@tanstack/devtools-utils/vue";
|
|
2
|
+
import * as vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/plugin.d.ts
|
|
5
|
+
declare const hotkeysDevtoolsPlugin: (props: {
|
|
6
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
7
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
8
|
+
}) => {
|
|
9
|
+
name: string;
|
|
10
|
+
component: vue.DefineComponent<{
|
|
11
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
12
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
13
|
+
}, {}, unknown>;
|
|
14
|
+
props: {
|
|
15
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
16
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
17
|
+
};
|
|
18
|
+
}, hotkeysDevtoolsNoOpPlugin: (props: {
|
|
19
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
20
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
21
|
+
}) => {
|
|
22
|
+
name: string;
|
|
23
|
+
component: {
|
|
24
|
+
new (): {
|
|
25
|
+
$props: vue.VNodeProps;
|
|
26
|
+
};
|
|
27
|
+
__isFragment: true;
|
|
28
|
+
};
|
|
29
|
+
props: {
|
|
30
|
+
theme?: _tanstack_devtools_utils_vue0.DevtoolsPanelProps["theme"];
|
|
31
|
+
devtoolsProps: _tanstack_devtools_utils_vue0.DevtoolsPanelProps;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { hotkeysDevtoolsPlugin };
|
|
36
|
+
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotkeysDevtoolsPanel } from "./VueHotkeysDevtools.js";
|
|
2
|
+
import { createVuePlugin } from "@tanstack/devtools-utils/vue";
|
|
3
|
+
|
|
4
|
+
//#region src/plugin.ts
|
|
5
|
+
const [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createVuePlugin("TanStack Hotkeys", HotkeysDevtoolsPanel);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
9
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["import { createVuePlugin } from '@tanstack/devtools-utils/vue'\nimport { HotkeysDevtoolsPanel } from './VueHotkeysDevtools'\n\nconst [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createVuePlugin(\n 'TanStack Hotkeys',\n HotkeysDevtoolsPanel,\n)\n\nexport { hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin }\n"],"mappings":";;;;AAGA,MAAM,CAAC,uBAAuB,6BAA6B,gBACzD,oBACA,qBACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_VueHotkeysDevtools = require('./VueHotkeysDevtools.cjs');
|
|
3
|
+
const require_plugin = require('./plugin.cjs');
|
|
4
|
+
|
|
5
|
+
exports.HotkeysDevtoolsPanel = require_VueHotkeysDevtools.HotkeysDevtoolsPanel;
|
|
6
|
+
exports.hotkeysDevtoolsPlugin = require_plugin.hotkeysDevtoolsPlugin;
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tanstack/vue-hotkeys-devtools",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Vue 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/vue-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
|
+
"vue",
|
|
19
|
+
"vuejs",
|
|
20
|
+
"tanstack",
|
|
21
|
+
"keys",
|
|
22
|
+
"devtools",
|
|
23
|
+
"hotkeys",
|
|
24
|
+
"keyboard"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"clean": "premove ./build ./dist",
|
|
28
|
+
"lint": "eslint ./src",
|
|
29
|
+
"lint:fix": "eslint ./src --fix",
|
|
30
|
+
"test:eslint": "eslint ./src",
|
|
31
|
+
"test:lib": "vitest --passWithNoTests",
|
|
32
|
+
"test:lib:dev": "pnpm test:lib --watch",
|
|
33
|
+
"test:types": "tsc",
|
|
34
|
+
"build": "tsdown"
|
|
35
|
+
},
|
|
36
|
+
"type": "module",
|
|
37
|
+
"types": "./dist/index.d.cts",
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"require": "./dist/index.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./production": {
|
|
44
|
+
"import": "./dist/production.js",
|
|
45
|
+
"require": "./dist/production.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=18"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist/",
|
|
55
|
+
"src"
|
|
56
|
+
],
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"vue": ">=3.0.0"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@tanstack/devtools-utils": "^0.3.2",
|
|
62
|
+
"@tanstack/hotkeys-devtools": "workspace:*"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
66
|
+
"vue": "^3.5.29"
|
|
67
|
+
},
|
|
68
|
+
"main": "./dist/index.cjs",
|
|
69
|
+
"module": "./dist/index.js"
|
|
70
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createVuePanel } from '@tanstack/devtools-utils/vue'
|
|
2
|
+
import { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'
|
|
3
|
+
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/vue'
|
|
4
|
+
|
|
5
|
+
export interface HotkeysDevtoolsVueInit extends DevtoolsPanelProps {}
|
|
6
|
+
|
|
7
|
+
type DevtoolsPanelConstructor = new (props: DevtoolsPanelProps) => {
|
|
8
|
+
mount: (el: HTMLElement, theme?: 'dark' | 'light' | 'system') => void
|
|
9
|
+
unmount: () => void
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const [HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp] = createVuePanel(
|
|
13
|
+
HotkeysDevtoolsCore as unknown as DevtoolsPanelConstructor,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp }
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Devtools from './VueHotkeysDevtools'
|
|
2
|
+
import * as plugin from './plugin'
|
|
3
|
+
|
|
4
|
+
export const HotkeysDevtoolsPanel =
|
|
5
|
+
process.env.NODE_ENV !== 'development'
|
|
6
|
+
? Devtools.HotkeysDevtoolsPanelNoOp
|
|
7
|
+
: Devtools.HotkeysDevtoolsPanel
|
|
8
|
+
|
|
9
|
+
export const hotkeysDevtoolsPlugin =
|
|
10
|
+
process.env.NODE_ENV !== 'development'
|
|
11
|
+
? plugin.hotkeysDevtoolsNoOpPlugin
|
|
12
|
+
: plugin.hotkeysDevtoolsPlugin
|
|
13
|
+
|
|
14
|
+
export type { HotkeysDevtoolsVueInit } from './VueHotkeysDevtools'
|
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createVuePlugin } from '@tanstack/devtools-utils/vue'
|
|
2
|
+
import { HotkeysDevtoolsPanel } from './VueHotkeysDevtools'
|
|
3
|
+
|
|
4
|
+
const [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createVuePlugin(
|
|
5
|
+
'TanStack Hotkeys',
|
|
6
|
+
HotkeysDevtoolsPanel,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
export { hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin }
|