@tanstack/angular-hotkeys-devtools 0.3.1 → 0.4.0
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/AngularHotkeysDevtools.d.ts +2 -2
- package/dist/index.d.ts +3 -13
- package/dist/plugin.d.ts +17 -12
- package/dist/plugin.js +14 -5
- package/dist/production.d.ts +2 -2
- package/package.json +10 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools/production";
|
|
2
2
|
declare namespace AngularHotkeysDevtools_d_exports {
|
|
3
3
|
export { HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
|
|
4
4
|
}
|
|
5
|
-
export interface HotkeysDevtoolsAngularInit extends Partial<
|
|
5
|
+
export interface HotkeysDevtoolsAngularInit extends Partial<HotkeysDevtoolsPanelProps> {}
|
|
6
6
|
declare const HotkeysDevtoolsPanelNoOp: () => null;
|
|
7
7
|
export declare const HotkeysDevtoolsPanel: () => (inputs: () => HotkeysDevtoolsAngularInit, host: HTMLElement) => () => void;
|
|
8
8
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { AngularHotkeysDevtools_d_exports, HotkeysDevtoolsAngularInit } from "./AngularHotkeysDevtools.js";
|
|
2
|
+
import { HotkeysDevtoolsAngularPlugin, hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
|
|
2
3
|
//#region src/index.d.ts
|
|
3
4
|
export declare const HotkeysDevtoolsPanel: (() => null) | (() => (inputs: () => HotkeysDevtoolsAngularInit, host: HTMLElement) => () => void);
|
|
4
|
-
export declare const hotkeysDevtoolsPlugin:
|
|
5
|
-
render: null;
|
|
6
|
-
name: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
defaultOpen?: boolean;
|
|
9
|
-
}) | ((inputs?: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined) => {
|
|
10
|
-
render: import("@tanstack/devtools-utils/angular").TanStackDevtoolsAngularPluginRender<import("@tanstack/devtools-utils/angular").DevtoolsPluginProps>;
|
|
11
|
-
inputs: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined;
|
|
12
|
-
name: string;
|
|
13
|
-
id?: string;
|
|
14
|
-
defaultOpen?: boolean;
|
|
15
|
-
});
|
|
5
|
+
export declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsNoOpPlugin | typeof hotkeysDevtoolsPlugin$1;
|
|
16
6
|
//#endregion
|
|
17
|
-
export type { HotkeysDevtoolsAngularInit };
|
|
7
|
+
export type { HotkeysDevtoolsAngularInit, HotkeysDevtoolsAngularPlugin };
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
|
|
2
|
+
declare namespace plugin_d_exports {
|
|
3
|
+
export { HotkeysDevtoolsAngularNoOpPlugin, HotkeysDevtoolsAngularPlugin, hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
4
|
+
}
|
|
5
|
+
type HotkeysDevtoolsAngularInputs = HotkeysDevtoolsAngularInit | (() => HotkeysDevtoolsAngularInit);
|
|
6
|
+
/** A plugin for `provideTanStackDevtools` from `@tanstack/angular-devtools`. */
|
|
7
|
+
export interface HotkeysDevtoolsAngularPlugin {
|
|
5
8
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
9
|
+
render: typeof HotkeysDevtoolsPanel;
|
|
10
|
+
inputs?: HotkeysDevtoolsAngularInputs;
|
|
11
|
+
}
|
|
12
|
+
/** The production plugin, which renders nothing. */
|
|
13
|
+
export interface HotkeysDevtoolsAngularNoOpPlugin {
|
|
10
14
|
name: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
render: null;
|
|
16
|
+
}
|
|
17
|
+
export declare function hotkeysDevtoolsPlugin(inputs?: HotkeysDevtoolsAngularInputs): HotkeysDevtoolsAngularPlugin;
|
|
18
|
+
export declare function hotkeysDevtoolsNoOpPlugin(): HotkeysDevtoolsAngularNoOpPlugin;
|
|
14
19
|
//#endregion
|
|
15
|
-
export {
|
|
20
|
+
export { plugin_d_exports };
|
package/dist/plugin.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
|
|
2
|
-
import { createAngularPlugin } from "@tanstack/devtools-utils/angular";
|
|
3
2
|
|
|
4
3
|
//#region src/plugin.ts
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const name = "TanStack Hotkeys";
|
|
5
|
+
function hotkeysDevtoolsPlugin(inputs) {
|
|
6
|
+
return {
|
|
7
|
+
name,
|
|
8
|
+
render: HotkeysDevtoolsPanel,
|
|
9
|
+
inputs
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function hotkeysDevtoolsNoOpPlugin() {
|
|
13
|
+
return {
|
|
14
|
+
name,
|
|
15
|
+
render: null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
9
18
|
|
|
10
19
|
//#endregion
|
|
11
20
|
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
package/dist/production.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel } from "./AngularHotkeysDevtools.js";
|
|
2
|
-
import { hotkeysDevtoolsPlugin } from "./plugin.js";
|
|
3
|
-
export { type HotkeysDevtoolsAngularInit, HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
|
|
2
|
+
import { HotkeysDevtoolsAngularPlugin, hotkeysDevtoolsPlugin } from "./plugin.js";
|
|
3
|
+
export { type HotkeysDevtoolsAngularInit, type HotkeysDevtoolsAngularPlugin, HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/angular-hotkeys-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Angular devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,11 +37,17 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@angular/core": ">=21.0.0"
|
|
40
|
+
"@angular/core": ">=21.0.0",
|
|
41
|
+
"@tanstack/angular-devtools": ">=0.0.13"
|
|
42
|
+
},
|
|
43
|
+
"peerDependenciesMeta": {
|
|
44
|
+
"@tanstack/angular-devtools": {
|
|
45
|
+
"optional": true
|
|
46
|
+
}
|
|
41
47
|
},
|
|
42
48
|
"dependencies": {
|
|
43
|
-
"@tanstack/devtools-utils": "^0.7.
|
|
44
|
-
"@tanstack/hotkeys-devtools": "1.
|
|
49
|
+
"@tanstack/devtools-utils": "^0.7.2",
|
|
50
|
+
"@tanstack/hotkeys-devtools": "1.7.0"
|
|
45
51
|
},
|
|
46
52
|
"devDependencies": {
|
|
47
53
|
"@angular/core": "^22.2.1"
|