@atlaskit/smart-card 44.3.21 → 44.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/cjs/messages.js +20 -0
- package/dist/cjs/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/assets/rovo-hex-logo.js +64 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +11 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +24 -5
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +69 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +15 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +44 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +30 -5
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/es2019/messages.js +20 -0
- package/dist/es2019/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/assets/rovo-hex-logo.js +52 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +11 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +24 -5
- package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +69 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +15 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +36 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +30 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
- package/dist/esm/messages.js +20 -0
- package/dist/esm/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/assets/rovo-hex-logo.js +57 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +11 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +24 -5
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +69 -2
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +15 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +35 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +30 -5
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/blog-icon.d.ts +5 -2
- package/dist/types/common/ui/icons/live-document-icon.d.ts +5 -2
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/FlexibleCard/assets/rovo-hex-logo.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +4 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +12 -0
- package/dist/types-ts4.5/common/ui/icons/blog-icon.d.ts +5 -2
- package/dist/types-ts4.5/common/ui/icons/live-document-icon.d.ts +5 -2
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/assets/rovo-hex-logo.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +4 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +12 -0
- package/package.json +4 -4
|
@@ -9,6 +9,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
import React, { useCallback, useMemo } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import AiGenerativeTextIcon from '@atlaskit/icon-lab/core/ai-generative-text';
|
|
12
|
+
import AiSearchIcon from '@atlaskit/icon-lab/core/ai-search';
|
|
13
|
+
import AiGenerativeTextSummaryIcon from '@atlaskit/icon/core/ai-generative-text-summary';
|
|
14
|
+
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
12
15
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
13
16
|
import { ActionName } from '../../../../../constants';
|
|
14
17
|
import { messages } from '../../../../../messages';
|
|
@@ -31,12 +34,15 @@ export var RovoChatPromptKey = /*#__PURE__*/function (RovoChatPromptKey) {
|
|
|
31
34
|
RovoChatPromptKey["IDENTIFY_KEY_TRENDS"] = "identify-key-trends";
|
|
32
35
|
RovoChatPromptKey["FIND_OPEN_QUESTIONS"] = "find-open-questions";
|
|
33
36
|
RovoChatPromptKey["HIGHLIGHT_RELEVANT_CONTENT"] = "highlight-relevant-content";
|
|
37
|
+
RovoChatPromptKey["SUMMARIZE_THIS_FOR_ME"] = "summarize-this-for-me";
|
|
38
|
+
RovoChatPromptKey["ASK_A_SPECIFIC_QUESTION"] = "ask-a-specific-question";
|
|
39
|
+
RovoChatPromptKey["SHOW_ME_WHATS_RELEVANT"] = "show-me-whats-relevant";
|
|
34
40
|
return RovoChatPromptKey;
|
|
35
41
|
}({});
|
|
36
42
|
var GOOGLE_PROMPTS = [RovoChatPromptKey.RECOMMEND_OTHER_SOURCES, RovoChatPromptKey.SHOW_OTHER_MENTIONS, RovoChatPromptKey.SUGGEST_IMPROVEMENT];
|
|
37
43
|
var GENERIC_3P_PROMPTS = [
|
|
38
|
-
// For rovogrowth-640-inline-action-nudge-exp only
|
|
39
|
-
RovoChatPromptKey.
|
|
44
|
+
// For rovogrowth-640-inline-action-nudge-exp only
|
|
45
|
+
RovoChatPromptKey.SHOW_ME_WHATS_RELEVANT, RovoChatPromptKey.SUMMARIZE_THIS_FOR_ME, RovoChatPromptKey.ASK_A_SPECIFIC_QUESTION];
|
|
40
46
|
var DEFAULT_PROMPTS = GOOGLE_PROMPTS;
|
|
41
47
|
var getContext = function getContext(intl, product) {
|
|
42
48
|
switch (product) {
|
|
@@ -142,6 +148,28 @@ var getPromptAction = function getPromptAction(promptKey, intl) {
|
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
150
|
};
|
|
151
|
+
case RovoChatPromptKey.SUMMARIZE_THIS_FOR_ME:
|
|
152
|
+
var label_summarize_this_for_me = intl.formatMessage(messages.rovo_prompt_button_summarize_this);
|
|
153
|
+
var html_summarize_this_for_me = intl.formatMessage(messages.rovo_prompt_message_summarize, {
|
|
154
|
+
url: url
|
|
155
|
+
}, {
|
|
156
|
+
ignoreTag: true
|
|
157
|
+
});
|
|
158
|
+
return {
|
|
159
|
+
icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
|
|
160
|
+
label: label_summarize_this_for_me
|
|
161
|
+
}),
|
|
162
|
+
content: label_summarize_this_for_me,
|
|
163
|
+
tooltipMessage: label_summarize_this_for_me,
|
|
164
|
+
data: {
|
|
165
|
+
name: label_summarize_this_for_me,
|
|
166
|
+
dialogues: [],
|
|
167
|
+
prompt: htmlToAdf(html_summarize_this_for_me),
|
|
168
|
+
mode: {
|
|
169
|
+
fastModeEnabled: true
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
145
173
|
case RovoChatPromptKey.KEY_HIGHLIGHTS:
|
|
146
174
|
var label_key_highlights = intl.formatMessage(messages.rovo_prompt_button_highlight_relevant_content);
|
|
147
175
|
var html_key_highlights = intl.formatMessage(messages.rovo_prompt_message_highlight_relevant_content, {
|
|
@@ -180,6 +208,25 @@ var getPromptAction = function getPromptAction(promptKey, intl) {
|
|
|
180
208
|
placeholderType: 'generic'
|
|
181
209
|
}
|
|
182
210
|
};
|
|
211
|
+
case RovoChatPromptKey.ASK_A_SPECIFIC_QUESTION:
|
|
212
|
+
var label_ask_a_specific_question = intl.formatMessage(messages.rovo_prompt_button_ask_a_specific_question);
|
|
213
|
+
var prompt_ask_a_specific_question = intl.formatMessage(messages.rovo_prompt_message_ask_rovo_anything, {
|
|
214
|
+
url: url
|
|
215
|
+
});
|
|
216
|
+
return {
|
|
217
|
+
icon: /*#__PURE__*/React.createElement(RovoChatIcon, {
|
|
218
|
+
label: label_ask_a_specific_question
|
|
219
|
+
}),
|
|
220
|
+
content: label_ask_a_specific_question,
|
|
221
|
+
tooltipMessage: label_ask_a_specific_question,
|
|
222
|
+
data: {
|
|
223
|
+
name: label_ask_a_specific_question,
|
|
224
|
+
dialogues: [],
|
|
225
|
+
prompt: prompt_ask_a_specific_question,
|
|
226
|
+
isPromptPlaceholder: true,
|
|
227
|
+
placeholderType: 'generic'
|
|
228
|
+
}
|
|
229
|
+
};
|
|
183
230
|
case RovoChatPromptKey.HIGHLIGHT_RELEVANT_CONTENT:
|
|
184
231
|
var label_highlight_relevant_content = intl.formatMessage(messages.rovo_prompt_button_highlight_relevant_content);
|
|
185
232
|
var html_highlight_relevant_content = intl.formatMessage(messages.rovo_prompt_message_highlight_relevant_content, {
|
|
@@ -200,6 +247,26 @@ var getPromptAction = function getPromptAction(promptKey, intl) {
|
|
|
200
247
|
prompt: htmlToAdf(html_highlight_relevant_content)
|
|
201
248
|
}
|
|
202
249
|
};
|
|
250
|
+
case RovoChatPromptKey.SHOW_ME_WHATS_RELEVANT:
|
|
251
|
+
var label_show_me_whats_relevant = intl.formatMessage(messages.rovo_prompt_button_show_me_whats_relevant);
|
|
252
|
+
var html_show_me_whats_relevant = intl.formatMessage(messages.rovo_prompt_message_highlight_relevant_content, {
|
|
253
|
+
context: contextLong,
|
|
254
|
+
url: url
|
|
255
|
+
}, {
|
|
256
|
+
ignoreTag: true
|
|
257
|
+
});
|
|
258
|
+
return {
|
|
259
|
+
icon: /*#__PURE__*/React.createElement(AiSearchIcon, {
|
|
260
|
+
label: label_show_me_whats_relevant
|
|
261
|
+
}),
|
|
262
|
+
content: label_show_me_whats_relevant,
|
|
263
|
+
tooltipMessage: label_show_me_whats_relevant,
|
|
264
|
+
data: {
|
|
265
|
+
name: label_show_me_whats_relevant,
|
|
266
|
+
dialogues: [],
|
|
267
|
+
prompt: htmlToAdf(html_show_me_whats_relevant)
|
|
268
|
+
}
|
|
269
|
+
};
|
|
203
270
|
case RovoChatPromptKey.IDENTIFY_KEY_TRENDS:
|
|
204
271
|
var label_identify_key_trends = intl.formatMessage(messages.rovo_prompt_button_identify_key_trends);
|
|
205
272
|
var html_identify_key_trends = intl.formatMessage(messages.rovo_prompt_message_identify_key_trends, {
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
+
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
4
|
+
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
5
|
+
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
6
|
+
._1bsb1osq{width:100%}
|
|
7
|
+
._1e0c1txw{display:flex}
|
|
8
|
+
._1wpz1fhb{align-self:stretch}
|
|
9
|
+
._2lx21bp4{flex-direction:column}
|
|
10
|
+
._4cvr1h6o{align-items:center}
|
|
11
|
+
._4t3it94y{height:1px}
|
|
12
|
+
._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
|
|
13
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
14
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
15
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* ask-rovo-section-header.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import "./ask-rovo-section-header.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
|
+
import { messages } from '../../../../../messages';
|
|
7
|
+
import RovoHexLogo from '../../../assets/rovo-hex-logo';
|
|
8
|
+
var sectionHeaderStyles = null;
|
|
9
|
+
var sectionHeaderDividerStyles = null;
|
|
10
|
+
var sectionHeaderRowStyles = null;
|
|
11
|
+
var sectionHeaderLabelStyles = null;
|
|
12
|
+
/**
|
|
13
|
+
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
14
|
+
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
15
|
+
*
|
|
16
|
+
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
17
|
+
* Rovo hex logo and the "Ask Rovo" label.
|
|
18
|
+
*/
|
|
19
|
+
var AskRovoSectionHeader = function AskRovoSectionHeader(_ref) {
|
|
20
|
+
var testId = _ref.testId;
|
|
21
|
+
var intl = useIntl();
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
"data-testid": testId,
|
|
24
|
+
className: ax(["_zulputpp _1e0c1txw _2lx21bp4 _otyru2gc _18u0v77o _1bsb1osq _1wpz1fhb"])
|
|
25
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
role: "separator",
|
|
27
|
+
"aria-orientation": "horizontal",
|
|
28
|
+
className: ax(["_4t3it94y _1bsb1osq _bfhk1l7x"])
|
|
29
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: ax(["_zulp1b66 _1e0c1txw _4cvr1h6o _19bv1b66"])
|
|
31
|
+
}, /*#__PURE__*/React.createElement(RovoHexLogo, null), /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
className: ax(["_11c8wadc _syazazsu _k48p1wq8"])
|
|
33
|
+
}, intl.formatMessage(messages.rovo_chat_action_section_header))));
|
|
34
|
+
};
|
|
35
|
+
export default AskRovoSectionHeader;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._zulp12x7{gap:var(--ds-space-075,6px)}._16jlkb7n{flex-grow:1}
|
|
2
3
|
._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
|
|
3
4
|
._1bsb129b{width:calc(100% + var(--container-gap-left) + var(--container-gap-right))}
|
|
5
|
+
._1bsb1osq{width:100%}
|
|
4
6
|
._1e0c1txw{display:flex}
|
|
5
7
|
._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
|
|
6
8
|
._2lx21bp4{flex-direction:column}
|
|
9
|
+
._4cvr1y6m{align-items:flex-start}
|
|
7
10
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -6,11 +6,15 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useCallback, useMemo, useState } from 'react';
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
10
|
import { ActionName, SmartLinkSize } from '../../../../../constants';
|
|
10
11
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
11
12
|
import * as Actions from '../../actions';
|
|
12
13
|
import { ActionFooter } from './action-footer';
|
|
14
|
+
import AskRovoSectionHeader from './ask-rovo-section-header';
|
|
13
15
|
var ignoreContainerPaddingStyles = null;
|
|
16
|
+
var inlineActionNudgePillWrapperStyles = null;
|
|
17
|
+
var inlineActionNudgeColumnStyles = null;
|
|
14
18
|
var DEFAULT_SORT_ORDER = ['PreviewAction', 'CopyLinkAction', 'AISummaryAction'];
|
|
15
19
|
var sort = function sort(a, b) {
|
|
16
20
|
var idxA = DEFAULT_SORT_ORDER.indexOf(a);
|
|
@@ -54,6 +58,9 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
54
58
|
var context = useFlexibleUiContext();
|
|
55
59
|
var ui = useFlexibleUiOptionContext();
|
|
56
60
|
var isRovoChatActionAvailable = (fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('rovogrowth-640-inline-action-nudge-fg')) && isAny3pRovoActionsExperimentOn ? (context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[ActionName.RovoChatAction]) !== undefined : undefined;
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
63
|
+
var isInlineActionNudgeExperiment = fg('rovogrowth-640-inline-action-nudge-fg') && expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
57
64
|
var _useState = useState(),
|
|
58
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
66
|
message = _useState2[0],
|
|
@@ -98,17 +105,35 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
98
105
|
size: size || (ui === null || ui === void 0 ? void 0 : ui.size)
|
|
99
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
100
107
|
,
|
|
101
|
-
style:
|
|
108
|
+
style: !(isInlineActionNudgeExperiment && isRovoChatActionAvailable) && padding ? {
|
|
102
109
|
paddingInline: padding
|
|
103
|
-
},
|
|
110
|
+
} : undefined,
|
|
104
111
|
hideTooltip: isLoading
|
|
105
112
|
});
|
|
106
113
|
};
|
|
107
114
|
return arr.map(function (name) {
|
|
108
115
|
return renderAction(name);
|
|
109
116
|
});
|
|
110
|
-
}, [context === null || context === void 0 ? void 0 : context.actions, isRovoChatActionAvailable, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, _onClick]);
|
|
111
|
-
|
|
117
|
+
}, [context === null || context === void 0 ? void 0 : context.actions, isRovoChatActionAvailable, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, _onClick, isInlineActionNudgeExperiment]);
|
|
118
|
+
var showRovoSectionHeader = isInlineActionNudgeExperiment && isRovoChatActionAvailable;
|
|
119
|
+
if (!actions) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
if (isInlineActionNudgeExperiment && isRovoChatActionAvailable) {
|
|
123
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
ref: blockRef,
|
|
125
|
+
"data-testid": testId,
|
|
126
|
+
className: ax(["_1e0c1txw _2lx21bp4 _vchhusvi _1bsb1osq"])
|
|
127
|
+
}, showRovoSectionHeader && /*#__PURE__*/React.createElement(AskRovoSectionHeader, {
|
|
128
|
+
testId: testId ? "".concat(testId, "-rovo-section-header") : undefined
|
|
129
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: ax(["_zulp12x7 _1e0c1txw _2lx21bp4 _4cvr1y6m"])
|
|
131
|
+
}, actions), /*#__PURE__*/React.createElement(ActionFooter, {
|
|
132
|
+
message: message,
|
|
133
|
+
testId: testId
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
112
137
|
ref: blockRef,
|
|
113
138
|
"data-testid": testId
|
|
114
139
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -117,6 +142,6 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
117
142
|
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
118
143
|
message: message,
|
|
119
144
|
testId: testId
|
|
120
|
-
}))
|
|
145
|
+
}));
|
|
121
146
|
};
|
|
122
147
|
export default ActionBlock;
|
|
@@ -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.
|
|
18
|
+
packageVersion: "44.3.22",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { ObjectProps } from '@atlaskit/object/types';
|
|
3
|
+
import type { SmartLinkSize } from '../../../constants';
|
|
4
|
+
declare const BlogIconWithColor: FC<Omit<ObjectProps, "size"> & {
|
|
5
|
+
size?: SmartLinkSize;
|
|
3
6
|
}>;
|
|
4
7
|
export default BlogIconWithColor;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { ObjectProps } from '@atlaskit/object/types';
|
|
3
|
+
import type { SmartLinkSize } from '../../../constants';
|
|
4
|
+
declare const LiveDocumentIconWithColor: FC<Omit<ObjectProps, "size"> & {
|
|
5
|
+
size?: SmartLinkSize;
|
|
3
6
|
}>;
|
|
4
7
|
export default LiveDocumentIconWithColor;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
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';
|
|
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' | RovoChatActionMessageKey;
|
|
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;
|
|
7
7
|
};
|
|
@@ -10,7 +10,10 @@ export declare enum RovoChatPromptKey {
|
|
|
10
10
|
IDENTIFY_KEY_POINTS = "identify-key-points",
|
|
11
11
|
IDENTIFY_KEY_TRENDS = "identify-key-trends",
|
|
12
12
|
FIND_OPEN_QUESTIONS = "find-open-questions",
|
|
13
|
-
HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content"
|
|
13
|
+
HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content",
|
|
14
|
+
SUMMARIZE_THIS_FOR_ME = "summarize-this-for-me",
|
|
15
|
+
ASK_A_SPECIFIC_QUESTION = "ask-a-specific-question",
|
|
16
|
+
SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant"
|
|
14
17
|
}
|
|
15
18
|
type RovoChatActionProps = LinkActionProps & {
|
|
16
19
|
prompts?: RovoChatPromptKey[];
|
package/dist/types/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface RovoSectionHeaderProps {
|
|
2
|
+
testId?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
6
|
+
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
7
|
+
*
|
|
8
|
+
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
9
|
+
* Rovo hex logo and the "Ask Rovo" label.
|
|
10
|
+
*/
|
|
11
|
+
declare const AskRovoSectionHeader: ({ testId }: RovoSectionHeaderProps) => JSX.Element;
|
|
12
|
+
export default AskRovoSectionHeader;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { ObjectProps } from '@atlaskit/object/types';
|
|
3
|
+
import type { SmartLinkSize } from '../../../constants';
|
|
4
|
+
declare const BlogIconWithColor: FC<Omit<ObjectProps, "size"> & {
|
|
5
|
+
size?: SmartLinkSize;
|
|
3
6
|
}>;
|
|
4
7
|
export default BlogIconWithColor;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { ObjectProps } from '@atlaskit/object/types';
|
|
3
|
+
import type { SmartLinkSize } from '../../../constants';
|
|
4
|
+
declare const LiveDocumentIconWithColor: FC<Omit<ObjectProps, "size"> & {
|
|
5
|
+
size?: SmartLinkSize;
|
|
3
6
|
}>;
|
|
4
7
|
export default LiveDocumentIconWithColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
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
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';
|
|
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' | RovoChatActionMessageKey;
|
|
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;
|
|
7
7
|
};
|
|
@@ -10,7 +10,10 @@ export declare enum RovoChatPromptKey {
|
|
|
10
10
|
IDENTIFY_KEY_POINTS = "identify-key-points",
|
|
11
11
|
IDENTIFY_KEY_TRENDS = "identify-key-trends",
|
|
12
12
|
FIND_OPEN_QUESTIONS = "find-open-questions",
|
|
13
|
-
HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content"
|
|
13
|
+
HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content",
|
|
14
|
+
SUMMARIZE_THIS_FOR_ME = "summarize-this-for-me",
|
|
15
|
+
ASK_A_SPECIFIC_QUESTION = "ask-a-specific-question",
|
|
16
|
+
SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant"
|
|
14
17
|
}
|
|
15
18
|
type RovoChatActionProps = LinkActionProps & {
|
|
16
19
|
prompts?: RovoChatPromptKey[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface RovoSectionHeaderProps {
|
|
2
|
+
testId?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
6
|
+
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
7
|
+
*
|
|
8
|
+
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
9
|
+
* Rovo hex logo and the "Ask Rovo" label.
|
|
10
|
+
*/
|
|
11
|
+
declare const AskRovoSectionHeader: ({ testId }: RovoSectionHeaderProps) => JSX.Element;
|
|
12
|
+
export default AskRovoSectionHeader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.3.
|
|
3
|
+
"version": "44.3.23",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
76
76
|
"@atlaskit/popup": "^4.17.0",
|
|
77
77
|
"@atlaskit/primitives": "^19.0.0",
|
|
78
|
-
"@atlaskit/react-ufo": "^5.
|
|
79
|
-
"@atlaskit/rovo-triggers": "^
|
|
78
|
+
"@atlaskit/react-ufo": "^5.18.0",
|
|
79
|
+
"@atlaskit/rovo-triggers": "^6.0.0",
|
|
80
80
|
"@atlaskit/section-message": "^8.12.0",
|
|
81
81
|
"@atlaskit/select": "^21.10.0",
|
|
82
82
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
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": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^74.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^13.0.0",
|
|
90
90
|
"@atlaskit/tooltip": "^21.2.0",
|
|
91
91
|
"@atlaskit/ufo": "^0.4.0",
|