@instructure/ui-link 8.46.2-snapshot-5 → 8.46.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/lib/Link/LinkLocator.js +2 -3
- package/lib/Link/__examples__/Link.examples.js +2 -3
- package/lib/Link/index.js +2 -4
- package/lib/Link/locator.js +1 -2
- package/lib/Link/props.js +2 -4
- package/lib/Link/styles.js +1 -2
- package/lib/Link/theme.js +1 -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.46.2-snapshot-
|
|
6
|
+
## [8.46.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-6) (2023-10-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-link
|
|
9
9
|
|
package/lib/Link/LinkLocator.js
CHANGED
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
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
|
-
const LinkLocator = (0, _locator.locator)(_index.Link.selector, {
|
|
35
|
+
const LinkLocator = exports.LinkLocator = (0, _locator.locator)(_index.Link.selector, {
|
|
36
36
|
click: async (element, ...args) => {
|
|
37
37
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.LinkLocator = LinkLocator;
|
|
39
|
+
});
|
|
@@ -31,7 +31,7 @@ var _IconTrashSolid = require("@instructure/ui-icons/lib/IconTrashSolid.js");
|
|
|
31
31
|
|
|
32
32
|
const longString = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat';
|
|
33
33
|
const shortString = 'Delete';
|
|
34
|
-
var _default = {
|
|
34
|
+
var _default = exports.default = {
|
|
35
35
|
sectionProp: 'color',
|
|
36
36
|
propValues: {
|
|
37
37
|
children: [shortString, longString],
|
|
@@ -53,5 +53,4 @@ var _default = {
|
|
|
53
53
|
filter: props => {
|
|
54
54
|
return props.iconPlacement && !props.renderIcon || !props.iconPlacement && !!props.renderIcon || props.disabled;
|
|
55
55
|
}
|
|
56
|
-
};
|
|
57
|
-
exports.default = _default;
|
|
56
|
+
};
|
package/lib/Link/index.js
CHANGED
|
@@ -55,7 +55,7 @@ category: components
|
|
|
55
55
|
---
|
|
56
56
|
@tsProps
|
|
57
57
|
**/
|
|
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 {
|
|
58
|
+
let Link = exports.Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Link extends _react.Component {
|
|
59
59
|
constructor(...args) {
|
|
60
60
|
super(...args);
|
|
61
61
|
this.state = {
|
|
@@ -217,6 +217,4 @@ let Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
217
217
|
isWithinText: true,
|
|
218
218
|
forceButtonRole: true
|
|
219
219
|
}, _class2)) || _class) || _class);
|
|
220
|
-
exports.
|
|
221
|
-
var _default = Link;
|
|
222
|
-
exports.default = _default;
|
|
220
|
+
var _default = exports.default = Link;
|
package/lib/Link/locator.js
CHANGED
|
@@ -34,5 +34,4 @@ var _LinkLocator = require("./LinkLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _LinkLocator.LinkLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _LinkLocator.LinkLocator;
|
package/lib/Link/props.js
CHANGED
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
children: _propTypes.default.node.isRequired,
|
|
36
36
|
href: _propTypes.default.string,
|
|
37
37
|
color: _propTypes.default.oneOf(['link', 'link-inverse']),
|
|
@@ -49,6 +49,4 @@ const propTypes = {
|
|
|
49
49
|
onFocus: _propTypes.default.func,
|
|
50
50
|
onBlur: _propTypes.default.func
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const allowedProps = ['children', 'href', 'color', 'elementRef', 'as', 'role', 'forceButtonRole', 'interaction', 'margin', 'renderIcon', 'iconPlacement', 'display', 'isWithinText', 'onClick', 'onFocus', 'onBlur'];
|
|
54
|
-
exports.allowedProps = allowedProps;
|
|
52
|
+
const allowedProps = exports.allowedProps = ['children', 'href', 'color', 'elementRef', 'as', 'role', 'forceButtonRole', 'interaction', 'margin', 'renderIcon', 'iconPlacement', 'display', 'isWithinText', 'onClick', 'onFocus', 'onBlur'];
|
package/lib/Link/styles.js
CHANGED
package/lib/Link/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-link",
|
|
3
|
-
"version": "8.46.2-snapshot-
|
|
3
|
+
"version": "8.46.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.
|
|
27
|
-
"@instructure/console": "8.46.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.46.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-utils": "8.46.2-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
|
32
|
-
"@instructure/ui-dom-utils": "8.46.2-snapshot-
|
|
33
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
|
34
|
-
"@instructure/ui-prop-types": "8.46.2-snapshot-
|
|
35
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
|
36
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
|
37
|
-
"@instructure/ui-view": "8.46.2-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.23.2",
|
|
27
|
+
"@instructure/console": "8.46.2-snapshot-6",
|
|
28
|
+
"@instructure/emotion": "8.46.2-snapshot-6",
|
|
29
|
+
"@instructure/shared-types": "8.46.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-a11y-utils": "8.46.2-snapshot-6",
|
|
31
|
+
"@instructure/ui-color-utils": "8.46.2-snapshot-6",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.46.2-snapshot-6",
|
|
33
|
+
"@instructure/ui-icons": "8.46.2-snapshot-6",
|
|
34
|
+
"@instructure/ui-prop-types": "8.46.2-snapshot-6",
|
|
35
|
+
"@instructure/ui-react-utils": "8.46.2-snapshot-6",
|
|
36
|
+
"@instructure/ui-testable": "8.46.2-snapshot-6",
|
|
37
|
+
"@instructure/ui-view": "8.46.2-snapshot-6",
|
|
38
38
|
"prop-types": "^15.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.46.2-snapshot-
|
|
42
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
|
43
|
-
"@instructure/ui-test-queries": "8.46.2-snapshot-
|
|
44
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
|
45
|
-
"@instructure/ui-themes": "8.46.2-snapshot-
|
|
41
|
+
"@instructure/ui-babel-preset": "8.46.2-snapshot-6",
|
|
42
|
+
"@instructure/ui-test-locator": "8.46.2-snapshot-6",
|
|
43
|
+
"@instructure/ui-test-queries": "8.46.2-snapshot-6",
|
|
44
|
+
"@instructure/ui-test-utils": "8.46.2-snapshot-6",
|
|
45
|
+
"@instructure/ui-themes": "8.46.2-snapshot-6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=18"
|