@atlaskit/smart-card 36.14.0 → 36.15.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/messages.js +3 -0
  3. package/dist/cjs/utils/analytics/analytics.js +1 -1
  4. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +16 -6
  5. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +6 -2
  6. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +11 -0
  7. package/dist/cjs/view/FlexibleCard/external.js +22 -4
  8. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +4 -3
  9. package/dist/cjs/view/InlineCard/ResolvedView/index.js +4 -3
  10. package/dist/cjs/view/LinkUrl/index.js +1 -1
  11. package/dist/es2019/messages.js +3 -0
  12. package/dist/es2019/utils/analytics/analytics.js +1 -1
  13. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +15 -6
  14. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +5 -2
  15. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +11 -0
  16. package/dist/es2019/view/FlexibleCard/external.js +27 -3
  17. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +4 -3
  18. package/dist/es2019/view/InlineCard/ResolvedView/index.js +4 -3
  19. package/dist/es2019/view/LinkUrl/index.js +1 -1
  20. package/dist/esm/messages.js +3 -0
  21. package/dist/esm/utils/analytics/analytics.js +1 -1
  22. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +16 -6
  23. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +6 -2
  24. package/dist/esm/view/FlexibleCard/components/elements/utils.js +11 -0
  25. package/dist/esm/view/FlexibleCard/external.js +22 -4
  26. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +4 -3
  27. package/dist/esm/view/InlineCard/ResolvedView/index.js +4 -3
  28. package/dist/esm/view/LinkUrl/index.js +1 -1
  29. package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
  30. package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
  31. package/dist/types/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
  32. package/dist/types/view/FlexibleCard/components/elements/text/types.d.ts +6 -1
  33. package/dist/types/view/FlexibleCard/external.d.ts +12 -3
  34. package/dist/types/view/HoverCard/types.d.ts +1 -0
  35. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
  36. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
  37. package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
  38. package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/types.d.ts +6 -1
  39. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +12 -3
  40. package/dist/types-ts4.5/view/HoverCard/types.d.ts +1 -0
  41. package/package.json +8 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 36.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#148527](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148527)
8
+ [`6b0ed86beb49d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b0ed86beb49d) -
9
+ Add props to exported flexible card elements to increase flexibility
10
+
11
+ ### Patch Changes
12
+
13
+ - [#149967](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149967)
14
+ [`36c2c5587b7b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36c2c5587b7b0) -
15
+ [ux] Remove unnecessary aria-label behind FG platform_bandicoots-smart-card-disable-aria
16
+ - Updated dependencies
17
+
3
18
  ## 36.14.0
4
19
 
5
20
  ### Minor Changes
@@ -360,6 +360,9 @@ 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
+ */
363
366
  more_information_about_this_work_item: {
364
367
  id: 'fabric.linking.more_information_about_this_work_item',
365
368
  defaultMessage: 'More information about this work item',
@@ -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: "36.14.0"
14
+ packageVersion: "36.15.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -50,7 +50,9 @@ var DateTime = function DateTime(_ref) {
50
50
  type = _ref.type,
51
51
  _ref$testId = _ref.testId,
52
52
  testId = _ref$testId === void 0 ? 'smart-element-date-time' : _ref$testId,
53
- text = _ref.text;
53
+ text = _ref.text,
54
+ _ref$hideDatePrefix = _ref.hideDatePrefix,
55
+ hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix;
54
56
  var _useIntl = (0, _reactIntlNext.useIntl)(),
55
57
  formatRelativeTime = _useIntl.formatRelativeTime,
56
58
  formatDate = _useIntl.formatDate;
@@ -76,6 +78,18 @@ var DateTime = function DateTime(_ref) {
76
78
  numeric: 'auto'
77
79
  });
78
80
  }
81
+ var content;
82
+ if (hideDatePrefix && (0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
83
+ content = context;
84
+ } else if (text) {
85
+ content = "".concat(text, " ").concat(context);
86
+ } else {
87
+ content = /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, typeToDescriptorMap[type][typeVariant], {
88
+ values: {
89
+ context: context
90
+ }
91
+ }));
92
+ }
79
93
  return /*#__PURE__*/React.createElement("span", {
80
94
  "data-separator": true,
81
95
  "data-smart-element": name,
@@ -84,10 +98,6 @@ var DateTime = function DateTime(_ref) {
84
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
85
99
  ,
86
100
  className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", className])
87
- }, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, typeToDescriptorMap[type][typeVariant], {
88
- values: {
89
- context: context
90
- }
91
- })));
101
+ }, content);
92
102
  };
93
103
  var _default = exports.default = DateTime;
@@ -31,11 +31,15 @@ var Text = function Text(_ref) {
31
31
  name = _ref.name,
32
32
  className = _ref.className,
33
33
  _ref$testId = _ref.testId,
34
- testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId;
34
+ testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId,
35
+ _ref$hideFormat = _ref.hideFormat,
36
+ hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat;
35
37
  if (!message && !content) {
36
38
  return null;
37
39
  }
38
40
  var dynamicCss = null;
41
+ var newContent = hideFormat && content ? content : (0, _utils.getFormattedMessage)(message) || content;
42
+ var oldContent = (0, _utils.getFormattedMessage)(message) || content;
39
43
  return /*#__PURE__*/React.createElement("span", {
40
44
  "data-separator": true,
41
45
  "data-smart-element": name,
@@ -48,6 +52,6 @@ var Text = function Text(_ref) {
48
52
  "--_1erfju8": (0, _runtime.ix)(maxLines),
49
53
  "--_ohw86c": (0, _runtime.ix)("calc(".concat(maxLines, " * 1rem)"))
50
54
  }
51
- }, (0, _utils.getFormattedMessage)(message) || content);
55
+ }, (0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props') ? newContent : oldContent);
52
56
  };
53
57
  var _default = exports.default = Text;
@@ -238,6 +238,17 @@ var toDateTimeProps = function toDateTimeProps(type, dateString) {
238
238
  } : undefined;
239
239
  };
240
240
  var toFormattedTextProps = function toFormattedTextProps(descriptor, context) {
241
+ if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
242
+ return context ? {
243
+ message: {
244
+ descriptor: descriptor,
245
+ values: {
246
+ context: context
247
+ }
248
+ },
249
+ content: context
250
+ } : undefined;
251
+ }
241
252
  return context ? {
242
253
  message: {
243
254
  descriptor: descriptor,
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.toActionProps = exports.VoteCountElement = exports.ViewCountElement = exports.UnresolvedAction = exports.TitleElement = exports.TargetBranchElement = exports.SubscriberCountElement = exports.SubTasksProgressElement = exports.StoryPointsElement = exports.StateElement = exports.SourceBranchElement = exports.SnippetElement = exports.SentOnElement = exports.ReadTimeElement = exports.ReactCountElement = exports.ProviderElement = exports.ProgrammingLanguageElement = exports.PriorityElement = exports.PreviewElement = exports.PreviewAction = exports.OwnedByGroupElement = exports.OwnedByElement = exports.ModifiedOnElement = exports.ModifiedByElement = exports.LocationElement = exports.LinkIconElement = exports.LatestCommitElement = exports.FollowAction = exports.DueOnElement = exports.DownloadAction = exports.CustomAction = exports.CreatedOnElement = exports.CreatedByElement = exports.CopyLinkAction = exports.CommentCountElement = exports.CollaboratorGroupElement = exports.ChecklistProgressElement = exports.AuthorGroupElement = exports.AttachmentCountElement = exports.AssignedToGroupElement = exports.AssignedToElement = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _constants = require("../../constants");
10
12
  var _actions = require("./components/actions");
11
13
  var _elements = require("./components/elements");
12
14
  /**
@@ -52,8 +54,14 @@ var DueOnElement = exports.DueOnElement = function DueOnElement() {
52
54
  var LatestCommitElement = exports.LatestCommitElement = function LatestCommitElement() {
53
55
  return /*#__PURE__*/_react.default.createElement(_elements.LatestCommit, null);
54
56
  };
55
- var LinkIconElement = exports.LinkIconElement = function LinkIconElement() {
56
- return /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, null);
57
+ var LinkIconElement = exports.LinkIconElement = function LinkIconElement(props) {
58
+ if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
59
+ return /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, null);
60
+ }
61
+ return /*#__PURE__*/_react.default.createElement(_elements.LinkIcon, {
62
+ size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? _constants.SmartLinkSize.Large : _constants.SmartLinkSize.Medium,
63
+ render: props === null || props === void 0 ? void 0 : props.render
64
+ });
57
65
  };
58
66
  var LocationElement = exports.LocationElement = function LocationElement() {
59
67
  return /*#__PURE__*/_react.default.createElement(_elements.Location, null);
@@ -61,10 +69,20 @@ var LocationElement = exports.LocationElement = function LocationElement() {
61
69
  var ModifiedByElement = exports.ModifiedByElement = function ModifiedByElement() {
62
70
  return /*#__PURE__*/_react.default.createElement(_elements.ModifiedBy, null);
63
71
  };
64
- var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement() {
72
+ var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(props) {
73
+ if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
74
+ return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, {
75
+ hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
76
+ });
77
+ }
65
78
  return /*#__PURE__*/_react.default.createElement(_elements.ModifiedOn, null);
66
79
  };
67
- var OwnedByElement = exports.OwnedByElement = function OwnedByElement() {
80
+ var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
81
+ if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
82
+ return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, {
83
+ hideFormat: props === null || props === void 0 ? void 0 : props.hidePrefix
84
+ });
85
+ }
68
86
  return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, null);
69
87
  };
70
88
  var OwnedByGroupElement = exports.OwnedByGroupElement = function OwnedByGroupElement() {
@@ -220,9 +220,10 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
220
220
  onMouseMove: setMousePosition,
221
221
  onClick: onChildClick,
222
222
  onContextMenu: onContextMenuClick,
223
- "data-testid": "hover-card-trigger-wrapper",
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') ? {
223
+ "data-testid": "hover-card-trigger-wrapper"
224
+ }, !(0, _platformFeatureFlags.fg)('platform_bandicoots-smart-card-disable-aria') ? {
225
+ 'aria-label': showLabel ? formatMessage(_messages.messages.more_information_about_this_work_item) : undefined
226
+ } : {}, (0, _platformFeatureFlags.fg)('fix_a11y_violation_in_hover_card_trigger') ? {
226
227
  role: 'button'
227
228
  } : {}), children));
228
229
  }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
@@ -80,13 +80,14 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
80
80
  type: type
81
81
  })), this.renderLozenge());
82
82
  if (showHoverPreview && link) {
83
- return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, {
83
+ return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, (0, _extends2.default)({
84
84
  id: id,
85
85
  url: link,
86
86
  actionOptions: actionOptions,
87
- hoverPreviewOptions: hoverPreviewOptions,
87
+ hoverPreviewOptions: hoverPreviewOptions
88
+ }, !(0, _platformFeatureFlags.fg)('platform_bandicoots-smart-card-disable-aria') ? {
88
89
  showLabel: false
89
- }, inlineCardResolvedView);
90
+ } : {}), inlineCardResolvedView);
90
91
  }
91
92
  return inlineCardResolvedView;
92
93
  }
@@ -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: "36.14.0",
23
+ packageVersion: "36.15.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -354,6 +354,9 @@ 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
+ */
357
360
  more_information_about_this_work_item: {
358
361
  id: 'fabric.linking.more_information_about_this_work_item',
359
362
  defaultMessage: 'More information about this work item',
@@ -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: "36.14.0"
5
+ packageVersion: "36.15.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -39,7 +39,8 @@ const DateTime = ({
39
39
  className,
40
40
  type,
41
41
  testId = 'smart-element-date-time',
42
- text
42
+ text,
43
+ hideDatePrefix = false
43
44
  }) => {
44
45
  const {
45
46
  formatRelativeTime,
@@ -68,6 +69,18 @@ const DateTime = ({
68
69
  numeric: 'auto'
69
70
  });
70
71
  }
72
+ let content;
73
+ if (hideDatePrefix && fg('platform-linking-additional-flexible-element-props')) {
74
+ content = context;
75
+ } else if (text) {
76
+ content = `${text} ${context}`;
77
+ } else {
78
+ content = /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
79
+ values: {
80
+ context
81
+ }
82
+ }));
83
+ }
71
84
  return /*#__PURE__*/React.createElement("span", {
72
85
  "data-separator": true,
73
86
  "data-smart-element": name,
@@ -76,10 +89,6 @@ const DateTime = ({
76
89
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
77
90
  ,
78
91
  className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", className])
79
- }, text ? `${text} ${context}` : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
80
- values: {
81
- context
82
- }
83
- })));
92
+ }, content);
84
93
  };
85
94
  export default DateTime;
@@ -20,12 +20,15 @@ const Text = ({
20
20
  message,
21
21
  name,
22
22
  className,
23
- testId = 'smart-element-text'
23
+ testId = 'smart-element-text',
24
+ hideFormat = false
24
25
  }) => {
25
26
  if (!message && !content) {
26
27
  return null;
27
28
  }
28
29
  const dynamicCss = null;
30
+ const newContent = hideFormat && content ? content : getFormattedMessage(message) || content;
31
+ const oldContent = getFormattedMessage(message) || content;
29
32
  return /*#__PURE__*/React.createElement("span", {
30
33
  "data-separator": true,
31
34
  "data-smart-element": name,
@@ -37,6 +40,6 @@ const Text = ({
37
40
  style: {
38
41
  "--_1erfju8": ix(maxLines)
39
42
  }
40
- }, getFormattedMessage(message) || content);
43
+ }, fg('platform-linking-additional-flexible-element-props') ? newContent : oldContent);
41
44
  };
42
45
  export default Text;
@@ -258,6 +258,17 @@ const toDateTimeProps = (type, dateString) => {
258
258
  } : undefined;
259
259
  };
260
260
  const toFormattedTextProps = (descriptor, context) => {
261
+ if (fg('platform-linking-additional-flexible-element-props')) {
262
+ return context ? {
263
+ message: {
264
+ descriptor,
265
+ values: {
266
+ context
267
+ }
268
+ },
269
+ content: context
270
+ } : undefined;
271
+ }
261
272
  return context ? {
262
273
  message: {
263
274
  descriptor,
@@ -8,6 +8,8 @@ import _extends from "@babel/runtime/helpers/extends";
8
8
  * DO NOT add a new prop to these components until we are ready to support it externally.
9
9
  */
10
10
  import React from 'react';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { SmartLinkSize } from '../../constants';
11
13
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
12
14
  import { AssignedTo, AssignedToGroup, AttachmentCount, AuthorGroup, ChecklistProgress, CollaboratorGroup, CommentCount, CreatedBy, CreatedOn, DueOn, LatestCommit, LinkIcon, Location, ModifiedBy, ModifiedOn, OwnedBy, OwnedByGroup, Preview, Priority, ProgrammingLanguage, Provider, ReactCount, ReadTime, SentOn, Snippet, SourceBranch, State, StoryPoints, SubscriberCount, SubTasksProgress, TargetBranch, Title, ViewCount, VoteCount } from './components/elements';
13
15
  // ---- EXPORTED METADATA COMPONENT ---- //
@@ -22,11 +24,33 @@ export const CreatedOnElement = () => /*#__PURE__*/React.createElement(CreatedOn
22
24
  export const CreatedByElement = () => /*#__PURE__*/React.createElement(CreatedBy, null);
23
25
  export const DueOnElement = () => /*#__PURE__*/React.createElement(DueOn, null);
24
26
  export const LatestCommitElement = () => /*#__PURE__*/React.createElement(LatestCommit, null);
25
- export const LinkIconElement = () => /*#__PURE__*/React.createElement(LinkIcon, null);
27
+ export const LinkIconElement = props => {
28
+ if (fg('platform-linking-additional-flexible-element-props')) {
29
+ return /*#__PURE__*/React.createElement(LinkIcon, null);
30
+ }
31
+ return /*#__PURE__*/React.createElement(LinkIcon, {
32
+ size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? SmartLinkSize.Large : SmartLinkSize.Medium,
33
+ render: props === null || props === void 0 ? void 0 : props.render
34
+ });
35
+ };
26
36
  export const LocationElement = () => /*#__PURE__*/React.createElement(Location, null);
27
37
  export const ModifiedByElement = () => /*#__PURE__*/React.createElement(ModifiedBy, null);
28
- export const ModifiedOnElement = () => /*#__PURE__*/React.createElement(ModifiedOn, null);
29
- export const OwnedByElement = () => /*#__PURE__*/React.createElement(OwnedBy, null);
38
+ export const ModifiedOnElement = props => {
39
+ if (fg('platform-linking-additional-flexible-element-props')) {
40
+ return /*#__PURE__*/React.createElement(ModifiedOn, {
41
+ hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
42
+ });
43
+ }
44
+ return /*#__PURE__*/React.createElement(ModifiedOn, null);
45
+ };
46
+ export const OwnedByElement = props => {
47
+ if (fg('platform-linking-additional-flexible-element-props')) {
48
+ return /*#__PURE__*/React.createElement(OwnedBy, {
49
+ hideFormat: props === null || props === void 0 ? void 0 : props.hidePrefix
50
+ });
51
+ }
52
+ return /*#__PURE__*/React.createElement(OwnedBy, null);
53
+ };
30
54
  export const OwnedByGroupElement = () => /*#__PURE__*/React.createElement(OwnedByGroup, null);
31
55
  export const PreviewElement = () => /*#__PURE__*/React.createElement(Preview, null);
32
56
  export const PriorityElement = () => /*#__PURE__*/React.createElement(Priority, null);
@@ -196,9 +196,10 @@ export const HoverCardComponent = ({
196
196
  onMouseMove: setMousePosition,
197
197
  onClick: onChildClick,
198
198
  onContextMenu: onContextMenuClick,
199
- "data-testid": "hover-card-trigger-wrapper",
200
- "aria-label": showLabel ? formatMessage(messages.more_information_about_this_work_item) : undefined
201
- }, fg('fix_a11y_violation_in_hover_card_trigger') ? {
199
+ "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') ? {
202
203
  role: 'button'
203
204
  } : {}), children)), [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
204
205
  return /*#__PURE__*/React.createElement(Popup, {
@@ -57,13 +57,14 @@ export class InlineCardResolvedView extends React.Component {
57
57
  type
58
58
  })), this.renderLozenge());
59
59
  if (showHoverPreview && link) {
60
- return /*#__PURE__*/React.createElement(HoverCard, {
60
+ return /*#__PURE__*/React.createElement(HoverCard, _extends({
61
61
  id: id,
62
62
  url: link,
63
63
  actionOptions: actionOptions,
64
- hoverPreviewOptions: hoverPreviewOptions,
64
+ hoverPreviewOptions: hoverPreviewOptions
65
+ }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
65
66
  showLabel: false
66
- }, inlineCardResolvedView);
67
+ } : {}), inlineCardResolvedView);
67
68
  }
68
69
  return inlineCardResolvedView;
69
70
  }
@@ -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: "36.14.0",
13
+ packageVersion: "36.15.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -354,6 +354,9 @@ 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
+ */
357
360
  more_information_about_this_work_item: {
358
361
  id: 'fabric.linking.more_information_about_this_work_item',
359
362
  defaultMessage: 'More information about this work item',
@@ -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: "36.14.0"
7
+ packageVersion: "36.15.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -40,7 +40,9 @@ var DateTime = function DateTime(_ref) {
40
40
  type = _ref.type,
41
41
  _ref$testId = _ref.testId,
42
42
  testId = _ref$testId === void 0 ? 'smart-element-date-time' : _ref$testId,
43
- text = _ref.text;
43
+ text = _ref.text,
44
+ _ref$hideDatePrefix = _ref.hideDatePrefix,
45
+ hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix;
44
46
  var _useIntl = useIntl(),
45
47
  formatRelativeTime = _useIntl.formatRelativeTime,
46
48
  formatDate = _useIntl.formatDate;
@@ -66,6 +68,18 @@ var DateTime = function DateTime(_ref) {
66
68
  numeric: 'auto'
67
69
  });
68
70
  }
71
+ var content;
72
+ if (hideDatePrefix && fg('platform-linking-additional-flexible-element-props')) {
73
+ content = context;
74
+ } else if (text) {
75
+ content = "".concat(text, " ").concat(context);
76
+ } else {
77
+ content = /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
78
+ values: {
79
+ context: context
80
+ }
81
+ }));
82
+ }
69
83
  return /*#__PURE__*/React.createElement("span", {
70
84
  "data-separator": true,
71
85
  "data-smart-element": name,
@@ -74,10 +88,6 @@ var DateTime = function DateTime(_ref) {
74
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
75
89
  ,
76
90
  className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", className])
77
- }, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
78
- values: {
79
- context: context
80
- }
81
- })));
91
+ }, content);
82
92
  };
83
93
  export default DateTime;
@@ -22,11 +22,15 @@ var Text = function Text(_ref) {
22
22
  name = _ref.name,
23
23
  className = _ref.className,
24
24
  _ref$testId = _ref.testId,
25
- testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId;
25
+ testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId,
26
+ _ref$hideFormat = _ref.hideFormat,
27
+ hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat;
26
28
  if (!message && !content) {
27
29
  return null;
28
30
  }
29
31
  var dynamicCss = null;
32
+ var newContent = hideFormat && content ? content : getFormattedMessage(message) || content;
33
+ var oldContent = getFormattedMessage(message) || content;
30
34
  return /*#__PURE__*/React.createElement("span", {
31
35
  "data-separator": true,
32
36
  "data-smart-element": name,
@@ -39,6 +43,6 @@ var Text = function Text(_ref) {
39
43
  "--_1erfju8": ix(maxLines),
40
44
  "--_ohw86c": ix("calc(".concat(maxLines, " * 1rem)"))
41
45
  }
42
- }, getFormattedMessage(message) || content);
46
+ }, fg('platform-linking-additional-flexible-element-props') ? newContent : oldContent);
43
47
  };
44
48
  export default Text;
@@ -228,6 +228,17 @@ var toDateTimeProps = function toDateTimeProps(type, dateString) {
228
228
  } : undefined;
229
229
  };
230
230
  var toFormattedTextProps = function toFormattedTextProps(descriptor, context) {
231
+ if (fg('platform-linking-additional-flexible-element-props')) {
232
+ return context ? {
233
+ message: {
234
+ descriptor: descriptor,
235
+ values: {
236
+ context: context
237
+ }
238
+ },
239
+ content: context
240
+ } : undefined;
241
+ }
231
242
  return context ? {
232
243
  message: {
233
244
  descriptor: descriptor,
@@ -8,6 +8,8 @@ import _extends from "@babel/runtime/helpers/extends";
8
8
  * DO NOT add a new prop to these components until we are ready to support it externally.
9
9
  */
10
10
  import React from 'react';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { SmartLinkSize } from '../../constants';
11
13
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
12
14
  import { AssignedTo, AssignedToGroup, AttachmentCount, AuthorGroup, ChecklistProgress, CollaboratorGroup, CommentCount, CreatedBy, CreatedOn, DueOn, LatestCommit, LinkIcon, Location, ModifiedBy, ModifiedOn, OwnedBy, OwnedByGroup, Preview, Priority, ProgrammingLanguage, Provider, ReactCount, ReadTime, SentOn, Snippet, SourceBranch, State, StoryPoints, SubscriberCount, SubTasksProgress, TargetBranch, Title, ViewCount, VoteCount } from './components/elements';
13
15
  // ---- EXPORTED METADATA COMPONENT ---- //
@@ -44,8 +46,14 @@ export var DueOnElement = function DueOnElement() {
44
46
  export var LatestCommitElement = function LatestCommitElement() {
45
47
  return /*#__PURE__*/React.createElement(LatestCommit, null);
46
48
  };
47
- export var LinkIconElement = function LinkIconElement() {
48
- return /*#__PURE__*/React.createElement(LinkIcon, null);
49
+ export var LinkIconElement = function LinkIconElement(props) {
50
+ if (fg('platform-linking-additional-flexible-element-props')) {
51
+ return /*#__PURE__*/React.createElement(LinkIcon, null);
52
+ }
53
+ return /*#__PURE__*/React.createElement(LinkIcon, {
54
+ size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? SmartLinkSize.Large : SmartLinkSize.Medium,
55
+ render: props === null || props === void 0 ? void 0 : props.render
56
+ });
49
57
  };
50
58
  export var LocationElement = function LocationElement() {
51
59
  return /*#__PURE__*/React.createElement(Location, null);
@@ -53,10 +61,20 @@ export var LocationElement = function LocationElement() {
53
61
  export var ModifiedByElement = function ModifiedByElement() {
54
62
  return /*#__PURE__*/React.createElement(ModifiedBy, null);
55
63
  };
56
- export var ModifiedOnElement = function ModifiedOnElement() {
64
+ export var ModifiedOnElement = function ModifiedOnElement(props) {
65
+ if (fg('platform-linking-additional-flexible-element-props')) {
66
+ return /*#__PURE__*/React.createElement(ModifiedOn, {
67
+ hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix
68
+ });
69
+ }
57
70
  return /*#__PURE__*/React.createElement(ModifiedOn, null);
58
71
  };
59
- export var OwnedByElement = function OwnedByElement() {
72
+ export var OwnedByElement = function OwnedByElement(props) {
73
+ if (fg('platform-linking-additional-flexible-element-props')) {
74
+ return /*#__PURE__*/React.createElement(OwnedBy, {
75
+ hideFormat: props === null || props === void 0 ? void 0 : props.hidePrefix
76
+ });
77
+ }
60
78
  return /*#__PURE__*/React.createElement(OwnedBy, null);
61
79
  };
62
80
  export var OwnedByGroupElement = function OwnedByGroupElement() {
@@ -210,9 +210,10 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
210
210
  onMouseMove: setMousePosition,
211
211
  onClick: onChildClick,
212
212
  onContextMenu: onContextMenuClick,
213
- "data-testid": "hover-card-trigger-wrapper",
214
- "aria-label": showLabel ? formatMessage(messages.more_information_about_this_work_item) : undefined
215
- }, fg('fix_a11y_violation_in_hover_card_trigger') ? {
213
+ "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') ? {
216
217
  role: 'button'
217
218
  } : {}), children));
218
219
  }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage, showLabel]);
@@ -73,13 +73,14 @@ export var InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
73
73
  type: type
74
74
  })), this.renderLozenge());
75
75
  if (showHoverPreview && link) {
76
- return /*#__PURE__*/React.createElement(HoverCard, {
76
+ return /*#__PURE__*/React.createElement(HoverCard, _extends({
77
77
  id: id,
78
78
  url: link,
79
79
  actionOptions: actionOptions,
80
- hoverPreviewOptions: hoverPreviewOptions,
80
+ hoverPreviewOptions: hoverPreviewOptions
81
+ }, !fg('platform_bandicoots-smart-card-disable-aria') ? {
81
82
  showLabel: false
82
- }, inlineCardResolvedView);
83
+ } : {}), inlineCardResolvedView);
83
84
  }
84
85
  return inlineCardResolvedView;
85
86
  }
@@ -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: "36.14.0",
16
+ packageVersion: "36.15.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -8,5 +8,5 @@ import { type DateTimeProps } from './types';
8
8
  * @see ModifiedOn
9
9
  * @see SentOn
10
10
  */
11
- declare const DateTime: ({ date, name, className, type, testId, text, }: DateTimeProps) => JSX.Element | null;
11
+ declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, }: DateTimeProps) => JSX.Element | null;
12
12
  export default DateTime;
@@ -13,4 +13,8 @@ export type DateTimeProps = ElementProps & {
13
13
  * The override text which will show next to the date
14
14
  */
15
15
  text?: string;
16
+ /**
17
+ * Hide the date prefix (e.g. "Created on", "Modified on", "Sent on")
18
+ */
19
+ hideDatePrefix?: boolean;
16
20
  };
@@ -6,5 +6,5 @@ import { type TextProps } from './types';
6
6
  * @param {TextProps} TextProps - The props necessary for the Text element.
7
7
  * @see Title
8
8
  */
9
- declare const Text: ({ content, maxLines, message, name, className, testId, }: TextProps) => JSX.Element | null;
9
+ declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, }: TextProps) => JSX.Element | null;
10
10
  export default Text;
@@ -3,7 +3,7 @@ import { type ElementProps } from '../types';
3
3
  export type TextProps = ElementProps & {
4
4
  /**
5
5
  * Determines the formatted message (i18n) to display.
6
- * If this is provided, the content prop will not be displayed.
6
+ * If this is provided and hideFormat is false, the content prop will not be displayed.
7
7
  */
8
8
  message?: MessageProps;
9
9
  /**
@@ -14,4 +14,9 @@ export type TextProps = ElementProps & {
14
14
  * The maximum number of lines the text should span over. Maximum is 2 unless its an error message.
15
15
  */
16
16
  maxLines?: number;
17
+ /**
18
+ * Determines whether the text formatting should be hidden when both message and content are provided.
19
+ * If true, content will be displayed instead of the formatted message.
20
+ */
21
+ hideFormat?: boolean;
17
22
  };
@@ -7,6 +7,8 @@
7
7
  * DO NOT add a new prop to these components until we are ready to support it externally.
8
8
  */
9
9
  import React from 'react';
10
+ import { type DateTimeProps } from './components/elements/date-time/types';
11
+ import { type IconProps } from './components/elements/icon/types';
10
12
  import { type LinkProps } from './components/elements/link/types';
11
13
  import { type TextProps } from './components/elements/text/types';
12
14
  export declare const AssignedToElement: () => React.JSX.Element;
@@ -20,11 +22,18 @@ export declare const CreatedOnElement: () => React.JSX.Element;
20
22
  export declare const CreatedByElement: () => React.JSX.Element;
21
23
  export declare const DueOnElement: () => React.JSX.Element;
22
24
  export declare const LatestCommitElement: () => React.JSX.Element;
23
- export declare const LinkIconElement: () => React.JSX.Element;
25
+ type LinkIconElementProps = Pick<IconProps, 'render'> & {
26
+ iconTileSize?: 16 | 24;
27
+ };
28
+ export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
24
29
  export declare const LocationElement: () => React.JSX.Element;
25
30
  export declare const ModifiedByElement: () => React.JSX.Element;
26
- export declare const ModifiedOnElement: () => React.JSX.Element;
27
- export declare const OwnedByElement: () => React.JSX.Element;
31
+ type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
32
+ export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
33
+ type OwnedByElementProps = {
34
+ hidePrefix?: boolean;
35
+ };
36
+ export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
28
37
  export declare const OwnedByGroupElement: () => React.JSX.Element;
29
38
  export declare const PreviewElement: () => React.JSX.Element;
30
39
  export declare const PriorityElement: () => React.JSX.Element;
@@ -76,6 +76,7 @@ export interface HoverCardInternalProps {
76
76
  noFadeDelay?: boolean;
77
77
  /**
78
78
  * A flag to determine whether to show aria-label
79
+ * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
79
80
  */
80
81
  showLabel?: boolean;
81
82
  }
@@ -8,5 +8,5 @@ import { type DateTimeProps } from './types';
8
8
  * @see ModifiedOn
9
9
  * @see SentOn
10
10
  */
11
- declare const DateTime: ({ date, name, className, type, testId, text, }: DateTimeProps) => JSX.Element | null;
11
+ declare const DateTime: ({ date, name, className, type, testId, text, hideDatePrefix, }: DateTimeProps) => JSX.Element | null;
12
12
  export default DateTime;
@@ -13,4 +13,8 @@ export type DateTimeProps = ElementProps & {
13
13
  * The override text which will show next to the date
14
14
  */
15
15
  text?: string;
16
+ /**
17
+ * Hide the date prefix (e.g. "Created on", "Modified on", "Sent on")
18
+ */
19
+ hideDatePrefix?: boolean;
16
20
  };
@@ -6,5 +6,5 @@ import { type TextProps } from './types';
6
6
  * @param {TextProps} TextProps - The props necessary for the Text element.
7
7
  * @see Title
8
8
  */
9
- declare const Text: ({ content, maxLines, message, name, className, testId, }: TextProps) => JSX.Element | null;
9
+ declare const Text: ({ content, maxLines, message, name, className, testId, hideFormat, }: TextProps) => JSX.Element | null;
10
10
  export default Text;
@@ -3,7 +3,7 @@ import { type ElementProps } from '../types';
3
3
  export type TextProps = ElementProps & {
4
4
  /**
5
5
  * Determines the formatted message (i18n) to display.
6
- * If this is provided, the content prop will not be displayed.
6
+ * If this is provided and hideFormat is false, the content prop will not be displayed.
7
7
  */
8
8
  message?: MessageProps;
9
9
  /**
@@ -14,4 +14,9 @@ export type TextProps = ElementProps & {
14
14
  * The maximum number of lines the text should span over. Maximum is 2 unless its an error message.
15
15
  */
16
16
  maxLines?: number;
17
+ /**
18
+ * Determines whether the text formatting should be hidden when both message and content are provided.
19
+ * If true, content will be displayed instead of the formatted message.
20
+ */
21
+ hideFormat?: boolean;
17
22
  };
@@ -7,6 +7,8 @@
7
7
  * DO NOT add a new prop to these components until we are ready to support it externally.
8
8
  */
9
9
  import React from 'react';
10
+ import { type DateTimeProps } from './components/elements/date-time/types';
11
+ import { type IconProps } from './components/elements/icon/types';
10
12
  import { type LinkProps } from './components/elements/link/types';
11
13
  import { type TextProps } from './components/elements/text/types';
12
14
  export declare const AssignedToElement: () => React.JSX.Element;
@@ -20,11 +22,18 @@ export declare const CreatedOnElement: () => React.JSX.Element;
20
22
  export declare const CreatedByElement: () => React.JSX.Element;
21
23
  export declare const DueOnElement: () => React.JSX.Element;
22
24
  export declare const LatestCommitElement: () => React.JSX.Element;
23
- export declare const LinkIconElement: () => React.JSX.Element;
25
+ type LinkIconElementProps = Pick<IconProps, 'render'> & {
26
+ iconTileSize?: 16 | 24;
27
+ };
28
+ export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
24
29
  export declare const LocationElement: () => React.JSX.Element;
25
30
  export declare const ModifiedByElement: () => React.JSX.Element;
26
- export declare const ModifiedOnElement: () => React.JSX.Element;
27
- export declare const OwnedByElement: () => React.JSX.Element;
31
+ type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
32
+ export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
33
+ type OwnedByElementProps = {
34
+ hidePrefix?: boolean;
35
+ };
36
+ export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
28
37
  export declare const OwnedByGroupElement: () => React.JSX.Element;
29
38
  export declare const PreviewElement: () => React.JSX.Element;
30
39
  export declare const PriorityElement: () => React.JSX.Element;
@@ -76,6 +76,7 @@ export interface HoverCardInternalProps {
76
76
  noFadeDelay?: boolean;
77
77
  /**
78
78
  * A flag to determine whether to show aria-label
79
+ * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
79
80
  */
80
81
  showLabel?: boolean;
81
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "36.14.0",
3
+ "version": "36.15.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -96,7 +96,7 @@
96
96
  "@atlaskit/analytics-listeners": "^9.0.0",
97
97
  "@atlaskit/css-reset": "^7.2.0",
98
98
  "@atlaskit/link-test-helpers": "^8.0.0",
99
- "@atlaskit/media-test-helpers": "^35.0.0",
99
+ "@atlaskit/media-test-helpers": "^36.0.0",
100
100
  "@atlaskit/react-ufo": "^3.9.0",
101
101
  "@atlaskit/ssr": "workspace:^",
102
102
  "@atlaskit/visual-regression": "workspace:^",
@@ -212,6 +212,9 @@
212
212
  "fix_a11y_violation_in_hover_card_trigger": {
213
213
  "type": "boolean"
214
214
  },
215
+ "platform_bandicoots-smart-card-disable-aria": {
216
+ "type": "boolean"
217
+ },
215
218
  "platform_smart_links_controlled_dsp_export_view": {
216
219
  "type": "boolean"
217
220
  },
@@ -230,6 +233,9 @@
230
233
  "platform-smart-card-remove-legacy-button": {
231
234
  "type": "boolean",
232
235
  "showOnWebsiteForTransitiveDependencies": true
236
+ },
237
+ "platform-linking-additional-flexible-element-props": {
238
+ "type": "boolean"
233
239
  }
234
240
  }
235
241
  }