@tanstack/preact-hotkeys-devtools 0.7.0 → 0.9.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/README.md +15 -1
- package/dist/PreactHotkeysDevtools.d.ts +7 -6
- package/dist/PreactHotkeysDevtools.js +1 -2
- package/dist/_virtual/_rolldown/runtime.js +18 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +1 -2
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.js +1 -2
- package/package.json +9 -9
- package/dist/PreactHotkeysDevtools.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/src/PreactHotkeysDevtools.tsx +0 -15
- package/src/index.ts +0 -14
- package/src/plugin.tsx +0 -13
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<
|
|
2
|
+
<picture>
|
|
3
|
+
<source
|
|
4
|
+
media="(prefers-color-scheme: dark)"
|
|
5
|
+
srcset="https://tanstack.com/api/readme/hotkeys.png?theme=dark"
|
|
6
|
+
/>
|
|
7
|
+
<source
|
|
8
|
+
media="(prefers-color-scheme: light)"
|
|
9
|
+
srcset="https://tanstack.com/api/readme/hotkeys.png"
|
|
10
|
+
/>
|
|
11
|
+
<img
|
|
12
|
+
src="https://tanstack.com/api/readme/hotkeys.png"
|
|
13
|
+
alt="TanStack Hotkeys"
|
|
14
|
+
width="900"
|
|
15
|
+
/>
|
|
16
|
+
</picture>
|
|
3
17
|
</div>
|
|
4
18
|
|
|
5
19
|
<br />
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/preact";
|
|
2
2
|
import { JSX } from "preact";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare namespace PreactHotkeysDevtools_d_exports {
|
|
4
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp, HotkeysDevtoolsPreactInit };
|
|
5
|
+
}
|
|
6
|
+
export interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}
|
|
6
7
|
type HotkeysDevtoolsPanelComponent = (props: HotkeysDevtoolsPreactInit) => JSX.Element;
|
|
7
|
-
declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
|
|
8
|
+
export declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
|
|
9
|
+
export declare const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent;
|
|
8
10
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
-
//# sourceMappingURL=PreactHotkeysDevtools.d.ts.map
|
|
11
|
+
export { PreactHotkeysDevtools_d_exports };
|
|
@@ -7,5 +7,4 @@ const HotkeysDevtoolsPanel = panels[0];
|
|
|
7
7
|
const HotkeysDevtoolsPanelNoOp = panels[1];
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
|
-
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
|
|
11
|
-
//# sourceMappingURL=PreactHotkeysDevtools.js.map
|
|
10
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPanelNoOp };
|
|
@@ -0,0 +1,18 @@
|
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPreactInit } from "./PreactHotkeysDevtools.js";
|
|
2
|
-
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
|
-
|
|
1
|
+
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPreactInit, PreactHotkeysDevtools_d_exports } from "./PreactHotkeysDevtools.js";
|
|
2
|
+
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
|
|
4
3
|
//#region src/index.d.ts
|
|
5
|
-
declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
|
|
6
|
-
declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
|
|
4
|
+
export declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
|
|
5
|
+
export declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
|
|
7
6
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
7
|
+
export type { HotkeysDevtoolsPreactInit };
|
package/dist/index.js
CHANGED
|
@@ -6,5 +6,4 @@ const HotkeysDevtoolsPanel = process.env.NODE_ENV !== "development" ? HotkeysDev
|
|
|
6
6
|
const hotkeysDevtoolsPlugin = process.env.NODE_ENV !== "development" ? hotkeysDevtoolsNoOpPlugin : hotkeysDevtoolsPlugin$1;
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
9
|
+
export { HotkeysDevtoolsPanel, hotkeysDevtoolsPlugin };
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare namespace plugin_d_exports {
|
|
3
|
+
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
4
|
+
}
|
|
4
5
|
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createPreactPlugin>[0];
|
|
5
|
-
declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
|
|
6
|
+
export declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
|
|
7
|
+
export declare const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory;
|
|
6
8
|
//#endregion
|
|
7
|
-
export {
|
|
8
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
9
|
+
export { plugin_d_exports };
|
package/dist/plugin.js
CHANGED
|
@@ -10,5 +10,4 @@ const hotkeysDevtoolsPlugin = plugins[0];
|
|
|
10
10
|
const hotkeysDevtoolsNoOpPlugin = plugins[1];
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
|
14
|
-
//# sourceMappingURL=plugin.js.map
|
|
13
|
+
export { hotkeysDevtoolsNoOpPlugin, hotkeysDevtoolsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-hotkeys-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Preact devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,22 +30,21 @@
|
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=20"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
|
-
"dist
|
|
37
|
-
"src"
|
|
36
|
+
"dist"
|
|
38
37
|
],
|
|
39
38
|
"peerDependencies": {
|
|
40
39
|
"preact": ">=10.0.0"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@tanstack/devtools-utils": "^0.
|
|
44
|
-
"@tanstack/hotkeys-devtools": "
|
|
42
|
+
"@tanstack/devtools-utils": "^0.7.0",
|
|
43
|
+
"@tanstack/hotkeys-devtools": "1.1.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@preact/preset-vite": "^2.10.
|
|
48
|
-
"preact": "^10.29.
|
|
46
|
+
"@preact/preset-vite": "^2.10.6",
|
|
47
|
+
"preact": "^10.29.8"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"clean": "premove ./build ./dist",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"test:lib": "vitest --passWithNoTests",
|
|
56
55
|
"test:lib:dev": "pnpm test:lib --watch",
|
|
57
56
|
"test:types": "tsc",
|
|
58
|
-
"build": "tsdown"
|
|
57
|
+
"build": "tsdown",
|
|
58
|
+
"test:build": "publint --strict && node ../../scripts/verify-package.ts"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactHotkeysDevtools.js","names":[],"sources":["../src/PreactHotkeysDevtools.tsx"],"sourcesContent":["import { createPreactPanel } from '@tanstack/devtools-utils/preact'\nimport { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'\nimport type { JSX } from 'preact'\n\nexport interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}\n\ntype HotkeysDevtoolsPanelComponent = (\n props: HotkeysDevtoolsPreactInit,\n) => JSX.Element\n\nconst panels = createPreactPanel(HotkeysDevtoolsCore)\n\nexport const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent = panels[0]\nexport const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent = panels[1]\n"],"mappings":";;;;AAWA,MAAM,SAAS,kBAAkB,oBAAoB;AAErD,MAAa,uBAAsD,OAAO;AAC1E,MAAa,2BAA0D,OAAO"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Devtools.HotkeysDevtoolsPanelNoOp","Devtools.HotkeysDevtoolsPanel","plugin.hotkeysDevtoolsNoOpPlugin","plugin.hotkeysDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["import * as Devtools from './PreactHotkeysDevtools'\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 { HotkeysDevtoolsPreactInit } from './PreactHotkeysDevtools'\n"],"mappings":";;;;AAGA,MAAa,uBACX,QAAQ,IAAI,aAAa,gBACrBA,2BACAC;AAEN,MAAa,wBACX,QAAQ,IAAI,aAAa,gBACrBC,4BACAC"}
|
package/dist/plugin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","names":[],"sources":["../src/plugin.tsx"],"sourcesContent":["import { createPreactPlugin } from '@tanstack/devtools-utils/preact'\nimport { HotkeysDevtoolsPanel } from './PreactHotkeysDevtools'\n\ntype HotkeysDevtoolsPluginFactory = ReturnType<typeof createPreactPlugin>[0]\n\nconst plugins = createPreactPlugin({\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,mBAAmB;CACjC,MAAM;CACN,WAAW;CACZ,CAAC;AAEF,MAAa,wBAAsD,QAAQ;AAC3E,MAAa,4BACX,QAAQ"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createPreactPanel } from '@tanstack/devtools-utils/preact'
|
|
2
|
-
import { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'
|
|
3
|
-
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'
|
|
4
|
-
import type { JSX } from 'preact'
|
|
5
|
-
|
|
6
|
-
export interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}
|
|
7
|
-
|
|
8
|
-
type HotkeysDevtoolsPanelComponent = (
|
|
9
|
-
props: HotkeysDevtoolsPreactInit,
|
|
10
|
-
) => JSX.Element
|
|
11
|
-
|
|
12
|
-
const panels = createPreactPanel(HotkeysDevtoolsCore)
|
|
13
|
-
|
|
14
|
-
export const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent = panels[0]
|
|
15
|
-
export const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent = panels[1]
|
package/src/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as Devtools from './PreactHotkeysDevtools'
|
|
2
|
-
import * as plugin from './plugin'
|
|
3
|
-
|
|
4
|
-
export const HotkeysDevtoolsPanel: typeof Devtools.HotkeysDevtoolsPanel =
|
|
5
|
-
process.env.NODE_ENV !== 'development'
|
|
6
|
-
? Devtools.HotkeysDevtoolsPanelNoOp
|
|
7
|
-
: Devtools.HotkeysDevtoolsPanel
|
|
8
|
-
|
|
9
|
-
export const hotkeysDevtoolsPlugin: typeof plugin.hotkeysDevtoolsPlugin =
|
|
10
|
-
process.env.NODE_ENV !== 'development'
|
|
11
|
-
? plugin.hotkeysDevtoolsNoOpPlugin
|
|
12
|
-
: plugin.hotkeysDevtoolsPlugin
|
|
13
|
-
|
|
14
|
-
export type { HotkeysDevtoolsPreactInit } from './PreactHotkeysDevtools'
|
package/src/plugin.tsx
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createPreactPlugin } from '@tanstack/devtools-utils/preact'
|
|
2
|
-
import { HotkeysDevtoolsPanel } from './PreactHotkeysDevtools'
|
|
3
|
-
|
|
4
|
-
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createPreactPlugin>[0]
|
|
5
|
-
|
|
6
|
-
const plugins = createPreactPlugin({
|
|
7
|
-
name: 'TanStack Hotkeys',
|
|
8
|
-
Component: HotkeysDevtoolsPanel,
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory = plugins[0]
|
|
12
|
-
export const hotkeysDevtoolsNoOpPlugin: HotkeysDevtoolsPluginFactory =
|
|
13
|
-
plugins[1]
|