@atlaskit/smart-card 26.69.0 → 26.69.1

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 (52) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/messages.js +5 -0
  3. package/dist/cjs/utils/analytics/analytics.js +1 -1
  4. package/dist/cjs/view/BlockCard/views/styled.js +1 -0
  5. package/dist/cjs/view/EmbedCard/components/styled.js +28 -2
  6. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
  7. package/dist/cjs/view/InlineCard/Frame/styled.js +4 -0
  8. package/dist/cjs/view/InlineCard/Icon.js +2 -0
  9. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
  10. package/dist/cjs/view/InlineCard/ResolvingView/index.js +2 -2
  11. package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -0
  12. package/dist/cjs/view/InlineCard/styled.js +7 -0
  13. package/dist/cjs/view/LinkUrl/index.js +1 -1
  14. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +27 -0
  15. package/dist/cjs/view/RelatedLinksModal/types.js +5 -0
  16. package/dist/es2019/messages.js +5 -0
  17. package/dist/es2019/utils/analytics/analytics.js +1 -1
  18. package/dist/es2019/view/BlockCard/views/styled.js +1 -0
  19. package/dist/es2019/view/EmbedCard/components/styled.js +28 -2
  20. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
  21. package/dist/es2019/view/InlineCard/Frame/styled.js +4 -0
  22. package/dist/es2019/view/InlineCard/Icon.js +2 -0
  23. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
  24. package/dist/es2019/view/InlineCard/ResolvingView/index.js +2 -2
  25. package/dist/es2019/view/InlineCard/ResolvingView/styled.js +2 -0
  26. package/dist/es2019/view/InlineCard/styled.js +7 -0
  27. package/dist/es2019/view/LinkUrl/index.js +1 -1
  28. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +18 -0
  29. package/dist/es2019/view/RelatedLinksModal/types.js +1 -0
  30. package/dist/esm/messages.js +5 -0
  31. package/dist/esm/utils/analytics/analytics.js +1 -1
  32. package/dist/esm/view/BlockCard/views/styled.js +1 -0
  33. package/dist/esm/view/EmbedCard/components/styled.js +28 -2
  34. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
  35. package/dist/esm/view/InlineCard/Frame/styled.js +4 -0
  36. package/dist/esm/view/InlineCard/Icon.js +2 -0
  37. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
  38. package/dist/esm/view/InlineCard/ResolvingView/index.js +2 -2
  39. package/dist/esm/view/InlineCard/ResolvingView/styled.js +2 -0
  40. package/dist/esm/view/InlineCard/styled.js +7 -0
  41. package/dist/esm/view/LinkUrl/index.js +1 -1
  42. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +17 -0
  43. package/dist/esm/view/RelatedLinksModal/types.js +1 -0
  44. package/dist/types/messages.d.ts +1 -1
  45. package/dist/types/view/InlineCard/ResolvingView/index.d.ts +1 -1
  46. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
  47. package/dist/types/view/RelatedLinksModal/types.d.ts +6 -0
  48. package/dist/types-ts4.5/messages.d.ts +1 -1
  49. package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +1 -1
  50. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
  51. package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +6 -0
  52. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 26.69.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#101914](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101914)
8
+ [`d43b23ecd5e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d43b23ecd5e3) -
9
+ Updating inline resolving view to not have invalid html structure
10
+ - [#101941](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101941)
11
+ [`2d2d3941c769`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d2d3941c769) -
12
+ EDM-9966: create related-links-modal component in smart cards
13
+ - Updated dependencies
14
+
3
15
  ## 26.69.0
4
16
 
5
17
  ### Minor Changes
@@ -705,5 +705,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
705
705
  id: 'fabric.linking.generic_error_message',
706
706
  defaultMessage: 'An error occurred',
707
707
  description: 'A generic error message to the user'
708
+ },
709
+ related_links_modal_title_nonfinal: {
710
+ id: 'fabric.linking.related_links_modal_title.nonfinal',
711
+ defaultMessage: 'Recent Links',
712
+ description: 'Shown as the title for the related links modal'
708
713
  }
709
714
  });
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "26.69.0"
25
+ packageVersion: "26.69.1"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.LozengeBlockWrapper = void 0;
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  // TODO: Replace overrides with proper AtlasKit solution.
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
10
11
  var LozengeBlockWrapper = exports.LozengeBlockWrapper = _styled.default.span({
11
12
  '& > span': {
12
13
  marginLeft: "var(--ds-space-050, 4px)"
@@ -76,10 +76,12 @@ function visible(_ref7) {
76
76
  return frameStyle === 'show' ? visibleStyles : '';
77
77
  }
78
78
 
79
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
79
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
80
80
  var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
81
81
  return wrapperStyles(props);
82
82
  });
83
+
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
83
85
  var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
84
86
  return wrapperStyles(props);
85
87
  }, {
@@ -89,6 +91,7 @@ var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
89
91
  marginTop: '10px'
90
92
  });
91
93
  var embedHeaderHeight = exports.embedHeaderHeight = 32;
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
92
95
  var Header = exports.Header = _styled.default.div({
93
96
  height: "".concat(embedHeaderHeight, "px"),
94
97
  position: 'absolute',
@@ -103,6 +106,7 @@ var Header = exports.Header = _styled.default.div({
103
106
  var frameStyle = _ref8.frameStyle;
104
107
  return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
105
108
  });
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
106
110
  var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssize(16), function (_ref9) {
107
111
  var isPlaceholder = _ref9.isPlaceholder;
108
112
  if (isPlaceholder) {
@@ -113,6 +117,8 @@ var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssiz
113
117
  }, {
114
118
  marginRight: "var(--ds-space-050, 4px)"
115
119
  });
120
+
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
116
122
  var TextWrapper = exports.TextWrapper = _styled.default.div(function (_ref10) {
117
123
  var isPlaceholder = _ref10.isPlaceholder;
118
124
  if (isPlaceholder) {
@@ -125,13 +131,15 @@ var TextWrapper = exports.TextWrapper = _styled.default.div(function (_ref10) {
125
131
  fontSize: '12px',
126
132
  lineHeight: '16px'
127
133
  }, ellipsis('none'));
134
+
135
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
128
136
  var TooltipWrapper = exports.TooltipWrapper = _styled.default.div({
129
137
  overflow: 'hidden'
130
138
  });
131
139
  // NB: `overflow` is kept as `hidden` since
132
140
  // the internal contents of the `iframe` should
133
141
  // manage scrolling behaviour.
134
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
142
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
135
143
  var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
136
144
  var allowScrollBar = _ref11.allowScrollBar,
137
145
  removeOverflow = _ref11.removeOverflow;
@@ -146,6 +154,7 @@ var Content = exports.Content = _styled.default.div(_templateObject2 || (_templa
146
154
  var frameStyle = _ref13.frameStyle;
147
155
  return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
148
156
  });
157
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
149
158
  var Image = exports.Image = _styled.default.img(function (_ref14) {
150
159
  var size = _ref14.size;
151
160
  return csssize(size);
@@ -153,12 +162,16 @@ var Image = exports.Image = _styled.default.img(function (_ref14) {
153
162
  overflow: 'hidden'
154
163
  });
155
164
  var maxAvatarCount = exports.maxAvatarCount = 6;
165
+
166
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
156
167
  var ContentWrapper = exports.ContentWrapper = _styled.default.div({
157
168
  display: 'flex',
158
169
  flexDirection: 'row',
159
170
  boxSizing: 'border-box',
160
171
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
161
172
  });
173
+
174
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
162
175
  var Title = exports.Title = _styled.default.div({
163
176
  color: "var(--ds-text, ".concat(colors.N900, ")"),
164
177
  fontSize: '16px',
@@ -167,6 +180,8 @@ var Title = exports.Title = _styled.default.div({
167
180
  maxHeight: "".concat(20 * 4, "px"),
168
181
  overflow: 'hidden'
169
182
  });
183
+
184
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
170
185
  var Byline = exports.Byline = _styled.default.div({
171
186
  marginTop: "var(--ds-space-050, 4px)",
172
187
  color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
@@ -174,6 +189,8 @@ var Byline = exports.Byline = _styled.default.div({
174
189
  fontWeight: 'normal',
175
190
  lineHeight: 16 / 12
176
191
  }, ellipsis('100%'));
192
+
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
177
194
  var Description = exports.Description = _styled.default.div({
178
195
  marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
179
196
  color: "var(--ds-text, ".concat(colors.N800, ")"),
@@ -183,9 +200,12 @@ var Description = exports.Description = _styled.default.div({
183
200
  maxHeight: "".concat(18 * 3, "px"),
184
201
  overflow: 'hidden'
185
202
  });
203
+
204
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
186
205
  var ResolvedViewIconWrapper = exports.ResolvedViewIconWrapper = _styled.default.div({
187
206
  marginTop: "var(--ds-space-050, 4px)"
188
207
  });
208
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
189
209
  var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48), function (props) {
190
210
  return {
191
211
  float: 'right',
@@ -195,9 +215,13 @@ var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48
195
215
  backgroundSize: 'cover'
196
216
  };
197
217
  });
218
+
219
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
198
220
  var UsersWrapper = exports.UsersWrapper = _styled.default.div({
199
221
  marginTop: "var(--ds-space-100, 8px)"
200
222
  });
223
+
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
201
225
  var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
202
226
  marginTop: "var(--ds-space-100, 8px)",
203
227
  textAlign: 'right',
@@ -208,6 +232,8 @@ var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
208
232
  marginLeft: "var(--ds-space-050, 4px)"
209
233
  }
210
234
  });
235
+
236
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
211
237
  var AlertWrapper = exports.AlertWrapper = _styled.default.div({
212
238
  position: 'absolute',
213
239
  top: 0,
@@ -13,6 +13,7 @@ var _tooltip = _interopRequireWildcard(require("@atlaskit/tooltip"));
13
13
  var _primitives = require("@atlaskit/primitives");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
16
17
  var AIIndicatorTooltipPrimitive = (0, _styled.default)(_tooltip.TooltipPrimitive)({
17
18
  borderRadius: "var(--ds-border-radius, 3px)",
18
19
  backgroundColor: "var(--ds-surface-raised, white)",
@@ -94,10 +94,14 @@ var baseWrapperStyles = function baseWrapperStyles(props) {
94
94
  MozUserSelect: 'none'
95
95
  }, props.isHovered ? hoveredWihBorderStyles(props) : undefined);
96
96
  };
97
+
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
97
99
  var WrapperAnchor = exports.WrapperAnchor = _styled.default.a(function (props) {
98
100
  return _objectSpread(_objectSpread({}, baseWrapperStyles(props)), isInteractive(props));
99
101
  });
100
102
  WrapperAnchor.displayName = 'WrapperAnchor';
103
+
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
101
105
  var WrapperSpan = exports.WrapperSpan = _styled.default.span(function (props) {
102
106
  return _objectSpread({}, baseWrapperStyles(props));
103
107
  });
@@ -13,6 +13,7 @@ var _react = _interopRequireDefault(require("react"));
13
13
  // Current rationale: vertically positioned at the top of
14
14
  // the smart card container (when set to 0). Offset this
15
15
  // to position it with appropriate whitespace from the top.
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
16
17
  var Icon = exports.Icon = _styled.default.img({
17
18
  height: '14px',
18
19
  width: '14px',
@@ -28,6 +29,7 @@ var Icon = exports.Icon = _styled.default.img({
28
29
  // Used for 'untrue' icons which claim to be 16x16 but
29
30
  // are less than that in height/width.
30
31
  // TODO: Replace this override with proper AtlasKit solution.
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
31
33
  var AKIconWrapper = exports.AKIconWrapper = _styled.default.span({
32
34
  marginRight: "var(--ds-space-negative-025, -2px)"
33
35
  });
@@ -17,11 +17,13 @@ var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 1
17
17
  // - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
18
18
  // NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
19
19
  // NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
20
21
  var IconWrapper = exports.IconWrapper = _styled.default.span({
21
22
  userSelect: 'none'
22
23
  }, IconOverrides, IconObjectOverrides);
23
24
 
24
25
  // Wraps all emoji in Inline Links similar to icon
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
25
27
  var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
26
28
  display: 'inline-block',
27
29
  marginRight: "var(--ds-space-025, 2px)",
@@ -31,6 +33,7 @@ var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
31
33
  // The main 'wrapping' element, title of the content.
32
34
  // NB: `white-space` adds little whitespace before wrapping.
33
35
  // NB: `word-break` line breaks as soon as an overflow takes place.
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
34
37
  var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
35
38
  whiteSpace: 'pre-wrap',
36
39
  wordBreak: 'break-all',
@@ -39,11 +42,14 @@ var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
39
42
  });
40
43
 
41
44
  // TODO: Replace overrides with proper AtlasKit solution.
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
42
46
  var LozengeWrapper = exports.LozengeWrapper = _styled.default.span({
43
47
  display: 'inline-block',
44
48
  verticalAlign: '1px',
45
49
  margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
46
50
  });
51
+
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
47
53
  var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.default.span({
48
54
  marginLeft: "var(--ds-space-025, 2px)",
49
55
  position: 'relative',
@@ -53,11 +59,14 @@ var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.defaul
53
59
  // The following components are used to absolutely position icons in the vertical center.
54
60
  // - IconPositionWrapper: the `relative` parent which has no height in itself.
55
61
  // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
56
63
  var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
57
64
  marginRight: "var(--ds-space-050, 4px)",
58
65
  position: 'relative',
59
66
  display: 'inline-block'
60
67
  });
68
+
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
61
70
  var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
62
71
  width: '14px',
63
72
  height: '100%',
@@ -68,4 +77,6 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
68
77
  // With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
69
78
  // To achieve same result we use classname instead.
70
79
  var TitleWrapperClassName = exports.TitleWrapperClassName = 'smart-link-title-wrapper';
80
+
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
71
82
  var TitleWrapper = exports.TitleWrapper = _styled.default.span({});
@@ -51,9 +51,9 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
51
51
  return /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
52
52
  testId: testId,
53
53
  onClick: onClick,
54
- isSelected: isSelected
54
+ isSelected: isSelected,
55
+ link: url
55
56
  }, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
56
- link: url,
57
57
  title: url,
58
58
  titleTextColor: titleTextColor
59
59
  }, /*#__PURE__*/_react.default.createElement(_styled.SpinnerWrapper, {
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SpinnerWrapper = void 0;
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _styled2 = require("../IconAndTitleLayout/styled");
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
10
11
  var SpinnerWrapper = exports.SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)({
11
12
  verticalAlign: 'text-bottom',
12
13
  padding: '0px'
@@ -9,6 +9,7 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _colors = require("@atlaskit/theme/colors");
10
10
  // By default buttons will hide overflow and ellipsis content instead of wrapping.
11
11
  // This basically turns the button back into inline content
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
12
13
  var IconStyledButton = exports.IconStyledButton = _styled.default.span({
13
14
  '&&&': {
14
15
  textAlign: 'initial',
@@ -33,13 +34,19 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
33
34
  }
34
35
  }
35
36
  });
37
+
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
36
39
  var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
37
40
  color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
38
41
  marginLeft: "var(--ds-space-050, 4px)"
39
42
  });
43
+
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
40
45
  var LowercaseAppearance = exports.LowercaseAppearance = _styled.default.span({
41
46
  textTransform: 'lowercase'
42
47
  });
48
+
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
43
50
  var LinkAppearance = exports.LinkAppearance = _styled.default.a({
44
51
  color: "var(--ds-link, ".concat(_colors.B400, ")"),
45
52
  '&:hover': {
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "26.69.0",
20
+ packageVersion: "26.69.1",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _reactIntlNext = require("react-intl-next");
11
+ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
12
+ var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
13
+ var _messages = require("../../../messages");
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ var RelatedLinksModal = function RelatedLinksModal(_ref) {
17
+ var onClose = _ref.onClose,
18
+ showModal = _ref.showModal,
19
+ children = _ref.children;
20
+ return /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, showModal && /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
21
+ onClose: onClose
22
+ }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title_nonfinal))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, children), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
23
+ appearance: "primary",
24
+ onClick: onClose
25
+ }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.close)))));
26
+ };
27
+ var _default = exports.default = RelatedLinksModal;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -699,5 +699,10 @@ export const messages = defineMessages({
699
699
  id: 'fabric.linking.generic_error_message',
700
700
  defaultMessage: 'An error occurred',
701
701
  description: 'A generic error message to the user'
702
+ },
703
+ related_links_modal_title_nonfinal: {
704
+ id: 'fabric.linking.related_links_modal_title.nonfinal',
705
+ defaultMessage: 'Recent Links',
706
+ description: 'Shown as the title for the related links modal'
702
707
  }
703
708
  });
@@ -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: "26.69.0"
7
+ packageVersion: "26.69.1"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  // TODO: Replace overrides with proper AtlasKit solution.
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
3
4
  export const LozengeBlockWrapper = styled.span({
4
5
  '& > span': {
5
6
  marginLeft: "var(--ds-space-050, 4px)"
@@ -136,12 +136,14 @@ function visible({
136
136
  return frameStyle === 'show' ? visibleStyles : '';
137
137
  }
138
138
 
139
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
139
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
140
140
  export const LinkWrapper = styled.div`
141
141
  ${props => wrapperStyles(props)} &:hover {
142
142
  text-decoration: none;
143
143
  }
144
144
  `;
145
+
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
145
147
  export const Wrapper = styled.div(props => wrapperStyles(props), {
146
148
  // We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
147
149
  // to be thoroughly checked with a designer so that we do not miss an unintended visual change
@@ -149,6 +151,7 @@ export const Wrapper = styled.div(props => wrapperStyles(props), {
149
151
  marginTop: '10px'
150
152
  });
151
153
  export const embedHeaderHeight = 32;
154
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
152
155
  export const Header = styled.div({
153
156
  height: `${embedHeaderHeight}px`,
154
157
  position: 'absolute',
@@ -165,6 +168,7 @@ export const Header = styled.div({
165
168
  box-sizing: border-box;
166
169
  padding: 0 ${"var(--ds-space-100, 8px)"};
167
170
  ` : '');
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
168
172
  export const IconWrapper = styled.div(borderRadius, csssize(16), ({
169
173
  isPlaceholder
170
174
  }) => {
@@ -178,6 +182,8 @@ export const IconWrapper = styled.div(borderRadius, csssize(16), ({
178
182
  }, {
179
183
  marginRight: "var(--ds-space-050, 4px)"
180
184
  });
185
+
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
181
187
  export const TextWrapper = styled.div(({
182
188
  isPlaceholder
183
189
  }) => {
@@ -196,13 +202,15 @@ export const TextWrapper = styled.div(({
196
202
  fontSize: '12px',
197
203
  lineHeight: '16px'
198
204
  }, ellipsis('none'));
205
+
206
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
199
207
  export const TooltipWrapper = styled.div({
200
208
  overflow: 'hidden'
201
209
  });
202
210
  // NB: `overflow` is kept as `hidden` since
203
211
  // the internal contents of the `iframe` should
204
212
  // manage scrolling behaviour.
205
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
213
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
206
214
  export const Content = styled.div`
207
215
  ${contentBorderRadius};
208
216
  border: 1px solid ${`var(--ds-border, ${N40})`};
@@ -247,18 +255,23 @@ export const Content = styled.div`
247
255
  top: ${"var(--ds-space-400, 32px)"};
248
256
  `}
249
257
  `;
258
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
250
259
  export const Image = styled.img(({
251
260
  size
252
261
  }) => csssize(size), borderRadius, {
253
262
  overflow: 'hidden'
254
263
  });
255
264
  export const maxAvatarCount = 6;
265
+
266
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
256
267
  export const ContentWrapper = styled.div({
257
268
  display: 'flex',
258
269
  flexDirection: 'row',
259
270
  boxSizing: 'border-box',
260
271
  padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`
261
272
  });
273
+
274
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
262
275
  export const Title = styled.div({
263
276
  color: `var(--ds-text, ${colors.N900})`,
264
277
  fontSize: '16px',
@@ -267,6 +280,8 @@ export const Title = styled.div({
267
280
  maxHeight: `${20 * 4}px`,
268
281
  overflow: 'hidden'
269
282
  });
283
+
284
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
270
285
  export const Byline = styled.div({
271
286
  marginTop: "var(--ds-space-050, 4px)",
272
287
  color: `var(--ds-text-subtlest, ${colors.N300})`,
@@ -274,6 +289,8 @@ export const Byline = styled.div({
274
289
  fontWeight: 'normal',
275
290
  lineHeight: 16 / 12
276
291
  }, ellipsis('100%'));
292
+
293
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
277
294
  export const Description = styled.div({
278
295
  marginTop: `calc(${"var(--ds-space-100, 8px)"} - 1px)`,
279
296
  color: `var(--ds-text, ${colors.N800})`,
@@ -283,9 +300,12 @@ export const Description = styled.div({
283
300
  maxHeight: `${18 * 3}px`,
284
301
  overflow: 'hidden'
285
302
  });
303
+
304
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
286
305
  export const ResolvedViewIconWrapper = styled.div({
287
306
  marginTop: "var(--ds-space-050, 4px)"
288
307
  });
308
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
289
309
  export const Thumbnail = styled.div(borderRadius, csssize(48), props => ({
290
310
  float: 'right',
291
311
  margin: `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`,
@@ -293,9 +313,13 @@ export const Thumbnail = styled.div(borderRadius, csssize(48), props => ({
293
313
  backgroundImage: `url(${props.src})`,
294
314
  backgroundSize: 'cover'
295
315
  }));
316
+
317
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
296
318
  export const UsersWrapper = styled.div({
297
319
  marginTop: "var(--ds-space-100, 8px)"
298
320
  });
321
+
322
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
299
323
  export const ActionsWrapper = styled.div({
300
324
  marginTop: "var(--ds-space-100, 8px)",
301
325
  textAlign: 'right',
@@ -306,6 +330,8 @@ export const ActionsWrapper = styled.div({
306
330
  marginLeft: "var(--ds-space-050, 4px)"
307
331
  }
308
332
  });
333
+
334
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
309
335
  export const AlertWrapper = styled.div({
310
336
  position: 'absolute',
311
337
  top: 0,
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import styled from '@emotion/styled';
4
4
  import Tooltip, { TooltipPrimitive } from '@atlaskit/tooltip';
5
5
  import { Box, xcss } from '@atlaskit/primitives';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
6
7
  const AIIndicatorTooltipPrimitive = styled(TooltipPrimitive)({
7
8
  borderRadius: "var(--ds-border-radius, 3px)",
8
9
  backgroundColor: "var(--ds-surface-raised, white)",
@@ -90,11 +90,15 @@ const baseWrapperStyles = props => ({
90
90
 
91
91
  ...(props.isHovered ? hoveredWihBorderStyles(props) : undefined)
92
92
  });
93
+
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
93
95
  export const WrapperAnchor = styled.a(props => ({
94
96
  ...baseWrapperStyles(props),
95
97
  ...isInteractive(props)
96
98
  }));
97
99
  WrapperAnchor.displayName = 'WrapperAnchor';
100
+
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
98
102
  export const WrapperSpan = styled.span(props => ({
99
103
  ...baseWrapperStyles(props)
100
104
  }));
@@ -7,6 +7,7 @@ import React from 'react';
7
7
  // Current rationale: vertically positioned at the top of
8
8
  // the smart card container (when set to 0). Offset this
9
9
  // to position it with appropriate whitespace from the top.
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
10
11
  export const Icon = styled.img({
11
12
  height: '14px',
12
13
  width: '14px',
@@ -22,6 +23,7 @@ export const Icon = styled.img({
22
23
  // Used for 'untrue' icons which claim to be 16x16 but
23
24
  // are less than that in height/width.
24
25
  // TODO: Replace this override with proper AtlasKit solution.
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
25
27
  export const AKIconWrapper = styled.span({
26
28
  marginRight: "var(--ds-space-negative-025, -2px)"
27
29
  });