@instructure/ui-select 9.8.1 → 9.9.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
+ # [9.9.0](https://github.com/instructure/instructure-ui/compare/v9.8.1...v9.9.0) (2024-11-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **many:** backport new error messages from v10 ([9003d19](https://github.com/instructure/instructure-ui/commit/9003d19cc66022dfdeecc2e2c8c8d9d2a7300e3f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [9.8.1](https://github.com/instructure/instructure-ui/compare/v9.8.0...v9.8.1) (2024-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-select
@@ -82,9 +82,7 @@ describe('<Select />', () => {
82
82
  const _render3 = render( /*#__PURE__*/React.createElement(Select, {
83
83
  renderLabel: "Choose an option",
84
84
  onInputChange: () => {}
85
- }, getOptions())
86
- // eslint-disable-next-line @typescript-eslint/no-empty-function
87
- ),
85
+ }, getOptions())),
88
86
  container = _render3.container;
89
87
  const input = container.querySelector('input');
90
88
  expect(input).toHaveAttribute('role', 'combobox');
@@ -244,7 +242,7 @@ describe('<Select />', () => {
244
242
  renderLabel: "Choose an option",
245
243
  isRequired: true
246
244
  })));
247
- const input = screen.getByLabelText('Choose an option');
245
+ const input = screen.getByLabelText('Choose an option *');
248
246
  expect(input).toHaveAttribute('required');
249
247
  });
250
248
  it('should render with inputValue', () => {
@@ -85,9 +85,7 @@ describe('<Select />', () => {
85
85
  const _render3 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.default, {
86
86
  renderLabel: "Choose an option",
87
87
  onInputChange: () => {}
88
- }, getOptions())
89
- // eslint-disable-next-line @typescript-eslint/no-empty-function
90
- ),
88
+ }, getOptions())),
91
89
  container = _render3.container;
92
90
  const input = container.querySelector('input');
93
91
  expect(input).toHaveAttribute('role', 'combobox');
@@ -247,7 +245,7 @@ describe('<Select />', () => {
247
245
  renderLabel: "Choose an option",
248
246
  isRequired: true
249
247
  })));
250
- const input = _react2.screen.getByLabelText('Choose an option');
248
+ const input = _react2.screen.getByLabelText('Choose an option *');
251
249
  expect(input).toHaveAttribute('required');
252
250
  });
253
251
  it('should render with inputValue', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "9.8.1",
3
+ "version": "9.9.0",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "9.8.1",
27
- "@instructure/ui-babel-preset": "9.8.1",
28
- "@instructure/ui-color-utils": "9.8.1",
29
- "@instructure/ui-scripts": "9.8.1",
30
- "@instructure/ui-test-locator": "9.8.1",
31
- "@instructure/ui-test-utils": "9.8.1",
32
- "@instructure/ui-themes": "9.8.1",
26
+ "@instructure/ui-axe-check": "9.9.0",
27
+ "@instructure/ui-babel-preset": "9.9.0",
28
+ "@instructure/ui-color-utils": "9.9.0",
29
+ "@instructure/ui-scripts": "9.9.0",
30
+ "@instructure/ui-test-locator": "9.9.0",
31
+ "@instructure/ui-test-utils": "9.9.0",
32
+ "@instructure/ui-themes": "9.9.0",
33
33
  "@testing-library/jest-dom": "^6.4.6",
34
34
  "@testing-library/react": "^15.0.7",
35
35
  "@testing-library/user-event": "^14.5.2",
@@ -37,22 +37,22 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@babel/runtime": "^7.24.5",
40
- "@instructure/emotion": "9.8.1",
41
- "@instructure/shared-types": "9.8.1",
42
- "@instructure/ui-dom-utils": "9.8.1",
43
- "@instructure/ui-form-field": "9.8.1",
44
- "@instructure/ui-icons": "9.8.1",
45
- "@instructure/ui-options": "9.8.1",
46
- "@instructure/ui-popover": "9.8.1",
47
- "@instructure/ui-position": "9.8.1",
48
- "@instructure/ui-prop-types": "9.8.1",
49
- "@instructure/ui-react-utils": "9.8.1",
50
- "@instructure/ui-selectable": "9.8.1",
51
- "@instructure/ui-testable": "9.8.1",
52
- "@instructure/ui-text-input": "9.8.1",
53
- "@instructure/ui-utils": "9.8.1",
54
- "@instructure/ui-view": "9.8.1",
55
- "@instructure/uid": "9.8.1",
40
+ "@instructure/emotion": "9.9.0",
41
+ "@instructure/shared-types": "9.9.0",
42
+ "@instructure/ui-dom-utils": "9.9.0",
43
+ "@instructure/ui-form-field": "9.9.0",
44
+ "@instructure/ui-icons": "9.9.0",
45
+ "@instructure/ui-options": "9.9.0",
46
+ "@instructure/ui-popover": "9.9.0",
47
+ "@instructure/ui-position": "9.9.0",
48
+ "@instructure/ui-prop-types": "9.9.0",
49
+ "@instructure/ui-react-utils": "9.9.0",
50
+ "@instructure/ui-selectable": "9.9.0",
51
+ "@instructure/ui-testable": "9.9.0",
52
+ "@instructure/ui-text-input": "9.9.0",
53
+ "@instructure/ui-utils": "9.9.0",
54
+ "@instructure/ui-view": "9.9.0",
55
+ "@instructure/uid": "9.9.0",
56
56
  "prop-types": "^15.8.1"
57
57
  },
58
58
  "peerDependencies": {
@@ -103,7 +103,6 @@ describe('<Select />', () => {
103
103
  <Select renderLabel="Choose an option" onInputChange={() => {}}>
104
104
  {getOptions()}
105
105
  </Select>
106
- // eslint-disable-next-line @typescript-eslint/no-empty-function
107
106
  )
108
107
  const input = container.querySelector('input')
109
108
  expect(input).toHaveAttribute('role', 'combobox')
@@ -291,7 +290,7 @@ describe('<Select />', () => {
291
290
 
292
291
  it('should render required when isRequired={true}', () => {
293
292
  render(<Select renderLabel="Choose an option" isRequired />)
294
- const input = screen.getByLabelText('Choose an option')
293
+ const input = screen.getByLabelText('Choose an option *')
295
294
 
296
295
  expect(input).toHaveAttribute('required')
297
296
  })