@tanstack/svelte-hotkeys-devtools 0.3.1 → 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.
- package/dist/SvelteHotkeysDevtools.d.ts +4 -4
- package/dist/SvelteHotkeysDevtools.js +1 -0
- package/dist/index.d.ts +6 -16
- package/dist/index.js +2 -2
- package/dist/plugin.d.ts +11 -11
- package/dist/plugin.js +4 -3
- package/dist/production.d.ts +4 -3
- package/dist/production.js +2 -2
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HotkeysDevtoolsPanelProps } from '@tanstack/hotkeys-devtools/production';
|
|
2
2
|
import type { Component } from 'svelte';
|
|
3
|
-
export interface HotkeysDevtoolsSvelteInit extends Partial<
|
|
3
|
+
export interface HotkeysDevtoolsSvelteInit extends Partial<HotkeysDevtoolsPanelProps> {
|
|
4
4
|
}
|
|
5
|
-
export declare const HotkeysDevtoolsPanel: Component<HotkeysDevtoolsSvelteInit
|
|
6
|
-
export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit
|
|
5
|
+
export declare const HotkeysDevtoolsPanel: Component<HotkeysDevtoolsSvelteInit>;
|
|
6
|
+
export declare const HotkeysDevtoolsPanelNoOp: Component<HotkeysDevtoolsSvelteInit>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import * as Devtools from './SvelteHotkeysDevtools';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
2
|
+
import { HotkeysDevtoolsPanel } from './SvelteHotkeysDevtools.js';
|
|
3
|
+
const plugins = createSveltePlugin({
|
|
4
4
|
name: 'TanStack Hotkeys',
|
|
5
5
|
Component: HotkeysDevtoolsPanel,
|
|
6
6
|
});
|
|
7
|
-
export
|
|
7
|
+
export const hotkeysDevtoolsPlugin = plugins[0];
|
|
8
|
+
export const hotkeysDevtoolsNoOpPlugin = plugins[1];
|
package/dist/production.d.ts
CHANGED
|
@@ -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';
|
package/dist/production.js
CHANGED
|
@@ -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.
|
|
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.
|
|
48
|
+
"svelte": "^5.40.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@tanstack/devtools-utils": "^0.7.0",
|
|
52
|
-
"@tanstack/hotkeys-devtools": "1.6.
|
|
52
|
+
"@tanstack/hotkeys-devtools": "1.6.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@sveltejs/package": "^3.0.0",
|