@webability/core
Advanced tools
+12
-1
@@ -25,4 +25,15 @@ import { P as PageLike, S as ScanResult } from './types-10iqML3X.cjs'; | ||
| wcagTags?: string[]; | ||
| /** Window to scan. Default the ambient `window`. */ | ||
| /** | ||
| * Window to scan. Default the ambient `window`. SAME-REALM only: detector | ||
| * code executes in the realm this module was loaded into, so a cross-realm | ||
| * window (an iframe's contentWindow) is not supported — load the bundle | ||
| * inside that frame instead. | ||
| */ | ||
| window?: Window & typeof globalThis; | ||
| /** | ||
| * Run the focus-mutating checks (focus visibility/obscured). Default FALSE | ||
| * in DOM mode: they steal focus and scroll the page the user is looking | ||
| * at. Opt in for detached/offscreen documents only. | ||
| */ | ||
| interactiveChecks?: boolean; | ||
| } | ||
@@ -29,0 +40,0 @@ /** |
+12
-1
@@ -25,4 +25,15 @@ import { P as PageLike, S as ScanResult } from './types-10iqML3X.js'; | ||
| wcagTags?: string[]; | ||
| /** Window to scan. Default the ambient `window`. */ | ||
| /** | ||
| * Window to scan. Default the ambient `window`. SAME-REALM only: detector | ||
| * code executes in the realm this module was loaded into, so a cross-realm | ||
| * window (an iframe's contentWindow) is not supported — load the bundle | ||
| * inside that frame instead. | ||
| */ | ||
| window?: Window & typeof globalThis; | ||
| /** | ||
| * Run the focus-mutating checks (focus visibility/obscured). Default FALSE | ||
| * in DOM mode: they steal focus and scroll the page the user is looking | ||
| * at. Opt in for detached/offscreen documents only. | ||
| */ | ||
| interactiveChecks?: boolean; | ||
| } | ||
@@ -29,0 +40,0 @@ /** |
+11
-1
@@ -16,3 +16,13 @@ import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-10iqML3X.cjs'; | ||
| */ | ||
| declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[]): Promise<DetectedIssue[]>; | ||
| interface RunDetectorsOptions { | ||
| /** | ||
| * Skip the two serial FOCUS-MUTATING detectors (focusVisible moves real | ||
| * focus element-by-element; focusObscured scrolls anchor targets). Set by | ||
| * DOM-mode consumers scanning a page the user is LOOKING AT — stealing | ||
| * focus and scrolling their live tab is not acceptable there, and without | ||
| * page.keyboard those checks mostly land in needs-review anyway. | ||
| */ | ||
| skipFocusMutating?: boolean; | ||
| } | ||
| declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[], options?: RunDetectorsOptions): Promise<DetectedIssue[]>; | ||
| declare function extractSiteTheme(page: PageLike): Promise<SiteTheme>; | ||
@@ -19,0 +29,0 @@ |
+11
-1
@@ -16,3 +16,13 @@ import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-10iqML3X.js'; | ||
| */ | ||
| declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[]): Promise<DetectedIssue[]>; | ||
| interface RunDetectorsOptions { | ||
| /** | ||
| * Skip the two serial FOCUS-MUTATING detectors (focusVisible moves real | ||
| * focus element-by-element; focusObscured scrolls anchor targets). Set by | ||
| * DOM-mode consumers scanning a page the user is LOOKING AT — stealing | ||
| * focus and scrolling their live tab is not acceptable there, and without | ||
| * page.keyboard those checks mostly land in needs-review anyway. | ||
| */ | ||
| skipFocusMutating?: boolean; | ||
| } | ||
| declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[], options?: RunDetectorsOptions): Promise<DetectedIssue[]>; | ||
| declare function extractSiteTheme(page: PageLike): Promise<SiteTheme>; | ||
@@ -19,0 +29,0 @@ |
+2
-2
| { | ||
| "name": "@webability/core", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "Accessibility scanner engine \u2014 WCAG 2.2 AA/AAA compliance testing with 200+ rules", | ||
@@ -32,3 +32,3 @@ "type": "module", | ||
| "clean": "rm -rf dist", | ||
| "gen:dom-kernel": "node --experimental-strip-types scripts/gen-dom-kernel.mjs" | ||
| "gen:dom-kernel": "node scripts/gen-dom-kernel.mjs" | ||
| }, | ||
@@ -35,0 +35,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3226237
0.08%13817
0.18%