@atlaskit/smart-card 17.5.2 → 17.5.3
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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/InlineCard/Frame/index.js +1 -6
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/InlineCard/Frame/index.js +1 -6
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/InlineCard/Frame/index.js +1 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 17.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e68f0f554fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e68f0f554fa) - remove mousedown handler for inline links and add a vr test for the logic
|
|
8
|
+
|
|
3
9
|
## 17.5.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -43,11 +43,7 @@ var Frame = function Frame(props) {
|
|
|
43
43
|
event.stopPropagation();
|
|
44
44
|
onClick(event);
|
|
45
45
|
}
|
|
46
|
-
}, [onClick]);
|
|
47
|
-
|
|
48
|
-
var handleMouseDown = (0, _react.useCallback)(function (e) {
|
|
49
|
-
e.preventDefault();
|
|
50
|
-
}, []);
|
|
46
|
+
}, [onClick]);
|
|
51
47
|
var isInteractive = Boolean(onClick); // TODO Theming doesn't work right now in editor. Required React context does not trickle down atm.
|
|
52
48
|
// It will be worked as part of https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-154
|
|
53
49
|
|
|
@@ -61,7 +57,6 @@ var Frame = function Frame(props) {
|
|
|
61
57
|
tabIndex: isInteractive ? 0 : undefined,
|
|
62
58
|
role: isInteractive ? 'button' : undefined,
|
|
63
59
|
onClick: handleClick,
|
|
64
|
-
onMouseDown: handleMouseDown,
|
|
65
60
|
onKeyPress: handleKeyPress,
|
|
66
61
|
"data-testid": testId,
|
|
67
62
|
className: className
|
package/dist/es2019/version.json
CHANGED
|
@@ -29,11 +29,7 @@ export const Frame = props => {
|
|
|
29
29
|
event.stopPropagation();
|
|
30
30
|
onClick(event);
|
|
31
31
|
}
|
|
32
|
-
}, [onClick]);
|
|
33
|
-
|
|
34
|
-
const handleMouseDown = useCallback(e => {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
}, []);
|
|
32
|
+
}, [onClick]);
|
|
37
33
|
const isInteractive = Boolean(onClick); // TODO Theming doesn't work right now in editor. Required React context does not trickle down atm.
|
|
38
34
|
// It will be worked as part of https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-154
|
|
39
35
|
|
|
@@ -47,7 +43,6 @@ export const Frame = props => {
|
|
|
47
43
|
tabIndex: isInteractive ? 0 : undefined,
|
|
48
44
|
role: isInteractive ? 'button' : undefined,
|
|
49
45
|
onClick: handleClick,
|
|
50
|
-
onMouseDown: handleMouseDown,
|
|
51
46
|
onKeyPress: handleKeyPress,
|
|
52
47
|
"data-testid": testId,
|
|
53
48
|
className: className
|
package/dist/esm/version.json
CHANGED
|
@@ -27,11 +27,7 @@ export var Frame = function Frame(props) {
|
|
|
27
27
|
event.stopPropagation();
|
|
28
28
|
onClick(event);
|
|
29
29
|
}
|
|
30
|
-
}, [onClick]);
|
|
31
|
-
|
|
32
|
-
var handleMouseDown = useCallback(function (e) {
|
|
33
|
-
e.preventDefault();
|
|
34
|
-
}, []);
|
|
30
|
+
}, [onClick]);
|
|
35
31
|
var isInteractive = Boolean(onClick); // TODO Theming doesn't work right now in editor. Required React context does not trickle down atm.
|
|
36
32
|
// It will be worked as part of https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-154
|
|
37
33
|
|
|
@@ -45,7 +41,6 @@ export var Frame = function Frame(props) {
|
|
|
45
41
|
tabIndex: isInteractive ? 0 : undefined,
|
|
46
42
|
role: isInteractive ? 'button' : undefined,
|
|
47
43
|
onClick: handleClick,
|
|
48
|
-
onMouseDown: handleMouseDown,
|
|
49
44
|
onKeyPress: handleKeyPress,
|
|
50
45
|
"data-testid": testId,
|
|
51
46
|
className: className
|