@instructure/ui-alerts 11.7.8-snapshot-5 → 11.7.8-snapshot-6

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
- ## [11.7.8-snapshot-5](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8-snapshot-5) (2026-10-01)
6
+ ## [11.7.8-snapshot-6](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8-snapshot-6) (2026-10-02)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-alerts
9
9
 
@@ -36,13 +36,15 @@ import { logError as error } from '@instructure/console';
36
36
  import { withStyleNew } from '@instructure/emotion';
37
37
  import generateStyle from './styles.js';
38
38
  import { allowedProps } from './props.js';
39
- import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
39
+ import { frozenThemesDesignTokensV1 } from '@instructure/ui-themes';
40
+
40
41
  /**
41
42
  ---
42
43
  category: components
43
44
  ---
44
45
  **/
45
- let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Alert extends Component {
46
+ import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
47
+ let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle, null, frozenThemesDesignTokensV1), _dec(_class = _dec2(_class = class Alert extends Component {
46
48
  static displayName = 'Alert';
47
49
  static componentId = 'Alert';
48
50
  static allowedProps = allowedProps;
@@ -20,6 +20,7 @@ var _console = require("@instructure/console");
20
20
  var _emotion = require("@instructure/emotion");
21
21
  var _styles = _interopRequireDefault(require("./styles.js"));
22
22
  var _props = require("./props.js");
23
+ var _uiThemes = require("@instructure/ui-themes");
23
24
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
24
25
  var _dec, _dec2, _class;
25
26
  /*
@@ -50,7 +51,7 @@ var _dec, _dec2, _class;
50
51
  category: components
51
52
  ---
52
53
  **/
53
- let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = _dec2(_class = class Alert extends _react.Component {
54
+ let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default, null, _uiThemes.frozenThemesDesignTokensV1), _dec(_class = _dec2(_class = class Alert extends _react.Component {
54
55
  static displayName = 'Alert';
55
56
  static componentId = 'Alert';
56
57
  static allowedProps = _props.allowedProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-alerts",
3
- "version": "11.7.8-snapshot-5",
3
+ "version": "11.7.8-snapshot-6",
4
4
  "description": "An alert component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -16,23 +16,23 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
18
  "keycode": "^2",
19
- "@instructure/console": "11.7.8-snapshot-5",
20
- "@instructure/shared-types": "11.7.8-snapshot-5",
21
- "@instructure/ui-a11y-content": "11.7.8-snapshot-5",
22
- "@instructure/emotion": "11.7.8-snapshot-5",
23
- "@instructure/ui-buttons": "11.7.8-snapshot-5",
24
- "@instructure/ui-icons": "11.7.8-snapshot-5",
25
- "@instructure/ui-motion": "11.7.8-snapshot-5",
26
- "@instructure/ui-react-utils": "11.7.8-snapshot-5",
27
- "@instructure/ui-view": "11.7.8-snapshot-5",
28
- "@instructure/ui-themes": "11.7.8-snapshot-5"
19
+ "@instructure/console": "11.7.8-snapshot-6",
20
+ "@instructure/emotion": "11.7.8-snapshot-6",
21
+ "@instructure/shared-types": "11.7.8-snapshot-6",
22
+ "@instructure/ui-a11y-content": "11.7.8-snapshot-6",
23
+ "@instructure/ui-buttons": "11.7.8-snapshot-6",
24
+ "@instructure/ui-icons": "11.7.8-snapshot-6",
25
+ "@instructure/ui-react-utils": "11.7.8-snapshot-6",
26
+ "@instructure/ui-motion": "11.7.8-snapshot-6",
27
+ "@instructure/ui-view": "11.7.8-snapshot-6",
28
+ "@instructure/ui-themes": "11.7.8-snapshot-6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "vitest": "^5.0.0",
32
- "@instructure/ui-babel-preset": "11.7.8-snapshot-5",
33
- "@instructure/ui-color-utils": "11.7.8-snapshot-5",
34
- "@instructure/ui-axe-check": "11.7.8-snapshot-5",
35
- "@instructure/ui-scripts": "11.7.8-snapshot-5"
32
+ "@instructure/ui-axe-check": "11.7.8-snapshot-6",
33
+ "@instructure/ui-babel-preset": "11.7.8-snapshot-6",
34
+ "@instructure/ui-color-utils": "11.7.8-snapshot-6",
35
+ "@instructure/ui-scripts": "11.7.8-snapshot-6"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18 <=19",
@@ -49,6 +49,7 @@ import generateStyle from './styles.js'
49
49
 
50
50
  import { allowedProps } from './props.js'
51
51
  import type { AlertProps, AlertState } from './props'
52
+ import { frozenThemesDesignTokensV1 } from '@instructure/ui-themes'
52
53
 
53
54
  /**
54
55
  ---
@@ -56,7 +57,7 @@ category: components
56
57
  ---
57
58
  **/
58
59
  @withDeterministicId()
59
- @withStyleNew(generateStyle)
60
+ @withStyleNew(generateStyle, null, frozenThemesDesignTokensV1)
60
61
  class Alert extends Component<AlertProps, AlertState> {
61
62
  static displayName = 'Alert'
62
63
  static readonly componentId = 'Alert'
@@ -29,9 +29,9 @@ import type {
29
29
  WithStyleProps,
30
30
  ComponentStyle
31
31
  } from '@instructure/emotion'
32
- import type { NewComponentTypes } from '@instructure/ui-themes'
33
32
  import type { Renderable } from '@instructure/shared-types'
34
33
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
34
+ import type { DesignTokensV1ComponentTypes } from '@instructure/ui-themes'
35
35
 
36
36
  type AlertOwnProps = {
37
37
  /**
@@ -122,7 +122,10 @@ type PropKeys = keyof AlertOwnProps
122
122
  type AllowedPropKeys = Readonly<Array<PropKeys>>
123
123
 
124
124
  type AlertProps = AlertOwnProps &
125
- WithStyleProps<ReturnType<NewComponentTypes['Alert']>, AlertStyle> &
125
+ WithStyleProps<
126
+ ReturnType<DesignTokensV1ComponentTypes['Alert']>,
127
+ AlertStyle
128
+ > &
126
129
  WithDeterministicIdProps
127
130
 
128
131
  type AlertStyle = ComponentStyle<
@@ -22,8 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { boxShadowObjectsToCSSString } from '@instructure/ui-themes'
25
- import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes'
25
+ import type { SharedTokens } from '@instructure/ui-themes'
26
26
  import type { AlertProps, AlertStyle } from './props'
27
+ import type { DesignTokensV1ComponentTypes } from '@instructure/ui-themes'
27
28
 
28
29
  /**
29
30
  * ---
@@ -36,7 +37,7 @@ import type { AlertProps, AlertStyle } from './props'
36
37
  * @return {Object} The final style object, which will be used in the component
37
38
  */
38
39
  const generateStyle = (
39
- componentTheme: ReturnType<NewComponentTypes['Alert']>,
40
+ componentTheme: ReturnType<DesignTokensV1ComponentTypes['Alert']>,
40
41
  props: AlertProps,
41
42
  sharedTokens: SharedTokens
42
43
  ): AlertStyle => {