@tanstack/angular-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.
@@ -1,8 +1,8 @@
1
- import { DevtoolsPanelProps } from "@tanstack/devtools-utils/angular";
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<DevtoolsPanelProps> {}
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
- //#region src/plugin.d.ts
2
- declare const hotkeysDevtoolsPlugin: (inputs?: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined) => {
3
- render: import("@tanstack/devtools-utils/angular").TanStackDevtoolsAngularPluginRender<import("@tanstack/devtools-utils/angular").DevtoolsPluginProps>;
4
- inputs: import("@tanstack/devtools-utils/angular").DevtoolsPluginProps | (() => import("@tanstack/devtools-utils/angular").DevtoolsPluginProps) | undefined;
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
- id?: string;
7
- defaultOpen?: boolean;
8
- }, hotkeysDevtoolsNoOpPlugin: () => {
9
- render: null;
9
+ render: typeof HotkeysDevtoolsPanel;
10
+ inputs?: HotkeysDevtoolsAngularInputs;
11
+ }
12
+ /** The production plugin, which renders nothing. */
13
+ export interface HotkeysDevtoolsAngularNoOpPlugin {
10
14
  name: string;
11
- id?: string;
12
- defaultOpen?: boolean;
13
- };
15
+ render: null;
16
+ }
17
+ export declare function hotkeysDevtoolsPlugin(inputs?: HotkeysDevtoolsAngularInputs): HotkeysDevtoolsAngularPlugin;
18
+ export declare function hotkeysDevtoolsNoOpPlugin(): HotkeysDevtoolsAngularNoOpPlugin;
14
19
  //#endregion
15
- export { hotkeysDevtoolsPlugin };
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 [hotkeysDevtoolsPlugin, hotkeysDevtoolsNoOpPlugin] = createAngularPlugin({
6
- name: "TanStack Hotkeys",
7
- render: HotkeysDevtoolsPanel
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 };
@@ -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.1",
3
+ "version": "0.3.2",
4
4
  "description": "Angular devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@tanstack/devtools-utils": "^0.7.0",
44
- "@tanstack/hotkeys-devtools": "1.6.0"
44
+ "@tanstack/hotkeys-devtools": "1.6.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@angular/core": "^22.2.1"