@instructure/ui-pagination 8.48.4-snapshot-4 → 8.49.1-snapshot-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,7 +3,18 @@
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.48.4-snapshot-4](https://github.com/instructure/instructure-ui/compare/v8.48.3...v8.48.4-snapshot-4) (2023-11-24)
6
+ ## [8.49.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v8.49.0...v8.49.1-snapshot-0) (2023-11-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-pagination:** fix chrome unable to focus undefined element ([503535b](https://github.com/instructure/instructure-ui/commit/503535be262deb6c16547b1c49f72435bd9f2bb1))
12
+
13
+
14
+
15
+
16
+
17
+ # [8.49.0](https://github.com/instructure/instructure-ui/compare/v8.48.3...v8.49.0) (2023-11-24)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-pagination
9
20
 
@@ -117,6 +117,7 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
117
117
  focusElementAfterUpdate(snapshot) {
118
118
  const lastFocusedButton = snapshot.lastFocusedButton;
119
119
  if (lastFocusedButton) {
120
+ var _nextFocusElement;
120
121
  const focusable = findTabbable(this.ref);
121
122
  const direction = lastFocusedButton.dataset.direction;
122
123
 
@@ -134,7 +135,7 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
134
135
  }
135
136
  }
136
137
  ;
137
- nextFocusElement.focus();
138
+ (_nextFocusElement = nextFocusElement) === null || _nextFocusElement === void 0 ? void 0 : _nextFocusElement.focus();
138
139
  }
139
140
  }
140
141
  get compactView() {
@@ -134,6 +134,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
134
134
  focusElementAfterUpdate(snapshot) {
135
135
  const lastFocusedButton = snapshot.lastFocusedButton;
136
136
  if (lastFocusedButton) {
137
+ var _nextFocusElement;
137
138
  const focusable = (0, _findTabbable.findTabbable)(this.ref);
138
139
  const direction = lastFocusedButton.dataset.direction;
139
140
 
@@ -151,7 +152,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
151
152
  }
152
153
  }
153
154
  ;
154
- nextFocusElement.focus();
155
+ (_nextFocusElement = nextFocusElement) === null || _nextFocusElement === void 0 ? void 0 : _nextFocusElement.focus();
155
156
  }
156
157
  }
157
158
  get compactView() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-pagination",
3
- "version": "8.48.4-snapshot-4",
3
+ "version": "8.49.1-snapshot-0",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,29 +23,29 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.48.4-snapshot-4",
27
- "@instructure/ui-test-locator": "8.48.4-snapshot-4",
28
- "@instructure/ui-test-queries": "8.48.4-snapshot-4",
29
- "@instructure/ui-test-utils": "8.48.4-snapshot-4"
26
+ "@instructure/ui-babel-preset": "8.49.1-snapshot-0",
27
+ "@instructure/ui-test-locator": "8.49.1-snapshot-0",
28
+ "@instructure/ui-test-queries": "8.49.1-snapshot-0",
29
+ "@instructure/ui-test-utils": "8.49.1-snapshot-0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.23.2",
33
- "@instructure/emotion": "8.48.4-snapshot-4",
34
- "@instructure/shared-types": "8.48.4-snapshot-4",
35
- "@instructure/ui-a11y-content": "8.48.4-snapshot-4",
36
- "@instructure/ui-a11y-utils": "8.48.4-snapshot-4",
37
- "@instructure/ui-buttons": "8.48.4-snapshot-4",
38
- "@instructure/ui-dom-utils": "8.48.4-snapshot-4",
39
- "@instructure/ui-icons": "8.48.4-snapshot-4",
40
- "@instructure/ui-number-input": "8.48.4-snapshot-4",
41
- "@instructure/ui-portal": "8.48.4-snapshot-4",
42
- "@instructure/ui-prop-types": "8.48.4-snapshot-4",
43
- "@instructure/ui-react-utils": "8.48.4-snapshot-4",
44
- "@instructure/ui-testable": "8.48.4-snapshot-4",
45
- "@instructure/ui-tooltip": "8.48.4-snapshot-4",
46
- "@instructure/ui-utils": "8.48.4-snapshot-4",
47
- "@instructure/ui-view": "8.48.4-snapshot-4",
48
- "@instructure/uid": "8.48.4-snapshot-4",
33
+ "@instructure/emotion": "8.49.1-snapshot-0",
34
+ "@instructure/shared-types": "8.49.1-snapshot-0",
35
+ "@instructure/ui-a11y-content": "8.49.1-snapshot-0",
36
+ "@instructure/ui-a11y-utils": "8.49.1-snapshot-0",
37
+ "@instructure/ui-buttons": "8.49.1-snapshot-0",
38
+ "@instructure/ui-dom-utils": "8.49.1-snapshot-0",
39
+ "@instructure/ui-icons": "8.49.1-snapshot-0",
40
+ "@instructure/ui-number-input": "8.49.1-snapshot-0",
41
+ "@instructure/ui-portal": "8.49.1-snapshot-0",
42
+ "@instructure/ui-prop-types": "8.49.1-snapshot-0",
43
+ "@instructure/ui-react-utils": "8.49.1-snapshot-0",
44
+ "@instructure/ui-testable": "8.49.1-snapshot-0",
45
+ "@instructure/ui-tooltip": "8.49.1-snapshot-0",
46
+ "@instructure/ui-utils": "8.49.1-snapshot-0",
47
+ "@instructure/ui-view": "8.49.1-snapshot-0",
48
+ "@instructure/uid": "8.49.1-snapshot-0",
49
49
  "keycode": "^2.2.1",
50
50
  "prop-types": "^15.8.1"
51
51
  },
@@ -198,7 +198,7 @@ class Pagination extends Component<PaginationProps> {
198
198
  }
199
199
  }
200
200
 
201
- ;(nextFocusElement as HTMLElement).focus()
201
+ ;(nextFocusElement as HTMLElement)?.focus()
202
202
  }
203
203
  }
204
204