@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
@@ -39,11 +39,13 @@ export const IconOverrides = `
39
39
  // - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
40
40
  // NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
41
41
  // NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
42
43
  export const IconWrapper = styled.span({
43
44
  userSelect: 'none'
44
45
  }, IconOverrides, IconObjectOverrides);
45
46
 
46
47
  // Wraps all emoji in Inline Links similar to icon
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
47
49
  export const EmojiWrapper = styled.span({
48
50
  display: 'inline-block',
49
51
  marginRight: "var(--ds-space-025, 2px)",
@@ -53,6 +55,7 @@ export const EmojiWrapper = styled.span({
53
55
  // The main 'wrapping' element, title of the content.
54
56
  // NB: `white-space` adds little whitespace before wrapping.
55
57
  // NB: `word-break` line breaks as soon as an overflow takes place.
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
56
59
  export const IconTitleWrapper = styled.span({
57
60
  whiteSpace: 'pre-wrap',
58
61
  wordBreak: 'break-all',
@@ -61,11 +64,14 @@ export const IconTitleWrapper = styled.span({
61
64
  });
62
65
 
63
66
  // TODO: Replace overrides with proper AtlasKit solution.
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
64
68
  export const LozengeWrapper = styled.span({
65
69
  display: 'inline-block',
66
70
  verticalAlign: '1px',
67
71
  margin: `0 ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-025, 2px)"}`
68
72
  });
73
+
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
69
75
  export const RightIconPositionWrapper = styled.span({
70
76
  marginLeft: "var(--ds-space-025, 2px)",
71
77
  position: 'relative',
@@ -75,11 +81,14 @@ export const RightIconPositionWrapper = styled.span({
75
81
  // The following components are used to absolutely position icons in the vertical center.
76
82
  // - IconPositionWrapper: the `relative` parent which has no height in itself.
77
83
  // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
78
85
  export const IconPositionWrapper = styled.span({
79
86
  marginRight: "var(--ds-space-050, 4px)",
80
87
  position: 'relative',
81
88
  display: 'inline-block'
82
89
  });
90
+
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
83
92
  export const IconEmptyWrapper = styled.span({
84
93
  width: '14px',
85
94
  height: '100%',
@@ -90,4 +99,6 @@ export const IconEmptyWrapper = styled.span({
90
99
  // With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
91
100
  // To achieve same result we use classname instead.
92
101
  export const TitleWrapperClassName = 'smart-link-title-wrapper';
102
+
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
93
104
  export const TitleWrapper = styled.span({});
@@ -29,9 +29,9 @@ export class InlineCardResolvingView extends React.Component {
29
29
  return /*#__PURE__*/React.createElement(Frame, {
30
30
  testId: testId,
31
31
  onClick: onClick,
32
- isSelected: isSelected
32
+ isSelected: isSelected,
33
+ link: url
33
34
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
34
- link: url,
35
35
  title: url,
36
36
  titleTextColor: titleTextColor
37
37
  }, /*#__PURE__*/React.createElement(SpinnerWrapper, {
@@ -1,5 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
3
5
  export const SpinnerWrapper = styled(IconTitleWrapper)({
4
6
  verticalAlign: 'text-bottom',
5
7
  padding: '0px'
@@ -2,6 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { B400, N200 } from '@atlaskit/theme/colors';
3
3
  // By default buttons will hide overflow and ellipsis content instead of wrapping.
4
4
  // This basically turns the button back into inline content
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
5
6
  export const IconStyledButton = styled.span({
6
7
  '&&&': {
7
8
  textAlign: 'initial',
@@ -26,13 +27,19 @@ export const IconStyledButton = styled.span({
26
27
  }
27
28
  }
28
29
  });
30
+
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
29
32
  export const NoLinkAppearance = styled.span({
30
33
  color: `var(--ds-text-subtlest, ${N200})`,
31
34
  marginLeft: "var(--ds-space-050, 4px)"
32
35
  });
36
+
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
33
38
  export const LowercaseAppearance = styled.span({
34
39
  textTransform: 'lowercase'
35
40
  });
41
+
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
36
43
  export const LinkAppearance = styled.a({
37
44
  color: `var(--ds-link, ${B400})`,
38
45
  '&:hover': {
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "26.69.0",
10
+ packageVersion: "26.69.1",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl-next';
3
+ import Button from '@atlaskit/button/new';
4
+ import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
5
+ import { messages } from '../../../messages';
6
+ const RelatedLinksModal = ({
7
+ onClose,
8
+ showModal,
9
+ children
10
+ }) => {
11
+ return /*#__PURE__*/React.createElement(ModalTransition, null, showModal && /*#__PURE__*/React.createElement(Modal, {
12
+ onClose: onClose
13
+ }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title_nonfinal))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
14
+ appearance: "primary",
15
+ onClick: onClose
16
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.close)))));
17
+ };
18
+ export default RelatedLinksModal;
@@ -0,0 +1 @@
1
+ export {};
@@ -699,5 +699,10 @@ export var 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
  });
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "26.69.0"
18
+ packageVersion: "26.69.1"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  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 var LozengeBlockWrapper = styled.span({
4
5
  '& > span': {
5
6
  marginLeft: "var(--ds-space-050, 4px)"
@@ -66,10 +66,12 @@ function visible(_ref7) {
66
66
  return frameStyle === 'show' ? visibleStyles : '';
67
67
  }
68
68
 
69
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
69
+ // 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
70
70
  export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
71
71
  return wrapperStyles(props);
72
72
  });
73
+
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
73
75
  export var Wrapper = styled.div(function (props) {
74
76
  return wrapperStyles(props);
75
77
  }, {
@@ -79,6 +81,7 @@ export var Wrapper = styled.div(function (props) {
79
81
  marginTop: '10px'
80
82
  });
81
83
  export var embedHeaderHeight = 32;
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
82
85
  export var Header = styled.div({
83
86
  height: "".concat(embedHeaderHeight, "px"),
84
87
  position: 'absolute',
@@ -93,6 +96,7 @@ export var Header = styled.div({
93
96
  var frameStyle = _ref8.frameStyle;
94
97
  return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
95
98
  });
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
96
100
  export var IconWrapper = styled.div(borderRadius, csssize(16), function (_ref9) {
97
101
  var isPlaceholder = _ref9.isPlaceholder;
98
102
  if (isPlaceholder) {
@@ -103,6 +107,8 @@ export var IconWrapper = styled.div(borderRadius, csssize(16), function (_ref9)
103
107
  }, {
104
108
  marginRight: "var(--ds-space-050, 4px)"
105
109
  });
110
+
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
106
112
  export var TextWrapper = styled.div(function (_ref10) {
107
113
  var isPlaceholder = _ref10.isPlaceholder;
108
114
  if (isPlaceholder) {
@@ -115,13 +121,15 @@ export var TextWrapper = styled.div(function (_ref10) {
115
121
  fontSize: '12px',
116
122
  lineHeight: '16px'
117
123
  }, ellipsis('none'));
124
+
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
118
126
  export var TooltipWrapper = styled.div({
119
127
  overflow: 'hidden'
120
128
  });
121
129
  // NB: `overflow` is kept as `hidden` since
122
130
  // the internal contents of the `iframe` should
123
131
  // manage scrolling behaviour.
124
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
132
+ // 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
125
133
  export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
126
134
  var allowScrollBar = _ref11.allowScrollBar,
127
135
  removeOverflow = _ref11.removeOverflow;
@@ -136,6 +144,7 @@ export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedT
136
144
  var frameStyle = _ref13.frameStyle;
137
145
  return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
138
146
  });
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
139
148
  export var Image = styled.img(function (_ref14) {
140
149
  var size = _ref14.size;
141
150
  return csssize(size);
@@ -143,12 +152,16 @@ export var Image = styled.img(function (_ref14) {
143
152
  overflow: 'hidden'
144
153
  });
145
154
  export var maxAvatarCount = 6;
155
+
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
146
157
  export var ContentWrapper = styled.div({
147
158
  display: 'flex',
148
159
  flexDirection: 'row',
149
160
  boxSizing: 'border-box',
150
161
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
151
162
  });
163
+
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
152
165
  export var Title = styled.div({
153
166
  color: "var(--ds-text, ".concat(colors.N900, ")"),
154
167
  fontSize: '16px',
@@ -157,6 +170,8 @@ export var Title = styled.div({
157
170
  maxHeight: "".concat(20 * 4, "px"),
158
171
  overflow: 'hidden'
159
172
  });
173
+
174
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
160
175
  export var Byline = styled.div({
161
176
  marginTop: "var(--ds-space-050, 4px)",
162
177
  color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
@@ -164,6 +179,8 @@ export var Byline = styled.div({
164
179
  fontWeight: 'normal',
165
180
  lineHeight: 16 / 12
166
181
  }, ellipsis('100%'));
182
+
183
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
167
184
  export var Description = styled.div({
168
185
  marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
169
186
  color: "var(--ds-text, ".concat(colors.N800, ")"),
@@ -173,9 +190,12 @@ export var Description = styled.div({
173
190
  maxHeight: "".concat(18 * 3, "px"),
174
191
  overflow: 'hidden'
175
192
  });
193
+
194
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
176
195
  export var ResolvedViewIconWrapper = styled.div({
177
196
  marginTop: "var(--ds-space-050, 4px)"
178
197
  });
198
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
179
199
  export var Thumbnail = styled.div(borderRadius, csssize(48), function (props) {
180
200
  return {
181
201
  float: 'right',
@@ -185,9 +205,13 @@ export var Thumbnail = styled.div(borderRadius, csssize(48), function (props) {
185
205
  backgroundSize: 'cover'
186
206
  };
187
207
  });
208
+
209
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
188
210
  export var UsersWrapper = styled.div({
189
211
  marginTop: "var(--ds-space-100, 8px)"
190
212
  });
213
+
214
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
191
215
  export var ActionsWrapper = styled.div({
192
216
  marginTop: "var(--ds-space-100, 8px)",
193
217
  textAlign: 'right',
@@ -198,6 +222,8 @@ export var ActionsWrapper = styled.div({
198
222
  marginLeft: "var(--ds-space-050, 4px)"
199
223
  }
200
224
  });
225
+
226
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
201
227
  export var AlertWrapper = styled.div({
202
228
  position: 'absolute',
203
229
  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
  var AIIndicatorTooltipPrimitive = styled(TooltipPrimitive)({
7
8
  borderRadius: "var(--ds-border-radius, 3px)",
8
9
  backgroundColor: "var(--ds-surface-raised, white)",
@@ -87,10 +87,14 @@ var baseWrapperStyles = function baseWrapperStyles(props) {
87
87
  MozUserSelect: 'none'
88
88
  }, props.isHovered ? hoveredWihBorderStyles(props) : undefined);
89
89
  };
90
+
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
90
92
  export var WrapperAnchor = styled.a(function (props) {
91
93
  return _objectSpread(_objectSpread({}, baseWrapperStyles(props)), isInteractive(props));
92
94
  });
93
95
  WrapperAnchor.displayName = 'WrapperAnchor';
96
+
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
94
98
  export var WrapperSpan = styled.span(function (props) {
95
99
  return _objectSpread({}, baseWrapperStyles(props));
96
100
  });
@@ -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 var Icon = styled.img({
11
12
  height: '14px',
12
13
  width: '14px',
@@ -22,6 +23,7 @@ export var 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 var AKIconWrapper = styled.span({
26
28
  marginRight: "var(--ds-space-negative-025, -2px)"
27
29
  });
@@ -10,11 +10,13 @@ export var IconOverrides = "\n\n & > * > span {\n height: 16px;\n width:
10
10
  // - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
11
11
  // NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
12
12
  // NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
13
14
  export var IconWrapper = styled.span({
14
15
  userSelect: 'none'
15
16
  }, IconOverrides, IconObjectOverrides);
16
17
 
17
18
  // Wraps all emoji in Inline Links similar to icon
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
18
20
  export var EmojiWrapper = styled.span({
19
21
  display: 'inline-block',
20
22
  marginRight: "var(--ds-space-025, 2px)",
@@ -24,6 +26,7 @@ export var EmojiWrapper = styled.span({
24
26
  // The main 'wrapping' element, title of the content.
25
27
  // NB: `white-space` adds little whitespace before wrapping.
26
28
  // NB: `word-break` line breaks as soon as an overflow takes place.
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
27
30
  export var IconTitleWrapper = styled.span({
28
31
  whiteSpace: 'pre-wrap',
29
32
  wordBreak: 'break-all',
@@ -32,11 +35,14 @@ export var IconTitleWrapper = styled.span({
32
35
  });
33
36
 
34
37
  // TODO: Replace overrides with proper AtlasKit solution.
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
35
39
  export var LozengeWrapper = styled.span({
36
40
  display: 'inline-block',
37
41
  verticalAlign: '1px',
38
42
  margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
39
43
  });
44
+
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
40
46
  export var RightIconPositionWrapper = styled.span({
41
47
  marginLeft: "var(--ds-space-025, 2px)",
42
48
  position: 'relative',
@@ -46,11 +52,14 @@ export var RightIconPositionWrapper = styled.span({
46
52
  // The following components are used to absolutely position icons in the vertical center.
47
53
  // - IconPositionWrapper: the `relative` parent which has no height in itself.
48
54
  // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
49
56
  export var IconPositionWrapper = styled.span({
50
57
  marginRight: "var(--ds-space-050, 4px)",
51
58
  position: 'relative',
52
59
  display: 'inline-block'
53
60
  });
61
+
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
54
63
  export var IconEmptyWrapper = styled.span({
55
64
  width: '14px',
56
65
  height: '100%',
@@ -61,4 +70,6 @@ export var IconEmptyWrapper = styled.span({
61
70
  // With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
62
71
  // To achieve same result we use classname instead.
63
72
  export var TitleWrapperClassName = 'smart-link-title-wrapper';
73
+
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
64
75
  export var TitleWrapper = styled.span({});
@@ -44,9 +44,9 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
44
44
  return /*#__PURE__*/React.createElement(Frame, {
45
45
  testId: testId,
46
46
  onClick: onClick,
47
- isSelected: isSelected
47
+ isSelected: isSelected,
48
+ link: url
48
49
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
49
- link: url,
50
50
  title: url,
51
51
  titleTextColor: titleTextColor
52
52
  }, /*#__PURE__*/React.createElement(SpinnerWrapper, {
@@ -1,5 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
3
5
  export var SpinnerWrapper = styled(IconTitleWrapper)({
4
6
  verticalAlign: 'text-bottom',
5
7
  padding: '0px'
@@ -2,6 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { B400, N200 } from '@atlaskit/theme/colors';
3
3
  // By default buttons will hide overflow and ellipsis content instead of wrapping.
4
4
  // This basically turns the button back into inline content
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
5
6
  export var IconStyledButton = styled.span({
6
7
  '&&&': {
7
8
  textAlign: 'initial',
@@ -26,13 +27,19 @@ export var IconStyledButton = styled.span({
26
27
  }
27
28
  }
28
29
  });
30
+
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
29
32
  export var NoLinkAppearance = styled.span({
30
33
  color: "var(--ds-text-subtlest, ".concat(N200, ")"),
31
34
  marginLeft: "var(--ds-space-050, 4px)"
32
35
  });
36
+
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
33
38
  export var LowercaseAppearance = styled.span({
34
39
  textTransform: 'lowercase'
35
40
  });
41
+
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
36
43
  export var LinkAppearance = styled.a({
37
44
  color: "var(--ds-link, ".concat(B400, ")"),
38
45
  '&:hover': {
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "26.69.0",
13
+ packageVersion: "26.69.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl-next';
3
+ import Button from '@atlaskit/button/new';
4
+ import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
5
+ import { messages } from '../../../messages';
6
+ var RelatedLinksModal = function RelatedLinksModal(_ref) {
7
+ var onClose = _ref.onClose,
8
+ showModal = _ref.showModal,
9
+ children = _ref.children;
10
+ return /*#__PURE__*/React.createElement(ModalTransition, null, showModal && /*#__PURE__*/React.createElement(Modal, {
11
+ onClose: onClose
12
+ }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title_nonfinal))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
13
+ appearance: "primary",
14
+ onClick: onClose
15
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.close)))));
16
+ };
17
+ export default RelatedLinksModal;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title_nonfinal';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InlinePreloaderStyle } from '../../types';
2
+ import { type InlinePreloaderStyle } from '../../types';
3
3
  export interface InlineCardResolvingViewProps {
4
4
  /** The url to display */
5
5
  url: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type RelatedLinksModalProps } from '../types';
3
+ declare const RelatedLinksModal: ({ onClose, showModal, children, }: RelatedLinksModalProps) => JSX.Element;
4
+ export default RelatedLinksModal;
@@ -0,0 +1,6 @@
1
+ import type React from "react";
2
+ export type RelatedLinksModalProps = {
3
+ onClose: () => void;
4
+ showModal: boolean;
5
+ children: React.ReactNode;
6
+ };
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title_nonfinal';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InlinePreloaderStyle } from '../../types';
2
+ import { type InlinePreloaderStyle } from '../../types';
3
3
  export interface InlineCardResolvingViewProps {
4
4
  /** The url to display */
5
5
  url: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type RelatedLinksModalProps } from '../types';
3
+ declare const RelatedLinksModal: ({ onClose, showModal, children, }: RelatedLinksModalProps) => JSX.Element;
4
+ export default RelatedLinksModal;
@@ -0,0 +1,6 @@
1
+ import type React from "react";
2
+ export type RelatedLinksModalProps = {
3
+ onClose: () => void;
4
+ showModal: boolean;
5
+ children: React.ReactNode;
6
+ };