@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/dom.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PageLike, S as ScanResult } from './types-10iqML3X.cjs';
1
+ import { P as PageLike, S as ScanResult } from './types-CznpCIVi.cjs';
2
2
 
3
3
  /**
4
4
  * In-DOM scan entry — runs the full detector engine directly against a live
@@ -22,8 +22,19 @@ interface DomScanOptions {
22
22
  includeAxe?: boolean;
23
23
  /** axe tag filter. Default WCAG 2.x A/AA. */
24
24
  wcagTags?: string[];
25
- /** Window to scan. Default the ambient `window`. */
25
+ /**
26
+ * Window to scan. Default the ambient `window`. SAME-REALM only: detector
27
+ * code executes in the realm this module was loaded into, so a cross-realm
28
+ * window (an iframe's contentWindow) is not supported — load the bundle
29
+ * inside that frame instead.
30
+ */
26
31
  window?: Window & typeof globalThis;
32
+ /**
33
+ * Run the focus-mutating checks (focus visibility/obscured). Default FALSE
34
+ * in DOM mode: they steal focus and scroll the page the user is looking
35
+ * at. Opt in for detached/offscreen documents only.
36
+ */
37
+ interactiveChecks?: boolean;
27
38
  }
28
39
  /**
29
40
  * Adapts a live Window into the PageLike the engine orchestration expects.
package/dist/dom.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PageLike, S as ScanResult } from './types-10iqML3X.js';
1
+ import { P as PageLike, S as ScanResult } from './types-CznpCIVi.js';
2
2
 
3
3
  /**
4
4
  * In-DOM scan entry — runs the full detector engine directly against a live
@@ -22,8 +22,19 @@ interface DomScanOptions {
22
22
  includeAxe?: boolean;
23
23
  /** axe tag filter. Default WCAG 2.x A/AA. */
24
24
  wcagTags?: string[];
25
- /** Window to scan. Default the ambient `window`. */
25
+ /**
26
+ * Window to scan. Default the ambient `window`. SAME-REALM only: detector
27
+ * code executes in the realm this module was loaded into, so a cross-realm
28
+ * window (an iframe's contentWindow) is not supported — load the bundle
29
+ * inside that frame instead.
30
+ */
26
31
  window?: Window & typeof globalThis;
32
+ /**
33
+ * Run the focus-mutating checks (focus visibility/obscured). Default FALSE
34
+ * in DOM mode: they steal focus and scroll the page the user is looking
35
+ * at. Opt in for detached/offscreen documents only.
36
+ */
37
+ interactiveChecks?: boolean;
27
38
  }
28
39
  /**
29
40
  * Adapts a live Window into the PageLike the engine orchestration expects.