@tanstack/vue-hotkeys-devtools 0.13.15 → 0.13.17
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/VueHotkeysDevtools.js +1 -3
- package/dist/index.js +3 -2
- package/dist/noop.js +28 -0
- package/dist/plugin.js +2 -9
- package/package.json +3 -3
|
@@ -24,7 +24,6 @@ function createPanel(Core) {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(props) {
|
|
27
|
-
if (!Core) return () => null;
|
|
28
27
|
const el = ref(null);
|
|
29
28
|
let devtools = null;
|
|
30
29
|
const mount = () => {
|
|
@@ -53,6 +52,5 @@ function createPanel(Core) {
|
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
54
|
const HotkeysDevtoolsPanel = createPanel(HotkeysDevtoolsCore);
|
|
56
|
-
const HotkeysDevtoolsPanelNoOp = createPanel(null);
|
|
57
55
|
|
|
58
|
-
export { HotkeysDevtoolsPanel
|
|
56
|
+
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 "./VueHotkeysDevtools.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,28 @@
|
|
|
1
|
+
import { HOTKEYS_DEVTOOLS_PLUGIN_NAME } from "@tanstack/hotkeys-devtools/production";
|
|
2
|
+
import { defineComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
// src/noop.ts
|
|
5
|
+
const HotkeysDevtoolsPanelNoOp = defineComponent({
|
|
6
|
+
name: "HotkeysDevtoolsPanel",
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: {
|
|
9
|
+
theme: {
|
|
10
|
+
type: [String, Object],
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
devtoolsOpen: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: void 0
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup: () => () => null
|
|
19
|
+
});
|
|
20
|
+
function hotkeysDevtoolsNoOpPlugin(props) {
|
|
21
|
+
return {
|
|
22
|
+
name: HOTKEYS_DEVTOOLS_PLUGIN_NAME,
|
|
23
|
+
component: HotkeysDevtoolsPanelNoOp,
|
|
24
|
+
props
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { HotkeysDevtoolsPanelNoOp, hotkeysDevtoolsNoOpPlugin };
|
package/dist/plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HotkeysDevtoolsPanel
|
|
1
|
+
import { HotkeysDevtoolsPanel } from "./VueHotkeysDevtools.js";
|
|
2
2
|
import { HOTKEYS_DEVTOOLS_PLUGIN_NAME } from "@tanstack/hotkeys-devtools/production";
|
|
3
3
|
|
|
4
4
|
// src/plugin.ts
|
|
@@ -10,12 +10,5 @@ function hotkeysDevtoolsPlugin(props) {
|
|
|
10
10
|
props
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function hotkeysDevtoolsNoOpPlugin(props) {
|
|
14
|
-
return {
|
|
15
|
-
name,
|
|
16
|
-
component: HotkeysDevtoolsPanelNoOp,
|
|
17
|
-
props
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
13
|
|
|
21
|
-
export {
|
|
14
|
+
export { hotkeysDevtoolsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-hotkeys-devtools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.17",
|
|
4
4
|
"description": "Vue devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@tanstack/hotkeys-devtools": "1.12.
|
|
50
|
+
"@tanstack/hotkeys-devtools": "1.12.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@tanstack/hotkeys-test-utils": "0.0.0",
|
|
54
|
-
"@tanstack/vue-hotkeys": "0.25.
|
|
54
|
+
"@tanstack/vue-hotkeys": "0.25.5",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
56
56
|
"vue": "^3.5.45"
|
|
57
57
|
},
|