@atlaskit/smart-card 25.5.4 → 25.5.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 +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/index.js +3 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -0
- package/dist/cjs/view/CardWithUrl/component.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/index.js +3 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -0
- package/dist/es2019/view/CardWithUrl/component.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/index.js +3 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -0
- package/dist/esm/view/CardWithUrl/component.js +1 -0
- package/dist/types/view/BlockCard/types.d.ts +1 -0
- package/dist/types/view/BlockCard/views/flexible/FlexibleResolvedView.d.ts +1 -1
- package/dist/types/view/BlockCard/views/flexible/types.d.ts +4 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 25.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 25.5.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4b396e5d7eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b396e5d7eb) - [ux] Add lozenge action to block card (wip, opt-in, feature flag)
|
|
14
|
+
|
|
3
15
|
## 25.5.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -104,7 +104,8 @@ var BlockCard = function BlockCard(_ref) {
|
|
|
104
104
|
showActions = _ref.showActions,
|
|
105
105
|
platform = _ref.platform,
|
|
106
106
|
analytics = _ref.analytics,
|
|
107
|
-
enableFlexibleBlockCard = _ref.enableFlexibleBlockCard
|
|
107
|
+
enableFlexibleBlockCard = _ref.enableFlexibleBlockCard,
|
|
108
|
+
showServerActions = _ref.showServerActions;
|
|
108
109
|
var status = cardState.status,
|
|
109
110
|
details = cardState.details;
|
|
110
111
|
var data = details && details.data || (0, _jsonld.getEmptyJsonLd)();
|
|
@@ -131,6 +132,7 @@ var BlockCard = function BlockCard(_ref) {
|
|
|
131
132
|
onError: onError,
|
|
132
133
|
onResolve: onResolve,
|
|
133
134
|
renderers: renderers,
|
|
135
|
+
showServerActions: showServerActions,
|
|
134
136
|
ui: ui,
|
|
135
137
|
analytics: analytics,
|
|
136
138
|
extensionKey: extensionKey
|
|
@@ -26,6 +26,7 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
26
26
|
onClick = _ref.onClick,
|
|
27
27
|
onError = _ref.onError,
|
|
28
28
|
onResolve = _ref.onResolve,
|
|
29
|
+
showServerActions = _ref.showServerActions,
|
|
29
30
|
_ref$testId = _ref.testId,
|
|
30
31
|
testId = _ref$testId === void 0 ? 'smart-block-resolved-view' : _ref$testId,
|
|
31
32
|
ui = _ref.ui,
|
|
@@ -49,6 +50,7 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
49
50
|
onClick: onClick,
|
|
50
51
|
onError: onError,
|
|
51
52
|
onResolve: onResolve,
|
|
53
|
+
showServerActions: showServerActions,
|
|
52
54
|
testId: testId,
|
|
53
55
|
ui: ui,
|
|
54
56
|
url: url
|
package/dist/es2019/version.json
CHANGED
|
@@ -46,7 +46,8 @@ export const BlockCard = ({
|
|
|
46
46
|
showActions,
|
|
47
47
|
platform,
|
|
48
48
|
analytics,
|
|
49
|
-
enableFlexibleBlockCard
|
|
49
|
+
enableFlexibleBlockCard,
|
|
50
|
+
showServerActions
|
|
50
51
|
}) => {
|
|
51
52
|
var _details$meta, _forbiddenViewProps$c;
|
|
52
53
|
const {
|
|
@@ -75,6 +76,7 @@ export const BlockCard = ({
|
|
|
75
76
|
onError,
|
|
76
77
|
onResolve,
|
|
77
78
|
renderers,
|
|
79
|
+
showServerActions,
|
|
78
80
|
ui,
|
|
79
81
|
analytics,
|
|
80
82
|
extensionKey
|
|
@@ -16,6 +16,7 @@ const FlexibleResolvedView = ({
|
|
|
16
16
|
onClick,
|
|
17
17
|
onError,
|
|
18
18
|
onResolve,
|
|
19
|
+
showServerActions,
|
|
19
20
|
testId = 'smart-block-resolved-view',
|
|
20
21
|
ui,
|
|
21
22
|
url,
|
|
@@ -32,6 +33,7 @@ const FlexibleResolvedView = ({
|
|
|
32
33
|
onClick: onClick,
|
|
33
34
|
onError: onError,
|
|
34
35
|
onResolve: onResolve,
|
|
36
|
+
showServerActions: showServerActions,
|
|
35
37
|
testId: testId,
|
|
36
38
|
ui: ui,
|
|
37
39
|
url: url
|
package/dist/esm/version.json
CHANGED
|
@@ -45,7 +45,8 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
45
45
|
showActions = _ref.showActions,
|
|
46
46
|
platform = _ref.platform,
|
|
47
47
|
analytics = _ref.analytics,
|
|
48
|
-
enableFlexibleBlockCard = _ref.enableFlexibleBlockCard
|
|
48
|
+
enableFlexibleBlockCard = _ref.enableFlexibleBlockCard,
|
|
49
|
+
showServerActions = _ref.showServerActions;
|
|
49
50
|
var status = cardState.status,
|
|
50
51
|
details = cardState.details;
|
|
51
52
|
var data = details && details.data || getEmptyJsonLd();
|
|
@@ -72,6 +73,7 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
72
73
|
onError: onError,
|
|
73
74
|
onResolve: onResolve,
|
|
74
75
|
renderers: renderers,
|
|
76
|
+
showServerActions: showServerActions,
|
|
75
77
|
ui: ui,
|
|
76
78
|
analytics: analytics,
|
|
77
79
|
extensionKey: extensionKey
|
|
@@ -17,6 +17,7 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
17
17
|
onClick = _ref.onClick,
|
|
18
18
|
onError = _ref.onError,
|
|
19
19
|
onResolve = _ref.onResolve,
|
|
20
|
+
showServerActions = _ref.showServerActions,
|
|
20
21
|
_ref$testId = _ref.testId,
|
|
21
22
|
testId = _ref$testId === void 0 ? 'smart-block-resolved-view' : _ref$testId,
|
|
22
23
|
ui = _ref.ui,
|
|
@@ -40,6 +41,7 @@ var FlexibleResolvedView = function FlexibleResolvedView(_ref) {
|
|
|
40
41
|
onClick: onClick,
|
|
41
42
|
onError: onError,
|
|
42
43
|
onResolve: onResolve,
|
|
44
|
+
showServerActions: showServerActions,
|
|
43
45
|
testId: testId,
|
|
44
46
|
ui: ui,
|
|
45
47
|
url: url
|
|
@@ -5,5 +5,5 @@ import { FlexibleBlockCardProps } from './types';
|
|
|
5
5
|
* @see SmartLinkStatus
|
|
6
6
|
* @see FlexibleCardProps
|
|
7
7
|
*/
|
|
8
|
-
declare const FlexibleResolvedView: ({ id, cardState, onClick, onError, onResolve, testId, ui, url, analytics, }: FlexibleBlockCardProps) => JSX.Element;
|
|
8
|
+
declare const FlexibleResolvedView: ({ id, cardState, onClick, onError, onResolve, showServerActions, testId, ui, url, analytics, }: FlexibleBlockCardProps) => JSX.Element;
|
|
9
9
|
export default FlexibleResolvedView;
|
|
@@ -51,6 +51,10 @@ export declare type FlexibleBlockCardProps = {
|
|
|
51
51
|
* A name of the provider, needed to specify to user which account has to be connected
|
|
52
52
|
*/
|
|
53
53
|
providerName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Determines whether to show available server actions.
|
|
56
|
+
*/
|
|
57
|
+
showServerActions?: boolean;
|
|
54
58
|
/**
|
|
55
59
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
56
60
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "25.5.
|
|
3
|
+
"version": "25.5.6",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
36
36
|
"@atlaskit/link-client-extension": "^0.4.0",
|
|
37
37
|
"@atlaskit/linking-common": "^2.5.0",
|
|
38
|
-
"@atlaskit/linking-types": "^0.
|
|
39
|
-
"@atlaskit/logo": "^13.
|
|
38
|
+
"@atlaskit/linking-types": "^1.0.0",
|
|
39
|
+
"@atlaskit/logo": "^13.13.0",
|
|
40
40
|
"@atlaskit/lozenge": "^11.3.0",
|
|
41
41
|
"@atlaskit/media-common": "^4.0.0",
|
|
42
42
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/avatar": "^21.2.0",
|
|
70
70
|
"@atlaskit/checkbox": "^12.4.0",
|
|
71
71
|
"@atlaskit/code": "^14.5.0",
|
|
72
|
-
"@atlaskit/css-reset": "^6.
|
|
72
|
+
"@atlaskit/css-reset": "^6.4.0",
|
|
73
73
|
"@atlaskit/docs": "*",
|
|
74
74
|
"@atlaskit/field-base": "^15.0.6",
|
|
75
75
|
"@atlaskit/form": "^8.9.0",
|