@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.
Files changed (119) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/analytics.spec.yaml +5 -0
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  5. 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
  6. package/dist/cjs/common/analytics/generated/create-event-payload.js +7 -7
  7. package/dist/cjs/common/analytics/generated/use-analytics-events.js +1 -1
  8. package/dist/cjs/messages.js +59 -49
  9. package/dist/cjs/preloadLazyCardWithUrlContent.js +15 -0
  10. package/dist/cjs/utils/analytics/analytics.js +1 -1
  11. package/dist/cjs/view/BlockCard/views/ResolvedView.js +17 -11
  12. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  13. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +10 -1
  14. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  15. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  16. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
  17. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  18. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  19. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  20. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  21. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -26
  22. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  23. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  24. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  25. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  26. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +29 -11
  27. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  28. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +25 -7
  29. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  30. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  31. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  32. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  33. package/dist/cjs/view/LinkUrl/index.js +1 -1
  34. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  35. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  36. 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
  37. package/dist/es2019/common/analytics/generated/create-event-payload.js +6 -6
  38. package/dist/es2019/common/analytics/generated/use-analytics-events.js +2 -2
  39. package/dist/es2019/messages.js +59 -49
  40. package/dist/es2019/preloadLazyCardWithUrlContent.js +2 -0
  41. package/dist/es2019/utils/analytics/analytics.js +1 -1
  42. package/dist/es2019/view/BlockCard/views/ResolvedView.js +29 -21
  43. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  44. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  45. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  46. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  47. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +21 -10
  48. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  49. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  50. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  51. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  52. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -28
  53. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  54. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  55. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  56. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  57. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +29 -12
  58. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  59. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +22 -8
  60. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  61. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  62. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  63. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +5 -2
  64. package/dist/es2019/view/LinkUrl/index.js +1 -1
  65. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  66. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  67. 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
  68. package/dist/esm/common/analytics/generated/create-event-payload.js +7 -7
  69. package/dist/esm/common/analytics/generated/use-analytics-events.js +1 -1
  70. package/dist/esm/messages.js +59 -49
  71. package/dist/esm/preloadLazyCardWithUrlContent.js +4 -0
  72. package/dist/esm/utils/analytics/analytics.js +1 -1
  73. package/dist/esm/view/BlockCard/views/ResolvedView.js +18 -12
  74. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  75. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  76. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  77. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  78. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
  79. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  80. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  81. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  82. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  83. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +42 -27
  84. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  85. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  86. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  87. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  88. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +30 -12
  89. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  90. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +26 -8
  91. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  92. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  93. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  94. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  95. package/dist/esm/view/LinkUrl/index.js +1 -1
  96. package/dist/types/common/analytics/generated/analytics.types.d.ts +116 -114
  97. package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
  98. package/dist/types/common/analytics/generated/use-analytics-events.d.ts +4 -1
  99. package/dist/types/messages.d.ts +1 -1
  100. package/dist/types/preloadLazyCardWithUrlContent.d.ts +1 -0
  101. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  102. package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  103. package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  104. package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  105. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  106. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  107. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +116 -114
  108. package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
  109. package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +4 -5
  110. package/dist/types-ts4.5/messages.d.ts +1 -1
  111. package/dist/types-ts4.5/preloadLazyCardWithUrlContent.d.ts +1 -0
  112. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  113. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  114. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  115. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  116. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  117. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  118. package/package.json +5 -4
  119. package/preload-lazy-card-with-url-content/package.json +17 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 44.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`71a9831f934b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71a9831f934b6) -
8
+ [ux] Design tweaks for the inline post auth action experiment hovercard
9
+
10
+ ### Patch Changes
11
+
12
+ - [`975109ee06673`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/975109ee06673) -
13
+ Add gated chat component preloading on hover intent. Introduces `preloadChatOnIntent()` in
14
+ `@atlassian/conversation-assistant` (subpath `./preload-chat-on-intent`), invoked from the
15
+ Confluence top-nav and the AI smart button hover handlers. Aligns auto-suggest's live `lazy()`
16
+ boundary with a shared `importAutoSuggest()` factory and exposes `preloadLazyCardWithUrlContent()`
17
+ on `@atlaskit/smart-card`. Behaviour is gated by `chat_preload_components`, runs at most once per
18
+ page load, and is fully non-blocking.
19
+
20
+ ## 44.4.0
21
+
22
+ ### Minor Changes
23
+
24
+ - [`5039083517ce8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5039083517ce8) -
25
+ [ux] NAVX-4533 Updating icons and styling for Block Card 3P Post Auth experiment
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 44.3.24
4
32
 
5
33
  ### Patch Changes
@@ -772,6 +772,11 @@ events:
772
772
  required: false
773
773
  type: ['large', 'small']
774
774
  description: The size of the modal
775
+ - button clicked (dismiss):
776
+ type: ui
777
+ description: fires when a user dismisses a dismissible Smart Link or hover card control.
778
+ attributes:
779
+ <<: [*PackageMetaDataContext, *CommonContext]
775
780
  - button clicked (learnMore):
776
781
  type: ui
777
782
  description:
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f54ddd4636708cd0a4059a713a6a6bf3d0402d68a5aa2a69b7c430aa659fe8ef
3
+ size 25593
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:64a45081f856f48de6a315f9b12747d543b2b83106d1faa7b36089de8c7f04c1
3
- size 36891
2
+ oid sha256:58befa1fbc873aa0672a8e0a3cebe1903406324b6b86d9e1e331adf2237ca1c1
3
+ size 36884
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f16d2f260c508d20c49ca84a31b73ef9232cf7ae4b4ac0a8b5e3abaf946888eb
3
- size 29353
2
+ oid sha256:3653660b252b46503f72959451e6cc6b9b34c5e6fb2aef765e8c59f1f7ff14e3
3
+ size 29363
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::f914fb83fac56e7154ef460866628f7d>>
14
+ * @codegen <<SignedSource::268e746266cde1271e40a794eb774cf3>>
15
15
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
16
16
  */
17
17
 
@@ -20,12 +20,12 @@ var createEventPayload = function createEventPayload(eventKey) {
20
20
  _ref[_key - 1] = arguments[_key];
21
21
  }
22
22
  var attributes = _ref[0];
23
- var _eventKey$split = eventKey.split('.'),
24
- _eventKey$split2 = (0, _slicedToArray2.default)(_eventKey$split, 4),
25
- eventType = _eventKey$split2[0],
26
- actionSubject = _eventKey$split2[1],
27
- action = _eventKey$split2[2],
28
- actionSubjectId = _eventKey$split2[3];
23
+ var _ref2 = eventKey.split('.'),
24
+ _ref3 = (0, _slicedToArray2.default)(_ref2, 4),
25
+ eventType = _ref3[0],
26
+ actionSubject = _ref3[1],
27
+ action = _ref3[2],
28
+ actionSubjectId = _ref3[3];
29
29
  if (eventType === 'screen') {
30
30
  return {
31
31
  eventType: eventType,
@@ -14,7 +14,7 @@ var _createEventPayload = _interopRequireDefault(require("./create-event-payload
14
14
  *
15
15
  * Generates Typescript types for analytics events from analytics.spec.yaml
16
16
  *
17
- * @codegen <<SignedSource::676f76a2e45920437adc8c35a9af8b37>>
17
+ * @codegen <<SignedSource::ac0d75fa9e8d43c947e88f47ba1267aa>>
18
18
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
19
19
  */
20
20
 
@@ -109,7 +109,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
109
109
  beta: {
110
110
  id: 'fabric.linking.beta',
111
111
  defaultMessage: 'Beta',
112
- description: 'Indicates a beta phase of the feature.'
112
+ description: 'Text shown in a lozenge badge on a smart link or card to indicate the feature is currently in beta.'
113
113
  },
114
114
  cannot_connect: {
115
115
  id: 'fabric.linking.cannot_connect',
@@ -134,12 +134,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
134
134
  close: {
135
135
  id: 'fabric.linking.close',
136
136
  defaultMessage: 'Close',
137
- description: 'Close the current screen or modal.'
137
+ description: 'Label for a button or icon that closes the currently open modal dialog or overlay screen.'
138
138
  },
139
139
  check_this_link: {
140
140
  id: 'fabric.linking.check_this_link',
141
141
  defaultMessage: 'Check this link',
142
- description: 'Link safety warning modal header'
142
+ description: 'Heading shown at the top of the link safety warning modal, prompting the user to verify a potentially unsafe link before proceeding.'
143
143
  },
144
144
  compass_applied_components_count: {
145
145
  id: 'compass.applied_components_count.non-final',
@@ -194,7 +194,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
194
194
  continue: {
195
195
  id: 'fabric.linking.continue',
196
196
  defaultMessage: 'Continue',
197
- description: 'Continue to the next step.'
197
+ description: 'Label for a button that advances the user to the next step, e.g. in the link safety warning modal flow.'
198
198
  },
199
199
  copy_url_to_clipboard: {
200
200
  id: 'fabric.linking.copy_url_to_clipboard',
@@ -204,7 +204,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
204
204
  copied_url_to_clipboard: {
205
205
  id: 'fabric.linking.copied_url_to_clipboard',
206
206
  defaultMessage: 'Copied!',
207
- description: 'Url has been copied to the clipboard'
207
+ description: 'Confirmation text shown briefly after the user copies a URL to the clipboard using the copy link action.'
208
208
  },
209
209
  could_not_load_link: {
210
210
  id: 'fabric.linking.couldnt_load_link',
@@ -229,27 +229,27 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
229
229
  delete: {
230
230
  id: 'fabric.linking.delete',
231
231
  defaultMessage: 'Delete',
232
- description: 'Allow a user to delete a link'
232
+ description: 'Label for the delete action in a smart link or card action menu, allowing the user to remove the linked item.'
233
233
  },
234
234
  download: {
235
235
  id: 'fabric.linking.download',
236
236
  defaultMessage: 'Download',
237
- description: 'Action to download the resource.'
237
+ description: 'Label for the download action in a smart link or card action menu, initiating a file download.'
238
238
  },
239
239
  download_description: {
240
240
  id: 'fabric.linking.download_description',
241
241
  defaultMessage: 'Download this file into your local storage',
242
- description: 'Description on what Download does'
242
+ description: "Tooltip or description text for the download action, explaining it saves the file to the user's local storage."
243
243
  },
244
244
  download_file: {
245
245
  id: 'fabric.linking.download_file',
246
246
  defaultMessage: 'Download file',
247
- description: 'Allow a user to download a file'
247
+ description: 'Label for the download file action in a smart link or card action menu, allowing the user to save the linked file locally.'
248
248
  },
249
249
  ai_summary_action: {
250
250
  id: 'fabric.linking.ai_summary_action',
251
251
  defaultMessage: 'Summarize with AI',
252
- description: 'Allow a user to summarize a link'
252
+ 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.'
253
253
  },
254
254
  ai_summary_action_description: {
255
255
  id: 'fabric.linking.ai_summary_action_description',
@@ -274,22 +274,22 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
274
274
  edit: {
275
275
  id: 'fabric.linking.edit',
276
276
  defaultMessage: 'Edit',
277
- description: 'Allow a user to edit a link'
277
+ description: 'Label for the edit action in a smart link or card action menu, allowing the user to modify the linked item.'
278
278
  },
279
279
  follow: {
280
280
  id: 'fabric.linking.follow',
281
281
  defaultMessage: 'Follow',
282
- description: 'Click to follow a project.'
282
+ description: 'Label for the follow button on a smart link card, allowing the user to subscribe to updates for the linked project or resource.'
283
283
  },
284
284
  follow_project_description: {
285
285
  id: 'fabric.linking.follow_project_description',
286
286
  defaultMessage: 'Follow to get notifications on this project',
287
- description: 'Description on what Follow does'
287
+ description: 'Tooltip or description text for the follow project button, explaining that clicking it enables notifications for the project.'
288
288
  },
289
289
  follow_project: {
290
290
  id: 'fabric.linking.follow_project',
291
291
  defaultMessage: 'Follow project',
292
- description: 'Click to follow a project.'
292
+ description: 'Label for the follow project button on a smart link card, allowing the user to subscribe to updates for the linked Atlassian project.'
293
293
  },
294
294
  follow_project_error: {
295
295
  id: 'fabric.linking.follow_project_error',
@@ -299,12 +299,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
299
299
  follow_goal_description: {
300
300
  id: 'fabric.linking.follow_goal_description',
301
301
  defaultMessage: 'Follow this goal to get notifications on updates',
302
- description: 'Description on what Follow does'
302
+ description: 'Tooltip or description text for the follow goal button, explaining that clicking it enables notifications for updates to the goal.'
303
303
  },
304
304
  follow_goal: {
305
305
  id: 'fabric.linking.follow_goal',
306
306
  defaultMessage: 'Follow goal',
307
- description: 'Click to follow a project.'
307
+ description: 'Label for the follow goal button on a smart link card, allowing the user to subscribe to updates for the linked Atlas goal.'
308
308
  },
309
309
  follow_goal_error: {
310
310
  id: 'fabric.linking.follow_goal_error',
@@ -314,7 +314,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
314
314
  go_back: {
315
315
  id: 'fabric.linking.go_back',
316
316
  defaultMessage: 'Go back',
317
- description: 'go back'
317
+ description: 'Label for a navigation button that returns the user to the previous step or screen in a modal flow.'
318
318
  },
319
319
  invalid_permissions: {
320
320
  id: 'fabric.linking.invalid_permissions',
@@ -369,12 +369,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
369
369
  open_issue_in_jira: {
370
370
  id: 'fabric.linking.open_issue_in_jira',
371
371
  defaultMessage: 'Open issue in Jira',
372
- description: 'Click to open link in Jira'
372
+ description: 'Label for the action button on a smart link card that opens the linked Jira issue in Jira.'
373
373
  },
374
374
  open_link_in_a_new_tab: {
375
375
  id: 'fabric.linking.open_link_in_a_new_tab',
376
376
  defaultMessage: 'Open link in a new tab',
377
- description: 'Click to open link in a new tab'
377
+ description: 'Label for the action button on a smart link card that opens the linked resource in a new browser tab.'
378
378
  },
379
379
  owned_by: {
380
380
  id: 'fabric.linking.owned_by',
@@ -389,7 +389,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
389
389
  preview_description: {
390
390
  id: 'fabric.linking.preview_description',
391
391
  defaultMessage: 'Open a full screen preview of this link',
392
- description: 'Description on what Preview does'
392
+ 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.'
393
393
  },
394
394
  preview_improved: {
395
395
  id: 'fabric.linking.preview_improved',
@@ -409,7 +409,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
409
409
  preview_close: {
410
410
  id: 'fabric.linking.preview_close',
411
411
  defaultMessage: 'Close preview',
412
- description: 'Click to close embed preview modal.'
412
+ description: 'Label for the button that closes the embed preview modal dialog on a smart link card.'
413
413
  },
414
414
  preview_max_size: {
415
415
  id: 'fabric.linking.preview_max_size',
@@ -424,57 +424,57 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
424
424
  priority_blocker: {
425
425
  id: 'fabric.linking.priority_blocker',
426
426
  defaultMessage: 'Blocker',
427
- description: 'Indicated priority as blocker'
427
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Blocker priority.'
428
428
  },
429
429
  priority_critical: {
430
430
  id: 'fabric.linking.priority_critical',
431
431
  defaultMessage: 'Critical',
432
- description: 'Indicated priority as critical'
432
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Critical priority.'
433
433
  },
434
434
  priority_high: {
435
435
  id: 'fabric.linking.priority_high',
436
436
  defaultMessage: 'High',
437
- description: 'Indicated priority as high'
437
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has High priority.'
438
438
  },
439
439
  priority_highest: {
440
440
  id: 'fabric.linking.priority_highest',
441
441
  defaultMessage: 'Highest',
442
- description: 'Indicated priority as highest'
442
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Highest priority.'
443
443
  },
444
444
  priority_low: {
445
445
  id: 'fabric.linking.priority_low',
446
446
  defaultMessage: 'Low',
447
- description: 'Indicated priority as low'
447
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Low priority.'
448
448
  },
449
449
  priority_lowest: {
450
450
  id: 'fabric.linking.priority_lowest',
451
451
  defaultMessage: 'Lowest',
452
- description: 'Indicated priority as lowest'
452
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Lowest priority.'
453
453
  },
454
454
  priority_major: {
455
455
  id: 'fabric.linking.priority_major',
456
456
  defaultMessage: 'Major',
457
- description: 'Indicated priority as major'
457
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Major priority.'
458
458
  },
459
459
  priority_medium: {
460
460
  id: 'fabric.linking.priority_medium',
461
461
  defaultMessage: 'Medium',
462
- description: 'Indicated priority as medium'
462
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Medium priority.'
463
463
  },
464
464
  priority_minor: {
465
465
  id: 'fabric.linking.priority_minor',
466
466
  defaultMessage: 'Minor',
467
- description: 'Indicated priority as minor'
467
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Minor priority.'
468
468
  },
469
469
  priority_trivial: {
470
470
  id: 'fabric.linking.priority_trivial',
471
471
  defaultMessage: 'Trivial',
472
- description: 'Indicated priority as trivial'
472
+ description: 'Label for a priority badge on a Jira issue smart link card indicating the issue has Trivial priority.'
473
473
  },
474
474
  priority_undefined: {
475
475
  id: 'fabric.linking.priority_undefined',
476
476
  defaultMessage: 'Undefined',
477
- description: 'Indicated priority as unknown'
477
+ description: 'Label for a priority badge on a Jira issue smart link card when the priority level is not defined or unknown.'
478
478
  },
479
479
  forbidden_access: {
480
480
  id: 'fabric.linking.forbidden_access',
@@ -489,7 +489,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
489
489
  read_time: {
490
490
  id: 'fabric.linking.read_time',
491
491
  defaultMessage: '{context} min read',
492
- description: 'Estimated time to read this resource'
492
+ description: 'Text shown on a smart link card displaying the estimated reading time. The placeholder {context} is substituted with the number of minutes.'
493
493
  },
494
494
  restricted_link: {
495
495
  id: 'fabric.linking.restricted_link',
@@ -509,12 +509,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
509
509
  retry: {
510
510
  id: 'fabric.linking.retry',
511
511
  defaultMessage: 'Retry',
512
- description: 'Allows user to perform an action again'
512
+ description: 'Label for a retry button shown on a smart link card after an error, allowing the user to attempt the failed action again.'
513
513
  },
514
514
  save: {
515
515
  id: 'fabric.linking.save',
516
516
  defaultMessage: 'Save',
517
- description: 'Just the "save" word'
517
+ description: "Label for a save button on a smart link card or action, confirming and persisting the user's changes."
518
518
  },
519
519
  sent_on_relative: {
520
520
  id: 'fabric.linking.sent_on_relative',
@@ -544,7 +544,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
544
544
  try_again: {
545
545
  id: 'fabric.linking.try_again',
546
546
  defaultMessage: 'Try again',
547
- description: 'Allow the user to try an action again'
547
+ description: 'Label for a button shown on a smart link error state, prompting the user to retry the failed load or action.'
548
548
  },
549
549
  try_another_account: {
550
550
  id: 'fabric.linking.try_another_account',
@@ -554,7 +554,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
554
554
  link_safety_warning_message: {
555
555
  id: 'fabric.linking.link_safety_warning_message',
556
556
  defaultMessage: 'The link {unsafeLinkText} is taking you to a different site, <a>actual link here</a>',
557
- description: 'Link safety check warning message'
557
+ 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.'
558
558
  },
559
559
  unauthorised_account_description: {
560
560
  id: 'fabric.linking.unauthorised_account_description',
@@ -589,17 +589,17 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
589
589
  unfollow: {
590
590
  id: 'fabric.linking.unfollow',
591
591
  defaultMessage: 'Unfollow',
592
- description: 'Click to unfollow a project.'
592
+ description: 'Label for the unfollow button on a smart link card, allowing the user to stop receiving updates for the linked project or resource.'
593
593
  },
594
594
  unfollow_project_description: {
595
595
  id: 'fabric.linking.unfollow_project_description',
596
596
  defaultMessage: 'Unfollow to stop receiving project notifications',
597
- description: 'Description on what Unfollow does'
597
+ description: 'Tooltip or description for the unfollow project button, explaining that clicking it stops project update notifications.'
598
598
  },
599
599
  unfollow_project: {
600
600
  id: 'fabric.linking.unfollow_project',
601
601
  defaultMessage: 'Unfollow project',
602
- description: 'Click to unfollow a project.'
602
+ description: 'Label for the unfollow project button on a smart link card, allowing the user to stop following the linked Atlassian project.'
603
603
  },
604
604
  unfollow_project_error: {
605
605
  id: 'fabric.linking.unfollow_project_error',
@@ -609,12 +609,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
609
609
  unfollow_goal_description: {
610
610
  id: 'fabric.linking.unfollow_goal_description',
611
611
  defaultMessage: 'Unfollow to stop receiving notifications for this goal',
612
- description: 'Description on what Unfollow does'
612
+ description: 'Tooltip or description for the unfollow goal button, explaining that clicking it stops notifications for the linked Atlas goal.'
613
613
  },
614
614
  unfollow_goal: {
615
615
  id: 'fabric.linking.unfollow_goal',
616
616
  defaultMessage: 'Unfollow goal',
617
- description: 'Click to unfollow a project.'
617
+ description: 'Label for the unfollow goal button on a smart link card, allowing the user to stop following the linked Atlas goal.'
618
618
  },
619
619
  unfollow_goal_error: {
620
620
  id: 'fabric.linking.unfollow_goal_error',
@@ -724,7 +724,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
724
724
  generic_error_message: {
725
725
  id: 'fabric.linking.generic_error_message',
726
726
  defaultMessage: 'An error occurred',
727
- description: 'A generic error message to the user'
727
+ description: 'Generic error message shown on a smart link card when an unspecified error occurs and no more specific message is available.'
728
728
  },
729
729
  related_links_modal_title: {
730
730
  id: 'fabric.linking.related_links_modal_title',
@@ -759,12 +759,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
759
759
  related_links_modal_error_title: {
760
760
  id: 'fabric.linking.related_links_modal_error_title',
761
761
  defaultMessage: "We're having trouble loading related links",
762
- description: 'Title for related links error'
762
+ description: 'Heading shown in the related links modal when related links fail to load due to a network or server error.'
763
763
  },
764
764
  related_links_modal_unavailable_title: {
765
765
  id: 'fabric.linking.related_links_modal_unavailable_title',
766
766
  defaultMessage: "We couldn't find any related links",
767
- description: 'Title for related links error'
767
+ description: 'Heading shown in the related links modal when no related links are available for the current resource.'
768
768
  },
769
769
  related_links_modal_error_description: {
770
770
  id: 'fabric.linking.related_links_modal_error_description',
@@ -784,7 +784,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
784
784
  open_issue_in_jiraIssueTermRefresh: {
785
785
  id: 'fabric.linking.open_issue_in_jira-issue-term-refresh',
786
786
  defaultMessage: 'Open work item in Jira',
787
- description: 'Click to open link in Jira'
787
+ description: 'Label for the action button on a smart link card that opens the linked Jira work item in Jira (issue term refresh variant).'
788
788
  },
789
789
  request_access_to_viewIssueTermRefresh: {
790
790
  id: 'fabric.linking.request_access_to_view-issue-term-refresh',
@@ -799,7 +799,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
799
799
  team_members_count: {
800
800
  id: 'fabric.linking.team_members_count',
801
801
  defaultMessage: '{context} members',
802
- description: 'Indicates the count of team member'
802
+ 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.'
803
803
  },
804
804
  user_attributes: {
805
805
  id: 'fabric.linking.user_attributes',
@@ -810,7 +810,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
810
810
  follow_project_descriptionGalaxia: {
811
811
  id: 'fabric.linking.follow_project_description-galaxia',
812
812
  defaultMessage: 'Follow to get notifications on this space',
813
- description: 'Description on what Follow does'
813
+ description: 'Tooltip or description for the follow space button (Galaxia variant), explaining that clicking it enables notifications for the Confluence space.'
814
814
  },
815
815
  follow_project_errorGalaxia: {
816
816
  id: 'fabric.linking.follow_project_error-galaxia',
@@ -820,7 +820,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
820
820
  unfollow_project_descriptionGalaxia: {
821
821
  id: 'fabric.linking.unfollow_project_description-galaxia',
822
822
  defaultMessage: 'Unfollow to stop receiving space notifications',
823
- description: 'Description on what Unfollow does'
823
+ description: 'Tooltip or description for the unfollow space button (Galaxia variant), explaining that clicking it stops notifications for the Confluence space.'
824
824
  },
825
825
  unfollow_project_errorGalaxia: {
826
826
  id: 'fabric.linking.unfollow_project_error-galaxia',
@@ -1007,6 +1007,16 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
1007
1007
  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>',
1008
1008
  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.)'
1009
1009
  },
1010
+ rovo_prompt_button_key_highlights: {
1011
+ id: 'fabric.linking.rovo_prompt_button_find_open_questions.non-final',
1012
+ defaultMessage: "Key highlights",
1013
+ description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1014
+ },
1015
+ rovo_prompt_message_key_highlights: {
1016
+ id: 'fabric.linking.rovo_prompt_message_find_open_questions.non-final',
1017
+ 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>',
1018
+ 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.)'
1019
+ },
1010
1020
  rovo_chat_action_section_header: {
1011
1021
  id: 'fabric.linking.rovo_chat_action_section_header.non-final',
1012
1022
  defaultMessage: 'Ask Rovo',
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.preloadLazyCardWithUrlContent = void 0;
8
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
10
+ // Intent-time preload for the LazyCardWithUrlContent chunk; chunk name mirrors `view/CardWithUrl/loader.tsx`.
11
+ var preloadLazyCardWithUrlContent = exports.preloadLazyCardWithUrlContent = function preloadLazyCardWithUrlContent() {
12
+ return Promise.resolve().then(function () {
13
+ return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./view/CardWithUrl/component-lazy/index'));
14
+ });
15
+ };
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card" || '',
14
- packageVersion: "44.3.23" || ''
14
+ packageVersion: "44.4.0" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -80,7 +80,7 @@ var ResolvedView = function ResolvedView(_ref) {
80
80
  var prompts = (0, _react.useMemo)(function () {
81
81
  if ((0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch')) {
82
82
  var _cardState$details;
83
- var defaultPrompts = [_rovoChatAction.RovoChatPromptKey.HIGHLIGHT_RELEVANT_CONTENT, _rovoChatAction.RovoChatPromptKey.ASK_ROVO_ANYTHING];
83
+ var defaultPrompts = [_rovoChatAction.RovoChatPromptKey.KEY_HIGHLIGHTS];
84
84
  var linkType = (_cardState$details = cardState.details) === null || _cardState$details === void 0 || (_cardState$details = _cardState$details.data) === null || _cardState$details === void 0 ? void 0 : _cardState$details['@type'];
85
85
  if (extensionKey === 'slack-object-provider') {
86
86
  return [_rovoChatAction.RovoChatPromptKey.FIND_OPEN_QUESTIONS].concat(defaultPrompts);
@@ -96,16 +96,21 @@ var ResolvedView = function ResolvedView(_ref) {
96
96
  return [];
97
97
  }, [cardState === null || cardState === void 0 || (_cardState$details2 = cardState.details) === null || _cardState$details2 === void 0 ? void 0 : _cardState$details2.data, extensionKey]);
98
98
  var footerActions = (0, _react.useMemo)(function () {
99
- return showRovoResolvedView && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? [{
100
- name: _constants.ActionName.RovoChatAction,
101
- prompts: prompts
102
- }, {
103
- name: _constants.ActionName.FollowAction,
104
- hideIcon: true
105
- }, {
106
- name: _constants.ActionName.DownloadAction,
107
- hideIcon: true
108
- }] : [{
99
+ if (showRovoResolvedView && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch')) {
100
+ return [{
101
+ name: _constants.ActionName.RovoChatAction,
102
+ prompts: prompts,
103
+ iconSize: 'small',
104
+ cardAppearance: _constants.CardDisplay.Block
105
+ }, {
106
+ name: _constants.ActionName.FollowAction,
107
+ iconSize: 'small'
108
+ }, {
109
+ name: _constants.ActionName.DownloadAction,
110
+ iconSize: 'small'
111
+ }];
112
+ }
113
+ return [{
109
114
  name: _constants.ActionName.FollowAction,
110
115
  hideIcon: true
111
116
  }, {
@@ -152,6 +157,7 @@ var ResolvedView = function ResolvedView(_ref) {
152
157
  }
153
158
  })) : null, /*#__PURE__*/React.createElement(_blocks.FooterBlock, {
154
159
  actions: footerActions,
160
+ isPreviewBlockErrored: isPreviewBlockErrored,
155
161
  className: (0, _runtime.ax)(["_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq"])
156
162
  }));
157
163
  };
@@ -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)}
@@ -10,8 +10,10 @@ exports.default = void 0;
10
10
  require("./index.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
+ var _react2 = require("@compiled/react");
13
14
  var _button = require("@atlaskit/button");
14
15
  var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
17
  var _compiled = require("@atlaskit/primitives/compiled");
16
18
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
17
19
  var _constants = require("../../../../../../constants");
@@ -21,6 +23,9 @@ var _utils = require("../../../utils");
21
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
24
  var IconOnlyLarge = null;
23
25
  var SizeSmall = null;
26
+ var styles = {
27
+ textSmall: "_13bowadc _1q9t1wq8 _1rlg1g80 _bdn61h6o"
28
+ };
24
29
  var SizeSmallIconOnly = null;
25
30
  var SizeSmallNotIconOnly = null;
26
31
  var IconButtonAppearanceMap = {
@@ -45,6 +50,7 @@ var tooltipOptions = {
45
50
  hideTooltipOnClick: true
46
51
  };
47
52
  var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
53
+ var _context$actions;
48
54
  var _ref$appearance = _ref.appearance,
49
55
  appearance = _ref$appearance === void 0 ? 'default' : _ref$appearance,
50
56
  content = _ref.content,
@@ -59,6 +65,8 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
59
65
  href = _ref.href,
60
66
  ariaLabel = _ref.ariaLabel;
61
67
  var iconOnly = !content;
68
+ var context = (0, _flexibleUiContext.useFlexibleUiContext)();
69
+ var isRovoSupported = !!(context !== null && context !== void 0 && (_context$actions = context.actions) !== null && _context$actions !== void 0 && _context$actions[_constants.ActionName.RovoChatAction]) && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch');
62
70
  var onButtonClick = (0, _react.useCallback)(function (handler) {
63
71
  return function (e) {
64
72
  e.preventDefault();
@@ -141,7 +149,8 @@ var ActionButtonRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
141
149
  }, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
142
150
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
143
151
  testId: "".concat(testId, "-button-wrapper"),
144
- ref: ref
152
+ ref: ref,
153
+ xcss: (0, _react2.cx)(isRovoSupported && size === _constants.SmartLinkSize.Small && styles.textSmall)
145
154
  }, button);
146
155
  });
147
156
  var ActionButtonRefreshWithOverrideCss = (0, _withOverrideCss.withOverrideCss)(ActionButtonRefresh);