@atlaskit/smart-card 38.13.2 → 38.13.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 38.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#163479](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163479)
8
+ [`3b6570ecd2555`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b6570ecd2555) -
9
+ Clean up FG platform_bandicoots-smart-card-disable-aria
10
+ - Updated dependencies
11
+
3
12
  ## 38.13.2
4
13
 
5
14
  ### Patch Changes
@@ -360,14 +360,6 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
360
360
  defaultMessage: 'More actions',
361
361
  description: 'Allows the users to see more link actions'
362
362
  },
363
- /**
364
- * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
365
- */
366
- more_information_about_this_work_item: {
367
- id: 'fabric.linking.more_information_about_this_work_item',
368
- defaultMessage: 'More information about this work item',
369
- description: 'Allows the users to see more about the work item'
370
- },
371
363
  open_issue_in_jira: {
372
364
  id: 'fabric.linking.open_issue_in_jira',
373
365
  defaultMessage: 'Open issue in Jira',
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "38.13.1"
14
+ packageVersion: "38.13.2"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -10,11 +10,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _reactIntlNext = require("react-intl-next");
14
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
16
15
  var _constants = require("../../../constants");
17
- var _messages = require("../../../messages");
18
16
  var _actions = require("../../../state/actions");
19
17
  var _renderers = require("../../../state/renderers");
20
18
  var _store = require("../../../state/store");
@@ -48,9 +46,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
48
46
  hoverPreviewOptions = _ref.hoverPreviewOptions,
49
47
  role = _ref.role,
50
48
  label = _ref.label,
51
- titleId = _ref.titleId,
52
- _ref$showLabel = _ref.showLabel,
53
- showLabel = _ref$showLabel === void 0 ? true : _ref$showLabel;
49
+ titleId = _ref.titleId;
54
50
  var fadeInDelay = (_hoverPreviewOptions$ = hoverPreviewOptions === null || hoverPreviewOptions === void 0 ? void 0 : hoverPreviewOptions.fadeInDelay) !== null && _hoverPreviewOptions$ !== void 0 ? _hoverPreviewOptions$ : FADE_IN_DELAY;
55
51
  var _React$useState = _react.default.useState(false),
56
52
  _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
@@ -62,8 +58,6 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
62
58
  var mousePos = (0, _react.useRef)();
63
59
  var popupOffset = (0, _react.useRef)();
64
60
  var parentSpan = (0, _react.useRef)(null);
65
- var _useIntl = (0, _reactIntlNext.useIntl)(),
66
- formatMessage = _useIntl.formatMessage;
67
61
  var renderers = (0, _renderers.useSmartLinkRenderers)();
68
62
  var linkState = (0, _store.useSmartCardState)(url);
69
63
  var _useSmartCardActions = (0, _actions.useSmartCardActions)(id, url),
@@ -220,12 +214,10 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
220
214
  onClick: onChildClick,
221
215
  onContextMenu: onContextMenuClick,
222
216
  "data-testid": "hover-card-trigger-wrapper"
223
- }, !(0, _platformFeatureFlags.fg)('platform_bandicoots-smart-card-disable-aria') ? {
224
- 'aria-label': showLabel ? formatMessage(_messages.messages.more_information_about_this_work_item) : undefined
225
- } : {}, (0, _platformFeatureFlags.fg)('fix_a11y_violation_in_hover_card_trigger') ? {
217
+ }, (0, _platformFeatureFlags.fg)('fix_a11y_violation_in_hover_card_trigger') ? {
226
218
  role: 'button'
227
219
  } : {}), children));
228
- }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
220
+ }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
229
221
  return /*#__PURE__*/_react.default.createElement(_popup.default, {
230
222
  testId: "hover-card",
231
223
  isOpen: isOpen && canOpen,
@@ -93,14 +93,12 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
93
93
  type: type
94
94
  })), this.renderLozenge());
95
95
  if (showHoverPreview && link) {
96
- return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, (0, _extends2.default)({
96
+ return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, {
97
97
  id: id,
98
98
  url: link,
99
99
  actionOptions: actionOptions,
100
100
  hoverPreviewOptions: hoverPreviewOptions
101
- }, !(0, _platformFeatureFlags.fg)('platform_bandicoots-smart-card-disable-aria') ? {
102
- showLabel: false
103
- } : {}), inlineCardResolvedView);
101
+ }, inlineCardResolvedView);
104
102
  }
105
103
  return inlineCardResolvedView;
106
104
  }
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "38.13.1",
23
+ packageVersion: "38.13.2",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -354,14 +354,6 @@ export const messages = defineMessages({
354
354
  defaultMessage: 'More actions',
355
355
  description: 'Allows the users to see more link actions'
356
356
  },
357
- /**
358
- * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
359
- */
360
- more_information_about_this_work_item: {
361
- id: 'fabric.linking.more_information_about_this_work_item',
362
- defaultMessage: 'More information about this work item',
363
- description: 'Allows the users to see more about the work item'
364
- },
365
357
  open_issue_in_jira: {
366
358
  id: 'fabric.linking.open_issue_in_jira',
367
359
  defaultMessage: 'Open issue in Jira',
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "38.13.1"
5
+ packageVersion: "38.13.2"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,10 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useEffect, useRef } from 'react';
3
- import { useIntl } from 'react-intl-next';
4
3
  import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import Popup from '@atlaskit/popup';
6
5
  import { ActionName, CardDisplay } from '../../../constants';
7
- import { messages } from '../../../messages';
8
6
  import { useSmartCardActions } from '../../../state/actions';
9
7
  import { useSmartLinkRenderers } from '../../../state/renderers';
10
8
  import { useSmartCardState as useLinkState } from '../../../state/store';
@@ -29,8 +27,7 @@ export const HoverCardComponent = ({
29
27
  hoverPreviewOptions,
30
28
  role,
31
29
  label,
32
- titleId,
33
- showLabel = true
30
+ titleId
34
31
  }) => {
35
32
  var _hoverPreviewOptions$;
36
33
  const fadeInDelay = (_hoverPreviewOptions$ = hoverPreviewOptions === null || hoverPreviewOptions === void 0 ? void 0 : hoverPreviewOptions.fadeInDelay) !== null && _hoverPreviewOptions$ !== void 0 ? _hoverPreviewOptions$ : FADE_IN_DELAY;
@@ -41,9 +38,6 @@ export const HoverCardComponent = ({
41
38
  const mousePos = useRef();
42
39
  const popupOffset = useRef();
43
40
  const parentSpan = useRef(null);
44
- const {
45
- formatMessage
46
- } = useIntl();
47
41
  const renderers = useSmartLinkRenderers();
48
42
  const linkState = useLinkState(url);
49
43
  const {
@@ -197,11 +191,9 @@ export const HoverCardComponent = ({
197
191
  onClick: onChildClick,
198
192
  onContextMenu: onContextMenuClick,
199
193
  "data-testid": "hover-card-trigger-wrapper"
200
- }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
201
- 'aria-label': showLabel ? formatMessage(messages.more_information_about_this_work_item) : undefined
202
- } : {}, fg('fix_a11y_violation_in_hover_card_trigger') ? {
194
+ }, fg('fix_a11y_violation_in_hover_card_trigger') ? {
203
195
  role: 'button'
204
- } : {}), children)), [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
196
+ } : {}), children)), [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
205
197
  return /*#__PURE__*/React.createElement(Popup, {
206
198
  testId: "hover-card",
207
199
  isOpen: isOpen && canOpen,
@@ -70,14 +70,12 @@ export class InlineCardResolvedView extends React.Component {
70
70
  type
71
71
  })), this.renderLozenge());
72
72
  if (showHoverPreview && link) {
73
- return /*#__PURE__*/React.createElement(HoverCard, _extends({
73
+ return /*#__PURE__*/React.createElement(HoverCard, {
74
74
  id: id,
75
75
  url: link,
76
76
  actionOptions: actionOptions,
77
77
  hoverPreviewOptions: hoverPreviewOptions
78
- }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
79
- showLabel: false
80
- } : {}), inlineCardResolvedView);
78
+ }, inlineCardResolvedView);
81
79
  }
82
80
  return inlineCardResolvedView;
83
81
  }
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "38.13.1",
13
+ packageVersion: "38.13.2",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -354,14 +354,6 @@ export var messages = defineMessages({
354
354
  defaultMessage: 'More actions',
355
355
  description: 'Allows the users to see more link actions'
356
356
  },
357
- /**
358
- * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
359
- */
360
- more_information_about_this_work_item: {
361
- id: 'fabric.linking.more_information_about_this_work_item',
362
- defaultMessage: 'More information about this work item',
363
- description: 'Allows the users to see more about the work item'
364
- },
365
357
  open_issue_in_jira: {
366
358
  id: 'fabric.linking.open_issue_in_jira',
367
359
  defaultMessage: 'Open issue in Jira',
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "38.13.1"
7
+ packageVersion: "38.13.2"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -3,11 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  var _excluded = ["aria-haspopup", "aria-expanded"];
5
5
  import React, { useCallback, useEffect, useRef } from 'react';
6
- import { useIntl } from 'react-intl-next';
7
6
  import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import Popup from '@atlaskit/popup';
9
8
  import { ActionName, CardDisplay } from '../../../constants';
10
- import { messages } from '../../../messages';
11
9
  import { useSmartCardActions } from '../../../state/actions';
12
10
  import { useSmartLinkRenderers } from '../../../state/renderers';
13
11
  import { useSmartCardState as useLinkState } from '../../../state/store';
@@ -39,9 +37,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
39
37
  hoverPreviewOptions = _ref.hoverPreviewOptions,
40
38
  role = _ref.role,
41
39
  label = _ref.label,
42
- titleId = _ref.titleId,
43
- _ref$showLabel = _ref.showLabel,
44
- showLabel = _ref$showLabel === void 0 ? true : _ref$showLabel;
40
+ titleId = _ref.titleId;
45
41
  var fadeInDelay = (_hoverPreviewOptions$ = hoverPreviewOptions === null || hoverPreviewOptions === void 0 ? void 0 : hoverPreviewOptions.fadeInDelay) !== null && _hoverPreviewOptions$ !== void 0 ? _hoverPreviewOptions$ : FADE_IN_DELAY;
46
42
  var _React$useState = React.useState(false),
47
43
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -53,8 +49,6 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
53
49
  var mousePos = useRef();
54
50
  var popupOffset = useRef();
55
51
  var parentSpan = useRef(null);
56
- var _useIntl = useIntl(),
57
- formatMessage = _useIntl.formatMessage;
58
52
  var renderers = useSmartLinkRenderers();
59
53
  var linkState = useLinkState(url);
60
54
  var _useSmartCardActions = useSmartCardActions(id, url),
@@ -211,12 +205,10 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
211
205
  onClick: onChildClick,
212
206
  onContextMenu: onContextMenuClick,
213
207
  "data-testid": "hover-card-trigger-wrapper"
214
- }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
215
- 'aria-label': showLabel ? formatMessage(messages.more_information_about_this_work_item) : undefined
216
- } : {}, fg('fix_a11y_violation_in_hover_card_trigger') ? {
208
+ }, fg('fix_a11y_violation_in_hover_card_trigger') ? {
217
209
  role: 'button'
218
210
  } : {}), children));
219
- }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
211
+ }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
220
212
  return /*#__PURE__*/React.createElement(Popup, {
221
213
  testId: "hover-card",
222
214
  isOpen: isOpen && canOpen,
@@ -86,14 +86,12 @@ export var InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
86
86
  type: type
87
87
  })), this.renderLozenge());
88
88
  if (showHoverPreview && link) {
89
- return /*#__PURE__*/React.createElement(HoverCard, _extends({
89
+ return /*#__PURE__*/React.createElement(HoverCard, {
90
90
  id: id,
91
91
  url: link,
92
92
  actionOptions: actionOptions,
93
93
  hoverPreviewOptions: hoverPreviewOptions
94
- }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
95
- showLabel: false
96
- } : {}), inlineCardResolvedView);
94
+ }, inlineCardResolvedView);
97
95
  }
98
96
  return inlineCardResolvedView;
99
97
  }
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "38.13.1",
16
+ packageVersion: "38.13.2",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type HoverCardComponentProps } from '../types';
3
3
  export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
4
- export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, showLabel, }: HoverCardComponentProps) => React.JSX.Element;
4
+ export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => React.JSX.Element;
@@ -74,11 +74,6 @@ export interface HoverCardInternalProps {
74
74
  * Suspend hover card UI delays (fade-in, fade-out) for VR testing purposes.
75
75
  */
76
76
  noFadeDelay?: boolean;
77
- /**
78
- * A flag to determine whether to show aria-label
79
- * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
80
- */
81
- showLabel?: boolean;
82
77
  }
83
78
  export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
84
79
  analyticsHandler?: AnalyticsHandler;
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_title' | 'related_links_modal_error_message' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type HoverCardComponentProps } from '../types';
3
3
  export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
4
- export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, showLabel, }: HoverCardComponentProps) => React.JSX.Element;
4
+ export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => React.JSX.Element;
@@ -74,11 +74,6 @@ export interface HoverCardInternalProps {
74
74
  * Suspend hover card UI delays (fade-in, fade-out) for VR testing purposes.
75
75
  */
76
76
  noFadeDelay?: boolean;
77
- /**
78
- * A flag to determine whether to show aria-label
79
- * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
80
- */
81
- showLabel?: boolean;
82
77
  }
83
78
  export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
84
79
  analyticsHandler?: AnalyticsHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.13.2",
3
+ "version": "38.13.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -209,9 +209,6 @@
209
209
  "fix_a11y_violation_in_hover_card_trigger": {
210
210
  "type": "boolean"
211
211
  },
212
- "platform_bandicoots-smart-card-disable-aria": {
213
- "type": "boolean"
214
- },
215
212
  "platform_smart_links_controlled_dsp_export_view": {
216
213
  "type": "boolean"
217
214
  },