@tanstack/react-hotkeys-devtools 0.14.0 → 0.14.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,11 +1,6 @@
1
- import { ReactElement } from "react";
2
1
  import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
3
- declare namespace ReactHotkeysDevtools_d_exports {
4
- export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp, HotkeysDevtoolsReactInit };
5
- }
2
+ import { ReactElement } from "react";
6
3
  export interface HotkeysDevtoolsReactInit extends Partial<HotkeysDevtoolsPanelProps> {}
7
4
  type HotkeysDevtoolsPanelComponent = (props?: HotkeysDevtoolsReactInit) => ReactElement;
8
5
  export declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
9
- export declare const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent;
10
- //#endregion
11
- export { ReactHotkeysDevtools_d_exports };
6
+ export {};
@@ -1,8 +1,8 @@
1
- import { createElement } from "react";
2
1
  import { createReactPanel } from "@tanstack/devtools-utils/react";
3
2
  import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools";
3
+ import { createElement } from "react";
4
4
 
5
- //#region src/ReactHotkeysDevtools.tsx
5
+ // src/ReactHotkeysDevtools.tsx
6
6
  const panels = createReactPanel(HotkeysDevtoolsCore);
7
7
  function withDefaults(Panel) {
8
8
  return (props = {}) => createElement(Panel, {
@@ -14,5 +14,4 @@ function withDefaults(Panel) {
14
14
  const HotkeysDevtoolsPanel = withDefaults(panels[0]);
15
15
  const HotkeysDevtoolsPanelNoOp = withDefaults(panels[1]);
16
16
 
17
- //#endregion
18
17
  export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsReactInit, ReactHotkeysDevtools_d_exports } from "./ReactHotkeysDevtools.js";
2
- import { HotkeysDevtoolsReactPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
3
- //#region src/index.d.ts
1
+ import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsReactInit } from "./ReactHotkeysDevtools.js";
2
+ import { HotkeysDevtoolsReactPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
4
3
  export declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
5
4
  export declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
6
- //#endregion
7
5
  export type { HotkeysDevtoolsReactInit, HotkeysDevtoolsReactPlugin };
package/dist/index.js CHANGED
@@ -3,9 +3,8 @@
3
3
  import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPanelNoOp } from "./ReactHotkeysDevtools.js";
4
4
  import { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
5
5
 
6
- //#region src/index.ts
6
+ // src/index.ts
7
7
  const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? HotkeysDevtoolsPanelNoOp : HotkeysDevtoolsPanel$1;
8
8
  const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== "development" ? hotkeysDevtoolsNoOpPlugin : hotkeysDevtoolsPlugin$1;
9
9
 
10
- //#endregion
11
10
  export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
package/dist/plugin.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import { ReactElement } from "react";
2
1
  import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
3
- declare namespace plugin_d_exports {
4
- export { HotkeysDevtoolsReactPlugin, hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
5
- }
2
+ import { ReactElement } from "react";
6
3
  /** A plugin for `TanStackDevtools` from `@tanstack/react-devtools`. */
7
4
  export interface HotkeysDevtoolsReactPlugin {
8
5
  name: string;
@@ -12,6 +9,4 @@ export interface HotkeysDevtoolsReactPlugin {
12
9
  }
13
10
  type HotkeysDevtoolsPluginFactory = () => HotkeysDevtoolsReactPlugin;
14
11
  export declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
15
- export declare const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory;
16
- //#endregion
17
- export { plugin_d_exports };
12
+ export {};
package/dist/plugin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { HotkeysDevtoolsPanel } from "./ReactHotkeysDevtools.js";
2
2
  import { createReactPlugin } from "@tanstack/devtools-utils/react";
3
3
 
4
- //#region src/plugin.tsx
4
+ // src/plugin.tsx
5
5
  const plugins = createReactPlugin({
6
6
  name: "TanStack Hotkeys",
7
7
  Component: HotkeysDevtoolsPanel
@@ -9,5 +9,4 @@ const plugins = createReactPlugin({
9
9
  const hotkeysDevtoolsPlugin = plugins[0];
10
10
  const hotkeysDevtoolsNoOpPlugin = plugins[1];
11
11
 
12
- //#endregion
13
12
  export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-hotkeys-devtools",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "React devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -50,21 +50,18 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@tanstack/devtools-utils": "^0.7.2",
53
- "@tanstack/hotkeys-devtools": "1.8.0"
53
+ "@tanstack/hotkeys-devtools": "1.9.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@eslint-react/eslint-plugin": "^4.2.3",
57
56
  "@types/react": "^19.3.0",
58
- "@vitejs/plugin-react": "^6.1.1",
59
- "eslint-plugin-react-compiler": "19.1.0-rc.2",
60
- "eslint-plugin-react-hooks": "^7.1.1",
61
- "react": "^19.3.0"
57
+ "@vitejs/plugin-react": "^6.2.1",
58
+ "react": "^19.3.1"
62
59
  },
63
60
  "scripts": {
64
61
  "clean": "premove ./build ./dist",
65
- "lint": "eslint ./src",
66
- "lint:fix": "eslint ./src --fix",
67
- "test:eslint": "eslint ./src",
62
+ "lint": "oxlint ./src",
63
+ "lint:fix": "oxlint ./src --fix",
64
+ "test:oxlint": "oxlint ./src",
68
65
  "test:lib": "vitest --passWithNoTests",
69
66
  "test:lib:dev": "pnpm test:lib --watch",
70
67
  "test:types": "tsc",
@@ -1,18 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) {
6
- __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- }
11
- if (!no_symbols) {
12
- __defProp(target, Symbol.toStringTag, { value: "Module" });
13
- }
14
- return target;
15
- };
16
-
17
- //#endregion
18
- export { __exportAll };