@tanstack/svelte-hotkeys-devtools 0.3.0 → 0.3.2

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,6 +1,6 @@
1
- import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/svelte';
1
+ import type { HotkeysDevtoolsPanelProps } from '@tanstack/hotkeys-devtools/production';
2
2
  import type { Component } from 'svelte';
3
- export interface HotkeysDevtoolsSvelteInit extends Partial<DevtoolsPanelProps> {
3
+ export interface HotkeysDevtoolsSvelteInit extends Partial<HotkeysDevtoolsPanelProps> {
4
4
  }
5
- export declare const HotkeysDevtoolsPanel: Component<HotkeysDevtoolsSvelteInit, {}, string>;
6
- export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit, {}, string>;
5
+ export declare const HotkeysDevtoolsPanel: Component<HotkeysDevtoolsSvelteInit>;
6
+ export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit>;
@@ -11,5 +11,6 @@ function withDefaults(Panel) {
11
11
  },
12
12
  });
13
13
  }
14
+ // Annotated so the emitted types keep Svelte's default `Component` bindings.
14
15
  export const HotkeysDevtoolsPanel = withDefaults(panels[0]);
15
16
  export const HotkeysDevtoolsPanelNoOp = withDefaults(panels[1]);
package/dist/index.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import * as Devtools from './SvelteHotkeysDevtools';
2
- export declare const HotkeysDevtoolsPanel: import("svelte").Component<Devtools.HotkeysDevtoolsSvelteInit, {}, string>;
3
- export declare const hotkeysDevtoolsPlugin: ((props?: Devtools.HotkeysDevtoolsSvelteInit | undefined) => {
4
- component: import("svelte").Component<Devtools.HotkeysDevtoolsSvelteInit, {}, string>;
5
- props: Devtools.HotkeysDevtoolsSvelteInit | undefined;
6
- name: string;
7
- id?: string;
8
- defaultOpen?: boolean;
9
- }) | ((props?: Devtools.HotkeysDevtoolsSvelteInit | undefined) => {
10
- component: import("svelte/legacy").LegacyComponentType;
11
- props: Devtools.HotkeysDevtoolsSvelteInit | undefined;
12
- name: string;
13
- id?: string;
14
- defaultOpen?: boolean;
15
- });
16
- export type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools';
1
+ import * as Devtools from './SvelteHotkeysDevtools.js';
2
+ import * as plugin from './plugin.js';
3
+ export declare const HotkeysDevtoolsPanel: typeof Devtools.HotkeysDevtoolsPanel;
4
+ export declare const hotkeysDevtoolsPlugin: typeof plugin.hotkeysDevtoolsPlugin;
5
+ export type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools.js';
6
+ export type { HotkeysDevtoolsSveltePlugin } from './plugin.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import * as Devtools from './SvelteHotkeysDevtools';
2
- import * as plugin from './plugin';
1
+ import * as Devtools from './SvelteHotkeysDevtools.js';
2
+ import * as plugin from './plugin.js';
3
3
  export const HotkeysDevtoolsPanel = process.env.NODE_ENV !== 'development'
4
4
  ? Devtools.HotkeysDevtoolsPanelNoOp
5
5
  : Devtools.HotkeysDevtoolsPanel;
package/dist/plugin.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- declare const hotkeysDevtoolsPlugin: (props?: import("./SvelteHotkeysDevtools").HotkeysDevtoolsSvelteInit | undefined) => {
2
- component: import("svelte").Component<import("./SvelteHotkeysDevtools").HotkeysDevtoolsSvelteInit, {}, string>;
3
- props: import("./SvelteHotkeysDevtools").HotkeysDevtoolsSvelteInit | undefined;
1
+ import type { Component } from 'svelte';
2
+ import type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools.js';
3
+ /** A plugin for `TanStackDevtools` from `@tanstack/svelte-devtools`. */
4
+ export interface HotkeysDevtoolsSveltePlugin {
4
5
  name: string;
5
6
  id?: string;
6
7
  defaultOpen?: boolean;
7
- }, hotkeysDevtoolsNoOpPlugin: (props?: import("./SvelteHotkeysDevtools").HotkeysDevtoolsSvelteInit | undefined) => {
8
- component: import("svelte/legacy").LegacyComponentType;
9
- props: import("./SvelteHotkeysDevtools").HotkeysDevtoolsSvelteInit | undefined;
10
- name: string;
11
- id?: string;
12
- defaultOpen?: boolean;
13
- };
14
- export { hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin };
8
+ component: Component<HotkeysDevtoolsSvelteInit>;
9
+ props: HotkeysDevtoolsSvelteInit | undefined;
10
+ }
11
+ type HotkeysDevtoolsPluginFactory = (props?: HotkeysDevtoolsSvelteInit) => HotkeysDevtoolsSveltePlugin;
12
+ export declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
13
+ export declare const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory;
14
+ export {};
package/dist/plugin.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { createSveltePlugin } from '@tanstack/devtools-utils/svelte';
2
- import { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools';
3
- const [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createSveltePlugin({
2
+ import { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools.js';
3
+ const plugins = createSveltePlugin({
4
4
  name: 'TanStack Hotkeys',
5
5
  Component: HotkeysDevtoolsPanel,
6
6
  });
7
- export { hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin };
7
+ export const hotkeysDevtoolsPlugin = plugins[0];
8
+ export const hotkeysDevtoolsNoOpPlugin = plugins[1];
@@ -1,3 +1,4 @@
1
- export { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools';
2
- export { hotkeysDevtoolsPlugin } from './plugin';
3
- export type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools';
1
+ export { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools.js';
2
+ export { hotkeysDevtoolsPlugin } from './plugin.js';
3
+ export type { HotkeysDevtoolsSvelteInit } from './SvelteHotkeysDevtools.js';
4
+ export type { HotkeysDevtoolsSveltePlugin } from './plugin.js';
@@ -1,2 +1,2 @@
1
- export { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools';
2
- export { hotkeysDevtoolsPlugin } from './plugin';
1
+ export { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools.js';
2
+ export { hotkeysDevtoolsPlugin } from './plugin.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-hotkeys-devtools",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Svelte devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -45,11 +45,11 @@
45
45
  "dist"
46
46
  ],
47
47
  "peerDependencies": {
48
- "svelte": "^5.25.0"
48
+ "svelte": "^5.40.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@tanstack/devtools-utils": "^0.7.0",
52
- "@tanstack/hotkeys-devtools": "1.5.0"
52
+ "@tanstack/hotkeys-devtools": "1.6.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@sveltejs/package": "^3.0.0",