@atlaskit/smart-card 44.3.24 → 44.5.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 +28 -0
- package/analytics.spec.yaml +5 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/cjs/common/analytics/generated/create-event-payload.js +7 -7
- package/dist/cjs/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/cjs/messages.js +59 -49
- package/dist/cjs/preloadLazyCardWithUrlContent.js +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +17 -11
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -26
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +29 -11
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +25 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/es2019/common/analytics/generated/create-event-payload.js +6 -6
- package/dist/es2019/common/analytics/generated/use-analytics-events.js +2 -2
- package/dist/es2019/messages.js +59 -49
- package/dist/es2019/preloadLazyCardWithUrlContent.js +2 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +29 -21
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +21 -10
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -28
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +29 -12
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +22 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +5 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/esm/common/analytics/generated/create-event-payload.js +7 -7
- package/dist/esm/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/esm/messages.js +59 -49
- package/dist/esm/preloadLazyCardWithUrlContent.js +4 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +18 -12
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +42 -27
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +30 -12
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +26 -8
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +116 -114
- package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/common/analytics/generated/use-analytics-events.d.ts +4 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/preloadLazyCardWithUrlContent.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +7 -2
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +116 -114
- package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +4 -5
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/preloadLazyCardWithUrlContent.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +7 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
- package/package.json +5 -4
- package/preload-lazy-card-with-url-content/package.json +17 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::268e746266cde1271e40a794eb774cf3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -11,17 +11,17 @@ const createEventPayload = (eventKey, ...[attributes]) => {
|
|
|
11
11
|
const [eventType, actionSubject, action, actionSubjectId] = eventKey.split('.');
|
|
12
12
|
if (eventType === 'screen') {
|
|
13
13
|
return {
|
|
14
|
-
eventType,
|
|
14
|
+
eventType: eventType,
|
|
15
15
|
name: actionSubject,
|
|
16
16
|
action: 'viewed',
|
|
17
17
|
attributes: attributes
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
|
-
eventType,
|
|
22
|
-
actionSubject,
|
|
23
|
-
action,
|
|
24
|
-
actionSubjectId,
|
|
21
|
+
eventType: eventType,
|
|
22
|
+
actionSubject: actionSubject,
|
|
23
|
+
action: action,
|
|
24
|
+
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: attributes
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ac0d75fa9e8d43c947e88f47ba1267aa>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
import { useCallback } from 'react';
|
|
@@ -19,6 +19,6 @@ export const useAnalyticsEvents = () => {
|
|
|
19
19
|
event.fire(EVENT_CHANNEL);
|
|
20
20
|
}, [createAnalyticsEvent]);
|
|
21
21
|
return {
|
|
22
|
-
fireEvent
|
|
22
|
+
fireEvent: fireEvent
|
|
23
23
|
};
|
|
24
24
|
};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -103,7 +103,7 @@ export const messages = defineMessages({
|
|
|
103
103
|
beta: {
|
|
104
104
|
id: 'fabric.linking.beta',
|
|
105
105
|
defaultMessage: 'Beta',
|
|
106
|
-
description: '
|
|
106
|
+
description: 'Text shown in a lozenge badge on a smart link or card to indicate the feature is currently in beta.'
|
|
107
107
|
},
|
|
108
108
|
cannot_connect: {
|
|
109
109
|
id: 'fabric.linking.cannot_connect',
|
|
@@ -128,12 +128,12 @@ export const messages = defineMessages({
|
|
|
128
128
|
close: {
|
|
129
129
|
id: 'fabric.linking.close',
|
|
130
130
|
defaultMessage: 'Close',
|
|
131
|
-
description: '
|
|
131
|
+
description: 'Label for a button or icon that closes the currently open modal dialog or overlay screen.'
|
|
132
132
|
},
|
|
133
133
|
check_this_link: {
|
|
134
134
|
id: 'fabric.linking.check_this_link',
|
|
135
135
|
defaultMessage: 'Check this link',
|
|
136
|
-
description: '
|
|
136
|
+
description: 'Heading shown at the top of the link safety warning modal, prompting the user to verify a potentially unsafe link before proceeding.'
|
|
137
137
|
},
|
|
138
138
|
compass_applied_components_count: {
|
|
139
139
|
id: 'compass.applied_components_count.non-final',
|
|
@@ -188,7 +188,7 @@ export const messages = defineMessages({
|
|
|
188
188
|
continue: {
|
|
189
189
|
id: 'fabric.linking.continue',
|
|
190
190
|
defaultMessage: 'Continue',
|
|
191
|
-
description: '
|
|
191
|
+
description: 'Label for a button that advances the user to the next step, e.g. in the link safety warning modal flow.'
|
|
192
192
|
},
|
|
193
193
|
copy_url_to_clipboard: {
|
|
194
194
|
id: 'fabric.linking.copy_url_to_clipboard',
|
|
@@ -198,7 +198,7 @@ export const messages = defineMessages({
|
|
|
198
198
|
copied_url_to_clipboard: {
|
|
199
199
|
id: 'fabric.linking.copied_url_to_clipboard',
|
|
200
200
|
defaultMessage: 'Copied!',
|
|
201
|
-
description: '
|
|
201
|
+
description: 'Confirmation text shown briefly after the user copies a URL to the clipboard using the copy link action.'
|
|
202
202
|
},
|
|
203
203
|
could_not_load_link: {
|
|
204
204
|
id: 'fabric.linking.couldnt_load_link',
|
|
@@ -223,27 +223,27 @@ export const messages = defineMessages({
|
|
|
223
223
|
delete: {
|
|
224
224
|
id: 'fabric.linking.delete',
|
|
225
225
|
defaultMessage: 'Delete',
|
|
226
|
-
description: '
|
|
226
|
+
description: 'Label for the delete action in a smart link or card action menu, allowing the user to remove the linked item.'
|
|
227
227
|
},
|
|
228
228
|
download: {
|
|
229
229
|
id: 'fabric.linking.download',
|
|
230
230
|
defaultMessage: 'Download',
|
|
231
|
-
description: '
|
|
231
|
+
description: 'Label for the download action in a smart link or card action menu, initiating a file download.'
|
|
232
232
|
},
|
|
233
233
|
download_description: {
|
|
234
234
|
id: 'fabric.linking.download_description',
|
|
235
235
|
defaultMessage: 'Download this file into your local storage',
|
|
236
|
-
description:
|
|
236
|
+
description: "Tooltip or description text for the download action, explaining it saves the file to the user's local storage."
|
|
237
237
|
},
|
|
238
238
|
download_file: {
|
|
239
239
|
id: 'fabric.linking.download_file',
|
|
240
240
|
defaultMessage: 'Download file',
|
|
241
|
-
description: '
|
|
241
|
+
description: 'Label for the download file action in a smart link or card action menu, allowing the user to save the linked file locally.'
|
|
242
242
|
},
|
|
243
243
|
ai_summary_action: {
|
|
244
244
|
id: 'fabric.linking.ai_summary_action',
|
|
245
245
|
defaultMessage: 'Summarize with AI',
|
|
246
|
-
description: '
|
|
246
|
+
description: 'Label for the AI summarize action in a smart link or hover card action menu, allowing the user to generate an AI summary of the linked content.'
|
|
247
247
|
},
|
|
248
248
|
ai_summary_action_description: {
|
|
249
249
|
id: 'fabric.linking.ai_summary_action_description',
|
|
@@ -268,22 +268,22 @@ export const messages = defineMessages({
|
|
|
268
268
|
edit: {
|
|
269
269
|
id: 'fabric.linking.edit',
|
|
270
270
|
defaultMessage: 'Edit',
|
|
271
|
-
description: '
|
|
271
|
+
description: 'Label for the edit action in a smart link or card action menu, allowing the user to modify the linked item.'
|
|
272
272
|
},
|
|
273
273
|
follow: {
|
|
274
274
|
id: 'fabric.linking.follow',
|
|
275
275
|
defaultMessage: 'Follow',
|
|
276
|
-
description: '
|
|
276
|
+
description: 'Label for the follow button on a smart link card, allowing the user to subscribe to updates for the linked project or resource.'
|
|
277
277
|
},
|
|
278
278
|
follow_project_description: {
|
|
279
279
|
id: 'fabric.linking.follow_project_description',
|
|
280
280
|
defaultMessage: 'Follow to get notifications on this project',
|
|
281
|
-
description: '
|
|
281
|
+
description: 'Tooltip or description text for the follow project button, explaining that clicking it enables notifications for the project.'
|
|
282
282
|
},
|
|
283
283
|
follow_project: {
|
|
284
284
|
id: 'fabric.linking.follow_project',
|
|
285
285
|
defaultMessage: 'Follow project',
|
|
286
|
-
description: '
|
|
286
|
+
description: 'Label for the follow project button on a smart link card, allowing the user to subscribe to updates for the linked Atlassian project.'
|
|
287
287
|
},
|
|
288
288
|
follow_project_error: {
|
|
289
289
|
id: 'fabric.linking.follow_project_error',
|
|
@@ -293,12 +293,12 @@ export const messages = defineMessages({
|
|
|
293
293
|
follow_goal_description: {
|
|
294
294
|
id: 'fabric.linking.follow_goal_description',
|
|
295
295
|
defaultMessage: 'Follow this goal to get notifications on updates',
|
|
296
|
-
description: '
|
|
296
|
+
description: 'Tooltip or description text for the follow goal button, explaining that clicking it enables notifications for updates to the goal.'
|
|
297
297
|
},
|
|
298
298
|
follow_goal: {
|
|
299
299
|
id: 'fabric.linking.follow_goal',
|
|
300
300
|
defaultMessage: 'Follow goal',
|
|
301
|
-
description: '
|
|
301
|
+
description: 'Label for the follow goal button on a smart link card, allowing the user to subscribe to updates for the linked Atlas goal.'
|
|
302
302
|
},
|
|
303
303
|
follow_goal_error: {
|
|
304
304
|
id: 'fabric.linking.follow_goal_error',
|
|
@@ -308,7 +308,7 @@ export const messages = defineMessages({
|
|
|
308
308
|
go_back: {
|
|
309
309
|
id: 'fabric.linking.go_back',
|
|
310
310
|
defaultMessage: 'Go back',
|
|
311
|
-
description: '
|
|
311
|
+
description: 'Label for a navigation button that returns the user to the previous step or screen in a modal flow.'
|
|
312
312
|
},
|
|
313
313
|
invalid_permissions: {
|
|
314
314
|
id: 'fabric.linking.invalid_permissions',
|
|
@@ -363,12 +363,12 @@ export const messages = defineMessages({
|
|
|
363
363
|
open_issue_in_jira: {
|
|
364
364
|
id: 'fabric.linking.open_issue_in_jira',
|
|
365
365
|
defaultMessage: 'Open issue in Jira',
|
|
366
|
-
description: '
|
|
366
|
+
description: 'Label for the action button on a smart link card that opens the linked Jira issue in Jira.'
|
|
367
367
|
},
|
|
368
368
|
open_link_in_a_new_tab: {
|
|
369
369
|
id: 'fabric.linking.open_link_in_a_new_tab',
|
|
370
370
|
defaultMessage: 'Open link in a new tab',
|
|
371
|
-
description: '
|
|
371
|
+
description: 'Label for the action button on a smart link card that opens the linked resource in a new browser tab.'
|
|
372
372
|
},
|
|
373
373
|
owned_by: {
|
|
374
374
|
id: 'fabric.linking.owned_by',
|
|
@@ -383,7 +383,7 @@ export const messages = defineMessages({
|
|
|
383
383
|
preview_description: {
|
|
384
384
|
id: 'fabric.linking.preview_description',
|
|
385
385
|
defaultMessage: 'Open a full screen preview of this link',
|
|
386
|
-
description: '
|
|
386
|
+
description: 'Tooltip or description text for the preview action on a smart link card, explaining it opens a full-screen embed preview of the linked content.'
|
|
387
387
|
},
|
|
388
388
|
preview_improved: {
|
|
389
389
|
id: 'fabric.linking.preview_improved',
|
|
@@ -403,7 +403,7 @@ export const messages = defineMessages({
|
|
|
403
403
|
preview_close: {
|
|
404
404
|
id: 'fabric.linking.preview_close',
|
|
405
405
|
defaultMessage: 'Close preview',
|
|
406
|
-
description: '
|
|
406
|
+
description: 'Label for the button that closes the embed preview modal dialog on a smart link card.'
|
|
407
407
|
},
|
|
408
408
|
preview_max_size: {
|
|
409
409
|
id: 'fabric.linking.preview_max_size',
|
|
@@ -418,57 +418,57 @@ export const messages = defineMessages({
|
|
|
418
418
|
priority_blocker: {
|
|
419
419
|
id: 'fabric.linking.priority_blocker',
|
|
420
420
|
defaultMessage: 'Blocker',
|
|
421
|
-
description: '
|
|
421
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Blocker priority.'
|
|
422
422
|
},
|
|
423
423
|
priority_critical: {
|
|
424
424
|
id: 'fabric.linking.priority_critical',
|
|
425
425
|
defaultMessage: 'Critical',
|
|
426
|
-
description: '
|
|
426
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Critical priority.'
|
|
427
427
|
},
|
|
428
428
|
priority_high: {
|
|
429
429
|
id: 'fabric.linking.priority_high',
|
|
430
430
|
defaultMessage: 'High',
|
|
431
|
-
description: '
|
|
431
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has High priority.'
|
|
432
432
|
},
|
|
433
433
|
priority_highest: {
|
|
434
434
|
id: 'fabric.linking.priority_highest',
|
|
435
435
|
defaultMessage: 'Highest',
|
|
436
|
-
description: '
|
|
436
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Highest priority.'
|
|
437
437
|
},
|
|
438
438
|
priority_low: {
|
|
439
439
|
id: 'fabric.linking.priority_low',
|
|
440
440
|
defaultMessage: 'Low',
|
|
441
|
-
description: '
|
|
441
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Low priority.'
|
|
442
442
|
},
|
|
443
443
|
priority_lowest: {
|
|
444
444
|
id: 'fabric.linking.priority_lowest',
|
|
445
445
|
defaultMessage: 'Lowest',
|
|
446
|
-
description: '
|
|
446
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Lowest priority.'
|
|
447
447
|
},
|
|
448
448
|
priority_major: {
|
|
449
449
|
id: 'fabric.linking.priority_major',
|
|
450
450
|
defaultMessage: 'Major',
|
|
451
|
-
description: '
|
|
451
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Major priority.'
|
|
452
452
|
},
|
|
453
453
|
priority_medium: {
|
|
454
454
|
id: 'fabric.linking.priority_medium',
|
|
455
455
|
defaultMessage: 'Medium',
|
|
456
|
-
description: '
|
|
456
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Medium priority.'
|
|
457
457
|
},
|
|
458
458
|
priority_minor: {
|
|
459
459
|
id: 'fabric.linking.priority_minor',
|
|
460
460
|
defaultMessage: 'Minor',
|
|
461
|
-
description: '
|
|
461
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Minor priority.'
|
|
462
462
|
},
|
|
463
463
|
priority_trivial: {
|
|
464
464
|
id: 'fabric.linking.priority_trivial',
|
|
465
465
|
defaultMessage: 'Trivial',
|
|
466
|
-
description: '
|
|
466
|
+
description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Trivial priority.'
|
|
467
467
|
},
|
|
468
468
|
priority_undefined: {
|
|
469
469
|
id: 'fabric.linking.priority_undefined',
|
|
470
470
|
defaultMessage: 'Undefined',
|
|
471
|
-
description: '
|
|
471
|
+
description: 'Label for a priority badge on a Jira issue smart link card when the priority level is not defined or unknown.'
|
|
472
472
|
},
|
|
473
473
|
forbidden_access: {
|
|
474
474
|
id: 'fabric.linking.forbidden_access',
|
|
@@ -483,7 +483,7 @@ export const messages = defineMessages({
|
|
|
483
483
|
read_time: {
|
|
484
484
|
id: 'fabric.linking.read_time',
|
|
485
485
|
defaultMessage: '{context} min read',
|
|
486
|
-
description: '
|
|
486
|
+
description: 'Text shown on a smart link card displaying the estimated reading time. The placeholder {context} is substituted with the number of minutes.'
|
|
487
487
|
},
|
|
488
488
|
restricted_link: {
|
|
489
489
|
id: 'fabric.linking.restricted_link',
|
|
@@ -503,12 +503,12 @@ export const messages = defineMessages({
|
|
|
503
503
|
retry: {
|
|
504
504
|
id: 'fabric.linking.retry',
|
|
505
505
|
defaultMessage: 'Retry',
|
|
506
|
-
description: '
|
|
506
|
+
description: 'Label for a retry button shown on a smart link card after an error, allowing the user to attempt the failed action again.'
|
|
507
507
|
},
|
|
508
508
|
save: {
|
|
509
509
|
id: 'fabric.linking.save',
|
|
510
510
|
defaultMessage: 'Save',
|
|
511
|
-
description:
|
|
511
|
+
description: "Label for a save button on a smart link card or action, confirming and persisting the user's changes."
|
|
512
512
|
},
|
|
513
513
|
sent_on_relative: {
|
|
514
514
|
id: 'fabric.linking.sent_on_relative',
|
|
@@ -538,7 +538,7 @@ export const messages = defineMessages({
|
|
|
538
538
|
try_again: {
|
|
539
539
|
id: 'fabric.linking.try_again',
|
|
540
540
|
defaultMessage: 'Try again',
|
|
541
|
-
description: '
|
|
541
|
+
description: 'Label for a button shown on a smart link error state, prompting the user to retry the failed load or action.'
|
|
542
542
|
},
|
|
543
543
|
try_another_account: {
|
|
544
544
|
id: 'fabric.linking.try_another_account',
|
|
@@ -548,7 +548,7 @@ export const messages = defineMessages({
|
|
|
548
548
|
link_safety_warning_message: {
|
|
549
549
|
id: 'fabric.linking.link_safety_warning_message',
|
|
550
550
|
defaultMessage: 'The link {unsafeLinkText} is taking you to a different site, <a>actual link here</a>',
|
|
551
|
-
description: '
|
|
551
|
+
description: 'Warning message shown in the link safety modal. The placeholder {unsafeLinkText} is substituted with the suspicious link text, and <a> wraps the actual destination URL.'
|
|
552
552
|
},
|
|
553
553
|
unauthorised_account_description: {
|
|
554
554
|
id: 'fabric.linking.unauthorised_account_description',
|
|
@@ -583,17 +583,17 @@ export const messages = defineMessages({
|
|
|
583
583
|
unfollow: {
|
|
584
584
|
id: 'fabric.linking.unfollow',
|
|
585
585
|
defaultMessage: 'Unfollow',
|
|
586
|
-
description: '
|
|
586
|
+
description: 'Label for the unfollow button on a smart link card, allowing the user to stop receiving updates for the linked project or resource.'
|
|
587
587
|
},
|
|
588
588
|
unfollow_project_description: {
|
|
589
589
|
id: 'fabric.linking.unfollow_project_description',
|
|
590
590
|
defaultMessage: 'Unfollow to stop receiving project notifications',
|
|
591
|
-
description: '
|
|
591
|
+
description: 'Tooltip or description for the unfollow project button, explaining that clicking it stops project update notifications.'
|
|
592
592
|
},
|
|
593
593
|
unfollow_project: {
|
|
594
594
|
id: 'fabric.linking.unfollow_project',
|
|
595
595
|
defaultMessage: 'Unfollow project',
|
|
596
|
-
description: '
|
|
596
|
+
description: 'Label for the unfollow project button on a smart link card, allowing the user to stop following the linked Atlassian project.'
|
|
597
597
|
},
|
|
598
598
|
unfollow_project_error: {
|
|
599
599
|
id: 'fabric.linking.unfollow_project_error',
|
|
@@ -603,12 +603,12 @@ export const messages = defineMessages({
|
|
|
603
603
|
unfollow_goal_description: {
|
|
604
604
|
id: 'fabric.linking.unfollow_goal_description',
|
|
605
605
|
defaultMessage: 'Unfollow to stop receiving notifications for this goal',
|
|
606
|
-
description: '
|
|
606
|
+
description: 'Tooltip or description for the unfollow goal button, explaining that clicking it stops notifications for the linked Atlas goal.'
|
|
607
607
|
},
|
|
608
608
|
unfollow_goal: {
|
|
609
609
|
id: 'fabric.linking.unfollow_goal',
|
|
610
610
|
defaultMessage: 'Unfollow goal',
|
|
611
|
-
description: '
|
|
611
|
+
description: 'Label for the unfollow goal button on a smart link card, allowing the user to stop following the linked Atlas goal.'
|
|
612
612
|
},
|
|
613
613
|
unfollow_goal_error: {
|
|
614
614
|
id: 'fabric.linking.unfollow_goal_error',
|
|
@@ -718,7 +718,7 @@ export const messages = defineMessages({
|
|
|
718
718
|
generic_error_message: {
|
|
719
719
|
id: 'fabric.linking.generic_error_message',
|
|
720
720
|
defaultMessage: 'An error occurred',
|
|
721
|
-
description: '
|
|
721
|
+
description: 'Generic error message shown on a smart link card when an unspecified error occurs and no more specific message is available.'
|
|
722
722
|
},
|
|
723
723
|
related_links_modal_title: {
|
|
724
724
|
id: 'fabric.linking.related_links_modal_title',
|
|
@@ -753,12 +753,12 @@ export const messages = defineMessages({
|
|
|
753
753
|
related_links_modal_error_title: {
|
|
754
754
|
id: 'fabric.linking.related_links_modal_error_title',
|
|
755
755
|
defaultMessage: `We're having trouble loading related links`,
|
|
756
|
-
description: '
|
|
756
|
+
description: 'Heading shown in the related links modal when related links fail to load due to a network or server error.'
|
|
757
757
|
},
|
|
758
758
|
related_links_modal_unavailable_title: {
|
|
759
759
|
id: 'fabric.linking.related_links_modal_unavailable_title',
|
|
760
760
|
defaultMessage: `We couldn't find any related links`,
|
|
761
|
-
description: '
|
|
761
|
+
description: 'Heading shown in the related links modal when no related links are available for the current resource.'
|
|
762
762
|
},
|
|
763
763
|
related_links_modal_error_description: {
|
|
764
764
|
id: 'fabric.linking.related_links_modal_error_description',
|
|
@@ -778,7 +778,7 @@ export const messages = defineMessages({
|
|
|
778
778
|
open_issue_in_jiraIssueTermRefresh: {
|
|
779
779
|
id: 'fabric.linking.open_issue_in_jira-issue-term-refresh',
|
|
780
780
|
defaultMessage: 'Open work item in Jira',
|
|
781
|
-
description: '
|
|
781
|
+
description: 'Label for the action button on a smart link card that opens the linked Jira work item in Jira (issue term refresh variant).'
|
|
782
782
|
},
|
|
783
783
|
request_access_to_viewIssueTermRefresh: {
|
|
784
784
|
id: 'fabric.linking.request_access_to_view-issue-term-refresh',
|
|
@@ -793,7 +793,7 @@ export const messages = defineMessages({
|
|
|
793
793
|
team_members_count: {
|
|
794
794
|
id: 'fabric.linking.team_members_count',
|
|
795
795
|
defaultMessage: '{context} members',
|
|
796
|
-
description: '
|
|
796
|
+
description: 'Text shown on a smart link card displaying the number of members in a team. The placeholder {context} is substituted with the member count.'
|
|
797
797
|
},
|
|
798
798
|
user_attributes: {
|
|
799
799
|
id: 'fabric.linking.user_attributes',
|
|
@@ -804,7 +804,7 @@ export const messages = defineMessages({
|
|
|
804
804
|
follow_project_descriptionGalaxia: {
|
|
805
805
|
id: 'fabric.linking.follow_project_description-galaxia',
|
|
806
806
|
defaultMessage: 'Follow to get notifications on this space',
|
|
807
|
-
description: '
|
|
807
|
+
description: 'Tooltip or description for the follow space button (Galaxia variant), explaining that clicking it enables notifications for the Confluence space.'
|
|
808
808
|
},
|
|
809
809
|
follow_project_errorGalaxia: {
|
|
810
810
|
id: 'fabric.linking.follow_project_error-galaxia',
|
|
@@ -814,7 +814,7 @@ export const messages = defineMessages({
|
|
|
814
814
|
unfollow_project_descriptionGalaxia: {
|
|
815
815
|
id: 'fabric.linking.unfollow_project_description-galaxia',
|
|
816
816
|
defaultMessage: 'Unfollow to stop receiving space notifications',
|
|
817
|
-
description: '
|
|
817
|
+
description: 'Tooltip or description for the unfollow space button (Galaxia variant), explaining that clicking it stops notifications for the Confluence space.'
|
|
818
818
|
},
|
|
819
819
|
unfollow_project_errorGalaxia: {
|
|
820
820
|
id: 'fabric.linking.unfollow_project_error-galaxia',
|
|
@@ -1001,6 +1001,16 @@ export const messages = defineMessages({
|
|
|
1001
1001
|
defaultMessage: '<p>Look at this <a>{url}</a> and list any open questions, unresolved decisions, or asks that still need follow‑up. Group them by owner if possible and keep it concise.</p>',
|
|
1002
1002
|
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
|
|
1003
1003
|
},
|
|
1004
|
+
rovo_prompt_button_key_highlights: {
|
|
1005
|
+
id: 'fabric.linking.rovo_prompt_button_find_open_questions.non-final',
|
|
1006
|
+
defaultMessage: `Key highlights`,
|
|
1007
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1008
|
+
},
|
|
1009
|
+
rovo_prompt_message_key_highlights: {
|
|
1010
|
+
id: 'fabric.linking.rovo_prompt_message_find_open_questions.non-final',
|
|
1011
|
+
defaultMessage: '<p>Based on this <a>{url}</a> and the page or ticket I’m currently viewing, highlight the parts of the linked content that are most relevant to this work. Explain briefly why each part is relevant.</p>',
|
|
1012
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
|
|
1013
|
+
},
|
|
1004
1014
|
rovo_chat_action_section_header: {
|
|
1005
1015
|
id: 'fabric.linking.rovo_chat_action_section_header.non-final',
|
|
1006
1016
|
defaultMessage: 'Ask Rovo',
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// Intent-time preload for the LazyCardWithUrlContent chunk; chunk name mirrors `view/CardWithUrl/loader.tsx`.
|
|
2
|
+
export const preloadLazyCardWithUrlContent = () => import( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./view/CardWithUrl/component-lazy/index');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "44.
|
|
5
|
+
packageVersion: "44.4.0" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { ActionName, ElementName, SmartLinkPosition } from '../../../constants';
|
|
9
|
+
import { ActionName, CardDisplay, ElementName, SmartLinkPosition } from '../../../constants';
|
|
10
10
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
11
11
|
import { getExtensionKey } from '../../../state/helpers';
|
|
12
12
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
@@ -64,7 +64,7 @@ const ResolvedView = ({
|
|
|
64
64
|
const prompts = useMemo(() => {
|
|
65
65
|
if (fg('platform_sl_3p_auth_rovo_block_card_kill_switch')) {
|
|
66
66
|
var _cardState$details, _cardState$details$da;
|
|
67
|
-
const defaultPrompts = [RovoChatPromptKey.
|
|
67
|
+
const defaultPrompts = [RovoChatPromptKey.KEY_HIGHLIGHTS];
|
|
68
68
|
const linkType = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : (_cardState$details$da = _cardState$details.data) === null || _cardState$details$da === void 0 ? void 0 : _cardState$details$da['@type'];
|
|
69
69
|
if (extensionKey === 'slack-object-provider') {
|
|
70
70
|
return [RovoChatPromptKey.FIND_OPEN_QUESTIONS, ...defaultPrompts];
|
|
@@ -79,25 +79,32 @@ const ResolvedView = ({
|
|
|
79
79
|
}
|
|
80
80
|
return [];
|
|
81
81
|
}, [cardState === null || cardState === void 0 ? void 0 : (_cardState$details2 = cardState.details) === null || _cardState$details2 === void 0 ? void 0 : _cardState$details2.data, extensionKey]);
|
|
82
|
-
const footerActions = useMemo(() =>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
const footerActions = useMemo(() => {
|
|
83
|
+
if (showRovoResolvedView && fg('platform_sl_3p_auth_rovo_block_card_kill_switch')) {
|
|
84
|
+
return [{
|
|
85
|
+
name: ActionName.RovoChatAction,
|
|
86
|
+
prompts: prompts,
|
|
87
|
+
iconSize: 'small',
|
|
88
|
+
cardAppearance: CardDisplay.Block
|
|
89
|
+
}, {
|
|
90
|
+
name: ActionName.FollowAction,
|
|
91
|
+
iconSize: 'small'
|
|
92
|
+
}, {
|
|
93
|
+
name: ActionName.DownloadAction,
|
|
94
|
+
iconSize: 'small'
|
|
95
|
+
}];
|
|
96
|
+
}
|
|
97
|
+
return [{
|
|
98
|
+
name: ActionName.FollowAction,
|
|
99
|
+
hideIcon: true
|
|
100
|
+
}, {
|
|
101
|
+
name: ActionName.PreviewAction,
|
|
102
|
+
hideIcon: true
|
|
103
|
+
}, {
|
|
104
|
+
name: ActionName.DownloadAction,
|
|
105
|
+
hideIcon: true
|
|
106
|
+
}];
|
|
107
|
+
}, [showRovoResolvedView, prompts]);
|
|
101
108
|
const uiOptions = FlexibleCardUiOptions;
|
|
102
109
|
uiOptions.enableSnippetRenderer = true;
|
|
103
110
|
uiOptions.hideLoadingSkeleton = hideIconLoadingSkeleton;
|
|
@@ -134,6 +141,7 @@ const ResolvedView = ({
|
|
|
134
141
|
}
|
|
135
142
|
})) : null, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
136
143
|
actions: footerActions,
|
|
144
|
+
isPreviewBlockErrored: isPreviewBlockErrored,
|
|
137
145
|
className: ax(["_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq"])
|
|
138
146
|
}));
|
|
139
147
|
};
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.compiled.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._13bowadc button{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._11lv1b66 button{padding-left:var(--ds-space-050,4px)}
|
|
3
4
|
._11lvidpf button{padding-left:0}
|
|
4
5
|
._11lvv77o button{padding-left:var(--ds-space-025,2px)}
|
|
@@ -12,10 +13,13 @@
|
|
|
12
13
|
._1gqnv77o button{padding-bottom:var(--ds-space-025,2px)}
|
|
13
14
|
._1i3bidpf button:active>span{margin-top:0}
|
|
14
15
|
._1l0qidpf button:hover>span{margin-right:0}
|
|
16
|
+
._1q9t1wq8 button{font-weight:var(--ds-font-weight-medium,500)}
|
|
17
|
+
._1rlg1g80 button{flex-wrap:wrap}
|
|
15
18
|
._1vtwidpf button:active>span{margin-left:0}
|
|
16
19
|
._3kh9idpf button:active>span{margin-bottom:0}
|
|
17
20
|
._4wlcidpf button:hover>span{margin-top:0}
|
|
18
21
|
._8pvjidpf button:hover>span{margin-bottom:0}
|
|
22
|
+
._bdn61h6o button{align-content:center}
|
|
19
23
|
._i2vxidpf button:focus>span{margin-bottom:0}
|
|
20
24
|
._ijvwidpf button:focus>span{margin-left:0}
|
|
21
25
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
5
|
+
import { cx } from '@compiled/react';
|
|
5
6
|
import { LoadingButton } from '@atlaskit/button';
|
|
6
7
|
import Button, { IconButton, LinkButton, LinkIconButton } from '@atlaskit/button/new';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
-
import { SmartLinkSize } from '../../../../../../constants';
|
|
10
|
-
import { useFlexibleUiOptionContext } from '../../../../../../state/flexible-ui-context';
|
|
11
|
+
import { ActionName, SmartLinkSize } from '../../../../../../constants';
|
|
12
|
+
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../../state/flexible-ui-context';
|
|
11
13
|
import { withOverrideCss } from '../../../common/with-override-css';
|
|
12
14
|
import { sizeToButtonSpacing } from '../../../utils';
|
|
13
15
|
const IconOnlyLarge = null;
|
|
14
16
|
const SizeSmall = null;
|
|
17
|
+
const styles = {
|
|
18
|
+
textSmall: "_13bowadc _1q9t1wq8 _1rlg1g80 _bdn61h6o"
|
|
19
|
+
};
|
|
15
20
|
const SizeSmallIconOnly = null;
|
|
16
21
|
const SizeSmallNotIconOnly = null;
|
|
17
22
|
const IconButtonAppearanceMap = {
|
|
@@ -49,7 +54,10 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
|
49
54
|
href,
|
|
50
55
|
ariaLabel
|
|
51
56
|
}, ref) => {
|
|
57
|
+
var _context$actions;
|
|
52
58
|
const iconOnly = !content;
|
|
59
|
+
const context = useFlexibleUiContext();
|
|
60
|
+
const isRovoSupported = !!(context !== null && context !== void 0 && (_context$actions = context.actions) !== null && _context$actions !== void 0 && _context$actions[ActionName.RovoChatAction]) && fg('platform_sl_3p_auth_rovo_block_card_kill_switch');
|
|
53
61
|
const onButtonClick = useCallback(handler => e => {
|
|
54
62
|
e.preventDefault();
|
|
55
63
|
handler();
|
|
@@ -124,7 +132,8 @@ const ActionButtonRefresh = /*#__PURE__*/forwardRef(({
|
|
|
124
132
|
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
|
|
125
133
|
return /*#__PURE__*/React.createElement(Box, {
|
|
126
134
|
testId: `${testId}-button-wrapper`,
|
|
127
|
-
ref: ref
|
|
135
|
+
ref: ref,
|
|
136
|
+
xcss: cx(isRovoSupported && size === SmartLinkSize.Small && styles.textSmall)
|
|
128
137
|
}, button);
|
|
129
138
|
});
|
|
130
139
|
const ActionButtonRefreshWithOverrideCss = withOverrideCss(ActionButtonRefresh);
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
7
7
|
._19bvv77o{padding-left:var(--ds-space-025,2px)}
|
|
8
8
|
._1bah1h6o{justify-content:center}
|
|
9
|
-
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
10
9
|
._1bsb1osq{width:100%}
|
|
11
10
|
._1bsb1tcg{width:24px}
|
|
12
11
|
._1e0c116y{display:inline-flex}
|
|
@@ -22,6 +21,5 @@
|
|
|
22
21
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
23
22
|
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
24
23
|
._1ah31i6y:focus-visible{outline-offset:var(--ds-space-negative-025,-2px)}
|
|
25
|
-
._4cvx1v1w:hover{border-color:var(--ds-border-focused,#4688ec)}
|
|
26
24
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
27
25
|
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -15,7 +15,7 @@ import { getPrimitivesInlineSpaceBySize } from '../../../utils';
|
|
|
15
15
|
import ActionIcon from '../action-icon';
|
|
16
16
|
const styles = {
|
|
17
17
|
button: "_bfhksm61 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _1ah31i6y _irr31dpa _1di6fcek",
|
|
18
|
-
pillButton: "_2rko1qi0 _189ee4h9 _1dqonqa1 _1h6d1l7x _kqswh2mm _bfhksm61 _u5f3u2gc _19bvv77o
|
|
18
|
+
pillButton: "_2rko1qi0 _189ee4h9 _1dqonqa1 _1h6d1l7x _kqswh2mm _bfhksm61 _u5f3u2gc _19bvv77o _1bsb1osq _1ah31i6y _irr31dpa _1di6fcek",
|
|
19
19
|
content: "_11c8wadc _syazi7uo",
|
|
20
20
|
pillContent: "_11c8wadc _syazi7uo _o5721q9c",
|
|
21
21
|
spinner: "_1bsb1tcg _4t3i1tcg _1e0c116y _4cvr1h6o _1bah1h6o"
|