@stonecrop/utilities 0.11.6 → 0.11.8

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 +1 @@
1
- {"version":"5.9.3"}
1
+ {"version":"6.0.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/utilities",
3
- "version": "0.11.6",
3
+ "version": "0.11.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -34,22 +34,22 @@
34
34
  "xstate": "^5.25.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "vue": "^3.5.28"
37
+ "vue": "^3.5.33"
38
38
  },
39
39
  "devDependencies": {
40
- "@eslint/js": "^9.39.2",
41
- "@microsoft/api-documenter": "^7.28.2",
42
- "@rushstack/heft": "^1.2.0",
43
- "@vitejs/plugin-vue": "^6.0.3",
44
- "eslint": "^9.39.2",
40
+ "@eslint/js": "^10.0.1",
41
+ "@microsoft/api-documenter": "^7.30.5",
42
+ "@rushstack/heft": "^1.2.17",
43
+ "@vitejs/plugin-vue": "^6.0.6",
44
+ "eslint": "^10.3.0",
45
45
  "eslint-config-prettier": "^10.1.8",
46
- "eslint-plugin-vue": "^10.6.2",
47
- "globals": "^17.0.0",
48
- "typescript": "^5.9.3",
49
- "typescript-eslint": "^8.53.0",
50
- "vue": "^3.5.28",
51
- "vite": "^7.3.1",
52
- "vue-router": "^5.0.2",
46
+ "eslint-plugin-vue": "^10.9.0",
47
+ "globals": "^17.6.0",
48
+ "typescript": "^6.0.3",
49
+ "typescript-eslint": "^8.59.1",
50
+ "vue": "^3.5.33",
51
+ "vite": "^7.3.2",
52
+ "vue-router": "^5.0.6",
53
53
  "stonecrop-rig": "0.7.0"
54
54
  },
55
55
  "publishConfig": {
@@ -194,7 +194,7 @@ const getLastCell = (event: KeyboardEvent) => {
194
194
 
195
195
  const modifierKeys = ['alt', 'control', 'shift', 'meta']
196
196
 
197
- const eventKeyMap = {
197
+ const eventKeyMap: Record<string, string> = {
198
198
  ArrowUp: 'up',
199
199
  ArrowDown: 'down',
200
200
  ArrowLeft: 'left',
@@ -404,7 +404,7 @@ export function useKeyboardNav(options: KeyboardNavigationOptions[]) {
404
404
 
405
405
  const getEventListener = (option: KeyboardNavigationOptions) => {
406
406
  return (event: KeyboardEvent) => {
407
- const activeKey = (eventKeyMap[event.key] as string) || event.key.toLowerCase()
407
+ const activeKey = eventKeyMap[event.key] || event.key.toLowerCase()
408
408
  if (modifierKeys.includes(activeKey)) return // ignore modifier key presses
409
409
 
410
410
  const handlers = option.handlers || defaultKeypressHandlers
File without changes
File without changes