@atlaskit/smart-card 26.68.0 → 26.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/messages.js +22 -22
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +22 -22
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +3 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +22 -22
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.69.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#101702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101702)
|
|
8
|
+
[`2d087cf38dab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d087cf38dab) -
|
|
9
|
+
Fixes issue with the tooltip on the copy summary action
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#101752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101752)
|
|
14
|
+
[`ce0a0cf5380a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce0a0cf5380a) -
|
|
15
|
+
Finalise hover card redesign localisation
|
|
16
|
+
|
|
3
17
|
## 26.68.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -37,7 +37,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
37
37
|
description: 'Additional info about the content summarised by AI.'
|
|
38
38
|
},
|
|
39
39
|
ai_summarized_info_short: {
|
|
40
|
-
id: 'fabric.linking.ai_summarized_info_short
|
|
40
|
+
id: 'fabric.linking.ai_summarized_info_short',
|
|
41
41
|
defaultMessage: 'Content quality may vary',
|
|
42
42
|
description: 'Additional info about the content summarised by AI.'
|
|
43
43
|
},
|
|
@@ -192,7 +192,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
192
192
|
description: ''
|
|
193
193
|
},
|
|
194
194
|
copied_url_to_clipboard: {
|
|
195
|
-
id: 'fabric.linking.copied_url_to_clipboard
|
|
195
|
+
id: 'fabric.linking.copied_url_to_clipboard',
|
|
196
196
|
defaultMessage: 'Copied!',
|
|
197
197
|
description: 'Url has been copied to the clipboard'
|
|
198
198
|
},
|
|
@@ -227,37 +227,37 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
227
227
|
description: ''
|
|
228
228
|
},
|
|
229
229
|
download_description: {
|
|
230
|
-
id: 'fabric.linking.download_description
|
|
230
|
+
id: 'fabric.linking.download_description',
|
|
231
231
|
defaultMessage: 'Download this file into your local storage',
|
|
232
232
|
description: 'Description on what Download does'
|
|
233
233
|
},
|
|
234
234
|
download_file: {
|
|
235
|
-
id: 'fabric.linking.download_file
|
|
235
|
+
id: 'fabric.linking.download_file',
|
|
236
236
|
defaultMessage: 'Download file',
|
|
237
237
|
description: 'Allow a user to download a file'
|
|
238
238
|
},
|
|
239
239
|
ai_summary_action: {
|
|
240
|
-
id: 'fabric.linking.ai_summary_action
|
|
240
|
+
id: 'fabric.linking.ai_summary_action',
|
|
241
241
|
defaultMessage: 'Summarize with AI',
|
|
242
242
|
description: 'Allow a user to summarize a link'
|
|
243
243
|
},
|
|
244
244
|
ai_summary_action_description: {
|
|
245
|
-
id: 'fabric.linking.ai_summary_action_description
|
|
245
|
+
id: 'fabric.linking.ai_summary_action_description',
|
|
246
246
|
defaultMessage: 'Summarize the content of this link using Atlassian Intelligence.',
|
|
247
247
|
description: 'Description of what the summarize link with AI action does'
|
|
248
248
|
},
|
|
249
249
|
copy_summary_action: {
|
|
250
|
-
id: 'fabric.linking.copy_summary_action
|
|
250
|
+
id: 'fabric.linking.copy_summary_action',
|
|
251
251
|
defaultMessage: 'Copy summary',
|
|
252
252
|
description: 'Allow a user to copy a generated summary'
|
|
253
253
|
},
|
|
254
254
|
copy_summary_action_description: {
|
|
255
|
-
id: 'fabric.linking.
|
|
255
|
+
id: 'fabric.linking.copy_summary_action_description',
|
|
256
256
|
defaultMessage: 'Copy summary',
|
|
257
257
|
description: 'Description of what the copy summary AI action does'
|
|
258
258
|
},
|
|
259
259
|
copied_summary_action_description: {
|
|
260
|
-
id: 'fabric.linking.copied_summary_action_description
|
|
260
|
+
id: 'fabric.linking.copied_summary_action_description',
|
|
261
261
|
defaultMessage: 'Copied summary to clipboard',
|
|
262
262
|
description: 'Confirmation to the user that the summry has been copied'
|
|
263
263
|
},
|
|
@@ -272,32 +272,32 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
272
272
|
description: 'Click to follow a project.'
|
|
273
273
|
},
|
|
274
274
|
follow_project_description: {
|
|
275
|
-
id: 'fabric.linking.follow_project_description
|
|
275
|
+
id: 'fabric.linking.follow_project_description',
|
|
276
276
|
defaultMessage: 'Follow to get notifications on this project',
|
|
277
277
|
description: 'Description on what Follow does'
|
|
278
278
|
},
|
|
279
279
|
follow_project: {
|
|
280
|
-
id: 'fabric.linking.follow_project
|
|
280
|
+
id: 'fabric.linking.follow_project',
|
|
281
281
|
defaultMessage: 'Follow project',
|
|
282
282
|
description: 'Click to follow a project.'
|
|
283
283
|
},
|
|
284
284
|
follow_project_error: {
|
|
285
|
-
id: 'fabric.linking.follow_project_error
|
|
285
|
+
id: 'fabric.linking.follow_project_error',
|
|
286
286
|
defaultMessage: 'We encountered an error while trying to follow the project. Check your connection or refresh the page and try again.',
|
|
287
287
|
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
288
288
|
},
|
|
289
289
|
follow_goal_description: {
|
|
290
|
-
id: 'fabric.linking.follow_goal_description
|
|
290
|
+
id: 'fabric.linking.follow_goal_description',
|
|
291
291
|
defaultMessage: 'Follow this goal to get notifications on updates',
|
|
292
292
|
description: 'Description on what Follow does'
|
|
293
293
|
},
|
|
294
294
|
follow_goal: {
|
|
295
|
-
id: 'fabric.linking.follow_goal
|
|
295
|
+
id: 'fabric.linking.follow_goal',
|
|
296
296
|
defaultMessage: 'Follow goal',
|
|
297
297
|
description: 'Click to follow a project.'
|
|
298
298
|
},
|
|
299
299
|
follow_goal_error: {
|
|
300
|
-
id: 'fabric.linking.follow_goal_error
|
|
300
|
+
id: 'fabric.linking.follow_goal_error',
|
|
301
301
|
defaultMessage: 'We encountered an error while trying to follow the goal. Check your connection or refresh the page and try again.',
|
|
302
302
|
description: 'Shown when an unknown error occurs when following an Atlas goal'
|
|
303
303
|
},
|
|
@@ -372,7 +372,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
372
372
|
description: 'Indicates the person or entity that owns or maintains the resource.'
|
|
373
373
|
},
|
|
374
374
|
preview_description: {
|
|
375
|
-
id: 'fabric.linking.preview_description
|
|
375
|
+
id: 'fabric.linking.preview_description',
|
|
376
376
|
defaultMessage: 'Open a full screen preview of this link',
|
|
377
377
|
description: 'Description on what Preview does'
|
|
378
378
|
},
|
|
@@ -562,32 +562,32 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
562
562
|
description: 'Click to unfollow a project.'
|
|
563
563
|
},
|
|
564
564
|
unfollow_project_description: {
|
|
565
|
-
id: 'fabric.linking.unfollow_project_description
|
|
565
|
+
id: 'fabric.linking.unfollow_project_description',
|
|
566
566
|
defaultMessage: 'Unfollow to stop receiving project notifications',
|
|
567
567
|
description: 'Description on what Unfollow does'
|
|
568
568
|
},
|
|
569
569
|
unfollow_project: {
|
|
570
|
-
id: 'fabric.linking.unfollow_project
|
|
570
|
+
id: 'fabric.linking.unfollow_project',
|
|
571
571
|
defaultMessage: 'Unfollow project',
|
|
572
572
|
description: 'Click to unfollow a project.'
|
|
573
573
|
},
|
|
574
574
|
unfollow_project_error: {
|
|
575
|
-
id: 'fabric.linking.unfollow_project_error
|
|
575
|
+
id: 'fabric.linking.unfollow_project_error',
|
|
576
576
|
defaultMessage: 'We encountered an error while trying to unfollow the project. Check your connection or refresh the page and try again.',
|
|
577
577
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
578
578
|
},
|
|
579
579
|
unfollow_goal_description: {
|
|
580
|
-
id: 'fabric.linking.unfollow_goal_description
|
|
580
|
+
id: 'fabric.linking.unfollow_goal_description',
|
|
581
581
|
defaultMessage: 'Unfollow to stop receiving notifications for this goal',
|
|
582
582
|
description: 'Description on what Unfollow does'
|
|
583
583
|
},
|
|
584
584
|
unfollow_goal: {
|
|
585
|
-
id: 'fabric.linking.unfollow_goal
|
|
585
|
+
id: 'fabric.linking.unfollow_goal',
|
|
586
586
|
defaultMessage: 'Unfollow goal',
|
|
587
587
|
description: 'Click to unfollow a project.'
|
|
588
588
|
},
|
|
589
589
|
unfollow_goal_error: {
|
|
590
|
-
id: 'fabric.linking.unfollow_goal_error
|
|
590
|
+
id: 'fabric.linking.unfollow_goal_error',
|
|
591
591
|
defaultMessage: 'We encountered an error while trying to unfollow the goal. Check your connection or refresh the page and try again.',
|
|
592
592
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas goal'
|
|
593
593
|
},
|
|
@@ -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.
|
|
25
|
+
packageVersion: "26.69.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -30,7 +30,7 @@ function CopySummaryAction(_ref) {
|
|
|
30
30
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
31
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
32
32
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
33
|
-
var _useState = (0, _react.useState)(_messages.messages.
|
|
33
|
+
var _useState = (0, _react.useState)(_messages.messages.copy_summary_action_description),
|
|
34
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
35
|
tooltipMessage = _useState2[0],
|
|
36
36
|
setTooltipMessage = _useState2[1];
|
|
@@ -57,6 +57,9 @@ function CopySummaryAction(_ref) {
|
|
|
57
57
|
}),
|
|
58
58
|
onClick: handleCopySummaryClick,
|
|
59
59
|
testId: "".concat(testId, "-copy-summary-action"),
|
|
60
|
-
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, tooltipMessage)
|
|
60
|
+
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, tooltipMessage),
|
|
61
|
+
tooltipOnHide: function tooltipOnHide() {
|
|
62
|
+
return setTooltipMessage(_messages.messages.copy_summary_action_description);
|
|
63
|
+
}
|
|
61
64
|
}, props));
|
|
62
65
|
}
|
|
@@ -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.
|
|
20
|
+
packageVersion: "26.69.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
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
|
},
|
|
@@ -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.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
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
|
}
|
|
@@ -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.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
package/dist/esm/messages.js
CHANGED
|
@@ -31,7 +31,7 @@ export var 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 var 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 var 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 var 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 var 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 var 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
|
},
|
|
@@ -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.
|
|
18
|
+
packageVersion: "26.69.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -20,7 +20,7 @@ export function CopySummaryAction(_ref) {
|
|
|
20
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
21
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
22
22
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
23
|
-
var _useState = useState(messages.
|
|
23
|
+
var _useState = useState(messages.copy_summary_action_description),
|
|
24
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25
25
|
tooltipMessage = _useState2[0],
|
|
26
26
|
setTooltipMessage = _useState2[1];
|
|
@@ -47,6 +47,9 @@ export function CopySummaryAction(_ref) {
|
|
|
47
47
|
}),
|
|
48
48
|
onClick: handleCopySummaryClick,
|
|
49
49
|
testId: "".concat(testId, "-copy-summary-action"),
|
|
50
|
-
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage)
|
|
50
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage),
|
|
51
|
+
tooltipOnHide: function tooltipOnHide() {
|
|
52
|
+
return setTooltipMessage(messages.copy_summary_action_description);
|
|
53
|
+
}
|
|
51
54
|
}, props));
|
|
52
55
|
}
|
|
@@ -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.
|
|
13
|
+
packageVersion: "26.69.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.69.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@atlaskit/link-extractors": "^1.5.0",
|
|
47
47
|
"@atlaskit/linking-common": "^5.6.0",
|
|
48
48
|
"@atlaskit/linking-types": "^8.8.0",
|
|
49
|
-
"@atlaskit/logo": "^13.
|
|
49
|
+
"@atlaskit/logo": "^13.17.0",
|
|
50
50
|
"@atlaskit/lozenge": "^11.7.0",
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.13.0",
|
|
52
52
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
54
54
|
"@atlaskit/popup": "^1.17.0",
|
|
55
|
-
"@atlaskit/primitives": "^6.
|
|
55
|
+
"@atlaskit/primitives": "^6.2.0",
|
|
56
56
|
"@atlaskit/spinner": "^16.1.0",
|
|
57
57
|
"@atlaskit/theme": "^12.8.0",
|
|
58
58
|
"@atlaskit/tokens": "^1.48.0",
|