@instructure/ui-link 8.38.2-snapshot-5 → 8.38.2-snapshot-6
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 +1 -1
- package/es/Link/LinkLocator.js +1 -4
- package/es/Link/index.js +2 -2
- package/lib/Link/LinkLocator.js +1 -4
- package/lib/Link/index.js +2 -2
- package/package.json +18 -18
- package/tsconfig.build.tsbuildinfo +1 -1
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-
|
|
6
|
+
## [8.38.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-6) (2023-07-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-link
|
|
9
9
|
|
package/es/Link/LinkLocator.js
CHANGED
|
@@ -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
|
|
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(...
|
|
47
|
+
constructor(...args) {
|
|
48
|
+
super(...args);
|
|
49
49
|
this.state = {
|
|
50
50
|
hasFocus: false
|
|
51
51
|
};
|
package/lib/Link/LinkLocator.js
CHANGED
|
@@ -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
|
|
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(...
|
|
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-
|
|
3
|
+
"version": "8.38.2-snapshot-6",
|
|
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.
|
|
27
|
-
"@instructure/console": "8.38.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.38.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.38.2-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-utils": "8.38.2-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "8.38.2-snapshot-
|
|
32
|
-
"@instructure/ui-dom-utils": "8.38.2-snapshot-
|
|
33
|
-
"@instructure/ui-icons": "8.38.2-snapshot-
|
|
34
|
-
"@instructure/ui-prop-types": "8.38.2-snapshot-
|
|
35
|
-
"@instructure/ui-react-utils": "8.38.2-snapshot-
|
|
36
|
-
"@instructure/ui-testable": "8.38.2-snapshot-
|
|
37
|
-
"@instructure/ui-view": "8.38.2-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.22.6",
|
|
27
|
+
"@instructure/console": "8.38.2-snapshot-6",
|
|
28
|
+
"@instructure/emotion": "8.38.2-snapshot-6",
|
|
29
|
+
"@instructure/shared-types": "8.38.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-a11y-utils": "8.38.2-snapshot-6",
|
|
31
|
+
"@instructure/ui-color-utils": "8.38.2-snapshot-6",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.38.2-snapshot-6",
|
|
33
|
+
"@instructure/ui-icons": "8.38.2-snapshot-6",
|
|
34
|
+
"@instructure/ui-prop-types": "8.38.2-snapshot-6",
|
|
35
|
+
"@instructure/ui-react-utils": "8.38.2-snapshot-6",
|
|
36
|
+
"@instructure/ui-testable": "8.38.2-snapshot-6",
|
|
37
|
+
"@instructure/ui-view": "8.38.2-snapshot-6",
|
|
38
38
|
"prop-types": "^15.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.38.2-snapshot-
|
|
42
|
-
"@instructure/ui-test-locator": "8.38.2-snapshot-
|
|
43
|
-
"@instructure/ui-test-queries": "8.38.2-snapshot-
|
|
44
|
-
"@instructure/ui-test-utils": "8.38.2-snapshot-
|
|
45
|
-
"@instructure/ui-themes": "8.38.2-snapshot-
|
|
41
|
+
"@instructure/ui-babel-preset": "8.38.2-snapshot-6",
|
|
42
|
+
"@instructure/ui-test-locator": "8.38.2-snapshot-6",
|
|
43
|
+
"@instructure/ui-test-queries": "8.38.2-snapshot-6",
|
|
44
|
+
"@instructure/ui-test-utils": "8.38.2-snapshot-6",
|
|
45
|
+
"@instructure/ui-themes": "8.38.2-snapshot-6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=18"
|