@atlaskit/smart-card 25.5.4 → 25.5.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 25.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4b396e5d7eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b396e5d7eb) - [ux] Add lozenge action to block card (wip, opt-in, feature flag)
8
+
3
9
  ## 25.5.4
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.5.4",
3
+ "version": "25.5.5",
4
4
  "sideEffects": false
5
5
  }
@@ -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
@@ -237,6 +237,7 @@ function CardWithUrlContent(_ref) {
237
237
  onError: onError,
238
238
  testId: testId,
239
239
  showActions: showActions,
240
+ showServerActions: showServerActions,
240
241
  platform: platform,
241
242
  enableFlexibleBlockCard: enableFlexibleBlockCardFlag
242
243
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.5.4",
3
+ "version": "25.5.5",
4
4
  "sideEffects": false
5
5
  }
@@ -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
@@ -224,6 +224,7 @@ export function CardWithUrlContent({
224
224
  onError: onError,
225
225
  testId: testId,
226
226
  showActions: showActions,
227
+ showServerActions: showServerActions,
227
228
  platform: platform,
228
229
  enableFlexibleBlockCard: enableFlexibleBlockCardFlag
229
230
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.5.4",
3
+ "version": "25.5.5",
4
4
  "sideEffects": false
5
5
  }
@@ -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
@@ -227,6 +227,7 @@ export function CardWithUrlContent(_ref) {
227
227
  onError: onError,
228
228
  testId: testId,
229
229
  showActions: showActions,
230
+ showServerActions: showServerActions,
230
231
  platform: platform,
231
232
  enableFlexibleBlockCard: enableFlexibleBlockCardFlag
232
233
  });
@@ -19,6 +19,7 @@ export declare type BlockCardProps = {
19
19
  onError?: OnErrorCallback;
20
20
  testId?: string;
21
21
  showActions?: boolean;
22
+ showServerActions?: boolean;
22
23
  renderers?: CardProviderRenderers;
23
24
  platform?: CardPlatform;
24
25
  analytics: AnalyticsFacade;
@@ -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.4",
3
+ "version": "25.5.5",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/link-client-extension": "^0.4.0",
37
37
  "@atlaskit/linking-common": "^2.5.0",
38
38
  "@atlaskit/linking-types": "^0.4.0",
39
- "@atlaskit/logo": "^13.12.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",