@instructure/ui-menu 8.25.1-snapshot.0 → 8.26.1-snapshot-1

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,18 @@
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-1](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1-snapshot-1) (2022-07-06)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-menu
9
+
10
+
11
+
12
+
13
+
14
+ # [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30)
15
+
16
+ **Note:** Version bump only for package @instructure/ui-menu
17
+
6
18
  # [8.25.0](https://github.com/instructure/instructure-ui/compare/v8.24.5...v8.25.0) (2022-06-03)
7
19
 
8
20
  **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);
@@ -25,7 +25,7 @@ var _dec, _dec2, _dec3, _class, _class2, _IconCheckSolid, _IconArrowOpenEndSoli;
25
25
  */
26
26
 
27
27
  /** @jsx jsx */
28
- import { Component } from 'react';
28
+ import React, { Component } from 'react';
29
29
  import keycode from 'keycode';
30
30
  import { IconCheckSolid, IconArrowOpenEndSolid } from '@instructure/ui-icons';
31
31
  import { omitProps, getElementType, withDeterministicId } from '@instructure/ui-react-utils';
@@ -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, Object.assign({
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);
@@ -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'; // eslint-disable-next-line no-restricted-imports
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;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
6
 
5
7
  Object.defineProperty(exports, "__esModule", {
@@ -7,7 +9,7 @@ Object.defineProperty(exports, "__esModule", {
7
9
  });
8
10
  exports.default = exports.MenuItem = void 0;
9
11
 
10
- var _react = require("react");
12
+ var _react = _interopRequireWildcard(require("react"));
11
13
 
12
14
  var _keycode = _interopRequireDefault(require("keycode"));
13
15
 
@@ -225,7 +227,8 @@ let MenuItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
225
227
  href = _this$props5.href;
226
228
  const props = (0, _omitProps.omitProps)(this.props, MenuItem.allowedProps);
227
229
  const ElementType = this.elementType;
228
- return (0, _emotion.jsx)(ElementType, Object.assign({
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({
229
232
  tabIndex: -1 // note: tabIndex can be overridden by Menu or MenuItemGroup components
230
233
 
231
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);
@@ -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.25.1-snapshot.0+59b6babce",
3
+ "version": "8.26.1-snapshot-1",
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.25.1-snapshot.0+59b6babce",
27
- "@instructure/ui-color-utils": "8.25.1-snapshot.0+59b6babce",
28
- "@instructure/ui-test-locator": "8.25.1-snapshot.0+59b6babce",
29
- "@instructure/ui-test-queries": "8.25.1-snapshot.0+59b6babce",
30
- "@instructure/ui-test-utils": "8.25.1-snapshot.0+59b6babce",
31
- "@instructure/ui-themes": "8.25.1-snapshot.0+59b6babce"
26
+ "@instructure/ui-babel-preset": "8.26.1-snapshot-1",
27
+ "@instructure/ui-color-utils": "8.26.1-snapshot-1",
28
+ "@instructure/ui-test-locator": "8.26.1-snapshot-1",
29
+ "@instructure/ui-test-queries": "8.26.1-snapshot-1",
30
+ "@instructure/ui-test-utils": "8.26.1-snapshot-1",
31
+ "@instructure/ui-themes": "8.26.1-snapshot-1"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.25.1-snapshot.0+59b6babce",
36
- "@instructure/emotion": "8.25.1-snapshot.0+59b6babce",
37
- "@instructure/shared-types": "8.25.1-snapshot.0+59b6babce",
38
- "@instructure/ui-a11y-utils": "8.25.1-snapshot.0+59b6babce",
39
- "@instructure/ui-dom-utils": "8.25.1-snapshot.0+59b6babce",
40
- "@instructure/ui-icons": "8.25.1-snapshot.0+59b6babce",
41
- "@instructure/ui-popover": "8.25.1-snapshot.0+59b6babce",
42
- "@instructure/ui-position": "8.25.1-snapshot.0+59b6babce",
43
- "@instructure/ui-prop-types": "8.25.1-snapshot.0+59b6babce",
44
- "@instructure/ui-react-utils": "8.25.1-snapshot.0+59b6babce",
45
- "@instructure/ui-testable": "8.25.1-snapshot.0+59b6babce",
46
- "@instructure/ui-utils": "8.25.1-snapshot.0+59b6babce",
35
+ "@instructure/console": "8.26.1-snapshot-1",
36
+ "@instructure/emotion": "8.26.1-snapshot-1",
37
+ "@instructure/shared-types": "8.26.1-snapshot-1",
38
+ "@instructure/ui-a11y-utils": "8.26.1-snapshot-1",
39
+ "@instructure/ui-dom-utils": "8.26.1-snapshot-1",
40
+ "@instructure/ui-icons": "8.26.1-snapshot-1",
41
+ "@instructure/ui-popover": "8.26.1-snapshot-1",
42
+ "@instructure/ui-position": "8.26.1-snapshot-1",
43
+ "@instructure/ui-prop-types": "8.26.1-snapshot-1",
44
+ "@instructure/ui-react-utils": "8.26.1-snapshot-1",
45
+ "@instructure/ui-testable": "8.26.1-snapshot-1",
46
+ "@instructure/ui-utils": "8.26.1-snapshot-1",
47
47
  "keycode": "^2",
48
48
  "prop-types": "^15"
49
49
  },
@@ -53,6 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "sideEffects": false,
57
- "gitHead": "59b6babce07a9242111475156f544ec11c1a9283"
56
+ "sideEffects": false
58
57
  }
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  /** @jsx jsx */
25
- import { Component } from 'react'
25
+ import React, { Component } from 'react'
26
26
  import keycode from 'keycode'
27
27
 
28
28
  import { IconCheckSolid, IconArrowOpenEndSolid } from '@instructure/ui-icons'
@@ -64,6 +64,7 @@ class MenuItem extends Component<MenuItemProps, MenuItemState> {
64
64
  disabled: false
65
65
  } as const
66
66
 
67
+ declare context: React.ContextType<typeof MenuContext>
67
68
  static contextType = MenuContext
68
69
 
69
70
  constructor(props: MenuItemProps) {