@tanstack/svelte-hotkeys-devtools 0.5.9 → 0.5.10

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.
@@ -1,16 +1,16 @@
1
1
  import { createSveltePanel } from '@tanstack/devtools-utils/svelte';
2
- import { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools/production';
2
+ import { HOTKEYS_DEVTOOLS_DEFAULT_PROPS, HotkeysDevtoolsCore, } from '@tanstack/hotkeys-devtools/production';
3
3
  const panels = createSveltePanel(HotkeysDevtoolsCore);
4
- function withDefaults(Panel) {
4
+ function withPanelDefaults(Panel) {
5
5
  return (internals, props) => Panel(internals, {
6
6
  get theme() {
7
- return props.theme ?? 'dark';
7
+ return props.theme ?? HOTKEYS_DEVTOOLS_DEFAULT_PROPS.theme;
8
8
  },
9
9
  get devtoolsOpen() {
10
- return props.devtoolsOpen ?? true;
10
+ return props.devtoolsOpen ?? HOTKEYS_DEVTOOLS_DEFAULT_PROPS.devtoolsOpen;
11
11
  },
12
12
  });
13
13
  }
14
14
  // Annotated so the emitted types keep Svelte's default `Component` bindings.
15
- export const HotkeysDevtoolsPanel = withDefaults(panels[0]);
16
- export const HotkeysDevtoolsPanelNoOp = withDefaults(panels[1]);
15
+ export const HotkeysDevtoolsPanel = withPanelDefaults(panels[0]);
16
+ export const HotkeysDevtoolsPanelNoOp = withPanelDefaults(panels[1]);
package/dist/plugin.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { createSveltePlugin } from '@tanstack/devtools-utils/svelte';
2
+ import { HOTKEYS_DEVTOOLS_PLUGIN_NAME } from '@tanstack/hotkeys-devtools/production';
2
3
  import { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools.js';
3
4
  const plugins = createSveltePlugin({
4
- name: 'TanStack Hotkeys',
5
+ name: HOTKEYS_DEVTOOLS_PLUGIN_NAME,
5
6
  Component: HotkeysDevtoolsPanel,
6
7
  });
7
8
  export const hotkeysDevtoolsPlugin = plugins[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-hotkeys-devtools",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Svelte devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -55,13 +55,13 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@tanstack/devtools-utils": "^0.7.2",
58
- "@tanstack/hotkeys-devtools": "1.10.0"
58
+ "@tanstack/hotkeys-devtools": "1.11.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@sveltejs/package": "^3.0.2",
62
62
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
63
63
  "@tanstack/hotkeys-test-utils": "0.0.0",
64
- "@tanstack/svelte-hotkeys": "0.24.0",
64
+ "@tanstack/svelte-hotkeys": "0.24.1",
65
65
  "svelte": "^5.57.3"
66
66
  },
67
67
  "module": "dist/index.js",