@atlaskit/smart-card 36.13.1 → 36.14.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 (57) hide show
  1. package/CHANGELOG.md +18 -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/utils/analytics/analytics.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  14. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -315
  15. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  16. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +13 -26
  17. package/dist/cjs/view/FlexibleCard/components/utils.js +2 -25
  18. package/dist/cjs/view/LinkUrl/index.js +1 -1
  19. package/dist/es2019/common/ui/icons/angle-brackets-icon.js +3 -2
  20. package/dist/es2019/common/ui/icons/audio-icon.js +3 -2
  21. package/dist/es2019/common/ui/icons/chart-bar-icon.js +3 -2
  22. package/dist/es2019/common/ui/icons/file-icon.js +3 -2
  23. package/dist/es2019/common/ui/icons/folder-icon.js +3 -2
  24. package/dist/es2019/common/ui/icons/image-icon.js +3 -2
  25. package/dist/es2019/common/ui/icons/list-bullet-icon.js +3 -2
  26. package/dist/es2019/common/ui/icons/page-icon.js +3 -2
  27. package/dist/es2019/common/ui/icons/utils.js +3 -1
  28. package/dist/es2019/common/ui/icons/video-icon.js +3 -2
  29. package/dist/es2019/utils/analytics/analytics.js +1 -1
  30. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
  31. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -131
  32. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  33. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +15 -28
  34. package/dist/es2019/view/FlexibleCard/components/utils.js +1 -24
  35. package/dist/es2019/view/LinkUrl/index.js +1 -1
  36. package/dist/esm/common/ui/icons/angle-brackets-icon.js +3 -2
  37. package/dist/esm/common/ui/icons/audio-icon.js +3 -2
  38. package/dist/esm/common/ui/icons/chart-bar-icon.js +3 -2
  39. package/dist/esm/common/ui/icons/file-icon.js +3 -2
  40. package/dist/esm/common/ui/icons/folder-icon.js +3 -2
  41. package/dist/esm/common/ui/icons/image-icon.js +3 -2
  42. package/dist/esm/common/ui/icons/list-bullet-icon.js +3 -2
  43. package/dist/esm/common/ui/icons/page-icon.js +3 -2
  44. package/dist/esm/common/ui/icons/utils.js +3 -1
  45. package/dist/esm/common/ui/icons/video-icon.js +3 -2
  46. package/dist/esm/utils/analytics/analytics.js +1 -1
  47. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
  48. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +37 -192
  49. package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
  50. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +13 -26
  51. package/dist/esm/view/FlexibleCard/components/utils.js +1 -24
  52. package/dist/esm/view/LinkUrl/index.js +1 -1
  53. package/dist/types/common/ui/icons/utils.d.ts +1 -1
  54. package/dist/types/view/FlexibleCard/components/utils.d.ts +0 -2
  55. package/dist/types-ts4.5/common/ui/icons/utils.d.ts +1 -1
  56. package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +0 -2
  57. package/package.json +3 -6
@@ -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)}}
@@ -23,34 +23,22 @@ const positionStyleMap = {
23
23
  center: "_1wpz1h6o",
24
24
  top: "_19pkidpf _2hwxidpf _otyridpf _18u0idpf _1wpz1y6m"
25
25
  };
26
- const iconStylesMapOld = {
27
- xlarge: "_16jlidpf _1o9zidpf _i0dl1wug _4t3iviql _1tkeviql _c71lviql _1bsbviql _1ul9viql _p12fviql _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna7viql _1xjxviql _1752viql _qci8viql _15izviql _erubviql _19l3viql _1pr2viql _1u5tviql _mezjviql _e2ooviql _w8l5viql _1rg2viql _q7cvviql _xwbjviql _rtysviql _b8nkviql _4x20viql",
28
- large: "_16jlidpf _1o9zidpf _i0dl1wug _4t3i1k8s _1tke1k8s _c71l1k8s _1bsb1k8s _1ul91k8s _p12f1k8s _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71k8s _1xjx1k8s _17521k8s _qci81k8s _15iz1k8s _erub1k8s _19l31k8s _1pr21k8s _1u5t1k8s _mezj1k8s _e2oo1k8s _w8l51k8s _1rg21k8s _q7cv1k8s _xwbj1k8s _rtys1k8s _b8nk1k8s _4x201k8s",
29
- medium: "_16jlidpf _1o9zidpf _i0dl1wug _4t3i1j6v _1tke1j6v _c71l1j6v _1bsb1j6v _1ul91j6v _p12f1j6v _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71j6v _1xjx1j6v _17521j6v _qci81j6v _15iz1j6v _erub1j6v _19l31j6v _1pr21j6v _1u5t1j6v _mezj1j6v _e2oo1j6v _w8l51j6v _1rg21j6v _q7cv1j6v _xwbj1j6v _rtys1j6v _b8nk1j6v _4x201j6v",
30
- small: "_16jlidpf _1o9zidpf _i0dl1wug _4t3ioqnp _1tkeoqnp _c71loqnp _1bsboqnp _1ul9oqnp _p12foqnp _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna7oqnp _1xjxoqnp _1752oqnp _qci8oqnp _15izoqnp _eruboqnp _19l3oqnp _1pr2oqnp _1u5toqnp _mezjoqnp _e2oooqnp _w8l5oqnp _1rg2oqnp _q7cvoqnp _xwbjoqnp _rtysoqnp _b8nkoqnp _4x20oqnp"
31
- };
32
- const customRenderStyleMapOld = {
33
- xlarge: "_1reo15vq _18m915vq _1e0ccj1k _1nmz1hna _1yyjkb7n _vwz4viql _1wybviql _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102kviql",
34
- large: "_1reo15vq _18m915vq _1e0ccj1k _1nmz1hna _1yyjkb7n _vwz41k8s _1wyb1k8s _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102k1k8s",
35
- medium: "_1reo15vq _18m915vq _1e0ccj1k _1nmz1hna _1yyjkb7n _vwz41j6v _1wyb1j6v _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102k1j6v",
36
- small: "_1reo15vq _18m915vq _1e0ccj1k _1nmz1hna _1yyjkb7n _vwz4oqnp _1wyboqnp _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102koqnp"
37
- };
38
- const customRenderStyleMapNew = {
39
- xlarge: "_1reo15vq _18m915vq _11c8nf1z _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102kz42d",
40
- large: "_1reo15vq _18m915vq _11c8nf1z _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102kz42d",
41
- medium: "_1reo15vq _18m915vq _11c8nbxd _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102kptym",
42
- small: "_1reo15vq _18m915vq _11c8nbxd _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _102kptym"
26
+ const customRenderStyleMap = {
27
+ xlarge: "_1reo15vq _18m915vq _11c8nf1z _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _1xjx1osq _e2oo1osq _102kz42d",
28
+ large: "_1reo15vq _18m915vq _11c8nf1z _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _1xjx1osq _e2oo1osq _102kz42d",
29
+ medium: "_1reo15vq _18m915vq _11c8nbxd _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _1xjx1osq _e2oo1osq _102kptym",
30
+ small: "_1reo15vq _18m915vq _11c8nbxd _1e0ccj1k _1nmz1hna _1yyjkb7n _y3gn1h6o _1btozryt _sudpn7od _1ipkidpf _1kdcidpf _3glyidpf _1w2uidpf _1oh2idpf _99ztidpf _1m2uidpf _9n9oidpf _e4km1q9y _1xjx1osq _e2oo1osq _102kptym"
43
31
  };
44
32
  const renderAtlaskitIcon = (icon, testId, size = SmartLinkSize.Medium) => {
45
33
  if (icon) {
46
- return /*#__PURE__*/React.createElement(AtlaskitIcon, _extends({
34
+ return /*#__PURE__*/React.createElement(AtlaskitIcon, {
47
35
  icon: icon,
48
36
  testId: `${testId}-icon`,
49
37
  "aria-hidden": "true",
50
38
  label: "" // Since we already set aria-hidden="true", the label should be given an empty string
51
- }, fg('platform-smart-card-icon-migration') && {
52
- size
53
- }));
39
+ ,
40
+ size: size
41
+ });
54
42
  }
55
43
  };
56
44
  const renderDefaultIcon = (label, testId) => /*#__PURE__*/React.createElement(LinkIcon, {
@@ -64,9 +52,8 @@ const renderImageIcon = (defaultIcon, url, testId, size = SmartLinkSize.Medium,
64
52
  return /*#__PURE__*/React.createElement(ImageIcon, _extends({
65
53
  defaultIcon: defaultIcon,
66
54
  testId: testId,
67
- url: url
68
- }, fg('platform-smart-card-icon-migration') && {
69
- width,
55
+ url: url,
56
+ width: width,
70
57
  height: width
71
58
  }, fg('platform-linking-visual-refresh-v2') && {
72
59
  appearance
@@ -95,7 +82,7 @@ const Icon = ({
95
82
  }) => {
96
83
  const element = useMemo(() => {
97
84
  const defaultIcon = renderDefaultIcon(label, testId);
98
- return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId, fg('platform-smart-card-icon-migration') ? size : undefined, fg('platform-linking-visual-refresh-v2') ? appearance : undefined) || renderAtlaskitIcon(icon, testId, fg('platform-smart-card-icon-migration') ? size : undefined) || defaultIcon;
85
+ return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId, size, fg('platform-linking-visual-refresh-v2') ? appearance : undefined) || renderAtlaskitIcon(icon, testId, size) || defaultIcon;
99
86
  }, [label, testId, overrideIcon, render, url, size, appearance, icon]);
100
87
  const width = getIconWidth(size);
101
88
  return /*#__PURE__*/React.createElement("div", _extends({}, fg('platform-linking-visual-refresh-v1') ? {} : {
@@ -106,13 +93,13 @@ const Icon = ({
106
93
  "data-testid": testId
107
94
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
108
95
  ,
109
- className: ax([fg('platform-linking-visual-refresh-v1') && styles.container, !fg('platform-smart-card-icon-migration') && iconStylesMapOld[size], positionStyleMap[position], render && !fg('platform-smart-card-icon-migration') && customRenderStyleMapOld[size], render && fg('platform-smart-card-icon-migration') && customRenderStyleMapNew[size], className])
110
- }), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
96
+ className: ax([styles.container, positionStyleMap[position], render && customRenderStyleMap[size], className])
97
+ }), /*#__PURE__*/React.createElement(Box, {
111
98
  xcss: styles.iconWrapperStyle,
112
99
  style: {
113
100
  width,
114
101
  height: width
115
102
  }
116
- }, element) : element);
103
+ }, element));
117
104
  };
118
105
  export default Icon;
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Loadable from 'react-loadable';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { SmartLinkSize } from '../../../constants';
7
6
  export const sizeToButtonSpacing = {
8
7
  [SmartLinkSize.Small]: 'none',
@@ -29,24 +28,7 @@ export const getFormattedMessageAsString = (intl, message, context) => {
29
28
  context
30
29
  }) : '';
31
30
  };
32
-
33
- // TODO Delete when cleaning platform-smart-card-icon-migration
34
- export const getIconWidthOld = size => {
35
- switch (size) {
36
- case SmartLinkSize.XLarge:
37
- return '2rem';
38
- case SmartLinkSize.Large:
39
- return '1.5rem';
40
- case SmartLinkSize.Medium:
41
- return '1rem';
42
- case SmartLinkSize.Small:
43
- default:
44
- return '.75rem';
45
- }
46
- };
47
-
48
- // TODO Rename to getIconWidth when cleaning platform-smart-card-icon-migration
49
- export const getIconWidthNew = size => {
31
+ export const getIconWidth = size => {
50
32
  switch (size) {
51
33
  case SmartLinkSize.XLarge:
52
34
  case SmartLinkSize.Large:
@@ -57,11 +39,6 @@ export const getIconWidthNew = size => {
57
39
  return "var(--ds-space-200, 16px)";
58
40
  }
59
41
  };
60
-
61
- // TODO Delete when cleaning platform-smart-card-icon-migration
62
- export const getIconWidth = size => {
63
- return fg('platform-smart-card-icon-migration') ? getIconWidthNew(size) : getIconWidthOld(size);
64
- };
65
42
  export const importIcon = importFn => {
66
43
  return Loadable({
67
44
  loader: () => importFn().then(module => module.default),
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "36.13.1",
13
+ packageVersion: "36.14.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -1,6 +1,7 @@
1
1
  import LegacyIcon from '@atlaskit/icon-file-type/glyph/source-code/16';
2
+ import LegacyIconLarge from '@atlaskit/icon-file-type/glyph/source-code/24';
2
3
  import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
3
- import { renderIconTile } from './utils';
4
- var AngleBracketsIconWithColor = renderIconTile(AngleBracketsIcon, 'blueBold', LegacyIcon);
4
+ import { renderIconPerSize, renderIconTile } from './utils';
5
+ var AngleBracketsIconWithColor = renderIconTile(AngleBracketsIcon, 'blueBold', renderIconPerSize(LegacyIcon, LegacyIconLarge));
5
6
  AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
6
7
  export default AngleBracketsIconWithColor;
@@ -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;
@@ -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.1"
7
+ packageVersion: "36.14.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", {