@instructure/ui-alerts 10.17.0 → 10.17.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,6 +3,17 @@
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.17.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v10.17.0...v10.17.1-snapshot-0) (2025-05-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-alerts:** sotp passing onDismiss to div in Alert ([1ac0a2d](https://github.com/instructure/instructure-ui/commit/1ac0a2d2500e62e3d9892e71f0191c1119e1b529))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.17.0](https://github.com/instructure/instructure-ui/compare/v10.16.4...v10.17.0) (2025-05-20)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-alerts
package/es/Alert/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- const _excluded = ["margin", "styles", "children"];
2
+ const _excluded = ["margin", "styles", "children", "onDismiss"];
3
3
  var _dec, _dec2, _class, _Alert;
4
4
  /*
5
5
  * The MIT License (MIT)
@@ -190,10 +190,13 @@ let Alert = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gene
190
190
  }, "closeButton") : null;
191
191
  }
192
192
  renderAlert() {
193
+ // prevent onDismiss from being passed to the View component
194
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
193
195
  const _this$props3 = this.props,
194
196
  margin = _this$props3.margin,
195
197
  styles = _this$props3.styles,
196
198
  children = _this$props3.children,
199
+ onDismiss = _this$props3.onDismiss,
197
200
  props = _objectWithoutProperties(_this$props3, _excluded);
198
201
  return _jsxs(View, {
199
202
  ...passthroughProps({
@@ -26,7 +26,7 @@ var _styles = _interopRequireDefault(require("./styles"));
26
26
  var _theme = _interopRequireDefault(require("./theme"));
27
27
  var _props = require("./props");
28
28
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
29
- const _excluded = ["margin", "styles", "children"];
29
+ const _excluded = ["margin", "styles", "children", "onDismiss"];
30
30
  var _dec, _dec2, _class, _Alert;
31
31
  /*
32
32
  * The MIT License (MIT)
@@ -201,10 +201,13 @@ let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId
201
201
  }, "closeButton") : null;
202
202
  }
203
203
  renderAlert() {
204
+ // prevent onDismiss from being passed to the View component
205
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
204
206
  const _this$props3 = this.props,
205
207
  margin = _this$props3.margin,
206
208
  styles = _this$props3.styles,
207
209
  children = _this$props3.children,
210
+ onDismiss = _this$props3.onDismiss,
208
211
  props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
209
212
  return (0, _jsxRuntime.jsxs)(_View.View, {
210
213
  ...(0, _passthroughProps.passthroughProps)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-alerts",
3
- "version": "10.17.0",
3
+ "version": "10.17.1-snapshot-0",
4
4
  "description": "An alert component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.17.0",
27
- "@instructure/ui-babel-preset": "10.17.0",
28
- "@instructure/ui-color-utils": "10.17.0",
29
- "@instructure/ui-scripts": "10.17.0",
30
- "@instructure/ui-test-utils": "10.17.0",
26
+ "@instructure/ui-axe-check": "10.17.1-snapshot-0",
27
+ "@instructure/ui-babel-preset": "10.17.1-snapshot-0",
28
+ "@instructure/ui-color-utils": "10.17.1-snapshot-0",
29
+ "@instructure/ui-scripts": "10.17.1-snapshot-0",
30
+ "@instructure/ui-test-utils": "10.17.1-snapshot-0",
31
31
  "@testing-library/jest-dom": "^6.6.3",
32
32
  "@testing-library/react": "^16.0.1",
33
33
  "@testing-library/user-event": "^14.5.2",
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.26.0",
38
- "@instructure/console": "10.17.0",
39
- "@instructure/emotion": "10.17.0",
40
- "@instructure/shared-types": "10.17.0",
41
- "@instructure/ui-a11y-content": "10.17.0",
42
- "@instructure/ui-buttons": "10.17.0",
43
- "@instructure/ui-icons": "10.17.0",
44
- "@instructure/ui-motion": "10.17.0",
45
- "@instructure/ui-react-utils": "10.17.0",
46
- "@instructure/ui-themes": "10.17.0",
47
- "@instructure/ui-view": "10.17.0",
38
+ "@instructure/console": "10.17.1-snapshot-0",
39
+ "@instructure/emotion": "10.17.1-snapshot-0",
40
+ "@instructure/shared-types": "10.17.1-snapshot-0",
41
+ "@instructure/ui-a11y-content": "10.17.1-snapshot-0",
42
+ "@instructure/ui-buttons": "10.17.1-snapshot-0",
43
+ "@instructure/ui-icons": "10.17.1-snapshot-0",
44
+ "@instructure/ui-motion": "10.17.1-snapshot-0",
45
+ "@instructure/ui-react-utils": "10.17.1-snapshot-0",
46
+ "@instructure/ui-themes": "10.17.1-snapshot-0",
47
+ "@instructure/ui-view": "10.17.1-snapshot-0",
48
48
  "keycode": "^2",
49
49
  "prop-types": "^15.8.1"
50
50
  },
@@ -258,7 +258,9 @@ class Alert extends Component<AlertProps, AlertState> {
258
258
  }
259
259
 
260
260
  renderAlert() {
261
- const { margin, styles, children, ...props } = this.props
261
+ // prevent onDismiss from being passed to the View component
262
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
263
+ const { margin, styles, children, onDismiss, ...props } = this.props
262
264
  return (
263
265
  <View
264
266
  {...passthroughProps({ ...props })}