@opendaw/lib-dom 0.0.66 → 0.0.67
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/keyboard.d.ts +0 -3
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/keyboard.js +0 -1
- package/package.json +4 -4
package/dist/keyboard.d.ts
CHANGED
|
@@ -3,9 +3,6 @@ export declare namespace Keyboard {
|
|
|
3
3
|
ctrlKey: boolean;
|
|
4
4
|
metaKey: boolean;
|
|
5
5
|
}) => boolean;
|
|
6
|
-
const isCopyKey: ({ altKey }: {
|
|
7
|
-
altKey: boolean;
|
|
8
|
-
}) => boolean;
|
|
9
6
|
const isDelete: (event: KeyboardEvent) => boolean;
|
|
10
7
|
const isSelectAll: (event: KeyboardEvent) => boolean;
|
|
11
8
|
const isDeselectAll: (event: KeyboardEvent) => boolean;
|
package/dist/keyboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"AAEA,yBAAiB,QAAQ,CAAC;IACf,MAAM,YAAY,GAAI,sBAAoB;QAC7C,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAA;KACnB,YAA0C,CAAA;IACpC,MAAM,
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"AAEA,yBAAiB,QAAQ,CAAC;IACf,MAAM,YAAY,GAAI,sBAAoB;QAC7C,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAA;KACnB,YAA0C,CAAA;IACpC,MAAM,QAAQ,GAAI,OAAO,aAAa,YAA0D,CAAA;IAChG,MAAM,WAAW,GAAI,OAAO,aAAa,YAAoE,CAAA;IAC7G,MAAM,aAAa,GAAI,OAAO,aAAa,YAAmE,CAAA;CACxH"}
|
package/dist/keyboard.js
CHANGED
|
@@ -2,7 +2,6 @@ import { Browser } from "./browser";
|
|
|
2
2
|
export var Keyboard;
|
|
3
3
|
(function (Keyboard) {
|
|
4
4
|
Keyboard.isControlKey = ({ ctrlKey, metaKey }) => Browser.isMacOS() ? metaKey : ctrlKey;
|
|
5
|
-
Keyboard.isCopyKey = ({ altKey }) => altKey;
|
|
6
5
|
Keyboard.isDelete = (event) => event.code === "Delete" || event.code === "Backspace";
|
|
7
6
|
Keyboard.isSelectAll = (event) => Keyboard.isControlKey(event) && !event.shiftKey && event.code === "KeyA";
|
|
8
7
|
Keyboard.isDeselectAll = (event) => Keyboard.isControlKey(event) && event.shiftKey && event.code === "KeyA";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/lib-dom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"test": "vitest run"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@opendaw/lib-runtime": "^0.0.
|
|
27
|
-
"@opendaw/lib-std": "^0.0.
|
|
26
|
+
"@opendaw/lib-runtime": "^0.0.65",
|
|
27
|
+
"@opendaw/lib-std": "^0.0.65",
|
|
28
28
|
"@types/wicg-file-system-access": "^2023.10.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@opendaw/eslint-config": "^0.0.27",
|
|
32
32
|
"@opendaw/typescript-config": "^0.0.28"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "63d82cef8935683a8419bd146ba8da05c6034c08"
|
|
35
35
|
}
|