@instructure/ui-popover 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/Popover/__new-tests__/Popover.test.js +5 -5
- package/lib/Popover/__new-tests__/Popover.test.js +5 -5
- package/package.json +23 -23
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Popover/PopoverLocator.d.ts +75 -1
- package/types/Popover/PopoverLocator.d.ts.map +1 -1
- package/types/Popover/PopoverTriggerLocator.d.ts +75 -1
- package/types/Popover/PopoverTriggerLocator.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-popover
|
|
9
9
|
|
|
@@ -38,7 +38,7 @@ describe('<Popover />', () => {
|
|
|
38
38
|
if (on === 'hover') {
|
|
39
39
|
onValue.push('focus');
|
|
40
40
|
}
|
|
41
|
-
render(
|
|
41
|
+
render(/*#__PURE__*/React.createElement(Popover, {
|
|
42
42
|
on: onValue,
|
|
43
43
|
renderTrigger: _button || (_button = /*#__PURE__*/React.createElement("button", null, "Trigger"))
|
|
44
44
|
}, _h || (_h = /*#__PURE__*/React.createElement("h2", null, "Popover Content"))));
|
|
@@ -67,7 +67,7 @@ describe('<Popover />', () => {
|
|
|
67
67
|
const props = {
|
|
68
68
|
[handler]: handlerSpy
|
|
69
69
|
};
|
|
70
|
-
render(
|
|
70
|
+
render(/*#__PURE__*/React.createElement(Popover, Object.assign({}, props, {
|
|
71
71
|
renderTrigger: _button2 || (_button2 = /*#__PURE__*/React.createElement("button", null, "Trigger"))
|
|
72
72
|
}), _h2 || (_h2 = /*#__PURE__*/React.createElement("h2", null, "Popover content"))));
|
|
73
73
|
const trigger = screen.getByRole('button', {
|
|
@@ -117,7 +117,7 @@ describe('<Popover />', () => {
|
|
|
117
117
|
});
|
|
118
118
|
it('should hide content when trigger is clicked', () => {
|
|
119
119
|
const onHideContent = vi.fn();
|
|
120
|
-
render(
|
|
120
|
+
render(/*#__PURE__*/React.createElement(Popover, {
|
|
121
121
|
on: "click",
|
|
122
122
|
onHideContent: (_e, o) => onHideContent(o),
|
|
123
123
|
shouldCloseOnDocumentClick: false,
|
|
@@ -181,7 +181,7 @@ describe('<Popover />', () => {
|
|
|
181
181
|
});
|
|
182
182
|
it('should call onShowContent', () => {
|
|
183
183
|
const onShowContent = vi.fn();
|
|
184
|
-
render(
|
|
184
|
+
render(/*#__PURE__*/React.createElement(Popover, {
|
|
185
185
|
on: "click",
|
|
186
186
|
isShowingContent: false,
|
|
187
187
|
shouldCloseOnDocumentClick: false,
|
|
@@ -196,7 +196,7 @@ describe('<Popover />', () => {
|
|
|
196
196
|
});
|
|
197
197
|
it('should call onHideContent', () => {
|
|
198
198
|
const onHideContent = vi.fn();
|
|
199
|
-
render(
|
|
199
|
+
render(/*#__PURE__*/React.createElement(Popover, {
|
|
200
200
|
on: "click",
|
|
201
201
|
isShowingContent: true,
|
|
202
202
|
shouldCloseOnDocumentClick: false,
|
|
@@ -40,7 +40,7 @@ describe('<Popover />', () => {
|
|
|
40
40
|
if (on === 'hover') {
|
|
41
41
|
onValue.push('focus');
|
|
42
42
|
}
|
|
43
|
-
(0, _react2.render)(
|
|
43
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
44
44
|
on: onValue,
|
|
45
45
|
renderTrigger: _button || (_button = /*#__PURE__*/_react.default.createElement("button", null, "Trigger"))
|
|
46
46
|
}, _h || (_h = /*#__PURE__*/_react.default.createElement("h2", null, "Popover Content"))));
|
|
@@ -69,7 +69,7 @@ describe('<Popover />', () => {
|
|
|
69
69
|
const props = {
|
|
70
70
|
[handler]: handlerSpy
|
|
71
71
|
};
|
|
72
|
-
(0, _react2.render)(
|
|
72
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, Object.assign({}, props, {
|
|
73
73
|
renderTrigger: _button2 || (_button2 = /*#__PURE__*/_react.default.createElement("button", null, "Trigger"))
|
|
74
74
|
}), _h2 || (_h2 = /*#__PURE__*/_react.default.createElement("h2", null, "Popover content"))));
|
|
75
75
|
const trigger = _react2.screen.getByRole('button', {
|
|
@@ -119,7 +119,7 @@ describe('<Popover />', () => {
|
|
|
119
119
|
});
|
|
120
120
|
it('should hide content when trigger is clicked', () => {
|
|
121
121
|
const onHideContent = _vitest.vi.fn();
|
|
122
|
-
(0, _react2.render)(
|
|
122
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
123
123
|
on: "click",
|
|
124
124
|
onHideContent: (_e, o) => onHideContent(o),
|
|
125
125
|
shouldCloseOnDocumentClick: false,
|
|
@@ -183,7 +183,7 @@ describe('<Popover />', () => {
|
|
|
183
183
|
});
|
|
184
184
|
it('should call onShowContent', () => {
|
|
185
185
|
const onShowContent = _vitest.vi.fn();
|
|
186
|
-
(0, _react2.render)(
|
|
186
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
187
187
|
on: "click",
|
|
188
188
|
isShowingContent: false,
|
|
189
189
|
shouldCloseOnDocumentClick: false,
|
|
@@ -198,7 +198,7 @@ describe('<Popover />', () => {
|
|
|
198
198
|
});
|
|
199
199
|
it('should call onHideContent', () => {
|
|
200
200
|
const onHideContent = _vitest.vi.fn();
|
|
201
|
-
(0, _react2.render)(
|
|
201
|
+
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
202
202
|
on: "click",
|
|
203
203
|
isShowingContent: true,
|
|
204
204
|
shouldCloseOnDocumentClick: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-popover",
|
|
3
|
-
"version": "10.2.3-snapshot-
|
|
3
|
+
"version": "10.2.3-snapshot-15",
|
|
4
4
|
"description": "A component for hiding or showing content based on user interaction.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,34 +23,34 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.
|
|
27
|
-
"@instructure/console": "10.2.3-snapshot-
|
|
28
|
-
"@instructure/emotion": "10.2.3-snapshot-
|
|
29
|
-
"@instructure/shared-types": "10.2.3-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-utils": "10.2.3-snapshot-
|
|
31
|
-
"@instructure/ui-dialog": "10.2.3-snapshot-
|
|
32
|
-
"@instructure/ui-dom-utils": "10.2.3-snapshot-
|
|
33
|
-
"@instructure/ui-i18n": "10.2.3-snapshot-
|
|
34
|
-
"@instructure/ui-position": "10.2.3-snapshot-
|
|
35
|
-
"@instructure/ui-prop-types": "10.2.3-snapshot-
|
|
36
|
-
"@instructure/ui-react-utils": "10.2.3-snapshot-
|
|
37
|
-
"@instructure/ui-testable": "10.2.3-snapshot-
|
|
38
|
-
"@instructure/ui-utils": "10.2.3-snapshot-
|
|
39
|
-
"@instructure/ui-view": "10.2.3-snapshot-
|
|
40
|
-
"@instructure/uid": "10.2.3-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.25.6",
|
|
27
|
+
"@instructure/console": "10.2.3-snapshot-15",
|
|
28
|
+
"@instructure/emotion": "10.2.3-snapshot-15",
|
|
29
|
+
"@instructure/shared-types": "10.2.3-snapshot-15",
|
|
30
|
+
"@instructure/ui-a11y-utils": "10.2.3-snapshot-15",
|
|
31
|
+
"@instructure/ui-dialog": "10.2.3-snapshot-15",
|
|
32
|
+
"@instructure/ui-dom-utils": "10.2.3-snapshot-15",
|
|
33
|
+
"@instructure/ui-i18n": "10.2.3-snapshot-15",
|
|
34
|
+
"@instructure/ui-position": "10.2.3-snapshot-15",
|
|
35
|
+
"@instructure/ui-prop-types": "10.2.3-snapshot-15",
|
|
36
|
+
"@instructure/ui-react-utils": "10.2.3-snapshot-15",
|
|
37
|
+
"@instructure/ui-testable": "10.2.3-snapshot-15",
|
|
38
|
+
"@instructure/ui-utils": "10.2.3-snapshot-15",
|
|
39
|
+
"@instructure/ui-view": "10.2.3-snapshot-15",
|
|
40
|
+
"@instructure/uid": "10.2.3-snapshot-15",
|
|
41
41
|
"keycode": "^2.2.1",
|
|
42
42
|
"prop-types": "^15.8.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@instructure/ui-babel-preset": "10.2.3-snapshot-
|
|
46
|
-
"@instructure/ui-color-utils": "10.2.3-snapshot-
|
|
47
|
-
"@instructure/ui-test-locator": "10.2.3-snapshot-
|
|
48
|
-
"@instructure/ui-test-queries": "10.2.3-snapshot-
|
|
49
|
-
"@instructure/ui-test-utils": "10.2.3-snapshot-
|
|
45
|
+
"@instructure/ui-babel-preset": "10.2.3-snapshot-15",
|
|
46
|
+
"@instructure/ui-color-utils": "10.2.3-snapshot-15",
|
|
47
|
+
"@instructure/ui-test-locator": "10.2.3-snapshot-15",
|
|
48
|
+
"@instructure/ui-test-queries": "10.2.3-snapshot-15",
|
|
49
|
+
"@instructure/ui-test-utils": "10.2.3-snapshot-15",
|
|
50
50
|
"@testing-library/jest-dom": "^6.4.6",
|
|
51
|
-
"@testing-library/react": "^
|
|
51
|
+
"@testing-library/react": "^16.0.1",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
|
53
|
-
"vitest": "^2.
|
|
53
|
+
"vitest": "^2.1.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": ">=16.8 <=18"
|