@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.
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/utilities.js.map +1 -1
- package/dist/utilities.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/composables/keyboard.ts +2 -2
- /package/dist/{composables → src/composables}/keyboard.js +0 -0
- /package/dist/{composables → src/composables}/visibility/index.js +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{types → src/types}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"6.0.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/utilities",
|
|
3
|
-
"version": "0.11.
|
|
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.
|
|
37
|
+
"vue": "^3.5.33"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@eslint/js": "^
|
|
41
|
-
"@microsoft/api-documenter": "^7.
|
|
42
|
-
"@rushstack/heft": "^1.2.
|
|
43
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
44
|
-
"eslint": "^
|
|
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.
|
|
47
|
-
"globals": "^17.
|
|
48
|
-
"typescript": "^
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vue": "^3.5.
|
|
51
|
-
"vite": "^7.3.
|
|
52
|
-
"vue-router": "^5.0.
|
|
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 =
|
|
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
|
|
File without changes
|
|
File without changes
|