@atlaskit/smart-card 25.0.6 → 25.1.0

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,23 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 25.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b811f263575`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b811f263575) - Add new "showServerActions" prop to SmartCard to show available server actions on inline and block Smart Links. This will be used in conjunction with feature flags on the duration of the experiment.
8
+
9
+ ### Patch Changes
10
+
11
+ - [`32b4bcce640`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32b4bcce640) - Replace box-shadow based focus to instead apply outline.
12
+ - Updated dependencies
13
+
14
+ ## 25.0.7
15
+
16
+ ### Patch Changes
17
+
18
+ - [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) - Dependency update json-ld-types@3.4.0
19
+ - Updated dependencies
20
+
3
21
  ## 25.0.6
4
22
 
5
23
  ### Patch Changes
@@ -45,7 +45,7 @@ var _default = {
45
45
  'fabric.linking.invalid_permissions': '制限付きコンテンツ',
46
46
  'fabric.linking.invalid_permissions_description': 'このプレビューを表示するには、アクセスをリクエストするか別のアカウントで試してください。',
47
47
  'fabric.linking.join_to_view': '{context}に参加してこの課題を見る',
48
- 'fabric.linking.learn_more_about_smart_links': 'Smart Link の詳細',
48
+ 'fabric.linking.learn_more_about_smart_links': 'スマート リンクの詳細',
49
49
  'fabric.linking.link_safety_warning_message': 'リンク {unsafeLinkText} をクリックすると別のサイトが開きます。<a>実際のリンク先</a>',
50
50
  'fabric.linking.loading': '読み込み中…',
51
51
  'fabric.linking.modified_on_absolute': '更新日: {context}',
@@ -60,15 +60,15 @@ var _default = {
60
60
  'fabric.linking.preview_max_size': '全画面表示',
61
61
  'fabric.linking.preview_min_size': '全画面表示を閉じる',
62
62
  'fabric.linking.priority_blocker': 'ブロッカー',
63
- 'fabric.linking.priority_critical': '重度',
63
+ 'fabric.linking.priority_critical': 'クリティカル',
64
64
  'fabric.linking.priority_high': '高',
65
65
  'fabric.linking.priority_highest': '最高',
66
66
  'fabric.linking.priority_low': '低',
67
67
  'fabric.linking.priority_lowest': '最低',
68
- 'fabric.linking.priority_major': '重大',
68
+ 'fabric.linking.priority_major': 'メジャー',
69
69
  'fabric.linking.priority_medium': '中',
70
- 'fabric.linking.priority_minor': '中度',
71
- 'fabric.linking.priority_trivial': '最低',
70
+ 'fabric.linking.priority_minor': 'マイナー',
71
+ 'fabric.linking.priority_trivial': '軽度',
72
72
  'fabric.linking.priority_undefined': '未定義',
73
73
  'fabric.linking.request_access': 'アクセスをリクエスト',
74
74
  'fabric.linking.request_access_description': 'このプレビューを表示するための{context}へのアクセスをリクエストします。',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.0.6",
3
+ "version": "25.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -19,13 +19,12 @@ var _constants = require("../../../../../constants");
19
19
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
20
20
  var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/more"));
21
21
  var _utils = require("../../utils");
22
- var _token = require("../../../../../utils/token");
23
22
  var _messages = require("../../../../../messages");
24
23
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
25
24
  var _actionGroupItem = _interopRequireDefault(require("./action-group-item"));
26
25
  var _excluded = ["triggerRef"];
27
26
  var _templateObject;
28
- var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n line-height: 1rem;\n > div {\n align-items: center;\n button:focus {\n // AK button removes the default browser outline on focus and apply\n // box-shadow styling to create the outline appearance.\n // Due to our container elements (Container/Block/ElementGroup) has\n // overflow hidden to prevent the metadata element from leaking outside\n // of its container, the box-shadow doesn't show properly.\n // Invert the AK box-shadow styling.\n box-shadow: inset 0 0 0 2px ", ";\n }\n }\n"])), _token.tokens.focus);
27
+ var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n line-height: 1rem;\n > div {\n align-items: center;\n button:focus-visible {\n // AK button removes the default browser outline on focus and apply\n // box-shadow styling to create the outline appearance.\n // Due to our container elements (Container/Block/ElementGroup) has\n // overflow hidden to prevent the metadata element from leaking outside\n // of its container, the box-shadow doesn't show properly.\n // Invert the AK box-shadow styling.\n outline-offset: -2px;\n }\n }\n"])));
29
28
  var renderActionItems = function renderActionItems() {
30
29
  var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
31
30
  var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.SmartLinkSize.Medium;
@@ -39,7 +39,7 @@ export default {
39
39
  'fabric.linking.invalid_permissions': '制限付きコンテンツ',
40
40
  'fabric.linking.invalid_permissions_description': 'このプレビューを表示するには、アクセスをリクエストするか別のアカウントで試してください。',
41
41
  'fabric.linking.join_to_view': '{context}に参加してこの課題を見る',
42
- 'fabric.linking.learn_more_about_smart_links': 'Smart Link の詳細',
42
+ 'fabric.linking.learn_more_about_smart_links': 'スマート リンクの詳細',
43
43
  'fabric.linking.link_safety_warning_message': 'リンク {unsafeLinkText} をクリックすると別のサイトが開きます。<a>実際のリンク先</a>',
44
44
  'fabric.linking.loading': '読み込み中…',
45
45
  'fabric.linking.modified_on_absolute': '更新日: {context}',
@@ -54,15 +54,15 @@ export default {
54
54
  'fabric.linking.preview_max_size': '全画面表示',
55
55
  'fabric.linking.preview_min_size': '全画面表示を閉じる',
56
56
  'fabric.linking.priority_blocker': 'ブロッカー',
57
- 'fabric.linking.priority_critical': '重度',
57
+ 'fabric.linking.priority_critical': 'クリティカル',
58
58
  'fabric.linking.priority_high': '高',
59
59
  'fabric.linking.priority_highest': '最高',
60
60
  'fabric.linking.priority_low': '低',
61
61
  'fabric.linking.priority_lowest': '最低',
62
- 'fabric.linking.priority_major': '重大',
62
+ 'fabric.linking.priority_major': 'メジャー',
63
63
  'fabric.linking.priority_medium': '中',
64
- 'fabric.linking.priority_minor': '中度',
65
- 'fabric.linking.priority_trivial': '最低',
64
+ 'fabric.linking.priority_minor': 'マイナー',
65
+ 'fabric.linking.priority_trivial': '軽度',
66
66
  'fabric.linking.priority_undefined': '未定義',
67
67
  'fabric.linking.request_access': 'アクセスをリクエスト',
68
68
  'fabric.linking.request_access_description': 'このプレビューを表示するための{context}へのアクセスをリクエストします。',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.0.6",
3
+ "version": "25.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,6 @@ import { ActionName, SmartLinkSize } from '../../../../../constants';
10
10
  import Button from '@atlaskit/button/standard-button';
11
11
  import MoreIcon from '@atlaskit/icon/glyph/more';
12
12
  import { sizeToButtonSpacing } from '../../utils';
13
- import { tokens } from '../../../../../utils/token';
14
13
  import { messages } from '../../../../../messages';
15
14
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
16
15
  import ActionGroupItem from './action-group-item';
@@ -19,14 +18,14 @@ const styles = css`
19
18
  line-height: 1rem;
20
19
  > div {
21
20
  align-items: center;
22
- button:focus {
21
+ button:focus-visible {
23
22
  // AK button removes the default browser outline on focus and apply
24
23
  // box-shadow styling to create the outline appearance.
25
24
  // Due to our container elements (Container/Block/ElementGroup) has
26
25
  // overflow hidden to prevent the metadata element from leaking outside
27
26
  // of its container, the box-shadow doesn't show properly.
28
27
  // Invert the AK box-shadow styling.
29
- box-shadow: inset 0 0 0 2px ${tokens.focus};
28
+ outline-offset: -2px;
30
29
  }
31
30
  }
32
31
  `;
@@ -39,7 +39,7 @@ export default {
39
39
  'fabric.linking.invalid_permissions': '制限付きコンテンツ',
40
40
  'fabric.linking.invalid_permissions_description': 'このプレビューを表示するには、アクセスをリクエストするか別のアカウントで試してください。',
41
41
  'fabric.linking.join_to_view': '{context}に参加してこの課題を見る',
42
- 'fabric.linking.learn_more_about_smart_links': 'Smart Link の詳細',
42
+ 'fabric.linking.learn_more_about_smart_links': 'スマート リンクの詳細',
43
43
  'fabric.linking.link_safety_warning_message': 'リンク {unsafeLinkText} をクリックすると別のサイトが開きます。<a>実際のリンク先</a>',
44
44
  'fabric.linking.loading': '読み込み中…',
45
45
  'fabric.linking.modified_on_absolute': '更新日: {context}',
@@ -54,15 +54,15 @@ export default {
54
54
  'fabric.linking.preview_max_size': '全画面表示',
55
55
  'fabric.linking.preview_min_size': '全画面表示を閉じる',
56
56
  'fabric.linking.priority_blocker': 'ブロッカー',
57
- 'fabric.linking.priority_critical': '重度',
57
+ 'fabric.linking.priority_critical': 'クリティカル',
58
58
  'fabric.linking.priority_high': '高',
59
59
  'fabric.linking.priority_highest': '最高',
60
60
  'fabric.linking.priority_low': '低',
61
61
  'fabric.linking.priority_lowest': '最低',
62
- 'fabric.linking.priority_major': '重大',
62
+ 'fabric.linking.priority_major': 'メジャー',
63
63
  'fabric.linking.priority_medium': '中',
64
- 'fabric.linking.priority_minor': '中度',
65
- 'fabric.linking.priority_trivial': '最低',
64
+ 'fabric.linking.priority_minor': 'マイナー',
65
+ 'fabric.linking.priority_trivial': '軽度',
66
66
  'fabric.linking.priority_undefined': '未定義',
67
67
  'fabric.linking.request_access': 'アクセスをリクエスト',
68
68
  'fabric.linking.request_access_description': 'このプレビューを表示するための{context}へのアクセスをリクエストします。',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.0.6",
3
+ "version": "25.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -15,11 +15,10 @@ import { ActionName, SmartLinkSize } from '../../../../../constants';
15
15
  import Button from '@atlaskit/button/standard-button';
16
16
  import MoreIcon from '@atlaskit/icon/glyph/more';
17
17
  import { sizeToButtonSpacing } from '../../utils';
18
- import { tokens } from '../../../../../utils/token';
19
18
  import { messages } from '../../../../../messages';
20
19
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
21
20
  import ActionGroupItem from './action-group-item';
22
- var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n line-height: 1rem;\n > div {\n align-items: center;\n button:focus {\n // AK button removes the default browser outline on focus and apply\n // box-shadow styling to create the outline appearance.\n // Due to our container elements (Container/Block/ElementGroup) has\n // overflow hidden to prevent the metadata element from leaking outside\n // of its container, the box-shadow doesn't show properly.\n // Invert the AK box-shadow styling.\n box-shadow: inset 0 0 0 2px ", ";\n }\n }\n"])), tokens.focus);
21
+ var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n line-height: 1rem;\n > div {\n align-items: center;\n button:focus-visible {\n // AK button removes the default browser outline on focus and apply\n // box-shadow styling to create the outline appearance.\n // Due to our container elements (Container/Block/ElementGroup) has\n // overflow hidden to prevent the metadata element from leaking outside\n // of its container, the box-shadow doesn't show properly.\n // Invert the AK box-shadow styling.\n outline-offset: -2px;\n }\n }\n"])));
23
22
  var renderActionItems = function renderActionItems() {
24
23
  var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
25
24
  var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SmartLinkSize.Medium;
@@ -254,98 +254,5 @@ export declare const TEST_DOCUMENT_WITH_PREVIEW: {
254
254
  summaryMap?: Record<string, string> | undefined;
255
255
  updated?: string | undefined;
256
256
  };
257
- export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: {
258
- 'atlassian:latestCommit': {
259
- '@type': string;
260
- name: string;
261
- };
262
- '@context': JsonLd.Primitives.Context;
263
- '@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
264
- 'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
265
- 'atlassian:downloadUrl'?: string | undefined;
266
- 'atlassian:visitUrl'?: string | undefined;
267
- 'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
268
- 'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
269
- 'schema:dateCreated'?: string | undefined;
270
- '@id'?: string | undefined;
271
- attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
272
- attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
273
- actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
274
- }> | undefined;
275
- audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
276
- bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
277
- bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
278
- cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
279
- context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
280
- generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
281
- icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
282
- image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
283
- inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
284
- location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
285
- oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
286
- anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
287
- closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
288
- preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
289
- replies?: JsonLd.Primitives.Collection<any> | undefined;
290
- tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
291
- to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
292
- url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
293
- content?: string | undefined;
294
- contentMap?: Record<string, string> | undefined;
295
- name?: string | undefined;
296
- nameMap?: Record<string, string> | undefined;
297
- duration?: string | undefined;
298
- mediaType?: string | undefined;
299
- endTime?: string | undefined;
300
- published?: string | undefined;
301
- startTime?: string | undefined;
302
- summary?: string | undefined;
303
- summaryMap?: Record<string, string> | undefined;
304
- updated?: string | undefined;
305
- };
306
- export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: {
307
- 'atlassian:latestCommit': string;
308
- '@context': JsonLd.Primitives.Context;
309
- '@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
310
- 'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
311
- 'atlassian:downloadUrl'?: string | undefined;
312
- 'atlassian:visitUrl'?: string | undefined;
313
- 'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
314
- 'atlassian:updatedBy'?: JsonLd.Primitives.Link | JsonLd.Primitives.Person<any> | JsonLd.Primitives.Collection<JsonLd.Primitives.Link | JsonLd.Primitives.Person<any>> | undefined;
315
- 'schema:dateCreated'?: string | undefined;
316
- '@id'?: string | undefined;
317
- attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
318
- attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
319
- actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
320
- }> | undefined;
321
- audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
322
- bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
323
- bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
324
- cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
325
- context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
326
- generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
327
- icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
328
- image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
329
- inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
330
- location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
331
- oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
332
- anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
333
- closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
334
- preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
335
- replies?: JsonLd.Primitives.Collection<any> | undefined;
336
- tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
337
- to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
338
- url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
339
- content?: string | undefined;
340
- contentMap?: Record<string, string> | undefined;
341
- name?: string | undefined;
342
- nameMap?: Record<string, string> | undefined;
343
- duration?: string | undefined;
344
- mediaType?: string | undefined;
345
- endTime?: string | undefined;
346
- published?: string | undefined;
347
- startTime?: string | undefined;
348
- summary?: string | undefined;
349
- summaryMap?: Record<string, string> | undefined;
350
- updated?: string | undefined;
351
- };
257
+ export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: JsonLd.Data.SourceCodeRepository;
258
+ export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: JsonLd.Data.SourceCodeRepository;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CardAppearance, CardPlatform, CardProps } from './types';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
- export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "onResolve" | "platform" | "showAuthTooltip" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
4
+ export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "showActions" | "showHoverPreview" | "onResolve" | "platform" | "showAuthTooltip" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "showServerActions" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
5
5
  export type { CardAppearance, CardProps, CardPlatform };
@@ -30,7 +30,17 @@ export interface CardProps extends WithAnalyticsEventsProps {
30
30
  data?: any;
31
31
  url?: string;
32
32
  testId?: string;
33
+ /**
34
+ * Show client actions, e.g. preview, download, etc.
35
+ * These actions do not change the link resource.
36
+ */
33
37
  showActions?: boolean;
38
+ /**
39
+ * @todo This is an experiment prop and the development is in-progress.
40
+ * @see ATLAS-13099
41
+ * Show server actions that change the link resource, e.g. update status.
42
+ */
43
+ showServerActions?: boolean;
34
44
  onResolve?: OnResolveCallback;
35
45
  onError?: OnErrorCallback;
36
46
  /** This props determines if dimensions of an embed card are to be inherited from the parent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "25.0.6",
3
+ "version": "25.1.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/analytics-next": "^9.0.0",
27
27
  "@atlaskit/avatar": "^21.2.0",
28
28
  "@atlaskit/avatar-group": "^9.2.0",
29
- "@atlaskit/button": "^16.5.0",
29
+ "@atlaskit/button": "^16.6.0",
30
30
  "@atlaskit/dropdown-menu": "^11.7.0",
31
31
  "@atlaskit/icon": "^21.11.0",
32
32
  "@atlaskit/icon-file-type": "^6.3.0",
@@ -36,12 +36,12 @@
36
36
  "@atlaskit/linking-common": "^2.2.0",
37
37
  "@atlaskit/logo": "^13.11.0",
38
38
  "@atlaskit/lozenge": "^11.3.0",
39
- "@atlaskit/media-common": "^3.0.0",
39
+ "@atlaskit/media-common": "^4.0.0",
40
40
  "@atlaskit/modal-dialog": "^12.4.0",
41
41
  "@atlaskit/outbound-auth-flow-client": "^3.3.0",
42
42
  "@atlaskit/popup": "^1.5.0",
43
43
  "@atlaskit/spinner": "^15.4.0",
44
- "@atlaskit/theme": "^12.2.0",
44
+ "@atlaskit/theme": "^12.3.0",
45
45
  "@atlaskit/tokens": "^1.2.0",
46
46
  "@atlaskit/tooltip": "^17.7.0",
47
47
  "@atlaskit/ufo": "^0.1.0",
@@ -50,7 +50,7 @@
50
50
  "@emotion/styled": "^11.0.0",
51
51
  "@formatjs/intl-utils": "^3.8.4",
52
52
  "facepaint": "^1.2.1",
53
- "json-ld-types": "3.2.0",
53
+ "json-ld-types": "3.4.0",
54
54
  "react-error-boundary": "^3.1.3",
55
55
  "react-lazily-render": "^1.2.0",
56
56
  "react-loadable": "^5.1.0",
@@ -58,7 +58,7 @@
58
58
  "uuid": "^3.1.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@atlaskit/link-provider": "^1.5.0",
61
+ "@atlaskit/link-provider": "^1.5.1",
62
62
  "react": "^16.8.0",
63
63
  "react-dom": "^16.8.0",
64
64
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -72,10 +72,10 @@
72
72
  "@atlaskit/field-base": "^15.0.6",
73
73
  "@atlaskit/form": "^8.8.0",
74
74
  "@atlaskit/inline-message": "^11.4.0",
75
- "@atlaskit/link-test-helpers": "^2.1.0",
75
+ "@atlaskit/link-test-helpers": "^2.2.0",
76
76
  "@atlaskit/lozenge": "^11.3.0",
77
77
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
78
- "@atlaskit/media-test-helpers": "^30.1.0",
78
+ "@atlaskit/media-test-helpers": "^31.0.0",
79
79
  "@atlaskit/page": "^12.2.0",
80
80
  "@atlaskit/radio": "^5.4.0",
81
81
  "@atlaskit/range": "^7.0.0",
package/report.api.md CHANGED
@@ -257,6 +257,7 @@ export const Card: React_2.ForwardRefExoticComponent<
257
257
  | 'showActions'
258
258
  | 'showAuthTooltip'
259
259
  | 'showHoverPreview'
260
+ | 'showServerActions'
260
261
  | 'testId'
261
262
  | 'ui'
262
263
  | 'url'
@@ -315,12 +316,12 @@ export interface CardProps extends WithAnalyticsEventsProps {
315
316
  placeholder?: string;
316
317
  // (undocumented)
317
318
  platform?: CardPlatform;
318
- // (undocumented)
319
319
  showActions?: boolean;
320
320
  // (undocumented)
321
321
  showAuthTooltip?: boolean;
322
322
  // (undocumented)
323
323
  showHoverPreview?: boolean;
324
+ showServerActions?: boolean;
324
325
  // (undocumented)
325
326
  testId?: string;
326
327
  // (undocumented)
@@ -1221,7 +1222,7 @@ type VoteCount = {
1221
1222
 
1222
1223
  ```json
1223
1224
  {
1224
- "@atlaskit/link-provider": "^1.5.0",
1225
+ "@atlaskit/link-provider": "^1.5.1",
1225
1226
  "react": "^16.8.0",
1226
1227
  "react-dom": "^16.8.0",
1227
1228
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -178,7 +178,7 @@ type BlockProps = {
178
178
  };
179
179
 
180
180
  // @public (undocumented)
181
- export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "forwardedRef" | "frameStyle" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showAuthTooltip" | "showHoverPreview" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
181
+ export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "forwardedRef" | "frameStyle" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showAuthTooltip" | "showHoverPreview" | "showServerActions" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
182
182
 
183
183
  export { CardAdf }
184
184
 
@@ -227,12 +227,12 @@ export interface CardProps extends WithAnalyticsEventsProps {
227
227
  placeholder?: string;
228
228
  // (undocumented)
229
229
  platform?: CardPlatform;
230
- // (undocumented)
231
230
  showActions?: boolean;
232
231
  // (undocumented)
233
232
  showAuthTooltip?: boolean;
234
233
  // (undocumented)
235
234
  showHoverPreview?: boolean;
235
+ showServerActions?: boolean;
236
236
  // (undocumented)
237
237
  testId?: string;
238
238
  // (undocumented)
@@ -1,26 +0,0 @@
1
- /// <reference types="jest" />
2
- interface MockEntry {
3
- isIntersecting: boolean;
4
- }
5
- export interface MockIntersectionObserverOpts {
6
- getMockEntries: () => MockEntry[];
7
- disconnect: jest.Mock;
8
- takeRecords?: jest.Mock;
9
- unobserve?: jest.Mock;
10
- }
11
- export declare const MockIntersectionObserverFactory: (mockIntersectionObserverOpts: MockIntersectionObserverOpts) => {
12
- new (callback: IntersectionObserverCallback): {
13
- readonly root: Element | null;
14
- readonly rootMargin: string;
15
- readonly thresholds: ReadonlyArray<number>;
16
- previousMockEntries: MockEntry[];
17
- callback: IntersectionObserverCallback;
18
- observe(_element: HTMLElement): void;
19
- callIntersectionObserverCallback: () => void;
20
- checkIntersection: () => void;
21
- disconnect: jest.Mock<any, any>;
22
- takeRecords: jest.Mock<any, any>;
23
- unobserve: jest.Mock<any, any>;
24
- };
25
- };
26
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="jest" />
2
- export declare class MockIntersectionObserver implements IntersectionObserver {
3
- callback: IntersectionObserverCallback;
4
- readonly root: Element | null;
5
- readonly rootMargin: string;
6
- readonly thresholds: ReadonlyArray<number>;
7
- constructor(callback: IntersectionObserverCallback);
8
- observe(_element: HTMLElement): void;
9
- disconnect: jest.Mock<any, any>;
10
- takeRecords: jest.Mock<any, any>;
11
- unobserve: jest.Mock<any, any>;
12
- }