@instructure/ui-navigation 10.2.3-snapshot-13 → 10.2.3-snapshot-15
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 +1 -1
- package/es/AppNav/Item/__new-tests__/Item.test.js +3 -3
- package/es/AppNav/__new-tests__/AppNav.test.js +2 -2
- package/lib/AppNav/Item/__new-tests__/Item.test.js +3 -3
- package/lib/AppNav/__new-tests__/AppNav.test.js +2 -2
- package/package.json +28 -28
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/Item/index.d.ts.map +1 -1
- package/types/AppNav/index.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
|
-
## [10.2.3-snapshot-
|
|
6
|
+
## [10.2.3-snapshot-15](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-15) (2024-10-03)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-navigation
|
|
9
9
|
|
|
@@ -89,7 +89,7 @@ describe('<AppNav.Item />', () => {
|
|
|
89
89
|
});
|
|
90
90
|
it('should respond to an onClick event', async () => {
|
|
91
91
|
const onClick = vi.fn();
|
|
92
|
-
render(
|
|
92
|
+
render(/*#__PURE__*/React.createElement(Item, {
|
|
93
93
|
renderLabel: "Some label",
|
|
94
94
|
onClick: onClick
|
|
95
95
|
}));
|
|
@@ -100,7 +100,7 @@ describe('<AppNav.Item />', () => {
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
it('should output a console error if icon is used with non-screenreader label text', async () => {
|
|
103
|
-
render(
|
|
103
|
+
render(/*#__PURE__*/React.createElement(Item, {
|
|
104
104
|
renderIcon: icon,
|
|
105
105
|
renderLabel: "Some label",
|
|
106
106
|
onClick: () => 'clicked'
|
|
@@ -109,7 +109,7 @@ describe('<AppNav.Item />', () => {
|
|
|
109
109
|
expect(consoleErrorMock).toHaveBeenCalledWith(expect.stringContaining(expectedErrorMessage), expect.any(String));
|
|
110
110
|
});
|
|
111
111
|
it('should meet a11y standards', async () => {
|
|
112
|
-
const _render2 = render(
|
|
112
|
+
const _render2 = render(/*#__PURE__*/React.createElement(Item, {
|
|
113
113
|
renderIcon: icon,
|
|
114
114
|
renderLabel: _ScreenReaderContent || (_ScreenReaderContent = /*#__PURE__*/React.createElement(ScreenReaderContent, null, "Some label")),
|
|
115
115
|
onClick: () => 'clicked'
|
|
@@ -60,7 +60,7 @@ describe('<AppNav />', () => {
|
|
|
60
60
|
expect(appNavList).toHaveAttribute('aria-label', 'Screen reader label');
|
|
61
61
|
});
|
|
62
62
|
it('should render a semantic list of items', async () => {
|
|
63
|
-
render(
|
|
63
|
+
render(/*#__PURE__*/React.createElement(AppNav, {
|
|
64
64
|
screenReaderLabel: "App navigation",
|
|
65
65
|
visibleItemsCount: 2
|
|
66
66
|
}, _AppNav$Item || (_AppNav$Item = /*#__PURE__*/React.createElement(AppNav.Item, {
|
|
@@ -116,7 +116,7 @@ describe('<AppNav />', () => {
|
|
|
116
116
|
});
|
|
117
117
|
describe('with item truncation', () => {
|
|
118
118
|
it('should pass a custom label to the menu trigger', async () => {
|
|
119
|
-
render(
|
|
119
|
+
render(/*#__PURE__*/React.createElement(AppNav, {
|
|
120
120
|
screenReaderLabel: "App navigation",
|
|
121
121
|
visibleItemsCount: 2,
|
|
122
122
|
renderTruncateLabel: function () {
|
|
@@ -91,7 +91,7 @@ describe('<AppNav.Item />', () => {
|
|
|
91
91
|
});
|
|
92
92
|
it('should respond to an onClick event', async () => {
|
|
93
93
|
const onClick = _vitest.vi.fn();
|
|
94
|
-
(0, _react2.render)(
|
|
94
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Item, {
|
|
95
95
|
renderLabel: "Some label",
|
|
96
96
|
onClick: onClick
|
|
97
97
|
}));
|
|
@@ -102,7 +102,7 @@ describe('<AppNav.Item />', () => {
|
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
it('should output a console error if icon is used with non-screenreader label text', async () => {
|
|
105
|
-
(0, _react2.render)(
|
|
105
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Item, {
|
|
106
106
|
renderIcon: icon,
|
|
107
107
|
renderLabel: "Some label",
|
|
108
108
|
onClick: () => 'clicked'
|
|
@@ -111,7 +111,7 @@ describe('<AppNav.Item />', () => {
|
|
|
111
111
|
expect(consoleErrorMock).toHaveBeenCalledWith(expect.stringContaining(expectedErrorMessage), expect.any(String));
|
|
112
112
|
});
|
|
113
113
|
it('should meet a11y standards', async () => {
|
|
114
|
-
const _render2 = (0, _react2.render)(
|
|
114
|
+
const _render2 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Item, {
|
|
115
115
|
renderIcon: icon,
|
|
116
116
|
renderLabel: _ScreenReaderContent || (_ScreenReaderContent = /*#__PURE__*/_react.default.createElement(_ScreenReaderContent2.ScreenReaderContent, null, "Some label")),
|
|
117
117
|
onClick: () => 'clicked'
|
|
@@ -62,7 +62,7 @@ describe('<AppNav />', () => {
|
|
|
62
62
|
expect(appNavList).toHaveAttribute('aria-label', 'Screen reader label');
|
|
63
63
|
});
|
|
64
64
|
it('should render a semantic list of items', async () => {
|
|
65
|
-
(0, _react2.render)(
|
|
65
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.AppNav, {
|
|
66
66
|
screenReaderLabel: "App navigation",
|
|
67
67
|
visibleItemsCount: 2
|
|
68
68
|
}, _AppNav$Item || (_AppNav$Item = /*#__PURE__*/_react.default.createElement(_index.AppNav.Item, {
|
|
@@ -118,7 +118,7 @@ describe('<AppNav />', () => {
|
|
|
118
118
|
});
|
|
119
119
|
describe('with item truncation', () => {
|
|
120
120
|
it('should pass a custom label to the menu trigger', async () => {
|
|
121
|
-
(0, _react2.render)(
|
|
121
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.AppNav, {
|
|
122
122
|
screenReaderLabel: "App navigation",
|
|
123
123
|
visibleItemsCount: 2,
|
|
124
124
|
renderTruncateLabel: function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-navigation",
|
|
3
|
-
"version": "10.2.3-snapshot-
|
|
3
|
+
"version": "10.2.3-snapshot-15",
|
|
4
4
|
"description": "Main and application level navigational components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,37 +23,37 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.2.3-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.2.3-snapshot-
|
|
28
|
-
"@instructure/ui-color-utils": "10.2.3-snapshot-
|
|
29
|
-
"@instructure/ui-scripts": "10.2.3-snapshot-
|
|
30
|
-
"@instructure/ui-test-utils": "10.2.3-snapshot-
|
|
31
|
-
"@instructure/ui-themes": "10.2.3-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.2.3-snapshot-15",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.2.3-snapshot-15",
|
|
28
|
+
"@instructure/ui-color-utils": "10.2.3-snapshot-15",
|
|
29
|
+
"@instructure/ui-scripts": "10.2.3-snapshot-15",
|
|
30
|
+
"@instructure/ui-test-utils": "10.2.3-snapshot-15",
|
|
31
|
+
"@instructure/ui-themes": "10.2.3-snapshot-15",
|
|
32
32
|
"@testing-library/jest-dom": "^6.4.6",
|
|
33
|
-
"@testing-library/react": "^
|
|
33
|
+
"@testing-library/react": "^16.0.1",
|
|
34
34
|
"@testing-library/user-event": "^14.5.2",
|
|
35
|
-
"vitest": "^2.
|
|
35
|
+
"vitest": "^2.1.1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
39
|
-
"@instructure/console": "10.2.3-snapshot-
|
|
40
|
-
"@instructure/debounce": "10.2.3-snapshot-
|
|
41
|
-
"@instructure/emotion": "10.2.3-snapshot-
|
|
42
|
-
"@instructure/shared-types": "10.2.3-snapshot-
|
|
43
|
-
"@instructure/ui-a11y-content": "10.2.3-snapshot-
|
|
44
|
-
"@instructure/ui-a11y-utils": "10.2.3-snapshot-
|
|
45
|
-
"@instructure/ui-badge": "10.2.3-snapshot-
|
|
46
|
-
"@instructure/ui-dom-utils": "10.2.3-snapshot-
|
|
47
|
-
"@instructure/ui-focusable": "10.2.3-snapshot-
|
|
48
|
-
"@instructure/ui-icons": "10.2.3-snapshot-
|
|
49
|
-
"@instructure/ui-menu": "10.2.3-snapshot-
|
|
50
|
-
"@instructure/ui-prop-types": "10.2.3-snapshot-
|
|
51
|
-
"@instructure/ui-react-utils": "10.2.3-snapshot-
|
|
52
|
-
"@instructure/ui-testable": "10.2.3-snapshot-
|
|
53
|
-
"@instructure/ui-tooltip": "10.2.3-snapshot-
|
|
54
|
-
"@instructure/ui-truncate-list": "10.2.3-snapshot-
|
|
55
|
-
"@instructure/ui-utils": "10.2.3-snapshot-
|
|
56
|
-
"@instructure/ui-view": "10.2.3-snapshot-
|
|
38
|
+
"@babel/runtime": "^7.25.6",
|
|
39
|
+
"@instructure/console": "10.2.3-snapshot-15",
|
|
40
|
+
"@instructure/debounce": "10.2.3-snapshot-15",
|
|
41
|
+
"@instructure/emotion": "10.2.3-snapshot-15",
|
|
42
|
+
"@instructure/shared-types": "10.2.3-snapshot-15",
|
|
43
|
+
"@instructure/ui-a11y-content": "10.2.3-snapshot-15",
|
|
44
|
+
"@instructure/ui-a11y-utils": "10.2.3-snapshot-15",
|
|
45
|
+
"@instructure/ui-badge": "10.2.3-snapshot-15",
|
|
46
|
+
"@instructure/ui-dom-utils": "10.2.3-snapshot-15",
|
|
47
|
+
"@instructure/ui-focusable": "10.2.3-snapshot-15",
|
|
48
|
+
"@instructure/ui-icons": "10.2.3-snapshot-15",
|
|
49
|
+
"@instructure/ui-menu": "10.2.3-snapshot-15",
|
|
50
|
+
"@instructure/ui-prop-types": "10.2.3-snapshot-15",
|
|
51
|
+
"@instructure/ui-react-utils": "10.2.3-snapshot-15",
|
|
52
|
+
"@instructure/ui-testable": "10.2.3-snapshot-15",
|
|
53
|
+
"@instructure/ui-tooltip": "10.2.3-snapshot-15",
|
|
54
|
+
"@instructure/ui-truncate-list": "10.2.3-snapshot-15",
|
|
55
|
+
"@instructure/ui-utils": "10.2.3-snapshot-15",
|
|
56
|
+
"@instructure/ui-view": "10.2.3-snapshot-15",
|
|
57
57
|
"prop-types": "^15.8.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|