@instructure/ui-link 8.38.2-snapshot-5 → 8.38.2-snapshot-7

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,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
- ## [8.38.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-5) (2023-07-14)
6
+ ## [8.38.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-7) (2023-07-21)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-link
9
9
 
@@ -28,10 +28,7 @@ import { Link } from './index';
28
28
 
29
29
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
30
30
  export const LinkLocator = locator(Link.selector, {
31
- click: async function (element) {
32
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
33
- args[_key - 1] = arguments[_key];
34
- }
31
+ click: async (element, ...args) => {
35
32
  return (await find(element, 'a,button,[role="button"]')).click(...args);
36
33
  }
37
34
  });
package/es/Link/index.js CHANGED
@@ -44,8 +44,8 @@ category: components
44
44
  @tsProps
45
45
  **/
46
46
  let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Link extends Component {
47
- constructor() {
48
- super(...arguments);
47
+ constructor(...args) {
48
+ super(...args);
49
49
  this.state = {
50
50
  hasFocus: false
51
51
  };
@@ -33,10 +33,7 @@ var _index = require("./index");
33
33
 
34
34
  // @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
35
  const LinkLocator = (0, _locator.locator)(_index.Link.selector, {
36
- click: async function (element) {
37
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
38
- args[_key - 1] = arguments[_key];
39
- }
36
+ click: async (element, ...args) => {
40
37
  return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
41
38
  }
42
39
  });
package/lib/Link/index.js CHANGED
@@ -56,8 +56,8 @@ category: components
56
56
  @tsProps
57
57
  **/
58
58
  let Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Link extends _react.Component {
59
- constructor() {
60
- super(...arguments);
59
+ constructor(...args) {
60
+ super(...args);
61
61
  this.state = {
62
62
  hasFocus: false
63
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-link",
3
- "version": "8.38.2-snapshot-5",
3
+ "version": "8.38.2-snapshot-7",
4
4
  "description": "A component for creating links",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,26 +23,26 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.22.5",
27
- "@instructure/console": "8.38.2-snapshot-5",
28
- "@instructure/emotion": "8.38.2-snapshot-5",
29
- "@instructure/shared-types": "8.38.2-snapshot-5",
30
- "@instructure/ui-a11y-utils": "8.38.2-snapshot-5",
31
- "@instructure/ui-color-utils": "8.38.2-snapshot-5",
32
- "@instructure/ui-dom-utils": "8.38.2-snapshot-5",
33
- "@instructure/ui-icons": "8.38.2-snapshot-5",
34
- "@instructure/ui-prop-types": "8.38.2-snapshot-5",
35
- "@instructure/ui-react-utils": "8.38.2-snapshot-5",
36
- "@instructure/ui-testable": "8.38.2-snapshot-5",
37
- "@instructure/ui-view": "8.38.2-snapshot-5",
26
+ "@babel/runtime": "^7.22.6",
27
+ "@instructure/console": "8.38.2-snapshot-7",
28
+ "@instructure/emotion": "8.38.2-snapshot-7",
29
+ "@instructure/shared-types": "8.38.2-snapshot-7",
30
+ "@instructure/ui-a11y-utils": "8.38.2-snapshot-7",
31
+ "@instructure/ui-color-utils": "8.38.2-snapshot-7",
32
+ "@instructure/ui-dom-utils": "8.38.2-snapshot-7",
33
+ "@instructure/ui-icons": "8.38.2-snapshot-7",
34
+ "@instructure/ui-prop-types": "8.38.2-snapshot-7",
35
+ "@instructure/ui-react-utils": "8.38.2-snapshot-7",
36
+ "@instructure/ui-testable": "8.38.2-snapshot-7",
37
+ "@instructure/ui-view": "8.38.2-snapshot-7",
38
38
  "prop-types": "^15.8.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@instructure/ui-babel-preset": "8.38.2-snapshot-5",
42
- "@instructure/ui-test-locator": "8.38.2-snapshot-5",
43
- "@instructure/ui-test-queries": "8.38.2-snapshot-5",
44
- "@instructure/ui-test-utils": "8.38.2-snapshot-5",
45
- "@instructure/ui-themes": "8.38.2-snapshot-5"
41
+ "@instructure/ui-babel-preset": "8.38.2-snapshot-7",
42
+ "@instructure/ui-test-locator": "8.38.2-snapshot-7",
43
+ "@instructure/ui-test-queries": "8.38.2-snapshot-7",
44
+ "@instructure/ui-test-utils": "8.38.2-snapshot-7",
45
+ "@instructure/ui-themes": "8.38.2-snapshot-7"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=16.8 <=18"