abledom 0.4.0 → 0.5.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/esm/index.js +167 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +168 -25
- package/dist/index.js.map +1 -1
- package/dist/ts3.9/index.d.ts +8 -1
- package/package.json +12 -11
package/dist/ts3.9/index.d.ts
CHANGED
|
@@ -124,6 +124,13 @@ declare class FocusableElementLabelRule extends ValidationRule {
|
|
|
124
124
|
accept(element: HTMLElement): boolean;
|
|
125
125
|
validate(element: HTMLElement): ValidationResult | null;
|
|
126
126
|
}
|
|
127
|
+
declare class ContrastRule extends ValidationRule {
|
|
128
|
+
type: ValidationRuleType;
|
|
129
|
+
name: string;
|
|
130
|
+
anchored: boolean;
|
|
131
|
+
accept(element: HTMLElement): boolean;
|
|
132
|
+
validate(element: HTMLElement): ValidationResult | null;
|
|
133
|
+
}
|
|
127
134
|
/*!
|
|
128
135
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
129
136
|
* Licensed under the MIT License.
|
|
@@ -203,4 +210,4 @@ declare function hasAccessibilityAttribute(attributes: HTMLElementAttributes): b
|
|
|
203
210
|
declare function matchesSelector(element: HTMLElement, selector: string): boolean;
|
|
204
211
|
declare function isDisplayNone(element: HTMLElement): boolean;
|
|
205
212
|
declare function isElementVisible(element: HTMLElement): boolean;
|
|
206
|
-
export { AbleDOM, AbleDOMProps, AtomicRule, BadFocusRule, BlurIssue, CustomNotifyRule, ExistingIdRule, FindElementRule, FocusLostRule, FocusableElementLabelRule, ValidationIssue, ValidationResult, ValidationRule, ValidationRuleType, hasAccessibilityAttribute, isAccessibilityAffectingElement, isDisplayNone, isElementVisible, matchesSelector };
|
|
213
|
+
export { AbleDOM, AbleDOMProps, AtomicRule, BadFocusRule, BlurIssue, ContrastRule, CustomNotifyRule, ExistingIdRule, FindElementRule, FocusLostRule, FocusableElementLabelRule, ValidationIssue, ValidationResult, ValidationRule, ValidationRuleType, hasAccessibilityAttribute, isAccessibilityAffectingElement, isDisplayNone, isElementVisible, matchesSelector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abledom",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"author": "Marat Abdullin <marata@microsoft.com>",
|
|
5
5
|
"description": "Continuous detection of typical web application accessibility problems.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,23 +41,24 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/microsoft/abledom#readme",
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "^1.
|
|
45
|
-
"@
|
|
46
|
-
"@typescript-eslint/
|
|
44
|
+
"@playwright/test": "^1.56.1",
|
|
45
|
+
"@types/node": "^24.9.2",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
47
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
47
48
|
"@xmldom/xmldom": "^0.9.8",
|
|
48
49
|
"downlevel-dts": "^0.11.0",
|
|
49
50
|
"esbuild-plugin-inline-import": "^1.1.0",
|
|
50
|
-
"eslint": "^9.
|
|
51
|
+
"eslint": "^9.38.0",
|
|
51
52
|
"eslint-config-prettier": "^10.1.8",
|
|
52
53
|
"eslint-plugin-header": "^3.1.1",
|
|
53
54
|
"eslint-plugin-import": "^2.32.0",
|
|
54
|
-
"playwright": "^1.
|
|
55
|
+
"playwright": "^1.56.1",
|
|
55
56
|
"prettier": "^3.6.2",
|
|
56
|
-
"release-it": "^19.0.
|
|
57
|
-
"rimraf": "^6.0
|
|
58
|
-
"start-server-and-test": "^2.
|
|
57
|
+
"release-it": "^19.0.5",
|
|
58
|
+
"rimraf": "^6.1.0",
|
|
59
|
+
"start-server-and-test": "^2.1.2",
|
|
59
60
|
"tsup": "^8.5.0",
|
|
60
|
-
"typescript": "^5.9.
|
|
61
|
-
"vite": "^7.1.
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
|
+
"vite": "^7.1.12"
|
|
62
63
|
}
|
|
63
64
|
}
|