@atlaskit/smart-card 26.68.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.
- package/CHANGELOG.md +26 -0
- package/dist/cjs/messages.js +27 -22
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/styled.js +1 -0
- package/dist/cjs/view/EmbedCard/components/styled.js +28 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/cjs/view/InlineCard/Frame/styled.js +4 -0
- package/dist/cjs/view/InlineCard/Icon.js +2 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -0
- package/dist/cjs/view/InlineCard/styled.js +7 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +27 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +5 -0
- package/dist/es2019/messages.js +27 -22
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -0
- package/dist/es2019/view/EmbedCard/components/styled.js +28 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/es2019/view/InlineCard/Frame/styled.js +4 -0
- package/dist/es2019/view/InlineCard/Icon.js +2 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +2 -0
- package/dist/es2019/view/InlineCard/styled.js +7 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +18 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +1 -0
- package/dist/esm/messages.js +27 -22
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/styled.js +1 -0
- package/dist/esm/view/EmbedCard/components/styled.js +28 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/esm/view/InlineCard/Frame/styled.js +4 -0
- package/dist/esm/view/InlineCard/Icon.js +2 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/esm/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +2 -0
- package/dist/esm/view/InlineCard/styled.js +7 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +17 -0
- package/dist/esm/view/RelatedLinksModal/types.js +1 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +6 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +6 -0
- package/package.json +9 -9
package/dist/es2019/messages.js
CHANGED
|
@@ -31,7 +31,7 @@ export const messages = defineMessages({
|
|
|
31
31
|
description: 'Additional info about the content summarised by AI.'
|
|
32
32
|
},
|
|
33
33
|
ai_summarized_info_short: {
|
|
34
|
-
id: 'fabric.linking.ai_summarized_info_short
|
|
34
|
+
id: 'fabric.linking.ai_summarized_info_short',
|
|
35
35
|
defaultMessage: 'Content quality may vary',
|
|
36
36
|
description: 'Additional info about the content summarised by AI.'
|
|
37
37
|
},
|
|
@@ -186,7 +186,7 @@ export const messages = defineMessages({
|
|
|
186
186
|
description: ''
|
|
187
187
|
},
|
|
188
188
|
copied_url_to_clipboard: {
|
|
189
|
-
id: 'fabric.linking.copied_url_to_clipboard
|
|
189
|
+
id: 'fabric.linking.copied_url_to_clipboard',
|
|
190
190
|
defaultMessage: 'Copied!',
|
|
191
191
|
description: 'Url has been copied to the clipboard'
|
|
192
192
|
},
|
|
@@ -221,37 +221,37 @@ export const messages = defineMessages({
|
|
|
221
221
|
description: ''
|
|
222
222
|
},
|
|
223
223
|
download_description: {
|
|
224
|
-
id: 'fabric.linking.download_description
|
|
224
|
+
id: 'fabric.linking.download_description',
|
|
225
225
|
defaultMessage: 'Download this file into your local storage',
|
|
226
226
|
description: 'Description on what Download does'
|
|
227
227
|
},
|
|
228
228
|
download_file: {
|
|
229
|
-
id: 'fabric.linking.download_file
|
|
229
|
+
id: 'fabric.linking.download_file',
|
|
230
230
|
defaultMessage: 'Download file',
|
|
231
231
|
description: 'Allow a user to download a file'
|
|
232
232
|
},
|
|
233
233
|
ai_summary_action: {
|
|
234
|
-
id: 'fabric.linking.ai_summary_action
|
|
234
|
+
id: 'fabric.linking.ai_summary_action',
|
|
235
235
|
defaultMessage: 'Summarize with AI',
|
|
236
236
|
description: 'Allow a user to summarize a link'
|
|
237
237
|
},
|
|
238
238
|
ai_summary_action_description: {
|
|
239
|
-
id: 'fabric.linking.ai_summary_action_description
|
|
239
|
+
id: 'fabric.linking.ai_summary_action_description',
|
|
240
240
|
defaultMessage: 'Summarize the content of this link using Atlassian Intelligence.',
|
|
241
241
|
description: 'Description of what the summarize link with AI action does'
|
|
242
242
|
},
|
|
243
243
|
copy_summary_action: {
|
|
244
|
-
id: 'fabric.linking.copy_summary_action
|
|
244
|
+
id: 'fabric.linking.copy_summary_action',
|
|
245
245
|
defaultMessage: 'Copy summary',
|
|
246
246
|
description: 'Allow a user to copy a generated summary'
|
|
247
247
|
},
|
|
248
248
|
copy_summary_action_description: {
|
|
249
|
-
id: 'fabric.linking.
|
|
249
|
+
id: 'fabric.linking.copy_summary_action_description',
|
|
250
250
|
defaultMessage: 'Copy summary',
|
|
251
251
|
description: 'Description of what the copy summary AI action does'
|
|
252
252
|
},
|
|
253
253
|
copied_summary_action_description: {
|
|
254
|
-
id: 'fabric.linking.copied_summary_action_description
|
|
254
|
+
id: 'fabric.linking.copied_summary_action_description',
|
|
255
255
|
defaultMessage: 'Copied summary to clipboard',
|
|
256
256
|
description: 'Confirmation to the user that the summry has been copied'
|
|
257
257
|
},
|
|
@@ -266,32 +266,32 @@ export const messages = defineMessages({
|
|
|
266
266
|
description: 'Click to follow a project.'
|
|
267
267
|
},
|
|
268
268
|
follow_project_description: {
|
|
269
|
-
id: 'fabric.linking.follow_project_description
|
|
269
|
+
id: 'fabric.linking.follow_project_description',
|
|
270
270
|
defaultMessage: 'Follow to get notifications on this project',
|
|
271
271
|
description: 'Description on what Follow does'
|
|
272
272
|
},
|
|
273
273
|
follow_project: {
|
|
274
|
-
id: 'fabric.linking.follow_project
|
|
274
|
+
id: 'fabric.linking.follow_project',
|
|
275
275
|
defaultMessage: 'Follow project',
|
|
276
276
|
description: 'Click to follow a project.'
|
|
277
277
|
},
|
|
278
278
|
follow_project_error: {
|
|
279
|
-
id: 'fabric.linking.follow_project_error
|
|
279
|
+
id: 'fabric.linking.follow_project_error',
|
|
280
280
|
defaultMessage: 'We encountered an error while trying to follow the project. Check your connection or refresh the page and try again.',
|
|
281
281
|
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
282
282
|
},
|
|
283
283
|
follow_goal_description: {
|
|
284
|
-
id: 'fabric.linking.follow_goal_description
|
|
284
|
+
id: 'fabric.linking.follow_goal_description',
|
|
285
285
|
defaultMessage: 'Follow this goal to get notifications on updates',
|
|
286
286
|
description: 'Description on what Follow does'
|
|
287
287
|
},
|
|
288
288
|
follow_goal: {
|
|
289
|
-
id: 'fabric.linking.follow_goal
|
|
289
|
+
id: 'fabric.linking.follow_goal',
|
|
290
290
|
defaultMessage: 'Follow goal',
|
|
291
291
|
description: 'Click to follow a project.'
|
|
292
292
|
},
|
|
293
293
|
follow_goal_error: {
|
|
294
|
-
id: 'fabric.linking.follow_goal_error
|
|
294
|
+
id: 'fabric.linking.follow_goal_error',
|
|
295
295
|
defaultMessage: 'We encountered an error while trying to follow the goal. Check your connection or refresh the page and try again.',
|
|
296
296
|
description: 'Shown when an unknown error occurs when following an Atlas goal'
|
|
297
297
|
},
|
|
@@ -366,7 +366,7 @@ export const messages = defineMessages({
|
|
|
366
366
|
description: 'Indicates the person or entity that owns or maintains the resource.'
|
|
367
367
|
},
|
|
368
368
|
preview_description: {
|
|
369
|
-
id: 'fabric.linking.preview_description
|
|
369
|
+
id: 'fabric.linking.preview_description',
|
|
370
370
|
defaultMessage: 'Open a full screen preview of this link',
|
|
371
371
|
description: 'Description on what Preview does'
|
|
372
372
|
},
|
|
@@ -556,32 +556,32 @@ export const messages = defineMessages({
|
|
|
556
556
|
description: 'Click to unfollow a project.'
|
|
557
557
|
},
|
|
558
558
|
unfollow_project_description: {
|
|
559
|
-
id: 'fabric.linking.unfollow_project_description
|
|
559
|
+
id: 'fabric.linking.unfollow_project_description',
|
|
560
560
|
defaultMessage: 'Unfollow to stop receiving project notifications',
|
|
561
561
|
description: 'Description on what Unfollow does'
|
|
562
562
|
},
|
|
563
563
|
unfollow_project: {
|
|
564
|
-
id: 'fabric.linking.unfollow_project
|
|
564
|
+
id: 'fabric.linking.unfollow_project',
|
|
565
565
|
defaultMessage: 'Unfollow project',
|
|
566
566
|
description: 'Click to unfollow a project.'
|
|
567
567
|
},
|
|
568
568
|
unfollow_project_error: {
|
|
569
|
-
id: 'fabric.linking.unfollow_project_error
|
|
569
|
+
id: 'fabric.linking.unfollow_project_error',
|
|
570
570
|
defaultMessage: 'We encountered an error while trying to unfollow the project. Check your connection or refresh the page and try again.',
|
|
571
571
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
572
572
|
},
|
|
573
573
|
unfollow_goal_description: {
|
|
574
|
-
id: 'fabric.linking.unfollow_goal_description
|
|
574
|
+
id: 'fabric.linking.unfollow_goal_description',
|
|
575
575
|
defaultMessage: 'Unfollow to stop receiving notifications for this goal',
|
|
576
576
|
description: 'Description on what Unfollow does'
|
|
577
577
|
},
|
|
578
578
|
unfollow_goal: {
|
|
579
|
-
id: 'fabric.linking.unfollow_goal
|
|
579
|
+
id: 'fabric.linking.unfollow_goal',
|
|
580
580
|
defaultMessage: 'Unfollow goal',
|
|
581
581
|
description: 'Click to unfollow a project.'
|
|
582
582
|
},
|
|
583
583
|
unfollow_goal_error: {
|
|
584
|
-
id: 'fabric.linking.unfollow_goal_error
|
|
584
|
+
id: 'fabric.linking.unfollow_goal_error',
|
|
585
585
|
defaultMessage: 'We encountered an error while trying to unfollow the goal. Check your connection or refresh the page and try again.',
|
|
586
586
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas goal'
|
|
587
587
|
},
|
|
@@ -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.
|
|
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,
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -17,7 +17,7 @@ export function CopySummaryAction({
|
|
|
17
17
|
const {
|
|
18
18
|
fireEvent
|
|
19
19
|
} = useAnalyticsEvents();
|
|
20
|
-
const [tooltipMessage, setTooltipMessage] = useState(messages.
|
|
20
|
+
const [tooltipMessage, setTooltipMessage] = useState(messages.copy_summary_action_description);
|
|
21
21
|
const handleCopySummaryClick = useCallback(async () => {
|
|
22
22
|
fireEvent('ui.button.clicked.copySummary', {});
|
|
23
23
|
await navigator.clipboard.writeText(content !== null && content !== void 0 ? content : '');
|
|
@@ -31,6 +31,7 @@ export function CopySummaryAction({
|
|
|
31
31
|
}),
|
|
32
32
|
onClick: handleCopySummaryClick,
|
|
33
33
|
testId: `${testId}-copy-summary-action`,
|
|
34
|
-
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage)
|
|
34
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage),
|
|
35
|
+
tooltipOnHide: () => setTooltipMessage(messages.copy_summary_action_description)
|
|
35
36
|
}, props));
|
|
36
37
|
}
|
|
@@ -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
|
});
|
|
@@ -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.
|
|
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 {};
|