@tanstack/svelte-hotkeys-devtools 0.5.15 → 0.5.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.
@@ -3,4 +3,3 @@ import type { Component } from 'svelte';
3
3
  export interface HotkeysDevtoolsSvelteInit extends Partial<HotkeysDevtoolsPanelProps> {
4
4
  }
5
5
  export declare const HotkeysDevtoolsPanel: Component<HotkeysDevtoolsSvelteInit>;
6
- export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit>;
@@ -13,4 +13,3 @@ function withPanelDefaults(Panel) {
13
13
  }
14
14
  // Annotated so the emitted types keep Svelte's default `Component` bindings.
15
15
  export const HotkeysDevtoolsPanel = withPanelDefaults(panels[0]);
16
- export const HotkeysDevtoolsPanelNoOp = withPanelDefaults(panels[1]);
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as Devtools from './SvelteHotkeysDevtools.js';
2
+ import * as NoOp from './noop.js';
2
3
  import * as plugin from './plugin.js';
3
4
  export const HotkeysDevtoolsPanel = process.env.NODE_ENV !== 'development'
4
- ? Devtools.HotkeysDevtoolsPanelNoOp
5
+ ? NoOp.HotkeysDevtoolsPanelNoOp
5
6
  : Devtools.HotkeysDevtoolsPanel;
6
7
  export const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== 'development'
7
- ? plugin.hotkeysDevtoolsNoOpPlugin
8
+ ? NoOp.hotkeysDevtoolsNoOpPlugin
8
9
  : plugin.hotkeysDevtoolsPlugin;
package/dist/noop.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { Component } from 'svelte';
2
+ import type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools.js';
3
+ import type { HotkeysDevtoolsSveltePlugin } from './plugin.js';
4
+ /** A Svelte component that renders nothing. */
5
+ export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit>;
6
+ export declare function hotkeysDevtoolsNoOpPlugin(props?: HotkeysDevtoolsSvelteInit): HotkeysDevtoolsSveltePlugin;
package/dist/noop.js ADDED
@@ -0,0 +1,13 @@
1
+ import { HOTKEYS_DEVTOOLS_PLUGIN_NAME } from '@tanstack/hotkeys-devtools/production';
2
+ // The default entry exports these outside development. They are built without
3
+ // `createSveltePanel` and `createSveltePlugin`, so a production bundle does not
4
+ // keep the real panel, the devtools core or the Solid runtime it loads.
5
+ /** A Svelte component that renders nothing. */
6
+ export const HotkeysDevtoolsPanelNoOp = () => ({});
7
+ export function hotkeysDevtoolsNoOpPlugin(props) {
8
+ return {
9
+ name: HOTKEYS_DEVTOOLS_PLUGIN_NAME,
10
+ component: HotkeysDevtoolsPanelNoOp,
11
+ props,
12
+ };
13
+ }
package/dist/plugin.d.ts CHANGED
@@ -10,5 +10,4 @@ export interface HotkeysDevtoolsSveltePlugin {
10
10
  }
11
11
  type HotkeysDevtoolsPluginFactory = (props?: HotkeysDevtoolsSvelteInit) => HotkeysDevtoolsSveltePlugin;
12
12
  export declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
13
- export declare const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory;
14
13
  export {};
package/dist/plugin.js CHANGED
@@ -6,4 +6,3 @@ const plugins = createSveltePlugin({
6
6
  Component: HotkeysDevtoolsPanel,
7
7
  });
8
8
  export const hotkeysDevtoolsPlugin = plugins[0];
9
- export const hotkeysDevtoolsNoOpPlugin = plugins[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-hotkeys-devtools",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
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.8.0",
58
- "@tanstack/hotkeys-devtools": "1.12.0"
58
+ "@tanstack/hotkeys-devtools": "1.12.2"
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.25.3",
64
+ "@tanstack/svelte-hotkeys": "0.25.5",
65
65
  "svelte": "^5.57.3"
66
66
  },
67
67
  "module": "dist/index.js",