@instructure/ui-a11y-utils 8.12.1-snapshot.51 → 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 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-a11y-utils",
3
- "version": "8.12.1-snapshot.51+4d3697334",
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.12.1-snapshot.51+4d3697334",
28
- "@instructure/ui-a11y-content": "8.12.1-snapshot.51+4d3697334",
29
- "@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
30
- "@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
31
- "@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
32
- "@instructure/uid": "8.12.1-snapshot.51+4d3697334",
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.12.1-snapshot.51+4d3697334",
38
- "@instructure/ui-color-utils": "8.12.1-snapshot.51+4d3697334",
39
- "@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334"
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": "4d369733414715a70bae0628378e8d82214eab3e"
47
+ "sideEffects": false
49
48
  }
@@ -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?: Element | Node
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: []
@@ -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;IAchE,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"}
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,CAAC,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,SAAS,CAAgC;IACjD,OAAO,CAAC,WAAW,CAAkC;gBAGnD,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,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"}
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.