@types/aria-query
Advanced tools
Comparing version 3.0.1 to 4.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for aria-query 3.0 | ||
// Type definitions for aria-query 4.2 | ||
// Project: https://github.com/A11yance/aria-query#readme | ||
@@ -36,11 +36,6 @@ // Definitions by: Sebastian Silbermann <https://github.com/eps1lon> | ||
export type ARIAWidgetRole = | ||
| 'alert' | ||
| 'alertdialog' | ||
| 'button' | ||
| 'checkbox' | ||
| 'dialog' | ||
| 'gridcell' | ||
| 'link' | ||
| 'log' | ||
| 'marquee' | ||
| 'menuitem' | ||
@@ -56,3 +51,2 @@ | 'menuitemcheckbox' | ||
| 'spinbutton' | ||
| 'status' | ||
| 'switch' | ||
@@ -62,4 +56,2 @@ | 'tab' | ||
| 'textbox' | ||
| 'timer' | ||
| 'tooltip' | ||
| 'treeitem'; | ||
@@ -79,20 +71,28 @@ | ||
export type ARIADocumentStructureRole = | ||
| 'application' | ||
| 'article' | ||
| 'blockquote' | ||
| 'caption' | ||
| 'cell' | ||
| 'columnheader' | ||
| 'definition' | ||
| 'deletion' | ||
| 'directory' | ||
| 'document' | ||
| 'emphasis' | ||
| 'feed' | ||
| 'figure' | ||
| 'generic' | ||
| 'group' | ||
| 'heading' | ||
| 'img' | ||
| 'insertion' | ||
| 'list' | ||
| 'listitem' | ||
| 'math' | ||
| 'meter' | ||
| 'none' | ||
| 'note' | ||
| 'paragraph' | ||
| 'presentation' | ||
| 'region' | ||
| 'row' | ||
@@ -102,8 +102,12 @@ | 'rowgroup' | ||
| 'separator' | ||
| 'strong' | ||
| 'subscript' | ||
| 'superscript' | ||
| 'table' | ||
| 'term' | ||
| 'toolbar'; | ||
| 'time' | ||
| 'toolbar' | ||
| 'tooltip'; | ||
export type ARIALandmarkRole = | ||
| 'application' | ||
| 'banner' | ||
@@ -115,4 +119,11 @@ | 'complementary' | ||
| 'navigation' | ||
| 'region' | ||
| 'search'; | ||
export type ARIALiveRegionRole = 'alert' | 'log' | 'marquee' | 'status' | 'timer'; | ||
export type ARIAWindowRole = 'alertdialog' | 'dialog'; | ||
export type ARIAUncategorizedRole = 'code'; | ||
export type ARIADPubRole = | ||
@@ -159,3 +170,10 @@ | 'doc-abstract' | ||
export type ARIARole = ARIAWidgetRole | ARIACompositeWidgetRole | ARIADocumentStructureRole | ARIALandmarkRole; | ||
export type ARIARole = | ||
| ARIAWidgetRole | ||
| ARIACompositeWidgetRole | ||
| ARIADocumentStructureRole | ||
| ARIALandmarkRole | ||
| ARIALiveRegionRole | ||
| ARIAWindowRole | ||
| ARIAUncategorizedRole; | ||
@@ -170,2 +188,4 @@ export interface ARIARoleDefinition { | ||
childrenPresentational: boolean; | ||
/* aria-* properties and states disallowed on this role. */ | ||
prohibitedProps: ARIAPropertyMap; | ||
/* aria-* properties and states allowed on this role. */ | ||
@@ -309,2 +329,10 @@ props: ARIAPropertyMap; | ||
attributes?: ARIARoleRelationConceptAttribute[]; | ||
// These constraints are drawn from the mapping between ARIA and HTML: | ||
// https://www.w3.org/TR/html-aria | ||
constraints?: Array< | ||
| 'direct descendant of document' | ||
| 'direct descendant of ol, ul or menu' | ||
| 'direct descendant of details element with the open attribute defined' | ||
| 'descendant of table' | ||
>; | ||
} | ||
@@ -314,3 +342,6 @@ | ||
name: string; | ||
value?: string; | ||
value?: string | number; | ||
// These constraints are drawn from the mapping between ARIA and HTML: | ||
// https://www.w3.org/TR/html-aria | ||
constraints?: Array<'unset' | '>1'>; | ||
} |
{ | ||
"name": "@types/aria-query", | ||
"version": "3.0.1", | ||
"version": "4.2.0", | ||
"description": "TypeScript definitions for aria-query", | ||
@@ -22,4 +22,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a92adabd4592b0935b2e029af44229f4262b7057bc645bf67fa4fa30d1e56cb8", | ||
"typesPublisherContentHash": "2d5c971ff5d0ed998d70336527f967a5354899ba6b814cdb27cdeccb98a83492", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 07 May 2020 16:35:48 GMT | ||
* Last updated: Sun, 28 Jun 2020 08:10:08 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11182
316