@atlaskit/smart-card 30.0.0 → 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 +15 -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 +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
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
+
12
+ ## 30.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 30.0.0
4
19
 
5
20
  ### Major 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.0"
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.0",
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.0"
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));