@tanstack/preact-hotkeys-devtools 0.11.0 → 0.11.2
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/PreactHotkeysDevtools.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugin.d.ts +11 -3
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from "preact";
|
|
2
|
-
import {
|
|
2
|
+
import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
|
|
3
3
|
declare namespace PreactHotkeysDevtools_d_exports {
|
|
4
4
|
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp, HotkeysDevtoolsPreactInit };
|
|
5
5
|
}
|
|
6
|
-
export interface HotkeysDevtoolsPreactInit extends Partial<
|
|
6
|
+
export interface HotkeysDevtoolsPreactInit extends Partial<HotkeysDevtoolsPanelProps> {}
|
|
7
7
|
type HotkeysDevtoolsPanelComponent = (props?: HotkeysDevtoolsPreactInit) => JSX.Element;
|
|
8
8
|
export declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
|
|
9
9
|
export declare const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPreactInit, PreactHotkeysDevtools_d_exports } from "./PreactHotkeysDevtools.js";
|
|
2
|
-
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
|
|
2
|
+
import { HotkeysDevtoolsPreactPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
|
|
3
3
|
//#region src/index.d.ts
|
|
4
4
|
export declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
|
|
5
5
|
export declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
|
|
6
6
|
//#endregion
|
|
7
|
-
export type { HotkeysDevtoolsPreactInit };
|
|
7
|
+
export type { HotkeysDevtoolsPreactInit, HotkeysDevtoolsPreactPlugin };
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSX } from "preact";
|
|
2
|
+
import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
|
|
2
3
|
declare namespace plugin_d_exports {
|
|
3
|
-
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
4
|
+
export { HotkeysDevtoolsPreactPlugin, hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
+
/** A plugin for `TanStackDevtools` from `@tanstack/preact-devtools`. */
|
|
7
|
+
export interface HotkeysDevtoolsPreactPlugin {
|
|
8
|
+
name: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
render: (el: HTMLElement, props: HotkeysDevtoolsPanelProps) => JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
type HotkeysDevtoolsPluginFactory = () => HotkeysDevtoolsPreactPlugin;
|
|
6
14
|
export declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
|
|
7
15
|
export declare const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory;
|
|
8
16
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-hotkeys-devtools",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Preact devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"preact": ">=10.
|
|
39
|
+
"preact": ">=10.5.2"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@tanstack/devtools-utils": "^0.7.0",
|
|
43
|
-
"@tanstack/hotkeys-devtools": "1.
|
|
43
|
+
"@tanstack/hotkeys-devtools": "1.6.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@preact/preset-vite": "^2.10.6",
|