@atlaskit/smart-card 44.3.23 → 44.4.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 (76) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  3. package/dist/cjs/messages.js +10 -0
  4. package/dist/cjs/state/hooks/use-rovo-chat/index.js +1 -1
  5. package/dist/cjs/utils/analytics/analytics.js +1 -1
  6. package/dist/cjs/view/BlockCard/views/ResolvedView.js +17 -11
  7. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  8. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +10 -1
  9. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  10. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  11. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  12. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  13. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -26
  14. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +29 -11
  15. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  16. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +25 -7
  17. package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +3 -7
  18. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  19. package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +3 -7
  20. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +4 -7
  21. package/dist/cjs/view/LinkUrl/index.js +1 -1
  22. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  23. package/dist/es2019/messages.js +10 -0
  24. package/dist/es2019/state/hooks/use-rovo-chat/index.js +1 -1
  25. package/dist/es2019/utils/analytics/analytics.js +1 -1
  26. package/dist/es2019/view/BlockCard/views/ResolvedView.js +29 -21
  27. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  28. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  29. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  30. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  31. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  32. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  33. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -28
  34. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +29 -12
  35. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  36. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +22 -8
  37. package/dist/es2019/view/FlexibleCard/components/container/hover-card-control/index.js +3 -7
  38. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +5 -2
  39. package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +3 -7
  40. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +4 -7
  41. package/dist/es2019/view/LinkUrl/index.js +1 -1
  42. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  43. package/dist/esm/messages.js +10 -0
  44. package/dist/esm/state/hooks/use-rovo-chat/index.js +1 -1
  45. package/dist/esm/utils/analytics/analytics.js +1 -1
  46. package/dist/esm/view/BlockCard/views/ResolvedView.js +18 -12
  47. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  48. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  49. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  50. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  51. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  52. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  53. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +42 -27
  54. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +30 -12
  55. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  56. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +26 -8
  57. package/dist/esm/view/FlexibleCard/components/container/hover-card-control/index.js +3 -7
  58. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  59. package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +3 -7
  60. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +4 -7
  61. package/dist/esm/view/LinkUrl/index.js +1 -1
  62. package/dist/types/messages.d.ts +1 -1
  63. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  64. package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  65. package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  66. package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  67. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  68. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  69. package/dist/types-ts4.5/messages.d.ts +1 -1
  70. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  71. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  72. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  73. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  74. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  75. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  76. package/package.json +5 -7
@@ -18,13 +18,16 @@ import DropdownMenu from '@atlaskit/dropdown-menu';
18
18
  import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
19
19
  import { fg } from '@atlaskit/platform-feature-flags';
20
20
  import Tooltip from '@atlaskit/tooltip';
21
- import { ActionName, SmartLinkSize } from '../../../../../constants';
21
+ import { ActionName, CardDisplay, SmartLinkSize } from '../../../../../constants';
22
22
  import { messages } from '../../../../../messages';
23
23
  import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
24
+ import { RovoChatPromptKey } from '../../actions/rovo-chat-action';
24
25
  import { sizeToButtonSpacing } from '../../utils';
25
26
  import { filterActionItems } from '../utils';
26
27
  import ActionGroupItem from './action-group-item';
27
28
  var styles = null;
29
+ var FULL_ACTIONS_SIZE = 450;
30
+ var REDUCED_ACTIONS_SIZE = 360;
28
31
  var renderActionItems = function renderActionItems() {
29
32
  var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
30
33
  var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SmartLinkSize.Medium;
@@ -59,7 +62,9 @@ var ActionGroup = function ActionGroup(_ref) {
59
62
  appearance = _ref.appearance,
60
63
  _ref$visibleButtonsNu = _ref.visibleButtonsNum,
61
64
  visibleButtonsNum = _ref$visibleButtonsNu === void 0 ? 2 : _ref$visibleButtonsNu,
62
- onDropdownOpenChange = _ref.onDropdownOpenChange;
65
+ onDropdownOpenChange = _ref.onDropdownOpenChange,
66
+ _ref$containerWidth = _ref.containerWidth,
67
+ containerWidth = _ref$containerWidth === void 0 ? Infinity : _ref$containerWidth;
63
68
  var context = useFlexibleUiContext();
64
69
  var ui = useFlexibleUiOptionContext();
65
70
  var _useState = useState(false),
@@ -70,7 +75,7 @@ var ActionGroup = function ActionGroup(_ref) {
70
75
  return filterActionItems(items, context);
71
76
  }, [context, items]);
72
77
  var isMoreThenTwoItems = renderableActionItems.length > visibleButtonsNum;
73
- var isRovoActionsEnabled = !!(context !== null && context !== void 0 && (_context$actions = context.actions) !== null && _context$actions !== void 0 && _context$actions[ActionName.RovoChatAction]);
78
+ var isRovoActionsEnabled = !!(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');
74
79
  var onOpenChange = useCallback(function (attrs) {
75
80
  setIsOpen(attrs.isOpen);
76
81
  if (onDropdownOpenChange) {
@@ -85,21 +90,34 @@ var ActionGroup = function ActionGroup(_ref) {
85
90
  }
86
91
  }, [isOpen, onOpenChange]);
87
92
  var actionButtons = useMemo(function () {
88
- if (isRovoActionsEnabled && fg('platform_sl_3p_auth_rovo_block_card_kill_switch')) {
89
- var rovoActions = [].concat(_toConsumableArray(renderableActionItems.slice(0, visibleButtonsNum - 1)), [{
90
- name: ActionName.PreviewAction,
91
- hideContent: true
93
+ if (isRovoActionsEnabled) {
94
+ var rovoActions = [].concat(_toConsumableArray(containerWidth >= REDUCED_ACTIONS_SIZE ? renderableActionItems.slice(0, visibleButtonsNum - 1) : []), [{
95
+ name: ActionName.RovoChatAction,
96
+ prompts: [RovoChatPromptKey.ASK_ROVO_ANYTHING],
97
+ iconSize: 'small',
98
+ cardAppearance: CardDisplay.Block,
99
+ hideContent: containerWidth < FULL_ACTIONS_SIZE && containerWidth >= REDUCED_ACTIONS_SIZE
92
100
  }, {
93
101
  name: ActionName.CopyLinkAction,
94
- hideContent: true
102
+ hideContent: true,
103
+ iconSize: 'small'
104
+ }, {
105
+ name: ActionName.PreviewAction,
106
+ hideContent: true,
107
+ iconSize: 'small'
95
108
  }]);
96
109
  return renderActionItems(rovoActions, size, appearance, false, onActionItemClick);
97
110
  }
98
111
  var actionItems = isMoreThenTwoItems ? renderableActionItems.slice(0, visibleButtonsNum - 1) : renderableActionItems;
99
112
  return renderActionItems(actionItems, size, appearance, false, onActionItemClick);
100
- }, [appearance, isMoreThenTwoItems, onActionItemClick, renderableActionItems, size, visibleButtonsNum, isRovoActionsEnabled]);
113
+ }, [appearance, isMoreThenTwoItems, isRovoActionsEnabled, onActionItemClick, renderableActionItems, size, visibleButtonsNum, containerWidth]);
101
114
  var moreActionDropdown = useMemo(function () {
102
- var actionItems = isMoreThenTwoItems || isRovoActionsEnabled && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? renderableActionItems.slice(visibleButtonsNum - 1) : [];
115
+ var actionItems;
116
+ if (isRovoActionsEnabled && containerWidth < REDUCED_ACTIONS_SIZE) {
117
+ actionItems = renderableActionItems;
118
+ } else {
119
+ actionItems = isMoreThenTwoItems ? renderableActionItems.slice(visibleButtonsNum - 1) : [];
120
+ }
103
121
  if (actionItems.length > 0) {
104
122
  var spacing = sizeToButtonSpacing[size];
105
123
  var moreIcon = /*#__PURE__*/React.createElement(MoreIcon, {
@@ -119,7 +137,7 @@ var ActionGroup = function ActionGroup(_ref) {
119
137
  testId: "action-group-more-button-tooltip",
120
138
  tag: "span"
121
139
  }, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
122
- spacing: spacing,
140
+ spacing: isRovoActionsEnabled && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? size === SmartLinkSize.XLarge ? 'default' : 'compact' : spacing,
123
141
  testId: "action-group-more-button",
124
142
  iconBefore: moreIcon,
125
143
  ref: triggerRef
@@ -132,7 +150,7 @@ var ActionGroup = function ActionGroup(_ref) {
132
150
  }, renderActionItems(actionItems, size, appearance, true, onActionItemClick));
133
151
  }
134
152
  return null;
135
- }, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum, isRovoActionsEnabled]);
153
+ }, [appearance, isMoreThenTwoItems, isOpen, isRovoActionsEnabled, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum, containerWidth]);
136
154
  return renderableActionItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
137
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
138
156
  className: ax(["_1e0c116y _dzc21h6o _1ilq1i6y", "actions-button-group"]),
@@ -1,2 +1,4 @@
1
+ ._1wpz1h6o{align-self:center}
1
2
  ._4t3i1osq{height:100%}
2
- ._c71lxy5q{max-height:var(--ds-space-400,2pc)}
3
+ ._c71lxy5q{max-height:var(--ds-space-400,2pc)}
4
+ ._kqswh2mm{position:relative}
@@ -1,11 +1,13 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
4
  import "./index.compiled.css";
4
5
  import * as React from 'react';
5
6
  import { ax, ix } from "@compiled/react/runtime";
6
- import { useCallback, useMemo } from 'react';
7
+ import { useCallback, useMemo, useState } from 'react';
7
8
  import { browser } from '@atlaskit/linking-common/user-agent';
8
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { WidthObserver } from '@atlaskit/width-detector';
9
11
  import { ActionName, SmartLinkAlignment, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '../../../../../../constants';
10
12
  import { useFlexibleUiContext } from '../../../../../../state/flexible-ui-context';
11
13
  import { Provider } from '../../../elements';
@@ -15,6 +17,8 @@ import ElementGroup from '../../element-group';
15
17
  import { filterActionItems } from '../../utils';
16
18
  var actionGroupStyles = null;
17
19
  var safariStyles = null;
20
+ var providerStyles = null;
21
+ var rovoActionStyles = null;
18
22
  var FooterBlockResolvedView = function FooterBlockResolvedView(props) {
19
23
  var _context$actions;
20
24
  var actions = props.actions,
@@ -22,9 +26,11 @@ var FooterBlockResolvedView = function FooterBlockResolvedView(props) {
22
26
  onActionMenuOpenChange = props.onActionMenuOpenChange,
23
27
  _props$size = props.size,
24
28
  size = _props$size === void 0 ? SmartLinkSize.Medium : _props$size,
25
- hideProvider = props.hideProvider;
29
+ hideProvider = props.hideProvider,
30
+ isPreviewBlockErrored = props.isPreviewBlockErrored;
26
31
  var context = useFlexibleUiContext();
27
- var isRovoSupportedFeature = !!(context !== null && context !== void 0 && (_context$actions = context.actions) !== null && _context$actions !== void 0 && _context$actions[ActionName.RovoChatAction]);
32
+ var isRovoSupportedFeature = !!(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');
33
+ var hasPreview = isRovoSupportedFeature && !!(context !== null && context !== void 0 && context.preview) && !isPreviewBlockErrored;
28
34
  var hasActions = useMemo(function () {
29
35
  var _filterActionItems;
30
36
  return ((_filterActionItems = filterActionItems(actions, context)) === null || _filterActionItems === void 0 ? void 0 : _filterActionItems.length) > 0;
@@ -43,22 +49,34 @@ var FooterBlockResolvedView = function FooterBlockResolvedView(props) {
43
49
  });
44
50
  }
45
51
  }, [onActionMenuOpenChange]);
52
+
53
+ // WidthObserver fires whenever the footer's available width changes.
54
+ var _useState = useState(undefined),
55
+ _useState2 = _slicedToArray(_useState, 2),
56
+ containerWidth = _useState2[0],
57
+ setContainerWidth = _useState2[1];
46
58
  return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
47
59
  testId: "".concat(testId, "-resolved-view")
48
60
  }), !hideProvider && /*#__PURE__*/React.createElement(Provider, {
49
61
  appearance: "subtle",
50
- testId: "".concat(testId, "-provider")
62
+ testId: "".concat(testId, "-provider"),
63
+ hideLabel: hasPreview,
64
+ className: ax([isRovoSupportedFeature && "_1wpz1h6o"])
51
65
  }), actions && hasActions ? /*#__PURE__*/React.createElement(ElementGroup, {
52
66
  testId: "smart-element-group-actions",
53
67
  align: SmartLinkAlignment.Right,
54
68
  direction: SmartLinkDirection.Horizontal,
55
69
  width: SmartLinkWidth.Flexible,
56
- className: ax([size === SmartLinkSize.XLarge && "_c71lxy5q", safari && "_4t3i1osq"])
57
- }, /*#__PURE__*/React.createElement(ActionGroup, {
70
+ className: ax([size === SmartLinkSize.XLarge && "_c71lxy5q", safari && "_4t3i1osq", isRovoSupportedFeature && "_kqswh2mm"])
71
+ }, isRovoSupportedFeature && /*#__PURE__*/React.createElement(WidthObserver, {
72
+ setWidth: setContainerWidth,
73
+ offscreen: true
74
+ }), /*#__PURE__*/React.createElement(ActionGroup, {
58
75
  onDropdownOpenChange: onDropdownOpenChange,
59
76
  items: actions,
60
- appearance: isRovoSupportedFeature && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? 'subtle' : 'default',
61
- size: size
77
+ appearance: isRovoSupportedFeature ? 'subtle' : 'default',
78
+ size: isRovoSupportedFeature ? SmartLinkSize.Small : size,
79
+ containerWidth: isRovoSupportedFeature ? containerWidth : undefined
62
80
  })) : null);
63
81
  };
64
82
  export default FooterBlockResolvedView;
@@ -1,7 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
2
  import React, { useCallback, useEffect, useRef, useState } from 'react';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
3
  import { ElementName } from '../../../../../constants';
6
4
  import { noop } from '../../../../../utils';
7
5
  import { HoverCard } from '../../../../HoverCard';
@@ -63,14 +61,12 @@ var HoverCardControl = function HoverCardControl(_ref) {
63
61
  actionOptions: actionOptions,
64
62
  url: url,
65
63
  hoverPreviewOptions: hoverPreviewOptions
66
- }, /*#__PURE__*/React.createElement("span", _extends({}, fg('platform_sl_a11y_enghealth_46829') ? {
67
- onBlur: noop
68
- } : undefined, {
69
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
64
+ }, /*#__PURE__*/React.createElement("span", {
65
+ onBlur: noop,
70
66
  onMouseLeave: onMouseLeave,
71
67
  onMouseMove: onMouseMove,
72
68
  "data-testid": "".concat(testId, "-hover-card-wrapper"),
73
69
  role: 'presentation'
74
- }), children));
70
+ }, children));
75
71
  };
76
72
  export default HoverCardControl;
@@ -6,6 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  /* eslint-disable @atlaskit/design-system/use-tokens-typography */
7
7
 
8
8
  import React, { forwardRef } from 'react';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box } from '@atlaskit/primitives/compiled';
10
11
  import { IconType } from '../../../../../../constants';
11
12
  import { messages } from '../../../../../../messages';
@@ -76,13 +77,16 @@ var BaseBadgeRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
76
77
  _ref$testId = _ref.testId,
77
78
  testId = _ref$testId === void 0 ? 'smart-element-badge' : _ref$testId,
78
79
  url = _ref.url,
79
- color = _ref.color;
80
+ color = _ref.color,
81
+ _ref$hideLabel = _ref.hideLabel,
82
+ hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel;
80
83
  var ui = useFlexibleUiOptionContext();
81
84
  var formattedMessageOrLabel = getFormattedMessageFromIcon(icon) || label;
82
85
  var badgeIcon = renderAtlaskitIcon(icon, testId) || renderImageIcon(url, testId, ui === null || ui === void 0 ? void 0 : ui.hideLoadingSkeleton);
83
86
  if (!formattedMessageOrLabel || !badgeIcon) {
84
87
  return null;
85
88
  }
89
+ var shouldHideLabel = hideLabel && fg('platform_sl_3p_auth_rovo_block_card_kill_switch');
86
90
  return /*#__PURE__*/React.createElement("span", {
87
91
  "data-smart-element": name,
88
92
  "data-smart-element-badge": true,
@@ -95,7 +99,7 @@ var BaseBadgeRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
95
99
  }, !hideIcon && /*#__PURE__*/React.createElement(Box, {
96
100
  as: "span",
97
101
  xcss: styles.icon
98
- }, badgeIcon), /*#__PURE__*/React.createElement(Box, {
102
+ }, badgeIcon), !shouldHideLabel && /*#__PURE__*/React.createElement(Box, {
99
103
  as: "span",
100
104
  testId: "".concat(testId, "-label"),
101
105
  xcss: styles.text
@@ -1,8 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React, { useCallback } from 'react';
3
2
  import { DropdownItem } from '@atlaskit/dropdown-menu';
4
3
  import Lozenge from '@atlaskit/lozenge';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  var LozengeActionItem = function LozengeActionItem(_ref) {
7
5
  var appearance = _ref.appearance,
8
6
  id = _ref.id,
@@ -21,13 +19,11 @@ var LozengeActionItem = function LozengeActionItem(_ref) {
21
19
  var _e$currentTarget;
22
20
  (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.firstElementChild) === null || _e$currentTarget === void 0 || _e$currentTarget.focus();
23
21
  }, []);
24
- return /*#__PURE__*/React.createElement("span", _extends({}, fg('platform_sl_a11y_enghealth_46829') ? {
25
- onFocus: handleMouseEnter
26
- } : undefined, {
27
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
22
+ return /*#__PURE__*/React.createElement("span", {
23
+ onFocus: handleMouseEnter,
28
24
  onMouseEnter: handleMouseEnter,
29
25
  role: "presentation"
30
- }), /*#__PURE__*/React.createElement(DropdownItem, {
26
+ }, /*#__PURE__*/React.createElement(DropdownItem, {
31
27
  onClick: handleClick,
32
28
  testId: testId
33
29
  }, /*#__PURE__*/React.createElement(Lozenge, {
@@ -239,10 +239,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
239
239
  return /*#__PURE__*/React.createElement("span", {
240
240
  ref: parentSpan
241
241
  }, /*#__PURE__*/React.createElement("span", _extends({}, triggerProps, {
242
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
243
- onMouseOver: initShowCard
244
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
245
- ,
242
+ onMouseOver: initShowCard,
246
243
  onMouseLeave: initHideCard,
247
244
  onMouseMove: setMousePosition,
248
245
  onKeyDown: fg('fix_hover_card_on_focus_a11y') ? handleKeyDown : undefined,
@@ -251,11 +248,11 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
251
248
  "data-testid": HOVER_CARD_TRIGGER_WRAPPER
252
249
  }, editorExperiment('platform_editor_preview_panel_linking_exp', true) ? {
253
250
  className: HOVER_CARD_TRIGGER_WRAPPER
254
- } : {}, fg('platform_sl_a11y_enghealth_46829') ? {
251
+ } : {}, {
255
252
  onFocus: noop,
256
253
  onBlur: noop,
257
- role: 'none'
258
- } : undefined), children));
254
+ role: "none"
255
+ }), children));
259
256
  }, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, handleKeyDown]);
260
257
  var popupComponent = useMemo(
261
258
  // Within the Popup component, if shouldRenderToParent, the zIndex prop is ignored
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "44.3.22",
18
+ packageVersion: "44.3.24",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions';
3
+ export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights';
4
4
  export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey;
5
5
  type Messages = {
6
6
  [K in MessageKey]: MessageDescriptor;
@@ -2,7 +2,7 @@ import type { ReactChild, ReactNode } from 'react';
2
2
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { Appearance } from '@atlaskit/button/types';
4
4
  import type { Space } from '@atlaskit/primitives/compiled';
5
- import type { SmartLinkSize } from '../../../../../constants';
5
+ import type { CardDisplay, SmartLinkSize } from '../../../../../constants';
6
6
  export type ActionMessageAppearance = 'error';
7
7
  export type ActionMessage = {
8
8
  appearance?: ActionMessageAppearance;
@@ -27,6 +27,11 @@ export type ActionProps = {
27
27
  * Used to determine whether the Action is in a Dropdown.
28
28
  */
29
29
  asDropDownItem?: boolean;
30
+ /**
31
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
32
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
33
+ */
34
+ cardAppearance?: CardDisplay;
30
35
  /**
31
36
  * For compiled css
32
37
  */
@@ -6,5 +6,5 @@ import { type ActionGroupProps } from './types';
6
6
  * @param {ActionGroupProps} ActionGroupProps
7
7
  * @see Action
8
8
  */
9
- declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, }: ActionGroupProps) => JSX.Element | null;
9
+ declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, containerWidth, }: ActionGroupProps) => JSX.Element | null;
10
10
  export default ActionGroup;
@@ -6,6 +6,10 @@ export type ActionGroupProps = {
6
6
  * Determines the default appearance of the Action Group.
7
7
  */
8
8
  appearance?: Appearance;
9
+ /**
10
+ * The measured width of the stable footer container (from FooterBlockResolvedView).
11
+ */
12
+ containerWidth?: number;
9
13
  /**
10
14
  * Determines the direction that the actions are rendered. Can be vertical
11
15
  * or horizontal.
@@ -15,6 +15,10 @@ export type FooterBlockProps = {
15
15
  * Allows hiding of the resources provider
16
16
  */
17
17
  hideProvider?: boolean;
18
+ /**
19
+ * Used with RovoActions to determine if the preview block is visible or not
20
+ */
21
+ isPreviewBlockErrored?: boolean;
18
22
  /**
19
23
  * Function to be called when footer action dropdown open state is changed.
20
24
  */
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type Ref } from 'react';
2
2
  import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
3
- import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
3
+ import { type ActionName, type CardDisplay, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
4
4
  import { type ActionProps } from '../actions/action/types';
5
5
  import type { AssignedToGroupElementProps } from '../elements/assigned-to-group-element';
6
6
  import type { BaseAvatarGroupElementProps } from '../elements/common/base-avatar-group-element';
@@ -125,6 +125,11 @@ export type BaseActionItem = {
125
125
  * Used to represent an Action which self-hydrates with data when passing props into Flexible UI.
126
126
  */
127
127
  export type BaseDataActionItem = {
128
+ /**
129
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
130
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
131
+ */
132
+ cardAppearance?: CardDisplay;
128
133
  /**
129
134
  * Determines whether the action should hide the text content of the button.
130
135
  */
@@ -167,7 +172,7 @@ export type BaseDataActionItem = {
167
172
  */
168
173
  export type NamedDataActionItem = BaseDataActionItem & {
169
174
  name: ActionName.FollowAction | ActionName.PreviewAction | ActionName.DownloadAction | ActionName.AutomationAction | ActionName.CopyLinkAction | ActionName.RovoChatAction;
170
- };
175
+ } & Pick<ActionProps, 'iconSize'>;
171
176
  /**
172
177
  * This represents an action that does not fetch data where Icon and Content are provided implicitly.
173
178
  * @example DeleteAction - by default will contain a cross icon with the
@@ -24,6 +24,11 @@ export type BaseBadgeElementProps = ElementProps & {
24
24
  * the image will be rendered directly.
25
25
  */
26
26
  hideIconLoadingSkeleton?: boolean;
27
+ /**
28
+ * Determines whether the badge label should be hidden. When set to true,
29
+ * the badge will be displayed without the label, showing only the icon.
30
+ */
31
+ hideLabel?: boolean;
27
32
  /**
28
33
  * The Atlaskit Icon to display next to the label. If this is not supplied,
29
34
  * then the badge icon will fallback to the URL provided.
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions';
3
+ export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights';
4
4
  export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey;
5
5
  type Messages = {
6
6
  [K in MessageKey]: MessageDescriptor;
@@ -2,7 +2,7 @@ import type { ReactChild, ReactNode } from 'react';
2
2
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { Appearance } from '@atlaskit/button/types';
4
4
  import type { Space } from '@atlaskit/primitives/compiled';
5
- import type { SmartLinkSize } from '../../../../../constants';
5
+ import type { CardDisplay, SmartLinkSize } from '../../../../../constants';
6
6
  export type ActionMessageAppearance = 'error';
7
7
  export type ActionMessage = {
8
8
  appearance?: ActionMessageAppearance;
@@ -27,6 +27,11 @@ export type ActionProps = {
27
27
  * Used to determine whether the Action is in a Dropdown.
28
28
  */
29
29
  asDropDownItem?: boolean;
30
+ /**
31
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
32
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
33
+ */
34
+ cardAppearance?: CardDisplay;
30
35
  /**
31
36
  * For compiled css
32
37
  */
@@ -6,5 +6,5 @@ import { type ActionGroupProps } from './types';
6
6
  * @param {ActionGroupProps} ActionGroupProps
7
7
  * @see Action
8
8
  */
9
- declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, }: ActionGroupProps) => JSX.Element | null;
9
+ declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, containerWidth, }: ActionGroupProps) => JSX.Element | null;
10
10
  export default ActionGroup;
@@ -6,6 +6,10 @@ export type ActionGroupProps = {
6
6
  * Determines the default appearance of the Action Group.
7
7
  */
8
8
  appearance?: Appearance;
9
+ /**
10
+ * The measured width of the stable footer container (from FooterBlockResolvedView).
11
+ */
12
+ containerWidth?: number;
9
13
  /**
10
14
  * Determines the direction that the actions are rendered. Can be vertical
11
15
  * or horizontal.
@@ -15,6 +15,10 @@ export type FooterBlockProps = {
15
15
  * Allows hiding of the resources provider
16
16
  */
17
17
  hideProvider?: boolean;
18
+ /**
19
+ * Used with RovoActions to determine if the preview block is visible or not
20
+ */
21
+ isPreviewBlockErrored?: boolean;
18
22
  /**
19
23
  * Function to be called when footer action dropdown open state is changed.
20
24
  */
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type Ref } from 'react';
2
2
  import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
3
- import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
3
+ import { type ActionName, type CardDisplay, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
4
4
  import { type ActionProps } from '../actions/action/types';
5
5
  import type { AssignedToGroupElementProps } from '../elements/assigned-to-group-element';
6
6
  import type { BaseAvatarGroupElementProps } from '../elements/common/base-avatar-group-element';
@@ -125,6 +125,11 @@ export type BaseActionItem = {
125
125
  * Used to represent an Action which self-hydrates with data when passing props into Flexible UI.
126
126
  */
127
127
  export type BaseDataActionItem = {
128
+ /**
129
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
130
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
131
+ */
132
+ cardAppearance?: CardDisplay;
128
133
  /**
129
134
  * Determines whether the action should hide the text content of the button.
130
135
  */
@@ -167,7 +172,7 @@ export type BaseDataActionItem = {
167
172
  */
168
173
  export type NamedDataActionItem = BaseDataActionItem & {
169
174
  name: ActionName.FollowAction | ActionName.PreviewAction | ActionName.DownloadAction | ActionName.AutomationAction | ActionName.CopyLinkAction | ActionName.RovoChatAction;
170
- };
175
+ } & Pick<ActionProps, 'iconSize'>;
171
176
  /**
172
177
  * This represents an action that does not fetch data where Icon and Content are provided implicitly.
173
178
  * @example DeleteAction - by default will contain a cross icon with the
@@ -24,6 +24,11 @@ export type BaseBadgeElementProps = ElementProps & {
24
24
  * the image will be rendered directly.
25
25
  */
26
26
  hideIconLoadingSkeleton?: boolean;
27
+ /**
28
+ * Determines whether the badge label should be hidden. When set to true,
29
+ * the badge will be displayed without the label, showing only the icon.
30
+ */
31
+ hideLabel?: boolean;
27
32
  /**
28
33
  * The Atlaskit Icon to display next to the label. If this is not supplied,
29
34
  * then the badge icon will fallback to the URL provided.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "44.3.23",
3
+ "version": "44.4.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/lozenge": "^13.8.0",
69
69
  "@atlaskit/menu": "^8.5.0",
70
70
  "@atlaskit/modal-dialog": "^14.18.0",
71
- "@atlaskit/motion": "^6.1.0",
71
+ "@atlaskit/motion": "^6.2.0",
72
72
  "@atlaskit/object": "^1.0.0",
73
73
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
74
74
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -80,15 +80,16 @@
80
80
  "@atlaskit/section-message": "^8.12.0",
81
81
  "@atlaskit/select": "^21.10.0",
82
82
  "@atlaskit/spinner": "^19.1.0",
83
- "@atlaskit/tag": "^14.12.0",
83
+ "@atlaskit/tag": "^14.13.0",
84
84
  "@atlaskit/textarea": "^8.3.0",
85
85
  "@atlaskit/textfield": "^8.3.0",
86
86
  "@atlaskit/theme": "^23.2.0",
87
87
  "@atlaskit/tile": "^1.1.0",
88
- "@atlaskit/tmp-editor-statsig": "^74.0.0",
88
+ "@atlaskit/tmp-editor-statsig": "^74.1.0",
89
89
  "@atlaskit/tokens": "^13.0.0",
90
90
  "@atlaskit/tooltip": "^21.2.0",
91
91
  "@atlaskit/ufo": "^0.4.0",
92
+ "@atlaskit/width-detector": "^5.1.0",
92
93
  "@babel/runtime": "^7.0.0",
93
94
  "@compiled/react": "^0.20.0",
94
95
  "@formatjs/intl-utils": "^3.8.4",
@@ -226,9 +227,6 @@
226
227
  "fix_hover_card_on_focus_a11y": {
227
228
  "type": "boolean"
228
229
  },
229
- "platform_sl_a11y_enghealth_46829": {
230
- "type": "boolean"
231
- },
232
230
  "platform_sl_3p_preauth_better_hovercard_killswitch": {
233
231
  "type": "boolean"
234
232
  },