@instructure/ui-alerts 10.2.3-snapshot-14 → 10.2.3-snapshot-16

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,7 @@
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
- ## [10.2.3-snapshot-14](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-14) (2024-10-02)
6
+ ## [10.2.3-snapshot-16](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-16) (2024-10-03)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-alerts
9
9
 
@@ -83,7 +83,7 @@ describe('<Alert />', () => {
83
83
  });
84
84
  it('should call `onDismiss` when the close button is clicked with renderCloseButtonLabel', async () => {
85
85
  const onDismiss = vi.fn();
86
- render( /*#__PURE__*/React.createElement(Alert, {
86
+ render(/*#__PURE__*/React.createElement(Alert, {
87
87
  variant: "success",
88
88
  renderCloseButtonLabel: _div || (_div = /*#__PURE__*/React.createElement("div", null, "Close")),
89
89
  onDismiss: onDismiss
@@ -123,7 +123,7 @@ describe('<Alert />', () => {
123
123
  });
124
124
  it('should add alert text to aria live region, when present', async () => {
125
125
  const liveRegion = document.getElementById('_alertLiveRegion');
126
- render( /*#__PURE__*/React.createElement(Alert, {
126
+ render(/*#__PURE__*/React.createElement(Alert, {
127
127
  variant: "success",
128
128
  transition: "none",
129
129
  liveRegion: () => liveRegion,
@@ -135,7 +135,7 @@ describe('<Alert />', () => {
135
135
  describe('with `screenReaderOnly', () => {
136
136
  it('should not render anything when using `liveRegion`', async () => {
137
137
  const liveRegion = document.getElementById('_alertLiveRegion');
138
- const _render4 = render( /*#__PURE__*/React.createElement(Alert, {
138
+ const _render4 = render(/*#__PURE__*/React.createElement(Alert, {
139
139
  variant: "success",
140
140
  liveRegion: () => liveRegion,
141
141
  screenReaderOnly: true
@@ -157,7 +157,7 @@ describe('<Alert />', () => {
157
157
  });
158
158
  it('should set aria-atomic to the aria live region when isLiveRegionAtomic is present', async () => {
159
159
  const liveRegion = document.getElementById('_alertLiveRegion');
160
- render( /*#__PURE__*/React.createElement(Alert, {
160
+ render(/*#__PURE__*/React.createElement(Alert, {
161
161
  variant: "success",
162
162
  transition: "none",
163
163
  liveRegion: () => liveRegion,
@@ -169,7 +169,7 @@ describe('<Alert />', () => {
169
169
  });
170
170
  it('should close when told to, with transition', async () => {
171
171
  const liveRegion = document.getElementById('_alertLiveRegion');
172
- const _render5 = render( /*#__PURE__*/React.createElement(Alert, {
172
+ const _render5 = render(/*#__PURE__*/React.createElement(Alert, {
173
173
  variant: "success",
174
174
  liveRegion: () => liveRegion
175
175
  }, "Success: Sample alert text.")),
@@ -177,7 +177,7 @@ describe('<Alert />', () => {
177
177
  expect(liveRegion.children.length).toBe(1);
178
178
 
179
179
  //set open to false
180
- rerender( /*#__PURE__*/React.createElement(Alert, {
180
+ rerender(/*#__PURE__*/React.createElement(Alert, {
181
181
  variant: "success",
182
182
  open: false,
183
183
  liveRegion: () => liveRegion
@@ -188,7 +188,7 @@ describe('<Alert />', () => {
188
188
  });
189
189
  it('should close when told to, without transition', async () => {
190
190
  const liveRegion = document.getElementById('_alertLiveRegion');
191
- const _render6 = render( /*#__PURE__*/React.createElement(Alert, {
191
+ const _render6 = render(/*#__PURE__*/React.createElement(Alert, {
192
192
  variant: "success",
193
193
  transition: "none",
194
194
  liveRegion: () => liveRegion
@@ -198,7 +198,7 @@ describe('<Alert />', () => {
198
198
  expect(liveRegion.children.length).toBe(1);
199
199
 
200
200
  //set open to false
201
- rerender( /*#__PURE__*/React.createElement(Alert, {
201
+ rerender(/*#__PURE__*/React.createElement(Alert, {
202
202
  open: false,
203
203
  variant: "success",
204
204
  transition: "none",
@@ -85,7 +85,7 @@ describe('<Alert />', () => {
85
85
  });
86
86
  it('should call `onDismiss` when the close button is clicked with renderCloseButtonLabel', async () => {
87
87
  const onDismiss = _vitest.vi.fn();
88
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
88
+ (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
89
89
  variant: "success",
90
90
  renderCloseButtonLabel: _div || (_div = /*#__PURE__*/_react.default.createElement("div", null, "Close")),
91
91
  onDismiss: onDismiss
@@ -125,7 +125,7 @@ describe('<Alert />', () => {
125
125
  });
126
126
  it('should add alert text to aria live region, when present', async () => {
127
127
  const liveRegion = document.getElementById('_alertLiveRegion');
128
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
128
+ (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
129
129
  variant: "success",
130
130
  transition: "none",
131
131
  liveRegion: () => liveRegion,
@@ -137,7 +137,7 @@ describe('<Alert />', () => {
137
137
  describe('with `screenReaderOnly', () => {
138
138
  it('should not render anything when using `liveRegion`', async () => {
139
139
  const liveRegion = document.getElementById('_alertLiveRegion');
140
- const _render4 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
140
+ const _render4 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
141
141
  variant: "success",
142
142
  liveRegion: () => liveRegion,
143
143
  screenReaderOnly: true
@@ -159,7 +159,7 @@ describe('<Alert />', () => {
159
159
  });
160
160
  it('should set aria-atomic to the aria live region when isLiveRegionAtomic is present', async () => {
161
161
  const liveRegion = document.getElementById('_alertLiveRegion');
162
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
162
+ (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
163
163
  variant: "success",
164
164
  transition: "none",
165
165
  liveRegion: () => liveRegion,
@@ -171,7 +171,7 @@ describe('<Alert />', () => {
171
171
  });
172
172
  it('should close when told to, with transition', async () => {
173
173
  const liveRegion = document.getElementById('_alertLiveRegion');
174
- const _render5 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
174
+ const _render5 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
175
175
  variant: "success",
176
176
  liveRegion: () => liveRegion
177
177
  }, "Success: Sample alert text.")),
@@ -179,7 +179,7 @@ describe('<Alert />', () => {
179
179
  expect(liveRegion.children.length).toBe(1);
180
180
 
181
181
  //set open to false
182
- rerender( /*#__PURE__*/_react.default.createElement(_index.Alert, {
182
+ rerender(/*#__PURE__*/_react.default.createElement(_index.Alert, {
183
183
  variant: "success",
184
184
  open: false,
185
185
  liveRegion: () => liveRegion
@@ -190,7 +190,7 @@ describe('<Alert />', () => {
190
190
  });
191
191
  it('should close when told to, without transition', async () => {
192
192
  const liveRegion = document.getElementById('_alertLiveRegion');
193
- const _render6 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Alert, {
193
+ const _render6 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Alert, {
194
194
  variant: "success",
195
195
  transition: "none",
196
196
  liveRegion: () => liveRegion
@@ -200,7 +200,7 @@ describe('<Alert />', () => {
200
200
  expect(liveRegion.children.length).toBe(1);
201
201
 
202
202
  //set open to false
203
- rerender( /*#__PURE__*/_react.default.createElement(_index.Alert, {
203
+ rerender(/*#__PURE__*/_react.default.createElement(_index.Alert, {
204
204
  open: false,
205
205
  variant: "success",
206
206
  transition: "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-alerts",
3
- "version": "10.2.3-snapshot-14",
3
+ "version": "10.2.3-snapshot-16",
4
4
  "description": "An alert component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,28 +23,28 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.2.3-snapshot-14",
27
- "@instructure/ui-babel-preset": "10.2.3-snapshot-14",
28
- "@instructure/ui-color-utils": "10.2.3-snapshot-14",
29
- "@instructure/ui-scripts": "10.2.3-snapshot-14",
30
- "@instructure/ui-test-utils": "10.2.3-snapshot-14",
26
+ "@instructure/ui-axe-check": "10.2.3-snapshot-16",
27
+ "@instructure/ui-babel-preset": "10.2.3-snapshot-16",
28
+ "@instructure/ui-color-utils": "10.2.3-snapshot-16",
29
+ "@instructure/ui-scripts": "10.2.3-snapshot-16",
30
+ "@instructure/ui-test-utils": "10.2.3-snapshot-16",
31
31
  "@testing-library/jest-dom": "^6.4.6",
32
- "@testing-library/react": "^15.0.7",
32
+ "@testing-library/react": "^16.0.1",
33
33
  "@testing-library/user-event": "^14.5.2",
34
- "vitest": "^2.0.2"
34
+ "vitest": "^2.1.1"
35
35
  },
36
36
  "dependencies": {
37
- "@babel/runtime": "^7.24.5",
38
- "@instructure/console": "10.2.3-snapshot-14",
39
- "@instructure/emotion": "10.2.3-snapshot-14",
40
- "@instructure/shared-types": "10.2.3-snapshot-14",
41
- "@instructure/ui-a11y-content": "10.2.3-snapshot-14",
42
- "@instructure/ui-buttons": "10.2.3-snapshot-14",
43
- "@instructure/ui-icons": "10.2.3-snapshot-14",
44
- "@instructure/ui-motion": "10.2.3-snapshot-14",
45
- "@instructure/ui-react-utils": "10.2.3-snapshot-14",
46
- "@instructure/ui-themes": "10.2.3-snapshot-14",
47
- "@instructure/ui-view": "10.2.3-snapshot-14",
37
+ "@babel/runtime": "^7.25.6",
38
+ "@instructure/console": "10.2.3-snapshot-16",
39
+ "@instructure/emotion": "10.2.3-snapshot-16",
40
+ "@instructure/shared-types": "10.2.3-snapshot-16",
41
+ "@instructure/ui-a11y-content": "10.2.3-snapshot-16",
42
+ "@instructure/ui-buttons": "10.2.3-snapshot-16",
43
+ "@instructure/ui-icons": "10.2.3-snapshot-16",
44
+ "@instructure/ui-motion": "10.2.3-snapshot-16",
45
+ "@instructure/ui-react-utils": "10.2.3-snapshot-16",
46
+ "@instructure/ui-themes": "10.2.3-snapshot-16",
47
+ "@instructure/ui-view": "10.2.3-snapshot-16",
48
48
  "keycode": "^2",
49
49
  "prop-types": "^15.8.1"
50
50
  },