@instructure/ui-a11y-utils 8.12.1-snapshot.7 → 8.13.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/CHANGELOG.md +6 -0
- package/es/FocusRegion.js +5 -3
- package/es/FocusRegionManager.js +14 -12
- package/es/ScreenReaderFocusRegion.js +5 -4
- package/lib/FocusRegion.js +6 -4
- package/lib/FocusRegionManager.js +15 -13
- package/lib/KeyboardFocusRegion.js +1 -1
- package/lib/ScreenReaderFocusRegion.js +6 -5
- package/lib/hasVisibleChildren.js +1 -1
- package/lib/index.js +8 -8
- package/lib/scopeTab.js +1 -1
- package/package.json +11 -12
- package/src/FocusRegion.ts +1 -1
- package/src/ScreenReaderFocusRegion.ts +2 -2
- package/types/FocusRegion.d.ts +1 -1
- package/types/FocusRegion.d.ts.map +1 -1
- package/types/ScreenReaderFocusRegion.d.ts +2 -2
- package/types/ScreenReaderFocusRegion.d.ts.map +1 -1
- package/LICENSE.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ui-popover,ui-tooltip:** fixed Tooltip triggers being transformed to links/buttons ([07b0037](https://github.com/instructure/instructure-ui/commit/07b0037b0ddaf6d4f19cca140fc82fc9a2f1efc9))
|
|
11
|
+
|
|
6
12
|
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @instructure/ui-a11y-utils
|
package/es/FocusRegion.js
CHANGED
|
@@ -138,9 +138,11 @@ class FocusRegion {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
deactivate({
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
deactivate() {
|
|
142
|
+
let _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
143
|
+
_ref$keyboard = _ref.keyboard,
|
|
144
|
+
keyboard = _ref$keyboard === void 0 ? true : _ref$keyboard;
|
|
145
|
+
|
|
144
146
|
if (this._active) {
|
|
145
147
|
this._listeners.forEach(listener => {
|
|
146
148
|
listener.remove();
|
package/es/FocusRegionManager.js
CHANGED
|
@@ -27,7 +27,8 @@ let ENTRIES = [];
|
|
|
27
27
|
|
|
28
28
|
class FocusRegionManager {}
|
|
29
29
|
|
|
30
|
-
FocusRegionManager.focusRegion = (element
|
|
30
|
+
FocusRegionManager.focusRegion = function (element) {
|
|
31
|
+
let idOrOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
31
32
|
let entry;
|
|
32
33
|
|
|
33
34
|
if (typeof idOrOptions === 'string') {
|
|
@@ -54,9 +55,10 @@ FocusRegionManager.activateRegion = (element, options) => {
|
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
FocusRegionManager.getActiveEntry = () => {
|
|
57
|
-
return ENTRIES.find(
|
|
58
|
-
region
|
|
59
|
-
|
|
58
|
+
return ENTRIES.find(_ref => {
|
|
59
|
+
let region = _ref.region;
|
|
60
|
+
return region.focused;
|
|
61
|
+
});
|
|
60
62
|
};
|
|
61
63
|
|
|
62
64
|
FocusRegionManager.findEntry = (element, id) => {
|
|
@@ -75,13 +77,14 @@ FocusRegionManager.getEntry = (element, id) => {
|
|
|
75
77
|
return ENTRIES[FocusRegionManager.findEntry(element, id)];
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
FocusRegionManager.addEntry = (element
|
|
80
|
+
FocusRegionManager.addEntry = function (element) {
|
|
81
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
79
82
|
const region = new FocusRegion(element, options);
|
|
80
83
|
const activeEntry = FocusRegionManager.getActiveEntry();
|
|
81
84
|
const keyboardFocusable = region.keyboardFocusable;
|
|
82
|
-
ENTRIES.forEach(
|
|
83
|
-
region
|
|
84
|
-
|
|
85
|
+
ENTRIES.forEach(_ref2 => {
|
|
86
|
+
let region = _ref2.region;
|
|
87
|
+
|
|
85
88
|
if (region) {
|
|
86
89
|
// If the active region is triggering a new focus region that does not have
|
|
87
90
|
// keyboard focusable content, don't deactivate the active region's keyboard
|
|
@@ -150,10 +153,9 @@ FocusRegionManager.blurRegion = (element, id) => {
|
|
|
150
153
|
region && region.deactivate(); // and any regions created from it
|
|
151
154
|
|
|
152
155
|
if (children) {
|
|
153
|
-
children.forEach(
|
|
154
|
-
id,
|
|
155
|
-
|
|
156
|
-
}) => {
|
|
156
|
+
children.forEach(_ref3 => {
|
|
157
|
+
let id = _ref3.id,
|
|
158
|
+
element = _ref3.element;
|
|
157
159
|
const entry = FocusRegionManager.removeEntry(element, id);
|
|
158
160
|
entry && entry.region && entry.region.deactivate();
|
|
159
161
|
});
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
import { logWarn as warn } from '@instructure/console';
|
|
25
25
|
|
|
26
26
|
class ScreenReaderFocusRegion {
|
|
27
|
-
constructor(element
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
constructor(element) {
|
|
28
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
29
|
+
shouldContainFocus: true,
|
|
30
|
+
liveRegion: []
|
|
31
|
+
};
|
|
31
32
|
this._parents = [];
|
|
32
33
|
this._nodes = [];
|
|
33
34
|
this._liveRegion = void 0;
|
package/lib/FocusRegion.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.FocusRegion = void 0;
|
|
9
9
|
|
|
10
10
|
var _keycode = _interopRequireDefault(require("keycode"));
|
|
11
11
|
|
|
@@ -158,9 +158,11 @@ class FocusRegion {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
deactivate({
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
deactivate() {
|
|
162
|
+
let _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
163
|
+
_ref$keyboard = _ref.keyboard,
|
|
164
|
+
keyboard = _ref$keyboard === void 0 ? true : _ref$keyboard;
|
|
165
|
+
|
|
164
166
|
if (this._active) {
|
|
165
167
|
this._listeners.forEach(listener => {
|
|
166
168
|
listener.remove();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = exports.FocusRegionManager = void 0;
|
|
7
7
|
|
|
8
8
|
var _console = require("@instructure/console");
|
|
9
9
|
|
|
@@ -38,7 +38,8 @@ class FocusRegionManager {}
|
|
|
38
38
|
|
|
39
39
|
exports.FocusRegionManager = FocusRegionManager;
|
|
40
40
|
|
|
41
|
-
FocusRegionManager.focusRegion = (element
|
|
41
|
+
FocusRegionManager.focusRegion = function (element) {
|
|
42
|
+
let idOrOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
42
43
|
let entry;
|
|
43
44
|
|
|
44
45
|
if (typeof idOrOptions === 'string') {
|
|
@@ -65,9 +66,10 @@ FocusRegionManager.activateRegion = (element, options) => {
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
FocusRegionManager.getActiveEntry = () => {
|
|
68
|
-
return ENTRIES.find(
|
|
69
|
-
region
|
|
70
|
-
|
|
69
|
+
return ENTRIES.find(_ref => {
|
|
70
|
+
let region = _ref.region;
|
|
71
|
+
return region.focused;
|
|
72
|
+
});
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
FocusRegionManager.findEntry = (element, id) => {
|
|
@@ -86,13 +88,14 @@ FocusRegionManager.getEntry = (element, id) => {
|
|
|
86
88
|
return ENTRIES[FocusRegionManager.findEntry(element, id)];
|
|
87
89
|
};
|
|
88
90
|
|
|
89
|
-
FocusRegionManager.addEntry = (element
|
|
91
|
+
FocusRegionManager.addEntry = function (element) {
|
|
92
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
90
93
|
const region = new _FocusRegion.FocusRegion(element, options);
|
|
91
94
|
const activeEntry = FocusRegionManager.getActiveEntry();
|
|
92
95
|
const keyboardFocusable = region.keyboardFocusable;
|
|
93
|
-
ENTRIES.forEach(
|
|
94
|
-
region
|
|
95
|
-
|
|
96
|
+
ENTRIES.forEach(_ref2 => {
|
|
97
|
+
let region = _ref2.region;
|
|
98
|
+
|
|
96
99
|
if (region) {
|
|
97
100
|
// If the active region is triggering a new focus region that does not have
|
|
98
101
|
// keyboard focusable content, don't deactivate the active region's keyboard
|
|
@@ -161,10 +164,9 @@ FocusRegionManager.blurRegion = (element, id) => {
|
|
|
161
164
|
region && region.deactivate(); // and any regions created from it
|
|
162
165
|
|
|
163
166
|
if (children) {
|
|
164
|
-
children.forEach(
|
|
165
|
-
id,
|
|
166
|
-
|
|
167
|
-
}) => {
|
|
167
|
+
children.forEach(_ref3 => {
|
|
168
|
+
let id = _ref3.id,
|
|
169
|
+
element = _ref3.element;
|
|
168
170
|
const entry = FocusRegionManager.removeEntry(element, id);
|
|
169
171
|
entry && entry.region && entry.region.deactivate();
|
|
170
172
|
});
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.KeyboardFocusRegion = void 0;
|
|
9
9
|
|
|
10
10
|
var _findDOMNode = require("@instructure/ui-dom-utils/lib/findDOMNode.js");
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = exports.ScreenReaderFocusRegion = void 0;
|
|
7
7
|
|
|
8
8
|
var _console = require("@instructure/console");
|
|
9
9
|
|
|
@@ -31,10 +31,11 @@ var _console = require("@instructure/console");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
class ScreenReaderFocusRegion {
|
|
34
|
-
constructor(element
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
constructor(element) {
|
|
35
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
36
|
+
shouldContainFocus: true,
|
|
37
|
+
liveRegion: []
|
|
38
|
+
};
|
|
38
39
|
this._parents = [];
|
|
39
40
|
this._nodes = [];
|
|
40
41
|
this._liveRegion = void 0;
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.hasVisibleChildren = hasVisibleChildren;
|
|
9
8
|
exports.default = void 0;
|
|
9
|
+
exports.hasVisibleChildren = hasVisibleChildren;
|
|
10
10
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
|
package/lib/index.js
CHANGED
|
@@ -15,28 +15,28 @@ Object.defineProperty(exports, "FocusRegionManager", {
|
|
|
15
15
|
return _FocusRegionManager.FocusRegionManager;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "KeyboardFocusRegion", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _KeyboardFocusRegion.KeyboardFocusRegion;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "ScreenReaderFocusRegion", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return
|
|
27
|
+
return _ScreenReaderFocusRegion.ScreenReaderFocusRegion;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "hasVisibleChildren", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function () {
|
|
33
|
-
return
|
|
33
|
+
return _hasVisibleChildren.hasVisibleChildren;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "scopeTab", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
|
-
return
|
|
39
|
+
return _scopeTab.scopeTab;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
package/lib/scopeTab.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-a11y-utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
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.
|
|
28
|
-
"@instructure/ui-a11y-content": "8.
|
|
29
|
-
"@instructure/ui-dom-utils": "8.
|
|
30
|
-
"@instructure/ui-react-utils": "8.
|
|
31
|
-
"@instructure/ui-testable": "8.
|
|
32
|
-
"@instructure/uid": "8.
|
|
27
|
+
"@instructure/console": "8.13.0",
|
|
28
|
+
"@instructure/ui-a11y-content": "8.13.0",
|
|
29
|
+
"@instructure/ui-dom-utils": "8.13.0",
|
|
30
|
+
"@instructure/ui-react-utils": "8.13.0",
|
|
31
|
+
"@instructure/ui-testable": "8.13.0",
|
|
32
|
+
"@instructure/uid": "8.13.0",
|
|
33
33
|
"keycode": "^2",
|
|
34
34
|
"prop-types": "^15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-babel-preset": "8.
|
|
38
|
-
"@instructure/ui-color-utils": "8.
|
|
39
|
-
"@instructure/ui-test-utils": "8.
|
|
37
|
+
"@instructure/ui-babel-preset": "8.13.0",
|
|
38
|
+
"@instructure/ui-color-utils": "8.13.0",
|
|
39
|
+
"@instructure/ui-test-utils": "8.13.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8 <=17"
|
|
@@ -44,6 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"sideEffects": false
|
|
48
|
-
"gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
|
|
47
|
+
"sideEffects": false
|
|
49
48
|
}
|
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"}
|
package/LICENSE.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|