@instructure/ui-menu 8.26.0 → 8.26.1-snapshot-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 +8 -0
- package/es/Menu/MenuItem/MenuItemLocator.js +2 -1
- package/es/Menu/MenuItem/index.js +2 -1
- package/es/Menu/MenuItemGroup/MenuItemGroupLocator.js +2 -1
- package/es/Menu/MenuLocator.js +4 -2
- package/lib/Menu/MenuItem/MenuItemLocator.js +1 -0
- package/lib/Menu/MenuItem/index.js +2 -1
- package/lib/Menu/MenuItemGroup/MenuItemGroupLocator.js +1 -0
- package/lib/Menu/MenuLocator.js +3 -1
- package/package.json +19 -19
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [8.26.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1-snapshot-0) (2022-07-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-menu
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-menu
|
|
@@ -22,5 +22,6 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
|
-
import { MenuItem } from './index';
|
|
25
|
+
import { MenuItem } from './index'; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
26
|
+
|
|
26
27
|
export const MenuItemLocator = locator(MenuItem.selector);
|
|
@@ -222,7 +222,8 @@ let MenuItem = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, g
|
|
|
222
222
|
href = _this$props5.href;
|
|
223
223
|
const props = omitProps(this.props, MenuItem.allowedProps);
|
|
224
224
|
const ElementType = this.elementType;
|
|
225
|
-
return jsx(ElementType
|
|
225
|
+
return jsx(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
226
|
+
, Object.assign({
|
|
226
227
|
tabIndex: -1 // note: tabIndex can be overridden by Menu or MenuItemGroup components
|
|
227
228
|
|
|
228
229
|
}, props, {
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
25
|
import { MenuItemGroup } from './index';
|
|
26
|
-
import { MenuItemLocator } from '../MenuItem/MenuItemLocator';
|
|
26
|
+
import { MenuItemLocator } from '../MenuItem/MenuItemLocator'; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
27
|
+
|
|
27
28
|
export const MenuItemGroupLocator = locator(MenuItemGroup.selector, {
|
|
28
29
|
findAllItems: function () {
|
|
29
30
|
return MenuItemLocator.findAll(...arguments);
|
package/es/Menu/MenuLocator.js
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
|
-
import { parseQueryArguments } from '@instructure/ui-test-queries'; //
|
|
25
|
+
import { parseQueryArguments } from '@instructure/ui-test-queries'; // @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
|
|
26
|
+
// eslint-disable-next-line no-restricted-imports
|
|
26
27
|
|
|
27
28
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator';
|
|
28
29
|
import { Menu } from './index';
|
|
@@ -56,6 +57,7 @@ const customMethods = {
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
};
|
|
60
|
+
}; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
61
|
+
|
|
60
62
|
const MenuLocator = locator(Menu.selector, customMethods);
|
|
61
63
|
export { MenuLocator, MenuItemLocator, MenuItemGroupLocator };
|
|
@@ -32,5 +32,6 @@ var _index = require("./index");
|
|
|
32
32
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
33
|
* SOFTWARE.
|
|
34
34
|
*/
|
|
35
|
+
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
36
|
const MenuItemLocator = (0, _locator.locator)(_index.MenuItem.selector);
|
|
36
37
|
exports.MenuItemLocator = MenuItemLocator;
|
|
@@ -227,7 +227,8 @@ let MenuItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
|
|
|
227
227
|
href = _this$props5.href;
|
|
228
228
|
const props = (0, _omitProps.omitProps)(this.props, MenuItem.allowedProps);
|
|
229
229
|
const ElementType = this.elementType;
|
|
230
|
-
return (0, _emotion.jsx)(ElementType
|
|
230
|
+
return (0, _emotion.jsx)(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
231
|
+
, Object.assign({
|
|
231
232
|
tabIndex: -1 // note: tabIndex can be overridden by Menu or MenuItemGroup components
|
|
232
233
|
|
|
233
234
|
}, props, {
|
|
@@ -34,6 +34,7 @@ var _MenuItemLocator = require("../MenuItem/MenuItemLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
+
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
37
38
|
const MenuItemGroupLocator = (0, _locator.locator)(_index.MenuItemGroup.selector, {
|
|
38
39
|
findAllItems: function () {
|
|
39
40
|
return _MenuItemLocator.MenuItemLocator.findAll(...arguments);
|
package/lib/Menu/MenuLocator.js
CHANGED
|
@@ -52,6 +52,7 @@ var _MenuItemGroupLocator = require("./MenuItemGroup/MenuItemGroupLocator");
|
|
|
52
52
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
53
|
* SOFTWARE.
|
|
54
54
|
*/
|
|
55
|
+
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
|
|
55
56
|
// eslint-disable-next-line no-restricted-imports
|
|
56
57
|
const customMethods = {
|
|
57
58
|
findAllItems: function () {
|
|
@@ -81,6 +82,7 @@ const customMethods = {
|
|
|
81
82
|
}
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
|
-
};
|
|
85
|
+
}; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
86
|
+
|
|
85
87
|
const MenuLocator = (0, _locator.locator)(_index.Menu.selector, customMethods);
|
|
86
88
|
exports.MenuLocator = MenuLocator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-menu",
|
|
3
|
-
"version": "8.26.0",
|
|
3
|
+
"version": "8.26.1-snapshot-0",
|
|
4
4
|
"description": "A dropdown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,27 +23,27 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.26.0",
|
|
27
|
-
"@instructure/ui-color-utils": "8.26.0",
|
|
28
|
-
"@instructure/ui-test-locator": "8.26.0",
|
|
29
|
-
"@instructure/ui-test-queries": "8.26.0",
|
|
30
|
-
"@instructure/ui-test-utils": "8.26.0",
|
|
31
|
-
"@instructure/ui-themes": "8.26.0"
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.1-snapshot-0",
|
|
27
|
+
"@instructure/ui-color-utils": "8.26.1-snapshot-0",
|
|
28
|
+
"@instructure/ui-test-locator": "8.26.1-snapshot-0",
|
|
29
|
+
"@instructure/ui-test-queries": "8.26.1-snapshot-0",
|
|
30
|
+
"@instructure/ui-test-utils": "8.26.1-snapshot-0",
|
|
31
|
+
"@instructure/ui-themes": "8.26.1-snapshot-0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
|
-
"@instructure/console": "8.26.0",
|
|
36
|
-
"@instructure/emotion": "8.26.0",
|
|
37
|
-
"@instructure/shared-types": "8.26.0",
|
|
38
|
-
"@instructure/ui-a11y-utils": "8.26.0",
|
|
39
|
-
"@instructure/ui-dom-utils": "8.26.0",
|
|
40
|
-
"@instructure/ui-icons": "8.26.0",
|
|
41
|
-
"@instructure/ui-popover": "8.26.0",
|
|
42
|
-
"@instructure/ui-position": "8.26.0",
|
|
43
|
-
"@instructure/ui-prop-types": "8.26.0",
|
|
44
|
-
"@instructure/ui-react-utils": "8.26.0",
|
|
45
|
-
"@instructure/ui-testable": "8.26.0",
|
|
46
|
-
"@instructure/ui-utils": "8.26.0",
|
|
35
|
+
"@instructure/console": "8.26.1-snapshot-0",
|
|
36
|
+
"@instructure/emotion": "8.26.1-snapshot-0",
|
|
37
|
+
"@instructure/shared-types": "8.26.1-snapshot-0",
|
|
38
|
+
"@instructure/ui-a11y-utils": "8.26.1-snapshot-0",
|
|
39
|
+
"@instructure/ui-dom-utils": "8.26.1-snapshot-0",
|
|
40
|
+
"@instructure/ui-icons": "8.26.1-snapshot-0",
|
|
41
|
+
"@instructure/ui-popover": "8.26.1-snapshot-0",
|
|
42
|
+
"@instructure/ui-position": "8.26.1-snapshot-0",
|
|
43
|
+
"@instructure/ui-prop-types": "8.26.1-snapshot-0",
|
|
44
|
+
"@instructure/ui-react-utils": "8.26.1-snapshot-0",
|
|
45
|
+
"@instructure/ui-testable": "8.26.1-snapshot-0",
|
|
46
|
+
"@instructure/ui-utils": "8.26.1-snapshot-0",
|
|
47
47
|
"keycode": "^2",
|
|
48
48
|
"prop-types": "^15"
|
|
49
49
|
},
|