@tanstack/hotkeys-devtools 1.5.0 → 1.6.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/dist/components/DetailsPanel.js +8 -2
- package/dist/core.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/production.d.ts +2 -1
- package/dist/types.d.ts +21 -0
- package/package.json +2 -2
|
@@ -194,7 +194,10 @@ function HotkeyDetails(props) {
|
|
|
194
194
|
insert(_el$41, () => reg().options.scope ?? "global", _el$42);
|
|
195
195
|
insert(_el$41, () => getScopeStatus(reg().options.scope ?? "global", state.scopes()), _el$44);
|
|
196
196
|
insert(_el$47, () => reg().options.eventType ?? "keydown");
|
|
197
|
-
insert(_el$50, () =>
|
|
197
|
+
insert(_el$50, (() => {
|
|
198
|
+
var _c$ = memo(() => reg().options.preventDefault === "always");
|
|
199
|
+
return () => _c$() ? "always" : String(!!reg().options.preventDefault);
|
|
200
|
+
})());
|
|
198
201
|
insert(_el$53, () => String(!!reg().options.stopPropagation));
|
|
199
202
|
insert(_el$56, () => String(reg().options.ignoreInputs ?? "auto"));
|
|
200
203
|
insert(_el$59, () => String(!!reg().options.requireReset));
|
|
@@ -572,7 +575,10 @@ function SequenceDetails(props) {
|
|
|
572
575
|
insert(_el$136, () => getScopeStatus(liveReg().options.scope ?? "global", props.state.scopes()), _el$139);
|
|
573
576
|
insert(_el$142, () => liveReg().options.eventType ?? "keydown");
|
|
574
577
|
insert(_el$145, () => liveReg().options.timeout ?? 1e3, _el$146);
|
|
575
|
-
insert(_el$149, () =>
|
|
578
|
+
insert(_el$149, (() => {
|
|
579
|
+
var _c$2 = memo(() => liveReg().options.preventDefault === "always");
|
|
580
|
+
return () => _c$2() ? "always" : String(!!liveReg().options.preventDefault);
|
|
581
|
+
})());
|
|
576
582
|
insert(_el$152, () => String(!!liveReg().options.stopPropagation));
|
|
577
583
|
insert(_el$155, () => String(liveReg().options.ignoreInputs ?? "auto"));
|
|
578
584
|
insert(_el$158, conflictBehavior);
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HotkeysDevtoolsCoreClass } from "./types.js";
|
|
2
2
|
//#region src/core.d.ts
|
|
3
3
|
export interface HotkeysDevtoolsInit {}
|
|
4
|
-
export declare const HotkeysDevtoolsCore:
|
|
4
|
+
export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
|
|
5
5
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HotkeysDevtoolsCoreClass, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme } from "./types.js";
|
|
1
2
|
import { HotkeysDevtoolsInit } from "./core.js";
|
|
2
|
-
import { ClassType } from "@tanstack/devtools-utils/solid";
|
|
3
3
|
//#region src/index.d.ts
|
|
4
|
-
export declare const HotkeysDevtoolsCore:
|
|
4
|
+
export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
|
|
5
5
|
//#endregion
|
|
6
|
-
export type { HotkeysDevtoolsInit };
|
|
6
|
+
export type { HotkeysDevtoolsCoreClass, HotkeysDevtoolsInit, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme };
|
package/dist/production.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { HotkeysDevtoolsCoreClass, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme } from "./types.js";
|
|
1
2
|
import { HotkeysDevtoolsCore, HotkeysDevtoolsInit } from "./core.js";
|
|
2
|
-
export { HotkeysDevtoolsCore, type HotkeysDevtoolsInit };
|
|
3
|
+
export { HotkeysDevtoolsCore, type HotkeysDevtoolsCoreClass, type HotkeysDevtoolsInit, type HotkeysDevtoolsPanelProps, type HotkeysDevtoolsTheme };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
/** The devtools color theme. */
|
|
3
|
+
export type HotkeysDevtoolsTheme = 'light' | 'dark';
|
|
4
|
+
/**
|
|
5
|
+
* Props a devtools host passes to the Hotkeys panel.
|
|
6
|
+
*
|
|
7
|
+
* These match `TanStackDevtoolsPluginProps` from `@tanstack/devtools`. They
|
|
8
|
+
* are declared here because the `@tanstack/devtools-utils` types import
|
|
9
|
+
* `@tanstack/devtools` without depending on it, so published types that use
|
|
10
|
+
* them fail to resolve.
|
|
11
|
+
*/
|
|
12
|
+
export interface HotkeysDevtoolsPanelProps {
|
|
13
|
+
theme: HotkeysDevtoolsTheme;
|
|
14
|
+
devtoolsOpen: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** The class each framework panel creates and mounts the devtools with. */
|
|
17
|
+
export type HotkeysDevtoolsCoreClass = new () => {
|
|
18
|
+
mount: (el: HTMLElement, props: HotkeysDevtoolsPanelProps) => Promise<void>;
|
|
19
|
+
unmount: () => void;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/hotkeys-devtools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tanstack/hotkeys": "0.
|
|
39
|
+
"@tanstack/hotkeys": "0.19.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@tanstack/devtools-ui": "^0.7.1",
|