@instructure/ui-a11y-utils 8.12.1-snapshot.46 → 8.12.1-snapshot.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-a11y-utils",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.52+07b0037b0",
|
|
4
4
|
"description": "A collection of utilities for managing focus and screen reader behavior",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/console": "8.12.1-snapshot.
|
|
28
|
-
"@instructure/ui-a11y-content": "8.12.1-snapshot.
|
|
29
|
-
"@instructure/ui-dom-utils": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/uid": "8.12.1-snapshot.
|
|
27
|
+
"@instructure/console": "8.12.1-snapshot.52+07b0037b0",
|
|
28
|
+
"@instructure/ui-a11y-content": "8.12.1-snapshot.52+07b0037b0",
|
|
29
|
+
"@instructure/ui-dom-utils": "8.12.1-snapshot.52+07b0037b0",
|
|
30
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.52+07b0037b0",
|
|
31
|
+
"@instructure/ui-testable": "8.12.1-snapshot.52+07b0037b0",
|
|
32
|
+
"@instructure/uid": "8.12.1-snapshot.52+07b0037b0",
|
|
33
33
|
"keycode": "^2",
|
|
34
34
|
"prop-types": "^15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
38
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
39
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
37
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.52+07b0037b0",
|
|
38
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.52+07b0037b0",
|
|
39
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.52+07b0037b0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8 <=17"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"sideEffects": false,
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "07b0037b0ddaf6d4f19cca140fc82fc9a2f1efc9"
|
|
49
49
|
}
|
package/src/FocusRegion.ts
CHANGED
|
@@ -47,7 +47,7 @@ class FocusRegion {
|
|
|
47
47
|
private _listeners: ReturnType<typeof addEventListener>[] = []
|
|
48
48
|
private _active = false
|
|
49
49
|
|
|
50
|
-
constructor(element: Element | Node, options: FocusRegionOptions) {
|
|
50
|
+
constructor(element: Element | Node | null, options: FocusRegionOptions) {
|
|
51
51
|
this._options = options || {
|
|
52
52
|
shouldCloseOnDocumentClick: true,
|
|
53
53
|
shouldCloseOnEscape: true
|
|
@@ -29,13 +29,13 @@ class ScreenReaderFocusRegion {
|
|
|
29
29
|
private _parents: HTMLElement[] = []
|
|
30
30
|
private _nodes: Element[] = []
|
|
31
31
|
private _liveRegion: (Element | undefined)[]
|
|
32
|
-
private _contextElement
|
|
32
|
+
private _contextElement: Element | Node | null
|
|
33
33
|
private _options: FocusRegionOptions
|
|
34
34
|
private _observer: MutationObserver | null = null
|
|
35
35
|
private _attributes: [Element, string, string][] = []
|
|
36
36
|
|
|
37
37
|
constructor(
|
|
38
|
-
element: Element | Node,
|
|
38
|
+
element: Element | Node | null,
|
|
39
39
|
options: FocusRegionOptions = {
|
|
40
40
|
shouldContainFocus: true,
|
|
41
41
|
liveRegion: []
|
package/types/FocusRegion.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare class FocusRegion {
|
|
|
8
8
|
private readonly _id;
|
|
9
9
|
private _listeners;
|
|
10
10
|
private _active;
|
|
11
|
-
constructor(element: Element | Node, options: FocusRegionOptions);
|
|
11
|
+
constructor(element: Element | Node | null, options: FocusRegionOptions);
|
|
12
12
|
updateElement(element: Element | Node): void;
|
|
13
13
|
handleDismiss: (event: Event, documentClick?: boolean | undefined) => void;
|
|
14
14
|
captureDocumentClick: (event: MouseEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusRegion.d.ts","sourceRoot":"","sources":["../src/FocusRegion.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,cAAM,WAAW;IACf,OAAO,CAAC,eAAe,CAA8B;IACrD,OAAO,CAAC,4BAA4B,CAAQ;IAC5C,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAyB;IAClE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAqB;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;IAC5B,OAAO,CAAC,UAAU,CAA4C;IAC9D,OAAO,CAAC,OAAO,CAAQ;gBAEX,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"FocusRegion.d.ts","sourceRoot":"","sources":["../src/FocusRegion.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,cAAM,WAAW;IACf,OAAO,CAAC,eAAe,CAA8B;IACrD,OAAO,CAAC,4BAA4B,CAAQ;IAC5C,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAyB;IAClE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAqB;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;IAC5B,OAAO,CAAC,UAAU,CAA4C;IAC9D,OAAO,CAAC,OAAO,CAAQ;gBAEX,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,kBAAkB;IAcvE,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAUrC,aAAa,UAAW,KAAK,+CAE5B;IAED,oBAAoB,UAAW,UAAU,UAIxC;IAED,mBAAmB,UAAW,UAAU,UAOvC;IAED,gBAAgB,UAAW,UAAU,SAAS,iBAAiB,UAK9D;IAED,WAAW,UAAW,aAAa,UAQlC;IAED,IAAI,EAAE,WAEL;IAID,IAAI,OAAO,YAEV;IAED,IAAI,iBAAiB,YAEpB;IAED,QAAQ;IA+CR,UAAU,CAAC,EAAE,QAAe,EAAE,GAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAO;IAc3D,KAAK;IAQL,IAAI;CAOL;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO;AACL;;;;;;;;;;;GAWG;AACH,WAAW,EACZ,CAAA"}
|
|
@@ -3,11 +3,11 @@ declare class ScreenReaderFocusRegion {
|
|
|
3
3
|
private _parents;
|
|
4
4
|
private _nodes;
|
|
5
5
|
private _liveRegion;
|
|
6
|
-
private _contextElement
|
|
6
|
+
private _contextElement;
|
|
7
7
|
private _options;
|
|
8
8
|
private _observer;
|
|
9
9
|
private _attributes;
|
|
10
|
-
constructor(element: Element | Node, options?: FocusRegionOptions);
|
|
10
|
+
constructor(element: Element | Node | null, options?: FocusRegionOptions);
|
|
11
11
|
updateElement(element: Element | Node): void;
|
|
12
12
|
muteNode(node: Element): void;
|
|
13
13
|
hideNodes(nodes: Element[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenReaderFocusRegion.d.ts","sourceRoot":"","sources":["../src/ScreenReaderFocusRegion.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,cAAM,uBAAuB;IAC3B,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"ScreenReaderFocusRegion.d.ts","sourceRoot":"","sources":["../src/ScreenReaderFocusRegion.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,cAAM,uBAAuB;IAC3B,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,SAAS,CAAgC;IACjD,OAAO,CAAC,WAAW,CAAkC;gBAGnD,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,EAC9B,OAAO,GAAE,kBAGR;IAWH,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIrC,QAAQ,CAAC,IAAI,EAAE,OAAO;IAwBtB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE;IA4B1B,QAAQ,CAAC,IAAI,EAAE,OAAO;IAOtB,iBAAiB,YAAa,cAAc,EAAE,UAmB7C;IAED,WAAW,CAAC,WAAW,EAAE,OAAO;IAShC,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE;IA0B/C,QAAQ;IAqBR,UAAU;CAeX;AAED,eAAe,uBAAuB,CAAA;AACtC,OAAO;AACL;;;;;;;;;GASG;AACH,uBAAuB,EACxB,CAAA"}
|