@atlaskit/smart-card 30.0.1 → 30.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
  4. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
  5. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
  6. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
  7. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
  8. package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +5 -5
  9. package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +4 -4
  10. package/dist/cjs/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
  11. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +11 -3
  12. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +9 -1
  13. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +5 -5
  14. package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
  15. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
  16. package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
  17. package/dist/cjs/view/LinkUrl/index.js +1 -1
  18. package/dist/es2019/utils/analytics/analytics.js +1 -1
  19. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
  20. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
  21. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
  22. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
  23. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
  24. package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +4 -4
  25. package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +4 -4
  26. package/dist/es2019/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
  27. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +9 -3
  28. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +7 -1
  29. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +4 -4
  30. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
  31. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
  32. package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
  33. package/dist/es2019/view/LinkUrl/index.js +1 -1
  34. package/dist/esm/utils/analytics/analytics.js +1 -1
  35. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -2
  36. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +6 -2
  37. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +4 -4
  38. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +5 -1
  39. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +5 -5
  40. package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +4 -4
  41. package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +4 -4
  42. package/dist/esm/view/FlexibleCard/components/actions/edit-action/index.js +4 -4
  43. package/dist/esm/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +11 -3
  44. package/dist/esm/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +9 -1
  45. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +4 -4
  46. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +3 -1
  47. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +14 -12
  48. package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +5 -3
  49. package/dist/esm/view/LinkUrl/index.js +1 -1
  50. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 30.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#150792](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150792)
8
+ [`adafd883e4167`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/adafd883e4167) -
9
+ [ux] Icon size override fix for new icons behind feature
10
+ flag(https://product-fabric.atlassian.net/browse/DSP-19716)
11
+
3
12
  ## 30.0.1
4
13
 
5
14
  ### Patch Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "30.0.1"
25
+ packageVersion: "30.1.0"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
9
  var _constants = require("../../../../../../constants");
9
10
  var _utils = require("../../../utils");
10
11
  /**
@@ -41,6 +42,10 @@ var stackItemIconStyles = (0, _react.css)(stackItemIconSizeStyles, {
41
42
  lineHeight: 0
42
43
  }
43
44
  });
45
+ var newStackItemIconStyles = (0, _react.css)({
46
+ display: 'inline-block',
47
+ lineHeight: 0
48
+ });
44
49
  var ActionIcon = function ActionIcon(_ref) {
45
50
  var size = _ref.size,
46
51
  testId = _ref.testId,
@@ -50,9 +55,9 @@ var ActionIcon = function ActionIcon(_ref) {
50
55
  return (0, _react.jsx)("span", {
51
56
  css: [
52
57
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
53
- getIconStyles(isDisabled),
58
+ getIconStyles(isDisabled), !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? asStackItemIcon ? stackItemIconStyles :
54
59
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
55
- asStackItemIcon ? stackItemIconStyles : (0, _utils.getIconSizeStyles)(getIconWidth(size))],
60
+ (0, _utils.getIconSizeStyles)(getIconWidth(size)) : newStackItemIconStyles],
56
61
  "data-testid": "".concat(testId, "-icon")
57
62
  }, icon);
58
63
  };
@@ -11,6 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _reactIntlNext = require("react-intl-next");
13
13
  var _action = _interopRequireDefault(require("../action"));
14
+ var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
14
15
  var _aiIcon = _interopRequireDefault(require("../../../../common/ai-icon"));
15
16
  var _messages = require("../../../../../messages");
16
17
  var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
@@ -46,8 +47,11 @@ function AISummariseAction(_ref) {
46
47
  }, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
47
48
  return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
48
49
  content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.ai_summary_action),
49
- icon: /*#__PURE__*/_react.default.createElement(_aiIcon.default, {
50
- label: "Summarise with AI"
50
+ icon: /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, {
51
+ spacing: "spacious",
52
+ color: "currentColor",
53
+ label: "Summarise with AI",
54
+ LEGACY_fallbackIcon: _aiIcon.default
51
55
  }),
52
56
  onClick: handleActionClick,
53
57
  testId: "".concat(testId, "-summarise-action"),
@@ -12,7 +12,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
- var _copy = _interopRequireDefault(require("@atlaskit/icon/glyph/copy"));
15
+ var _copy = _interopRequireDefault(require("@atlaskit/icon/core/migration/copy"));
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _action = _interopRequireDefault(require("../action"));
18
18
  var _messages = require("../../../../../messages");
@@ -49,10 +49,10 @@ function CopySummaryAction(_ref) {
49
49
  }, _callee);
50
50
  })), [fireEvent, onClickCallback, content]);
51
51
  return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
52
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.copy_summary_action)
53
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
54
- ,
52
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.copy_summary_action),
55
53
  icon: /*#__PURE__*/_react.default.createElement(_copy.default, {
54
+ color: "currentColor",
55
+ spacing: "spacious",
56
56
  label: "Copy Summary"
57
57
  }),
58
58
  onClick: handleCopySummaryClick,
@@ -9,6 +9,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _reactIntlNext = require("react-intl-next");
12
+ var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
12
13
  var _manaulTriggersIcon = _interopRequireDefault(require("./manaul-triggers-icon"));
13
14
  var _action = _interopRequireDefault(require("../action"));
14
15
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -79,7 +80,10 @@ var AutomationAction = function AutomationAction(props) {
79
80
  var automationActionIconLabel = formatMessage(_messages.messages.automation_action_icon_label);
80
81
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
81
82
  content: automationActionTitle,
82
- icon: /*#__PURE__*/_react.default.createElement(_manaulTriggersIcon.default, {
83
+ icon: /*#__PURE__*/_react.default.createElement(_automation.default, {
84
+ spacing: "spacious",
85
+ LEGACY_fallbackIcon: _manaulTriggersIcon.default,
86
+ color: "currentColor",
83
87
  label: automationActionIconLabel
84
88
  }),
85
89
  testId: "smart-action-automation-action",
@@ -15,7 +15,7 @@ var _react = _interopRequireWildcard(require("react"));
15
15
  var _action = _interopRequireDefault(require("../action"));
16
16
  var _messages = require("../../../../../messages");
17
17
  var _reactIntlNext = require("react-intl-next");
18
- var _link = _interopRequireDefault(require("@atlaskit/icon/glyph/link"));
18
+ var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link"));
19
19
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
20
20
  var _constants = require("../../../../../constants");
21
21
  var _useInvokeClientAction = _interopRequireDefault(require("../../../../../state/hooks/use-invoke-client-action"));
@@ -72,12 +72,12 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
72
72
  }
73
73
  }, [analytics, data, invoke, onClickCallback]);
74
74
  return data ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
75
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.copy_url_to_clipboard)
76
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
77
- ,
75
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.copy_url_to_clipboard),
78
76
  icon: /*#__PURE__*/_react.default.createElement(_link.default, {
77
+ color: "currentColor",
79
78
  label: "copy url",
80
- size: "medium"
79
+ LEGACY_size: "medium",
80
+ spacing: "spacious"
81
81
  }),
82
82
  onClick: onClick,
83
83
  testId: "smart-action-copy-link-action",
@@ -10,13 +10,13 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _action = _interopRequireDefault(require("../action"));
11
11
  var _messages = require("../../../../../messages");
12
12
  var _reactIntlNext = require("react-intl-next");
13
- var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
13
+ var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
14
14
  var DeleteAction = function DeleteAction(props) {
15
15
  return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
16
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.delete)
17
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
18
- ,
19
- icon: /*#__PURE__*/_react.default.createElement(_cross.default, {
16
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.delete),
17
+ icon: /*#__PURE__*/_react.default.createElement(_closeCross.default, {
18
+ color: "currentColor",
19
+ spacing: "spacious",
20
20
  label: "Delete"
21
21
  }),
22
22
  testId: "smart-action-delete-action",
@@ -18,7 +18,7 @@ var _messages = require("../../../../../messages");
18
18
  var _action = _interopRequireDefault(require("../action"));
19
19
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
20
20
  var _useInvokeClientAction = _interopRequireDefault(require("../../../../../state/hooks/use-invoke-client-action"));
21
- var _download = _interopRequireDefault(require("@atlaskit/icon/glyph/download"));
21
+ var _download = _interopRequireDefault(require("@atlaskit/icon/core/migration/download"));
22
22
  var _excluded = ["onClick"];
23
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -67,10 +67,10 @@ var DownloadAction = function DownloadAction(_ref) {
67
67
  var label = isStackItem ? _messages.messages.download_file : _messages.messages.download;
68
68
  var tooltipMessage = isStackItem ? _messages.messages.download_description : _messages.messages.download;
69
69
  return data ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
70
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, label)
71
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
72
- ,
70
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, label),
73
71
  icon: /*#__PURE__*/_react.default.createElement(_download.default, {
72
+ spacing: "spacious",
73
+ color: "currentColor",
74
74
  label: "Download"
75
75
  }),
76
76
  onClick: onClick,
@@ -10,13 +10,13 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _action = _interopRequireDefault(require("../action"));
11
11
  var _messages = require("../../../../../messages");
12
12
  var _reactIntlNext = require("react-intl-next");
13
- var _edit = _interopRequireDefault(require("@atlaskit/icon/glyph/edit"));
13
+ var _edit = _interopRequireDefault(require("@atlaskit/icon/core/migration/edit"));
14
14
  var EditAction = function EditAction(props) {
15
15
  return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
16
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.edit)
17
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
18
- ,
16
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.edit),
19
17
  icon: /*#__PURE__*/_react.default.createElement(_edit.default, {
18
+ color: "currentColor",
19
+ spacing: "spacious",
20
20
  label: "Edit"
21
21
  }),
22
22
  testId: "smart-action-edit-action",
@@ -8,7 +8,8 @@ exports.GoalIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _icon = _interopRequireDefault(require("@atlaskit/icon"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var GoalGlyph = function GoalGlyph(props) {
11
+ var _goal = _interopRequireDefault(require("@atlaskit/icon/core/goal"));
12
+ var LegacyGoalGlyph = function LegacyGoalGlyph(props) {
12
13
  return /*#__PURE__*/_react.default.createElement("svg", {
13
14
  xmlns: "http://www.w3.org/2000/svg",
14
15
  width: "16",
@@ -22,8 +23,15 @@ var GoalGlyph = function GoalGlyph(props) {
22
23
  fill: "var(--ds-icon, #44546F)"
23
24
  }));
24
25
  };
25
- var GoalIcon = exports.GoalIcon = function GoalIcon(props) {
26
+ var LegacyGoalIcon = function LegacyGoalIcon(props) {
26
27
  return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
27
- glyph: GoalGlyph
28
+ glyph: LegacyGoalGlyph
29
+ }, props));
30
+ };
31
+ var GoalIcon = exports.GoalIcon = function GoalIcon(props) {
32
+ return /*#__PURE__*/_react.default.createElement(_goal.default, (0, _extends2.default)({
33
+ color: "var(--ds-icon, #44546F)",
34
+ LEGACY_fallbackIcon: LegacyGoalIcon,
35
+ spacing: "spacious"
28
36
  }, props));
29
37
  };
@@ -8,6 +8,7 @@ exports.ProjectsIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _icon = _interopRequireDefault(require("@atlaskit/icon"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
+ var _project = _interopRequireDefault(require("@atlaskit/icon/core/project"));
11
12
  var ProjectsGlyph = function ProjectsGlyph(props) {
12
13
  return /*#__PURE__*/_react.default.createElement("svg", {
13
14
  xmlns: "http://www.w3.org/2000/svg",
@@ -22,8 +23,15 @@ var ProjectsGlyph = function ProjectsGlyph(props) {
22
23
  fill: "var(--ds-icon, #44546F)"
23
24
  }));
24
25
  };
25
- var ProjectsIcon = exports.ProjectsIcon = function ProjectsIcon(props) {
26
+ var LegacyProjectsIcon = function LegacyProjectsIcon(props) {
26
27
  return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
27
28
  glyph: ProjectsGlyph
28
29
  }, props));
30
+ };
31
+ var ProjectsIcon = exports.ProjectsIcon = function ProjectsIcon(props) {
32
+ return /*#__PURE__*/_react.default.createElement(_project.default, (0, _extends2.default)({
33
+ color: "var(--ds-icon, #44546F)",
34
+ LEGACY_fallbackIcon: LegacyProjectsIcon,
35
+ spacing: "spacious"
36
+ }, props));
29
37
  };
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
- var _actualSize = _interopRequireDefault(require("@atlaskit/icon/glyph/media-services/actual-size"));
14
+ var _growDiagonalMediaServicesActualSize = _interopRequireDefault(require("@atlaskit/icon/core/migration/grow-diagonal--media-services-actual-size"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _constants = require("../../../../../constants");
@@ -73,10 +73,10 @@ var PreviewAction = function PreviewAction(_ref) {
73
73
  var isStackItem = props.as === 'stack-item';
74
74
  var tooltipMessage = isStackItem ? _messages.messages.preview_description : _messages.messages.preview_improved;
75
75
  return data ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
76
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_improved)
77
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
78
- ,
79
- icon: /*#__PURE__*/_react.default.createElement(_actualSize.default, {
76
+ content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_improved),
77
+ icon: /*#__PURE__*/_react.default.createElement(_growDiagonalMediaServicesActualSize.default, {
78
+ color: "currentColor",
79
+ spacing: "spacious",
80
80
  label: "Open preview"
81
81
  }),
82
82
  onClick: onClick,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = require("@emotion/react");
9
- var _childIssues = _interopRequireDefault(require("@atlaskit/icon/glyph/child-issues"));
9
+ var _childIssues = _interopRequireDefault(require("@atlaskit/icon/core/migration/child-issues"));
10
10
  /**
11
11
  * @jsxRuntime classic
12
12
  * @jsx jsx
@@ -25,6 +25,8 @@ var RelatedLinksActionIcon = function RelatedLinksActionIcon() {
25
25
  return (0, _react.jsx)("span", {
26
26
  css: rotateSvg
27
27
  }, (0, _react.jsx)(_childIssues.default, {
28
+ color: "currentColor",
29
+ spacing: "spacious",
28
30
  label: "View recent links..."
29
31
  }));
30
32
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.ActionFooter = void 0;
8
- var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
8
+ var _error = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
9
9
  var _primitives = require("@atlaskit/primitives");
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _motionWrapper = _interopRequireDefault(require("../../../common/motion-wrapper"));
@@ -25,6 +25,9 @@ var containerStyles = (0, _primitives.xcss)({
25
25
  var errorStyles = (0, _primitives.xcss)({
26
26
  backgroundColor: 'color.background.danger'
27
27
  });
28
+ var errorContentStyles = (0, _primitives.xcss)({
29
+ paddingInlineStart: 'space.025'
30
+ });
28
31
  var titleStyles = (0, _primitives.xcss)({
29
32
  color: 'color.text.subtle',
30
33
  fontSize: '12px',
@@ -35,16 +38,14 @@ var titleStyles = (0, _primitives.xcss)({
35
38
  var getIcon = function getIcon(appearance) {
36
39
  switch (appearance) {
37
40
  case 'error':
38
- return (
39
- /*#__PURE__*/
40
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
41
- _react.default.createElement(_error.default, {
42
- primaryColor: "var(--ds-icon-danger, #C9372C)",
43
- label: "Error",
44
- size: "small",
45
- testId: "action-error-icon"
46
- })
47
- );
41
+ return /*#__PURE__*/_react.default.createElement(_error.default, {
42
+ color: "var(--ds-icon-danger, #C9372C)",
43
+ spacing: "compact",
44
+ label: "Error",
45
+ LEGACY_size: "small",
46
+ testId: "action-error-icon",
47
+ LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
48
+ });
48
49
  default:
49
50
  return null;
50
51
  }
@@ -65,7 +66,8 @@ var ActionFooter = exports.ActionFooter = function ActionFooter(_ref) {
65
66
  }, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
66
67
  alignBlock: "start",
67
68
  grow: "fill",
68
- space: "space.050"
69
+ space: "space.075",
70
+ xcss: errorContentStyles
69
71
  }, message.icon || getIcon(message.appearance), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
70
72
  xcss: titleStyles
71
73
  }, message.title))));
@@ -10,6 +10,7 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
10
10
  var _reactMagneticDi = require("react-magnetic-di");
11
11
  var _reactIntlNext = require("react-intl-next");
12
12
  var _primitives = require("@atlaskit/primitives");
13
+ var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
13
14
  var _aiIcon = _interopRequireDefault(require("../../../../../common/ai-icon"));
14
15
  var _info = require("../icons/info");
15
16
  var _messages = require("../../../../../../messages");
@@ -36,9 +37,10 @@ var AIFooterMetadata = exports.AIFooterMetadata = function AIFooterMetadata(_ref
36
37
  size: "small",
37
38
  primaryColor: "var(--ds-icon-subtle, #626F86)"
38
39
  }));
39
- }), /*#__PURE__*/_react.default.createElement(_aiIcon.default, {
40
+ }), /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, {
40
41
  label: "AI",
41
- size: "small",
42
- primaryColor: "var(--ds-icon-subtle, #626F86)"
42
+ LEGACY_size: "small",
43
+ LEGACY_fallbackIcon: _aiIcon.default,
44
+ color: "var(--ds-icon-subtle, #626F86)"
43
45
  }));
44
46
  };
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "30.0.1",
20
+ packageVersion: "30.1.0",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "30.0.1"
7
+ packageVersion: "30.1.0"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,6 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { SmartLinkSize } from '../../../../../../constants';
8
9
  import { getIconSizeStyles } from '../../../utils';
9
10
  const getIconWidth = size => {
@@ -32,6 +33,10 @@ const stackItemIconStyles = css(stackItemIconSizeStyles, {
32
33
  lineHeight: 0
33
34
  }
34
35
  });
36
+ const newStackItemIconStyles = css({
37
+ display: 'inline-block',
38
+ lineHeight: 0
39
+ });
35
40
  const ActionIcon = ({
36
41
  size,
37
42
  testId,
@@ -41,9 +46,9 @@ const ActionIcon = ({
41
46
  }) => jsx("span", {
42
47
  css: [
43
48
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
44
- getIconStyles(isDisabled),
49
+ getIconStyles(isDisabled), !fg('platform-visual-refresh-icons') ? asStackItemIcon ? stackItemIconStyles :
45
50
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
- asStackItemIcon ? stackItemIconStyles : getIconSizeStyles(getIconWidth(size))],
51
+ getIconSizeStyles(getIconWidth(size)) : newStackItemIconStyles],
47
52
  "data-testid": `${testId}-icon`
48
53
  }, icon);
49
54
  export default ActionIcon;
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback } from 'react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Action from '../action';
5
- import AiIcon from '../../../../common/ai-icon';
5
+ import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
6
+ import LegacyAiIcon from '../../../../common/ai-icon';
6
7
  import { messages } from '../../../../../messages';
7
8
  import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
8
9
  import { getErrorMessage } from './utils';
@@ -37,7 +38,10 @@ export function AISummariseAction({
37
38
  return /*#__PURE__*/React.createElement(Action, _extends({
38
39
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
39
40
  icon: /*#__PURE__*/React.createElement(AiIcon, {
40
- label: "Summarise with AI"
41
+ spacing: "spacious",
42
+ color: "currentColor",
43
+ label: "Summarise with AI",
44
+ LEGACY_fallbackIcon: LegacyAiIcon
41
45
  }),
42
46
  onClick: handleActionClick,
43
47
  testId: `${testId}-summarise-action`,
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useState } from 'react';
3
- import CopyIcon from '@atlaskit/icon/glyph/copy';
3
+ import CopyIcon from '@atlaskit/icon/core/migration/copy';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
5
  import Action from '../action';
6
6
  import { messages } from '../../../../../messages';
@@ -23,10 +23,10 @@ export function CopySummaryAction({
23
23
  onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
24
24
  }, [fireEvent, onClickCallback, content]);
25
25
  return /*#__PURE__*/React.createElement(Action, _extends({
26
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action)
27
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
28
- ,
26
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
29
27
  icon: /*#__PURE__*/React.createElement(CopyIcon, {
28
+ color: "currentColor",
29
+ spacing: "spacious",
30
30
  label: "Copy Summary"
31
31
  }),
32
32
  onClick: handleCopySummaryClick,
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { lazy, useCallback } from 'react';
3
3
  import { FormattedMessage, useIntl } from 'react-intl-next';
4
+ import AutomationIcon from '@atlaskit/icon/core/automation';
4
5
  import AutomationManualTriggersGlyph from './manaul-triggers-icon';
5
6
  import Action from '../action';
6
7
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -68,7 +69,10 @@ const AutomationAction = props => {
68
69
  const automationActionIconLabel = formatMessage(messages.automation_action_icon_label);
69
70
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Action, _extends({
70
71
  content: automationActionTitle,
71
- icon: /*#__PURE__*/React.createElement(AutomationManualTriggersGlyph, {
72
+ icon: /*#__PURE__*/React.createElement(AutomationIcon, {
73
+ spacing: "spacious",
74
+ LEGACY_fallbackIcon: AutomationManualTriggersGlyph,
75
+ color: "currentColor",
72
76
  label: automationActionIconLabel
73
77
  }),
74
78
  testId: "smart-action-automation-action",
@@ -3,7 +3,7 @@ import React, { useCallback, useState } from 'react';
3
3
  import Action from '../action';
4
4
  import { messages } from '../../../../../messages';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import LinkIcon from '@atlaskit/icon/glyph/link';
6
+ import LinkIcon from '@atlaskit/icon/core/migration/link';
7
7
  import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
8
8
  import { ActionName } from '../../../../../constants';
9
9
  import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
@@ -39,12 +39,12 @@ const CopyLinkAction = ({
39
39
  }
40
40
  }, [analytics, data, invoke, onClickCallback]);
41
41
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
42
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard)
43
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
44
- ,
42
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard),
45
43
  icon: /*#__PURE__*/React.createElement(LinkIcon, {
44
+ color: "currentColor",
46
45
  label: "copy url",
47
- size: "medium"
46
+ LEGACY_size: "medium",
47
+ spacing: "spacious"
48
48
  }),
49
49
  onClick: onClick,
50
50
  testId: "smart-action-copy-link-action",
@@ -3,12 +3,12 @@ import React from 'react';
3
3
  import Action from '../action';
4
4
  import { messages } from '../../../../../messages';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import CrossIcon from '@atlaskit/icon/glyph/cross';
6
+ import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
7
7
  const DeleteAction = props => /*#__PURE__*/React.createElement(Action, _extends({
8
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete)
9
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
10
- ,
8
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete),
11
9
  icon: /*#__PURE__*/React.createElement(CrossIcon, {
10
+ color: "currentColor",
11
+ spacing: "spacious",
12
12
  label: "Delete"
13
13
  }),
14
14
  testId: "smart-action-delete-action",
@@ -7,7 +7,7 @@ import { messages } from '../../../../../messages';
7
7
  import Action from '../action';
8
8
  import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
9
9
  import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
10
- import DownloadIcon from '@atlaskit/icon/glyph/download';
10
+ import DownloadIcon from '@atlaskit/icon/core/migration/download';
11
11
  const DownloadAction = ({
12
12
  onClick: onClickCallback,
13
13
  ...props
@@ -38,10 +38,10 @@ const DownloadAction = ({
38
38
  const label = isStackItem ? messages.download_file : messages.download;
39
39
  const tooltipMessage = isStackItem ? messages.download_description : messages.download;
40
40
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
41
- content: /*#__PURE__*/React.createElement(FormattedMessage, label)
42
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
43
- ,
41
+ content: /*#__PURE__*/React.createElement(FormattedMessage, label),
44
42
  icon: /*#__PURE__*/React.createElement(DownloadIcon, {
43
+ spacing: "spacious",
44
+ color: "currentColor",
45
45
  label: "Download"
46
46
  }),
47
47
  onClick: onClick,
@@ -3,12 +3,12 @@ import React from 'react';
3
3
  import Action from '../action';
4
4
  import { messages } from '../../../../../messages';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import EditIcon from '@atlaskit/icon/glyph/edit';
6
+ import EditIcon from '@atlaskit/icon/core/migration/edit';
7
7
  const EditAction = props => /*#__PURE__*/React.createElement(Action, _extends({
8
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit)
9
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
10
- ,
8
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit),
11
9
  icon: /*#__PURE__*/React.createElement(EditIcon, {
10
+ color: "currentColor",
11
+ spacing: "spacious",
12
12
  label: "Edit"
13
13
  }),
14
14
  testId: "smart-action-edit-action",
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import Icon from '@atlaskit/icon';
3
3
  import React from 'react';
4
- const GoalGlyph = props => /*#__PURE__*/React.createElement("svg", {
4
+ import GoalGlyph from '@atlaskit/icon/core/goal';
5
+ const LegacyGoalGlyph = props => /*#__PURE__*/React.createElement("svg", {
5
6
  xmlns: "http://www.w3.org/2000/svg",
6
7
  width: "16",
7
8
  height: "16",
@@ -13,6 +14,11 @@ const GoalGlyph = props => /*#__PURE__*/React.createElement("svg", {
13
14
  d: "M12.6667 8C12.6667 10.5773 10.5773 12.6667 8 12.6667C5.42267 12.6667 3.33333 10.5773 3.33333 8C3.33333 5.42267 5.42267 3.33333 8 3.33333C10.5773 3.33333 12.6667 5.42267 12.6667 8ZM14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM9.33333 8C9.33333 8.73638 8.73638 9.33333 8 9.33333C7.26362 9.33333 6.66667 8.73638 6.66667 8C6.66667 7.26362 7.26362 6.66667 8 6.66667C8.73638 6.66667 9.33333 7.26362 9.33333 8ZM10.6667 8C10.6667 9.47276 9.47276 10.6667 8 10.6667C6.52724 10.6667 5.33333 9.47276 5.33333 8C5.33333 6.52724 6.52724 5.33333 8 5.33333C9.47276 5.33333 10.6667 6.52724 10.6667 8Z",
14
15
  fill: "var(--ds-icon, #44546F)"
15
16
  }));
16
- export const GoalIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
17
- glyph: GoalGlyph
17
+ const LegacyGoalIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
18
+ glyph: LegacyGoalGlyph
19
+ }, props));
20
+ export const GoalIcon = props => /*#__PURE__*/React.createElement(GoalGlyph, _extends({
21
+ color: "var(--ds-icon, #44546F)",
22
+ LEGACY_fallbackIcon: LegacyGoalIcon,
23
+ spacing: "spacious"
18
24
  }, props));
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import Icon from '@atlaskit/icon';
3
3
  import React from 'react';
4
+ import ProjectIcon from '@atlaskit/icon/core/project';
4
5
  const ProjectsGlyph = props => /*#__PURE__*/React.createElement("svg", {
5
6
  xmlns: "http://www.w3.org/2000/svg",
6
7
  width: "16",
@@ -13,6 +14,11 @@ const ProjectsGlyph = props => /*#__PURE__*/React.createElement("svg", {
13
14
  d: "M9.88573 4.00002C9.70892 4.00002 9.53935 4.07026 9.41433 4.19528L6.97282 6.63678L4.20525 6.94429C4.05479 6.96101 3.91451 7.02844 3.80746 7.13548L3.60959 7.33335L4.35367 8.07743C4.6791 8.40287 4.6791 8.93051 4.35367 9.25594L3.47152 10.1381C3.21117 10.3984 2.78906 10.3984 2.52871 10.1381C2.26836 9.87774 2.26836 9.45563 2.52871 9.19528L3.0573 8.66669L2.43108 8.04046C2.04055 7.64993 2.04055 7.01677 2.43108 6.62625L2.86465 6.19267C3.18578 5.87154 3.60664 5.66927 4.05801 5.61911L6.36073 5.36326L8.47152 3.25247C8.84659 2.8774 9.3553 2.66669 9.88573 2.66669H12.0001C12.7365 2.66669 13.3334 3.26364 13.3334 4.00002V6.1144C13.3334 6.64483 13.1227 7.15354 12.7477 7.52862L10.6369 9.6394L10.381 11.9421C10.3309 12.3935 10.1286 12.8143 9.80746 13.1355L9.37389 13.5691C8.98336 13.9596 8.3502 13.9596 7.95967 13.5691L7.33345 12.9428L6.80485 13.4714C6.5445 13.7318 6.12239 13.7318 5.86204 13.4714C5.60169 13.2111 5.60169 12.789 5.86204 12.5286L6.74419 11.6465C7.06963 11.321 7.59726 11.321 7.9227 11.6465L8.66678 12.3905L8.86466 12.1927C8.9717 12.0856 9.03912 11.9453 9.05584 11.7949L9.36335 9.02731L11.8049 6.58581C11.9299 6.46078 12.0001 6.29121 12.0001 6.1144V4.00002H9.88573ZM5.80486 10.1953C6.06521 10.4556 6.06521 10.8777 5.80486 11.1381L3.80486 13.1381C3.54451 13.3984 3.1224 13.3984 2.86205 13.1381C2.6017 12.8777 2.6017 12.4556 2.86205 12.1953L4.86205 10.1953C5.1224 9.93493 5.54451 9.93493 5.80486 10.1953ZM10.0001 6.66669C10.3683 6.66669 10.6668 6.36821 10.6668 6.00002C10.6668 5.63183 10.3683 5.33335 10.0001 5.33335C9.63193 5.33335 9.33346 5.63183 9.33346 6.00002C9.33346 6.36821 9.63193 6.66669 10.0001 6.66669Z",
14
15
  fill: "var(--ds-icon, #44546F)"
15
16
  }));
16
- export const ProjectsIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
17
+ const LegacyProjectsIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
17
18
  glyph: ProjectsGlyph
19
+ }, props));
20
+ export const ProjectsIcon = props => /*#__PURE__*/React.createElement(ProjectIcon, _extends({
21
+ color: "var(--ds-icon, #44546F)",
22
+ LEGACY_fallbackIcon: LegacyProjectsIcon,
23
+ spacing: "spacious"
18
24
  }, props));
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import MediaServicesActualSizeIcon from '@atlaskit/icon/glyph/media-services/actual-size';
2
+ import MediaServicesActualSizeIcon from '@atlaskit/icon/core/migration/grow-diagonal--media-services-actual-size';
3
3
  import React, { useCallback } from 'react';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
5
  import { ActionName } from '../../../../../constants';
@@ -42,10 +42,10 @@ const PreviewAction = ({
42
42
  const isStackItem = props.as === 'stack-item';
43
43
  const tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
44
44
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
45
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
46
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
47
- ,
45
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved),
48
46
  icon: /*#__PURE__*/React.createElement(MediaServicesActualSizeIcon, {
47
+ color: "currentColor",
48
+ spacing: "spacious",
49
49
  label: "Open preview"
50
50
  }),
51
51
  onClick: onClick,
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
- import ChildIssuesIcon from '@atlaskit/icon/glyph/child-issues';
7
+ import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
8
8
  const rotateSvg = css({
9
9
  transform: 'rotate(180deg)',
10
10
  display: 'inline-block'
@@ -16,6 +16,8 @@ const rotateSvg = css({
16
16
  const RelatedLinksActionIcon = () => jsx("span", {
17
17
  css: rotateSvg
18
18
  }, jsx(ChildIssuesIcon, {
19
+ color: "currentColor",
20
+ spacing: "spacious",
19
21
  label: "View recent links..."
20
22
  }));
21
23
  export default RelatedLinksActionIcon;
@@ -1,4 +1,4 @@
1
- import ErrorIcon from '@atlaskit/icon/glyph/error';
1
+ import ErrorIcon from '@atlaskit/icon/utility/migration/error';
2
2
  import { Box, Inline, xcss } from '@atlaskit/primitives';
3
3
  import React from 'react';
4
4
  import MotionWrapper from '../../../common/motion-wrapper';
@@ -18,6 +18,9 @@ const containerStyles = xcss({
18
18
  const errorStyles = xcss({
19
19
  backgroundColor: 'color.background.danger'
20
20
  });
21
+ const errorContentStyles = xcss({
22
+ paddingInlineStart: 'space.025'
23
+ });
21
24
  const titleStyles = xcss({
22
25
  color: 'color.text.subtle',
23
26
  fontSize: '12px',
@@ -28,16 +31,14 @@ const titleStyles = xcss({
28
31
  const getIcon = appearance => {
29
32
  switch (appearance) {
30
33
  case 'error':
31
- return (
32
- /*#__PURE__*/
33
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
34
- React.createElement(ErrorIcon, {
35
- primaryColor: "var(--ds-icon-danger, #C9372C)",
36
- label: "Error",
37
- size: "small",
38
- testId: "action-error-icon"
39
- })
40
- );
34
+ return /*#__PURE__*/React.createElement(ErrorIcon, {
35
+ color: "var(--ds-icon-danger, #C9372C)",
36
+ spacing: "compact",
37
+ label: "Error",
38
+ LEGACY_size: "small",
39
+ testId: "action-error-icon",
40
+ LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`
41
+ });
41
42
  default:
42
43
  return null;
43
44
  }
@@ -59,7 +60,8 @@ export const ActionFooter = ({
59
60
  }, /*#__PURE__*/React.createElement(Inline, {
60
61
  alignBlock: "start",
61
62
  grow: "fill",
62
- space: "space.050"
63
+ space: "space.075",
64
+ xcss: errorContentStyles
63
65
  }, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(Box, {
64
66
  xcss: titleStyles
65
67
  }, message.title))));
@@ -3,7 +3,8 @@ import Tooltip from '@atlaskit/tooltip';
3
3
  import { di } from 'react-magnetic-di';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
5
  import { Box, Inline } from '@atlaskit/primitives';
6
- import AIIcon from '../../../../../common/ai-icon';
6
+ import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
7
+ import LegacyAIIcon from '../../../../../common/ai-icon';
7
8
  import { InfoIcon } from '../icons/info';
8
9
  import { messages } from '../../../../../../messages';
9
10
  import useAISummaryAction from '../../../../../../state/hooks/use-ai-summary-action';
@@ -33,7 +34,8 @@ export const AIFooterMetadata = ({
33
34
  primaryColor: "var(--ds-icon-subtle, #626F86)"
34
35
  }))), /*#__PURE__*/React.createElement(AIIcon, {
35
36
  label: "AI",
36
- size: "small",
37
- primaryColor: "var(--ds-icon-subtle, #626F86)"
37
+ LEGACY_size: "small",
38
+ LEGACY_fallbackIcon: LegacyAIIcon,
39
+ color: "var(--ds-icon-subtle, #626F86)"
38
40
  }));
39
41
  };
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "30.0.1",
10
+ packageVersion: "30.1.0",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "30.0.1"
18
+ packageVersion: "30.1.0"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,6 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { SmartLinkSize } from '../../../../../../constants';
8
9
  import { getIconSizeStyles } from '../../../utils';
9
10
  var getIconWidth = function getIconWidth(size) {
@@ -34,6 +35,10 @@ var stackItemIconStyles = css(stackItemIconSizeStyles, {
34
35
  lineHeight: 0
35
36
  }
36
37
  });
38
+ var newStackItemIconStyles = css({
39
+ display: 'inline-block',
40
+ lineHeight: 0
41
+ });
37
42
  var ActionIcon = function ActionIcon(_ref) {
38
43
  var size = _ref.size,
39
44
  testId = _ref.testId,
@@ -43,9 +48,9 @@ var ActionIcon = function ActionIcon(_ref) {
43
48
  return jsx("span", {
44
49
  css: [
45
50
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
46
- getIconStyles(isDisabled),
51
+ getIconStyles(isDisabled), !fg('platform-visual-refresh-icons') ? asStackItemIcon ? stackItemIconStyles :
47
52
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
- asStackItemIcon ? stackItemIconStyles : getIconSizeStyles(getIconWidth(size))],
53
+ getIconSizeStyles(getIconWidth(size)) : newStackItemIconStyles],
49
54
  "data-testid": "".concat(testId, "-icon")
50
55
  }, icon);
51
56
  };
@@ -4,7 +4,8 @@ var _excluded = ["url", "onClick", "onError", "testId", "status", "summariseUrl"
4
4
  import React, { useCallback } from 'react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  import Action from '../action';
7
- import AiIcon from '../../../../common/ai-icon';
7
+ import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
8
+ import LegacyAiIcon from '../../../../common/ai-icon';
8
9
  import { messages } from '../../../../../messages';
9
10
  import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
10
11
  import { getErrorMessage } from './utils';
@@ -37,7 +38,10 @@ export function AISummariseAction(_ref) {
37
38
  return /*#__PURE__*/React.createElement(Action, _extends({
38
39
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
39
40
  icon: /*#__PURE__*/React.createElement(AiIcon, {
40
- label: "Summarise with AI"
41
+ spacing: "spacious",
42
+ color: "currentColor",
43
+ label: "Summarise with AI",
44
+ LEGACY_fallbackIcon: LegacyAiIcon
41
45
  }),
42
46
  onClick: handleActionClick,
43
47
  testId: "".concat(testId, "-summarise-action"),
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
5
5
  var _excluded = ["url", "onClick", "testId", "content"];
6
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  import React, { useCallback, useState } from 'react';
8
- import CopyIcon from '@atlaskit/icon/glyph/copy';
8
+ import CopyIcon from '@atlaskit/icon/core/migration/copy';
9
9
  import { FormattedMessage } from 'react-intl-next';
10
10
  import Action from '../action';
11
11
  import { messages } from '../../../../../messages';
@@ -39,10 +39,10 @@ export function CopySummaryAction(_ref) {
39
39
  }, _callee);
40
40
  })), [fireEvent, onClickCallback, content]);
41
41
  return /*#__PURE__*/React.createElement(Action, _extends({
42
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action)
43
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
44
- ,
42
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
45
43
  icon: /*#__PURE__*/React.createElement(CopyIcon, {
44
+ color: "currentColor",
45
+ spacing: "spacious",
46
46
  label: "Copy Summary"
47
47
  }),
48
48
  onClick: handleCopySummaryClick,
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { lazy, useCallback } from 'react';
3
3
  import { FormattedMessage, useIntl } from 'react-intl-next';
4
+ import AutomationIcon from '@atlaskit/icon/core/automation';
4
5
  import AutomationManualTriggersGlyph from './manaul-triggers-icon';
5
6
  import Action from '../action';
6
7
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -67,7 +68,10 @@ var AutomationAction = function AutomationAction(props) {
67
68
  var automationActionIconLabel = formatMessage(messages.automation_action_icon_label);
68
69
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Action, _extends({
69
70
  content: automationActionTitle,
70
- icon: /*#__PURE__*/React.createElement(AutomationManualTriggersGlyph, {
71
+ icon: /*#__PURE__*/React.createElement(AutomationIcon, {
72
+ spacing: "spacious",
73
+ LEGACY_fallbackIcon: AutomationManualTriggersGlyph,
74
+ color: "currentColor",
71
75
  label: automationActionIconLabel
72
76
  }),
73
77
  testId: "smart-action-automation-action",
@@ -8,7 +8,7 @@ import React, { useCallback, useState } from 'react';
8
8
  import Action from '../action';
9
9
  import { messages } from '../../../../../messages';
10
10
  import { FormattedMessage } from 'react-intl-next';
11
- import LinkIcon from '@atlaskit/icon/glyph/link';
11
+ import LinkIcon from '@atlaskit/icon/core/migration/link';
12
12
  import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
13
13
  import { ActionName } from '../../../../../constants';
14
14
  import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
@@ -62,12 +62,12 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
62
62
  }
63
63
  }, [analytics, data, invoke, onClickCallback]);
64
64
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
65
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard)
66
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
67
- ,
65
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_url_to_clipboard),
68
66
  icon: /*#__PURE__*/React.createElement(LinkIcon, {
67
+ color: "currentColor",
69
68
  label: "copy url",
70
- size: "medium"
69
+ LEGACY_size: "medium",
70
+ spacing: "spacious"
71
71
  }),
72
72
  onClick: onClick,
73
73
  testId: "smart-action-copy-link-action",
@@ -3,13 +3,13 @@ import React from 'react';
3
3
  import Action from '../action';
4
4
  import { messages } from '../../../../../messages';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import CrossIcon from '@atlaskit/icon/glyph/cross';
6
+ import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
7
7
  var DeleteAction = function DeleteAction(props) {
8
8
  return /*#__PURE__*/React.createElement(Action, _extends({
9
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete)
10
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
11
- ,
9
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.delete),
12
10
  icon: /*#__PURE__*/React.createElement(CrossIcon, {
11
+ color: "currentColor",
12
+ spacing: "spacious",
13
13
  label: "Delete"
14
14
  }),
15
15
  testId: "smart-action-delete-action",
@@ -11,7 +11,7 @@ import { messages } from '../../../../../messages';
11
11
  import Action from '../action';
12
12
  import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
13
13
  import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
14
- import DownloadIcon from '@atlaskit/icon/glyph/download';
14
+ import DownloadIcon from '@atlaskit/icon/core/migration/download';
15
15
  var DownloadAction = function DownloadAction(_ref) {
16
16
  var _context$actions;
17
17
  var onClickCallback = _ref.onClick,
@@ -57,10 +57,10 @@ var DownloadAction = function DownloadAction(_ref) {
57
57
  var label = isStackItem ? messages.download_file : messages.download;
58
58
  var tooltipMessage = isStackItem ? messages.download_description : messages.download;
59
59
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
60
- content: /*#__PURE__*/React.createElement(FormattedMessage, label)
61
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
62
- ,
60
+ content: /*#__PURE__*/React.createElement(FormattedMessage, label),
63
61
  icon: /*#__PURE__*/React.createElement(DownloadIcon, {
62
+ spacing: "spacious",
63
+ color: "currentColor",
64
64
  label: "Download"
65
65
  }),
66
66
  onClick: onClick,
@@ -3,13 +3,13 @@ import React from 'react';
3
3
  import Action from '../action';
4
4
  import { messages } from '../../../../../messages';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
- import EditIcon from '@atlaskit/icon/glyph/edit';
6
+ import EditIcon from '@atlaskit/icon/core/migration/edit';
7
7
  var EditAction = function EditAction(props) {
8
8
  return /*#__PURE__*/React.createElement(Action, _extends({
9
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit)
10
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
11
- ,
9
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.edit),
12
10
  icon: /*#__PURE__*/React.createElement(EditIcon, {
11
+ color: "currentColor",
12
+ spacing: "spacious",
13
13
  label: "Edit"
14
14
  }),
15
15
  testId: "smart-action-edit-action",
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import Icon from '@atlaskit/icon';
3
3
  import React from 'react';
4
- var GoalGlyph = function GoalGlyph(props) {
4
+ import GoalGlyph from '@atlaskit/icon/core/goal';
5
+ var LegacyGoalGlyph = function LegacyGoalGlyph(props) {
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  xmlns: "http://www.w3.org/2000/svg",
7
8
  width: "16",
@@ -15,8 +16,15 @@ var GoalGlyph = function GoalGlyph(props) {
15
16
  fill: "var(--ds-icon, #44546F)"
16
17
  }));
17
18
  };
18
- export var GoalIcon = function GoalIcon(props) {
19
+ var LegacyGoalIcon = function LegacyGoalIcon(props) {
19
20
  return /*#__PURE__*/React.createElement(Icon, _extends({
20
- glyph: GoalGlyph
21
+ glyph: LegacyGoalGlyph
22
+ }, props));
23
+ };
24
+ export var GoalIcon = function GoalIcon(props) {
25
+ return /*#__PURE__*/React.createElement(GoalGlyph, _extends({
26
+ color: "var(--ds-icon, #44546F)",
27
+ LEGACY_fallbackIcon: LegacyGoalIcon,
28
+ spacing: "spacious"
21
29
  }, props));
22
30
  };
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import Icon from '@atlaskit/icon';
3
3
  import React from 'react';
4
+ import ProjectIcon from '@atlaskit/icon/core/project';
4
5
  var ProjectsGlyph = function ProjectsGlyph(props) {
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  xmlns: "http://www.w3.org/2000/svg",
@@ -15,8 +16,15 @@ var ProjectsGlyph = function ProjectsGlyph(props) {
15
16
  fill: "var(--ds-icon, #44546F)"
16
17
  }));
17
18
  };
18
- export var ProjectsIcon = function ProjectsIcon(props) {
19
+ var LegacyProjectsIcon = function LegacyProjectsIcon(props) {
19
20
  return /*#__PURE__*/React.createElement(Icon, _extends({
20
21
  glyph: ProjectsGlyph
21
22
  }, props));
23
+ };
24
+ export var ProjectsIcon = function ProjectsIcon(props) {
25
+ return /*#__PURE__*/React.createElement(ProjectIcon, _extends({
26
+ color: "var(--ds-icon, #44546F)",
27
+ LEGACY_fallbackIcon: LegacyProjectsIcon,
28
+ spacing: "spacious"
29
+ }, props));
22
30
  };
@@ -6,7 +6,7 @@ var _excluded = ["onClick"];
6
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
- import MediaServicesActualSizeIcon from '@atlaskit/icon/glyph/media-services/actual-size';
9
+ import MediaServicesActualSizeIcon from '@atlaskit/icon/core/migration/grow-diagonal--media-services-actual-size';
10
10
  import React, { useCallback } from 'react';
11
11
  import { FormattedMessage } from 'react-intl-next';
12
12
  import { ActionName } from '../../../../../constants';
@@ -63,10 +63,10 @@ var PreviewAction = function PreviewAction(_ref) {
63
63
  var isStackItem = props.as === 'stack-item';
64
64
  var tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
65
65
  return data ? /*#__PURE__*/React.createElement(Action, _extends({
66
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
67
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
68
- ,
66
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved),
69
67
  icon: /*#__PURE__*/React.createElement(MediaServicesActualSizeIcon, {
68
+ color: "currentColor",
69
+ spacing: "spacious",
70
70
  label: "Open preview"
71
71
  }),
72
72
  onClick: onClick,
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
- import ChildIssuesIcon from '@atlaskit/icon/glyph/child-issues';
7
+ import ChildIssuesIcon from '@atlaskit/icon/core/migration/child-issues';
8
8
  var rotateSvg = css({
9
9
  transform: 'rotate(180deg)',
10
10
  display: 'inline-block'
@@ -17,6 +17,8 @@ var RelatedLinksActionIcon = function RelatedLinksActionIcon() {
17
17
  return jsx("span", {
18
18
  css: rotateSvg
19
19
  }, jsx(ChildIssuesIcon, {
20
+ color: "currentColor",
21
+ spacing: "spacious",
20
22
  label: "View recent links..."
21
23
  }));
22
24
  };
@@ -1,4 +1,4 @@
1
- import ErrorIcon from '@atlaskit/icon/glyph/error';
1
+ import ErrorIcon from '@atlaskit/icon/utility/migration/error';
2
2
  import { Box, Inline, xcss } from '@atlaskit/primitives';
3
3
  import React from 'react';
4
4
  import MotionWrapper from '../../../common/motion-wrapper';
@@ -18,6 +18,9 @@ var containerStyles = xcss({
18
18
  var errorStyles = xcss({
19
19
  backgroundColor: 'color.background.danger'
20
20
  });
21
+ var errorContentStyles = xcss({
22
+ paddingInlineStart: 'space.025'
23
+ });
21
24
  var titleStyles = xcss({
22
25
  color: 'color.text.subtle',
23
26
  fontSize: '12px',
@@ -28,16 +31,14 @@ var titleStyles = xcss({
28
31
  var getIcon = function getIcon(appearance) {
29
32
  switch (appearance) {
30
33
  case 'error':
31
- return (
32
- /*#__PURE__*/
33
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
34
- React.createElement(ErrorIcon, {
35
- primaryColor: "var(--ds-icon-danger, #C9372C)",
36
- label: "Error",
37
- size: "small",
38
- testId: "action-error-icon"
39
- })
40
- );
34
+ return /*#__PURE__*/React.createElement(ErrorIcon, {
35
+ color: "var(--ds-icon-danger, #C9372C)",
36
+ spacing: "compact",
37
+ label: "Error",
38
+ LEGACY_size: "small",
39
+ testId: "action-error-icon",
40
+ LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
41
+ });
41
42
  default:
42
43
  return null;
43
44
  }
@@ -58,7 +59,8 @@ export var ActionFooter = function ActionFooter(_ref) {
58
59
  }, /*#__PURE__*/React.createElement(Inline, {
59
60
  alignBlock: "start",
60
61
  grow: "fill",
61
- space: "space.050"
62
+ space: "space.075",
63
+ xcss: errorContentStyles
62
64
  }, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(Box, {
63
65
  xcss: titleStyles
64
66
  }, message.title))));
@@ -3,7 +3,8 @@ import Tooltip from '@atlaskit/tooltip';
3
3
  import { di } from 'react-magnetic-di';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
5
  import { Box, Inline } from '@atlaskit/primitives';
6
- import AIIcon from '../../../../../common/ai-icon';
6
+ import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
7
+ import LegacyAIIcon from '../../../../../common/ai-icon';
7
8
  import { InfoIcon } from '../icons/info';
8
9
  import { messages } from '../../../../../../messages';
9
10
  import useAISummaryAction from '../../../../../../state/hooks/use-ai-summary-action';
@@ -31,7 +32,8 @@ export var AIFooterMetadata = function AIFooterMetadata(_ref) {
31
32
  }));
32
33
  }), /*#__PURE__*/React.createElement(AIIcon, {
33
34
  label: "AI",
34
- size: "small",
35
- primaryColor: "var(--ds-icon-subtle, #626F86)"
35
+ LEGACY_size: "small",
36
+ LEGACY_fallbackIcon: LegacyAIIcon,
37
+ color: "var(--ds-icon-subtle, #626F86)"
36
38
  }));
37
39
  };
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "30.0.1",
13
+ packageVersion: "30.1.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "30.0.1",
3
+ "version": "30.1.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/spinner": "^16.3.0",
59
59
  "@atlaskit/textarea": "^5.6.0",
60
60
  "@atlaskit/textfield": "^6.5.0",
61
- "@atlaskit/theme": "^13.0.0",
61
+ "@atlaskit/theme": "^13.1.0",
62
62
  "@atlaskit/tokens": "^2.0.0",
63
63
  "@atlaskit/tooltip": "^18.8.0",
64
64
  "@atlaskit/ufo": "^0.3.0",
@@ -159,6 +159,9 @@
159
159
  },
160
160
  "platform-smart-card-use-ai-smartlink-summary-agent": {
161
161
  "type": "boolean"
162
+ },
163
+ "platform-visual-refresh-icons": {
164
+ "type": "boolean"
162
165
  }
163
166
  }
164
167
  }