@atlaskit/smart-card 34.6.4 → 34.6.6

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 (213) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/utils/index.js +121 -1
  4. package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -1
  5. package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -1
  6. package/dist/cjs/view/BlockCard/views/unresolved-view/index.js +1 -1
  7. package/dist/cjs/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  8. package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -1
  9. package/dist/cjs/view/EmbedModal/components/link-info/index.js +1 -1
  10. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  11. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  12. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -1
  14. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  16. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
  17. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +1 -1
  18. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
  19. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
  20. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
  21. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  22. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
  23. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  24. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  25. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  26. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
  27. package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +5 -2
  28. package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -2
  29. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  30. package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -1
  31. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  32. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
  33. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  34. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -1
  35. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -1
  36. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  37. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -1
  38. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
  39. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -3
  40. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
  41. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -2
  42. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +1 -1
  43. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  44. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -1
  45. package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -1
  46. package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +1 -1
  47. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +1 -1
  48. package/dist/cjs/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
  49. package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -2
  50. package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +1 -1
  51. package/dist/cjs/view/InlineCard/ErroredView/index.js +10 -3
  52. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +31 -7
  53. package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +3 -2
  54. package/dist/cjs/view/InlineCard/Frame/styled.js +8 -5
  55. package/dist/cjs/view/InlineCard/Icon.js +1 -1
  56. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
  57. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +163 -33
  58. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +25 -18
  59. package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
  60. package/dist/cjs/view/InlineCard/ResolvingView/index.js +10 -5
  61. package/dist/cjs/view/InlineCard/ResolvingView/styled.js +6 -5
  62. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +16 -4
  63. package/dist/cjs/view/InlineCard/common/action-button/index.js +61 -0
  64. package/dist/cjs/view/InlineCard/styled.js +5 -4
  65. package/dist/cjs/view/LinkUrl/index.js +1 -1
  66. package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +1 -1
  67. package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -1
  68. package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -1
  69. package/dist/es2019/utils/analytics/analytics.js +1 -1
  70. package/dist/es2019/utils/index.js +61 -0
  71. package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
  72. package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -1
  73. package/dist/es2019/view/BlockCard/views/unresolved-view/index.js +1 -1
  74. package/dist/es2019/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  75. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -1
  76. package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
  77. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  78. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  79. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +1 -1
  80. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -1
  81. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  82. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  83. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
  84. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +1 -1
  85. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
  86. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
  87. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
  88. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  89. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
  90. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  91. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  92. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  93. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
  94. package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +5 -2
  95. package/dist/es2019/view/FlexibleCard/components/container/index.js +2 -2
  96. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  97. package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -1
  98. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  99. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -1
  100. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  101. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
  102. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
  103. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  104. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -1
  105. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
  106. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -2
  107. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
  108. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -2
  109. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -1
  110. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  111. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
  112. package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
  113. package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +1 -1
  114. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +1 -1
  115. package/dist/es2019/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
  116. package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
  117. package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +1 -1
  118. package/dist/es2019/view/InlineCard/ErroredView/index.js +12 -5
  119. package/dist/es2019/view/InlineCard/ForbiddenView/index.js +34 -10
  120. package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +3 -2
  121. package/dist/es2019/view/InlineCard/Frame/styled.js +8 -5
  122. package/dist/es2019/view/InlineCard/Icon.js +1 -1
  123. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
  124. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +163 -33
  125. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +24 -17
  126. package/dist/es2019/view/InlineCard/ResolvedView/index.js +4 -2
  127. package/dist/es2019/view/InlineCard/ResolvingView/index.js +13 -8
  128. package/dist/es2019/view/InlineCard/ResolvingView/styled.js +6 -5
  129. package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +18 -6
  130. package/dist/es2019/view/InlineCard/common/action-button/index.js +50 -0
  131. package/dist/es2019/view/InlineCard/styled.js +4 -3
  132. package/dist/es2019/view/LinkUrl/index.js +1 -1
  133. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +1 -1
  134. package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -1
  135. package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -1
  136. package/dist/esm/utils/analytics/analytics.js +1 -1
  137. package/dist/esm/utils/index.js +81 -1
  138. package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
  139. package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -1
  140. package/dist/esm/view/BlockCard/views/unresolved-view/index.js +1 -1
  141. package/dist/esm/view/BlockCard/views/utils/withFlexibleUIBlockCardStyle.js +1 -1
  142. package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -1
  143. package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
  144. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  145. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  146. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/skeleton/main.js +1 -1
  147. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +1 -1
  148. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  149. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  150. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
  151. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +1 -1
  152. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
  153. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
  154. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
  155. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  156. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
  157. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  158. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  159. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  160. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
  161. package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +5 -2
  162. package/dist/esm/view/FlexibleCard/components/container/index.js +2 -2
  163. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  164. package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -1
  165. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  166. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  167. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  168. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
  169. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
  170. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  171. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -1
  172. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
  173. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +2 -3
  174. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
  175. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +2 -2
  176. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
  177. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  178. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
  179. package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
  180. package/dist/esm/view/HoverCard/components/views/forbidden/index.js +1 -1
  181. package/dist/esm/view/HoverCard/components/views/resolved/index.js +1 -1
  182. package/dist/esm/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
  183. package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
  184. package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +1 -1
  185. package/dist/esm/view/InlineCard/ErroredView/index.js +12 -5
  186. package/dist/esm/view/InlineCard/ForbiddenView/index.js +34 -10
  187. package/dist/esm/view/InlineCard/Frame/styled.compiled.css +3 -2
  188. package/dist/esm/view/InlineCard/Frame/styled.js +8 -5
  189. package/dist/esm/view/InlineCard/Icon.js +1 -1
  190. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
  191. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +163 -33
  192. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +24 -17
  193. package/dist/esm/view/InlineCard/ResolvedView/index.js +4 -2
  194. package/dist/esm/view/InlineCard/ResolvingView/index.js +13 -8
  195. package/dist/esm/view/InlineCard/ResolvingView/styled.js +6 -5
  196. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +18 -6
  197. package/dist/esm/view/InlineCard/common/action-button/index.js +51 -0
  198. package/dist/esm/view/InlineCard/styled.js +4 -3
  199. package/dist/esm/view/LinkUrl/index.js +1 -1
  200. package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +1 -1
  201. package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.js +1 -1
  202. package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +1 -1
  203. package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +10 -2
  204. package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -8
  205. package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +1 -1
  206. package/dist/types/view/InlineCard/common/action-button/index.d.ts +19 -0
  207. package/dist/types/view/InlineCard/styled.d.ts +1 -1
  208. package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/index.d.ts +10 -2
  209. package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -8
  210. package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +1 -1
  211. package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +19 -0
  212. package/dist/types-ts4.5/view/InlineCard/styled.d.ts +1 -1
  213. package/package.json +5 -2
@@ -1,20 +1,22 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import "./index.compiled.css";
5
5
  import { forwardRef } from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
+ import { di } from 'react-magnetic-di';
8
9
  import ImageLoader from 'react-render-image';
9
10
  import LinkIcon from '@atlaskit/icon/core/migration/link';
10
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { Box, xcss } from '@atlaskit/primitives';
11
13
  import { B400, N200 } from '@atlaskit/theme/colors';
12
14
  import { Icon, Shimmer } from '../Icon';
13
15
  import { LinkAppearance as LinkAppearanceOld, NoLinkAppearance as NoLinkAppearanceOld } from '../styled-emotion';
14
- import { EmojiWrapper, IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, TitleWrapperClassName } from './styled';
16
+ import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPositionWrapperOldVisualRefresh, IconTitleWrapperOldVisualRefresh, IconWrapperOldVisualRefresh, TitleWrapperClassNameOldVisualRefresh, TitleWrapperOldVisualRefresh } from './styled';
15
17
  import { EmojiWrapper as EmojiWrapperOld, IconEmptyWrapper as IconEmptyWrapperOld, IconPositionWrapper as IconPositionWrapperOld, IconTitleWrapper as IconTitleWrapperOld, IconWrapper as IconWrapperOld, TitleWrapper as TitleWrapperOld } from './styled-emotion';
16
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
17
- const NoLinkAppearance = forwardRef(({
19
+ const NoLinkAppearanceOldVisualRefresh = forwardRef(({
18
20
  as: C = "span",
19
21
  style: __cmpls,
20
22
  ...__cmplp
@@ -28,7 +30,7 @@ const NoLinkAppearance = forwardRef(({
28
30
 
29
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
30
32
  if (process.env.NODE_ENV !== 'production') {
31
- NoLinkAppearance.displayName = 'NoLinkAppearance';
33
+ NoLinkAppearanceOldVisualRefresh.displayName = 'NoLinkAppearanceOldVisualRefresh';
32
34
  }
33
35
  const LinkAppearance = forwardRef(({
34
36
  as: C = "a",
@@ -77,12 +79,26 @@ export class IconAndTitleLayout extends React.Component {
77
79
  emoji
78
80
  } = this.props;
79
81
  if (emoji) {
80
- return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji) : /*#__PURE__*/React.createElement(EmojiWrapperOld, null, emoji);
82
+ if (fg('platform-linking-visual-refresh-v1')) {
83
+ return /*#__PURE__*/React.createElement(Box, {
84
+ as: "span",
85
+ xcss: iconWrapperStyle,
86
+ testId: "icon-position-emoji-wrapper"
87
+ }, emoji);
88
+ }
89
+ return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(EmojiWrapperOldVisualRefresh, null, emoji) : /*#__PURE__*/React.createElement(EmojiWrapperOld, null, emoji);
81
90
  }
82
91
  if (!icon || typeof icon === 'string') {
83
92
  return null;
84
93
  }
85
- return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(IconWrapper, null, icon) : /*#__PURE__*/React.createElement(IconWrapperOld, null, icon);
94
+ if (fg('platform-linking-visual-refresh-v1')) {
95
+ return /*#__PURE__*/React.createElement(Box, {
96
+ as: "span",
97
+ xcss: iconWrapperStyle,
98
+ testId: "icon-atlaskit-icon-wrapper"
99
+ }, icon);
100
+ }
101
+ return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, icon) : /*#__PURE__*/React.createElement(IconWrapperOld, null, icon);
86
102
  }
87
103
  renderImageIcon(errored, testId) {
88
104
  const {
@@ -91,6 +107,21 @@ export class IconAndTitleLayout extends React.Component {
91
107
  if (!url || typeof url !== 'string') {
92
108
  return null;
93
109
  }
110
+ if (fg('platform-linking-visual-refresh-v1')) {
111
+ return /*#__PURE__*/React.createElement(ImageLoader, {
112
+ src: url,
113
+ loaded: /*#__PURE__*/React.createElement("img", {
114
+ src: url,
115
+ "data-testid": `${testId}-image`,
116
+ alt: "",
117
+ className: ax(["_1bsb1osq"])
118
+ }),
119
+ errored: errored,
120
+ loading: /*#__PURE__*/React.createElement(Shimmer, {
121
+ testId: `${testId}-loading`
122
+ })
123
+ });
124
+ }
94
125
  return /*#__PURE__*/React.createElement(ImageLoader, {
95
126
  src: url,
96
127
  loaded: /*#__PURE__*/React.createElement(Icon
@@ -110,10 +141,18 @@ export class IconAndTitleLayout extends React.Component {
110
141
  const {
111
142
  defaultIcon
112
143
  } = this.props;
144
+ if (fg('platform-linking-visual-refresh-v1')) {
145
+ return defaultIcon || /*#__PURE__*/React.createElement(LinkIcon, {
146
+ label: "link",
147
+ LEGACY_size: "small",
148
+ testId: `${testId}-default`,
149
+ color: "currentColor"
150
+ });
151
+ }
113
152
  if (defaultIcon) {
114
- return /*#__PURE__*/React.createElement(IconWrapper, null, defaultIcon);
153
+ return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, defaultIcon);
115
154
  }
116
- return /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(LinkIcon, {
155
+ return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, /*#__PURE__*/React.createElement(LinkIcon, {
117
156
  label: "link",
118
157
  LEGACY_size: "small",
119
158
  testId: `${testId}-default`,
@@ -131,6 +170,13 @@ export class IconAndTitleLayout extends React.Component {
131
170
  }
132
171
  const placeholder = this.renderIconPlaceholder(testId);
133
172
  const image = this.renderImageIcon(placeholder, testId);
173
+ if (fg('platform-linking-visual-refresh-v1')) {
174
+ return /*#__PURE__*/React.createElement(Box, {
175
+ as: "span",
176
+ xcss: iconWrapperStyle,
177
+ testId: `${testId}-image-wrapper`
178
+ }, image || placeholder);
179
+ }
134
180
  return image || placeholder;
135
181
  }
136
182
  render() {
@@ -143,20 +189,32 @@ export class IconAndTitleLayout extends React.Component {
143
189
  rightSide,
144
190
  testId = 'inline-card-icon-and-title'
145
191
  } = this.props;
146
- const titlePart = fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapper, {
192
+ const titlePart = fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(React.Fragment, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
193
+ as: "span",
194
+ xcss: iconOuterWrapperStyle,
195
+ testId: "icon-position-wrapper"
196
+ }, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
197
+ as: "span",
198
+ xcss: iconEmptyStyle,
199
+ testId: "icon-empty-wrapper"
200
+ }), this.renderIcon(testId))) : /*#__PURE__*/React.createElement(IconPositionWrapperOldVisualRefresh, {
147
201
  "data-testid": "icon-position-wrapper"
148
- }, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, {
202
+ }, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOldVisualRefresh, {
149
203
  "data-testid": "icon-empty-wrapper"
150
- }), this.renderIcon(testId))), /*#__PURE__*/React.createElement(TitleWrapper
151
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
152
- , {
204
+ }), this.renderIcon(testId))), fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, _extends({
205
+ as: "span",
153
206
  style: {
154
- color: titleTextColor
207
+ color: this.props.titleTextColor
155
208
  }
156
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
157
- ,
158
- className: TitleWrapperClassName
159
- }, title)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapperOld, {
209
+ }, !fg('platform-linking-visual-refresh-v1') ? {
210
+ className: TitleWrapperClassNameOldVisualRefresh
211
+ } : {}), title) : /*#__PURE__*/React.createElement(TitleWrapperOldVisualRefresh, _extends({
212
+ style: {
213
+ color: this.props.titleTextColor
214
+ }
215
+ }, !fg('platform-linking-visual-refresh-v1') ? {
216
+ className: TitleWrapperClassNameOldVisualRefresh
217
+ } : {}), title)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapperOld, {
160
218
  "data-testid": "icon-position-wrapper"
161
219
  }, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOld, {
162
220
  "data-testid": "icon-empty-wrapper"
@@ -168,23 +226,31 @@ export class IconAndTitleLayout extends React.Component {
168
226
  }
169
227
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
170
228
  ,
171
- className: TitleWrapperClassName
229
+ className: TitleWrapperClassNameOldVisualRefresh
172
230
  }, title));
173
231
  if (fg('bandicoots-compiled-migration-smartcard')) {
174
- return (
175
- /*#__PURE__*/
176
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
177
- React.createElement(IconTitleWrapper, {
178
- style: {
179
- color: titleColor
180
- },
181
- "data-testid": testId
182
- }, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
183
- href: link,
184
- onClick: this.handleClick,
185
- onKeyPress: this.handleKeyPress
186
- }, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearance, null, rightSide) : null)
187
- );
232
+ return /*#__PURE__*/React.createElement(React.Fragment, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(IconTitleWrapper, {
233
+ style: {
234
+ color: this.props.titleColor
235
+ },
236
+ testId: testId
237
+ }, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
238
+ href: link,
239
+ onClick: this.handleClick,
240
+ onKeyPress: this.handleKeyPress
241
+ }, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
242
+ as: "span",
243
+ xcss: noLinkAppearanceStyle
244
+ }, rightSide) : null) : /*#__PURE__*/React.createElement(IconTitleWrapperOldVisualRefresh, {
245
+ style: {
246
+ color: this.props.titleColor
247
+ },
248
+ "data-testid": testId
249
+ }, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
250
+ href: link,
251
+ onClick: this.handleClick,
252
+ onKeyPress: this.handleKeyPress
253
+ }, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearanceOldVisualRefresh, null, rightSide) : null));
188
254
  } else {
189
255
  return (
190
256
  /*#__PURE__*/
@@ -205,4 +271,68 @@ export class IconAndTitleLayout extends React.Component {
205
271
  }
206
272
  _defineProperty(IconAndTitleLayout, "defaultProps", {
207
273
  rightSideSpacer: true
274
+ });
275
+ export const IconTitleWrapper = props => {
276
+ return /*#__PURE__*/React.createElement(Box, _extends({
277
+ as: "span",
278
+ xcss: iconTitleWrapperStyle
279
+ }, props));
280
+ };
281
+ export const LozengeWrapper = props => {
282
+ return /*#__PURE__*/React.createElement(Box, {
283
+ as: "span",
284
+ xcss: lozengeWrapperStyle
285
+ }, /*#__PURE__*/React.createElement(Box, _extends({
286
+ xcss: lozengeInternalWrapperStyle
287
+ }, props)));
288
+ };
289
+ const lozengeInternalWrapperStyle = xcss({
290
+ paddingBottom: 'space.025'
291
+ });
292
+ const lozengeWrapperStyle = xcss({
293
+ display: 'inline-block',
294
+ verticalAlign: 'bottom',
295
+ marginTop: 'space.0',
296
+ marginRight: 'space.050',
297
+ marginBottom: 'space.0',
298
+ marginLeft: 'space.025'
299
+ });
300
+ const horizontalPadding = 'space.050';
301
+ const verticalPadding = 'space.025';
302
+ const iconWidth = '16px';
303
+ const iconEmptyStyle = xcss({
304
+ width: iconWidth,
305
+ display: 'inline-block',
306
+ opacity: 0
307
+ });
308
+ const iconOuterWrapperStyle = xcss({
309
+ marginRight: 'space.050',
310
+ display: 'inline-block',
311
+ position: 'relative'
312
+ });
313
+ const iconTitleWrapperStyle = xcss({
314
+ whiteSpace: 'pre-wrap',
315
+ wordBreak: 'break-all',
316
+ boxDecorationBreak: 'clone',
317
+ paddingTop: verticalPadding,
318
+ paddingRight: horizontalPadding,
319
+ paddingBottom: verticalPadding,
320
+ paddingLeft: horizontalPadding
321
+ });
322
+ const iconWrapperStyle = xcss({
323
+ position: 'absolute',
324
+ display: 'inline-flex',
325
+ alignItems: 'center',
326
+ boxSizing: 'border-box',
327
+ top: 'space.0',
328
+ left: 'space.0',
329
+ bottom: 'space.0',
330
+ width: iconWidth,
331
+ userSelect: 'none'
332
+ });
333
+ const iconImageStyle = null;
334
+ const noLinkAppearanceStyle = xcss({
335
+ color: 'color.text.subtlest',
336
+ font: 'font.body',
337
+ marginLeft: 'space.050'
208
338
  });
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./styled.compiled.css";
4
4
  import { forwardRef } from 'react';
@@ -45,8 +45,9 @@ const IconOverrides = `
45
45
  }
46
46
  `;
47
47
 
48
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
48
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
49
- export const IconWrapper = forwardRef(({
50
+ export const IconWrapperOldVisualRefresh = forwardRef(({
50
51
  as: C = "span",
51
52
  style: __cmpls,
52
53
  ...__cmplp
@@ -59,11 +60,12 @@ export const IconWrapper = forwardRef(({
59
60
  });
60
61
 
61
62
  // Wraps all emoji in Inline Links similar to icon
63
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
62
64
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
63
65
  if (process.env.NODE_ENV !== 'production') {
64
- IconWrapper.displayName = 'IconWrapper';
66
+ IconWrapperOldVisualRefresh.displayName = 'IconWrapperOldVisualRefresh';
65
67
  }
66
- export const EmojiWrapper = forwardRef(({
68
+ export const EmojiWrapperOldVisualRefresh = forwardRef(({
67
69
  as: C = "span",
68
70
  style: __cmpls,
69
71
  ...__cmplp
@@ -78,11 +80,12 @@ export const EmojiWrapper = forwardRef(({
78
80
  // The main 'wrapping' element, title of the content.
79
81
  // NB: `white-space` adds little whitespace before wrapping.
80
82
  // NB: `word-break` line breaks as soon as an overflow takes place.
83
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
81
84
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
82
85
  if (process.env.NODE_ENV !== 'production') {
83
- EmojiWrapper.displayName = 'EmojiWrapper';
86
+ EmojiWrapperOldVisualRefresh.displayName = 'EmojiWrapperOldVisualRefresh';
84
87
  }
85
- export const IconTitleWrapper = forwardRef(({
88
+ export const IconTitleWrapperOldVisualRefresh = forwardRef(({
86
89
  as: C = "span",
87
90
  style: __cmpls,
88
91
  ...__cmplp
@@ -94,12 +97,12 @@ export const IconTitleWrapper = forwardRef(({
94
97
  }));
95
98
  });
96
99
 
97
- // TODO: Replace overrides with proper AtlasKit solution.
100
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
98
101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
99
102
  if (process.env.NODE_ENV !== 'production') {
100
- IconTitleWrapper.displayName = 'IconTitleWrapper';
103
+ IconTitleWrapperOldVisualRefresh.displayName = 'IconTitleWrapperOldVisualRefresh';
101
104
  }
102
- export const LozengeWrapper = forwardRef(({
105
+ export const LozengeWrapperOldVisualRefresh = forwardRef(({
103
106
  as: C = "span",
104
107
  style: __cmpls,
105
108
  ...__cmplp
@@ -113,7 +116,7 @@ export const LozengeWrapper = forwardRef(({
113
116
 
114
117
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
115
118
  if (process.env.NODE_ENV !== 'production') {
116
- LozengeWrapper.displayName = 'LozengeWrapper';
119
+ LozengeWrapperOldVisualRefresh.displayName = 'LozengeWrapperOldVisualRefresh';
117
120
  }
118
121
  export const RightIconPositionWrapper = forwardRef(({
119
122
  as: C = "span",
@@ -130,11 +133,12 @@ export const RightIconPositionWrapper = forwardRef(({
130
133
  // The following components are used to absolutely position icons in the vertical center.
131
134
  // - IconPositionWrapper: the `relative` parent which has no height in itself.
132
135
  // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
136
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
133
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
134
138
  if (process.env.NODE_ENV !== 'production') {
135
139
  RightIconPositionWrapper.displayName = 'RightIconPositionWrapper';
136
140
  }
137
- export const IconPositionWrapper = forwardRef(({
141
+ export const IconPositionWrapperOldVisualRefresh = forwardRef(({
138
142
  as: C = "span",
139
143
  style: __cmpls,
140
144
  ...__cmplp
@@ -146,11 +150,12 @@ export const IconPositionWrapper = forwardRef(({
146
150
  }));
147
151
  });
148
152
 
153
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
149
154
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
150
155
  if (process.env.NODE_ENV !== 'production') {
151
- IconPositionWrapper.displayName = 'IconPositionWrapper';
156
+ IconPositionWrapperOldVisualRefresh.displayName = 'IconPositionWrapperOldVisualRefresh';
152
157
  }
153
- export const IconEmptyWrapper = forwardRef(({
158
+ export const IconEmptyWrapperOldVisualRefresh = forwardRef(({
154
159
  as: C = "span",
155
160
  style: __cmpls,
156
161
  ...__cmplp
@@ -163,14 +168,16 @@ export const IconEmptyWrapper = forwardRef(({
163
168
  });
164
169
 
165
170
  // With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
171
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
166
172
  // To achieve same result we use classname instead.
167
173
  if (process.env.NODE_ENV !== 'production') {
168
- IconEmptyWrapper.displayName = 'IconEmptyWrapper';
174
+ IconEmptyWrapperOldVisualRefresh.displayName = 'IconEmptyWrapperOldVisualRefresh';
169
175
  }
170
- export const TitleWrapperClassName = 'smart-link-title-wrapper';
176
+ export const TitleWrapperClassNameOldVisualRefresh = 'smart-link-title-wrapper';
171
177
 
178
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
172
179
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
173
- export const TitleWrapper = forwardRef(({
180
+ export const TitleWrapperOldVisualRefresh = forwardRef(({
174
181
  as: C = "span",
175
182
  style: __cmpls,
176
183
  ...__cmplp
@@ -182,5 +189,5 @@ export const TitleWrapper = forwardRef(({
182
189
  }));
183
190
  });
184
191
  if (process.env.NODE_ENV !== 'production') {
185
- TitleWrapper.displayName = 'TitleWrapper';
192
+ TitleWrapperOldVisualRefresh.displayName = 'TitleWrapperOldVisualRefresh';
186
193
  }
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import Lozenge from '@atlaskit/lozenge';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { HoverCard } from '../../HoverCard';
4
5
  import { Frame } from '../Frame';
5
- import { IconAndTitleLayout } from '../IconAndTitleLayout';
6
- import { LozengeWrapper } from '../IconAndTitleLayout/styled';
6
+ import { IconAndTitleLayout, LozengeWrapper as LozengeWrapperNew } from '../IconAndTitleLayout';
7
+ import { LozengeWrapperOldVisualRefresh } from '../IconAndTitleLayout/styled';
7
8
  export class InlineCardResolvedView extends React.Component {
8
9
  renderLozenge() {
9
10
  const {
@@ -13,6 +14,7 @@ export class InlineCardResolvedView extends React.Component {
13
14
  return null;
14
15
  }
15
16
  const appearance = lozenge.appearance || 'default';
17
+ const LozengeWrapper = fg('platform-linking-visual-refresh-v1') ? LozengeWrapperNew : LozengeWrapperOldVisualRefresh;
16
18
  return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
17
19
  testId: "inline-card-resolved-view-lozenge",
18
20
  appearance: appearance
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import Spinner from '@atlaskit/spinner';
4
4
  import { Frame } from '../Frame';
5
- import { IconAndTitleLayout } from '../IconAndTitleLayout';
6
- import { IconTitleWrapper, RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
5
+ import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
6
+ import { IconTitleWrapperOldVisualRefresh, RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
7
7
  import { IconTitleWrapper as IconTitleWrapperOld, RightIconPositionWrapper as RightIconPositionWrapperOld } from '../IconAndTitleLayout/styled-emotion';
8
- import { SpinnerWrapper } from './styled';
8
+ import { SpinnerWrapperOldVisualRefresh } from './styled';
9
9
  import { SpinnerWrapper as SpinnerWrapperOld } from './styled-emotion';
10
10
  export class InlineCardResolvingView extends React.Component {
11
11
  render() {
@@ -19,7 +19,8 @@ export class InlineCardResolvingView extends React.Component {
19
19
  resolvingPlaceholder,
20
20
  truncateInline
21
21
  } = this.props;
22
- const SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapper : SpinnerWrapperOld;
22
+ const SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapperOldVisualRefresh : SpinnerWrapperOld;
23
+ const IconTitleWrapperFFed = fg('platform-linking-visual-refresh-v1') ? IconTitleWrapper : IconTitleWrapperOldVisualRefresh;
23
24
  if (inlinePreloaderStyle === 'on-right-without-skeleton') {
24
25
  if (fg('bandicoots-compiled-migration-smartcard')) {
25
26
  return /*#__PURE__*/React.createElement(Frame, {
@@ -28,11 +29,13 @@ export class InlineCardResolvingView extends React.Component {
28
29
  onClick: onClick,
29
30
  isSelected: isSelected,
30
31
  truncateInline: truncateInline
31
- }, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
32
+ }, /*#__PURE__*/React.createElement(IconTitleWrapperFFed, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
33
+ size: 14
34
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
32
35
  className: "inline-resolving-spinner"
33
36
  }, /*#__PURE__*/React.createElement(Spinner, {
34
37
  size: 14
35
- })))));
38
+ }))))));
36
39
  } else {
37
40
  return /*#__PURE__*/React.createElement(Frame, {
38
41
  withoutBackground: true,
@@ -56,11 +59,13 @@ export class InlineCardResolvingView extends React.Component {
56
59
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
57
60
  title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
58
61
  titleTextColor: titleTextColor
59
- }, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
62
+ }, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Spinner, {
63
+ size: 14
64
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
60
65
  className: "inline-resolving-spinner"
61
66
  }, /*#__PURE__*/React.createElement(Spinner, {
62
67
  size: 14
63
- }))));
68
+ })))));
64
69
  }
65
70
  }
66
71
  }
@@ -1,14 +1,15 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./styled.compiled.css";
4
4
  import { forwardRef } from 'react';
5
5
  import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
- import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
7
+ import { IconTitleWrapperOldVisualRefresh } from '../IconAndTitleLayout/styled';
8
8
 
9
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
9
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
10
- export const SpinnerWrapper = forwardRef(({
11
- as: C = IconTitleWrapper,
11
+ export const SpinnerWrapperOldVisualRefresh = forwardRef(({
12
+ as: C = IconTitleWrapperOldVisualRefresh,
12
13
  style: __cmpls,
13
14
  ...__cmplp
14
15
  }, __cmplr) => {
@@ -19,5 +20,5 @@ export const SpinnerWrapper = forwardRef(({
19
20
  }));
20
21
  });
21
22
  if (process.env.NODE_ENV !== 'production') {
22
- SpinnerWrapper.displayName = 'SpinnerWrapper';
23
+ SpinnerWrapperOldVisualRefresh.displayName = 'SpinnerWrapperOldVisualRefresh';
23
24
  }
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
- import Button from '@atlaskit/button';
4
+ import ButtonOld from '@atlaskit/button';
5
5
  import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
6
6
  import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -10,11 +10,12 @@ import { N500, R400 } from '@atlaskit/theme/colors';
10
10
  import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
11
11
  import { messages } from '../../../messages';
12
12
  import { HoverCard } from '../../HoverCard';
13
+ import { ActionButton } from '../common/action-button';
13
14
  import { Frame } from '../Frame';
14
15
  import { AKIconWrapper } from '../Icon';
15
16
  import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
16
17
  import { IconAndTitleLayout } from '../IconAndTitleLayout';
17
- import { IconStyledButton } from '../styled';
18
+ import { IconStyledButtonOldVisualRefresh } from '../styled';
18
19
  import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
19
20
  import withFrameStyleControl from '../utils/withFrameStyleControl';
20
21
  const iconWrapperStyles = xcss({
@@ -76,11 +77,22 @@ export const InlineCardUnauthorizedView = ({
76
77
  }
77
78
  }, [fireEvent, onAuthorise]);
78
79
  const renderActionButton = React.useCallback(() => {
79
- const ActionButton = withFrameStyleControl(Button, frameRef);
80
+ const Button = withFrameStyleControl(ButtonOld, frameRef);
80
81
  if (fg('bandicoots-compiled-migration-smartcard')) {
81
- return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
82
+ if (fg('platform-linking-visual-refresh-v1')) {
83
+ return /*#__PURE__*/React.createElement(Button, {
84
+ component: ActionButton,
85
+ onClick: handleConnectAccount,
86
+ testId: "button-connect-account"
87
+ }, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
88
+ values: {
89
+ context
90
+ }
91
+ })));
92
+ }
93
+ return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
82
94
  spacing: "none",
83
- component: IconStyledButton,
95
+ component: IconStyledButtonOldVisualRefresh,
84
96
  onClick: handleConnectAccount,
85
97
  testId: "button-connect-account"
86
98
  }, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
@@ -89,7 +101,7 @@ export const InlineCardUnauthorizedView = ({
89
101
  }
90
102
  }))) : undefined;
91
103
  } else {
92
- return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
104
+ return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
93
105
  spacing: "none",
94
106
  component: IconStyledButtonOld,
95
107
  onClick: handleConnectAccount,
@@ -0,0 +1,50 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { forwardRef } from 'react';
3
+ import { Box, xcss } from '@atlaskit/primitives';
4
+ /**
5
+ * Action button has to be a span for the overflow to work correctly
6
+ */
7
+ export const ActionButton = /*#__PURE__*/forwardRef(({
8
+ children,
9
+ ...props
10
+ }, ref) => {
11
+ return /*#__PURE__*/React.createElement(Box, _extends({
12
+ as: "span",
13
+ ref: ref,
14
+ xcss: [actionButtonStyle, !props.disabled && actionButtonNotDisabledStyle]
15
+ }, props, {
16
+ "aria-disabled": props.disabled,
17
+ role: "button"
18
+ }), /*#__PURE__*/React.createElement(Box, {
19
+ as: "span",
20
+ xcss: internalButtonStyle
21
+ }, children));
22
+ });
23
+ const actionButtonStyle = xcss({
24
+ textAlign: 'initial',
25
+ display: 'inline',
26
+ borderRadius: 'border.radius.100',
27
+ borderTopLeftRadius: '0px',
28
+ borderBottomLeftRadius: '0px',
29
+ backgroundClip: 'padding-box',
30
+ boxDecorationBreak: 'clone',
31
+ font: 'font.body.large',
32
+ paddingTop: 'space.025',
33
+ paddingLeft: 'space.075',
34
+ paddingBottom: 'space.025',
35
+ paddingRight: 'space.075',
36
+ whiteSpace: 'nowrap',
37
+ backgroundColor: 'color.background.neutral',
38
+ cursor: 'not-allowed',
39
+ color: 'color.text.disabled'
40
+ });
41
+ const internalButtonStyle = xcss({
42
+ font: 'font.body'
43
+ });
44
+ const actionButtonNotDisabledStyle = xcss({
45
+ color: 'color.text',
46
+ cursor: 'pointer',
47
+ ':hover': {
48
+ backgroundColor: 'color.background.neutral.hovered'
49
+ }
50
+ });
@@ -1,4 +1,4 @@
1
- /* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./styled.compiled.css";
4
4
  import { forwardRef } from 'react';
@@ -6,8 +6,9 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  // By default buttons will hide overflow and ellipsis content instead of wrapping.
8
8
  // This basically turns the button back into inline content
9
+ // TODO Delete when cleaning platform-linking-visual-refresh-v1
9
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
10
- export const IconStyledButton = forwardRef(({
11
+ export const IconStyledButtonOldVisualRefresh = forwardRef(({
11
12
  as: C = "span",
12
13
  style: __cmpls,
13
14
  ...__cmplp
@@ -19,5 +20,5 @@ export const IconStyledButton = forwardRef(({
19
20
  }));
20
21
  });
21
22
  if (process.env.NODE_ENV !== 'production') {
22
- IconStyledButton.displayName = 'IconStyledButton';
23
+ IconStyledButtonOldVisualRefresh.displayName = 'IconStyledButtonOldVisualRefresh';
23
24
  }
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "34.6.4",
13
+ packageVersion: "34.6.6",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');