@instructure/ui-billboard 10.2.3-snapshot-14 → 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/Billboard/__new-tests__/Billboard.test.js +6 -6
- package/lib/Billboard/__new-tests__/Billboard.test.js +6 -6
- package/package.json +16 -16
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Billboard/index.d.ts +2 -2
- package/types/Billboard/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-billboard
|
|
9
9
|
|
|
@@ -83,7 +83,7 @@ describe('<Billboard />', () => {
|
|
|
83
83
|
});
|
|
84
84
|
it('renders as a button and responds to onClick event', () => {
|
|
85
85
|
const onClick = vi.fn();
|
|
86
|
-
render(
|
|
86
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
87
87
|
onClick: onClick
|
|
88
88
|
}));
|
|
89
89
|
const button = screen.getByRole('button');
|
|
@@ -93,7 +93,7 @@ describe('<Billboard />', () => {
|
|
|
93
93
|
describe('when rendering message', () => {
|
|
94
94
|
it('should render message when passed a node', async () => {
|
|
95
95
|
const messageNode = _span || (_span = /*#__PURE__*/React.createElement("span", null, TEST_MESSAGE));
|
|
96
|
-
render(
|
|
96
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
97
97
|
message: messageNode
|
|
98
98
|
}));
|
|
99
99
|
const messageElement = screen.getByText(TEST_MESSAGE);
|
|
@@ -102,7 +102,7 @@ describe('<Billboard />', () => {
|
|
|
102
102
|
});
|
|
103
103
|
it('should render message passed a function', () => {
|
|
104
104
|
const messageNode = _span2 || (_span2 = /*#__PURE__*/React.createElement("span", null, TEST_MESSAGE));
|
|
105
|
-
render(
|
|
105
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
106
106
|
message: () => messageNode
|
|
107
107
|
}));
|
|
108
108
|
const messageElement = screen.getByText(TEST_MESSAGE);
|
|
@@ -120,7 +120,7 @@ describe('<Billboard />', () => {
|
|
|
120
120
|
expect(link).toHaveAttribute('aria-disabled', 'true');
|
|
121
121
|
});
|
|
122
122
|
it('should not be clickable', () => {
|
|
123
|
-
render(
|
|
123
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
124
124
|
onClick: vi.fn(),
|
|
125
125
|
disabled: true
|
|
126
126
|
}));
|
|
@@ -139,7 +139,7 @@ describe('<Billboard />', () => {
|
|
|
139
139
|
});
|
|
140
140
|
it('should not be clickable', () => {
|
|
141
141
|
const onClick = vi.fn();
|
|
142
|
-
render(
|
|
142
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
143
143
|
onClick: onClick,
|
|
144
144
|
readOnly: true
|
|
145
145
|
}));
|
|
@@ -151,7 +151,7 @@ describe('<Billboard />', () => {
|
|
|
151
151
|
describe('when passing down props to View', () => {
|
|
152
152
|
it('should support an elementRef prop', () => {
|
|
153
153
|
const elementRef = vi.fn();
|
|
154
|
-
render(
|
|
154
|
+
render(/*#__PURE__*/React.createElement(Billboard, {
|
|
155
155
|
elementRef: elementRef,
|
|
156
156
|
href: TEST_LINK
|
|
157
157
|
}));
|
|
@@ -85,7 +85,7 @@ describe('<Billboard />', () => {
|
|
|
85
85
|
});
|
|
86
86
|
it('renders as a button and responds to onClick event', () => {
|
|
87
87
|
const onClick = _vitest.vi.fn();
|
|
88
|
-
(0, _react2.render)(
|
|
88
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
89
89
|
onClick: onClick
|
|
90
90
|
}));
|
|
91
91
|
const button = _react2.screen.getByRole('button');
|
|
@@ -95,7 +95,7 @@ describe('<Billboard />', () => {
|
|
|
95
95
|
describe('when rendering message', () => {
|
|
96
96
|
it('should render message when passed a node', async () => {
|
|
97
97
|
const messageNode = _span || (_span = /*#__PURE__*/_react.default.createElement("span", null, TEST_MESSAGE));
|
|
98
|
-
(0, _react2.render)(
|
|
98
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
99
99
|
message: messageNode
|
|
100
100
|
}));
|
|
101
101
|
const messageElement = _react2.screen.getByText(TEST_MESSAGE);
|
|
@@ -104,7 +104,7 @@ describe('<Billboard />', () => {
|
|
|
104
104
|
});
|
|
105
105
|
it('should render message passed a function', () => {
|
|
106
106
|
const messageNode = _span2 || (_span2 = /*#__PURE__*/_react.default.createElement("span", null, TEST_MESSAGE));
|
|
107
|
-
(0, _react2.render)(
|
|
107
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
108
108
|
message: () => messageNode
|
|
109
109
|
}));
|
|
110
110
|
const messageElement = _react2.screen.getByText(TEST_MESSAGE);
|
|
@@ -122,7 +122,7 @@ describe('<Billboard />', () => {
|
|
|
122
122
|
expect(link).toHaveAttribute('aria-disabled', 'true');
|
|
123
123
|
});
|
|
124
124
|
it('should not be clickable', () => {
|
|
125
|
-
(0, _react2.render)(
|
|
125
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
126
126
|
onClick: _vitest.vi.fn(),
|
|
127
127
|
disabled: true
|
|
128
128
|
}));
|
|
@@ -141,7 +141,7 @@ describe('<Billboard />', () => {
|
|
|
141
141
|
});
|
|
142
142
|
it('should not be clickable', () => {
|
|
143
143
|
const onClick = _vitest.vi.fn();
|
|
144
|
-
(0, _react2.render)(
|
|
144
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
145
145
|
onClick: onClick,
|
|
146
146
|
readOnly: true
|
|
147
147
|
}));
|
|
@@ -153,7 +153,7 @@ describe('<Billboard />', () => {
|
|
|
153
153
|
describe('when passing down props to View', () => {
|
|
154
154
|
it('should support an elementRef prop', () => {
|
|
155
155
|
const elementRef = _vitest.vi.fn();
|
|
156
|
-
(0, _react2.render)(
|
|
156
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.Billboard, {
|
|
157
157
|
elementRef: elementRef,
|
|
158
158
|
href: TEST_LINK
|
|
159
159
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-billboard",
|
|
3
|
-
"version": "10.2.3-snapshot-
|
|
3
|
+
"version": "10.2.3-snapshot-15",
|
|
4
4
|
"description": "A UI component to display empty states, 404 pages, redirects, etc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,25 +23,25 @@
|
|
|
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-icons": "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-icons": "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/emotion": "10.2.3-snapshot-
|
|
40
|
-
"@instructure/shared-types": "10.2.3-snapshot-
|
|
41
|
-
"@instructure/ui-heading": "10.2.3-snapshot-
|
|
42
|
-
"@instructure/ui-img": "10.2.3-snapshot-
|
|
43
|
-
"@instructure/ui-react-utils": "10.2.3-snapshot-
|
|
44
|
-
"@instructure/ui-view": "10.2.3-snapshot-
|
|
38
|
+
"@babel/runtime": "^7.25.6",
|
|
39
|
+
"@instructure/emotion": "10.2.3-snapshot-15",
|
|
40
|
+
"@instructure/shared-types": "10.2.3-snapshot-15",
|
|
41
|
+
"@instructure/ui-heading": "10.2.3-snapshot-15",
|
|
42
|
+
"@instructure/ui-img": "10.2.3-snapshot-15",
|
|
43
|
+
"@instructure/ui-react-utils": "10.2.3-snapshot-15",
|
|
44
|
+
"@instructure/ui-view": "10.2.3-snapshot-15",
|
|
45
45
|
"prop-types": "^15.8.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|