@instructure/ui-link 8.12.1-snapshot.7 → 8.13.1-snapshot.9
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 +4 -0
- package/es/Link/LinkLocator.js +5 -1
- package/es/Link/index.js +2 -2
- package/lib/Link/LinkLocator.js +5 -1
- package/lib/Link/index.js +3 -3
- package/lib/Link/props.js +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-link
|
|
9
|
+
|
|
6
10
|
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-link
|
package/es/Link/LinkLocator.js
CHANGED
|
@@ -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
|
|
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(
|
|
50
|
-
super(...
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments);
|
|
51
51
|
this.state = {
|
|
52
52
|
hasFocus: false
|
|
53
53
|
};
|
package/lib/Link/LinkLocator.js
CHANGED
|
@@ -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
|
|
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.
|
|
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(
|
|
57
|
-
super(...
|
|
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.
|
|
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.
|
|
3
|
+
"version": "8.13.1-snapshot.9+f32ba918e",
|
|
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.
|
|
29
|
-
"@instructure/emotion": "8.
|
|
30
|
-
"@instructure/shared-types": "8.
|
|
31
|
-
"@instructure/ui-a11y-utils": "8.
|
|
32
|
-
"@instructure/ui-color-utils": "8.
|
|
33
|
-
"@instructure/ui-dom-utils": "8.
|
|
34
|
-
"@instructure/ui-icons": "8.
|
|
35
|
-
"@instructure/ui-prop-types": "8.
|
|
36
|
-
"@instructure/ui-react-utils": "8.
|
|
37
|
-
"@instructure/ui-testable": "8.
|
|
38
|
-
"@instructure/ui-view": "8.
|
|
28
|
+
"@instructure/console": "8.13.1-snapshot.9+f32ba918e",
|
|
29
|
+
"@instructure/emotion": "8.13.1-snapshot.9+f32ba918e",
|
|
30
|
+
"@instructure/shared-types": "8.13.1-snapshot.9+f32ba918e",
|
|
31
|
+
"@instructure/ui-a11y-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
32
|
+
"@instructure/ui-color-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
33
|
+
"@instructure/ui-dom-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
34
|
+
"@instructure/ui-icons": "8.13.1-snapshot.9+f32ba918e",
|
|
35
|
+
"@instructure/ui-prop-types": "8.13.1-snapshot.9+f32ba918e",
|
|
36
|
+
"@instructure/ui-react-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
37
|
+
"@instructure/ui-testable": "8.13.1-snapshot.9+f32ba918e",
|
|
38
|
+
"@instructure/ui-view": "8.13.1-snapshot.9+f32ba918e",
|
|
39
39
|
"prop-types": "^15"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@instructure/ui-babel-preset": "8.
|
|
43
|
-
"@instructure/ui-test-locator": "8.
|
|
44
|
-
"@instructure/ui-test-queries": "8.
|
|
45
|
-
"@instructure/ui-test-utils": "8.
|
|
46
|
-
"@instructure/ui-themes": "8.
|
|
42
|
+
"@instructure/ui-babel-preset": "8.13.1-snapshot.9+f32ba918e",
|
|
43
|
+
"@instructure/ui-test-locator": "8.13.1-snapshot.9+f32ba918e",
|
|
44
|
+
"@instructure/ui-test-queries": "8.13.1-snapshot.9+f32ba918e",
|
|
45
|
+
"@instructure/ui-test-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
46
|
+
"@instructure/ui-themes": "8.13.1-snapshot.9+f32ba918e"
|
|
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": "
|
|
55
|
+
"gitHead": "f32ba918e4d3ce76c6ee95c856584d00a9d80958"
|
|
56
56
|
}
|