@tanstack/preact-hotkeys-devtools 0.13.1 → 0.13.3

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 { JSX } from "preact";
2
1
  import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
3
- declare namespace PreactHotkeysDevtools_d_exports {
4
- export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp, HotkeysDevtoolsPreactInit };
5
- }
2
+ import { JSX } from "preact";
6
3
  export interface HotkeysDevtoolsPreactInit extends Partial<HotkeysDevtoolsPanelProps> {}
7
4
  type HotkeysDevtoolsPanelComponent = (props?: HotkeysDevtoolsPreactInit) => JSX.Element;
8
5
  export declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
9
- export declare const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent;
10
- //#endregion
11
- export { PreactHotkeysDevtools_d_exports };
6
+ export {};
@@ -1,8 +1,8 @@
1
- import { h } from "preact";
2
1
  import { createPreactPanel } from "@tanstack/devtools-utils/preact";
3
2
  import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools";
3
+ import { h } from "preact";
4
4
 
5
- //#region src/PreactHotkeysDevtools.tsx
5
+ // src/PreactHotkeysDevtools.tsx
6
6
  const panels = createPreactPanel(HotkeysDevtoolsCore);
7
7
  function withDefaults(Panel) {
8
8
  return (props = {}) => h(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, HotkeysDevtoolsPreactInit, PreactHotkeysDevtools_d_exports } from "./PreactHotkeysDevtools.js";
2
- import { HotkeysDevtoolsPreactPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
3
- //#region src/index.d.ts
1
+ import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPreactInit } from "./PreactHotkeysDevtools.js";
2
+ import { HotkeysDevtoolsPreactPlugin, 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 { HotkeysDevtoolsPreactInit, HotkeysDevtoolsPreactPlugin };
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPanelNoOp } from "./PreactHotkeysDevtools.js";
2
2
  import { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
3
3
 
4
- //#region src/index.ts
4
+ // src/index.ts
5
5
  const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? HotkeysDevtoolsPanelNoOp : HotkeysDevtoolsPanel$1;
6
6
  const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== "development" ? hotkeysDevtoolsNoOpPlugin : hotkeysDevtoolsPlugin$1;
7
7
 
8
- //#endregion
9
8
  export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
package/dist/plugin.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import { JSX } from "preact";
2
1
  import { HotkeysDevtoolsPanelProps } from "@tanstack/hotkeys-devtools";
3
- declare namespace plugin_d_exports {
4
- export { HotkeysDevtoolsPreactPlugin, hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
5
- }
2
+ import { JSX } from "preact";
6
3
  /** A plugin for `TanStackDevtools` from `@tanstack/preact-devtools`. */
7
4
  export interface HotkeysDevtoolsPreactPlugin {
8
5
  name: string;
@@ -12,6 +9,4 @@ export interface HotkeysDevtoolsPreactPlugin {
12
9
  }
13
10
  type HotkeysDevtoolsPluginFactory = () => HotkeysDevtoolsPreactPlugin;
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 "./PreactHotkeysDevtools.js";
2
2
  import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
3
3
 
4
- //#region src/plugin.tsx
4
+ // src/plugin.tsx
5
5
  const plugins = createPreactPlugin({
6
6
  name: "TanStack Hotkeys",
7
7
  Component: HotkeysDevtoolsPanel
@@ -9,5 +9,4 @@ const plugins = createPreactPlugin({
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/preact-hotkeys-devtools",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "Preact devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -46,17 +46,17 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@tanstack/devtools-utils": "^0.7.2",
49
- "@tanstack/hotkeys-devtools": "1.8.1"
49
+ "@tanstack/hotkeys-devtools": "1.9.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@preact/preset-vite": "^2.10.6",
53
- "preact": "^11.0.1"
53
+ "preact": "^11.2.0"
54
54
  },
55
55
  "scripts": {
56
56
  "clean": "premove ./build ./dist",
57
- "lint": "eslint ./src",
58
- "lint:fix": "eslint ./src --fix",
59
- "test:eslint": "eslint ./src",
57
+ "lint": "oxlint ./src",
58
+ "lint:fix": "oxlint ./src --fix",
59
+ "test:oxlint": "oxlint ./src",
60
60
  "test:lib": "vitest --passWithNoTests",
61
61
  "test:lib:dev": "pnpm test:lib --watch",
62
62
  "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 };