@tanstack/preact-hotkeys-devtools 0.13.15 → 0.13.16
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.js +1 -2
- package/dist/index.js +3 -2
- package/dist/noop.js +14 -0
- package/dist/plugin.js +1 -2
- package/package.json +3 -3
|
@@ -20,6 +20,5 @@ function withPanelDefaults(CorePanel) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
const HotkeysDevtoolsPanel = withPanelDefaults(panels[0]);
|
|
23
|
-
const HotkeysDevtoolsPanelNoOp = withPanelDefaults(panels[1]);
|
|
24
23
|
|
|
25
|
-
export { HotkeysDevtoolsPanel
|
|
24
|
+
export { HotkeysDevtoolsPanel };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1
|
|
2
|
-
import {
|
|
1
|
+
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1 } from "./PreactHotkeysDevtools.js";
|
|
2
|
+
import { HotkeysDevtoolsPanelNoOp, hotkeysDevtoolsNoOpPlugin } from "./noop.js";
|
|
3
|
+
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
4
|
|
|
4
5
|
// src/index.ts
|
|
5
6
|
const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? HotkeysDevtoolsPanelNoOp : HotkeysDevtoolsPanel$1;
|
package/dist/noop.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HOTKEYS_DEVTOOLS_PLUGIN_NAME } from "@tanstack/hotkeys-devtools/production";
|
|
2
|
+
import { Fragment, h } from "preact";
|
|
3
|
+
|
|
4
|
+
// src/noop.ts
|
|
5
|
+
const renderNothing = (_props) => h(Fragment, null);
|
|
6
|
+
const HotkeysDevtoolsPanelNoOp = renderNothing;
|
|
7
|
+
function hotkeysDevtoolsNoOpPlugin() {
|
|
8
|
+
return {
|
|
9
|
+
name: HOTKEYS_DEVTOOLS_PLUGIN_NAME,
|
|
10
|
+
render: () => renderNothing()
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { HotkeysDevtoolsPanelNoOp, hotkeysDevtoolsNoOpPlugin };
|
package/dist/plugin.js
CHANGED
|
@@ -8,6 +8,5 @@ const plugins = createPreactPlugin({
|
|
|
8
8
|
Component: HotkeysDevtoolsPanel
|
|
9
9
|
});
|
|
10
10
|
const hotkeysDevtoolsPlugin = plugins[0];
|
|
11
|
-
const hotkeysDevtoolsNoOpPlugin = plugins[1];
|
|
12
11
|
|
|
13
|
-
export {
|
|
12
|
+
export { hotkeysDevtoolsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-hotkeys-devtools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.16",
|
|
4
4
|
"description": "Preact devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@tanstack/devtools-utils": "^0.8.0",
|
|
50
|
-
"@tanstack/hotkeys-devtools": "1.12.
|
|
50
|
+
"@tanstack/hotkeys-devtools": "1.12.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@preact/preset-vite": "^2.10.6",
|
|
54
54
|
"@tanstack/hotkeys-test-utils": "0.0.0",
|
|
55
55
|
"@tanstack/preact-devtools": "0.10.16",
|
|
56
|
-
"@tanstack/preact-hotkeys": "0.24.
|
|
56
|
+
"@tanstack/preact-hotkeys": "0.24.4",
|
|
57
57
|
"preact": "^11.2.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|