@keybindy/react 1.1.6 → 1.1.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -3
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -118,9 +118,12 @@ type UseKeybindyReturn = {
118
118
  disable: (keys: Keys[], scope?: string) => void;
119
119
  toggle: (keys: Keys[], scope?: string) => void;
120
120
  setScope: (scope: string) => void;
121
- getCheatSheet: (scope?: string) => {
122
- keys: string[];
123
- }[] | undefined;
121
+ getCheatSheet: (scope?: string) => ({
122
+ keys: Keys[] | Keys[][];
123
+ hold: boolean;
124
+ sequential: boolean;
125
+ enabled: boolean;
126
+ } & Record<string, any>)[] | undefined;
124
127
  destroy: () => void;
125
128
  getScopeInfo: (scope?: string) => any;
126
129
  getActiveScope: () => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keybindy/react",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Keybindy for React: Simple, scoped keyboard shortcuts that require little setup. designed to smoothly blend in with your React applications, allowing for robust keybinding functionality without the overhead.",
5
5
  "author": {
6
6
  "name": "PRASSamin",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "react": "^19.1.0",
54
- "@keybindy/core": "1.1.5"
54
+ "@keybindy/core": "1.1.6"
55
55
  },
56
56
  "scripts": {
57
57
  "format": "prettier --write \"src/**/*.{ts,tsx}\"",