@microsoft/fast-web-utilities
Advanced tools
Comparing version 5.4.1 to 6.0.0
@@ -5,3 +5,52 @@ { | ||
{ | ||
"date": "Wed, 04 May 2022 07:11:50 GMT", | ||
"date": "Wed, 01 Jun 2022 17:53:14 GMT", | ||
"tag": "@microsoft/fast-web-utilities_v6.0.0", | ||
"version": "6.0.0", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "chore: update package.json metadata", | ||
"author": "roeisenb@microsoft.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
}, | ||
{ | ||
"comment": "update api extractor and typescript to use the latest versions", | ||
"author": "chhol@microsoft.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
}, | ||
{ | ||
"comment": "Bump @microsoft/eslint-config-fast-dna to v2.1.0", | ||
"author": "roeisenb@microsoft.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
} | ||
], | ||
"patch": [ | ||
{ | ||
"comment": "chore: fix broken build", | ||
"author": "roeisenb@microsoft.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
}, | ||
{ | ||
"comment": "Upgrade TypeScript", | ||
"author": "nicholasrice@users.noreply.github.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
} | ||
], | ||
"major": [ | ||
{ | ||
"comment": "remove deprecated keycodes and add additional keys", | ||
"author": "chhol@microsoft.com", | ||
"commit": "4699e77715068f8610aae908ede6356a249574b6", | ||
"package": "@microsoft/fast-web-utilities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 04 May 2022 07:14:00 GMT", | ||
"tag": "@microsoft/fast-web-utilities_v5.4.1", | ||
@@ -8,0 +57,0 @@ "version": "5.4.1", |
# Change Log - @microsoft/fast-web-utilities | ||
This log was last generated on Wed, 04 May 2022 07:11:50 GMT and should not be manually modified. | ||
This log was last generated on Wed, 01 Jun 2022 17:53:14 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 6.0.0 | ||
Wed, 01 Jun 2022 17:53:14 GMT | ||
### Major changes | ||
- remove deprecated keycodes and add additional keys (chhol@microsoft.com) | ||
### Patches | ||
- chore: fix broken build (roeisenb@microsoft.com) | ||
- Upgrade TypeScript (nicholasrice@users.noreply.github.com) | ||
## 5.4.1 | ||
Wed, 04 May 2022 07:11:50 GMT | ||
Wed, 04 May 2022 07:14:00 GMT | ||
@@ -11,0 +24,0 @@ ### Patches |
@@ -9,7 +9,2 @@ /** | ||
export declare function getDisplayedNodes(rootNode: HTMLElement | null | undefined, selector: string | null | undefined): HTMLElement[] | void; | ||
/** | ||
* Gets the numeric key code associated with a keyboard event. This method is for use with DOM level 3 events | ||
* that still use the deprecated keyCode property. | ||
*/ | ||
export declare function getKeyCode(event: KeyboardEvent | null): number | null; | ||
export declare function canUseFocusVisible(): boolean; | ||
@@ -16,0 +11,0 @@ export declare function canUseCssGrid(): boolean; |
@@ -21,9 +21,2 @@ import { canUseDOM } from "exenv-es6"; | ||
/** | ||
* Gets the numeric key code associated with a keyboard event. This method is for use with DOM level 3 events | ||
* that still use the deprecated keyCode property. | ||
*/ | ||
export function getKeyCode(event) { | ||
return event === null ? null : event.which || event.keyCode || event.charCode; | ||
} | ||
/** | ||
* Returns the nonce used in the page, if any. | ||
@@ -30,0 +23,0 @@ * |
/** | ||
* Key Code values | ||
* @deprecated - KeyCodes are deprecated, use individual string key exports | ||
*/ | ||
export declare enum KeyCodes { | ||
alt = 18, | ||
arrowDown = 40, | ||
arrowLeft = 37, | ||
arrowRight = 39, | ||
arrowUp = 38, | ||
back = 8, | ||
backSlash = 220, | ||
break = 19, | ||
capsLock = 20, | ||
closeBracket = 221, | ||
colon = 186, | ||
colon2 = 59, | ||
comma = 188, | ||
ctrl = 17, | ||
delete = 46, | ||
end = 35, | ||
enter = 13, | ||
equals = 187, | ||
equals2 = 61, | ||
equals3 = 107, | ||
escape = 27, | ||
forwardSlash = 191, | ||
function1 = 112, | ||
function10 = 121, | ||
function11 = 122, | ||
function12 = 123, | ||
function2 = 113, | ||
function3 = 114, | ||
function4 = 115, | ||
function5 = 116, | ||
function6 = 117, | ||
function7 = 118, | ||
function8 = 119, | ||
function9 = 120, | ||
home = 36, | ||
insert = 45, | ||
menu = 93, | ||
minus = 189, | ||
minus2 = 109, | ||
numLock = 144, | ||
numPad0 = 96, | ||
numPad1 = 97, | ||
numPad2 = 98, | ||
numPad3 = 99, | ||
numPad4 = 100, | ||
numPad5 = 101, | ||
numPad6 = 102, | ||
numPad7 = 103, | ||
numPad8 = 104, | ||
numPad9 = 105, | ||
numPadDivide = 111, | ||
numPadDot = 110, | ||
numPadMinus = 109, | ||
numPadMultiply = 106, | ||
numPadPlus = 107, | ||
openBracket = 219, | ||
pageDown = 34, | ||
pageUp = 33, | ||
period = 190, | ||
print = 44, | ||
quote = 222, | ||
scrollLock = 145, | ||
shift = 16, | ||
space = 32, | ||
tab = 9, | ||
tilde = 192, | ||
windowsLeft = 91, | ||
windowsOpera = 219, | ||
windowsRight = 92 | ||
} | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeAlt: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeArrowDown: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeArrowLeft: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeArrowRight: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeArrowUp: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeBack: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeBackSlash: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeBreak: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeCapsLock: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeCloseBracket: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeColon: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeColon2: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeComma: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeCtrl: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeDelete: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEnd: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEnter: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEquals: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEquals2: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEquals3: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeEscape: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeForwardSlash: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction1: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction10: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction11: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction12: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction2: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction3: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction4: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction5: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction6: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction7: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction8: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeFunction9: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeHome: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeInsert: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeMenu: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeMinus: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeMinus2: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumLock: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad0: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad1: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad2: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad3: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad4: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad5: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad6: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad7: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad8: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPad9: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPadDivide: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPadDot: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPadMinus: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPadMultiply: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeNumPadPlus: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeOpenBracket: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodePageDown: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodePageUp: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodePeriod: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodePrint: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeQuote: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeScrollLock: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeShift: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeSpace: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeTab: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeTilde: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeWindowsLeft: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeWindowsOpera: number; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export declare const keyCodeWindowsRight: number; | ||
/** | ||
* String values for use with KeyboardEvent.key | ||
*/ | ||
export declare const keyAlt: "Alt"; | ||
export declare const keyAltGraph: "AltGraph"; | ||
export declare const keyCapsLock: "CapsLock"; | ||
export declare const keyControl: "Control"; | ||
export declare const keyArrowDown: "ArrowDown"; | ||
@@ -359,13 +12,31 @@ export declare const keyArrowLeft: "ArrowLeft"; | ||
export declare const keyArrowUp: "ArrowUp"; | ||
export declare const keyBackspace: "Backspace"; | ||
export declare const keyDelete: "Delete"; | ||
export declare const keyEnd: "End"; | ||
export declare const keyEnter: "Enter"; | ||
export declare const keyEscape: "Escape"; | ||
export declare const keyHome: "Home"; | ||
export declare const keyEnd: "End"; | ||
export declare const keyFunction: "Fn"; | ||
export declare const keyFunctionLock: "FnLock"; | ||
export declare const keyFunction2: "F2"; | ||
export declare const keyFunction3: "F3"; | ||
export declare const keyFunction4: "F4"; | ||
export declare const keyFunction5: "F5"; | ||
export declare const keyFunction6: "F6"; | ||
export declare const keyFunction7: "F7"; | ||
export declare const keyFunction8: "F8"; | ||
export declare const keyFunction9: "F9"; | ||
export declare const keyFunction10: "F10"; | ||
export declare const keyFunction11: "F11"; | ||
export declare const keyFunction12: "F12"; | ||
export declare const keyFunction13: "F13"; | ||
export declare const keyFunction14: "F14"; | ||
export declare const keyFunction15: "F15"; | ||
export declare const keyNumLock: "NumLock"; | ||
export declare const keyPageDown: "PageDown"; | ||
export declare const keyPageUp: "PageUp"; | ||
export declare const keyScrollLock: "ScrollLock"; | ||
export declare const keyShift: "Shift"; | ||
export declare const keySpace: " "; | ||
export declare const keyTab: "Tab"; | ||
export declare const keyBackspace: "Backspace"; | ||
export declare const keyDelete: "Delete"; | ||
export declare const ArrowKeys: { | ||
@@ -372,0 +43,0 @@ readonly ArrowDown: "ArrowDown"; |
/** | ||
* Key Code values | ||
* @deprecated - KeyCodes are deprecated, use individual string key exports | ||
*/ | ||
export var KeyCodes; | ||
(function (KeyCodes) { | ||
KeyCodes[KeyCodes["alt"] = 18] = "alt"; | ||
KeyCodes[KeyCodes["arrowDown"] = 40] = "arrowDown"; | ||
KeyCodes[KeyCodes["arrowLeft"] = 37] = "arrowLeft"; | ||
KeyCodes[KeyCodes["arrowRight"] = 39] = "arrowRight"; | ||
KeyCodes[KeyCodes["arrowUp"] = 38] = "arrowUp"; | ||
KeyCodes[KeyCodes["back"] = 8] = "back"; | ||
KeyCodes[KeyCodes["backSlash"] = 220] = "backSlash"; | ||
KeyCodes[KeyCodes["break"] = 19] = "break"; | ||
KeyCodes[KeyCodes["capsLock"] = 20] = "capsLock"; | ||
KeyCodes[KeyCodes["closeBracket"] = 221] = "closeBracket"; | ||
KeyCodes[KeyCodes["colon"] = 186] = "colon"; | ||
KeyCodes[KeyCodes["colon2"] = 59] = "colon2"; | ||
KeyCodes[KeyCodes["comma"] = 188] = "comma"; | ||
KeyCodes[KeyCodes["ctrl"] = 17] = "ctrl"; | ||
KeyCodes[KeyCodes["delete"] = 46] = "delete"; | ||
KeyCodes[KeyCodes["end"] = 35] = "end"; | ||
KeyCodes[KeyCodes["enter"] = 13] = "enter"; | ||
KeyCodes[KeyCodes["equals"] = 187] = "equals"; | ||
KeyCodes[KeyCodes["equals2"] = 61] = "equals2"; | ||
KeyCodes[KeyCodes["equals3"] = 107] = "equals3"; | ||
KeyCodes[KeyCodes["escape"] = 27] = "escape"; | ||
KeyCodes[KeyCodes["forwardSlash"] = 191] = "forwardSlash"; | ||
KeyCodes[KeyCodes["function1"] = 112] = "function1"; | ||
KeyCodes[KeyCodes["function10"] = 121] = "function10"; | ||
KeyCodes[KeyCodes["function11"] = 122] = "function11"; | ||
KeyCodes[KeyCodes["function12"] = 123] = "function12"; | ||
KeyCodes[KeyCodes["function2"] = 113] = "function2"; | ||
KeyCodes[KeyCodes["function3"] = 114] = "function3"; | ||
KeyCodes[KeyCodes["function4"] = 115] = "function4"; | ||
KeyCodes[KeyCodes["function5"] = 116] = "function5"; | ||
KeyCodes[KeyCodes["function6"] = 117] = "function6"; | ||
KeyCodes[KeyCodes["function7"] = 118] = "function7"; | ||
KeyCodes[KeyCodes["function8"] = 119] = "function8"; | ||
KeyCodes[KeyCodes["function9"] = 120] = "function9"; | ||
KeyCodes[KeyCodes["home"] = 36] = "home"; | ||
KeyCodes[KeyCodes["insert"] = 45] = "insert"; | ||
KeyCodes[KeyCodes["menu"] = 93] = "menu"; | ||
KeyCodes[KeyCodes["minus"] = 189] = "minus"; | ||
KeyCodes[KeyCodes["minus2"] = 109] = "minus2"; | ||
KeyCodes[KeyCodes["numLock"] = 144] = "numLock"; | ||
KeyCodes[KeyCodes["numPad0"] = 96] = "numPad0"; | ||
KeyCodes[KeyCodes["numPad1"] = 97] = "numPad1"; | ||
KeyCodes[KeyCodes["numPad2"] = 98] = "numPad2"; | ||
KeyCodes[KeyCodes["numPad3"] = 99] = "numPad3"; | ||
KeyCodes[KeyCodes["numPad4"] = 100] = "numPad4"; | ||
KeyCodes[KeyCodes["numPad5"] = 101] = "numPad5"; | ||
KeyCodes[KeyCodes["numPad6"] = 102] = "numPad6"; | ||
KeyCodes[KeyCodes["numPad7"] = 103] = "numPad7"; | ||
KeyCodes[KeyCodes["numPad8"] = 104] = "numPad8"; | ||
KeyCodes[KeyCodes["numPad9"] = 105] = "numPad9"; | ||
KeyCodes[KeyCodes["numPadDivide"] = 111] = "numPadDivide"; | ||
KeyCodes[KeyCodes["numPadDot"] = 110] = "numPadDot"; | ||
KeyCodes[KeyCodes["numPadMinus"] = 109] = "numPadMinus"; | ||
KeyCodes[KeyCodes["numPadMultiply"] = 106] = "numPadMultiply"; | ||
KeyCodes[KeyCodes["numPadPlus"] = 107] = "numPadPlus"; | ||
KeyCodes[KeyCodes["openBracket"] = 219] = "openBracket"; | ||
KeyCodes[KeyCodes["pageDown"] = 34] = "pageDown"; | ||
KeyCodes[KeyCodes["pageUp"] = 33] = "pageUp"; | ||
KeyCodes[KeyCodes["period"] = 190] = "period"; | ||
KeyCodes[KeyCodes["print"] = 44] = "print"; | ||
KeyCodes[KeyCodes["quote"] = 222] = "quote"; | ||
KeyCodes[KeyCodes["scrollLock"] = 145] = "scrollLock"; | ||
KeyCodes[KeyCodes["shift"] = 16] = "shift"; | ||
KeyCodes[KeyCodes["space"] = 32] = "space"; | ||
KeyCodes[KeyCodes["tab"] = 9] = "tab"; | ||
KeyCodes[KeyCodes["tilde"] = 192] = "tilde"; | ||
KeyCodes[KeyCodes["windowsLeft"] = 91] = "windowsLeft"; | ||
KeyCodes[KeyCodes["windowsOpera"] = 219] = "windowsOpera"; | ||
KeyCodes[KeyCodes["windowsRight"] = 92] = "windowsRight"; | ||
})(KeyCodes || (KeyCodes = {})); | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeAlt = 18; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeArrowDown = 40; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeArrowLeft = 37; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeArrowRight = 39; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeArrowUp = 38; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeBack = 8; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeBackSlash = 220; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeBreak = 19; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeCapsLock = 20; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeCloseBracket = 221; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeColon = 186; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeColon2 = 59; // Opera and Firefox | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeComma = 188; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeCtrl = 17; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeDelete = 46; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEnd = 35; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEnter = 13; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEquals = 187; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEquals2 = 61; // Opera | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEquals3 = 107; // Firefox | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeEscape = 27; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeForwardSlash = 191; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction1 = 112; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction10 = 121; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction11 = 122; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction12 = 123; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction2 = 113; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction3 = 114; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction4 = 115; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction5 = 116; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction6 = 117; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction7 = 118; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction8 = 119; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeFunction9 = 120; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeHome = 36; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeInsert = 45; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeMenu = 93; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeMinus = 189; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeMinus2 = 109; // Opera and Firefox | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumLock = 144; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad0 = 96; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad1 = 97; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad2 = 98; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad3 = 99; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad4 = 100; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad5 = 101; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad6 = 102; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad7 = 103; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad8 = 104; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPad9 = 105; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPadDivide = 111; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPadDot = 110; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPadMinus = 109; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPadMultiply = 106; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeNumPadPlus = 107; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeOpenBracket = 219; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodePageDown = 34; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodePageUp = 33; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodePeriod = 190; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodePrint = 44; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeQuote = 222; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeScrollLock = 145; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeShift = 16; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeSpace = 32; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeTab = 9; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeTilde = 192; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeWindowsLeft = 91; | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeWindowsOpera = 219; // Opera | ||
/** | ||
* @deprecated - KeyCodes are deprecated, use string key exports | ||
*/ | ||
export const keyCodeWindowsRight = 92; | ||
/** | ||
* String values for use with KeyboardEvent.key | ||
*/ | ||
export const keyAlt = "Alt"; | ||
export const keyAltGraph = "AltGraph"; | ||
export const keyCapsLock = "CapsLock"; | ||
export const keyControl = "Control"; | ||
export const keyArrowDown = "ArrowDown"; | ||
@@ -360,13 +12,31 @@ export const keyArrowLeft = "ArrowLeft"; | ||
export const keyArrowUp = "ArrowUp"; | ||
export const keyBackspace = "Backspace"; | ||
export const keyDelete = "Delete"; | ||
export const keyEnd = "End"; | ||
export const keyEnter = "Enter"; | ||
export const keyEscape = "Escape"; | ||
export const keyHome = "Home"; | ||
export const keyEnd = "End"; | ||
export const keyFunction = "Fn"; | ||
export const keyFunctionLock = "FnLock"; | ||
export const keyFunction2 = "F2"; | ||
export const keyFunction3 = "F3"; | ||
export const keyFunction4 = "F4"; | ||
export const keyFunction5 = "F5"; | ||
export const keyFunction6 = "F6"; | ||
export const keyFunction7 = "F7"; | ||
export const keyFunction8 = "F8"; | ||
export const keyFunction9 = "F9"; | ||
export const keyFunction10 = "F10"; | ||
export const keyFunction11 = "F11"; | ||
export const keyFunction12 = "F12"; | ||
export const keyFunction13 = "F13"; | ||
export const keyFunction14 = "F14"; | ||
export const keyFunction15 = "F15"; | ||
export const keyNumLock = "NumLock"; | ||
export const keyPageDown = "PageDown"; | ||
export const keyPageUp = "PageUp"; | ||
export const keyScrollLock = "ScrollLock"; | ||
export const keyShift = "Shift"; | ||
export const keySpace = " "; | ||
export const keyTab = "Tab"; | ||
export const keyBackspace = "Backspace"; | ||
export const keyDelete = "Delete"; | ||
export const ArrowKeys = { | ||
@@ -373,0 +43,0 @@ ArrowDown: keyArrowDown, |
@@ -47,5 +47,5 @@ const path = require("path"); | ||
], | ||
files: [`dist/__test__/${setup}.js`], | ||
files: [`dist/__test__/${setup}.cjs`], | ||
preprocessors: { | ||
[`dist/__test__/${setup}.js`]: ["webpack", "sourcemap"], | ||
[`dist/__test__/${setup}.cjs`]: ["webpack", "sourcemap"], | ||
}, | ||
@@ -69,8 +69,5 @@ webpackMiddleware: { | ||
optimization: { | ||
namedModules: false, | ||
namedChunks: false, | ||
nodeEnv: false, | ||
usedExports: true, | ||
flagIncludedChunks: false, | ||
occurrenceOrder: false, | ||
sideEffects: true, | ||
@@ -77,0 +74,0 @@ concatenateModules: true, |
{ | ||
"name": "@microsoft/fast-web-utilities", | ||
"description": "FAST web utilities", | ||
"version": "5.4.1", | ||
"version": "6.0.0", | ||
"sideEffects": false, | ||
@@ -10,6 +10,8 @@ "author": { | ||
}, | ||
"homepage": "https://www.fast.design/", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Microsoft/fast.git" | ||
"url": "git+https://github.com/Microsoft/fast.git", | ||
"directory": "packages/utilities/fast-web-utilities" | ||
}, | ||
@@ -66,7 +68,7 @@ "bugs": { | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^4.0.2", | ||
"karma-webpack": "^5.0.0", | ||
"mocha": "^7.1.2", | ||
"prettier": "2.0.2", | ||
"ts-loader": "^4.0.1", | ||
"typescript": "^4.6.2" | ||
"typescript": "^4.7.0" | ||
}, | ||
@@ -73,0 +75,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
82695
1592