axe-core 4.3.5 → 4.4.0-canary.1ba9917
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 +1 -1
- package/axe.d.ts +20 -7
- package/axe.js +892 -526
- package/axe.min.js +3 -3
- package/locales/da.json +21 -0
- package/locales/de.json +23 -0
- package/locales/es.json +21 -0
- package/locales/eu.json +21 -0
- package/locales/fr.json +27 -0
- package/locales/ja.json +23 -0
- package/locales/ko.json +643 -377
- package/locales/nl.json +12 -0
- package/locales/pl.json +23 -0
- package/locales/pt_BR.json +23 -0
- package/package.json +11 -9
- package/sri-history.json +305 -297
- package/CHANGELOG.md +0 -1451
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/dequelabs/axe-core/commits/develop)
|
|
7
7
|
[](https://github.com/dequelabs/axe-core/graphs/contributors)
|
|
8
8
|
[](https://accessibility.deque.com/axe-community)
|
|
9
|
-
[](https://packagequality.com/#?package=axe-core)
|
|
10
10
|
|
|
11
11
|
Axe is an accessibility testing engine for websites and other HTML-based user interfaces. It's fast, secure, lightweight, and was built to seamlessly integrate with any existing test environment so you can automate accessibility testing alongside your regular functional testing.
|
|
12
12
|
|
package/axe.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ declare namespace axe {
|
|
|
50
50
|
type CrossFrameSelector = CrossTreeSelector[];
|
|
51
51
|
|
|
52
52
|
type ContextObject = {
|
|
53
|
+
include?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
|
|
54
|
+
exclude?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
type SerialContextObject = {
|
|
53
58
|
include?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
|
|
54
59
|
exclude?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
|
|
55
60
|
};
|
|
@@ -95,6 +100,7 @@ declare namespace axe {
|
|
|
95
100
|
frameWaitTime?: number;
|
|
96
101
|
preload?: boolean;
|
|
97
102
|
performanceTimer?: boolean;
|
|
103
|
+
pingWaitTime?: number;
|
|
98
104
|
}
|
|
99
105
|
interface AxeResults extends EnvironmentData {
|
|
100
106
|
toolOptions: RunOptions;
|
|
@@ -187,10 +193,7 @@ declare namespace axe {
|
|
|
187
193
|
cssColors?: { [key: string]: number[] };
|
|
188
194
|
}
|
|
189
195
|
interface Spec {
|
|
190
|
-
branding?:
|
|
191
|
-
brand?: string;
|
|
192
|
-
application?: string;
|
|
193
|
-
};
|
|
196
|
+
branding?: string | Branding;
|
|
194
197
|
reporter?: ReporterVersion;
|
|
195
198
|
checks?: Check[];
|
|
196
199
|
rules?: Rule[];
|
|
@@ -203,6 +206,13 @@ declare namespace axe {
|
|
|
203
206
|
// Deprecated - do not use.
|
|
204
207
|
ver?: string;
|
|
205
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @deprecated Use branding: string instead to set the application key in help URLs
|
|
211
|
+
*/
|
|
212
|
+
interface Branding {
|
|
213
|
+
brand?: string;
|
|
214
|
+
application?: string;
|
|
215
|
+
}
|
|
206
216
|
interface Check {
|
|
207
217
|
id: string;
|
|
208
218
|
evaluate?: Function | string;
|
|
@@ -259,13 +269,16 @@ declare namespace axe {
|
|
|
259
269
|
results: PartialRuleResult[];
|
|
260
270
|
environmentData?: EnvironmentData;
|
|
261
271
|
}
|
|
262
|
-
type PartialResults = Array<PartialResult | null
|
|
272
|
+
type PartialResults = Array<PartialResult | null>;
|
|
263
273
|
interface FrameContext {
|
|
264
274
|
frameSelector: CrossTreeSelector;
|
|
265
|
-
frameContext:
|
|
275
|
+
frameContext: SerialContextObject;
|
|
266
276
|
}
|
|
267
277
|
interface Utils {
|
|
268
|
-
getFrameContexts: (
|
|
278
|
+
getFrameContexts: (
|
|
279
|
+
context?: ElementContext,
|
|
280
|
+
options?: RunOptions
|
|
281
|
+
) => FrameContext[];
|
|
269
282
|
shadowSelect: (selector: CrossTreeSelector) => Element | null;
|
|
270
283
|
}
|
|
271
284
|
interface EnvironmentData {
|