@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/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-10iqML3X.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-10iqML3X.cjs';
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
- declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[]): Promise<DetectedIssue[]>;
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-10iqML3X.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-10iqML3X.js';
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
- declare function runDetectors(page: PageLike, outTruncated?: TruncationEntry[], outWarnings?: string[]): Promise<DetectedIssue[]>;
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 {