@atlaskit/smart-card 25.3.0 → 25.3.1
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/BlockCard/index.js +4 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/index.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/index.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 25.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fa2fb550e4b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa2fb550e4b) - [ux] This makes Flexible Block Cards have the same onClick behaviour as the older block card, where the passed in onClick behaviour will cause the Smart Card to use `e.preventDefault()`.
|
|
8
|
+
|
|
3
9
|
## 25.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -81,6 +81,7 @@ var _FlexibleErroredView = _interopRequireDefault(require("./views/flexible/Flex
|
|
|
81
81
|
var _FlexibleForbiddenView = _interopRequireDefault(require("./views/flexible/FlexibleForbiddenView"));
|
|
82
82
|
var _token = require("../../utils/token");
|
|
83
83
|
var _react = require("@emotion/react");
|
|
84
|
+
var _handlers = require("./utils/handlers");
|
|
84
85
|
var _PreviewAction = _interopRequireDefault(require("./actions/PreviewAction"));
|
|
85
86
|
var _templateObject;
|
|
86
87
|
var flexibleBlockCardElevationStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: 2px;\n"])), _token.tokens.elevation);
|
|
@@ -123,7 +124,9 @@ var BlockCard = function BlockCard(_ref) {
|
|
|
123
124
|
cardState: cardState,
|
|
124
125
|
url: url,
|
|
125
126
|
testId: testId,
|
|
126
|
-
onClick:
|
|
127
|
+
onClick: function onClick(event) {
|
|
128
|
+
return (0, _handlers.handleClickCommon)(event, handleFrameClick);
|
|
129
|
+
},
|
|
127
130
|
onError: onError,
|
|
128
131
|
onResolve: onResolve,
|
|
129
132
|
renderers: renderers,
|
package/dist/es2019/version.json
CHANGED
|
@@ -21,6 +21,7 @@ import FlexibleErroredView from './views/flexible/FlexibleErroredView';
|
|
|
21
21
|
import FlexibleForbiddenView from './views/flexible/FlexibleForbiddenView';
|
|
22
22
|
import { tokens } from '../../utils/token';
|
|
23
23
|
import { css, jsx } from '@emotion/react';
|
|
24
|
+
import { handleClickCommon } from './utils/handlers';
|
|
24
25
|
export { default as PreviewAction } from './actions/PreviewAction';
|
|
25
26
|
export { ForbiddenAction, AuthorizeAction, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, BlockCardForbiddenView, BlockCardErroredView, BlockCardNotFoundView };
|
|
26
27
|
const flexibleBlockCardElevationStyle = css`
|
|
@@ -70,7 +71,7 @@ export const BlockCard = ({
|
|
|
70
71
|
cardState,
|
|
71
72
|
url,
|
|
72
73
|
testId,
|
|
73
|
-
onClick: handleFrameClick,
|
|
74
|
+
onClick: event => handleClickCommon(event, handleFrameClick),
|
|
74
75
|
onError,
|
|
75
76
|
onResolve,
|
|
76
77
|
renderers,
|
package/dist/esm/version.json
CHANGED
|
@@ -23,6 +23,7 @@ import FlexibleErroredView from './views/flexible/FlexibleErroredView';
|
|
|
23
23
|
import FlexibleForbiddenView from './views/flexible/FlexibleForbiddenView';
|
|
24
24
|
import { tokens } from '../../utils/token';
|
|
25
25
|
import { css, jsx } from '@emotion/react';
|
|
26
|
+
import { handleClickCommon } from './utils/handlers';
|
|
26
27
|
export { default as PreviewAction } from './actions/PreviewAction';
|
|
27
28
|
export { ForbiddenAction, AuthorizeAction, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, BlockCardForbiddenView, BlockCardErroredView, BlockCardNotFoundView };
|
|
28
29
|
var flexibleBlockCardElevationStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: 2px;\n"])), tokens.elevation);
|
|
@@ -65,7 +66,9 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
65
66
|
cardState: cardState,
|
|
66
67
|
url: url,
|
|
67
68
|
testId: testId,
|
|
68
|
-
onClick:
|
|
69
|
+
onClick: function onClick(event) {
|
|
70
|
+
return handleClickCommon(event, handleFrameClick);
|
|
71
|
+
},
|
|
69
72
|
onError: onError,
|
|
70
73
|
onResolve: onResolve,
|
|
71
74
|
renderers: renderers,
|