@tanstack/react-hotkeys-devtools 0.4.2 → 0.4.4
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/ReactHotkeysDevtools.d.ts +3 -2
- package/dist/ReactHotkeysDevtools.js +3 -1
- package/dist/ReactHotkeysDevtools.js.map +1 -1
- package/dist/index.d.ts +4 -9
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +3 -12
- package/dist/plugin.js +3 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
- package/src/ReactHotkeysDevtools.tsx +8 -3
- package/src/index.ts +2 -2
- package/src/plugin.tsx +6 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/react";
|
|
2
|
-
import
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/ReactHotkeysDevtools.d.ts
|
|
5
5
|
interface HotkeysDevtoolsReactInit extends DevtoolsPanelProps {}
|
|
6
|
-
|
|
6
|
+
type HotkeysDevtoolsPanelComponent = (props: HotkeysDevtoolsReactInit) => JSX.Element;
|
|
7
|
+
declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { HotkeysDevtoolsPanel, HotkeysDevtoolsReactInit };
|
|
9
10
|
//# sourceMappingURL=ReactHotkeysDevtools.d.ts.map
|
|
@@ -2,7 +2,9 @@ import { createReactPanel } from "@tanstack/devtools-utils/react";
|
|
|
2
2
|
import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools";
|
|
3
3
|
|
|
4
4
|
//#region src/ReactHotkeysDevtools.tsx
|
|
5
|
-
const
|
|
5
|
+
const panels = createReactPanel(HotkeysDevtoolsCore);
|
|
6
|
+
const HotkeysDevtoolsPanel = panels[0];
|
|
7
|
+
const HotkeysDevtoolsPanelNoOp = panels[1];
|
|
6
8
|
|
|
7
9
|
//#endregion
|
|
8
10
|
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactHotkeysDevtools.js","names":[],"sources":["../src/ReactHotkeysDevtools.tsx"],"sourcesContent":["import { createReactPanel } from '@tanstack/devtools-utils/react'\nimport { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/react'\n\nexport interface HotkeysDevtoolsReactInit extends DevtoolsPanelProps {}\n\
|
|
1
|
+
{"version":3,"file":"ReactHotkeysDevtools.js","names":[],"sources":["../src/ReactHotkeysDevtools.tsx"],"sourcesContent":["import { createReactPanel } from '@tanstack/devtools-utils/react'\nimport { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/react'\nimport type { JSX } from 'react'\n\nexport interface HotkeysDevtoolsReactInit extends DevtoolsPanelProps {}\n\ntype HotkeysDevtoolsPanelComponent = (\n props: HotkeysDevtoolsReactInit,\n) => JSX.Element\n\nconst panels = createReactPanel(HotkeysDevtoolsCore)\n\nexport const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent = panels[0]\nexport const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent = panels[1]\n"],"mappings":";;;;AAWA,MAAM,SAAS,iBAAiB,oBAAoB;AAEpD,MAAa,uBAAsD,OAAO;AAC1E,MAAa,2BAA0D,OAAO"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { HotkeysDevtoolsReactInit } from "./ReactHotkeysDevtools.js";
|
|
2
|
-
import
|
|
1
|
+
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsReactInit } from "./ReactHotkeysDevtools.js";
|
|
2
|
+
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
declare const HotkeysDevtoolsPanel:
|
|
6
|
-
declare const hotkeysDevtoolsPlugin:
|
|
7
|
-
render: (_el: HTMLElement, props: TanStackDevtoolsPluginProps) => react_jsx_runtime0.JSX.Element;
|
|
8
|
-
name: string;
|
|
9
|
-
id?: string;
|
|
10
|
-
defaultOpen?: boolean;
|
|
11
|
-
};
|
|
5
|
+
declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
|
|
6
|
+
declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
|
|
12
7
|
//#endregion
|
|
13
8
|
export { HotkeysDevtoolsPanel, type HotkeysDevtoolsReactInit, hotkeysDevtoolsPlugin };
|
|
14
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Devtools.HotkeysDevtoolsPanelNoOp","Devtools.HotkeysDevtoolsPanel","plugin.hotkeysDevtoolsNoOpPlugin","plugin.hotkeysDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactHotkeysDevtools'\nimport * as plugin from './plugin'\n\nexport const HotkeysDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.HotkeysDevtoolsPanelNoOp\n : Devtools.HotkeysDevtoolsPanel\n\nexport const hotkeysDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.hotkeysDevtoolsNoOpPlugin\n : plugin.hotkeysDevtoolsPlugin\n\nexport type { HotkeysDevtoolsReactInit } from './ReactHotkeysDevtools'\n"],"mappings":";;;;;;AAKA,MAAa,uBACX,QAAQ,IAAI,aAAa,gBACrBA,2BACAC;AAEN,MAAa,wBACX,QAAQ,IAAI,aAAa,gBACrBC,4BACAC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Devtools.HotkeysDevtoolsPanelNoOp","Devtools.HotkeysDevtoolsPanel","plugin.hotkeysDevtoolsNoOpPlugin","plugin.hotkeysDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactHotkeysDevtools'\nimport * as plugin from './plugin'\n\nexport const HotkeysDevtoolsPanel: typeof Devtools.HotkeysDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.HotkeysDevtoolsPanelNoOp\n : Devtools.HotkeysDevtoolsPanel\n\nexport const hotkeysDevtoolsPlugin: typeof plugin.hotkeysDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.hotkeysDevtoolsNoOpPlugin\n : plugin.hotkeysDevtoolsPlugin\n\nexport type { HotkeysDevtoolsReactInit } from './ReactHotkeysDevtools'\n"],"mappings":";;;;;;AAKA,MAAa,uBACX,QAAQ,IAAI,aAAa,gBACrBA,2BACAC;AAEN,MAAa,wBACX,QAAQ,IAAI,aAAa,gBACrBC,4BACAC"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createReactPlugin } from "@tanstack/devtools-utils/react";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
name: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
defaultOpen?: boolean;
|
|
9
|
-
}, hotkeysDevtoolsNoOpPlugin: () => {
|
|
10
|
-
render: (_el: HTMLElement, _props: TanStackDevtoolsPluginProps) => react_jsx_runtime0.JSX.Element;
|
|
11
|
-
name: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
};
|
|
4
|
+
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createReactPlugin>[0];
|
|
5
|
+
declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
|
|
15
6
|
//#endregion
|
|
16
7
|
export { hotkeysDevtoolsPlugin };
|
|
17
8
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.js
CHANGED
|
@@ -2,10 +2,12 @@ import { HotkeysDevtoolsPanel } from "./ReactHotkeysDevtools.js";
|
|
|
2
2
|
import { createReactPlugin } from "@tanstack/devtools-utils/react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.tsx
|
|
5
|
-
const
|
|
5
|
+
const plugins = createReactPlugin({
|
|
6
6
|
name: "TanStack Hotkeys",
|
|
7
7
|
Component: HotkeysDevtoolsPanel
|
|
8
8
|
});
|
|
9
|
+
const hotkeysDevtoolsPlugin = plugins[0];
|
|
10
|
+
const hotkeysDevtoolsNoOpPlugin = plugins[1];
|
|
9
11
|
|
|
10
12
|
//#endregion
|
|
11
13
|
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","names":[],"sources":["../src/plugin.tsx"],"sourcesContent":["import { createReactPlugin } from '@tanstack/devtools-utils/react'\nimport { HotkeysDevtoolsPanel } from './ReactHotkeysDevtools'\n\
|
|
1
|
+
{"version":3,"file":"plugin.js","names":[],"sources":["../src/plugin.tsx"],"sourcesContent":["import { createReactPlugin } from '@tanstack/devtools-utils/react'\nimport { HotkeysDevtoolsPanel } from './ReactHotkeysDevtools'\n\ntype HotkeysDevtoolsPluginFactory = ReturnType<typeof createReactPlugin>[0]\n\nconst plugins = createReactPlugin({\n name: 'TanStack Hotkeys',\n Component: HotkeysDevtoolsPanel,\n})\n\nexport const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory = plugins[0]\nexport const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory =\n plugins[1]\n"],"mappings":";;;;AAKA,MAAM,UAAU,kBAAkB;CAChC,MAAM;CACN,WAAW;CACZ,CAAC;AAEF,MAAa,wBAAsD,QAAQ;AAC3E,MAAa,4BACX,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-hotkeys-devtools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "React devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@tanstack/devtools-utils": "^0.4.0",
|
|
48
|
-
"@tanstack/hotkeys-devtools": "0.4.
|
|
48
|
+
"@tanstack/hotkeys-devtools": "0.4.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@eslint-react/eslint-plugin": "^
|
|
51
|
+
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
52
52
|
"@types/react": "^19.2.14",
|
|
53
|
-
"@vitejs/plugin-react": "^
|
|
53
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
54
54
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
55
55
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
56
56
|
"react": "^19.2.4"
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { createReactPanel } from '@tanstack/devtools-utils/react'
|
|
2
2
|
import { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'
|
|
3
3
|
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/react'
|
|
4
|
+
import type { JSX } from 'react'
|
|
4
5
|
|
|
5
6
|
export interface HotkeysDevtoolsReactInit extends DevtoolsPanelProps {}
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
type HotkeysDevtoolsPanelComponent = (
|
|
9
|
+
props: HotkeysDevtoolsReactInit,
|
|
10
|
+
) => JSX.Element
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
const panels = createReactPanel(HotkeysDevtoolsCore)
|
|
13
|
+
|
|
14
|
+
export const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent = panels[0]
|
|
15
|
+
export const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent = panels[1]
|
package/src/index.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import * as Devtools from './ReactHotkeysDevtools'
|
|
4
4
|
import * as plugin from './plugin'
|
|
5
5
|
|
|
6
|
-
export const HotkeysDevtoolsPanel =
|
|
6
|
+
export const HotkeysDevtoolsPanel: typeof Devtools.HotkeysDevtoolsPanel =
|
|
7
7
|
process.env.NODE_ENV !== 'development'
|
|
8
8
|
? Devtools.HotkeysDevtoolsPanelNoOp
|
|
9
9
|
: Devtools.HotkeysDevtoolsPanel
|
|
10
10
|
|
|
11
|
-
export const hotkeysDevtoolsPlugin =
|
|
11
|
+
export const hotkeysDevtoolsPlugin: typeof plugin.hotkeysDevtoolsPlugin =
|
|
12
12
|
process.env.NODE_ENV !== 'development'
|
|
13
13
|
? plugin.hotkeysDevtoolsNoOpPlugin
|
|
14
14
|
: plugin.hotkeysDevtoolsPlugin
|
package/src/plugin.tsx
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { createReactPlugin } from '@tanstack/devtools-utils/react'
|
|
2
2
|
import { HotkeysDevtoolsPanel } from './ReactHotkeysDevtools'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createReactPlugin>[0]
|
|
5
|
+
|
|
6
|
+
const plugins = createReactPlugin({
|
|
5
7
|
name: 'TanStack Hotkeys',
|
|
6
8
|
Component: HotkeysDevtoolsPanel,
|
|
7
9
|
})
|
|
8
10
|
|
|
9
|
-
export
|
|
11
|
+
export const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory = plugins[0]
|
|
12
|
+
export const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory =
|
|
13
|
+
plugins[1]
|