@instructure/ui-alerts 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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,14 @@
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
+ ## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-alerts
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['children', 'variant', 'margin', 'liveRegion', 'liveRegionPoliteness', 'isLiveRegionAtomic', 'screenReaderOnly', 'timeout', 'renderCloseButtonLabel', 'onDismiss', 'transition', 'open', 'hasShadow', 'renderCustomIcon'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -34,9 +34,9 @@ import { IconCheckMarkSolid, IconInfoBorderlessSolid, IconWarningBorderlessSolid
34
34
  import { Transition } from '@instructure/ui-motion';
35
35
  import { logError as error } from '@instructure/console';
36
36
  import { withStyle } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
38
- import generateComponentTheme from "./theme.js";
39
- import { allowedProps } from "./props.js";
37
+ import generateStyle from './styles.js';
38
+ import generateComponentTheme from './theme.js';
39
+ import { allowedProps } from './props.js';
40
40
  import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
41
41
  /**
42
42
  ---
@@ -44,7 +44,7 @@ category: components
44
44
  ---
45
45
  **/
46
46
  let Alert = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class Alert extends Component {
47
- static displayName = "Alert";
47
+ static displayName = 'Alert';
48
48
  static componentId = 'Alert';
49
49
  static allowedProps = allowedProps;
50
50
  static defaultProps = {
@@ -203,7 +203,6 @@ let Alert = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gene
203
203
  }
204
204
  renderAlert() {
205
205
  // prevent onDismiss from being passed to the View component
206
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
207
206
  const {
208
207
  margin,
209
208
  styles,
@@ -34,8 +34,8 @@ import { InfoInstUIIcon, XCircleInstUIIcon, CircleCheckInstUIIcon, TriangleAlert
34
34
  import { Transition } from '@instructure/ui-motion';
35
35
  import { logError as error } from '@instructure/console';
36
36
  import { withStyleNew } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
38
- import { allowedProps } from "./props.js";
37
+ import generateStyle from './styles.js';
38
+ import { allowedProps } from './props.js';
39
39
  import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
40
40
  /**
41
41
  ---
@@ -43,7 +43,7 @@ category: components
43
43
  ---
44
44
  **/
45
45
  let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Alert extends Component {
46
- static displayName = "Alert";
46
+ static displayName = 'Alert';
47
47
  static componentId = 'Alert';
48
48
  static allowedProps = allowedProps;
49
49
  static defaultProps = {
@@ -202,7 +202,6 @@ let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle),
202
202
  }
203
203
  renderAlert() {
204
204
  // prevent onDismiss from being passed to the View component
205
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
206
205
  const {
207
206
  margin,
208
207
  styles,
package/es/exports/a.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Alert } from "../Alert/v1/index.js";
24
+ export { Alert } from '../Alert/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Alert } from "../Alert/v2/index.js";
24
+ export { Alert } from '../Alert/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-alerts",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "An alert component",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -16,26 +16,26 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
18
  "keycode": "^2",
19
- "@instructure/shared-types": "11.7.3",
20
- "@instructure/console": "11.7.3",
21
- "@instructure/emotion": "11.7.3",
22
- "@instructure/ui-a11y-content": "11.7.3",
23
- "@instructure/ui-buttons": "11.7.3",
24
- "@instructure/ui-react-utils": "11.7.3",
25
- "@instructure/ui-icons": "11.7.3",
26
- "@instructure/ui-themes": "11.7.3",
27
- "@instructure/ui-motion": "11.7.3",
28
- "@instructure/ui-view": "11.7.3"
19
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-motion": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@testing-library/jest-dom": "^6.6.3",
32
32
  "@testing-library/react": "15.0.7",
33
33
  "@testing-library/user-event": "^14.6.1",
34
34
  "vitest": "^3.2.2",
35
- "@instructure/ui-babel-preset": "11.7.3",
36
- "@instructure/ui-axe-check": "11.7.3",
37
- "@instructure/ui-color-utils": "11.7.3",
38
- "@instructure/ui-scripts": "11.7.3"
35
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
36
+ "@instructure/ui-scripts": "11.7.4-pr-snapshot-1781695314229",
37
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
38
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18 <=19",
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "sideEffects": false,
48
48
  "exports": {
49
- "./lib/*": "./lib/*",
50
49
  "./es/*": "./es/*",
51
50
  "./types/*": "./types/*",
52
51
  "./package.json": "./package.json",
@@ -55,28 +54,24 @@
55
54
  "src": "./src/exports/a.ts",
56
55
  "types": "./types/exports/a.d.ts",
57
56
  "import": "./es/exports/a.js",
58
- "require": "./lib/exports/a.js",
59
57
  "default": "./es/exports/a.js"
60
58
  },
61
59
  "./v11_6": {
62
60
  "src": "./src/exports/a.ts",
63
61
  "types": "./types/exports/a.d.ts",
64
62
  "import": "./es/exports/a.js",
65
- "require": "./lib/exports/a.js",
66
63
  "default": "./es/exports/a.js"
67
64
  },
68
65
  "./v11_7": {
69
66
  "src": "./src/exports/b.ts",
70
67
  "types": "./types/exports/b.d.ts",
71
68
  "import": "./es/exports/b.js",
72
- "require": "./lib/exports/b.js",
73
69
  "default": "./es/exports/b.js"
74
70
  },
75
71
  "./latest": {
76
72
  "src": "./src/exports/b.ts",
77
73
  "types": "./types/exports/b.d.ts",
78
74
  "import": "./es/exports/b.js",
79
- "require": "./lib/exports/b.js",
80
75
  "default": "./es/exports/b.js"
81
76
  }
82
77
  },
@@ -84,7 +79,7 @@
84
79
  "lint": "ui-scripts lint",
85
80
  "lint:fix": "ui-scripts lint --fix",
86
81
  "clean": "ui-scripts clean",
87
- "build": "ui-scripts build --modules es,cjs",
82
+ "build": "ui-scripts build",
88
83
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
89
84
  "build:types": "tsc -p tsconfig.build.json",
90
85
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -45,10 +45,10 @@ import { Transition } from '@instructure/ui-motion'
45
45
  import { logError as error } from '@instructure/console'
46
46
  import { withStyle } from '@instructure/emotion'
47
47
 
48
- import generateStyle from './styles'
49
- import generateComponentTheme from './theme'
48
+ import generateStyle from './styles.js'
49
+ import generateComponentTheme from './theme.js'
50
50
 
51
- import { allowedProps } from './props'
51
+ import { allowedProps } from './props.js'
52
52
  import type { AlertProps, AlertState } from './props'
53
53
 
54
54
  /**
@@ -59,6 +59,7 @@ category: components
59
59
  @withDeterministicId()
60
60
  @withStyle(generateStyle, generateComponentTheme)
61
61
  class Alert extends Component<AlertProps, AlertState> {
62
+ static displayName = 'Alert'
62
63
  static readonly componentId = 'Alert'
63
64
 
64
65
  static allowedProps = allowedProps
@@ -263,7 +264,6 @@ class Alert extends Component<AlertProps, AlertState> {
263
264
 
264
265
  renderAlert() {
265
266
  // prevent onDismiss from being passed to the View component
266
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
267
267
  const {
268
268
  margin,
269
269
  styles,
@@ -45,9 +45,9 @@ import { Transition } from '@instructure/ui-motion'
45
45
  import { logError as error } from '@instructure/console'
46
46
  import { withStyleNew } from '@instructure/emotion'
47
47
 
48
- import generateStyle from './styles'
48
+ import generateStyle from './styles.js'
49
49
 
50
- import { allowedProps } from './props'
50
+ import { allowedProps } from './props.js'
51
51
  import type { AlertProps, AlertState } from './props'
52
52
 
53
53
  /**
@@ -58,6 +58,7 @@ category: components
58
58
  @withDeterministicId()
59
59
  @withStyleNew(generateStyle)
60
60
  class Alert extends Component<AlertProps, AlertState> {
61
+ static displayName = 'Alert'
61
62
  static readonly componentId = 'Alert'
62
63
 
63
64
  static allowedProps = allowedProps
@@ -262,7 +263,6 @@ class Alert extends Component<AlertProps, AlertState> {
262
263
 
263
264
  renderAlert() {
264
265
  // prevent onDismiss from being passed to the View component
265
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
266
266
  const {
267
267
  margin,
268
268
  styles,
package/src/exports/a.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Alert } from '../Alert/v1'
24
+ export { Alert } from '../Alert/v1/index.js'
25
25
  export type { AlertProps } from '../Alert/v1/props'
package/src/exports/b.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Alert } from '../Alert/v2'
24
+ export { Alert } from '../Alert/v2/index.js'
25
25
  export type { AlertProps } from '../Alert/v2/props'