@tanstack/vue-hotkeys-devtools 0.13.14 → 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/README.md CHANGED
@@ -91,15 +91,6 @@ Type-safe keyboard shortcuts for the web. Template-string bindings, parsed objec
91
91
 
92
92
  <table align="center">
93
93
  <tr>
94
- <td>
95
- <a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
96
- <picture>
97
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/TanStack/tanstack.com/main/src/images/coderabbit-dark.svg" height="40" />
98
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/TanStack/tanstack.com/main/src/images/coderabbit-light.svg" height="40" />
99
- <img src="https://raw.githubusercontent.com/TanStack/tanstack.com/main/src/images/coderabbit-light.svg" height="40" alt="CodeRabbit" />
100
- </picture>
101
- </a>
102
- </td>
103
94
  <td>
104
95
  <a href="https://www.cloudflare.com?utm_source=tanstack">
105
96
  <picture>
@@ -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, HotkeysDevtoolsPanelNoOp };
56
+ export { HotkeysDevtoolsPanel };
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPanelNoOp } from "./VueHotkeysDevtools.js";
2
- import { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
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, HotkeysDevtoolsPanelNoOp } from "./VueHotkeysDevtools.js";
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 { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
14
+ export { hotkeysDevtoolsPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/vue-hotkeys-devtools",
3
- "version": "0.13.14",
3
+ "version": "0.13.16",
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.11.4"
50
+ "@tanstack/hotkeys-devtools": "1.12.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@tanstack/hotkeys-test-utils": "0.0.0",
54
- "@tanstack/vue-hotkeys": "0.25.3",
54
+ "@tanstack/vue-hotkeys": "0.25.4",
55
55
  "@vitejs/plugin-vue": "^6.0.10",
56
56
  "vue": "^3.5.45"
57
57
  },