@witchcraft/spellcraft 0.0.2 → 0.0.3
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/useLabeledByKeyboardLayoutMap.d.ts +2 -2
- package/dist/runtime/composables/useShortcutManagerContextCount.d.ts +2 -2
- package/dist/runtime/composables/useShortcutManagerKeysLayout.d.ts +1 -1
- package/dist/runtime/composables/useShortcutManagerVirtualPress.d.ts +1 -1
- package/dist/runtime/utils/shortcutToId.d.ts +3 -3
- package/package.json +5 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Ref } from "vue";
|
|
2
|
-
import { labelWithKeyboardMap } from "../../helpers/labelWithKeyboardMap.js
|
|
3
|
-
import type { Manager } from "../../types/manager.js
|
|
2
|
+
import { labelWithKeyboardMap } from "../../helpers/labelWithKeyboardMap.js";
|
|
3
|
+
import type { Manager } from "../../types/manager.js";
|
|
4
4
|
/**
|
|
5
5
|
* Sets up {@link getKeyboardLayoutMap} and {@link onKeyboardLayoutChange} to use {@link labelWithKeyboardMap}.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
-
import type { Manager } from "../../types/manager.js
|
|
3
|
-
import type { ContextInfo } from "../types.js
|
|
2
|
+
import type { Manager } from "../../types/manager.js";
|
|
3
|
+
import type { ContextInfo } from "../types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Updates the count of the ctx variables depending on how many shortcuts are using the variable. Requires shortcuts use the expressit library to set the ast property of conditions.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from "vue";
|
|
2
|
-
import type { Keys } from "../../types/keys.js
|
|
2
|
+
import type { Keys } from "../../types/keys.js";
|
|
3
3
|
/**
|
|
4
4
|
* Watches Keys.layout.x/y and listens to resize changes on the element containing the keys to update what the pixel height of the element should be and what the pixel keyWidth.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from "vue";
|
|
2
|
-
import type { ManagerListener } from "../../types/index.js
|
|
2
|
+
import type { ManagerListener } from "../../types/index.js";
|
|
3
3
|
export declare function useShortcutManagerVirtualPress(): {
|
|
4
4
|
virtuallyPressedKeys: Ref<Record<string, boolean>>;
|
|
5
5
|
updateVirtuallyPressed: ManagerListener;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PickManager } from "../../types/general.js
|
|
2
|
-
import type { Manager } from "../../types/manager.js
|
|
3
|
-
import type { Shortcut } from "../../types/shortcuts.js
|
|
1
|
+
import type { PickManager } from "../../types/general.js";
|
|
2
|
+
import type { Manager } from "../../types/manager.js";
|
|
3
|
+
import type { Shortcut } from "../../types/shortcuts.js";
|
|
4
4
|
/** Turns a shortcut into an id to use in a v-for loop. */
|
|
5
5
|
export declare const shortcutToId: (shortcut: Shortcut, manager: PickManager<"options", "stringifier"> & Pick<Manager, "keys">) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/spellcraft",
|
|
3
3
|
"description": "A shortcut manager library for handling ALL the shortcut needs of an application.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/core/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"prepare": "husky && cd playground && pnpm i",
|
|
42
|
+
"prepare": "husky && pnpm nuxt-module-build prepare && pnpm build:only && cd playground && pnpm i --ignore-scripts --ignore-workspace",
|
|
43
43
|
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
|
|
44
44
|
"build:only": "nuxt-module-build build",
|
|
45
45
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"lint:types": "vue-tsc --noEmit && echo 'todo cd playground && vue-tsc --noEmit'",
|
|
60
60
|
"lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
|
|
61
61
|
"lint:imports": "madge --circular --extensions ts ./src",
|
|
62
|
-
"lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:imports",
|
|
62
|
+
"lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:commits && pnpm lint:imports",
|
|
63
63
|
"actions:debug": "act -r -v",
|
|
64
64
|
"gen:exports": "indexit update -o '${path}.js'"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@witchcraft/expressit": "^0.4.0",
|
|
68
|
-
"@witchcraft/ui": "^0.3.
|
|
68
|
+
"@witchcraft/ui": "^0.3.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@witchcraft/ui": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@alanscodelog/utils": "^6.0.2",
|
|
80
80
|
"@witchcraft/expressit": "^0.4.1",
|
|
81
|
-
"@witchcraft/ui": "^0.3.
|
|
81
|
+
"@witchcraft/ui": "^0.3.2",
|
|
82
82
|
"vue": "^3.5.21"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|