@webability/core 1.3.0 → 1.4.0
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/README.md +52 -0
- package/dist/dom.cjs +23 -23
- package/dist/dom.d.cts +13 -2
- package/dist/dom.d.ts +13 -2
- package/dist/dom.js +23 -23
- package/dist/index.cjs +38 -38
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +38 -38
- package/dist/playwright.cjs +396 -0
- package/dist/playwright.d.cts +20 -0
- package/dist/playwright.d.ts +20 -0
- package/dist/playwright.js +396 -0
- package/dist/{types-10iqML3X.d.cts → types-CznpCIVi.d.cts} +9 -0
- package/dist/{types-10iqML3X.d.ts → types-CznpCIVi.d.ts} +9 -0
- package/package.json +18 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-
|
|
2
|
-
export { B as BrowserDetector, F as FixDetector, d as FixIssueType, I as IssueImpact, e as IssueSource, V as VIEWPORT_SIZES, f as ViewportPreset, W as WCAG_BY_ISSUE, g as WcagLevel } from './types-
|
|
1
|
+
import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-CznpCIVi.cjs';
|
|
2
|
+
export { B as BrowserDetector, F as FixDetector, d as FixIssueType, I as IssueImpact, e as IssueSource, V as VIEWPORT_SIZES, f as ViewportPreset, W as WCAG_BY_ISSUE, g as WcagLevel } from './types-CznpCIVi.cjs';
|
|
3
3
|
|
|
4
4
|
declare function scan(target: string | PageLike, options?: ScanOptions): Promise<ScanResult>;
|
|
5
5
|
|
|
@@ -13,7 +13,17 @@ type TruncationEntry = {
|
|
|
13
13
|
* injection blocked by CSP) that silently disable a category of checks.
|
|
14
14
|
* Both arrays are per-invocation (caller-owned), never module state.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
interface RunDetectorsOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Skip the two serial FOCUS-MUTATING detectors (focusVisible moves real
|
|
19
|
+
* focus element-by-element; focusObscured scrolls anchor targets). Set by
|
|
20
|
+
* DOM-mode consumers scanning a page the user is LOOKING AT — stealing
|
|
21
|
+
* focus and scrolling their live tab is not acceptable there, and without
|
|
22
|
+
* page.keyboard those checks mostly land in needs-review anyway.
|
|
23
|
+
*/
|
|
24
|
+
skipFocusMutating?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[], options?: RunDetectorsOptions): Promise<DetectedIssue[]>;
|
|
17
27
|
declare function extractSiteTheme(page: PageLike): Promise<SiteTheme>;
|
|
18
28
|
|
|
19
29
|
interface AxeViolation {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-
|
|
2
|
-
export { B as BrowserDetector, F as FixDetector, d as FixIssueType, I as IssueImpact, e as IssueSource, V as VIEWPORT_SIZES, f as ViewportPreset, W as WCAG_BY_ISSUE, g as WcagLevel } from './types-
|
|
1
|
+
import { P as PageLike, a as ScanOptions, S as ScanResult, b as SiteTheme, D as DetectedIssue, c as ScanIssue } from './types-CznpCIVi.js';
|
|
2
|
+
export { B as BrowserDetector, F as FixDetector, d as FixIssueType, I as IssueImpact, e as IssueSource, V as VIEWPORT_SIZES, f as ViewportPreset, W as WCAG_BY_ISSUE, g as WcagLevel } from './types-CznpCIVi.js';
|
|
3
3
|
|
|
4
4
|
declare function scan(target: string | PageLike, options?: ScanOptions): Promise<ScanResult>;
|
|
5
5
|
|
|
@@ -13,7 +13,17 @@ type TruncationEntry = {
|
|
|
13
13
|
* injection blocked by CSP) that silently disable a category of checks.
|
|
14
14
|
* Both arrays are per-invocation (caller-owned), never module state.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
interface RunDetectorsOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Skip the two serial FOCUS-MUTATING detectors (focusVisible moves real
|
|
19
|
+
* focus element-by-element; focusObscured scrolls anchor targets). Set by
|
|
20
|
+
* DOM-mode consumers scanning a page the user is LOOKING AT — stealing
|
|
21
|
+
* focus and scrolling their live tab is not acceptable there, and without
|
|
22
|
+
* page.keyboard those checks mostly land in needs-review anyway.
|
|
23
|
+
*/
|
|
24
|
+
skipFocusMutating?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[], options?: RunDetectorsOptions): Promise<DetectedIssue[]>;
|
|
17
27
|
declare function extractSiteTheme(page: PageLike): Promise<SiteTheme>;
|
|
18
28
|
|
|
19
29
|
interface AxeViolation {
|