@tanstack/preact-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/PreactHotkeysDevtools.d.ts +4 -1
- package/dist/PreactHotkeysDevtools.js +3 -1
- package/dist/PreactHotkeysDevtools.js.map +1 -1
- package/dist/index.d.ts +4 -10
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +8 -0
- package/dist/plugin.js +3 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
- package/src/PreactHotkeysDevtools.tsx +8 -3
- package/src/index.ts +2 -2
- package/src/plugin.tsx +6 -2
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/preact";
|
|
2
|
+
import { JSX } from "preact";
|
|
2
3
|
|
|
3
4
|
//#region src/PreactHotkeysDevtools.d.ts
|
|
4
5
|
interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}
|
|
6
|
+
type HotkeysDevtoolsPanelComponent = (props: HotkeysDevtoolsPreactInit) => JSX.Element;
|
|
7
|
+
declare const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent;
|
|
5
8
|
//#endregion
|
|
6
|
-
export { HotkeysDevtoolsPreactInit };
|
|
9
|
+
export { HotkeysDevtoolsPanel, HotkeysDevtoolsPreactInit };
|
|
7
10
|
//# sourceMappingURL=PreactHotkeysDevtools.d.ts.map
|
|
@@ -2,7 +2,9 @@ import { createPreactPanel } from "@tanstack/devtools-utils/preact";
|
|
|
2
2
|
import { HotkeysDevtoolsCore } from "@tanstack/hotkeys-devtools";
|
|
3
3
|
|
|
4
4
|
//#region src/PreactHotkeysDevtools.tsx
|
|
5
|
-
const
|
|
5
|
+
const panels = createPreactPanel(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":"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'\n\nexport interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}\n\
|
|
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.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { HotkeysDevtoolsPreactInit } from "./PreactHotkeysDevtools.js";
|
|
2
|
-
import
|
|
3
|
-
import * as preact from "preact";
|
|
1
|
+
import { HotkeysDevtoolsPanel as HotkeysDevtoolsPanel$1, HotkeysDevtoolsPreactInit } from "./PreactHotkeysDevtools.js";
|
|
2
|
+
import { hotkeysDevtoolsPlugin as hotkeysDevtoolsPlugin$1 } from "./plugin.js";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
|
-
declare const HotkeysDevtoolsPanel:
|
|
7
|
-
declare const hotkeysDevtoolsPlugin:
|
|
8
|
-
render: (_el: HTMLElement, props: TanStackDevtoolsPluginProps) => preact.JSX.Element;
|
|
9
|
-
name: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare const HotkeysDevtoolsPanel: typeof HotkeysDevtoolsPanel$1;
|
|
6
|
+
declare const hotkeysDevtoolsPlugin: typeof hotkeysDevtoolsPlugin$1;
|
|
13
7
|
//#endregion
|
|
14
8
|
export { HotkeysDevtoolsPanel, type HotkeysDevtoolsPreactInit, hotkeysDevtoolsPlugin };
|
|
15
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":["import * as Devtools from './PreactHotkeysDevtools'\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 { HotkeysDevtoolsPreactInit } from './PreactHotkeysDevtools'\n"],"mappings":";;;;AAGA,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":["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.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
2
|
+
|
|
3
|
+
//#region src/plugin.d.ts
|
|
4
|
+
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createPreactPlugin>[0];
|
|
5
|
+
declare const hotkeysDevtoolsPlugin: HotkeysDevtoolsPluginFactory;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { hotkeysDevtoolsPlugin };
|
|
8
|
+
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.js
CHANGED
|
@@ -2,10 +2,12 @@ import { HotkeysDevtoolsPanel } from "./PreactHotkeysDevtools.js";
|
|
|
2
2
|
import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.tsx
|
|
5
|
-
const
|
|
5
|
+
const plugins = createPreactPlugin({
|
|
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 { createPreactPlugin } from '@tanstack/devtools-utils/preact'\nimport { HotkeysDevtoolsPanel } from './PreactHotkeysDevtools'\n\
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-hotkeys-devtools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Preact devtools for TanStack Hotkeys",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@tanstack/devtools-utils": "^0.4.0",
|
|
44
|
-
"@tanstack/hotkeys-devtools": "0.4.
|
|
44
|
+
"@tanstack/hotkeys-devtools": "0.4.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@preact/preset-vite": "^2.10.
|
|
48
|
-
"preact": "^10.
|
|
47
|
+
"@preact/preset-vite": "^2.10.5",
|
|
48
|
+
"preact": "^10.29.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"clean": "premove ./build ./dist",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { createPreactPanel } from '@tanstack/devtools-utils/preact'
|
|
2
2
|
import { HotkeysDevtoolsCore } from '@tanstack/hotkeys-devtools'
|
|
3
3
|
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'
|
|
4
|
+
import type { JSX } from 'preact'
|
|
4
5
|
|
|
5
6
|
export interface HotkeysDevtoolsPreactInit extends DevtoolsPanelProps {}
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
type HotkeysDevtoolsPanelComponent = (
|
|
9
|
+
props: HotkeysDevtoolsPreactInit,
|
|
10
|
+
) => JSX.Element
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
const panels = createPreactPanel(HotkeysDevtoolsCore)
|
|
13
|
+
|
|
14
|
+
export const HotkeysDevtoolsPanel: HotkeysDevtoolsPanelComponent = panels[0]
|
|
15
|
+
export const HotkeysDevtoolsPanelNoOp: HotkeysDevtoolsPanelComponent = panels[1]
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Devtools from './PreactHotkeysDevtools'
|
|
2
2
|
import * as plugin from './plugin'
|
|
3
3
|
|
|
4
|
-
export const HotkeysDevtoolsPanel =
|
|
4
|
+
export const HotkeysDevtoolsPanel: typeof Devtools.HotkeysDevtoolsPanel =
|
|
5
5
|
process.env.NODE_ENV !== 'development'
|
|
6
6
|
? Devtools.HotkeysDevtoolsPanelNoOp
|
|
7
7
|
: Devtools.HotkeysDevtoolsPanel
|
|
8
8
|
|
|
9
|
-
export const hotkeysDevtoolsPlugin =
|
|
9
|
+
export const hotkeysDevtoolsPlugin: typeof plugin.hotkeysDevtoolsPlugin =
|
|
10
10
|
process.env.NODE_ENV !== 'development'
|
|
11
11
|
? plugin.hotkeysDevtoolsNoOpPlugin
|
|
12
12
|
: plugin.hotkeysDevtoolsPlugin
|
package/src/plugin.tsx
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { createPreactPlugin } from '@tanstack/devtools-utils/preact'
|
|
2
2
|
import { HotkeysDevtoolsPanel } from './PreactHotkeysDevtools'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type HotkeysDevtoolsPluginFactory = ReturnType<typeof createPreactPlugin>[0]
|
|
5
|
+
|
|
6
|
+
const plugins = createPreactPlugin({
|
|
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]
|