@atlaskit/smart-card 34.10.5 → 34.10.7

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 (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/common/ui/icons/live-document-icon.js +12 -0
  3. package/dist/cjs/common/ui/icons/utils.js +1 -1
  4. package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +5 -1
  5. package/dist/cjs/utils/analytics/analytics.js +1 -1
  6. package/dist/cjs/utils/index.js +19 -24
  7. package/dist/cjs/view/EmbedCard/views/ErroredView.compiled.css +0 -11
  8. package/dist/cjs/view/EmbedCard/views/ErroredView.js +1 -4
  9. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +23 -25
  10. package/dist/cjs/view/LinkUrl/index.js +1 -1
  11. package/dist/es2019/common/ui/icons/live-document-icon.js +5 -0
  12. package/dist/es2019/common/ui/icons/utils.js +1 -1
  13. package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +5 -1
  14. package/dist/es2019/utils/analytics/analytics.js +1 -1
  15. package/dist/es2019/utils/index.js +1 -5
  16. package/dist/es2019/view/EmbedCard/views/ErroredView.compiled.css +0 -11
  17. package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -4
  18. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +7 -6
  19. package/dist/es2019/view/LinkUrl/index.js +1 -1
  20. package/dist/esm/common/ui/icons/live-document-icon.js +5 -0
  21. package/dist/esm/common/ui/icons/utils.js +1 -1
  22. package/dist/esm/extractors/common/icon/extractIconFromDocument.js +5 -1
  23. package/dist/esm/utils/analytics/analytics.js +1 -1
  24. package/dist/esm/utils/index.js +19 -24
  25. package/dist/esm/view/EmbedCard/views/ErroredView.compiled.css +0 -11
  26. package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -4
  27. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +23 -23
  28. package/dist/esm/view/LinkUrl/index.js +1 -1
  29. package/dist/types/common/ui/icons/live-document-icon.d.ts +3 -0
  30. package/dist/types/common/ui/icons/utils.d.ts +1 -1
  31. package/dist/types-ts4.5/common/ui/icons/live-document-icon.d.ts +3 -0
  32. package/dist/types-ts4.5/common/ui/icons/utils.d.ts +1 -1
  33. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 34.10.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 34.10.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 34.10.5
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _pageLiveDoc = _interopRequireDefault(require("@atlaskit/icon-lab/core/page-live-doc"));
9
+ var _utils = require("./utils");
10
+ var LiveDocumentIconWithColor = (0, _utils.renderIconTile)(_pageLiveDoc.default, 'magentaBold');
11
+ LiveDocumentIconWithColor.displayName = 'LiveDocumentIconWithColor';
12
+ var _default = exports.default = LiveDocumentIconWithColor;
@@ -41,7 +41,7 @@ var renderIconTile = exports.renderIconTile = function renderIconTile(Icon, appe
41
41
  icon: Icon,
42
42
  size: transformSmartLinkSizeToIconTileSize(size)
43
43
  }, props, {
44
- LEGACY_fallbackComponent: /*#__PURE__*/_react.default.createElement(LegacyIcon, props)
44
+ LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/_react.default.createElement(LegacyIcon, props)
45
45
  }));
46
46
  };
47
47
  };
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.extractIconFromDocument = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _icon = require("@atlaskit/icon");
9
10
  var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/16"));
10
11
  var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/generic/16"));
11
12
  var _3 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/presentation/16"));
@@ -142,8 +143,11 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
142
143
  var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
143
144
  var _opts$provider;
144
145
  if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && (0, _linkExtractors.isConfluenceGenerator)(opts.provider.id)) {
145
- return /*#__PURE__*/_react.default.createElement(_pageLiveDoc.default, {
146
+ return /*#__PURE__*/_react.default.createElement(_icon.IconTile, {
147
+ icon: _pageLiveDoc.default,
146
148
  label: "live-doc",
149
+ appearance: "magentaBold",
150
+ shape: "square",
147
151
  testId: "live-doc-icon"
148
152
  });
149
153
  } else {
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "34.10.5"
14
+ packageVersion: "34.10.7"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -337,8 +337,8 @@ var typeToIcon = {
337
337
 
338
338
  // prettier-ignore
339
339
  var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
340
- var _ref4;
341
- return _ref4 = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.Document, {
340
+ var _ref3;
341
+ return _ref3 = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Document, {
342
342
  default: function _default() {
343
343
  return Promise.resolve().then(function () {
344
344
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon'));
@@ -398,7 +398,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
398
398
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon'));
399
399
  });
400
400
  }
401
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.Video, {
401
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Video, {
402
402
  default: function _default() {
403
403
  return Promise.resolve().then(function () {
404
404
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon'));
@@ -483,7 +483,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
483
483
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24'));
484
484
  });
485
485
  }
486
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.GoogleSheets, {
486
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.GoogleSheets, {
487
487
  default: function _default() {
488
488
  return Promise.resolve().then(function () {
489
489
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
@@ -593,7 +593,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
593
593
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24'));
594
594
  });
595
595
  }
596
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.Repo, {
596
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Repo, {
597
597
  default: function _default() {
598
598
  return Promise.resolve().then(function () {
599
599
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
@@ -703,23 +703,18 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
703
703
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24'));
704
704
  });
705
705
  }
706
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.LiveDocument, {
706
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.LiveDocument, {
707
707
  default: function _default() {
708
708
  return Promise.resolve().then(function () {
709
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc'));
710
- }).then(function (_ref) {
711
- var LiveDocumentIcon = _ref.default;
712
- return {
713
- default: LiveDocumentIcon
714
- };
709
+ return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_live-document-icon" */'../common/ui/icons/live-document-icon'));
715
710
  });
716
711
  }
717
712
  }), _constants.IconType.Confluence, {
718
713
  default: function _default() {
719
714
  return Promise.resolve().then(function () {
720
715
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon'));
721
- }).then(function (_ref2) {
722
- var ConfluenceIcon = _ref2.ConfluenceIcon;
716
+ }).then(function (_ref) {
717
+ var ConfluenceIcon = _ref.ConfluenceIcon;
723
718
  return {
724
719
  default: ConfluenceIcon
725
720
  };
@@ -729,8 +724,8 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
729
724
  default: function _default() {
730
725
  return Promise.resolve().then(function () {
731
726
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon'));
732
- }).then(function (_ref3) {
733
- var JiraIcon = _ref3.JiraIcon;
727
+ }).then(function (_ref2) {
728
+ var JiraIcon = _ref2.JiraIcon;
734
729
  return {
735
730
  default: JiraIcon
736
731
  };
@@ -778,7 +773,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
778
773
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker'));
779
774
  });
780
775
  }
781
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.PriorityCritical, {
776
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.PriorityCritical, {
782
777
  default: function _default() {
783
778
  return Promise.resolve().then(function () {
784
779
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
@@ -838,7 +833,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
838
833
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/migration/question-circle--question'));
839
834
  });
840
835
  }
841
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.ProgrammingLanguage, {
836
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.ProgrammingLanguage, {
842
837
  default: function _default() {
843
838
  return Promise.resolve().then(function () {
844
839
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/migration/angle-brackets--code'));
@@ -890,7 +885,7 @@ var sleep = exports.sleep = function sleep(ms) {
890
885
  });
891
886
  };
892
887
  var _importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
893
- var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
888
+ var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
894
889
  var retries,
895
890
  interval,
896
891
  _args = arguments;
@@ -924,11 +919,11 @@ var _importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
924
919
  }, _callee, null, [[2, 8]]);
925
920
  }));
926
921
  return function importWithRetry(_x) {
927
- return _ref5.apply(this, arguments);
922
+ return _ref4.apply(this, arguments);
928
923
  };
929
924
  }();
930
925
  var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
931
- var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
926
+ var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
932
927
  var isIE11, isSafari, iframeName, link, iframe;
933
928
  return _regenerator.default.wrap(function _callee2$(_context2) {
934
929
  while (1) switch (_context2.prev = _context2.next) {
@@ -964,11 +959,11 @@ var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
964
959
  }, _callee2);
965
960
  }));
966
961
  return function downloadUrl(_x2) {
967
- return _ref6.apply(this, arguments);
962
+ return _ref5.apply(this, arguments);
968
963
  };
969
964
  }();
970
965
  var openUrl = exports.openUrl = /*#__PURE__*/function () {
971
- var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
966
+ var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
972
967
  return _regenerator.default.wrap(function _callee3$(_context3) {
973
968
  while (1) switch (_context3.prev = _context3.next) {
974
969
  case 0:
@@ -986,7 +981,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
986
981
  }, _callee3);
987
982
  }));
988
983
  return function openUrl(_x3) {
989
- return _ref7.apply(this, arguments);
984
+ return _ref6.apply(this, arguments);
990
985
  };
991
986
  }();
992
987
 
@@ -1,13 +1,2 @@
1
- ._11c81il0{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
- ._18m915vq{overflow-y:hidden}
3
- ._18u01b66{margin-left:var(--ds-space-050,4px)}
4
1
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
5
- ._1bto1l2s{text-overflow:ellipsis}
6
- ._1e0ccj1k{display:-webkit-box}
7
- ._1reo15vq{overflow-x:hidden}
8
- ._1yyjkb7n{-webkit-line-clamp:1}
9
- ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
10
- ._c71l183y{max-height:21px}
11
- ._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
12
- ._sudp1e54{-webkit-box-orient:vertical}
13
2
  ._u5f31b66{padding-right:var(--ds-space-050,4px)}
@@ -22,7 +22,6 @@ var _ErroredViewOld = require("./ErroredViewOld");
22
22
  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); }
23
23
  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; }
24
24
  var styles = {
25
- messageStyles: "_11c81il0 _1reo15vq _18m915vq _k48pi7a9 _18u01b66 _2hwx1b66 _1e0ccj1k _1yyjkb7n _sudp1e54 _1bto1l2s _c71l183y",
26
25
  boxStyles: "_19bv1b66 _u5f31b66"
27
26
  };
28
27
  var EmbedCardErroredViewNew = function EmbedCardErroredViewNew(_ref) {
@@ -43,9 +42,7 @@ var EmbedCardErroredViewNew = function EmbedCardErroredViewNew(_ref) {
43
42
  label: "error-icon"
44
43
  }), /*#__PURE__*/React.createElement(_compiled.Box, {
45
44
  xcss: styles.boxStyles
46
- }, /*#__PURE__*/React.createElement(_compiled.Inline, {
47
- xcss: styles.messageStyles
48
- }, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.could_not_load_link))), /*#__PURE__*/React.createElement(_button.default, {
45
+ }, /*#__PURE__*/React.createElement(_compiled.Inline, null, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.could_not_load_link))), /*#__PURE__*/React.createElement(_button.default, {
49
46
  testId: "err-view-retry",
50
47
  appearance: "link",
51
48
  spacing: "none",
@@ -16,6 +16,7 @@ var _logo = require("@atlaskit/logo");
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
17
  var _colors = require("@atlaskit/theme/colors");
18
18
  var _blogIcon = _interopRequireDefault(require("../../../../../common/ui/icons/blog-icon"));
19
+ var _liveDocumentIcon = _interopRequireDefault(require("../../../../../common/ui/icons/live-document-icon"));
19
20
  var _pageIcon = _interopRequireDefault(require("../../../../../common/ui/icons/page-icon"));
20
21
  var _constants = require("../../../../../constants");
21
22
  var _utils = require("../../../../../utils");
@@ -167,20 +168,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
167
168
  return Promise.resolve().then(function () {
168
169
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
169
170
  });
170
- }), _constants.IconType.LiveDocument, function () {
171
- return Promise.resolve().then(function () {
172
- return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc'));
173
- }).then(function (_ref) {
174
- var LiveDocumentIcon = _ref.default;
175
- return {
176
- default: LiveDocumentIcon
177
- };
178
- });
179
171
  }), _constants.IconType.Confluence, function () {
180
172
  return Promise.resolve().then(function () {
181
173
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
182
- }).then(function (_ref2) {
183
- var ConfluenceIcon = _ref2.ConfluenceIcon;
174
+ }).then(function (_ref) {
175
+ var ConfluenceIcon = _ref.ConfluenceIcon;
184
176
  return {
185
177
  default: ConfluenceIcon
186
178
  };
@@ -188,8 +180,8 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
188
180
  }), _constants.IconType.Jira, function () {
189
181
  return Promise.resolve().then(function () {
190
182
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
191
- }).then(function (_ref3) {
192
- var JiraIcon = _ref3.JiraIcon;
183
+ }).then(function (_ref2) {
184
+ var JiraIcon = _ref2.JiraIcon;
193
185
  return {
194
186
  default: JiraIcon
195
187
  };
@@ -198,11 +190,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
198
190
  return Promise.resolve().then(function () {
199
191
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link'));
200
192
  });
201
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Error, function () {
193
+ }), _constants.IconType.Error, function () {
202
194
  return Promise.resolve().then(function () {
203
195
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error'));
204
196
  });
205
- }), _constants.IconType.Forbidden, function () {
197
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Forbidden, function () {
206
198
  return Promise.resolve().then(function () {
207
199
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled'));
208
200
  });
@@ -238,11 +230,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
238
230
  return Promise.resolve().then(function () {
239
231
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
240
232
  });
241
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.PriorityHigh, function () {
233
+ }), _constants.IconType.PriorityHigh, function () {
242
234
  return Promise.resolve().then(function () {
243
235
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high'));
244
236
  });
245
- }), _constants.IconType.PriorityHighest, function () {
237
+ }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.PriorityHighest, function () {
246
238
  return Promise.resolve().then(function () {
247
239
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest'));
248
240
  });
@@ -278,11 +270,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
278
270
  return Promise.resolve().then(function () {
279
271
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code'));
280
272
  });
281
- }), (0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Subscriber, function () {
273
+ }), _constants.IconType.Subscriber, function () {
282
274
  return Promise.resolve().then(function () {
283
275
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people'));
284
276
  });
285
- }), _constants.IconType.SubTasksProgress, function () {
277
+ }), (0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.SubTasksProgress, function () {
286
278
  return Promise.resolve().then(function () {
287
279
  return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask'));
288
280
  });
@@ -309,12 +301,12 @@ var importIcon = function importIcon(importFn) {
309
301
  }
310
302
  }); // Because we're using dynamic loading here, TS will not be able to infer the type.
311
303
  };
312
- var AtlaskitIcon = function AtlaskitIcon(_ref4) {
313
- var icon = _ref4.icon,
314
- label = _ref4.label,
315
- testId = _ref4.testId,
316
- _ref4$size = _ref4.size,
317
- size = _ref4$size === void 0 ? _constants.SmartLinkSize.Medium : _ref4$size;
304
+ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
305
+ var icon = _ref3.icon,
306
+ label = _ref3.label,
307
+ testId = _ref3.testId,
308
+ _ref3$size = _ref3.size,
309
+ size = _ref3$size === void 0 ? _constants.SmartLinkSize.Medium : _ref3$size;
318
310
  var DocumentIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _pageIcon.default : _.default;
319
311
  var BlogIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _blogIcon.default : _2.default;
320
312
 
@@ -334,6 +326,12 @@ var AtlaskitIcon = function AtlaskitIcon(_ref4) {
334
326
  }, (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') && {
335
327
  size: size
336
328
  }));
329
+ case _constants.IconType.LiveDocument:
330
+ return /*#__PURE__*/_react.default.createElement(_liveDocumentIcon.default, {
331
+ label: label || 'live-doc',
332
+ testId: testId,
333
+ size: size
334
+ });
337
335
  }
338
336
  var importFn = getIconImportFn(icon, size);
339
337
  if (!importFn) {
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "34.10.5",
23
+ packageVersion: "34.10.7",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -0,0 +1,5 @@
1
+ import LiveDocumentIcon from '@atlaskit/icon-lab/core/page-live-doc';
2
+ import { renderIconTile } from './utils';
3
+ const LiveDocumentIconWithColor = renderIconTile(LiveDocumentIcon, 'magentaBold');
4
+ LiveDocumentIconWithColor.displayName = 'LiveDocumentIconWithColor';
5
+ export default LiveDocumentIconWithColor;
@@ -33,7 +33,7 @@ export const renderIconTile = (Icon, appearance, LegacyIcon) => {
33
33
  icon: Icon,
34
34
  size: transformSmartLinkSizeToIconTileSize(size)
35
35
  }, props, {
36
- LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
36
+ LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/React.createElement(LegacyIcon, props)
37
37
  }));
38
38
  };
39
39
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IconTile } from '@atlaskit/icon';
2
3
  import DocumentIconOld from '@atlaskit/icon-file-type/glyph/document/16';
3
4
  import FileIconOld from '@atlaskit/icon-file-type/glyph/generic/16';
4
5
  import PresentationIconOld from '@atlaskit/icon-file-type/glyph/presentation/16';
@@ -136,8 +137,11 @@ const documentTypeToIcon = (type, opts) => {
136
137
  const digitalDocumentToIcon = opts => {
137
138
  var _opts$provider;
138
139
  if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
139
- return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
140
+ return /*#__PURE__*/React.createElement(IconTile, {
141
+ icon: LiveDocumentIcon,
140
142
  label: "live-doc",
143
+ appearance: "magentaBold",
144
+ shape: "square",
141
145
  testId: "live-doc-icon"
142
146
  });
143
147
  } else {
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "34.10.5"
5
+ packageVersion: "34.10.7"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -258,11 +258,7 @@ export const getLazyIcons = () => {
258
258
  },
259
259
  // Confluence icons
260
260
  [IconType.LiveDocument]: {
261
- default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc').then(({
262
- default: LiveDocumentIcon
263
- }) => ({
264
- default: LiveDocumentIcon
265
- }))
261
+ default: () => import( /* webpackChunkName: "@atlaskit-internal_live-document-icon" */'../common/ui/icons/live-document-icon')
266
262
  },
267
263
  // Provider icons
268
264
  [IconType.Confluence]: {
@@ -1,13 +1,2 @@
1
- ._11c81il0{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
- ._18m915vq{overflow-y:hidden}
3
- ._18u01b66{margin-left:var(--ds-space-050,4px)}
4
1
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
5
- ._1bto1l2s{text-overflow:ellipsis}
6
- ._1e0ccj1k{display:-webkit-box}
7
- ._1reo15vq{overflow-x:hidden}
8
- ._1yyjkb7n{-webkit-line-clamp:1}
9
- ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
10
- ._c71l183y{max-height:21px}
11
- ._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
12
- ._sudp1e54{-webkit-box-orient:vertical}
13
2
  ._u5f31b66{padding-right:var(--ds-space-050,4px)}
@@ -12,7 +12,6 @@ import { messages } from '../../../messages';
12
12
  import { Frame } from '../components/ErrorFrame';
13
13
  import { EmbedCardErroredViewOld } from './ErroredViewOld';
14
14
  const styles = {
15
- messageStyles: "_11c81il0 _1reo15vq _18m915vq _k48pi7a9 _18u01b66 _2hwx1b66 _1e0ccj1k _1yyjkb7n _sudp1e54 _1bto1l2s _c71l183y",
16
15
  boxStyles: "_19bv1b66 _u5f31b66"
17
16
  };
18
17
  const EmbedCardErroredViewNew = ({
@@ -31,9 +30,7 @@ const EmbedCardErroredViewNew = ({
31
30
  label: "error-icon"
32
31
  }), /*#__PURE__*/React.createElement(Box, {
33
32
  xcss: styles.boxStyles
34
- }, /*#__PURE__*/React.createElement(Inline, {
35
- xcss: styles.messageStyles
36
- }, /*#__PURE__*/React.createElement(FormattedMessage, messages.could_not_load_link))), /*#__PURE__*/React.createElement(Button, {
33
+ }, /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.could_not_load_link))), /*#__PURE__*/React.createElement(Button, {
37
34
  testId: "err-view-retry",
38
35
  appearance: "link",
39
36
  spacing: "none",
@@ -7,6 +7,7 @@ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { R400 } from '@atlaskit/theme/colors';
9
9
  import BlogIconNew from '../../../../../common/ui/icons/blog-icon';
10
+ import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
10
11
  import DocumentIconNew from '../../../../../common/ui/icons/page-icon';
11
12
  import { IconType, SmartLinkSize } from '../../../../../constants';
12
13
  import { getLazyIcons, isIconSizeLarge } from '../../../../../utils';
@@ -50,12 +51,6 @@ const importIconMapperOld = {
50
51
  [IconType.Story]: () => import( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16'),
51
52
  [IconType.SubTask]: () => import( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'),
52
53
  [IconType.Task]: () => import( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'),
53
- // Confluence icons
54
- [IconType.LiveDocument]: () => import( /* webpackChunkName: "glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc').then(({
55
- default: LiveDocumentIcon
56
- }) => ({
57
- default: LiveDocumentIcon
58
- })),
59
54
  // Provider icons
60
55
  [IconType.Confluence]: () => import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(({
61
56
  ConfluenceIcon
@@ -134,6 +129,12 @@ const AtlaskitIcon = ({
134
129
  }, fg('platform-smart-card-icon-migration') && {
135
130
  size
136
131
  }));
132
+ case IconType.LiveDocument:
133
+ return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
134
+ label: label || 'live-doc',
135
+ testId: testId,
136
+ size: size
137
+ });
137
138
  }
138
139
  const importFn = getIconImportFn(icon, size);
139
140
  if (!importFn) {
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "34.10.5",
13
+ packageVersion: "34.10.7",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -0,0 +1,5 @@
1
+ import LiveDocumentIcon from '@atlaskit/icon-lab/core/page-live-doc';
2
+ import { renderIconTile } from './utils';
3
+ var LiveDocumentIconWithColor = renderIconTile(LiveDocumentIcon, 'magentaBold');
4
+ LiveDocumentIconWithColor.displayName = 'LiveDocumentIconWithColor';
5
+ export default LiveDocumentIconWithColor;
@@ -34,7 +34,7 @@ export var renderIconTile = function renderIconTile(Icon, appearance, LegacyIcon
34
34
  icon: Icon,
35
35
  size: transformSmartLinkSizeToIconTileSize(size)
36
36
  }, props, {
37
- LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
37
+ LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/React.createElement(LegacyIcon, props)
38
38
  }));
39
39
  };
40
40
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IconTile } from '@atlaskit/icon';
2
3
  import DocumentIconOld from '@atlaskit/icon-file-type/glyph/document/16';
3
4
  import FileIconOld from '@atlaskit/icon-file-type/glyph/generic/16';
4
5
  import PresentationIconOld from '@atlaskit/icon-file-type/glyph/presentation/16';
@@ -136,8 +137,11 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
136
137
  var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
137
138
  var _opts$provider;
138
139
  if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
139
- return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
140
+ return /*#__PURE__*/React.createElement(IconTile, {
141
+ icon: LiveDocumentIcon,
140
142
  label: "live-doc",
143
+ appearance: "magentaBold",
144
+ shape: "square",
141
145
  testId: "live-doc-icon"
142
146
  });
143
147
  } else {
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "34.10.5"
7
+ packageVersion: "34.10.7"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -227,8 +227,8 @@ var typeToIcon = {
227
227
 
228
228
  // prettier-ignore
229
229
  export var getLazyIcons = function getLazyIcons() {
230
- var _ref4;
231
- return _ref4 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.Document, {
230
+ var _ref3;
231
+ return _ref3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Document, {
232
232
  default: function _default() {
233
233
  return import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon');
234
234
  }
@@ -268,7 +268,7 @@ export var getLazyIcons = function getLazyIcons() {
268
268
  default: function _default() {
269
269
  return import( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon');
270
270
  }
271
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.Video, {
271
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Video, {
272
272
  default: function _default() {
273
273
  return import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon');
274
274
  }
@@ -323,7 +323,7 @@ export var getLazyIcons = function getLazyIcons() {
323
323
  large: function large() {
324
324
  return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24');
325
325
  }
326
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.GoogleSheets, {
326
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.GoogleSheets, {
327
327
  default: function _default() {
328
328
  return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
329
329
  },
@@ -393,7 +393,7 @@ export var getLazyIcons = function getLazyIcons() {
393
393
  large: function large() {
394
394
  return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24');
395
395
  }
396
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.Repo, {
396
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Repo, {
397
397
  default: function _default() {
398
398
  return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
399
399
  },
@@ -463,19 +463,14 @@ export var getLazyIcons = function getLazyIcons() {
463
463
  large: function large() {
464
464
  return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24');
465
465
  }
466
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.LiveDocument, {
466
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.LiveDocument, {
467
467
  default: function _default() {
468
- return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc').then(function (_ref) {
469
- var LiveDocumentIcon = _ref.default;
470
- return {
471
- default: LiveDocumentIcon
472
- };
473
- });
468
+ return import( /* webpackChunkName: "@atlaskit-internal_live-document-icon" */'../common/ui/icons/live-document-icon');
474
469
  }
475
470
  }), IconType.Confluence, {
476
471
  default: function _default() {
477
- return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref2) {
478
- var ConfluenceIcon = _ref2.ConfluenceIcon;
472
+ return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
473
+ var ConfluenceIcon = _ref.ConfluenceIcon;
479
474
  return {
480
475
  default: ConfluenceIcon
481
476
  };
@@ -483,8 +478,8 @@ export var getLazyIcons = function getLazyIcons() {
483
478
  }
484
479
  }), IconType.Jira, {
485
480
  default: function _default() {
486
- return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref3) {
487
- var JiraIcon = _ref3.JiraIcon;
481
+ return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
482
+ var JiraIcon = _ref2.JiraIcon;
488
483
  return {
489
484
  default: JiraIcon
490
485
  };
@@ -518,7 +513,7 @@ export var getLazyIcons = function getLazyIcons() {
518
513
  default: function _default() {
519
514
  return import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
520
515
  }
521
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref4, IconType.PriorityCritical, {
516
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PriorityCritical, {
522
517
  default: function _default() {
523
518
  return import( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
524
519
  }
@@ -558,7 +553,7 @@ export var getLazyIcons = function getLazyIcons() {
558
553
  default: function _default() {
559
554
  return import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/migration/question-circle--question');
560
555
  }
561
- }), _defineProperty(_defineProperty(_defineProperty(_ref4, IconType.ProgrammingLanguage, {
556
+ }), _defineProperty(_defineProperty(_defineProperty(_ref3, IconType.ProgrammingLanguage, {
562
557
  default: function _default() {
563
558
  return import( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/migration/angle-brackets--code');
564
559
  }
@@ -604,7 +599,7 @@ export var sleep = function sleep(ms) {
604
599
  });
605
600
  };
606
601
  var _importWithRetry = /*#__PURE__*/function () {
607
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(importFn) {
602
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(importFn) {
608
603
  var retries,
609
604
  interval,
610
605
  _args = arguments;
@@ -638,12 +633,12 @@ var _importWithRetry = /*#__PURE__*/function () {
638
633
  }, _callee, null, [[2, 8]]);
639
634
  }));
640
635
  return function importWithRetry(_x) {
641
- return _ref5.apply(this, arguments);
636
+ return _ref4.apply(this, arguments);
642
637
  };
643
638
  }();
644
639
  export { _importWithRetry as importWithRetry };
645
640
  export var downloadUrl = /*#__PURE__*/function () {
646
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {
641
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {
647
642
  var isIE11, isSafari, iframeName, link, iframe;
648
643
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
649
644
  while (1) switch (_context2.prev = _context2.next) {
@@ -679,11 +674,11 @@ export var downloadUrl = /*#__PURE__*/function () {
679
674
  }, _callee2);
680
675
  }));
681
676
  return function downloadUrl(_x2) {
682
- return _ref6.apply(this, arguments);
677
+ return _ref5.apply(this, arguments);
683
678
  };
684
679
  }();
685
680
  export var openUrl = /*#__PURE__*/function () {
686
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url) {
681
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url) {
687
682
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
688
683
  while (1) switch (_context3.prev = _context3.next) {
689
684
  case 0:
@@ -701,7 +696,7 @@ export var openUrl = /*#__PURE__*/function () {
701
696
  }, _callee3);
702
697
  }));
703
698
  return function openUrl(_x3) {
704
- return _ref7.apply(this, arguments);
699
+ return _ref6.apply(this, arguments);
705
700
  };
706
701
  }();
707
702
 
@@ -1,13 +1,2 @@
1
- ._11c81il0{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
- ._18m915vq{overflow-y:hidden}
3
- ._18u01b66{margin-left:var(--ds-space-050,4px)}
4
1
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
5
- ._1bto1l2s{text-overflow:ellipsis}
6
- ._1e0ccj1k{display:-webkit-box}
7
- ._1reo15vq{overflow-x:hidden}
8
- ._1yyjkb7n{-webkit-line-clamp:1}
9
- ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
10
- ._c71l183y{max-height:21px}
11
- ._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
12
- ._sudp1e54{-webkit-box-orient:vertical}
13
2
  ._u5f31b66{padding-right:var(--ds-space-050,4px)}
@@ -12,7 +12,6 @@ import { messages } from '../../../messages';
12
12
  import { Frame } from '../components/ErrorFrame';
13
13
  import { EmbedCardErroredViewOld } from './ErroredViewOld';
14
14
  var styles = {
15
- messageStyles: "_11c81il0 _1reo15vq _18m915vq _k48pi7a9 _18u01b66 _2hwx1b66 _1e0ccj1k _1yyjkb7n _sudp1e54 _1bto1l2s _c71l183y",
16
15
  boxStyles: "_19bv1b66 _u5f31b66"
17
16
  };
18
17
  var EmbedCardErroredViewNew = function EmbedCardErroredViewNew(_ref) {
@@ -33,9 +32,7 @@ var EmbedCardErroredViewNew = function EmbedCardErroredViewNew(_ref) {
33
32
  label: "error-icon"
34
33
  }), /*#__PURE__*/React.createElement(Box, {
35
34
  xcss: styles.boxStyles
36
- }, /*#__PURE__*/React.createElement(Inline, {
37
- xcss: styles.messageStyles
38
- }, /*#__PURE__*/React.createElement(FormattedMessage, messages.could_not_load_link))), /*#__PURE__*/React.createElement(Button, {
35
+ }, /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.could_not_load_link))), /*#__PURE__*/React.createElement(Button, {
39
36
  testId: "err-view-retry",
40
37
  appearance: "link",
41
38
  spacing: "none",
@@ -9,6 +9,7 @@ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { R400 } from '@atlaskit/theme/colors';
11
11
  import BlogIconNew from '../../../../../common/ui/icons/blog-icon';
12
+ import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
12
13
  import DocumentIconNew from '../../../../../common/ui/icons/page-icon';
13
14
  import { IconType, SmartLinkSize } from '../../../../../constants';
14
15
  import { getLazyIcons, isIconSizeLarge } from '../../../../../utils';
@@ -85,32 +86,25 @@ var importIconMapperOld = (_importIconMapperOld = {}, _defineProperty(_definePro
85
86
  return import( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16');
86
87
  }), IconType.Task, function () {
87
88
  return import( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16');
88
- }), IconType.LiveDocument, function () {
89
- return import( /* webpackChunkName: "glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc').then(function (_ref) {
90
- var LiveDocumentIcon = _ref.default;
91
- return {
92
- default: LiveDocumentIcon
93
- };
94
- });
95
89
  }), IconType.Confluence, function () {
96
- return import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref2) {
97
- var ConfluenceIcon = _ref2.ConfluenceIcon;
90
+ return import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
91
+ var ConfluenceIcon = _ref.ConfluenceIcon;
98
92
  return {
99
93
  default: ConfluenceIcon
100
94
  };
101
95
  });
102
96
  }), IconType.Jira, function () {
103
- return import( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref3) {
104
- var JiraIcon = _ref3.JiraIcon;
97
+ return import( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
98
+ var JiraIcon = _ref2.JiraIcon;
105
99
  return {
106
100
  default: JiraIcon
107
101
  };
108
102
  });
109
103
  }), IconType.Default, function () {
110
104
  return import( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link');
111
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Error, function () {
105
+ }), IconType.Error, function () {
112
106
  return import( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error');
113
- }), IconType.Forbidden, function () {
107
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Forbidden, function () {
114
108
  return import( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled');
115
109
  }), IconType.Attachment, function () {
116
110
  return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment');
@@ -128,9 +122,9 @@ var importIconMapperOld = (_importIconMapperOld = {}, _defineProperty(_definePro
128
122
  return import( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
129
123
  }), IconType.PriorityCritical, function () {
130
124
  return import( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
131
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.PriorityHigh, function () {
125
+ }), IconType.PriorityHigh, function () {
132
126
  return import( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
133
- }), IconType.PriorityHighest, function () {
127
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.PriorityHighest, function () {
134
128
  return import( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
135
129
  }), IconType.PriorityLow, function () {
136
130
  return import( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
@@ -148,9 +142,9 @@ var importIconMapperOld = (_importIconMapperOld = {}, _defineProperty(_definePro
148
142
  return import( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question');
149
143
  }), IconType.ProgrammingLanguage, function () {
150
144
  return import( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code');
151
- }), _defineProperty(_defineProperty(_importIconMapperOld, IconType.Subscriber, function () {
145
+ }), IconType.Subscriber, function () {
152
146
  return import( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people');
153
- }), IconType.SubTasksProgress, function () {
147
+ }), _defineProperty(_importIconMapperOld, IconType.SubTasksProgress, function () {
154
148
  return import( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask');
155
149
  }));
156
150
  var getIconImportFn = function getIconImportFn(icon, size) {
@@ -175,12 +169,12 @@ var importIcon = function importIcon(importFn) {
175
169
  }
176
170
  }); // Because we're using dynamic loading here, TS will not be able to infer the type.
177
171
  };
178
- var AtlaskitIcon = function AtlaskitIcon(_ref4) {
179
- var icon = _ref4.icon,
180
- label = _ref4.label,
181
- testId = _ref4.testId,
182
- _ref4$size = _ref4.size,
183
- size = _ref4$size === void 0 ? SmartLinkSize.Medium : _ref4$size;
172
+ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
173
+ var icon = _ref3.icon,
174
+ label = _ref3.label,
175
+ testId = _ref3.testId,
176
+ _ref3$size = _ref3.size,
177
+ size = _ref3$size === void 0 ? SmartLinkSize.Medium : _ref3$size;
184
178
  var DocumentIcon = fg('platform-smart-card-icon-migration') ? DocumentIconNew : DocumentIconOld;
185
179
  var BlogIcon = fg('platform-smart-card-icon-migration') ? BlogIconNew : BlogIconOld;
186
180
 
@@ -200,6 +194,12 @@ var AtlaskitIcon = function AtlaskitIcon(_ref4) {
200
194
  }, fg('platform-smart-card-icon-migration') && {
201
195
  size: size
202
196
  }));
197
+ case IconType.LiveDocument:
198
+ return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
199
+ label: label || 'live-doc',
200
+ testId: testId,
201
+ size: size
202
+ });
203
203
  }
204
204
  var importFn = getIconImportFn(icon, size);
205
205
  if (!importFn) {
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "34.10.5",
16
+ packageVersion: "34.10.7",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const LiveDocumentIconWithColor: import("react").FC<import("./types").AtlaskitIconTileProps>;
3
+ export default LiveDocumentIconWithColor;
@@ -11,5 +11,5 @@ export declare const renderIconPerSize: (IconSmall: ComponentType<IconProps>, Ic
11
11
  size?: SmartLinkSize;
12
12
  }>;
13
13
  type IconTileProps = ComponentPropsWithoutRef<typeof IconTile>;
14
- export declare const renderIconTile: (Icon: IconTileProps['icon'], appearance: IconTileProps['appearance'], LegacyIcon: ComponentType<Omit<AtlaskitIconTileProps, 'size'>>) => React.FC<AtlaskitIconTileProps>;
14
+ export declare const renderIconTile: (Icon: IconTileProps['icon'], appearance: IconTileProps['appearance'], LegacyIcon?: ComponentType<Omit<AtlaskitIconTileProps, 'size'>>) => React.FC<AtlaskitIconTileProps>;
15
15
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const LiveDocumentIconWithColor: import("react").FC<import("./types").AtlaskitIconTileProps>;
3
+ export default LiveDocumentIconWithColor;
@@ -11,5 +11,5 @@ export declare const renderIconPerSize: (IconSmall: ComponentType<IconProps>, Ic
11
11
  size?: SmartLinkSize;
12
12
  }>;
13
13
  type IconTileProps = ComponentPropsWithoutRef<typeof IconTile>;
14
- export declare const renderIconTile: (Icon: IconTileProps['icon'], appearance: IconTileProps['appearance'], LegacyIcon: ComponentType<Omit<AtlaskitIconTileProps, 'size'>>) => React.FC<AtlaskitIconTileProps>;
14
+ export declare const renderIconTile: (Icon: IconTileProps['icon'], appearance: IconTileProps['appearance'], LegacyIcon?: ComponentType<Omit<AtlaskitIconTileProps, 'size'>>) => React.FC<AtlaskitIconTileProps>;
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "34.10.5",
3
+ "version": "34.10.7",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,13 +58,13 @@
58
58
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
59
59
  "@atlaskit/platform-feature-flags": "^1.0.0",
60
60
  "@atlaskit/popup": "^1.31.0",
61
- "@atlaskit/primitives": "^13.4.0",
61
+ "@atlaskit/primitives": "^13.5.0",
62
62
  "@atlaskit/section-message": "^6.9.0",
63
63
  "@atlaskit/select": "^18.10.0",
64
64
  "@atlaskit/spinner": "^17.1.0",
65
- "@atlaskit/textarea": "^5.8.0",
65
+ "@atlaskit/textarea": "^6.0.0",
66
66
  "@atlaskit/textfield": "^6.8.0",
67
- "@atlaskit/theme": "^14.1.0",
67
+ "@atlaskit/theme": "^15.0.0",
68
68
  "@atlaskit/tokens": "^3.3.0",
69
69
  "@atlaskit/tooltip": "^19.1.0",
70
70
  "@atlaskit/ufo": "^0.3.0",
@@ -95,7 +95,7 @@
95
95
  "@af/integration-testing": "*",
96
96
  "@af/visual-regression": "*",
97
97
  "@atlaskit/analytics-listeners": "^8.14.0",
98
- "@atlaskit/css-reset": "^6.11.0",
98
+ "@atlaskit/css-reset": "^6.12.0",
99
99
  "@atlaskit/link-test-helpers": "^7.6.0",
100
100
  "@atlaskit/media-test-helpers": "^34.8.0",
101
101
  "@atlaskit/react-ufo": "^2.14.0",