@webability/core 1.10.0 → 1.12.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.cjs +44 -39
- package/dist/dom.d.cts +7 -2
- package/dist/dom.d.ts +7 -2
- package/dist/dom.js +44 -39
- package/dist/engine.cjs +45 -39
- package/dist/engine.d.cts +282 -26
- package/dist/engine.d.ts +282 -26
- package/dist/engine.js +45 -39
- package/dist/index.cjs +53 -48
- package/dist/index.d.cts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.js +53 -48
- package/dist/playwright.cjs +42 -37
- package/dist/playwright.d.cts +1 -1
- package/dist/playwright.d.ts +1 -1
- package/dist/playwright.js +42 -37
- package/dist/{types-fjs6XhzQ.d.cts → types-gjAJ8j0I.d.cts} +30 -2
- package/dist/{types-fjs6XhzQ.d.ts → types-gjAJ8j0I.d.ts} +30 -2
- package/package.json +3 -1
package/dist/dom.d.cts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { m as JudgeOptions, P as PageLike, a as ScanResult } from './types-
|
|
1
|
+
import { m as JudgeOptions, P as PageLike, a as ScanResult } from './types-gjAJ8j0I.cjs';
|
|
2
|
+
|
|
3
|
+
/** Installs the detector helper globals onto `g` (default: globalThis). Idempotent. */
|
|
4
|
+
declare function installDomKernel(g?: any): void;
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* In-DOM scan entry — runs the full detector engine directly against a live
|
|
@@ -27,6 +30,8 @@ interface DomScanOptions {
|
|
|
27
30
|
wcagTags?: string[];
|
|
28
31
|
/** Highest conformance level reported (default 'AA'; AAA findings are dropped). */
|
|
29
32
|
level?: 'A' | 'AA' | 'AAA';
|
|
33
|
+
/** Also run the experimental best-practice checks (not WCAG 2.2 A/AA). Default false. */
|
|
34
|
+
experimental?: boolean;
|
|
30
35
|
/**
|
|
31
36
|
* Window to scan. Default the ambient `window`. SAME-REALM only: detector
|
|
32
37
|
* code executes in the realm this module was loaded into, so a cross-realm
|
|
@@ -52,4 +57,4 @@ declare function createDomPage(win: Window & typeof globalThis): PageLike;
|
|
|
52
57
|
/** Runs the full WebAbility scan against the current document. */
|
|
53
58
|
declare function scanDocument(options?: DomScanOptions): Promise<ScanResult>;
|
|
54
59
|
|
|
55
|
-
export { type DomScanOptions, createDomPage, scanDocument };
|
|
60
|
+
export { type DomScanOptions, createDomPage, installDomKernel, scanDocument };
|
package/dist/dom.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { m as JudgeOptions, P as PageLike, a as ScanResult } from './types-
|
|
1
|
+
import { m as JudgeOptions, P as PageLike, a as ScanResult } from './types-gjAJ8j0I.js';
|
|
2
|
+
|
|
3
|
+
/** Installs the detector helper globals onto `g` (default: globalThis). Idempotent. */
|
|
4
|
+
declare function installDomKernel(g?: any): void;
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* In-DOM scan entry — runs the full detector engine directly against a live
|
|
@@ -27,6 +30,8 @@ interface DomScanOptions {
|
|
|
27
30
|
wcagTags?: string[];
|
|
28
31
|
/** Highest conformance level reported (default 'AA'; AAA findings are dropped). */
|
|
29
32
|
level?: 'A' | 'AA' | 'AAA';
|
|
33
|
+
/** Also run the experimental best-practice checks (not WCAG 2.2 A/AA). Default false. */
|
|
34
|
+
experimental?: boolean;
|
|
30
35
|
/**
|
|
31
36
|
* Window to scan. Default the ambient `window`. SAME-REALM only: detector
|
|
32
37
|
* code executes in the realm this module was loaded into, so a cross-realm
|
|
@@ -52,4 +57,4 @@ declare function createDomPage(win: Window & typeof globalThis): PageLike;
|
|
|
52
57
|
/** Runs the full WebAbility scan against the current document. */
|
|
53
58
|
declare function scanDocument(options?: DomScanOptions): Promise<ScanResult>;
|
|
54
59
|
|
|
55
|
-
export { type DomScanOptions, createDomPage, scanDocument };
|
|
60
|
+
export { type DomScanOptions, createDomPage, installDomKernel, scanDocument };
|