@atlaskit/smart-card 43.26.5 → 43.26.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 (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-false.png +2 -2
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-true.png +2 -2
  5. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
  6. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-false.png +2 -2
  7. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-true.png +2 -2
  8. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-false.png +2 -2
  9. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-true.png +2 -2
  10. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-false.png +2 -2
  11. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-true.png +2 -2
  12. package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-modal/renders-embed-modal-with-flexible-ui-icon--default.png +2 -2
  13. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--hidden-action-button-focused--default.png +2 -2
  14. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--title-focused--default.png +2 -2
  15. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-false.png +2 -2
  16. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-true.png +2 -2
  17. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-badge--default--navx-1895-new-logo-design-false.png +2 -2
  18. package/dist/cjs/__tests__/vr-tests/__snapshots__/related-links-modal/resolved--light-mode.png +2 -2
  19. package/dist/cjs/__tests__/vr-tests/__snapshots__/related-links-modal/resolved-empty--light-mode.png +2 -2
  20. package/dist/cjs/utils/analytics/analytics.js +1 -1
  21. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +43 -120
  22. package/dist/cjs/view/LinkUrl/index.js +1 -1
  23. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
  24. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-false.png +2 -2
  25. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-true.png +2 -2
  26. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
  27. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-false.png +2 -2
  28. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-true.png +2 -2
  29. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-false.png +2 -2
  30. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-true.png +2 -2
  31. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-false.png +2 -2
  32. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-true.png +2 -2
  33. package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-modal/renders-embed-modal-with-flexible-ui-icon--default.png +2 -2
  34. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--hidden-action-button-focused--default.png +2 -2
  35. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--title-focused--default.png +2 -2
  36. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-false.png +2 -2
  37. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-true.png +2 -2
  38. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-badge--default--navx-1895-new-logo-design-false.png +2 -2
  39. package/dist/es2019/__tests__/vr-tests/__snapshots__/related-links-modal/resolved--light-mode.png +2 -2
  40. package/dist/es2019/__tests__/vr-tests/__snapshots__/related-links-modal/resolved-empty--light-mode.png +2 -2
  41. package/dist/es2019/utils/analytics/analytics.js +1 -1
  42. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +35 -106
  43. package/dist/es2019/view/LinkUrl/index.js +1 -1
  44. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
  45. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-false.png +2 -2
  46. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--navx-1895-new-logo-design-true.png +2 -2
  47. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
  48. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-false.png +2 -2
  49. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default--navx-1895-new-logo-design-true.png +2 -2
  50. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-false.png +2 -2
  51. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default--navx-1895-new-logo-design-true.png +2 -2
  52. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-false.png +2 -2
  53. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default--navx-1895-new-logo-design-true.png +2 -2
  54. package/dist/esm/__tests__/vr-tests/__snapshots__/embed-modal/renders-embed-modal-with-flexible-ui-icon--default.png +2 -2
  55. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--hidden-action-button-focused--default.png +2 -2
  56. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-accessibility--title-focused--default.png +2 -2
  57. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-false.png +2 -2
  58. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default--navx-1895-new-logo-design-true.png +2 -2
  59. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-badge--default--navx-1895-new-logo-design-false.png +2 -2
  60. package/dist/esm/__tests__/vr-tests/__snapshots__/related-links-modal/resolved--light-mode.png +2 -2
  61. package/dist/esm/__tests__/vr-tests/__snapshots__/related-links-modal/resolved-empty--light-mode.png +2 -2
  62. package/dist/esm/utils/analytics/analytics.js +1 -1
  63. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +43 -120
  64. package/dist/esm/view/LinkUrl/index.js +1 -1
  65. package/package.json +6 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.26.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`236ae1160f1a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/236ae1160f1a0) -
8
+ Clean up platform-button-icon-spacing-cleanup FG
9
+ - Updated dependencies
10
+
11
+ ## 43.26.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 43.26.5
4
18
 
5
19
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33dd2de530471bd814c2b3417a5b83ac221dadb4f2eefd62d4a93993ed270f49
3
- size 117577
2
+ oid sha256:3acc9987c800eeb601e7e34fa01e3df89500dc2c815415da05ddd083df024019
3
+ size 111886
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:860e17988ba03a5c96d3123f4bf26157fb9a2319b2653ac5d97b19d2af98361a
3
- size 37847
2
+ oid sha256:64c5349ccb0b90b0a625ca0d707d2bf5bfa52dda10fcd092a8b6bfbb1cc0e5c3
3
+ size 35296
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:465c4c638afd25d852ec4d56b2e76c994fd01dacf45dbf3f6c0a0dc0edfff35a
3
- size 38006
2
+ oid sha256:5f022890e178f33ea2487b10c9b3b43a665e98d84a510e29f3d22f8804d645be
3
+ size 35428
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:936c5941e1b3fe191d681ed5b354a4998ddf9030a13ef521405690c243b08152
3
- size 93982
2
+ oid sha256:323c0f3a0180a2772a5568d36bb4588dcbaa2eefa499bd2feae92dd9c373aa4a
3
+ size 87113
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e571e96a6cf0ff5cdeb189a6b8d37382a20b8b6c627d04dba9206aafd53dc5d0
3
- size 98128
2
+ oid sha256:56ecca0bb138aedf05d40629555a08ff01397ee8332f6c523adaa38b3f9c9066
3
+ size 90964
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb267d4b75d3600670ed40af0d2381be295dccbd66290eeb4532210370d9cff4
3
- size 98467
2
+ oid sha256:00f7ab007894140c7d50dae261a9c0a6035d10efc32ea9ca9c973501a495e473
3
+ size 91336
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17b71b126964e713254d9fd0ec0c4d421fdc04c3b956dbb1dbfbc6ed4446e7e7
3
- size 98950
2
+ oid sha256:ff5acd0832e8c24d62c4bbe84823678b851ec68f8a73a9e87dad7baefaca3fdf
3
+ size 91884
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef397d53a921ecff14966205bb9c6176f5433a05d7e532602391cfb5f6c2d649
3
- size 99518
2
+ oid sha256:b78a348d581a64dac0e23fb8f4c1d717b3304584739a6b4a871268135b699075
3
+ size 92494
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bbea9c2b1d045154c48ca466009723062a29fed1efc3eebad5b2a42f39ed8a3
3
- size 97347
2
+ oid sha256:c319edf3a89336e74444edb31e2650f080185e81934e7a8e441c5c72daac95c2
3
+ size 90399
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb0b04a888c0956232b02f743be271b56d48bbe252fd47402dac42d46ed76029
3
- size 97461
2
+ oid sha256:9f20d87ec72d3743bb008945f53364b0319b26f5144133d9bb25931fec52a313
3
+ size 90531
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:66e5b2b94adde1c3a14f59d9c9ff89994d9b1410384b9fafb116b7cea948cc11
3
- size 15268
2
+ oid sha256:6dc97ad04addf386b55440c5d25f372bd83c38f4798c7942b304fe293b591b68
3
+ size 15496
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbc1483bd3025d7a628327a486002be927790beff915031a147e983786740ab0
3
- size 9986
2
+ oid sha256:ee1d0319ded18b1c5fedfb51f0f12f9392f14082a759cd67027b5ce2e322756f
3
+ size 9610
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6dd69e2d7c833496c82d3035e82ab13f113409087b6209a0b66eb5f6a8684c1
3
- size 4026
2
+ oid sha256:e8c74b5d85319192fe38e738d93f565e072ffd25ba30fc8ba640ba6a2ad28e9c
3
+ size 3828
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7ecc6eaabdbe2c5635b80d88dd2c10e88e1ad36834211cb760e133b9ded1869a
3
- size 107610
2
+ oid sha256:b439afd8af39f670047bae82c873dc3202633d55d094673aa754b7c8fe4ec66e
3
+ size 103245
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8cdee0eb62caec6acdf1b632c1c13c79eff15037aed58e10eb7c3088934b0707
3
- size 107893
2
+ oid sha256:fb9bff8bd44a34e02121c5c13ea229260bb1097ad3316c8af045ce548efcc1da
3
+ size 103526
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd4ce1e874bb5cef90c294ea4d3c15691e816b1077d7309a1cbebd588cbc838b
3
- size 69991
2
+ oid sha256:cafc69f04bd7799c7108655e37ced2f64c9b43077f8060d2e4503ed404d10831
3
+ size 69534
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:93ebf4281d84e7940906a7662b9da7b840e5b604a0cc7d6893d9b19a551363b6
3
- size 38714
2
+ oid sha256:73bb4793a5e1d49e1ce910e153f8130e5ea114c8e3791579f144760101bfd30f
3
+ size 36525
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06482aa878a4bf7d962b3c7f40cb4929ba59f8c92e4fa386aa20068d7ecc2793
3
- size 36712
2
+ oid sha256:f35f8dae22c3390219df42b2d41df3c1ec5647b74af0e47cb54621c2a75fc53b
3
+ size 34707
@@ -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: "0.0.0-development"
14
+ packageVersion: "43.26.6"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -12,7 +12,6 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _button = require("@atlaskit/button");
14
14
  var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _compiled = require("@atlaskit/primitives/compiled");
17
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
18
17
  var _constants = require("../../../../../../constants");
@@ -69,64 +68,17 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
69
68
  var button = (0, _react.useMemo)(function () {
70
69
  var isLinkButton = !!href;
71
70
  var spacing = size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'default' : 'compact';
72
- if ((0, _platformFeatureFlags.fg)('platform-button-icon-spacing-cleanup')) {
73
- var icon = iconBefore || iconAfter;
74
- var iconFn = icon ? function () {
75
- return icon;
76
- } : undefined;
77
- if (iconOnly && iconFn) {
78
- if (isLinkButton && iconFn) {
79
- return /*#__PURE__*/_react.default.createElement(_new.LinkIconButton, {
80
- appearance: IconButtonAppearanceMap[appearance],
81
- icon: iconFn,
82
- href: href,
83
- isDisabled: isDisabled,
84
- isTooltipDisabled: false,
85
- label: tooltipMessage,
86
- onClick: onButtonClick(onClick),
87
- spacing: spacing,
88
- testId: testId,
89
- tooltip: tooltipOptions
90
- });
91
- }
92
- return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
71
+ var icon = iconBefore || iconAfter;
72
+ var iconFn = icon ? function () {
73
+ return icon;
74
+ } : undefined;
75
+ if (iconOnly && iconFn) {
76
+ if (isLinkButton && iconFn) {
77
+ return /*#__PURE__*/_react.default.createElement(_new.LinkIconButton, {
93
78
  appearance: IconButtonAppearanceMap[appearance],
94
79
  icon: iconFn,
80
+ href: href,
95
81
  isDisabled: isDisabled,
96
- isLoading: isLoading,
97
- isTooltipDisabled: false,
98
- label: tooltipMessage,
99
- onClick: onButtonClick(onClick),
100
- spacing: spacing,
101
- testId: testId,
102
- tooltip: tooltipOptions
103
- });
104
- }
105
- } else {
106
- if (iconOnly) {
107
- var _icon = iconBefore || iconAfter;
108
- var _iconFn = function _iconFn() {
109
- return _icon || null;
110
- };
111
- if (isLinkButton) {
112
- return /*#__PURE__*/_react.default.createElement(_new.LinkIconButton, {
113
- appearance: IconButtonAppearanceMap[appearance],
114
- icon: _iconFn,
115
- href: href,
116
- isDisabled: isDisabled,
117
- isTooltipDisabled: false,
118
- label: tooltipMessage,
119
- onClick: onButtonClick(onClick),
120
- spacing: spacing,
121
- testId: testId,
122
- tooltip: tooltipOptions
123
- });
124
- }
125
- return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
126
- appearance: IconButtonAppearanceMap[appearance],
127
- icon: _iconFn,
128
- isDisabled: isDisabled,
129
- isLoading: isLoading,
130
82
  isTooltipDisabled: false,
131
83
  label: tooltipMessage,
132
84
  onClick: onButtonClick(onClick),
@@ -135,86 +87,57 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
135
87
  tooltip: tooltipOptions
136
88
  });
137
89
  }
138
- }
139
- if ((0, _platformFeatureFlags.fg)('platform-button-icon-spacing-cleanup')) {
140
- var iconBeforeFn = iconBefore ? function () {
141
- return iconBefore;
142
- } : undefined;
143
- var iconAfterFn = iconAfter ? function () {
144
- return iconAfter;
145
- } : undefined;
146
- if (isLinkButton) {
147
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
148
- content: tooltipMessage,
149
- hideTooltipOnClick: true,
150
- testId: "".concat(testId, "-tooltip")
151
- }, /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
152
- appearance: ButtonAppearanceMap[appearance],
153
- "aria-label": ariaLabel,
154
- iconAfter: iconAfterFn,
155
- iconBefore: iconBeforeFn,
156
- isDisabled: isDisabled,
157
- href: href,
158
- onClick: onButtonClick(onClick),
159
- spacing: spacing,
160
- testId: testId
161
- }, content));
162
- }
163
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
164
- content: tooltipMessage,
165
- hideTooltipOnClick: true,
166
- testId: "".concat(testId, "-tooltip")
167
- }, /*#__PURE__*/_react.default.createElement(_new.default, {
168
- appearance: ButtonAppearanceMap[appearance],
169
- "aria-label": ariaLabel,
170
- iconAfter: iconAfterFn,
171
- iconBefore: iconBeforeFn,
90
+ return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
91
+ appearance: IconButtonAppearanceMap[appearance],
92
+ icon: iconFn,
172
93
  isDisabled: isDisabled,
173
94
  isLoading: isLoading,
95
+ isTooltipDisabled: false,
96
+ label: tooltipMessage,
174
97
  onClick: onButtonClick(onClick),
175
98
  spacing: spacing,
176
- testId: testId
177
- }, content));
178
- } else {
179
- var _iconBeforeFn = function _iconBeforeFn() {
180
- return iconBefore || null;
181
- };
182
- var _iconAfterFn = function _iconAfterFn() {
183
- return iconAfter || null;
184
- };
185
- if (isLinkButton) {
186
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
187
- content: tooltipMessage,
188
- hideTooltipOnClick: true,
189
- testId: "".concat(testId, "-tooltip")
190
- }, /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
191
- appearance: ButtonAppearanceMap[appearance],
192
- "aria-label": ariaLabel,
193
- iconAfter: _iconAfterFn,
194
- iconBefore: _iconBeforeFn,
195
- isDisabled: isDisabled,
196
- href: href,
197
- onClick: onButtonClick(onClick),
198
- spacing: spacing,
199
- testId: testId
200
- }, content));
201
- }
99
+ testId: testId,
100
+ tooltip: tooltipOptions
101
+ });
102
+ }
103
+ var iconBeforeFn = iconBefore ? function () {
104
+ return iconBefore;
105
+ } : undefined;
106
+ var iconAfterFn = iconAfter ? function () {
107
+ return iconAfter;
108
+ } : undefined;
109
+ if (isLinkButton) {
202
110
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
203
111
  content: tooltipMessage,
204
112
  hideTooltipOnClick: true,
205
113
  testId: "".concat(testId, "-tooltip")
206
- }, /*#__PURE__*/_react.default.createElement(_new.default, {
114
+ }, /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
207
115
  appearance: ButtonAppearanceMap[appearance],
208
116
  "aria-label": ariaLabel,
209
- iconAfter: _iconAfterFn,
210
- iconBefore: _iconBeforeFn,
117
+ iconAfter: iconAfterFn,
118
+ iconBefore: iconBeforeFn,
211
119
  isDisabled: isDisabled,
212
- isLoading: isLoading,
120
+ href: href,
213
121
  onClick: onButtonClick(onClick),
214
122
  spacing: spacing,
215
123
  testId: testId
216
124
  }, content));
217
125
  }
126
+ return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
127
+ content: tooltipMessage,
128
+ hideTooltipOnClick: true,
129
+ testId: "".concat(testId, "-tooltip")
130
+ }, /*#__PURE__*/_react.default.createElement(_new.default, {
131
+ appearance: ButtonAppearanceMap[appearance],
132
+ "aria-label": ariaLabel,
133
+ iconAfter: iconAfterFn,
134
+ iconBefore: iconBeforeFn,
135
+ isDisabled: isDisabled,
136
+ isLoading: isLoading,
137
+ onClick: onButtonClick(onClick),
138
+ spacing: spacing,
139
+ testId: testId
140
+ }, content));
218
141
  }, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
219
142
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
220
143
  testId: "".concat(testId, "-button-wrapper"),
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "0.0.0-development",
25
+ packageVersion: "43.26.6",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33dd2de530471bd814c2b3417a5b83ac221dadb4f2eefd62d4a93993ed270f49
3
- size 117577
2
+ oid sha256:3acc9987c800eeb601e7e34fa01e3df89500dc2c815415da05ddd083df024019
3
+ size 111886
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:860e17988ba03a5c96d3123f4bf26157fb9a2319b2653ac5d97b19d2af98361a
3
- size 37847
2
+ oid sha256:64c5349ccb0b90b0a625ca0d707d2bf5bfa52dda10fcd092a8b6bfbb1cc0e5c3
3
+ size 35296
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:465c4c638afd25d852ec4d56b2e76c994fd01dacf45dbf3f6c0a0dc0edfff35a
3
- size 38006
2
+ oid sha256:5f022890e178f33ea2487b10c9b3b43a665e98d84a510e29f3d22f8804d645be
3
+ size 35428
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:936c5941e1b3fe191d681ed5b354a4998ddf9030a13ef521405690c243b08152
3
- size 93982
2
+ oid sha256:323c0f3a0180a2772a5568d36bb4588dcbaa2eefa499bd2feae92dd9c373aa4a
3
+ size 87113
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e571e96a6cf0ff5cdeb189a6b8d37382a20b8b6c627d04dba9206aafd53dc5d0
3
- size 98128
2
+ oid sha256:56ecca0bb138aedf05d40629555a08ff01397ee8332f6c523adaa38b3f9c9066
3
+ size 90964
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb267d4b75d3600670ed40af0d2381be295dccbd66290eeb4532210370d9cff4
3
- size 98467
2
+ oid sha256:00f7ab007894140c7d50dae261a9c0a6035d10efc32ea9ca9c973501a495e473
3
+ size 91336
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17b71b126964e713254d9fd0ec0c4d421fdc04c3b956dbb1dbfbc6ed4446e7e7
3
- size 98950
2
+ oid sha256:ff5acd0832e8c24d62c4bbe84823678b851ec68f8a73a9e87dad7baefaca3fdf
3
+ size 91884
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef397d53a921ecff14966205bb9c6176f5433a05d7e532602391cfb5f6c2d649
3
- size 99518
2
+ oid sha256:b78a348d581a64dac0e23fb8f4c1d717b3304584739a6b4a871268135b699075
3
+ size 92494
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bbea9c2b1d045154c48ca466009723062a29fed1efc3eebad5b2a42f39ed8a3
3
- size 97347
2
+ oid sha256:c319edf3a89336e74444edb31e2650f080185e81934e7a8e441c5c72daac95c2
3
+ size 90399
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb0b04a888c0956232b02f743be271b56d48bbe252fd47402dac42d46ed76029
3
- size 97461
2
+ oid sha256:9f20d87ec72d3743bb008945f53364b0319b26f5144133d9bb25931fec52a313
3
+ size 90531
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:66e5b2b94adde1c3a14f59d9c9ff89994d9b1410384b9fafb116b7cea948cc11
3
- size 15268
2
+ oid sha256:6dc97ad04addf386b55440c5d25f372bd83c38f4798c7942b304fe293b591b68
3
+ size 15496
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbc1483bd3025d7a628327a486002be927790beff915031a147e983786740ab0
3
- size 9986
2
+ oid sha256:ee1d0319ded18b1c5fedfb51f0f12f9392f14082a759cd67027b5ce2e322756f
3
+ size 9610
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6dd69e2d7c833496c82d3035e82ab13f113409087b6209a0b66eb5f6a8684c1
3
- size 4026
2
+ oid sha256:e8c74b5d85319192fe38e738d93f565e072ffd25ba30fc8ba640ba6a2ad28e9c
3
+ size 3828
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7ecc6eaabdbe2c5635b80d88dd2c10e88e1ad36834211cb760e133b9ded1869a
3
- size 107610
2
+ oid sha256:b439afd8af39f670047bae82c873dc3202633d55d094673aa754b7c8fe4ec66e
3
+ size 103245
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8cdee0eb62caec6acdf1b632c1c13c79eff15037aed58e10eb7c3088934b0707
3
- size 107893
2
+ oid sha256:fb9bff8bd44a34e02121c5c13ea229260bb1097ad3316c8af045ce548efcc1da
3
+ size 103526
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd4ce1e874bb5cef90c294ea4d3c15691e816b1077d7309a1cbebd588cbc838b
3
- size 69991
2
+ oid sha256:cafc69f04bd7799c7108655e37ced2f64c9b43077f8060d2e4503ed404d10831
3
+ size 69534
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:93ebf4281d84e7940906a7662b9da7b840e5b604a0cc7d6893d9b19a551363b6
3
- size 38714
2
+ oid sha256:73bb4793a5e1d49e1ce910e153f8130e5ea114c8e3791579f144760101bfd30f
3
+ size 36525
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06482aa878a4bf7d962b3c7f40cb4929ba59f8c92e4fa386aa20068d7ecc2793
3
- size 36712
2
+ oid sha256:f35f8dae22c3390219df42b2d41df3c1ec5647b74af0e47cb54621c2a75fc53b
3
+ size 34707
@@ -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: "0.0.0-development"
5
+ packageVersion: "43.26.6"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef, useCallback, useMemo } from 'react';
5
5
  import { LoadingButton } from '@atlaskit/button';
6
6
  import Button, { IconButton, LinkButton, LinkIconButton } from '@atlaskit/button/new';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Box } from '@atlaskit/primitives/compiled';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  import { SmartLinkSize } from '../../../../../../constants';
@@ -58,60 +57,15 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
58
57
  const button = useMemo(() => {
59
58
  const isLinkButton = !!href;
60
59
  const spacing = size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'default' : 'compact';
61
- if (fg('platform-button-icon-spacing-cleanup')) {
62
- const icon = iconBefore || iconAfter;
63
- const iconFn = icon ? () => icon : undefined;
64
- if (iconOnly && iconFn) {
65
- if (isLinkButton && iconFn) {
66
- return /*#__PURE__*/React.createElement(LinkIconButton, {
67
- appearance: IconButtonAppearanceMap[appearance],
68
- icon: iconFn,
69
- href: href,
70
- isDisabled: isDisabled,
71
- isTooltipDisabled: false,
72
- label: tooltipMessage,
73
- onClick: onButtonClick(onClick),
74
- spacing: spacing,
75
- testId: testId,
76
- tooltip: tooltipOptions
77
- });
78
- }
79
- return /*#__PURE__*/React.createElement(IconButton, {
80
- appearance: IconButtonAppearanceMap[appearance],
81
- icon: iconFn,
82
- isDisabled: isDisabled,
83
- isLoading: isLoading,
84
- isTooltipDisabled: false,
85
- label: tooltipMessage,
86
- onClick: onButtonClick(onClick),
87
- spacing: spacing,
88
- testId: testId,
89
- tooltip: tooltipOptions
90
- });
91
- }
92
- } else {
93
- if (iconOnly) {
94
- const icon = iconBefore || iconAfter;
95
- const iconFn = () => icon || null;
96
- if (isLinkButton) {
97
- return /*#__PURE__*/React.createElement(LinkIconButton, {
98
- appearance: IconButtonAppearanceMap[appearance],
99
- icon: iconFn,
100
- href: href,
101
- isDisabled: isDisabled,
102
- isTooltipDisabled: false,
103
- label: tooltipMessage,
104
- onClick: onButtonClick(onClick),
105
- spacing: spacing,
106
- testId: testId,
107
- tooltip: tooltipOptions
108
- });
109
- }
110
- return /*#__PURE__*/React.createElement(IconButton, {
60
+ const icon = iconBefore || iconAfter;
61
+ const iconFn = icon ? () => icon : undefined;
62
+ if (iconOnly && iconFn) {
63
+ if (isLinkButton && iconFn) {
64
+ return /*#__PURE__*/React.createElement(LinkIconButton, {
111
65
  appearance: IconButtonAppearanceMap[appearance],
112
66
  icon: iconFn,
67
+ href: href,
113
68
  isDisabled: isDisabled,
114
- isLoading: isLoading,
115
69
  isTooltipDisabled: false,
116
70
  label: tooltipMessage,
117
71
  onClick: onButtonClick(onClick),
@@ -120,78 +74,53 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
120
74
  tooltip: tooltipOptions
121
75
  });
122
76
  }
123
- }
124
- if (fg('platform-button-icon-spacing-cleanup')) {
125
- const iconBeforeFn = iconBefore ? () => iconBefore : undefined;
126
- const iconAfterFn = iconAfter ? () => iconAfter : undefined;
127
- if (isLinkButton) {
128
- return /*#__PURE__*/React.createElement(Tooltip, {
129
- content: tooltipMessage,
130
- hideTooltipOnClick: true,
131
- testId: `${testId}-tooltip`
132
- }, /*#__PURE__*/React.createElement(LinkButton, {
133
- appearance: ButtonAppearanceMap[appearance],
134
- "aria-label": ariaLabel,
135
- iconAfter: iconAfterFn,
136
- iconBefore: iconBeforeFn,
137
- isDisabled: isDisabled,
138
- href: href,
139
- onClick: onButtonClick(onClick),
140
- spacing: spacing,
141
- testId: testId
142
- }, content));
143
- }
144
- return /*#__PURE__*/React.createElement(Tooltip, {
145
- content: tooltipMessage,
146
- hideTooltipOnClick: true,
147
- testId: `${testId}-tooltip`
148
- }, /*#__PURE__*/React.createElement(Button, {
149
- appearance: ButtonAppearanceMap[appearance],
150
- "aria-label": ariaLabel,
151
- iconAfter: iconAfterFn,
152
- iconBefore: iconBeforeFn,
77
+ return /*#__PURE__*/React.createElement(IconButton, {
78
+ appearance: IconButtonAppearanceMap[appearance],
79
+ icon: iconFn,
153
80
  isDisabled: isDisabled,
154
81
  isLoading: isLoading,
82
+ isTooltipDisabled: false,
83
+ label: tooltipMessage,
155
84
  onClick: onButtonClick(onClick),
156
85
  spacing: spacing,
157
- testId: testId
158
- }, content));
159
- } else {
160
- const iconBeforeFn = () => iconBefore || null;
161
- const iconAfterFn = () => iconAfter || null;
162
- if (isLinkButton) {
163
- return /*#__PURE__*/React.createElement(Tooltip, {
164
- content: tooltipMessage,
165
- hideTooltipOnClick: true,
166
- testId: `${testId}-tooltip`
167
- }, /*#__PURE__*/React.createElement(LinkButton, {
168
- appearance: ButtonAppearanceMap[appearance],
169
- "aria-label": ariaLabel,
170
- iconAfter: iconAfterFn,
171
- iconBefore: iconBeforeFn,
172
- isDisabled: isDisabled,
173
- href: href,
174
- onClick: onButtonClick(onClick),
175
- spacing: spacing,
176
- testId: testId
177
- }, content));
178
- }
86
+ testId: testId,
87
+ tooltip: tooltipOptions
88
+ });
89
+ }
90
+ const iconBeforeFn = iconBefore ? () => iconBefore : undefined;
91
+ const iconAfterFn = iconAfter ? () => iconAfter : undefined;
92
+ if (isLinkButton) {
179
93
  return /*#__PURE__*/React.createElement(Tooltip, {
180
94
  content: tooltipMessage,
181
95
  hideTooltipOnClick: true,
182
96
  testId: `${testId}-tooltip`
183
- }, /*#__PURE__*/React.createElement(Button, {
97
+ }, /*#__PURE__*/React.createElement(LinkButton, {
184
98
  appearance: ButtonAppearanceMap[appearance],
185
99
  "aria-label": ariaLabel,
186
100
  iconAfter: iconAfterFn,
187
101
  iconBefore: iconBeforeFn,
188
102
  isDisabled: isDisabled,
189
- isLoading: isLoading,
103
+ href: href,
190
104
  onClick: onButtonClick(onClick),
191
105
  spacing: spacing,
192
106
  testId: testId
193
107
  }, content));
194
108
  }
109
+ return /*#__PURE__*/React.createElement(Tooltip, {
110
+ content: tooltipMessage,
111
+ hideTooltipOnClick: true,
112
+ testId: `${testId}-tooltip`
113
+ }, /*#__PURE__*/React.createElement(Button, {
114
+ appearance: ButtonAppearanceMap[appearance],
115
+ "aria-label": ariaLabel,
116
+ iconAfter: iconAfterFn,
117
+ iconBefore: iconBeforeFn,
118
+ isDisabled: isDisabled,
119
+ isLoading: isLoading,
120
+ onClick: onButtonClick(onClick),
121
+ spacing: spacing,
122
+ testId: testId
123
+ }, content));
195
124
  }, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
196
125
  return /*#__PURE__*/React.createElement(Box, {
197
126
  testId: `${testId}-button-wrapper`,
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "0.0.0-development",
15
+ packageVersion: "43.26.6",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33dd2de530471bd814c2b3417a5b83ac221dadb4f2eefd62d4a93993ed270f49
3
- size 117577
2
+ oid sha256:3acc9987c800eeb601e7e34fa01e3df89500dc2c815415da05ddd083df024019
3
+ size 111886
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:860e17988ba03a5c96d3123f4bf26157fb9a2319b2653ac5d97b19d2af98361a
3
- size 37847
2
+ oid sha256:64c5349ccb0b90b0a625ca0d707d2bf5bfa52dda10fcd092a8b6bfbb1cc0e5c3
3
+ size 35296
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:465c4c638afd25d852ec4d56b2e76c994fd01dacf45dbf3f6c0a0dc0edfff35a
3
- size 38006
2
+ oid sha256:5f022890e178f33ea2487b10c9b3b43a665e98d84a510e29f3d22f8804d645be
3
+ size 35428
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:936c5941e1b3fe191d681ed5b354a4998ddf9030a13ef521405690c243b08152
3
- size 93982
2
+ oid sha256:323c0f3a0180a2772a5568d36bb4588dcbaa2eefa499bd2feae92dd9c373aa4a
3
+ size 87113
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e571e96a6cf0ff5cdeb189a6b8d37382a20b8b6c627d04dba9206aafd53dc5d0
3
- size 98128
2
+ oid sha256:56ecca0bb138aedf05d40629555a08ff01397ee8332f6c523adaa38b3f9c9066
3
+ size 90964
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb267d4b75d3600670ed40af0d2381be295dccbd66290eeb4532210370d9cff4
3
- size 98467
2
+ oid sha256:00f7ab007894140c7d50dae261a9c0a6035d10efc32ea9ca9c973501a495e473
3
+ size 91336
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17b71b126964e713254d9fd0ec0c4d421fdc04c3b956dbb1dbfbc6ed4446e7e7
3
- size 98950
2
+ oid sha256:ff5acd0832e8c24d62c4bbe84823678b851ec68f8a73a9e87dad7baefaca3fdf
3
+ size 91884
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef397d53a921ecff14966205bb9c6176f5433a05d7e532602391cfb5f6c2d649
3
- size 99518
2
+ oid sha256:b78a348d581a64dac0e23fb8f4c1d717b3304584739a6b4a871268135b699075
3
+ size 92494
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bbea9c2b1d045154c48ca466009723062a29fed1efc3eebad5b2a42f39ed8a3
3
- size 97347
2
+ oid sha256:c319edf3a89336e74444edb31e2650f080185e81934e7a8e441c5c72daac95c2
3
+ size 90399
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb0b04a888c0956232b02f743be271b56d48bbe252fd47402dac42d46ed76029
3
- size 97461
2
+ oid sha256:9f20d87ec72d3743bb008945f53364b0319b26f5144133d9bb25931fec52a313
3
+ size 90531
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:66e5b2b94adde1c3a14f59d9c9ff89994d9b1410384b9fafb116b7cea948cc11
3
- size 15268
2
+ oid sha256:6dc97ad04addf386b55440c5d25f372bd83c38f4798c7942b304fe293b591b68
3
+ size 15496
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbc1483bd3025d7a628327a486002be927790beff915031a147e983786740ab0
3
- size 9986
2
+ oid sha256:ee1d0319ded18b1c5fedfb51f0f12f9392f14082a759cd67027b5ce2e322756f
3
+ size 9610
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6dd69e2d7c833496c82d3035e82ab13f113409087b6209a0b66eb5f6a8684c1
3
- size 4026
2
+ oid sha256:e8c74b5d85319192fe38e738d93f565e072ffd25ba30fc8ba640ba6a2ad28e9c
3
+ size 3828
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7ecc6eaabdbe2c5635b80d88dd2c10e88e1ad36834211cb760e133b9ded1869a
3
- size 107610
2
+ oid sha256:b439afd8af39f670047bae82c873dc3202633d55d094673aa754b7c8fe4ec66e
3
+ size 103245
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8cdee0eb62caec6acdf1b632c1c13c79eff15037aed58e10eb7c3088934b0707
3
- size 107893
2
+ oid sha256:fb9bff8bd44a34e02121c5c13ea229260bb1097ad3316c8af045ce548efcc1da
3
+ size 103526
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd4ce1e874bb5cef90c294ea4d3c15691e816b1077d7309a1cbebd588cbc838b
3
- size 69991
2
+ oid sha256:cafc69f04bd7799c7108655e37ced2f64c9b43077f8060d2e4503ed404d10831
3
+ size 69534
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:93ebf4281d84e7940906a7662b9da7b840e5b604a0cc7d6893d9b19a551363b6
3
- size 38714
2
+ oid sha256:73bb4793a5e1d49e1ce910e153f8130e5ea114c8e3791579f144760101bfd30f
3
+ size 36525
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06482aa878a4bf7d962b3c7f40cb4929ba59f8c92e4fa386aa20068d7ecc2793
3
- size 36712
2
+ oid sha256:f35f8dae22c3390219df42b2d41df3c1ec5647b74af0e47cb54621c2a75fc53b
3
+ size 34707
@@ -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: "0.0.0-development"
7
+ packageVersion: "43.26.6"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef, useCallback, useMemo } from 'react';
5
5
  import { LoadingButton } from '@atlaskit/button';
6
6
  import Button, { IconButton, LinkButton, LinkIconButton } from '@atlaskit/button/new';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Box } from '@atlaskit/primitives/compiled';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  import { SmartLinkSize } from '../../../../../../constants';
@@ -60,64 +59,17 @@ var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
60
59
  var button = useMemo(function () {
61
60
  var isLinkButton = !!href;
62
61
  var spacing = size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'default' : 'compact';
63
- if (fg('platform-button-icon-spacing-cleanup')) {
64
- var icon = iconBefore || iconAfter;
65
- var iconFn = icon ? function () {
66
- return icon;
67
- } : undefined;
68
- if (iconOnly && iconFn) {
69
- if (isLinkButton && iconFn) {
70
- return /*#__PURE__*/React.createElement(LinkIconButton, {
71
- appearance: IconButtonAppearanceMap[appearance],
72
- icon: iconFn,
73
- href: href,
74
- isDisabled: isDisabled,
75
- isTooltipDisabled: false,
76
- label: tooltipMessage,
77
- onClick: onButtonClick(onClick),
78
- spacing: spacing,
79
- testId: testId,
80
- tooltip: tooltipOptions
81
- });
82
- }
83
- return /*#__PURE__*/React.createElement(IconButton, {
62
+ var icon = iconBefore || iconAfter;
63
+ var iconFn = icon ? function () {
64
+ return icon;
65
+ } : undefined;
66
+ if (iconOnly && iconFn) {
67
+ if (isLinkButton && iconFn) {
68
+ return /*#__PURE__*/React.createElement(LinkIconButton, {
84
69
  appearance: IconButtonAppearanceMap[appearance],
85
70
  icon: iconFn,
71
+ href: href,
86
72
  isDisabled: isDisabled,
87
- isLoading: isLoading,
88
- isTooltipDisabled: false,
89
- label: tooltipMessage,
90
- onClick: onButtonClick(onClick),
91
- spacing: spacing,
92
- testId: testId,
93
- tooltip: tooltipOptions
94
- });
95
- }
96
- } else {
97
- if (iconOnly) {
98
- var _icon = iconBefore || iconAfter;
99
- var _iconFn = function _iconFn() {
100
- return _icon || null;
101
- };
102
- if (isLinkButton) {
103
- return /*#__PURE__*/React.createElement(LinkIconButton, {
104
- appearance: IconButtonAppearanceMap[appearance],
105
- icon: _iconFn,
106
- href: href,
107
- isDisabled: isDisabled,
108
- isTooltipDisabled: false,
109
- label: tooltipMessage,
110
- onClick: onButtonClick(onClick),
111
- spacing: spacing,
112
- testId: testId,
113
- tooltip: tooltipOptions
114
- });
115
- }
116
- return /*#__PURE__*/React.createElement(IconButton, {
117
- appearance: IconButtonAppearanceMap[appearance],
118
- icon: _iconFn,
119
- isDisabled: isDisabled,
120
- isLoading: isLoading,
121
73
  isTooltipDisabled: false,
122
74
  label: tooltipMessage,
123
75
  onClick: onButtonClick(onClick),
@@ -126,86 +78,57 @@ var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
126
78
  tooltip: tooltipOptions
127
79
  });
128
80
  }
129
- }
130
- if (fg('platform-button-icon-spacing-cleanup')) {
131
- var iconBeforeFn = iconBefore ? function () {
132
- return iconBefore;
133
- } : undefined;
134
- var iconAfterFn = iconAfter ? function () {
135
- return iconAfter;
136
- } : undefined;
137
- if (isLinkButton) {
138
- return /*#__PURE__*/React.createElement(Tooltip, {
139
- content: tooltipMessage,
140
- hideTooltipOnClick: true,
141
- testId: "".concat(testId, "-tooltip")
142
- }, /*#__PURE__*/React.createElement(LinkButton, {
143
- appearance: ButtonAppearanceMap[appearance],
144
- "aria-label": ariaLabel,
145
- iconAfter: iconAfterFn,
146
- iconBefore: iconBeforeFn,
147
- isDisabled: isDisabled,
148
- href: href,
149
- onClick: onButtonClick(onClick),
150
- spacing: spacing,
151
- testId: testId
152
- }, content));
153
- }
154
- return /*#__PURE__*/React.createElement(Tooltip, {
155
- content: tooltipMessage,
156
- hideTooltipOnClick: true,
157
- testId: "".concat(testId, "-tooltip")
158
- }, /*#__PURE__*/React.createElement(Button, {
159
- appearance: ButtonAppearanceMap[appearance],
160
- "aria-label": ariaLabel,
161
- iconAfter: iconAfterFn,
162
- iconBefore: iconBeforeFn,
81
+ return /*#__PURE__*/React.createElement(IconButton, {
82
+ appearance: IconButtonAppearanceMap[appearance],
83
+ icon: iconFn,
163
84
  isDisabled: isDisabled,
164
85
  isLoading: isLoading,
86
+ isTooltipDisabled: false,
87
+ label: tooltipMessage,
165
88
  onClick: onButtonClick(onClick),
166
89
  spacing: spacing,
167
- testId: testId
168
- }, content));
169
- } else {
170
- var _iconBeforeFn = function _iconBeforeFn() {
171
- return iconBefore || null;
172
- };
173
- var _iconAfterFn = function _iconAfterFn() {
174
- return iconAfter || null;
175
- };
176
- if (isLinkButton) {
177
- return /*#__PURE__*/React.createElement(Tooltip, {
178
- content: tooltipMessage,
179
- hideTooltipOnClick: true,
180
- testId: "".concat(testId, "-tooltip")
181
- }, /*#__PURE__*/React.createElement(LinkButton, {
182
- appearance: ButtonAppearanceMap[appearance],
183
- "aria-label": ariaLabel,
184
- iconAfter: _iconAfterFn,
185
- iconBefore: _iconBeforeFn,
186
- isDisabled: isDisabled,
187
- href: href,
188
- onClick: onButtonClick(onClick),
189
- spacing: spacing,
190
- testId: testId
191
- }, content));
192
- }
90
+ testId: testId,
91
+ tooltip: tooltipOptions
92
+ });
93
+ }
94
+ var iconBeforeFn = iconBefore ? function () {
95
+ return iconBefore;
96
+ } : undefined;
97
+ var iconAfterFn = iconAfter ? function () {
98
+ return iconAfter;
99
+ } : undefined;
100
+ if (isLinkButton) {
193
101
  return /*#__PURE__*/React.createElement(Tooltip, {
194
102
  content: tooltipMessage,
195
103
  hideTooltipOnClick: true,
196
104
  testId: "".concat(testId, "-tooltip")
197
- }, /*#__PURE__*/React.createElement(Button, {
105
+ }, /*#__PURE__*/React.createElement(LinkButton, {
198
106
  appearance: ButtonAppearanceMap[appearance],
199
107
  "aria-label": ariaLabel,
200
- iconAfter: _iconAfterFn,
201
- iconBefore: _iconBeforeFn,
108
+ iconAfter: iconAfterFn,
109
+ iconBefore: iconBeforeFn,
202
110
  isDisabled: isDisabled,
203
- isLoading: isLoading,
111
+ href: href,
204
112
  onClick: onButtonClick(onClick),
205
113
  spacing: spacing,
206
114
  testId: testId
207
115
  }, content));
208
116
  }
117
+ return /*#__PURE__*/React.createElement(Tooltip, {
118
+ content: tooltipMessage,
119
+ hideTooltipOnClick: true,
120
+ testId: "".concat(testId, "-tooltip")
121
+ }, /*#__PURE__*/React.createElement(Button, {
122
+ appearance: ButtonAppearanceMap[appearance],
123
+ "aria-label": ariaLabel,
124
+ iconAfter: iconAfterFn,
125
+ iconBefore: iconBeforeFn,
126
+ isDisabled: isDisabled,
127
+ isLoading: isLoading,
128
+ onClick: onButtonClick(onClick),
129
+ spacing: spacing,
130
+ testId: testId
131
+ }, content));
209
132
  }, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
210
133
  return /*#__PURE__*/React.createElement(Box, {
211
134
  testId: "".concat(testId, "-button-wrapper"),
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "0.0.0-development",
18
+ packageVersion: "43.26.6",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.26.5",
3
+ "version": "43.26.7",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
32
32
  "@atlaskit/analytics-gas-types": "^5.1.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
- "@atlaskit/avatar": "^25.8.0",
34
+ "@atlaskit/avatar": "^25.9.0",
35
35
  "@atlaskit/avatar-group": "^12.4.0",
36
36
  "@atlaskit/badge": "^18.4.0",
37
37
  "@atlaskit/browser-apis": "^0.0.1",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/heading": "^5.3.0",
47
47
  "@atlaskit/icon": "^32.1.0",
48
48
  "@atlaskit/icon-file-type": "^7.0.0",
49
- "@atlaskit/icon-object": "^7.4.0",
49
+ "@atlaskit/icon-object": "^7.5.0",
50
50
  "@atlaskit/image": "^3.0.0",
51
51
  "@atlaskit/json-ld-types": "^1.4.0",
52
52
  "@atlaskit/link": "^3.3.0",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/popup": "^4.13.0",
67
67
  "@atlaskit/primitives": "^18.0.0",
68
68
  "@atlaskit/react-ufo": "^5.4.0",
69
- "@atlaskit/rovo-triggers": "^5.25.0",
69
+ "@atlaskit/rovo-triggers": "^5.26.0",
70
70
  "@atlaskit/section-message": "^8.12.0",
71
71
  "@atlaskit/select": "^21.8.0",
72
72
  "@atlaskit/spinner": "^19.0.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/textfield": "^8.2.0",
75
75
  "@atlaskit/theme": "^22.0.0",
76
76
  "@atlaskit/tile": "^1.0.0",
77
- "@atlaskit/tmp-editor-statsig": "^39.0.0",
77
+ "@atlaskit/tmp-editor-statsig": "^40.2.0",
78
78
  "@atlaskit/tokens": "^11.1.0",
79
79
  "@atlaskit/tooltip": "^20.14.0",
80
80
  "@atlaskit/ufo": "^0.4.0",
@@ -108,7 +108,7 @@
108
108
  "@atlassian/a11y-jest-testing": "^0.10.0",
109
109
  "@atlassian/analytics-tooling": "workspace:^",
110
110
  "@atlassian/feature-flags-test-utils": "^1.0.0",
111
- "@atlassian/gemini": "^1.37.0",
111
+ "@atlassian/gemini": "^1.38.0",
112
112
  "@atlassian/testing-library": "^0.4.0",
113
113
  "@testing-library/dom": "^10.1.0",
114
114
  "@testing-library/jest-dom": "^6.4.5",
@@ -224,9 +224,6 @@
224
224
  "platform_navx_send_context_to_ugs_for_rel_links": {
225
225
  "type": "boolean"
226
226
  },
227
- "platform-button-icon-spacing-cleanup": {
228
- "type": "boolean"
229
- },
230
227
  "platform_sl_3p_auth_rovo_action_kill_switch": {
231
228
  "type": "boolean"
232
229
  },