@atlaskit/smart-card 27.0.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/extractors/flexible/extract-state.js +1 -2
  3. package/dist/cjs/messages.js +17 -2
  4. package/dist/cjs/utils/analytics/analytics.js +1 -1
  5. package/dist/cjs/view/BlockCard/components/ActionIcon.js +22 -14
  6. package/dist/cjs/view/BlockCard/components/Content.js +3 -1
  7. package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -1
  8. package/dist/cjs/view/BlockCard/components/ContentHeader.js +3 -1
  9. package/dist/cjs/view/BlockCard/components/Frame.js +6 -2
  10. package/dist/cjs/view/BlockCard/components/Link.js +3 -1
  11. package/dist/cjs/view/BlockCard/components/Name.js +3 -1
  12. package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
  13. package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -1
  14. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +6 -2
  15. package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -1
  16. package/dist/cjs/view/BlockCard/views/ResolvedView.js +6 -2
  17. package/dist/cjs/view/BlockCard/views/ResolvingView.js +3 -1
  18. package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  19. package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  20. package/dist/cjs/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  21. package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +41 -29
  22. package/dist/cjs/view/EmbedCard/components/ImageIcon.js +3 -1
  23. package/dist/cjs/view/EmbedModal/components/link-info/index.js +11 -8
  24. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  25. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +25 -57
  26. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -20
  27. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -7
  28. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
  29. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
  30. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
  31. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
  32. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
  33. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  34. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  35. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  36. package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  37. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  38. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  39. package/dist/cjs/view/HoverCard/components/ContentContainer.js +2 -0
  40. package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
  41. package/dist/cjs/view/InlineCard/Icon.js +3 -1
  42. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  43. package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
  44. package/dist/cjs/view/LinkUrl/index.js +1 -1
  45. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  46. package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +56 -0
  47. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +41 -0
  48. package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +31 -0
  49. package/dist/cjs/view/RelatedLinksModal/views/resolved/types.js +1 -0
  50. package/dist/cjs/view/common/Byline.js +3 -1
  51. package/dist/cjs/view/common/Icon.js +3 -1
  52. package/dist/cjs/view/common/MetadataList.js +3 -1
  53. package/dist/es2019/extractors/flexible/extract-state.js +1 -2
  54. package/dist/es2019/messages.js +17 -2
  55. package/dist/es2019/utils/analytics/analytics.js +1 -1
  56. package/dist/es2019/view/BlockCard/components/ActionIcon.js +22 -14
  57. package/dist/es2019/view/BlockCard/components/Content.js +3 -1
  58. package/dist/es2019/view/BlockCard/components/ContentFooter.js +3 -1
  59. package/dist/es2019/view/BlockCard/components/ContentHeader.js +3 -1
  60. package/dist/es2019/view/BlockCard/components/Frame.js +6 -2
  61. package/dist/es2019/view/BlockCard/components/Link.js +3 -1
  62. package/dist/es2019/view/BlockCard/components/Name.js +3 -1
  63. package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
  64. package/dist/es2019/view/BlockCard/views/ErroredView.js +3 -1
  65. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +6 -2
  66. package/dist/es2019/view/BlockCard/views/NotFoundView.js +3 -1
  67. package/dist/es2019/view/BlockCard/views/ResolvedView.js +6 -2
  68. package/dist/es2019/view/BlockCard/views/ResolvingView.js +3 -1
  69. package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  70. package/dist/es2019/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  71. package/dist/es2019/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  72. package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +14 -4
  73. package/dist/es2019/view/EmbedCard/components/ImageIcon.js +3 -1
  74. package/dist/es2019/view/EmbedModal/components/link-info/index.js +11 -8
  75. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  76. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +6 -34
  77. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
  78. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
  79. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +5 -7
  80. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +7 -8
  81. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +0 -2
  82. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +0 -2
  83. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -8
  84. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  85. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  86. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  87. package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  88. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  89. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  90. package/dist/es2019/view/HoverCard/components/ContentContainer.js +2 -0
  91. package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
  92. package/dist/es2019/view/InlineCard/Icon.js +3 -1
  93. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  94. package/dist/es2019/view/InlineCard/ResolvedView/index.js +3 -1
  95. package/dist/es2019/view/LinkUrl/index.js +1 -1
  96. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  97. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +50 -0
  98. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +33 -0
  99. package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +23 -0
  100. package/dist/es2019/view/RelatedLinksModal/views/resolved/types.js +0 -0
  101. package/dist/es2019/view/common/Byline.js +3 -1
  102. package/dist/es2019/view/common/Icon.js +3 -1
  103. package/dist/es2019/view/common/MetadataList.js +3 -1
  104. package/dist/esm/extractors/flexible/extract-state.js +1 -2
  105. package/dist/esm/messages.js +17 -2
  106. package/dist/esm/utils/analytics/analytics.js +1 -1
  107. package/dist/esm/view/BlockCard/components/ActionIcon.js +22 -14
  108. package/dist/esm/view/BlockCard/components/Content.js +3 -1
  109. package/dist/esm/view/BlockCard/components/ContentFooter.js +3 -1
  110. package/dist/esm/view/BlockCard/components/ContentHeader.js +3 -1
  111. package/dist/esm/view/BlockCard/components/Frame.js +6 -2
  112. package/dist/esm/view/BlockCard/components/Link.js +3 -1
  113. package/dist/esm/view/BlockCard/components/Name.js +3 -1
  114. package/dist/esm/view/BlockCard/components/Provider.js +1 -0
  115. package/dist/esm/view/BlockCard/views/ErroredView.js +3 -1
  116. package/dist/esm/view/BlockCard/views/ForbiddenView.js +6 -2
  117. package/dist/esm/view/BlockCard/views/NotFoundView.js +3 -1
  118. package/dist/esm/view/BlockCard/views/ResolvedView.js +6 -2
  119. package/dist/esm/view/BlockCard/views/ResolvingView.js +3 -1
  120. package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  121. package/dist/esm/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  122. package/dist/esm/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  123. package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +41 -29
  124. package/dist/esm/view/EmbedCard/components/ImageIcon.js +3 -1
  125. package/dist/esm/view/EmbedModal/components/link-info/index.js +11 -8
  126. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  127. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +24 -57
  128. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
  129. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
  130. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
  131. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
  132. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
  133. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
  134. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
  135. package/dist/esm/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  136. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  137. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  138. package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  139. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  140. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  141. package/dist/esm/view/HoverCard/components/ContentContainer.js +2 -0
  142. package/dist/esm/view/InlineCard/Frame/index.js +3 -1
  143. package/dist/esm/view/InlineCard/Icon.js +3 -1
  144. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  145. package/dist/esm/view/InlineCard/ResolvedView/index.js +3 -1
  146. package/dist/esm/view/LinkUrl/index.js +1 -1
  147. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  148. package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +49 -0
  149. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +34 -0
  150. package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +24 -0
  151. package/dist/esm/view/RelatedLinksModal/views/resolved/types.js +0 -0
  152. package/dist/esm/view/common/Byline.js +3 -1
  153. package/dist/esm/view/common/Icon.js +3 -1
  154. package/dist/esm/view/common/MetadataList.js +3 -1
  155. package/dist/types/messages.d.ts +1 -1
  156. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
  157. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
  158. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
  159. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
  160. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
  161. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
  162. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
  163. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
  164. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
  165. package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
  166. package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
  167. package/dist/types/view/RelatedLinksModal/components/types.d.ts +16 -0
  168. package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
  169. package/dist/types/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
  170. package/dist/types-ts4.5/messages.d.ts +1 -1
  171. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
  172. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
  173. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
  174. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
  175. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
  176. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
  177. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
  178. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
  179. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
  180. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
  181. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
  182. package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +16 -0
  183. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
  184. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
  185. package/package.json +3 -6
  186. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -138
  187. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -51
  188. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -131
  189. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
  190. package/dist/types/view/RelatedLinksModal/types.d.ts +0 -6
  191. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
  192. package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +0 -6
  193. /package/dist/cjs/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
  194. /package/dist/es2019/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
  195. /package/dist/esm/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _primitives = require("@atlaskit/primitives");
9
+ var _index = require("../../../../index");
10
+ /** @jsx jsx */
11
+
12
+ var hoverStyles = (0, _primitives.xcss)({
13
+ ':hover': {
14
+ backgroundColor: 'color.background.input.hovered',
15
+ borderRadius: 'border.radius.100',
16
+ marginInline: 'space.negative.100',
17
+ paddingInline: 'space.100'
18
+ }
19
+ });
20
+ var relatedLinkItemStyles = (0, _react.css)({
21
+ paddingTop: "var(--ds-space-100, 8px)",
22
+ paddingBottom: "var(--ds-space-100, 8px)",
23
+ gap: "var(--ds-space-150, 12px)",
24
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
25
+ });
26
+ var RelatedLinkItem = function RelatedLinkItem(_ref) {
27
+ var url = _ref.url,
28
+ testId = _ref.testId;
29
+ var subtitle = [{
30
+ name: _index.ElementName.Provider
31
+ }];
32
+ var ui = {
33
+ hideElevation: true,
34
+ hidePadding: true,
35
+ hideBackground: true,
36
+ theme: _index.SmartLinkTheme.Black,
37
+ clickableContainer: true,
38
+ size: _index.SmartLinkSize.Large
39
+ };
40
+ return (0, _react.jsx)(_primitives.Box, {
41
+ testId: testId,
42
+ xcss: hoverStyles
43
+ }, (0, _react.jsx)(_index.Card, {
44
+ appearance: "block",
45
+ ui: ui,
46
+ url: url
47
+ }, (0, _react.jsx)(_index.TitleBlock, {
48
+ maxLines: 1,
49
+ hideTitleTooltip: true,
50
+ position: _index.SmartLinkPosition.Center,
51
+ subtitle: subtitle,
52
+ overrideCss: relatedLinkItemStyles,
53
+ anchorTarget: "_blank"
54
+ })));
55
+ };
56
+ var _default = exports.default = RelatedLinkItem;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _react = require("@emotion/react");
9
+ var _reactIntlNext = require("react-intl-next");
10
+ var _primitives = require("@atlaskit/primitives");
11
+ var _relatedLinkItem = _interopRequireDefault(require("../related-link-item"));
12
+ var _messages = require("../../../../messages");
13
+ /** @jsx jsx */
14
+
15
+ var RelatedLinksList = function RelatedLinksList(_ref) {
16
+ var urls = _ref.urls,
17
+ title = _ref.title,
18
+ testId = _ref.testId;
19
+ return (0, _react.jsx)(_primitives.Stack, {
20
+ testId: testId
21
+ }, (0, _react.jsx)(_primitives.Box, {
22
+ paddingBlockStart: "space.050",
23
+ xcss: (0, _primitives.xcss)({
24
+ font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
25
+ textTransform: 'uppercase'
26
+ })
27
+ }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, title)), urls.length > 0 && (0, _react.jsx)(_primitives.Box, null, urls.map(function (url, idx) {
28
+ return (0, _react.jsx)(_primitives.Stack, {
29
+ key: "".concat(idx, "-").concat(url)
30
+ }, (0, _react.jsx)(_relatedLinkItem.default, {
31
+ url: url,
32
+ testId: "".concat(testId, "-item-").concat(idx)
33
+ }));
34
+ })), urls.length === 0 && (0, _react.jsx)(_primitives.Box, {
35
+ paddingBlock: "space.100",
36
+ xcss: (0, _primitives.xcss)({
37
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
38
+ })
39
+ }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.related_links_not_found)));
40
+ };
41
+ var _default = exports.default = RelatedLinksList;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _react = require("@emotion/react");
9
+ var _messages = require("../../../../messages");
10
+ var _relatedLinksList = _interopRequireDefault(require("../../components/related-links-list"));
11
+ var _primitives = require("@atlaskit/primitives");
12
+ /** @jsx jsx */
13
+
14
+ var RelatedLinksResolvedView = function RelatedLinksResolvedView(_ref) {
15
+ var _ref$incomingLinks = _ref.incomingLinks,
16
+ incomingLinks = _ref$incomingLinks === void 0 ? [] : _ref$incomingLinks,
17
+ _ref$outgoingLinks = _ref.outgoingLinks,
18
+ outgoingLinks = _ref$outgoingLinks === void 0 ? [] : _ref$outgoingLinks;
19
+ return (0, _react.jsx)(_primitives.Stack, {
20
+ space: "space.150"
21
+ }, (0, _react.jsx)(_relatedLinksList.default, {
22
+ urls: incomingLinks,
23
+ title: _messages.messages.related_links_found_in,
24
+ testId: "incoming-related-links-list"
25
+ }), (0, _react.jsx)(_relatedLinksList.default, {
26
+ urls: outgoingLinks,
27
+ title: _messages.messages.related_links_includes_links_to,
28
+ testId: "outgoing-related-links-list"
29
+ }));
30
+ };
31
+ var _default = exports.default = RelatedLinksResolvedView;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -36,7 +36,9 @@ var Byline = exports.Byline = function Byline(_ref) {
36
36
  // due to HTML its unwrapping behaviour on paste.
37
37
  MozUserSelect: 'none'
38
38
  }),
39
- "data-testid": testId,
39
+ "data-testid": testId
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
41
+ ,
40
42
  className: className
41
43
  }, text || children);
42
44
  };
@@ -64,7 +64,9 @@ var Icon = exports.Icon = function Icon(_ref) {
64
64
  });
65
65
  return (0, _react.jsx)("span", {
66
66
  css: getSpanStyles(isFlexibleUi),
67
- "data-testid": testId,
67
+ "data-testid": testId
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
69
+ ,
68
70
  className: blockCardIconImageClassName
69
71
  }, icon || image || placeholder);
70
72
  };
@@ -25,7 +25,9 @@ var MetadataList = exports.MetadataList = function MetadataList(_ref) {
25
25
  marginRight: '0px'
26
26
  }
27
27
  },
28
- "data-testid": testId,
28
+ "data-testid": testId
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
30
+ ,
29
31
  className: metadataListClassName
30
32
  }, items.map(function (item) {
31
33
  return (0, _react.jsx)(_Metadata.Metadata, (0, _extends2.default)({
@@ -1,5 +1,4 @@
1
1
  import { extractLozenge } from '../common/lozenge';
2
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
2
  import { getExtensionKey } from '../../state/helpers';
4
3
  import extractServerAction from './extract-server-action';
5
4
  import { extractLink } from '@atlaskit/link-extractors';
@@ -53,7 +52,7 @@ const extractState = (response, actionOptions, id) => {
53
52
  if (!lozenge) {
54
53
  return;
55
54
  }
56
- if (!canShowAction(CardAction.ChangeStatusAction, actionOptions) || getBooleanFF('platform.linking-platform.smart-card.disable-jira-status-action')) {
55
+ if (!canShowAction(CardAction.ChangeStatusAction, actionOptions)) {
57
56
  return lozenge;
58
57
  }
59
58
  const action = extractAction(response, id);
@@ -700,8 +700,8 @@ export const messages = defineMessages({
700
700
  defaultMessage: 'An error occurred',
701
701
  description: 'A generic error message to the user'
702
702
  },
703
- related_links_modal_title_nonfinal: {
704
- id: 'fabric.linking.related_links_modal_title.nonfinal',
703
+ related_links_modal_title: {
704
+ id: 'fabric.linking.related_links_modal_title',
705
705
  defaultMessage: 'Recent Links',
706
706
  description: 'Shown as the title for the related links modal'
707
707
  },
@@ -709,5 +709,20 @@ export const messages = defineMessages({
709
709
  id: 'fabric.linking.related_links_view_related_urls.nonfinal',
710
710
  defaultMessage: 'View recent links...',
711
711
  description: 'Action to view related links to the given resource'
712
+ },
713
+ related_links_found_in: {
714
+ id: 'fabric.linking.related_links_found_in',
715
+ defaultMessage: 'Found In',
716
+ description: 'Informs the user of the resources are found in the given url'
717
+ },
718
+ related_links_not_found: {
719
+ id: 'fabric.linking.related_links_not_found',
720
+ defaultMessage: 'We didn\'t find any links to show here.',
721
+ description: 'Informs the user that there are no related resources for the given url'
722
+ },
723
+ related_links_includes_links_to: {
724
+ id: 'fabric.linking.related_links_includes_links_to',
725
+ defaultMessage: 'Includes Links To',
726
+ description: 'Informs the user of the resources the url links to'
712
727
  }
713
728
  });
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "27.0.0"
7
+ packageVersion: "27.2.0"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -22,20 +22,28 @@ export const ActionIcon = ({
22
22
  case 'loading':
23
23
  return null;
24
24
  case 'success':
25
- return /*#__PURE__*/React.createElement("div", {
26
- "data-testid": "check-icon",
27
- style: spinnerStyles
28
- }, /*#__PURE__*/React.createElement(CheckIcon, {
29
- size: "small",
30
- label: "check"
31
- }));
25
+ return (
26
+ /*#__PURE__*/
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
28
+ React.createElement("div", {
29
+ "data-testid": "check-icon",
30
+ style: spinnerStyles
31
+ }, /*#__PURE__*/React.createElement(CheckIcon, {
32
+ size: "small",
33
+ label: "check"
34
+ }))
35
+ );
32
36
  case 'failure':
33
- return /*#__PURE__*/React.createElement("div", {
34
- "data-testid": "cross-icon",
35
- style: spinnerStyles
36
- }, /*#__PURE__*/React.createElement(CrossIcon, {
37
- size: "small",
38
- label: "check"
39
- }));
37
+ return (
38
+ /*#__PURE__*/
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
40
+ React.createElement("div", {
41
+ "data-testid": "cross-icon",
42
+ style: spinnerStyles
43
+ }, /*#__PURE__*/React.createElement(CrossIcon, {
44
+ size: "small",
45
+ label: "check"
46
+ }))
47
+ );
40
48
  }
41
49
  };
@@ -20,6 +20,8 @@ export const Content = ({
20
20
  justifyContent: isCompact ? 'unset' : ['unset', 'space-between'],
21
21
  flexGrow: 1
22
22
  }),
23
- "data-trello-do-not-use-override": "block-card-content",
23
+ "data-trello-do-not-use-override": "block-card-content"
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
25
+ ,
24
26
  className: blockCardContentClassName
25
27
  }, children);
@@ -14,6 +14,8 @@ export const ContentFooter = ({
14
14
  alignItems: ['unset', 'center'],
15
15
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
16
  marginTop: [gs(1), gs(1.5)]
17
- }),
17
+ })
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
19
+ ,
18
20
  className: contentFooterClassName
19
21
  }, children);
@@ -26,7 +26,9 @@ export const ContentHeader = ({
26
26
  // due to HTML its unwrapping behaviour on paste.
27
27
  MozUserSelect: 'none'
28
28
  },
29
- "data-trello-do-not-use-override": "block-card-content-header",
29
+ "data-trello-do-not-use-override": "block-card-content-header"
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
31
+ ,
30
32
  className: blockCardContentHeaderClassName
31
33
  }, children);
32
34
  };
@@ -37,7 +37,9 @@ export const ExpandedFrame = ({
37
37
  overflow: 'hidden',
38
38
  boxShadow: `var(--ds-shadow-raised, ${`0 1px 1px ${N50A}, 0 0 1px 1px ${N40A}`})`
39
39
  }),
40
- "data-testid": testId,
40
+ "data-testid": testId
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
42
+ ,
41
43
  className: className,
42
44
  "data-trello-do-not-use-override": testId
43
45
  }, children);
@@ -66,7 +68,9 @@ export const CompactFrame = ({
66
68
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
67
69
  padding: [`0px ${gs(1)}`, '0']
68
70
  }),
69
- "data-testid": testId,
71
+ "data-testid": testId
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
73
+ ,
70
74
  className: className
71
75
  }, children);
72
76
  };
@@ -7,7 +7,9 @@ export const Link = ({
7
7
  className
8
8
  }) => {
9
9
  return jsx("span", {
10
- "data-testid": `${testId}-link`,
10
+ "data-testid": `${testId}-link`
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
12
+ ,
11
13
  className: className,
12
14
  css: {
13
15
  color: `var(--ds-link, ${B400})`,
@@ -33,6 +33,8 @@ export const Name = ({
33
33
  maxHeight: gs(6)
34
34
  },
35
35
  "data-testid": testId,
36
- "data-trello-do-not-use-override": "block-card-content-header-name",
36
+ "data-trello-do-not-use-override": "block-card-content-header-name"
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
38
+ ,
37
39
  className: blockCardContentHeaderNameClassName
38
40
  }, name);
@@ -9,6 +9,7 @@ export const Provider = ({
9
9
  let iconToRender = icon || null;
10
10
  if (typeof icon === 'string') {
11
11
  iconToRender = jsx("img", {
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
12
13
  className: "smart-link-icon",
13
14
  css: {
14
15
  height: gs(1.5),
@@ -37,7 +37,9 @@ export const ErroredView = ({
37
37
  const actions = useMemo(() => onRetry ? [RetryAction(onRetry)] : [], [onRetry]);
38
38
  return jsx(Frame, {
39
39
  isSelected: isSelected,
40
- testId: testId,
40
+ testId: testId
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
42
+ ,
41
43
  className: blockCardErroredViewClassName,
42
44
  isFluidHeight: true,
43
45
  inheritDimensions: inheritDimensions
@@ -52,7 +52,9 @@ export const ForbiddenView = ({
52
52
  const items = action !== undefined && !(buttonDisabled !== null && buttonDisabled !== void 0 ? buttonDisabled : false) ? [...actions, action] : actions;
53
53
  return jsx(Frame, {
54
54
  isSelected: isSelected,
55
- testId: testId,
55
+ testId: testId
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
57
+ ,
56
58
  className: blockCardForbiddenViewClassName,
57
59
  isFluidHeight: true
58
60
  }, jsx(Content, {
@@ -62,7 +64,9 @@ export const ForbiddenView = ({
62
64
  link: link
63
65
  }, jsx(Link, {
64
66
  url: link,
65
- testId: testId,
67
+ testId: testId
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
69
+ ,
66
70
  className: blockCardForbiddenViewLinkClassName
67
71
  })), jsx(Byline, null, jsx(UnresolvedText, {
68
72
  icon: jsx(LockIcon, {
@@ -36,7 +36,9 @@ export const NotFoundView = ({
36
36
  const handleClick = event => handleClickCommon(event, onClick);
37
37
  return jsx(Frame, {
38
38
  isSelected: isSelected,
39
- testId: testId,
39
+ testId: testId
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
41
+ ,
40
42
  className: blockCardNotFoundViewClassName,
41
43
  isFluidHeight: true
42
44
  }, jsx(Content, {
@@ -63,14 +63,18 @@ export const ResolvedView = ({
63
63
  items: details
64
64
  }) : undefined;
65
65
  const resolvedByline = jsx(Byline, {
66
- testId: testId ? `${testId}-by` : undefined,
66
+ testId: testId ? `${testId}-by` : undefined
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
68
+ ,
67
69
  className: blockCardResolvedViewByClassName
68
70
  }, byline);
69
71
  const handleClick = event => handleClickCommon(event, onClick);
70
72
  const hasActions = actions.length > 0;
71
73
  return jsx(Frame, {
72
74
  isSelected: isSelected,
73
- testId: testId,
75
+ testId: testId
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
77
+ ,
74
78
  className: blockCardResolvedViewClassName
75
79
  }, jsx(Content, null, jsx("div", null, jsx("div", {
76
80
  css: styles
@@ -22,7 +22,9 @@ export const ResolvingView = ({
22
22
  inheritDimensions: inheritDimensions,
23
23
  compact: true,
24
24
  isSelected: isSelected,
25
- testId: testId,
25
+ testId: testId
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
27
+ ,
26
28
  className: blockCardResolvingViewClassName
27
29
  }, jsx(DocumentFilledIcon, {
28
30
  size: "small",
@@ -43,6 +43,8 @@ export function LazyIntersectionObserverCard(props) {
43
43
  const content = isIntersecting ? /*#__PURE__*/React.createElement(CardWithUrlContent, props) : /*#__PURE__*/React.createElement(ComponentObserver, {
44
44
  ref: ref
45
45
  }, /*#__PURE__*/React.createElement(LoadingCardLink, props));
46
+
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
46
48
  return /*#__PURE__*/React.createElement(Component, {
47
49
  className: "loader-wrapper"
48
50
  }, content);
@@ -16,7 +16,9 @@ export function LazyLazilyRenderCard(props) {
16
16
  });
17
17
  return /*#__PURE__*/React.createElement(LazilyRender, {
18
18
  offset: offset,
19
- component: appearance === 'inline' ? 'span' : 'div',
19
+ component: appearance === 'inline' ? 'span' : 'div'
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
21
+ ,
20
22
  className: "loader-wrapper",
21
23
  placeholder: /*#__PURE__*/React.createElement(LoadingCardLink, props),
22
24
  scrollContainer: container,
@@ -11,7 +11,9 @@ export const LoadingCardLink = ({
11
11
  testId: 'lazy-render-placeholder',
12
12
  "data-trello-do-not-use-override": "lazy-render-placeholder-trello",
13
13
  isSelected: isSelected,
14
- link: url,
14
+ link: url
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
16
+ ,
15
17
  className: loadingPlaceholderClassName,
16
18
  placeholder: placeholder
17
19
  });
@@ -23,7 +23,10 @@ export const ExpandedFrame = ({
23
23
  const handleClick = event => handleClickCommon(event, onClick);
24
24
  const handleMouseDown = useMouseDownEvent();
25
25
  const isFixEmbedCardBlurEnabled = getBooleanFF('platform.linking-platform.smart-card.fix-embed-card-blurring') ? true : false;
26
- const renderHeaderOld = () => /*#__PURE__*/React.createElement(Header, {
26
+ const renderHeaderOld = () =>
27
+ /*#__PURE__*/
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
29
+ React.createElement(Header, {
27
30
  className: "embed-header",
28
31
  frameStyle: frameStyle
29
32
  }, /*#__PURE__*/React.createElement(IconWrapper, {
@@ -35,7 +38,10 @@ export const ExpandedFrame = ({
35
38
  onClick: handleClick,
36
39
  onMouseDown: handleMouseDown
37
40
  }, text)));
38
- const renderHeader = () => /*#__PURE__*/React.createElement(Header, {
41
+ const renderHeader = () =>
42
+ /*#__PURE__*/
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
44
+ React.createElement(Header, {
39
45
  className: "embed-header",
40
46
  frameStyle: frameStyle
41
47
  }, /*#__PURE__*/React.createElement(IconWrapper, {
@@ -58,7 +64,9 @@ export const ExpandedFrame = ({
58
64
  frameStyle: frameStyle
59
65
  }, children);
60
66
  if (!isPlaceholder && href) {
61
- return /*#__PURE__*/React.createElement(LinkWrapper, {
67
+ return /*#__PURE__*/React.createElement(LinkWrapper
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
69
+ , {
62
70
  className: className,
63
71
  isInteractive: isInteractive(),
64
72
  isSelected: isSelected,
@@ -73,7 +81,9 @@ export const ExpandedFrame = ({
73
81
  inheritDimensions: inheritDimensions
74
82
  }, getBooleanFF('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
75
83
  } else {
76
- return /*#__PURE__*/React.createElement(Wrapper, {
84
+ return /*#__PURE__*/React.createElement(Wrapper
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
86
+ , {
77
87
  className: className,
78
88
  isInteractive: isInteractive(),
79
89
  isSelected: isSelected,
@@ -15,7 +15,9 @@ export const ImageIcon = ({
15
15
  return /*#__PURE__*/React.createElement(ImageLoader, {
16
16
  src: src,
17
17
  loading: defaultIcon,
18
- loaded: /*#__PURE__*/React.createElement(Image, {
18
+ loaded: /*#__PURE__*/React.createElement(Image
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
20
+ , {
19
21
  className: "smart-link-icon",
20
22
  src: src,
21
23
  alt: alt,
@@ -59,14 +59,17 @@ const LinkInfo = ({
59
59
  }) : jsx(VidFullScreenOnIcon, {
60
60
  label: message.defaultMessage
61
61
  });
62
- return jsx("span", {
63
- className: "smart-link-resize-button"
64
- }, jsx(LinkInfoButton, {
65
- content: jsx(FormattedMessage, message),
66
- icon: icon,
67
- onClick: onResizeButtonClick,
68
- testId: `${testId}-resize`
69
- }));
62
+ return (
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
64
+ jsx("span", {
65
+ className: "smart-link-resize-button"
66
+ }, jsx(LinkInfoButton, {
67
+ content: jsx(FormattedMessage, message),
68
+ icon: icon,
69
+ onClick: onResizeButtonClick,
70
+ testId: `${testId}-resize`
71
+ }))
72
+ );
70
73
  }, [onResizeButtonClick, size, testId]);
71
74
  return jsx("div", {
72
75
  css: containerStyles