diff --git a/README.md b/README.md index 737c07e..742a857 100644 --- a/README.md +++ b/README.md @@ -683,7 +683,7 @@ And, if you request `performance.now`, `date.now` will also be included since th - **`esnext.promise`** - `es.promise.all-settled` - `es.promise.try` - - `es.promise.any` + - `es.promise.try` - **`esnext.reflect`** - `es.reflect.define-metadata` - `es.reflect.delete-metadata` @@ -734,6 +734,7 @@ And, if you request `performance.now`, `date.now` will also be included since th - `base64` - `blob` - `proxy` +- `es.promise.any` - `es.string.replace` - `pointer-event` - `xhr` @@ -743,6 +744,7 @@ And, if you request `performance.now`, `date.now` will also be included since th - `document-fragment` - `node.parentelement` - `scroll-behavior` +- `focus-visible` - `node.contains` - `window` - `document` diff --git a/package-lock.json b/package-lock.json index e4b142b..17b232d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5259,6 +5259,11 @@ "readable-stream": "^2.3.6" } }, + "focus-visible": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/focus-visible/-/focus-visible-5.0.2.tgz", + "integrity": "sha512-zT2fj/bmOgEBjqGbURGlowTmCwsIs3bRDMr/sFZz8Ly7VkEiwuCn9swNTL3pPuf8Oua2de7CLuKdnuNajWdDsQ==" + }, "folder-hash": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/folder-hash/-/folder-hash-3.3.0.tgz", diff --git a/package.json b/package.json index 8fcf4a7..ebdfed5 100644 --- a/package.json +++ b/package.json @@ -120,6 +120,7 @@ "web-animations-js": "^2.3.2", "whatwg-fetch": "^3.0.0", "xhr-polyfill": "^0.1.8", + "focus-visible": "^5.0.2", "zone.js": "^0.10.2" }, "main": "./dist/index.js", diff --git a/src/constant/constant.ts b/src/constant/constant.ts index 883b023..d9c5364 100644 --- a/src/constant/constant.ts +++ b/src/constant/constant.ts @@ -2867,6 +2867,14 @@ export const constant: IConstant = { dependencies: ["es.object.define-property", "es.object.get-own-property-descriptor", "requestanimationframe"], contexts: WINDOW_CONTEXT }, + "focus-visible": { + library: "focus-visible", + relativePaths: ["dist/focus-visible.min.js"], + features: ["css-focus-visible"], + version: environment.NPM_PACKAGE_DEPENDENCIES_FOCUS_VISIBLE, + dependencies: ["class-list"], + contexts: WINDOW_CONTEXT + }, "node.contains": { library: "polyfill-library", relativePaths: ["polyfills/__dist/Node.prototype.contains/min.js"], diff --git a/src/environment/environment-defaults.ts b/src/environment/environment-defaults.ts index 89f8db6..1aacf39 100644 --- a/src/environment/environment-defaults.ts +++ b/src/environment/environment-defaults.ts @@ -6,6 +6,7 @@ export const environmentDefaults = { NPM_PACKAGE_DEPENDENCIES_INTERSECTION_OBSERVER: "", NPM_PACKAGE_DEPENDENCIES_CONSTRUCT_STYLE_SHEETS_POLYFILL: "", NPM_PACKAGE_DEPENDENCIES_SCROLL_BEHAVIOR_POLYFILL: "", + NPM_PACKAGE_DEPENDENCIES_FOCUS_VISIBLE: "", NPM_PACKAGE_DEPENDENCIES_SETIMMEDIATE: "", NPM_PACKAGE_DEPENDENCIES_WHATWG_FETCH: "", NPM_PACKAGE_DEPENDENCIES__WEBCOMPONENTS_SHADYDOM: "", diff --git a/src/polyfill/polyfill-name.ts b/src/polyfill/polyfill-name.ts index 0d41ba4..5f56173 100644 --- a/src/polyfill/polyfill-name.ts +++ b/src/polyfill/polyfill-name.ts @@ -352,4 +352,5 @@ export declare type PolyfillDealiasedName = | "web-animations" | "global-this" | "constructable-style-sheets" - | "proto"; + | "proto" + | "focus-visible";