@instructure/ui-link 8.12.1-snapshot.45 → 8.12.1-snapshot.51

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.
@@ -25,7 +25,11 @@ import { locator } from '@instructure/ui-test-locator';
25
25
  import { find } from '@instructure/ui-test-queries';
26
26
  import { Link } from './index';
27
27
  export const LinkLocator = locator(Link.selector, {
28
- click: async (element, ...args) => {
28
+ click: async function (element) {
29
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
30
+ args[_key - 1] = arguments[_key];
31
+ }
32
+
29
33
  return (await find(element, 'a,button,[role="button"]')).click(...args);
30
34
  }
31
35
  });
package/es/Link/index.js CHANGED
@@ -46,8 +46,8 @@ category: components
46
46
  ---
47
47
  **/
48
48
  let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Link extends Component {
49
- constructor(...args) {
50
- super(...args);
49
+ constructor() {
50
+ super(...arguments);
51
51
  this.state = {
52
52
  hasFocus: false
53
53
  };
@@ -35,7 +35,11 @@ var _index = require("./index");
35
35
  * SOFTWARE.
36
36
  */
37
37
  const LinkLocator = (0, _locator.locator)(_index.Link.selector, {
38
- click: async (element, ...args) => {
38
+ click: async function (element) {
39
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
40
+ args[_key - 1] = arguments[_key];
41
+ }
42
+
39
43
  return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
40
44
  }
41
45
  });
package/lib/Link/index.js CHANGED
@@ -7,7 +7,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.Link = exports.default = void 0;
10
+ exports.default = exports.Link = void 0;
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
@@ -53,8 +53,8 @@ category: components
53
53
  ---
54
54
  **/
55
55
  let Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Link extends _react.Component {
56
- constructor(...args) {
57
- super(...args);
56
+ constructor() {
57
+ super(...arguments);
58
58
  this.state = {
59
59
  hasFocus: false
60
60
  };
package/lib/Link/props.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-link",
3
- "version": "8.12.1-snapshot.45+9f4d9f91f",
3
+ "version": "8.12.1-snapshot.51+4d3697334",
4
4
  "description": "A component for creating links",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,25 +25,25 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.12.1-snapshot.45+9f4d9f91f",
29
- "@instructure/emotion": "8.12.1-snapshot.45+9f4d9f91f",
30
- "@instructure/shared-types": "8.12.1-snapshot.45+9f4d9f91f",
31
- "@instructure/ui-a11y-utils": "8.12.1-snapshot.45+9f4d9f91f",
32
- "@instructure/ui-color-utils": "8.12.1-snapshot.45+9f4d9f91f",
33
- "@instructure/ui-dom-utils": "8.12.1-snapshot.45+9f4d9f91f",
34
- "@instructure/ui-icons": "8.12.1-snapshot.45+9f4d9f91f",
35
- "@instructure/ui-prop-types": "8.12.1-snapshot.45+9f4d9f91f",
36
- "@instructure/ui-react-utils": "8.12.1-snapshot.45+9f4d9f91f",
37
- "@instructure/ui-testable": "8.12.1-snapshot.45+9f4d9f91f",
38
- "@instructure/ui-view": "8.12.1-snapshot.45+9f4d9f91f",
28
+ "@instructure/console": "8.12.1-snapshot.51+4d3697334",
29
+ "@instructure/emotion": "8.12.1-snapshot.51+4d3697334",
30
+ "@instructure/shared-types": "8.12.1-snapshot.51+4d3697334",
31
+ "@instructure/ui-a11y-utils": "8.12.1-snapshot.51+4d3697334",
32
+ "@instructure/ui-color-utils": "8.12.1-snapshot.51+4d3697334",
33
+ "@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
34
+ "@instructure/ui-icons": "8.12.1-snapshot.51+4d3697334",
35
+ "@instructure/ui-prop-types": "8.12.1-snapshot.51+4d3697334",
36
+ "@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
37
+ "@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
38
+ "@instructure/ui-view": "8.12.1-snapshot.51+4d3697334",
39
39
  "prop-types": "^15"
40
40
  },
41
41
  "devDependencies": {
42
- "@instructure/ui-babel-preset": "8.12.1-snapshot.45+9f4d9f91f",
43
- "@instructure/ui-test-locator": "8.12.1-snapshot.45+9f4d9f91f",
44
- "@instructure/ui-test-queries": "8.12.1-snapshot.45+9f4d9f91f",
45
- "@instructure/ui-test-utils": "8.12.1-snapshot.45+9f4d9f91f",
46
- "@instructure/ui-themes": "8.12.1-snapshot.45+9f4d9f91f"
42
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334",
43
+ "@instructure/ui-test-locator": "8.12.1-snapshot.51+4d3697334",
44
+ "@instructure/ui-test-queries": "8.12.1-snapshot.51+4d3697334",
45
+ "@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334",
46
+ "@instructure/ui-themes": "8.12.1-snapshot.51+4d3697334"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=16.8 <=17"
@@ -52,5 +52,5 @@
52
52
  "access": "public"
53
53
  },
54
54
  "sideEffects": false,
55
- "gitHead": "9f4d9f91f603496ac87a04d953afe7fe9004874d"
55
+ "gitHead": "4d369733414715a70bae0628378e8d82214eab3e"
56
56
  }