@instructure/ui-alerts 10.26.1 → 11.0.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 +30 -1
- package/es/Alert/index.js +2 -2
- package/es/Alert/props.js +1 -19
- package/lib/Alert/index.js +1 -1
- package/lib/Alert/props.js +1 -20
- package/package.json +19 -20
- package/src/Alert/index.tsx +1 -2
- package/src/Alert/props.ts +2 -25
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/index.d.ts +0 -17
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Alert/props.d.ts +2 -3
- package/types/Alert/props.d.ts.map +1 -1
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
|
-
## [
|
|
6
|
+
## [11.0.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1-snapshot-0) (2025-10-07)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-alerts
|
|
9
9
|
|
|
@@ -11,6 +11,35 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
# [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* **many:** InstUI v11 contains the following breaking changes:
|
|
25
|
+
- React 16 and 17 are no longer supported
|
|
26
|
+
- remove `PropTypes` from all packages
|
|
27
|
+
- remove `CodeEditor` component
|
|
28
|
+
- remove `@instui/theme-registry` package
|
|
29
|
+
- remove `@testable`, `@experimental`, `@hack` decorators
|
|
30
|
+
- InstUISettingsProvider's `as` prop is removed
|
|
31
|
+
- `canvas.use()`, `canvasHighContrast.use()` functions are removed
|
|
32
|
+
- `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
|
|
33
|
+
- `variables` field on theme objects are removed
|
|
34
|
+
- remove deprecated props from Table: Row's `isStacked`, Body's
|
|
35
|
+
`isStacked`, `hover`, and `headers`
|
|
36
|
+
- `Table`'s `caption` prop is now required
|
|
37
|
+
- `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
14
43
|
# [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01)
|
|
15
44
|
|
|
16
45
|
|
package/es/Alert/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import { logError as error } from '@instructure/console';
|
|
|
38
38
|
import { withStyle } from '@instructure/emotion';
|
|
39
39
|
import generateStyle from './styles';
|
|
40
40
|
import generateComponentTheme from './theme';
|
|
41
|
-
import {
|
|
41
|
+
import { allowedProps } from './props';
|
|
42
42
|
import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
43
43
|
/**
|
|
44
44
|
---
|
|
@@ -248,7 +248,7 @@ let Alert = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gene
|
|
|
248
248
|
})]
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
}, _Alert.displayName = "Alert", _Alert.componentId = 'Alert', _Alert.
|
|
251
|
+
}, _Alert.displayName = "Alert", _Alert.componentId = 'Alert', _Alert.allowedProps = allowedProps, _Alert.defaultProps = {
|
|
252
252
|
variant: 'info',
|
|
253
253
|
margin: 'x-small 0',
|
|
254
254
|
timeout: 0,
|
package/es/Alert/props.js
CHANGED
|
@@ -22,23 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
children: PropTypes.node,
|
|
28
|
-
variant: PropTypes.oneOf(['info', 'success', 'warning', 'error']),
|
|
29
|
-
margin: PropTypes.string,
|
|
30
|
-
liveRegion: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
31
|
-
liveRegionPoliteness: PropTypes.oneOf(['polite', 'assertive']),
|
|
32
|
-
isLiveRegionAtomic: PropTypes.bool,
|
|
33
|
-
screenReaderOnly: PropTypes.bool,
|
|
34
|
-
timeout: PropTypes.number,
|
|
35
|
-
renderCloseButtonLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
36
|
-
onDismiss: PropTypes.func,
|
|
37
|
-
transition: PropTypes.oneOf(['none', 'fade']),
|
|
38
|
-
open: PropTypes.bool,
|
|
39
|
-
hasShadow: PropTypes.bool,
|
|
40
|
-
variantScreenReaderLabel: PropTypes.string,
|
|
41
|
-
renderCustomIcon: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
42
|
-
};
|
|
43
25
|
const allowedProps = ['children', 'variant', 'margin', 'liveRegion', 'liveRegionPoliteness', 'isLiveRegionAtomic', 'screenReaderOnly', 'timeout', 'renderCloseButtonLabel', 'onDismiss', 'transition', 'open', 'hasShadow', 'renderCustomIcon'];
|
|
44
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/lib/Alert/index.js
CHANGED
|
@@ -259,7 +259,7 @@ let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId
|
|
|
259
259
|
})]
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
}, _Alert.displayName = "Alert", _Alert.componentId = 'Alert', _Alert.
|
|
262
|
+
}, _Alert.displayName = "Alert", _Alert.componentId = 'Alert', _Alert.allowedProps = _props.allowedProps, _Alert.defaultProps = {
|
|
263
263
|
variant: 'info',
|
|
264
264
|
margin: 'x-small 0',
|
|
265
265
|
timeout: 0,
|
package/lib/Alert/props.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
exports.allowedProps = void 0;
|
|
9
7
|
/*
|
|
10
8
|
* The MIT License (MIT)
|
|
11
9
|
*
|
|
@@ -30,21 +28,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
28
|
* SOFTWARE.
|
|
31
29
|
*/
|
|
32
30
|
|
|
33
|
-
const propTypes = exports.propTypes = {
|
|
34
|
-
children: _propTypes.default.node,
|
|
35
|
-
variant: _propTypes.default.oneOf(['info', 'success', 'warning', 'error']),
|
|
36
|
-
margin: _propTypes.default.string,
|
|
37
|
-
liveRegion: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.element]),
|
|
38
|
-
liveRegionPoliteness: _propTypes.default.oneOf(['polite', 'assertive']),
|
|
39
|
-
isLiveRegionAtomic: _propTypes.default.bool,
|
|
40
|
-
screenReaderOnly: _propTypes.default.bool,
|
|
41
|
-
timeout: _propTypes.default.number,
|
|
42
|
-
renderCloseButtonLabel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
43
|
-
onDismiss: _propTypes.default.func,
|
|
44
|
-
transition: _propTypes.default.oneOf(['none', 'fade']),
|
|
45
|
-
open: _propTypes.default.bool,
|
|
46
|
-
hasShadow: _propTypes.default.bool,
|
|
47
|
-
variantScreenReaderLabel: _propTypes.default.string,
|
|
48
|
-
renderCustomIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func])
|
|
49
|
-
};
|
|
50
31
|
const allowedProps = exports.allowedProps = ['children', 'variant', 'margin', 'liveRegion', 'liveRegionPoliteness', 'isLiveRegionAtomic', 'screenReaderOnly', 'timeout', 'renderCloseButtonLabel', 'onDismiss', 'transition', 'open', 'hasShadow', 'renderCustomIcon'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.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,33 +23,32 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "
|
|
27
|
-
"@instructure/ui-babel-preset": "
|
|
28
|
-
"@instructure/ui-color-utils": "
|
|
29
|
-
"@instructure/ui-scripts": "
|
|
26
|
+
"@instructure/ui-axe-check": "11.0.1-snapshot-0",
|
|
27
|
+
"@instructure/ui-babel-preset": "11.0.1-snapshot-0",
|
|
28
|
+
"@instructure/ui-color-utils": "11.0.1-snapshot-0",
|
|
29
|
+
"@instructure/ui-scripts": "11.0.1-snapshot-0",
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
|
-
"@testing-library/react": "
|
|
31
|
+
"@testing-library/react": "15.0.7",
|
|
32
32
|
"@testing-library/user-event": "^14.6.1",
|
|
33
33
|
"vitest": "^3.2.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.27.6",
|
|
37
|
-
"@instructure/console": "
|
|
38
|
-
"@instructure/emotion": "
|
|
39
|
-
"@instructure/shared-types": "
|
|
40
|
-
"@instructure/ui-a11y-content": "
|
|
41
|
-
"@instructure/ui-buttons": "
|
|
42
|
-
"@instructure/ui-icons": "
|
|
43
|
-
"@instructure/ui-motion": "
|
|
44
|
-
"@instructure/ui-react-utils": "
|
|
45
|
-
"@instructure/ui-themes": "
|
|
46
|
-
"@instructure/ui-view": "
|
|
47
|
-
"keycode": "^2"
|
|
48
|
-
"prop-types": "^15.8.1"
|
|
37
|
+
"@instructure/console": "11.0.1-snapshot-0",
|
|
38
|
+
"@instructure/emotion": "11.0.1-snapshot-0",
|
|
39
|
+
"@instructure/shared-types": "11.0.1-snapshot-0",
|
|
40
|
+
"@instructure/ui-a11y-content": "11.0.1-snapshot-0",
|
|
41
|
+
"@instructure/ui-buttons": "11.0.1-snapshot-0",
|
|
42
|
+
"@instructure/ui-icons": "11.0.1-snapshot-0",
|
|
43
|
+
"@instructure/ui-motion": "11.0.1-snapshot-0",
|
|
44
|
+
"@instructure/ui-react-utils": "11.0.1-snapshot-0",
|
|
45
|
+
"@instructure/ui-themes": "11.0.1-snapshot-0",
|
|
46
|
+
"@instructure/ui-view": "11.0.1-snapshot-0",
|
|
47
|
+
"keycode": "^2"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"react": ">=
|
|
52
|
-
"react-dom": ">=
|
|
50
|
+
"react": ">=18 <=19",
|
|
51
|
+
"react-dom": ">=18 <=19"
|
|
53
52
|
},
|
|
54
53
|
"publishConfig": {
|
|
55
54
|
"access": "public"
|
package/src/Alert/index.tsx
CHANGED
|
@@ -48,7 +48,7 @@ import { withStyle } from '@instructure/emotion'
|
|
|
48
48
|
import generateStyle from './styles'
|
|
49
49
|
import generateComponentTheme from './theme'
|
|
50
50
|
|
|
51
|
-
import {
|
|
51
|
+
import { allowedProps } from './props'
|
|
52
52
|
import type { AlertProps, AlertState } from './props'
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -61,7 +61,6 @@ category: components
|
|
|
61
61
|
class Alert extends Component<AlertProps, AlertState> {
|
|
62
62
|
static readonly componentId = 'Alert'
|
|
63
63
|
|
|
64
|
-
static propTypes = propTypes
|
|
65
64
|
static allowedProps = allowedProps
|
|
66
65
|
static defaultProps = {
|
|
67
66
|
variant: 'info',
|
package/src/Alert/props.ts
CHANGED
|
@@ -23,18 +23,13 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { ReactNode } from 'react'
|
|
26
|
-
import PropTypes from 'prop-types'
|
|
27
26
|
|
|
28
27
|
import type {
|
|
29
28
|
Spacing,
|
|
30
29
|
WithStyleProps,
|
|
31
30
|
ComponentStyle
|
|
32
31
|
} from '@instructure/emotion'
|
|
33
|
-
import type {
|
|
34
|
-
AlertTheme,
|
|
35
|
-
PropValidators,
|
|
36
|
-
Renderable
|
|
37
|
-
} from '@instructure/shared-types'
|
|
32
|
+
import type { AlertTheme, Renderable } from '@instructure/shared-types'
|
|
38
33
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
39
34
|
|
|
40
35
|
type AlertOwnProps = {
|
|
@@ -128,24 +123,6 @@ type AlertStyle = ComponentStyle<
|
|
|
128
123
|
'alert' | 'icon' | 'closeButton' | 'content' | 'variantScreenReaderLabel'
|
|
129
124
|
>
|
|
130
125
|
|
|
131
|
-
const propTypes: PropValidators<PropKeys> = {
|
|
132
|
-
children: PropTypes.node,
|
|
133
|
-
variant: PropTypes.oneOf(['info', 'success', 'warning', 'error']),
|
|
134
|
-
margin: PropTypes.string,
|
|
135
|
-
liveRegion: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
136
|
-
liveRegionPoliteness: PropTypes.oneOf(['polite', 'assertive']),
|
|
137
|
-
isLiveRegionAtomic: PropTypes.bool,
|
|
138
|
-
screenReaderOnly: PropTypes.bool,
|
|
139
|
-
timeout: PropTypes.number,
|
|
140
|
-
renderCloseButtonLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
141
|
-
onDismiss: PropTypes.func,
|
|
142
|
-
transition: PropTypes.oneOf(['none', 'fade']),
|
|
143
|
-
open: PropTypes.bool,
|
|
144
|
-
hasShadow: PropTypes.bool,
|
|
145
|
-
variantScreenReaderLabel: PropTypes.string,
|
|
146
|
-
renderCustomIcon: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
147
|
-
}
|
|
148
|
-
|
|
149
126
|
const allowedProps: AllowedPropKeys = [
|
|
150
127
|
'children',
|
|
151
128
|
'variant',
|
|
@@ -168,4 +145,4 @@ type AlertState = {
|
|
|
168
145
|
}
|
|
169
146
|
|
|
170
147
|
export type { AlertProps, AlertStyle, AlertState }
|
|
171
|
-
export {
|
|
148
|
+
export { allowedProps }
|