abledom 0.6.0 → 0.6.1

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.
@@ -214,6 +214,46 @@ declare class CustomNotifyRule extends ValidationRule {
214
214
  anchored: boolean;
215
215
  customNotify(message: string, element?: HTMLElement): void;
216
216
  }
217
+ /*!
218
+ * Copyright (c) Microsoft Corporation. All rights reserved.
219
+ * Licensed under the MIT License.
220
+ */
221
+ declare class RequiredParentRule extends ValidationRule {
222
+ type: ValidationRuleType;
223
+ name: string;
224
+ anchored: boolean;
225
+ private parentRequirements;
226
+ accept(element: HTMLElement): boolean;
227
+ validate(element: HTMLElement): ValidationResult | null;
228
+ private hasValidParent;
229
+ private createIssue;
230
+ }
231
+ /*!
232
+ * Copyright (c) Microsoft Corporation. All rights reserved.
233
+ * Licensed under the MIT License.
234
+ */
235
+ declare class NestedInteractiveElementRule extends ValidationRule {
236
+ type: ValidationRuleType;
237
+ name: string;
238
+ anchored: boolean;
239
+ private _isAriaHidden;
240
+ private _isInteractive;
241
+ private _findNestedInteractive;
242
+ accept(element: HTMLElement): boolean;
243
+ validate(element: HTMLElement): ValidationResult | null;
244
+ }
245
+ /*!
246
+ * Copyright (c) Microsoft Corporation. All rights reserved.
247
+ * Licensed under the MIT License.
248
+ */
249
+ declare class TabIndexRule extends ValidationRule {
250
+ type: ValidationRuleType;
251
+ name: string;
252
+ anchored: boolean;
253
+ accept(element: HTMLElement): boolean;
254
+ private isInteractiveElement;
255
+ validate(element: HTMLElement): ValidationResult | null;
256
+ }
217
257
  interface HTMLElementAttributes {
218
258
  readonly [name: string]: string;
219
259
  }
@@ -222,4 +262,4 @@ declare function hasAccessibilityAttribute(attributes: HTMLElementAttributes): b
222
262
  declare function matchesSelector(element: HTMLElement, selector: string): boolean;
223
263
  declare function isDisplayNone(element: HTMLElement): boolean;
224
264
  declare function isElementVisible(element: HTMLElement): boolean;
225
- export { AbleDOM, AbleDOMProps, AtomicRule, BadFocusRule, BlurIssue, ContrastRule, CustomNotifyRule, ExistingIdRule, FindElementRule, FocusLostRule, FocusableElementLabelRule, ValidationIssue, ValidationResult, ValidationRule, ValidationRuleType, hasAccessibilityAttribute, isAccessibilityAffectingElement, isDisplayNone, isElementVisible, matchesSelector };
265
+ export { AbleDOM, AbleDOMProps, AtomicRule, BadFocusRule, BlurIssue, ContrastRule, CustomNotifyRule, ExistingIdRule, FindElementRule, FocusLostRule, FocusableElementLabelRule, NestedInteractiveElementRule, RequiredParentRule, TabIndexRule, 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.6.0",
3
+ "version": "0.6.1",
4
4
  "author": "Marat Abdullin <marata@microsoft.com>",
5
5
  "description": "Continuous detection of typical web application accessibility problems.",
6
6
  "license": "MIT",