axe-core 4.3.5 → 4.4.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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Commits](https://img.shields.io/github/commit-activity/y/dequelabs/axe-core.svg)](https://github.com/dequelabs/axe-core/commits/develop)
7
7
  [![GitHub contributors](https://img.shields.io/github/contributors/dequelabs/axe-core.svg)](https://github.com/dequelabs/axe-core/graphs/contributors)
8
8
  [![Join our Slack chat](https://img.shields.io/badge/slack-chat-purple.svg?logo=slack)](https://accessibility.deque.com/axe-community)
9
- [![Package Quality](http://npm.packagequality.com/shield/axe-core.svg)](http://packagequality.com/#?package=axe-core)
9
+ [![Package Quality](https://npm.packagequality.com/shield/axe-core.svg)](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,8 +50,8 @@ declare namespace axe {
50
50
  type CrossFrameSelector = CrossTreeSelector[];
51
51
 
52
52
  type ContextObject = {
53
- include?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
54
- exclude?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
53
+ include?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
54
+ exclude?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
55
55
  };
56
56
 
57
57
  type RunCallback = (error: Error, results: AxeResults) => void;
@@ -95,6 +95,7 @@ declare namespace axe {
95
95
  frameWaitTime?: number;
96
96
  preload?: boolean;
97
97
  performanceTimer?: boolean;
98
+ pingWaitTime?: number;
98
99
  }
99
100
  interface AxeResults extends EnvironmentData {
100
101
  toolOptions: RunOptions;
@@ -187,10 +188,7 @@ declare namespace axe {
187
188
  cssColors?: { [key: string]: number[] };
188
189
  }
189
190
  interface Spec {
190
- branding?: {
191
- brand?: string;
192
- application?: string;
193
- };
191
+ branding?: string | Branding;
194
192
  reporter?: ReporterVersion;
195
193
  checks?: Check[];
196
194
  rules?: Rule[];
@@ -203,6 +201,13 @@ declare namespace axe {
203
201
  // Deprecated - do not use.
204
202
  ver?: string;
205
203
  }
204
+ /**
205
+ * @deprecated Use branding: string instead to set the application key in help URLs
206
+ */
207
+ interface Branding {
208
+ brand?: string;
209
+ application?: string;
210
+ }
206
211
  interface Check {
207
212
  id: string;
208
213
  evaluate?: Function | string;
@@ -259,13 +264,16 @@ declare namespace axe {
259
264
  results: PartialRuleResult[];
260
265
  environmentData?: EnvironmentData;
261
266
  }
262
- type PartialResults = Array<PartialResult | null>
267
+ type PartialResults = Array<PartialResult | null>;
263
268
  interface FrameContext {
264
269
  frameSelector: CrossTreeSelector;
265
270
  frameContext: ContextObject;
266
271
  }
267
272
  interface Utils {
268
- getFrameContexts: (context?: ElementContext) => FrameContext[];
273
+ getFrameContexts: (
274
+ context?: ElementContext,
275
+ options?: RunOptions
276
+ ) => FrameContext[];
269
277
  shadowSelect: (selector: CrossTreeSelector) => Element | null;
270
278
  }
271
279
  interface EnvironmentData {