axe-core 4.10.0 → 4.10.1-canary.61dd5e3
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 +3 -3
- package/axe.d.ts +28 -5
- package/axe.js +317 -299
- package/axe.min.js +2 -2
- package/locales/README.md +3 -3
- package/locales/_template.json +14 -14
- package/locales/ru.json +1123 -0
- package/package.json +2 -1
- package/sri-history.json +393 -385
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# axe-core
|
|
2
2
|
|
|
3
|
-
[](LICENSE)
|
|
3
|
+
[](LICENSE)
|
|
4
4
|
[](https://www.npmjs.com/package/axe-core)
|
|
5
|
-
[](https://npm-stat.com/charts.html?package=axe-core&from=2017-01-01)
|
|
6
6
|
[](https://github.com/dequelabs/axe-core/commits/develop)
|
|
7
|
-
[](https://github.com/dequelabs/axe-core/graphs/contributors)
|
|
7
|
+
[](https://github.com/dequelabs/axe-core/graphs/contributors)
|
|
8
8
|
[](https://accessibility.deque.com/axe-community)
|
|
9
9
|
[](https://packagequality.com/#?package=axe-core)
|
|
10
10
|
|
package/axe.d.ts
CHANGED
|
@@ -143,10 +143,14 @@ declare namespace axe {
|
|
|
143
143
|
iframes?: boolean;
|
|
144
144
|
elementRef?: boolean;
|
|
145
145
|
frameWaitTime?: number;
|
|
146
|
-
preload?: boolean;
|
|
146
|
+
preload?: boolean | PreloadOptions;
|
|
147
147
|
performanceTimer?: boolean;
|
|
148
148
|
pingWaitTime?: number;
|
|
149
149
|
}
|
|
150
|
+
interface PreloadOptions {
|
|
151
|
+
assets: string[];
|
|
152
|
+
timeout?: number;
|
|
153
|
+
}
|
|
150
154
|
interface AxeResults extends EnvironmentData {
|
|
151
155
|
toolOptions: RunOptions;
|
|
152
156
|
passes: Result[];
|
|
@@ -338,6 +342,9 @@ declare namespace axe {
|
|
|
338
342
|
interface DqElement extends SerialDqElement {
|
|
339
343
|
element: Element;
|
|
340
344
|
toJSON(): SerialDqElement;
|
|
345
|
+
}
|
|
346
|
+
interface DqElementConstructor {
|
|
347
|
+
new (elm: Element, options?: { absolutePaths?: boolean }): DqElement;
|
|
341
348
|
mergeSpecs(
|
|
342
349
|
childSpec: SerialDqElement,
|
|
343
350
|
parentSpec: SerialDqElement
|
|
@@ -401,6 +408,24 @@ declare namespace axe {
|
|
|
401
408
|
boundingClientRect: DOMRect;
|
|
402
409
|
}
|
|
403
410
|
|
|
411
|
+
interface CustomNodeSerializer<T = SerialDqElement> {
|
|
412
|
+
toSpec: (dqElm: DqElement) => T;
|
|
413
|
+
mergeSpecs: (nodeSpec: T, parentFrameSpec: T) => T;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
interface NodeSerializer {
|
|
417
|
+
update: <T>(serializer: CustomNodeSerializer<T>) => void;
|
|
418
|
+
toSpec: (node: Element | VirtualNode) => SerialDqElement;
|
|
419
|
+
dqElmToSpec: (
|
|
420
|
+
dqElm: DqElement | SerialDqElement,
|
|
421
|
+
options?: RunOptions
|
|
422
|
+
) => SerialDqElement;
|
|
423
|
+
mergeSpecs: (
|
|
424
|
+
nodeSpec: SerialDqElement,
|
|
425
|
+
parentFrameSpec: SerialDqElement
|
|
426
|
+
) => SerialDqElement;
|
|
427
|
+
}
|
|
428
|
+
|
|
404
429
|
interface Utils {
|
|
405
430
|
getFrameContexts: (
|
|
406
431
|
context?: ElementContext,
|
|
@@ -419,15 +444,13 @@ declare namespace axe {
|
|
|
419
444
|
selector: unknown
|
|
420
445
|
) => selector is LabelledShadowDomSelector;
|
|
421
446
|
|
|
422
|
-
DqElement:
|
|
423
|
-
elm: Element,
|
|
424
|
-
options?: { absolutePaths?: boolean }
|
|
425
|
-
) => DqElement;
|
|
447
|
+
DqElement: DqElementConstructor;
|
|
426
448
|
uuid: (
|
|
427
449
|
options?: { random?: Uint8Array | Array<number> },
|
|
428
450
|
buf?: Uint8Array | Array<number>,
|
|
429
451
|
offset?: number
|
|
430
452
|
) => string | Uint8Array | Array<number>;
|
|
453
|
+
nodeSerializer: NodeSerializer;
|
|
431
454
|
}
|
|
432
455
|
|
|
433
456
|
interface Aria {
|