@tanstack/hotkeys-devtools 1.6.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/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ClassType } from "@tanstack/devtools-utils/solid";
1
+ import { HotkeysDevtoolsCoreClass } from "./types.js";
2
2
  //#region src/core.d.ts
3
3
  export interface HotkeysDevtoolsInit {}
4
- export declare const HotkeysDevtoolsCore: ClassType;
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: ClassType;
4
+ export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
5
5
  //#endregion
6
- export type { HotkeysDevtoolsInit };
6
+ export type { HotkeysDevtoolsCoreClass, HotkeysDevtoolsInit, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme };
@@ -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 };
@@ -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.6.0",
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.18.0"
39
+ "@tanstack/hotkeys": "0.19.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@tanstack/devtools-ui": "^0.7.1",