@tanstack/hotkeys-devtools 1.8.1 → 1.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.
@@ -1,10 +1,10 @@
1
1
  import { useHotkeysDevtoolsState } from "../HotkeysContextProvider.js";
2
2
  import { useStyles } from "../styles/use-styles.js";
3
3
  import { className, createComponent, effect, insert, memo, template } from "solid-js/web";
4
- import { For, Show } from "solid-js";
5
4
  import { detectPlatform, formatForDisplay } from "@tanstack/hotkeys";
5
+ import { For, Show } from "solid-js";
6
6
 
7
- //#region src/components/HeldKeysTopbar.tsx
7
+ // src/components/HeldKeysTopbar.tsx
8
8
  var _tmpl$ = /*#__PURE__*/ template(`<div><span>Held</span><div>`);
9
9
  var _tmpl$2 = /*#__PURE__*/ template(`<span>--`);
10
10
  var _tmpl$3 = /*#__PURE__*/ template(`<span>`);
@@ -76,5 +76,4 @@ function HeldKeysBar() {
76
76
  })();
77
77
  }
78
78
 
79
- //#endregion
80
79
  export { HeldKeysBar };
@@ -1,15 +1,15 @@
1
- import { effectiveSequenceMatchedSteps } from "../sequence-progress.js";
2
1
  import { useHotkeysDevtoolsState } from "../HotkeysContextProvider.js";
3
- import { useStyles } from "../styles/use-styles.js";
4
2
  import { formatRegistration, getBindingKind, useRegistrationConflicts } from "../_registrations.js";
5
3
  import { groupByScope, scopeStatusDescriptions } from "../_scopes.js";
4
+ import { effectiveSequenceMatchedSteps } from "../sequence-progress.js";
5
+ import { useStyles } from "../styles/use-styles.js";
6
6
  import { className, createComponent, delegateEvents, effect, insert, memo, template } from "solid-js/web";
7
- import { For, Show, createEffect, createMemo, createSignal, on } from "solid-js";
8
7
  import { formatForDisplay } from "@tanstack/hotkeys";
8
+ import { For, Show, createEffect, createMemo, createSignal, on } from "solid-js";
9
9
  import clsx from "clsx";
10
10
  import { matchSorter } from "match-sorter";
11
11
 
12
- //#region src/components/HotkeyList.tsx
12
+ // src/components/HotkeyList.tsx
13
13
  var _tmpl$ = /*#__PURE__*/ template(`<span><span>`);
14
14
  var _tmpl$2 = /*#__PURE__*/ template(`<span data-tooltip>`);
15
15
  var _tmpl$3 = /*#__PURE__*/ template(`<span>`);
@@ -480,5 +480,4 @@ function HotkeyList(props) {
480
480
  }
481
481
  delegateEvents(["click", "input"]);
482
482
 
483
- //#endregion
484
483
  export { HotkeyList, appHotkeySelectionId };
@@ -1,13 +1,13 @@
1
1
  import { useHotkeysDevtoolsState } from "../HotkeysContextProvider.js";
2
2
  import { useStyles } from "../styles/use-styles.js";
3
+ import { DetailsPanel } from "./DetailsPanel.js";
3
4
  import { HeldKeysBar } from "./HeldKeysTopbar.js";
4
5
  import { HotkeyList, appHotkeySelectionId } from "./HotkeyList.js";
5
- import { DetailsPanel } from "./DetailsPanel.js";
6
6
  import { className, createComponent, delegateEvents, effect, insert, setStyleProperty, style, template, use } from "solid-js/web";
7
7
  import { Header, HeaderLogo, MainPanel } from "@tanstack/devtools-ui";
8
8
  import { createEffect, createMemo, createSignal, onCleanup, onMount } from "solid-js";
9
9
 
10
- //#region src/components/Shell.tsx
10
+ // src/components/Shell.tsx
11
11
  var _tmpl$ = /*#__PURE__*/ template(`<div><div><div style=min-width:150px;max-width:800px><div></div></div><div></div><div style=flex:1><div>Details`);
12
12
  var _tmpl$2 = /*#__PURE__*/ template(`<div>`);
13
13
  function readResizeObserverBlockSize(entry) {
@@ -161,5 +161,4 @@ function Shell() {
161
161
  }
162
162
  delegateEvents(["mousedown"]);
163
163
 
164
- //#endregion
165
164
  export { Shell };
@@ -3,7 +3,7 @@ import { Shell } from "./Shell.js";
3
3
  import { createComponent } from "solid-js/web";
4
4
  import { ThemeContextProvider } from "@tanstack/devtools-ui";
5
5
 
6
- //#region src/components/index.tsx
6
+ // src/components/index.tsx
7
7
  function HotkeysDevtools(props) {
8
8
  return createComponent(ThemeContextProvider, {
9
9
  get theme() {
@@ -17,5 +17,4 @@ function HotkeysDevtools(props) {
17
17
  });
18
18
  }
19
19
 
20
- //#endregion
21
20
  export { HotkeysDevtools as default };
package/dist/core.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  import { HotkeysDevtoolsCoreClass } from "./types.js";
2
- //#region src/core.d.ts
3
2
  export interface HotkeysDevtoolsInit {}
4
- export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
5
- //#endregion
3
+ export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
package/dist/core.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { constructCoreClass } from "@tanstack/devtools-utils/solid";
2
2
 
3
- //#region src/core.tsx
3
+ // src/core.tsx
4
4
  const loadComponent = () => import("./components/index.js");
5
5
  const coreClasses = constructCoreClass(loadComponent);
6
6
  const HotkeysDevtoolsCore = coreClasses[0];
7
7
  const HotkeysDevtoolsCoreNoOp = coreClasses[1];
8
8
 
9
- //#endregion
10
9
  export { HotkeysDevtoolsCore, HotkeysDevtoolsCoreNoOp };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { HotkeysDevtoolsCoreClass, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme } from "./types.js";
2
2
  import { HotkeysDevtoolsInit } from "./core.js";
3
- //#region src/index.d.ts
4
3
  export declare const HotkeysDevtoolsCore: HotkeysDevtoolsCoreClass;
5
- //#endregion
6
4
  export type { HotkeysDevtoolsCoreClass, HotkeysDevtoolsInit, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme };
package/dist/index.js CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  import { HotkeysDevtoolsCore as HotkeysDevtoolsCore$1, HotkeysDevtoolsCoreNoOp } from "./core.js";
4
4
 
5
- //#region src/index.ts
5
+ // src/index.ts
6
6
  const HotkeysDevtoolsCore = process.env.NODE_ENV !== "development" ? HotkeysDevtoolsCoreNoOp : HotkeysDevtoolsCore$1;
7
7
 
8
- //#endregion
9
8
  export { HotkeysDevtoolsCore };
@@ -1,3 +1,3 @@
1
- import { HotkeysDevtoolsCoreClass, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme } from "./types.js";
2
1
  import { HotkeysDevtoolsCore, HotkeysDevtoolsInit } from "./core.js";
2
+ import { HotkeysDevtoolsCoreClass, HotkeysDevtoolsPanelProps, HotkeysDevtoolsTheme } from "./types.js";
3
3
  export { HotkeysDevtoolsCore, type HotkeysDevtoolsCoreClass, type HotkeysDevtoolsInit, type HotkeysDevtoolsPanelProps, type HotkeysDevtoolsTheme };
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_SEQUENCE_TIMEOUT } from "@tanstack/hotkeys";
2
2
 
3
- //#region src/sequence-progress.ts
3
+ // src/sequence-progress.ts
4
4
  /**
5
5
  * Matched step count for UI, accounting for inter-key timeout even if the
6
6
  * manager has not processed another event yet.
@@ -15,5 +15,4 @@ function needsSequenceProgressClock(regs, now) {
15
15
  return regs.some((reg) => reg.kind === "sequence" && effectiveSequenceMatchedSteps(reg, now) > 0);
16
16
  }
17
17
 
18
- //#endregion
19
18
  export { effectiveSequenceMatchedSteps, needsSequenceProgressClock };
@@ -1,4 +1,4 @@
1
- //#region src/styles/tokens.ts
1
+ // src/styles/tokens.ts
2
2
  const tokens = {
3
3
  colors: {
4
4
  inherit: "inherit",
@@ -296,5 +296,4 @@ const tokens = {
296
296
  }
297
297
  };
298
298
 
299
- //#endregion
300
299
  export { tokens };
@@ -3,7 +3,7 @@ import { createTheme } from "@tanstack/devtools-ui";
3
3
  import { createEffect, createSignal } from "solid-js";
4
4
  import * as goober from "goober";
5
5
 
6
- //#region src/styles/use-styles.ts
6
+ // src/styles/use-styles.ts
7
7
  const stylesFactory = (theme) => {
8
8
  const { colors, font, size, alpha, border } = tokens;
9
9
  const { fontFamily, size: fontSize } = font;
@@ -653,6 +653,14 @@ const stylesFactory = (theme) => {
653
653
  background: ${t(colors.blue[50], colors.blue[900] + alpha[20])};
654
654
  border-radius: ${border.radius.sm};
655
655
  border: 1px solid ${t(colors.blue[200], colors.blue[800] + alpha[30])};
656
+ `,
657
+ issueItem: css`
658
+ font-size: ${fontSize.xs};
659
+ color: ${t(colors.yellow[700], colors.yellow[400])};
660
+ padding: ${size[1]} ${size[2]};
661
+ background: ${t(colors.yellow[50], colors.yellow[900] + alpha[20])};
662
+ border-radius: ${border.radius.sm};
663
+ border: 1px solid ${t(colors.yellow[200], colors.yellow[800] + alpha[30])};
656
664
  `,
657
665
  optionRow: css`
658
666
  display: flex;
@@ -750,5 +758,4 @@ function useStyles() {
750
758
  return styles;
751
759
  }
752
760
 
753
- //#endregion
754
761
  export { useStyles };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  /** The devtools color theme. */
3
2
  export type HotkeysDevtoolsTheme = 'light' | 'dark';
4
3
  /**
@@ -17,5 +16,4 @@ export interface HotkeysDevtoolsPanelProps {
17
16
  export type HotkeysDevtoolsCoreClass = new () => {
18
17
  mount: (el: HTMLElement, props: HotkeysDevtoolsPanelProps) => Promise<void>;
19
18
  unmount: () => void;
20
- };
21
- //#endregion
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/hotkeys-devtools",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Devtools for TanStack Hotkeys",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "dist"
37
37
  ],
38
38
  "peerDependencies": {
39
- "@tanstack/hotkeys": "0.24.0"
39
+ "@tanstack/hotkeys": "0.25.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@tanstack/devtools-ui": "^0.7.2",
@@ -44,16 +44,16 @@
44
44
  "clsx": "^2.1.1",
45
45
  "goober": "^2.1.19",
46
46
  "match-sorter": "^8.3.0",
47
- "solid-js": "^1.9.15"
47
+ "solid-js": "^1.9.18"
48
48
  },
49
49
  "devDependencies": {
50
- "vite-plugin-solid": "^2.11.14"
50
+ "vite-plugin-solid": "^2.11.15"
51
51
  },
52
52
  "scripts": {
53
53
  "clean": "premove ./build ./dist",
54
- "lint": "eslint ./src",
55
- "lint:fix": "eslint ./src --fix",
56
- "test:eslint": "eslint ./src",
54
+ "lint": "oxlint ./src",
55
+ "lint:fix": "oxlint ./src --fix",
56
+ "test:oxlint": "oxlint ./src",
57
57
  "test:lib": "vitest --passWithNoTests",
58
58
  "test:lib:dev": "pnpm test:lib --watch",
59
59
  "test:types": "tsc",