axe-core 4.9.1 → 4.10.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/axe.d.ts +18 -5
- package/axe.js +757 -716
- package/axe.min.js +2 -2
- package/locales/_template.json +101 -96
- package/locales/de.json +12 -5
- package/locales/ja.json +15 -7
- package/package.json +14 -10
- package/sri-history.json +4 -0
package/axe.d.ts
CHANGED
|
@@ -70,16 +70,19 @@ declare namespace axe {
|
|
|
70
70
|
| LabelledShadowDomSelector
|
|
71
71
|
| LabelledFramesSelector;
|
|
72
72
|
type SelectorList = Array<Selector | FramesSelector> | NodeList;
|
|
73
|
+
type ContextProp = Selector | SelectorList;
|
|
73
74
|
type ContextObject =
|
|
74
75
|
| {
|
|
75
|
-
include:
|
|
76
|
-
exclude?:
|
|
76
|
+
include: ContextProp;
|
|
77
|
+
exclude?: ContextProp;
|
|
77
78
|
}
|
|
78
79
|
| {
|
|
79
|
-
exclude:
|
|
80
|
-
include?:
|
|
80
|
+
exclude: ContextProp;
|
|
81
|
+
include?: ContextProp;
|
|
81
82
|
};
|
|
82
|
-
type
|
|
83
|
+
type ContextSpec = ContextProp | ContextObject;
|
|
84
|
+
/** Synonym to ContextSpec */
|
|
85
|
+
type ElementContext = ContextSpec;
|
|
83
86
|
|
|
84
87
|
type SerialSelector =
|
|
85
88
|
| BaseSelector
|
|
@@ -406,6 +409,16 @@ declare namespace axe {
|
|
|
406
409
|
shadowSelect: (selector: CrossTreeSelector) => Element | null;
|
|
407
410
|
shadowSelectAll: (selector: CrossTreeSelector) => Element[];
|
|
408
411
|
getStandards(): Required<Standards>;
|
|
412
|
+
isContextSpec: (context: unknown) => context is ContextSpec;
|
|
413
|
+
isContextObject: (context: unknown) => context is ContextObject;
|
|
414
|
+
isContextProp: (context: unknown) => context is ContextProp;
|
|
415
|
+
isLabelledFramesSelector: (
|
|
416
|
+
selector: unknown
|
|
417
|
+
) => selector is LabelledFramesSelector;
|
|
418
|
+
isLabelledShadowDomSelector: (
|
|
419
|
+
selector: unknown
|
|
420
|
+
) => selector is LabelledShadowDomSelector;
|
|
421
|
+
|
|
409
422
|
DqElement: new (
|
|
410
423
|
elm: Element,
|
|
411
424
|
options?: { absolutePaths?: boolean }
|