abledom 0.6.1 → 0.6.3
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 +91 -1
- package/dist/esm/index.js +57 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +57 -22
- package/dist/index.js.map +1 -1
- package/dist/ts3.9/index.d.ts +3 -1
- package/package.json +13 -13
package/dist/ts3.9/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ interface AbleDOMProps {
|
|
|
70
70
|
onIssueUpdated?(element: HTMLElement, rule: ValidationRule, issue: ValidationIssue): void;
|
|
71
71
|
onIssueRemoved?(element: HTMLElement, rule: ValidationRule): void;
|
|
72
72
|
};
|
|
73
|
+
exposeInstanceForTesting?: boolean;
|
|
73
74
|
}
|
|
74
75
|
declare class AbleDOM {
|
|
75
76
|
private _win;
|
|
@@ -91,6 +92,7 @@ declare class AbleDOM {
|
|
|
91
92
|
private _idleResolve;
|
|
92
93
|
private _currentAnchoredIssues;
|
|
93
94
|
private _currentNotAnchoredIssues;
|
|
95
|
+
private _readIssues;
|
|
94
96
|
constructor(win: Window, props?: AbleDOMProps);
|
|
95
97
|
private _onElementId;
|
|
96
98
|
private _getHighlighter;
|
|
@@ -107,7 +109,7 @@ declare class AbleDOM {
|
|
|
107
109
|
private _onFocusOut;
|
|
108
110
|
private _notifyAsync;
|
|
109
111
|
private _getCurrentIssues;
|
|
110
|
-
idle(): Promise<ValidationIssue[]>;
|
|
112
|
+
idle(markAsRead?: boolean, timeout?: number): Promise<ValidationIssue[] | null>;
|
|
111
113
|
clearCurrentIssues(anchored?: boolean, notAnchored?: boolean): void;
|
|
112
114
|
highlightElement(element: HTMLElement | null, scrollIntoView?: boolean, autoHideTime?: number): void;
|
|
113
115
|
log: typeof console.error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abledom",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"author": "Marat Abdullin <marata@microsoft.com>",
|
|
5
5
|
"description": "Continuous detection of typical web application accessibility problems.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/microsoft/abledom#readme",
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "^1.
|
|
45
|
-
"@types/node": "^
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
47
|
-
"@typescript-eslint/parser": "^8.
|
|
44
|
+
"@playwright/test": "^1.58.1",
|
|
45
|
+
"@types/node": "^25.2.1",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
47
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
48
48
|
"@xmldom/xmldom": "^0.9.8",
|
|
49
49
|
"downlevel-dts": "^0.11.0",
|
|
50
50
|
"esbuild-plugin-inline-import": "^1.1.0",
|
|
51
|
-
"eslint": "^9.
|
|
51
|
+
"eslint": "^9.39.2",
|
|
52
52
|
"eslint-config-prettier": "^10.1.8",
|
|
53
53
|
"eslint-plugin-header": "^3.1.1",
|
|
54
54
|
"eslint-plugin-import": "^2.32.0",
|
|
55
|
-
"playwright": "^1.
|
|
56
|
-
"prettier": "^3.
|
|
57
|
-
"release-it": "^19.
|
|
58
|
-
"rimraf": "^6.1.
|
|
59
|
-
"start-server-and-test": "^2.1.
|
|
60
|
-
"tsup": "^8.5.
|
|
55
|
+
"playwright": "^1.58.1",
|
|
56
|
+
"prettier": "^3.8.1",
|
|
57
|
+
"release-it": "^19.2.4",
|
|
58
|
+
"rimraf": "^6.1.2",
|
|
59
|
+
"start-server-and-test": "^2.1.3",
|
|
60
|
+
"tsup": "^8.5.1",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
|
-
"vite": "^7.1
|
|
62
|
+
"vite": "^7.3.1"
|
|
63
63
|
}
|
|
64
64
|
}
|