@microsoft/fast-web-utilities
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.3.2](https://github.com/Microsoft/fast-dna/compare/@microsoft/fast-web-utilities@4.3.1...@microsoft/fast-web-utilities@4.3.2) (2019-09-17) | ||
### Bug Fixes | ||
* improve render performance of page, grid, and column components ([#2241](https://github.com/Microsoft/fast-dna/issues/2241)) ([7936adc](https://github.com/Microsoft/fast-dna/commit/7936adc)) | ||
## [4.3.1](https://github.com/Microsoft/fast-dna/compare/@microsoft/fast-web-utilities@4.3.0...@microsoft/fast-web-utilities@4.3.1) (2019-09-09) | ||
@@ -8,0 +19,0 @@ |
@@ -7,1 +7,2 @@ /** | ||
export declare function canUseFocusVisible(): boolean; | ||
export declare function canUseCssGrid(): boolean; |
import { canUseDOM } from "exenv-es6"; | ||
import { isBoolean } from "lodash-es"; | ||
/** | ||
@@ -14,3 +15,3 @@ * Gets the numeric key code associated with a keyboard event. This method is for use with DOM level 3 events | ||
export function canUseFocusVisible() { | ||
if (typeof _canUseFocusVisible === "boolean") { | ||
if (isBoolean(_canUseFocusVisible)) { | ||
return _canUseFocusVisible; | ||
@@ -37,1 +38,14 @@ } | ||
} | ||
let _canUseCssGrid; | ||
export function canUseCssGrid() { | ||
if (isBoolean(_canUseCssGrid)) { | ||
return _canUseCssGrid; | ||
} | ||
try { | ||
_canUseCssGrid = CSS.supports("display", "grid"); | ||
} | ||
catch (_a) { | ||
_canUseCssGrid = false; | ||
} | ||
return _canUseCssGrid; | ||
} |
{ | ||
"name": "@microsoft/fast-web-utilities", | ||
"description": "FAST web utilities", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"sideEffects": false, | ||
@@ -38,3 +38,3 @@ "author": { | ||
"statements": 97, | ||
"branches": 97, | ||
"branches": 96, | ||
"functions": 100, | ||
@@ -86,3 +86,3 @@ "lines": 98 | ||
}, | ||
"gitHead": "b4063d2677cd99189f103d8e7588f69ac1758981" | ||
"gitHead": "8f3ae2f5915a6d2f92c088c46ae67c6d0d864ea5" | ||
} |
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
38217
594