@atlaskit/smart-card 36.13.2 → 36.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/common/ui/icons/angle-brackets-icon.js +2 -1
  3. package/dist/cjs/common/ui/icons/audio-icon.js +2 -1
  4. package/dist/cjs/common/ui/icons/chart-bar-icon.js +2 -1
  5. package/dist/cjs/common/ui/icons/file-icon.js +2 -1
  6. package/dist/cjs/common/ui/icons/folder-icon.js +2 -1
  7. package/dist/cjs/common/ui/icons/image-icon.js +2 -1
  8. package/dist/cjs/common/ui/icons/list-bullet-icon.js +2 -1
  9. package/dist/cjs/common/ui/icons/page-icon.js +2 -1
  10. package/dist/cjs/common/ui/icons/utils.js +3 -1
  11. package/dist/cjs/common/ui/icons/video-icon.js +2 -1
  12. package/dist/cjs/messages.js +3 -0
  13. package/dist/cjs/utils/analytics/analytics.js +1 -1
  14. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -315
  16. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +16 -6
  17. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  18. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +13 -26
  19. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +6 -2
  20. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +11 -0
  21. package/dist/cjs/view/FlexibleCard/components/utils.js +2 -25
  22. package/dist/cjs/view/FlexibleCard/external.js +22 -4
  23. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +4 -3
  24. package/dist/cjs/view/InlineCard/ResolvedView/index.js +4 -3
  25. package/dist/cjs/view/LinkUrl/index.js +1 -1
  26. package/dist/es2019/common/ui/icons/angle-brackets-icon.js +3 -2
  27. package/dist/es2019/common/ui/icons/audio-icon.js +3 -2
  28. package/dist/es2019/common/ui/icons/chart-bar-icon.js +3 -2
  29. package/dist/es2019/common/ui/icons/file-icon.js +3 -2
  30. package/dist/es2019/common/ui/icons/folder-icon.js +3 -2
  31. package/dist/es2019/common/ui/icons/image-icon.js +3 -2
  32. package/dist/es2019/common/ui/icons/list-bullet-icon.js +3 -2
  33. package/dist/es2019/common/ui/icons/page-icon.js +3 -2
  34. package/dist/es2019/common/ui/icons/utils.js +3 -1
  35. package/dist/es2019/common/ui/icons/video-icon.js +3 -2
  36. package/dist/es2019/messages.js +3 -0
  37. package/dist/es2019/utils/analytics/analytics.js +1 -1
  38. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
  39. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -131
  40. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +15 -6
  41. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  42. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +15 -28
  43. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +5 -2
  44. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +11 -0
  45. package/dist/es2019/view/FlexibleCard/components/utils.js +1 -24
  46. package/dist/es2019/view/FlexibleCard/external.js +27 -3
  47. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +4 -3
  48. package/dist/es2019/view/InlineCard/ResolvedView/index.js +4 -3
  49. package/dist/es2019/view/LinkUrl/index.js +1 -1
  50. package/dist/esm/common/ui/icons/angle-brackets-icon.js +3 -2
  51. package/dist/esm/common/ui/icons/audio-icon.js +3 -2
  52. package/dist/esm/common/ui/icons/chart-bar-icon.js +3 -2
  53. package/dist/esm/common/ui/icons/file-icon.js +3 -2
  54. package/dist/esm/common/ui/icons/folder-icon.js +3 -2
  55. package/dist/esm/common/ui/icons/image-icon.js +3 -2
  56. package/dist/esm/common/ui/icons/list-bullet-icon.js +3 -2
  57. package/dist/esm/common/ui/icons/page-icon.js +3 -2
  58. package/dist/esm/common/ui/icons/utils.js +3 -1
  59. package/dist/esm/common/ui/icons/video-icon.js +3 -2
  60. package/dist/esm/messages.js +3 -0
  61. package/dist/esm/utils/analytics/analytics.js +1 -1
  62. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
  63. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +37 -192
  64. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +16 -6
  65. package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  66. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +13 -26
  67. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +6 -2
  68. package/dist/esm/view/FlexibleCard/components/elements/utils.js +11 -0
  69. package/dist/esm/view/FlexibleCard/components/utils.js +1 -24
  70. package/dist/esm/view/FlexibleCard/external.js +22 -4
  71. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +4 -3
  72. package/dist/esm/view/InlineCard/ResolvedView/index.js +4 -3
  73. package/dist/esm/view/LinkUrl/index.js +1 -1
  74. package/dist/types/common/ui/icons/utils.d.ts +1 -1
  75. package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
  76. package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
  77. package/dist/types/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
  78. package/dist/types/view/FlexibleCard/components/elements/text/types.d.ts +6 -1
  79. package/dist/types/view/FlexibleCard/components/utils.d.ts +0 -2
  80. package/dist/types/view/FlexibleCard/external.d.ts +12 -3
  81. package/dist/types/view/HoverCard/types.d.ts +1 -0
  82. package/dist/types-ts4.5/common/ui/icons/utils.d.ts +1 -1
  83. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +1 -1
  84. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +4 -0
  85. package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/index.d.ts +1 -1
  86. package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/types.d.ts +6 -1
  87. package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +0 -2
  88. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +12 -3
  89. package/dist/types-ts4.5/view/HoverCard/types.d.ts +1 -0
  90. package/package.json +9 -6
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/audio/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/audio/24';
2
3
  import AudioIcon from '@atlaskit/icon/core/audio';
3
- import { renderIconTile } from './utils';
4
- var AudioIconWithColor = renderIconTile(AudioIcon, 'redBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var AudioIconWithColor = renderIconTile(AudioIcon, 'redBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  AudioIconWithColor.displayName = 'AudioIconWithColor';
6
7
  export default AudioIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/presentation/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/presentation/24';
2
3
  import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
3
- import { renderIconTile } from './utils';
4
- var ChartBarIconWithColor = renderIconTile(ChartBarIcon, 'purpleBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var ChartBarIconWithColor = renderIconTile(ChartBarIcon, 'purpleBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
6
7
  export default ChartBarIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/generic/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/generic/24';
2
3
  import FileIcon from '@atlaskit/icon/core/file';
3
- import { renderIconTile } from './utils';
4
- var FileIconWithColor = renderIconTile(FileIcon, 'grayBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var FileIconWithColor = renderIconTile(FileIcon, 'grayBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  FileIconWithColor.displayName = 'FileIconWithColor';
6
7
  export default FileIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/folder/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/folder/24';
2
3
  import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
3
- import { renderIconTile } from './utils';
4
- var FolderClosedIconWithColor = renderIconTile(FolderClosedIcon, 'blueBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var FolderClosedIconWithColor = renderIconTile(FolderClosedIcon, 'blueBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
6
7
  export default FolderClosedIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/image/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/image/24';
2
3
  import ImageIcon from '@atlaskit/icon/core/image';
3
- import { renderIconTile } from './utils';
4
- var ImageIconWithColor = renderIconTile(ImageIcon, 'yellowBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var ImageIconWithColor = renderIconTile(ImageIcon, 'yellowBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  ImageIconWithColor.displayName = 'ImageIconWithColor';
6
7
  export default ImageIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/spreadsheet/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/spreadsheet/24';
2
3
  import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
3
- import { renderIconTile } from './utils';
4
- var ListBulletedIconWithColor = renderIconTile(ListBulletedIcon, 'greenBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var ListBulletedIconWithColor = renderIconTile(ListBulletedIcon, 'greenBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  ListBulletedIconWithColor.displayName = 'ListBulletedIconWithColor';
6
7
  export default ListBulletedIconWithColor;
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/document/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/document/24';
2
3
  import PageIcon from '@atlaskit/icon/core/page';
3
- import { renderIconTile } from './utils';
4
- var PageIconWithColor = renderIconTile(PageIcon, 'blueBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var PageIconWithColor = renderIconTile(PageIcon, 'blueBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  PageIconWithColor.displayName = 'PageIconWithColor';
6
7
  export default PageIconWithColor;
@@ -34,7 +34,9 @@ export var renderIconTile = function renderIconTile(Icon, appearance, LegacyIcon
34
34
  icon: Icon,
35
35
  size: transformSmartLinkSizeToIconTileSize(size)
36
36
  }, props, {
37
- LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/React.createElement(LegacyIcon, props)
37
+ LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/React.createElement(LegacyIcon, _extends({}, props, {
38
+ size: size
39
+ }))
38
40
  }));
39
41
  };
40
42
  };
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/video/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/video/24';
2
3
  import VideoIcon from '@atlaskit/icon/core/video';
3
- import { renderIconTile } from './utils';
4
- var VideoIconWithColor = renderIconTile(VideoIcon, 'redBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var VideoIconWithColor = renderIconTile(VideoIcon, 'redBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  VideoIconWithColor.displayName = 'VideoIconWithColor';
6
7
  export default VideoIconWithColor;
@@ -354,6 +354,9 @@ export var messages = defineMessages({
354
354
  defaultMessage: 'More actions',
355
355
  description: 'Allows the users to see more link actions'
356
356
  },
357
+ /**
358
+ * @deprecated remove when cleaning up FG platform_bandicoots-smart-card-disable-aria
359
+ */
357
360
  more_information_about_this_work_item: {
358
361
  id: 'fabric.linking.more_information_about_this_work_item',
359
362
  defaultMessage: 'More information about this work item',
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "36.13.2"
7
+ packageVersion: "36.15.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,7 +5,7 @@ var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
5
5
  import React from 'react';
6
6
  import { SmartLinkSize } from '../../../../../../constants';
7
7
  import { LoadingSkeleton } from '../../../common/loading-skeleton';
8
- import { getIconWidthNew } from '../../../utils';
8
+ import { getIconWidth } from '../../../utils';
9
9
  import Block from '../../block';
10
10
  /**
11
11
  * This represents a TitleBlock for a Smart Link that is currently waiting
@@ -21,7 +21,7 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
21
21
  blockProps = _objectWithoutProperties(_ref, _excluded);
22
22
  var _blockProps$size = blockProps.size,
23
23
  size = _blockProps$size === void 0 ? SmartLinkSize.Medium : _blockProps$size;
24
- var iconWidth = getIconWidthNew(size);
24
+ var iconWidth = getIconWidth(size);
25
25
  return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
26
26
  testId: "".concat(testId, "-resolving-view")
27
27
  }), !hideIcon && /*#__PURE__*/React.createElement("span", {
@@ -1,161 +1,17 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- var _importIconMapperOld;
4
1
  import React from 'react';
5
2
  import Loadable from 'react-loadable';
6
- import DocumentIconOld from '@atlaskit/icon-file-type/glyph/document/16';
7
- import BlogIconOld from '@atlaskit/icon-object/glyph/blog/16';
8
3
  import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
- import { R400 } from '@atlaskit/theme/colors';
11
- import BlogIconNew from '../../../../../common/ui/icons/blog-icon';
4
+ import BlogIcon from '../../../../../common/ui/icons/blog-icon';
12
5
  import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
13
- import DocumentIconNew from '../../../../../common/ui/icons/page-icon';
6
+ import DocumentIcon from '../../../../../common/ui/icons/page-icon';
14
7
  import { IconType, SmartLinkSize } from '../../../../../constants';
15
8
  import { getLazyIcons, isIconSizeLarge } from '../../../../../utils';
16
- // prettier-ignore
17
- var importIconMapperOld = (_importIconMapperOld = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Archive, function () {
18
- return import( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
19
- }), IconType.Audio, function () {
20
- return import( /* webpackChunkName: "glyphAudio" */'@atlaskit/icon-file-type/glyph/audio/16');
21
- }), IconType.Code, function () {
22
- return import( /* webpackChunkName: "glyphCode" */'@atlaskit/icon-file-type/glyph/source-code/16');
23
- }), IconType.Executable, function () {
24
- return import( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16');
25
- }), IconType.File, function () {
26
- return import( /* webpackChunkName: "glyphFile" */'@atlaskit/icon-file-type/glyph/generic/16');
27
- }), IconType.Folder, function () {
28
- return import( /* webpackChunkName: "glyphFolder" */'@atlaskit/icon-file-type/glyph/folder/16');
29
- }), IconType.Generic, function () {
30
- return import( /* webpackChunkName: "glyphGeneric" */'@atlaskit/icon-file-type/glyph/generic/16');
31
- }), IconType.GIF, function () {
32
- return import( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16');
33
- }), IconType.GoogleDocs, function () {
34
- return import( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16');
35
- }), IconType.GoogleForms, function () {
36
- return import( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
37
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.GoogleSheets, function () {
38
- return import( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
39
- }), IconType.GoogleSlides, function () {
40
- return import( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16');
41
- }), IconType.Image, function () {
42
- return import( /* webpackChunkName: "glyphImage" */'@atlaskit/icon-file-type/glyph/image/16');
43
- }), IconType.MSExcel, function () {
44
- return import( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16');
45
- }), IconType.MSPowerpoint, function () {
46
- return import( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16');
47
- }), IconType.MSWord, function () {
48
- return import( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16');
49
- }), IconType.PDF, function () {
50
- return import( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16');
51
- }), IconType.Presentation, function () {
52
- return import( /* webpackChunkName: "glyphPresentation" */'@atlaskit/icon-file-type/glyph/presentation/16');
53
- }), IconType.Sketch, function () {
54
- return import( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16');
55
- }), IconType.Spreadsheet, function () {
56
- return import( /* webpackChunkName: "glyphSpreadsheet" */'@atlaskit/icon-file-type/glyph/spreadsheet/16');
57
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Template, function () {
58
- return import( /* webpackChunkName: "glyphTemplate" */'@atlaskit/icon/glyph/document-filled');
59
- }), IconType.Video, function () {
60
- return import( /* webpackChunkName: "glyphVideo" */'@atlaskit/icon-file-type/glyph/video/16');
61
- }), IconType.Branch, function () {
62
- return import( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16');
63
- }), IconType.Commit, function () {
64
- return import( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16');
65
- }), IconType.Project, function () {
66
- return import( /* webpackChunkName: "glyphProject" */'@atlaskit/icon/glyph/people-group');
67
- }), IconType.PullRequest, function () {
68
- return import( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
69
- }), IconType.Repo, function () {
70
- return import( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
71
- }), IconType.Bug, function () {
72
- return import( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16');
73
- }), IconType.Change, function () {
74
- return import( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16');
75
- }), IconType.Epic, function () {
76
- return import( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16');
77
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Incident, function () {
78
- return import( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16');
79
- }), IconType.Problem, function () {
80
- return import( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16');
81
- }), IconType.ServiceRequest, function () {
82
- return import( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16');
83
- }), IconType.Story, function () {
84
- return import( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16');
85
- }), IconType.SubTask, function () {
86
- return import( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16');
87
- }), IconType.Task, function () {
88
- return import( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16');
89
- }), IconType.Confluence, function () {
90
- return import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
91
- var ConfluenceIcon = _ref.ConfluenceIcon;
92
- return {
93
- default: ConfluenceIcon
94
- };
95
- });
96
- }), IconType.Jira, function () {
97
- return import( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
98
- var JiraIcon = _ref2.JiraIcon;
99
- return {
100
- default: JiraIcon
101
- };
102
- });
103
- }), IconType.Default, function () {
104
- return import( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link');
105
- }), IconType.Error, function () {
106
- return import( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error');
107
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.Forbidden, function () {
108
- return import( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled');
109
- }), IconType.Attachment, function () {
110
- return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment');
111
- }), IconType.CheckItem, function () {
112
- return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/task');
113
- }), IconType.Comment, function () {
114
- return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/comment');
115
- }), IconType.View, function () {
116
- return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/watch');
117
- }), IconType.React, function () {
118
- return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/like');
119
- }), IconType.Vote, function () {
120
- return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/arrow-up');
121
- }), IconType.PriorityBlocker, function () {
122
- return import( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
123
- }), IconType.PriorityCritical, function () {
124
- return import( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
125
- }), IconType.PriorityHigh, function () {
126
- return import( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
127
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapperOld, IconType.PriorityHighest, function () {
128
- return import( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
129
- }), IconType.PriorityLow, function () {
130
- return import( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
131
- }), IconType.PriorityLowest, function () {
132
- return import( /* webpackChunkName: "glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest');
133
- }), IconType.PriorityMajor, function () {
134
- return import( /* webpackChunkName: "glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major');
135
- }), IconType.PriorityMedium, function () {
136
- return import( /* webpackChunkName: "glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium');
137
- }), IconType.PriorityMinor, function () {
138
- return import( /* webpackChunkName: "glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
139
- }), IconType.PriorityTrivial, function () {
140
- return import( /* webpackChunkName: "glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
141
- }), IconType.PriorityUndefined, function () {
142
- return import( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question');
143
- }), IconType.ProgrammingLanguage, function () {
144
- return import( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code');
145
- }), IconType.Subscriber, function () {
146
- return import( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people');
147
- }), _defineProperty(_importIconMapperOld, IconType.SubTasksProgress, function () {
148
- return import( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask');
149
- }));
150
9
  var getIconImportFn = function getIconImportFn(icon, size) {
151
- if (fg('platform-smart-card-icon-migration')) {
152
- var item = getLazyIcons()[icon];
153
- if (isIconSizeLarge(size) && item !== null && item !== void 0 && item.large) {
154
- return item.large;
155
- }
156
- return item === null || item === void 0 ? void 0 : item.default;
10
+ var item = getLazyIcons()[icon];
11
+ if (isIconSizeLarge(size) && item !== null && item !== void 0 && item.large) {
12
+ return item.large;
157
13
  }
158
- return importIconMapperOld[icon];
14
+ return item === null || item === void 0 ? void 0 : item.default;
159
15
  };
160
16
  var importIcon = function importIcon(importFn) {
161
17
  return Loadable({
@@ -169,38 +25,32 @@ var importIcon = function importIcon(importFn) {
169
25
  }
170
26
  }); // Because we're using dynamic loading here, TS will not be able to infer the type.
171
27
  };
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;
178
- var DocumentIcon = fg('platform-smart-card-icon-migration') ? DocumentIconNew : DocumentIconOld;
179
- var BlogIcon = fg('platform-smart-card-icon-migration') ? BlogIconNew : BlogIconOld;
180
-
28
+ var AtlaskitIcon = function AtlaskitIcon(_ref) {
29
+ var icon = _ref.icon,
30
+ label = _ref.label,
31
+ testId = _ref.testId,
32
+ _ref$size = _ref.size,
33
+ size = _ref$size === void 0 ? SmartLinkSize.Medium : _ref$size;
181
34
  // Check for synchonously loaded icons first for SSR purposes
182
35
  switch (icon) {
183
36
  case IconType.Document:
184
- return /*#__PURE__*/React.createElement(DocumentIcon, _extends({
37
+ return /*#__PURE__*/React.createElement(DocumentIcon, {
185
38
  label: label !== null && label !== void 0 ? label : 'document',
186
- testId: testId
187
- }, fg('platform-smart-card-icon-migration') && {
39
+ testId: testId,
188
40
  size: size
189
- }));
41
+ });
190
42
  case IconType.Blog:
191
- return /*#__PURE__*/React.createElement(BlogIcon, _extends({
43
+ return /*#__PURE__*/React.createElement(BlogIcon, {
192
44
  label: label !== null && label !== void 0 ? label : 'blog',
193
- testId: testId
194
- }, fg('platform-smart-card-icon-migration') && {
45
+ testId: testId,
195
46
  size: size
196
- }));
47
+ });
197
48
  case IconType.LiveDocument:
198
- return /*#__PURE__*/React.createElement(LiveDocumentIcon, _extends({
49
+ return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
199
50
  label: label !== null && label !== void 0 ? label : 'live-doc',
200
- testId: testId
201
- }, fg('platform-smart-card-icon-migration') && {
51
+ testId: testId,
202
52
  size: size
203
- }));
53
+ });
204
54
  }
205
55
  var importFn = getIconImportFn(icon, size);
206
56
  if (!importFn) {
@@ -209,37 +59,32 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
209
59
  var ImportedIcon = importIcon(importFn);
210
60
  switch (icon) {
211
61
  case IconType.Confluence:
212
- return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
62
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
213
63
  appearance: "brand",
214
- testId: testId
215
- }, fg('platform-smart-card-icon-migration') && {
216
- size: size === SmartLinkSize.Large ? 'small' : 'xsmall'
217
- }));
64
+ testId: testId,
65
+ size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xsmall'
66
+ });
218
67
  case IconType.Jira:
219
- return /*#__PURE__*/React.createElement(JiraIcon, _extends({
68
+ return /*#__PURE__*/React.createElement(JiraIcon, {
220
69
  appearance: "brand",
221
- testId: testId
222
- }, fg('platform-smart-card-icon-migration') && {
223
- size: size === SmartLinkSize.Large ? 'small' : 'xsmall'
224
- }));
70
+ testId: testId,
71
+ size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xsmall'
72
+ });
225
73
  case IconType.Error:
226
74
  case IconType.Forbidden:
227
- return /*#__PURE__*/React.createElement(ImportedIcon, _extends({
75
+ return /*#__PURE__*/React.createElement(ImportedIcon, {
228
76
  label: label,
229
- testId: testId
230
- }, fg('platform-smart-card-icon-migration') ? {
231
- size: size,
77
+ testId: testId,
78
+ LEGACY_size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'medium' : 'small',
232
79
  color: "var(--ds-icon-danger, #C9372C)"
233
- } : {
234
- primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
235
- }));
80
+ });
236
81
  default:
237
- return /*#__PURE__*/React.createElement(ImportedIcon, _extends({
82
+ return /*#__PURE__*/React.createElement(ImportedIcon, {
238
83
  label: label,
239
- testId: testId
240
- }, fg('platform-smart-card-icon-migration') && {
84
+ testId: testId,
85
+ LEGACY_size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'medium' : 'small',
241
86
  size: size
242
- }));
87
+ });
243
88
  }
244
89
  };
245
90
  export default AtlaskitIcon;
@@ -40,7 +40,9 @@ var DateTime = function DateTime(_ref) {
40
40
  type = _ref.type,
41
41
  _ref$testId = _ref.testId,
42
42
  testId = _ref$testId === void 0 ? 'smart-element-date-time' : _ref$testId,
43
- text = _ref.text;
43
+ text = _ref.text,
44
+ _ref$hideDatePrefix = _ref.hideDatePrefix,
45
+ hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix;
44
46
  var _useIntl = useIntl(),
45
47
  formatRelativeTime = _useIntl.formatRelativeTime,
46
48
  formatDate = _useIntl.formatDate;
@@ -66,6 +68,18 @@ var DateTime = function DateTime(_ref) {
66
68
  numeric: 'auto'
67
69
  });
68
70
  }
71
+ var content;
72
+ if (hideDatePrefix && fg('platform-linking-additional-flexible-element-props')) {
73
+ content = context;
74
+ } else if (text) {
75
+ content = "".concat(text, " ").concat(context);
76
+ } else {
77
+ content = /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
78
+ values: {
79
+ context: context
80
+ }
81
+ }));
82
+ }
69
83
  return /*#__PURE__*/React.createElement("span", {
70
84
  "data-separator": true,
71
85
  "data-smart-element": name,
@@ -74,10 +88,6 @@ var DateTime = function DateTime(_ref) {
74
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
75
89
  ,
76
90
  className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", className])
77
- }, text ? "".concat(text, " ").concat(context) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
78
- values: {
79
- context: context
80
- }
81
- })));
91
+ }, content);
82
92
  };
83
93
  export default DateTime;
@@ -1,18 +1,9 @@
1
1
  ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._11c8nf1z{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
- ._16jlidpf{flex-grow:0}
4
3
  ._18m915vq{overflow-y:hidden}
5
4
  ._18u0idpf{margin-left:0}
6
- ._19l31j6v img, ._1pr21j6v span, ._1u5t1j6v svg{max-height:1rem}
7
- ._19l31k8s img, ._1pr21k8s span, ._1u5t1k8s svg{max-height:1.5rem}
8
- ._19l3oqnp img, ._1pr2oqnp span, ._1u5toqnp svg{max-height:.75rem}
9
- ._19l3viql img, ._1pr2viql span, ._1u5tviql svg{max-height:2rem}
10
5
  ._19pkidpf{margin-top:0}
11
6
  ._1bah1h6o{justify-content:center}
12
- ._1bsb1j6v{width:1rem}
13
- ._1bsb1k8s{width:1.5rem}
14
- ._1bsboqnp{width:.75rem}
15
- ._1bsbviql{width:2rem}
16
7
  ._1btozryt{text-overflow:clip}
17
8
  ._1e0c1txw{display:flex}
18
9
  ._1e0ccj1k{display:-webkit-box}
@@ -20,74 +11,22 @@
20
11
  ._1kdcidpf span{margin-right:0}
21
12
  ._1m2uidpf span{padding-bottom:0}
22
13
  ._1nmz1hna{word-break:break-word}
23
- ._1o9zidpf{flex-shrink:0}
24
14
  ._1oh2idpf span{padding-top:0}
25
15
  ._1reo15vq{overflow-x:hidden}
26
- ._1rg21j6v img, ._q7cv1j6v span, ._xwbj1j6v svg{min-width:1rem}
27
- ._1rg21k8s img, ._q7cv1k8s span, ._xwbj1k8s svg{min-width:1.5rem}
28
- ._1rg2oqnp img, ._q7cvoqnp span, ._xwbjoqnp svg{min-width:.75rem}
29
- ._1rg2viql img, ._q7cvviql span, ._xwbjviql svg{min-width:2rem}
30
- ._1tke1j6v{min-height:1rem}
31
- ._1tke1k8s{min-height:1.5rem}
32
- ._1tkeoqnp{min-height:.75rem}
33
- ._1tkeviql{min-height:2rem}
34
- ._1ul91j6v{min-width:1rem}
35
- ._1ul91k8s{min-width:1.5rem}
36
16
  ._1ul91ns9{min-width:-moz-fit-content;min-width:fit-content}
37
- ._1ul9oqnp{min-width:.75rem}
38
- ._1ul9viql{min-width:2rem}
39
17
  ._1w2uidpf span{margin-left:0}
40
18
  ._1wpz1h6o{align-self:center}
41
19
  ._1wpz1y6m{align-self:flex-start}
42
- ._1wyb1j6v{font-size:1rem}
43
- ._1wyb1k8s{font-size:1.5rem}
44
- ._1wyboqnp{font-size:.75rem}
45
- ._1wybviql{font-size:2rem}
20
+ ._1xjx1osq span{height:100%}
46
21
  ._1yyjkb7n{-webkit-line-clamp:1}
47
22
  ._2hwxidpf{margin-right:0}
48
23
  ._3glyidpf span{margin-bottom:0}
49
24
  ._4cvr1h6o{align-items:center}
50
- ._4t3i1j6v{height:1rem}
51
- ._4t3i1k8s{height:1.5rem}
52
- ._4t3ioqnp{height:.75rem}
53
- ._4t3iviql{height:2rem}
54
- ._5jw9idpf svg{padding-bottom:0}
55
- ._7wy9idpf svg{padding-left:0}
56
25
  ._99ztidpf span{padding-right:0}
57
26
  ._9n9oidpf span{padding-left:0}
58
- ._bna71j6v img, ._1xjx1j6v span, ._17521j6v svg{height:1rem}
59
- ._bna71k8s img, ._1xjx1k8s span, ._17521k8s svg{height:1.5rem}
60
- ._bna7oqnp img, ._1xjxoqnp span, ._1752oqnp svg{height:.75rem}
61
- ._bna7viql img, ._1xjxviql span, ._1752viql svg{height:2rem}
62
- ._c71l1j6v{max-height:1rem}
63
- ._c71l1k8s{max-height:1.5rem}
64
- ._c71loqnp{max-height:.75rem}
65
- ._c71lviql{max-height:2rem}
27
+ ._e2oo1osq span{width:100%}
66
28
  ._e4km1q9y span{vertical-align:baseline}
67
- ._i0dl1wug{flex-basis:auto}
68
- ._i2i3idpf svg{padding-top:0}
69
- ._mezj1j6v img, ._e2oo1j6v span, ._w8l51j6v svg{width:1rem}
70
- ._mezj1k8s img, ._e2oo1k8s span, ._w8l51k8s svg{width:1.5rem}
71
- ._mezjoqnp img, ._e2oooqnp span, ._w8l5oqnp svg{width:.75rem}
72
- ._mezjviql img, ._e2ooviql span, ._w8l5viql svg{width:2rem}
73
29
  ._otyridpf{margin-bottom:0}
74
- ._p12f1j6v{max-width:1rem}
75
- ._p12f1k8s{max-width:1.5rem}
76
- ._p12foqnp{max-width:.75rem}
77
- ._p12fviql{max-width:2rem}
78
- ._qci81j6v img, ._15iz1j6v span, ._erub1j6v svg{min-height:1rem}
79
- ._qci81k8s img, ._15iz1k8s span, ._erub1k8s svg{min-height:1.5rem}
80
- ._qci8oqnp img, ._15izoqnp span, ._eruboqnp svg{min-height:.75rem}
81
- ._qci8viql img, ._15izviql span, ._erubviql svg{min-height:2rem}
82
- ._rtys1j6v img, ._b8nk1j6v span, ._4x201j6v svg{max-width:1rem}
83
- ._rtys1k8s img, ._b8nk1k8s span, ._4x201k8s svg{max-width:1.5rem}
84
- ._rtysoqnp img, ._b8nkoqnp span, ._4x20oqnp svg{max-width:.75rem}
85
- ._rtysviql img, ._b8nkviql span, ._4x20viql svg{max-width:2rem}
86
30
  ._sudpn7od{-webkit-box-orient:unset}
87
- ._uhasidpf svg{padding-right:0}
88
- ._vwz41j6v{line-height:1rem}
89
- ._vwz41k8s{line-height:1.5rem}
90
- ._vwz4oqnp{line-height:.75rem}
91
- ._vwz4viql{line-height:2rem}
92
31
  ._y3gn1h6o{text-align:center}
93
- @supports not (-webkit-line-clamp:1){._102k1j6v{max-height:1rem}._102k1k8s{max-height:1.5rem}._102koqnp{max-height:.75rem}._102kptym{max-height:calc(var(--ds-space-200, 1pc)*1)}._102kviql{max-height:2rem}._102kz42d{max-height:calc(var(--ds-space-300, 24px)*1)}}
32
+ @supports not (-webkit-line-clamp:1){._102kptym{max-height:calc(var(--ds-space-200, 1pc)*1)}._102kz42d{max-height:calc(var(--ds-space-300, 24px)*1)}}