@atlaskit/smart-card 44.26.1 → 44.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
- package/dist/cjs/messages.js +40 -0
- package/dist/cjs/state/actions/index.js +16 -20
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +4 -12
- package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
- package/dist/cjs/view/InlineCard/common/rovo-actions-cta/index.js +82 -14
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/rovo-chat-utils/index.js +118 -8
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
- package/dist/es2019/messages.js +40 -0
- package/dist/es2019/state/actions/index.js +17 -21
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -7
- package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
- package/dist/es2019/view/InlineCard/common/rovo-actions-cta/index.js +63 -15
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/rovo-chat-utils/index.js +115 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
- package/dist/esm/messages.js +40 -0
- package/dist/esm/state/actions/index.js +17 -21
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +4 -12
- package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
- package/dist/esm/view/InlineCard/common/rovo-actions-cta/index.js +83 -15
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/rovo-chat-utils/index.js +118 -8
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/InlineCard/common/rovo-actions-cta/index.d.ts +3 -1
- package/dist/types/view/common/rovo-chat-utils/index.d.ts +17 -2
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/common/rovo-actions-cta/index.d.ts +3 -1
- package/dist/types-ts4.5/view/common/rovo-chat-utils/index.d.ts +17 -2
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5efd60bd04eb3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5efd60bd04eb3) -
|
|
8
|
+
NAVX-5109 Implementing provider specific logic for new inline cta
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 44.27.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 44.27.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [`ed3587ea908e3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ed3587ea908e3) -
|
|
25
|
+
[ux] Clean up platform apps same-tab link behavior experiment
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 44.26.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:aa200619a891e5d125bc1afc6e360cd61508fef825ffeb5fa88c30f5df2bbefa
|
|
3
|
+
size 21197
|
package/dist/cjs/messages.js
CHANGED
|
@@ -1087,6 +1087,46 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
1087
1087
|
defaultMessage: "Show me what's relevant",
|
|
1088
1088
|
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1089
1089
|
},
|
|
1090
|
+
rovo_prompt_message_summarize_document: {
|
|
1091
|
+
id: 'fabric.linking.rovo_prompt_message_summarize_document.non-final',
|
|
1092
|
+
defaultMessage: "Summarize this doc {url} into a concise, easy-to-scan overview. Adapt to whatever the content is and focus on the main ideas, important decisions, key updates, and next steps, only include these if they exist; don't mention their absence. Avoid unnecessary detail, repetition, or formatting commentary. Write in plain language and optimize for a quick 5\u201310 second read",
|
|
1093
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from.'
|
|
1094
|
+
},
|
|
1095
|
+
rovo_prompt_message_summarize_presentation: {
|
|
1096
|
+
id: 'fabric.linking.rovo_prompt_message_summarize_presentation.non-final',
|
|
1097
|
+
defaultMessage: "Summarize this Google Slides deck {url} into a concise executive overview. Focus on the tldr, key findings, decisions, metrics, risks, and next steps, if there are any. Use a short executive summary followed by 2-3 bullet points. Avoid slide-by-slide narration, design details, repetition, and filler.",
|
|
1098
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from.'
|
|
1099
|
+
},
|
|
1100
|
+
rovo_prompt_button_explain_code: {
|
|
1101
|
+
id: 'fabric.linking.rovo_prompt_button_explain_code.non-final',
|
|
1102
|
+
defaultMessage: "Explain",
|
|
1103
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1104
|
+
},
|
|
1105
|
+
rovo_prompt_message_explain_code: {
|
|
1106
|
+
id: 'fabric.linking.rovo_prompt_message_explain_code.non-final',
|
|
1107
|
+
defaultMessage: "<p>Explain this code, pull request, or commit {url} in clear, plain language for a non-technical audience.</p><p>Cover:</p><ol><li><strong>Purpose</strong> \u2014 What problem does it solve or what goal does it achieve?</li><li><strong>How it works</strong> \u2014 High-level mechanics (no implementation detail unless critical to understanding).</li><li><strong>Why</strong> \u2014 Motivation for the change or design choice.</li><li><strong>Impact</strong> \u2014 Key behavior changes, risks, or downstream effects worth noting.</li></ol><p>Constraints:</p><ul><li>3\u20135 sentences or 100\u2013150 words max.</li><li>Omit sections with nothing meaningful to say.</li><li>Prefer concrete language over abstract descriptions (e.g., \"speeds up page load by caching results\" over \"improves performance\").</li></ul>",
|
|
1108
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
|
|
1109
|
+
},
|
|
1110
|
+
rovo_prompt_button_catch_up: {
|
|
1111
|
+
id: 'fabric.linking.rovo_prompt_button_catch_up.non-final',
|
|
1112
|
+
defaultMessage: "Catch up",
|
|
1113
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1114
|
+
},
|
|
1115
|
+
rovo_prompt_message_catch_up: {
|
|
1116
|
+
id: 'fabric.linking.rovo_prompt_message_catch_up.non-final',
|
|
1117
|
+
defaultMessage: "Catch me up on the latest {provider} conversations or channel activity in {url} from the last two weeks. If there's no activity in the past two weeks, expand the window to the most recent 30 days (or until meaningful activity is found). Summarize the most important updates, decisions, and discussions so the user can quickly understand what they missed. Focus on key changes, unresolved questions, and any action items or follow-ups. Prioritize recent messages with the most activity. Keep the response concise \u2014 ideally 80\u2013150 words or a short set of 3\u20135 key bullets.",
|
|
1118
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. {provider} is the 3P app name (Please make sure all html tags remain the same.)'
|
|
1119
|
+
},
|
|
1120
|
+
rovo_prompt_button_salesforce_prep: {
|
|
1121
|
+
id: 'fabric.linking.rovo_prompt_button_salesforce_prep.non-final',
|
|
1122
|
+
defaultMessage: "Prep",
|
|
1123
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1124
|
+
},
|
|
1125
|
+
rovo_prompt_message_salesforce_prep: {
|
|
1126
|
+
id: 'fabric.linking.rovo_prompt_message_salesforce_prep.non-final',
|
|
1127
|
+
defaultMessage: "Prep me for this Salesforce record {url}. What's the current state, what's the recent activity, what risks or opportunities should I be aware of, and what would be useful to know before a conversation about it?",
|
|
1128
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from'
|
|
1129
|
+
},
|
|
1090
1130
|
// TODO: remove when social-proof-3p-unauth-block-fg is cleaned up
|
|
1091
1131
|
pre_auth_block_social_proof_not_low: {
|
|
1092
1132
|
id: 'fabric.linking.pre_auth_block_social_proof_not_low',
|
|
@@ -26,7 +26,9 @@ var _useActionFlags = _interopRequireDefault(require("../hooks/use-action-flags"
|
|
|
26
26
|
var _useInvokeClientAction = _interopRequireDefault(require("../hooks/use-invoke-client-action"));
|
|
27
27
|
var _useResolve = _interopRequireDefault(require("../hooks/use-resolve"));
|
|
28
28
|
var POST_AUTH_CHAT_EXTENSION_KEY = 'google-object-provider';
|
|
29
|
-
|
|
29
|
+
// Smart Card resolver key differs from the consumer-facing Rovo payload key.
|
|
30
|
+
var POST_AUTH_CHAT_PAYLOAD_EXTENSION_KEY = 'google-drive';
|
|
31
|
+
var SMART_LINK_3P_POST_AUTH_SOURCE = 'smart-link-3p-post-auth';
|
|
30
32
|
var getPostAuthChatPayloadId = function getPostAuthChatPayloadId() {
|
|
31
33
|
if (typeof crypto !== 'undefined') {
|
|
32
34
|
if (typeof crypto.randomUUID === 'function') {
|
|
@@ -42,31 +44,25 @@ var getPostAuthChatPayloadId = function getPostAuthChatPayloadId() {
|
|
|
42
44
|
}
|
|
43
45
|
return "smart-link-post-auth-chat-".concat(Date.now());
|
|
44
46
|
};
|
|
45
|
-
var sendPostAuthChatOpenMessage = function sendPostAuthChatOpenMessage(url) {
|
|
47
|
+
var sendPostAuthChatOpenMessage = function sendPostAuthChatOpenMessage(url, documentTitle) {
|
|
46
48
|
var _window$parent;
|
|
47
49
|
if (typeof window === 'undefined' || typeof ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage) !== 'function') {
|
|
48
50
|
return;
|
|
49
51
|
}
|
|
50
52
|
var payload = {
|
|
51
|
-
type: 'chat-
|
|
52
|
-
source:
|
|
53
|
+
type: 'chat-smartlink-3p-post-auth-launch',
|
|
54
|
+
source: SMART_LINK_3P_POST_AUTH_SOURCE,
|
|
55
|
+
openChat: true,
|
|
56
|
+
openChatMode: 'mini-modal',
|
|
53
57
|
data: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
projectId: url,
|
|
61
|
-
// Use the URL as projectName to avoid introducing a hardcoded
|
|
62
|
-
// user-facing provider label in Smart Card.
|
|
63
|
-
projectName: url,
|
|
64
|
-
projectUrl: url
|
|
65
|
-
}
|
|
58
|
+
extensionKey: POST_AUTH_CHAT_PAYLOAD_EXTENSION_KEY,
|
|
59
|
+
provider: 'Google Drive',
|
|
60
|
+
projectContext: {
|
|
61
|
+
projectId: url,
|
|
62
|
+
projectName: documentTitle !== null && documentTitle !== void 0 ? documentTitle : 'Google Drive',
|
|
63
|
+
projectUrl: url
|
|
66
64
|
}
|
|
67
|
-
}
|
|
68
|
-
openChat: true,
|
|
69
|
-
openChatMode: 'mini-modal'
|
|
65
|
+
}
|
|
70
66
|
};
|
|
71
67
|
window.parent.postMessage({
|
|
72
68
|
eventType: _postMessageToPubsub.ROVO_POST_MESSAGE_EVENT_TYPE,
|
|
@@ -302,7 +298,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
302
298
|
}
|
|
303
299
|
reload();
|
|
304
300
|
if (isPostAuthChatTreatment) {
|
|
305
|
-
sendPostAuthChatOpenMessage(url);
|
|
301
|
+
sendPostAuthChatOpenMessage(url, (0, _linkExtractors.extractSmartLinkTitle)(details));
|
|
306
302
|
}
|
|
307
303
|
}, function (err) {
|
|
308
304
|
var _err$type;
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card" || '',
|
|
14
|
-
packageVersion: "44.
|
|
14
|
+
packageVersion: "44.27.1" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -72,7 +72,14 @@ var RovoChatAction = function RovoChatAction(_ref) {
|
|
|
72
72
|
}, [data === null || data === void 0 ? void 0 : data.invokeAction, invoke, onClickCallback, sendPromptMessage]);
|
|
73
73
|
var promptActions = (0, _react.useMemo)(function () {
|
|
74
74
|
return resolvedPrompts.map(function (promptKey, idx) {
|
|
75
|
-
var _ref2 = (0, _rovoChatUtils.getPromptAction)(
|
|
75
|
+
var _ref2 = (0, _rovoChatUtils.getPromptAction)({
|
|
76
|
+
promptKey: promptKey,
|
|
77
|
+
intl: intl,
|
|
78
|
+
url: data === null || data === void 0 ? void 0 : data.url,
|
|
79
|
+
product: data === null || data === void 0 ? void 0 : data.product,
|
|
80
|
+
iconSize: props.iconSize,
|
|
81
|
+
cardAppearance: props.cardAppearance
|
|
82
|
+
}) || {},
|
|
76
83
|
icon = _ref2.icon,
|
|
77
84
|
content = _ref2.content,
|
|
78
85
|
tooltipMessage = _ref2.tooltipMessage,
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.hoverCardClassName = exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
12
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
@@ -35,8 +34,6 @@ var _resolving = _interopRequireDefault(require("./views/resolving"));
|
|
|
35
34
|
var _unauthorised = _interopRequireDefault(require("./views/unauthorised"));
|
|
36
35
|
var _RovoUnauthorisedView = _interopRequireDefault(require("./views/unauthorised/RovoUnauthorisedView"));
|
|
37
36
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
38
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40
37
|
var hoverCardClassName = exports.hoverCardClassName = 'smart-links-hover-preview';
|
|
41
38
|
var useIsResolvedView = function useIsResolvedView(_ref) {
|
|
42
39
|
var _hoverPreviewOptions$;
|
|
@@ -172,18 +169,13 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
172
169
|
var _getMetadata = (0, _utils2.getMetadata)(extensionKey, data),
|
|
173
170
|
subtitle = _getMetadata.subtitle;
|
|
174
171
|
var titleMaxLines = subtitle && subtitle.length > 0 ? 1 : 2;
|
|
175
|
-
|
|
176
|
-
// Platform apps (Home, Goals, Projects, and Teams) should by default open in the same tab when the FF is enabled.
|
|
177
|
-
var isSameTabAlignmentEnabled = (0, _platformFeatureFlags.fg)('townsquare-same-tab-alignment-gcko-849');
|
|
178
|
-
var anchorTarget = product === 'ATLAS' && isSameTabAlignmentEnabled ? '_self' : undefined;
|
|
179
|
-
var titleBlockProps = _objectSpread({
|
|
172
|
+
var titleBlockProps = {
|
|
180
173
|
maxLines: titleMaxLines,
|
|
181
174
|
size: _constants.SmartLinkSize.Large,
|
|
182
175
|
position: _constants.SmartLinkPosition.Center,
|
|
183
|
-
subtitle: subtitle
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
} : undefined);
|
|
176
|
+
subtitle: subtitle,
|
|
177
|
+
anchorTarget: product === 'ATLAS' ? '_self' : undefined
|
|
178
|
+
};
|
|
187
179
|
var uiOptions = _styled.flexibleUiOptions;
|
|
188
180
|
uiOptions.enableSnippetRenderer = true;
|
|
189
181
|
var flexibleCardProps = {
|
|
@@ -110,7 +110,8 @@ function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
|
|
|
110
110
|
hideIconLoadingSkeleton: hideIconLoadingSkeleton
|
|
111
111
|
}), (0, _renderLozenge.renderLozenge)(lozenge), isInlineTailoredRovoActionEnabled && /*#__PURE__*/_react.default.createElement(_rovoActionsCta.InlineRovoActionButton, {
|
|
112
112
|
testId: "".concat(testId, "-rovo-actions-cta"),
|
|
113
|
-
url: link
|
|
113
|
+
url: link,
|
|
114
|
+
actionOptions: actionOptions
|
|
114
115
|
}));
|
|
115
116
|
if (!showHoverPreview || !link) {
|
|
116
117
|
return frame;
|
|
@@ -122,6 +123,4 @@ function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
|
|
|
122
123
|
hoverPreviewOptions: hoverPreviewOptions
|
|
123
124
|
}, frame);
|
|
124
125
|
}
|
|
125
|
-
|
|
126
|
-
// Todo: replace with platform_sl_3p_auth_inline_tailored_cta_killswitch after cleanup of rovogrowth-640-inline-action-nudge-fg
|
|
127
126
|
var InlineCardResolvedViewFunctional = exports.InlineCardResolvedViewFunctional = (0, _platformFeatureFlagsReact.componentWithFG)('platform_sl_3p_auth_inline_tailored_cta_killswitch', InlineCardResolvedViewFunctionalWithRovoActions, InlineCardResolvedViewBase);
|
|
@@ -9,16 +9,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.RovoActionsCta = exports.InlineRovoActionButton = void 0;
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
16
|
var _reactIntl = require("react-intl");
|
|
14
17
|
var _css = require("@atlaskit/css");
|
|
15
|
-
var _aiGenerativeTextSummary = _interopRequireDefault(require("@atlaskit/icon/core/ai-generative-text-summary"));
|
|
16
18
|
var _rovoChat = _interopRequireDefault(require("@atlaskit/icon/core/rovo-chat"));
|
|
19
|
+
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
17
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
|
+
var _extractRovoChatAction = _interopRequireDefault(require("../../../../extractors/flexible/actions/extract-rovo-chat-action"));
|
|
22
|
+
var _helpers = require("../../../../state/helpers");
|
|
23
|
+
var _useInvokeClientAction = _interopRequireDefault(require("../../../../state/hooks/use-invoke-client-action"));
|
|
18
24
|
var _useRovoChat2 = _interopRequireDefault(require("../../../../state/hooks/use-rovo-chat"));
|
|
25
|
+
var _useRovoConfig = _interopRequireDefault(require("../../../../state/hooks/use-rovo-config"));
|
|
26
|
+
var _store = require("../../../../state/store");
|
|
19
27
|
var _rovoChatUtils = require("../../../common/rovo-chat-utils");
|
|
20
28
|
var _actionButton = require("../action-button");
|
|
21
29
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
30
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
32
|
var styles = {
|
|
23
33
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _19bv12x7 _u5f312x7",
|
|
24
34
|
rovoIcon: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _ca0qv77o _n3tdv77o",
|
|
@@ -37,31 +47,89 @@ var RovoActionsCta = exports.RovoActionsCta = function RovoActionsCta(_ref) {
|
|
|
37
47
|
};
|
|
38
48
|
var InlineRovoActionButton = exports.InlineRovoActionButton = function InlineRovoActionButton(_ref2) {
|
|
39
49
|
var testId = _ref2.testId,
|
|
40
|
-
url = _ref2.url
|
|
50
|
+
url = _ref2.url,
|
|
51
|
+
actionOptions = _ref2.actionOptions;
|
|
41
52
|
var _useRovoChat = (0, _useRovoChat2.default)(),
|
|
42
53
|
sendPromptMessage = _useRovoChat.sendPromptMessage,
|
|
43
54
|
isRovoChatEnabled = _useRovoChat.isRovoChatEnabled;
|
|
44
55
|
var intl = (0, _reactIntl.useIntl)();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
56
|
+
var cardState = (0, _store.useSmartCardState)(url !== null && url !== void 0 ? url : '');
|
|
57
|
+
var extensionKey = (0, _helpers.getExtensionKey)(cardState.details);
|
|
58
|
+
var rovoConfig = (0, _useRovoConfig.default)();
|
|
59
|
+
var rovoChatAction = (0, _react.useMemo)(function () {
|
|
60
|
+
return cardState.details && (0, _extractRovoChatAction.default)({
|
|
61
|
+
response: cardState.details,
|
|
62
|
+
actionOptions: actionOptions,
|
|
63
|
+
rovoConfig: rovoConfig
|
|
64
|
+
});
|
|
65
|
+
}, [cardState.details, rovoConfig, actionOptions]);
|
|
66
|
+
var provider = (0, _react.useMemo)(function () {
|
|
67
|
+
return cardState.details && (0, _linkExtractors.extractSmartLinkProvider)(cardState.details);
|
|
68
|
+
}, [cardState.details]);
|
|
69
|
+
var invoke = (0, _useInvokeClientAction.default)({});
|
|
70
|
+
var promptKey = (0, _react.useMemo)(function () {
|
|
71
|
+
var _cardState$details, _cardState$details2;
|
|
72
|
+
if (extensionKey === 'google-object-provider' && (_cardState$details = cardState.details) !== null && _cardState$details !== void 0 && (_cardState$details = _cardState$details.data) !== null && _cardState$details !== void 0 && (_cardState$details = _cardState$details['@type']) !== null && _cardState$details !== void 0 && _cardState$details.includes('schema:SpreadsheetDigitalDocument')) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
switch (extensionKey) {
|
|
76
|
+
case 'google-object-provider':
|
|
77
|
+
if ((_cardState$details2 = cardState.details) !== null && _cardState$details2 !== void 0 && (_cardState$details2 = _cardState$details2.data) !== null && _cardState$details2 !== void 0 && (_cardState$details2 = _cardState$details2['@type']) !== null && _cardState$details2 !== void 0 && _cardState$details2.includes('schema:PresentationDigitalDocument')) {
|
|
78
|
+
return _rovoChatUtils.RovoChatPromptKey.SUMMARIZE_PRESENTATION;
|
|
79
|
+
}
|
|
80
|
+
return _rovoChatUtils.RovoChatPromptKey.SUMMARIZE_DOCUMENT;
|
|
81
|
+
case 'onedrive-object-provider':
|
|
82
|
+
return _rovoChatUtils.RovoChatPromptKey.SUMMARIZE_DOCUMENT;
|
|
83
|
+
case 'github-object-provider':
|
|
84
|
+
case 'gitlab-object-provider':
|
|
85
|
+
return _rovoChatUtils.RovoChatPromptKey.EXPLAIN_CODE;
|
|
86
|
+
case 'slack-object-provider':
|
|
87
|
+
case 'ms-teams-object-provider':
|
|
88
|
+
return _rovoChatUtils.RovoChatPromptKey.CATCH_UP;
|
|
89
|
+
case 'salesforce-object-provider':
|
|
90
|
+
return _rovoChatUtils.RovoChatPromptKey.SALESFORCE_PREP;
|
|
91
|
+
}
|
|
92
|
+
}, [extensionKey, cardState]);
|
|
93
|
+
var _ref3 = promptKey ? (0, _rovoChatUtils.getPromptAction)({
|
|
94
|
+
promptKey: promptKey,
|
|
95
|
+
intl: intl,
|
|
96
|
+
url: url,
|
|
97
|
+
iconSize: 'small',
|
|
98
|
+
provider: provider === null || provider === void 0 ? void 0 : provider.text
|
|
99
|
+
}) || {} : {},
|
|
48
100
|
promptData = _ref3.data,
|
|
49
|
-
content = _ref3.content
|
|
101
|
+
content = _ref3.content,
|
|
102
|
+
icon = _ref3.icon;
|
|
50
103
|
var handleClick = (0, _react.useCallback)(function (event) {
|
|
51
104
|
event.preventDefault();
|
|
52
105
|
event.stopPropagation();
|
|
53
|
-
if (isRovoChatEnabled && promptData) {
|
|
54
|
-
|
|
106
|
+
if (isRovoChatEnabled && promptData && rovoChatAction !== null && rovoChatAction !== void 0 && rovoChatAction.invokeAction) {
|
|
107
|
+
invoke(_objectSpread(_objectSpread({}, rovoChatAction === null || rovoChatAction === void 0 ? void 0 : rovoChatAction.invokeAction), {}, {
|
|
108
|
+
actionFn: function () {
|
|
109
|
+
var _actionFn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
110
|
+
return _regenerator.default.wrap(function (_context) {
|
|
111
|
+
while (1) switch (_context.prev = _context.next) {
|
|
112
|
+
case 0:
|
|
113
|
+
return _context.abrupt("return", sendPromptMessage(promptData));
|
|
114
|
+
case 1:
|
|
115
|
+
case "end":
|
|
116
|
+
return _context.stop();
|
|
117
|
+
}
|
|
118
|
+
}, _callee);
|
|
119
|
+
}));
|
|
120
|
+
function actionFn() {
|
|
121
|
+
return _actionFn.apply(this, arguments);
|
|
122
|
+
}
|
|
123
|
+
return actionFn;
|
|
124
|
+
}(),
|
|
125
|
+
prompt: promptKey
|
|
126
|
+
}));
|
|
55
127
|
}
|
|
56
|
-
}, [sendPromptMessage, isRovoChatEnabled, promptData]);
|
|
128
|
+
}, [sendPromptMessage, isRovoChatEnabled, promptData, rovoChatAction, promptKey, invoke]);
|
|
57
129
|
return promptData && content ? /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
58
130
|
onClick: handleClick,
|
|
59
131
|
testId: testId
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
label: "Rovo",
|
|
62
|
-
color: "var(--ds-icon, #292A2E)",
|
|
63
|
-
size: "small"
|
|
64
|
-
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
132
|
+
}, icon, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
65
133
|
xcss: styles.text
|
|
66
134
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
67
135
|
size: "small"
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "44.
|
|
22
|
+
packageVersion: "44.27.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -32,6 +32,11 @@ var RovoChatPromptKey = exports.RovoChatPromptKey = /*#__PURE__*/function (RovoC
|
|
|
32
32
|
RovoChatPromptKey["SUMMARIZE_THIS_FOR_ME"] = "summarize-this-for-me";
|
|
33
33
|
RovoChatPromptKey["ASK_A_SPECIFIC_QUESTION"] = "ask-a-specific-question";
|
|
34
34
|
RovoChatPromptKey["SHOW_ME_WHATS_RELEVANT"] = "show-me-whats-relevant";
|
|
35
|
+
RovoChatPromptKey["SUMMARIZE_DOCUMENT"] = "summarize-document";
|
|
36
|
+
RovoChatPromptKey["SUMMARIZE_PRESENTATION"] = "summarize-presentation";
|
|
37
|
+
RovoChatPromptKey["EXPLAIN_CODE"] = "explain-code";
|
|
38
|
+
RovoChatPromptKey["CATCH_UP"] = "catch-up";
|
|
39
|
+
RovoChatPromptKey["SALESFORCE_PREP"] = "salesforce-prep";
|
|
35
40
|
return RovoChatPromptKey;
|
|
36
41
|
}({});
|
|
37
42
|
var getContext = function getContext(intl, product) {
|
|
@@ -51,18 +56,22 @@ var getContext = function getContext(intl, product) {
|
|
|
51
56
|
};
|
|
52
57
|
}
|
|
53
58
|
};
|
|
54
|
-
var getPromptAction = exports.getPromptAction = function getPromptAction(
|
|
59
|
+
var getPromptAction = exports.getPromptAction = function getPromptAction(_ref) {
|
|
55
60
|
var _getContext;
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
var promptKey = _ref.promptKey,
|
|
62
|
+
intl = _ref.intl,
|
|
63
|
+
_ref$url = _ref.url,
|
|
64
|
+
url = _ref$url === void 0 ? '' : _ref$url,
|
|
65
|
+
product = _ref.product,
|
|
66
|
+
iconSize = _ref.iconSize,
|
|
67
|
+
cardAppearance = _ref.cardAppearance,
|
|
68
|
+
provider = _ref.provider;
|
|
69
|
+
var _ref2 = (_getContext = getContext(intl, product)) !== null && _getContext !== void 0 ? _getContext : {
|
|
61
70
|
contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_generic),
|
|
62
71
|
contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_generic)
|
|
63
72
|
},
|
|
64
|
-
contextLong =
|
|
65
|
-
contextShort =
|
|
73
|
+
contextLong = _ref2.contextLong,
|
|
74
|
+
contextShort = _ref2.contextShort;
|
|
66
75
|
var isBlockCard3PExperimentEnabled = (0, _useBlockCardRovoActionExperiment.isBlockCardRovoActionExperimentEnabled)(product);
|
|
67
76
|
switch (promptKey) {
|
|
68
77
|
case RovoChatPromptKey.RECOMMEND_OTHER_SOURCES:
|
|
@@ -328,5 +337,106 @@ var getPromptAction = exports.getPromptAction = function getPromptAction(promptK
|
|
|
328
337
|
prompt: (0, _htmlToAdf.default)(html_find_open_questions)
|
|
329
338
|
}
|
|
330
339
|
};
|
|
340
|
+
case RovoChatPromptKey.SUMMARIZE_DOCUMENT:
|
|
341
|
+
var label_summarize_document = intl.formatMessage(_messages.messages.ai_summarize);
|
|
342
|
+
var html_summarize_document = intl.formatMessage(_messages.messages.rovo_prompt_message_summarize_document, {
|
|
343
|
+
url: url
|
|
344
|
+
}, {
|
|
345
|
+
ignoreTag: true
|
|
346
|
+
});
|
|
347
|
+
return {
|
|
348
|
+
content: label_summarize_document,
|
|
349
|
+
tooltipMessage: label_summarize_document,
|
|
350
|
+
data: {
|
|
351
|
+
name: label_summarize_document,
|
|
352
|
+
dialogues: [],
|
|
353
|
+
prompt: (0, _htmlToAdf.default)(html_summarize_document)
|
|
354
|
+
},
|
|
355
|
+
icon: /*#__PURE__*/_react.default.createElement(_aiGenerativeTextSummary.default, {
|
|
356
|
+
label: label_summarize_document,
|
|
357
|
+
size: iconSize
|
|
358
|
+
})
|
|
359
|
+
};
|
|
360
|
+
case RovoChatPromptKey.SUMMARIZE_PRESENTATION:
|
|
361
|
+
var label_summarize_presentation = intl.formatMessage(_messages.messages.ai_summarize);
|
|
362
|
+
var html_summarize_presentation = intl.formatMessage(_messages.messages.rovo_prompt_message_summarize_presentation, {
|
|
363
|
+
url: url
|
|
364
|
+
}, {
|
|
365
|
+
ignoreTag: true
|
|
366
|
+
});
|
|
367
|
+
return {
|
|
368
|
+
content: label_summarize_presentation,
|
|
369
|
+
tooltipMessage: label_summarize_presentation,
|
|
370
|
+
data: {
|
|
371
|
+
name: label_summarize_presentation,
|
|
372
|
+
dialogues: [],
|
|
373
|
+
prompt: (0, _htmlToAdf.default)(html_summarize_presentation)
|
|
374
|
+
},
|
|
375
|
+
icon: /*#__PURE__*/_react.default.createElement(_aiGenerativeTextSummary.default, {
|
|
376
|
+
label: label_summarize_presentation,
|
|
377
|
+
size: iconSize
|
|
378
|
+
})
|
|
379
|
+
};
|
|
380
|
+
case RovoChatPromptKey.EXPLAIN_CODE:
|
|
381
|
+
var label_explain_code = intl.formatMessage(_messages.messages.rovo_prompt_button_explain_code);
|
|
382
|
+
var html_explain_code = intl.formatMessage(_messages.messages.rovo_prompt_message_explain_code, {
|
|
383
|
+
url: url
|
|
384
|
+
}, {
|
|
385
|
+
ignoreTag: true
|
|
386
|
+
});
|
|
387
|
+
return {
|
|
388
|
+
content: label_explain_code,
|
|
389
|
+
tooltipMessage: label_explain_code,
|
|
390
|
+
data: {
|
|
391
|
+
name: label_explain_code,
|
|
392
|
+
dialogues: [],
|
|
393
|
+
prompt: (0, _htmlToAdf.default)(html_explain_code)
|
|
394
|
+
},
|
|
395
|
+
icon: /*#__PURE__*/_react.default.createElement(_aiGenerativeTextSummary.default, {
|
|
396
|
+
label: label_explain_code,
|
|
397
|
+
size: iconSize
|
|
398
|
+
})
|
|
399
|
+
};
|
|
400
|
+
case RovoChatPromptKey.CATCH_UP:
|
|
401
|
+
var label_catch_up = intl.formatMessage(_messages.messages.rovo_prompt_button_catch_up);
|
|
402
|
+
var html_catch_up = intl.formatMessage(_messages.messages.rovo_prompt_message_catch_up, {
|
|
403
|
+
url: url,
|
|
404
|
+
provider: provider
|
|
405
|
+
}, {
|
|
406
|
+
ignoreTag: true
|
|
407
|
+
});
|
|
408
|
+
return {
|
|
409
|
+
content: label_catch_up,
|
|
410
|
+
tooltipMessage: label_catch_up,
|
|
411
|
+
data: {
|
|
412
|
+
name: label_catch_up,
|
|
413
|
+
dialogues: [],
|
|
414
|
+
prompt: (0, _htmlToAdf.default)(html_catch_up)
|
|
415
|
+
},
|
|
416
|
+
icon: /*#__PURE__*/_react.default.createElement(_aiGenerativeTextSummary.default, {
|
|
417
|
+
label: label_catch_up,
|
|
418
|
+
size: iconSize
|
|
419
|
+
})
|
|
420
|
+
};
|
|
421
|
+
case RovoChatPromptKey.SALESFORCE_PREP:
|
|
422
|
+
var label_overview = intl.formatMessage(_messages.messages.rovo_prompt_button_salesforce_prep);
|
|
423
|
+
var html_overview = intl.formatMessage(_messages.messages.rovo_prompt_message_salesforce_prep, {
|
|
424
|
+
url: url
|
|
425
|
+
}, {
|
|
426
|
+
ignoreTag: true
|
|
427
|
+
});
|
|
428
|
+
return {
|
|
429
|
+
content: label_overview,
|
|
430
|
+
tooltipMessage: label_overview,
|
|
431
|
+
data: {
|
|
432
|
+
name: label_overview,
|
|
433
|
+
dialogues: [],
|
|
434
|
+
prompt: (0, _htmlToAdf.default)(html_overview)
|
|
435
|
+
},
|
|
436
|
+
icon: /*#__PURE__*/_react.default.createElement(_aiGenerativeTextSummary.default, {
|
|
437
|
+
label: label_overview,
|
|
438
|
+
size: iconSize
|
|
439
|
+
})
|
|
440
|
+
};
|
|
331
441
|
}
|
|
332
442
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:aa200619a891e5d125bc1afc6e360cd61508fef825ffeb5fa88c30f5df2bbefa
|
|
3
|
+
size 21197
|
package/dist/es2019/messages.js
CHANGED
|
@@ -1081,6 +1081,46 @@ export const messages = defineMessages({
|
|
|
1081
1081
|
defaultMessage: `Show me what's relevant`,
|
|
1082
1082
|
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1083
1083
|
},
|
|
1084
|
+
rovo_prompt_message_summarize_document: {
|
|
1085
|
+
id: 'fabric.linking.rovo_prompt_message_summarize_document.non-final',
|
|
1086
|
+
defaultMessage: `Summarize this doc {url} into a concise, easy-to-scan overview. Adapt to whatever the content is and focus on the main ideas, important decisions, key updates, and next steps, only include these if they exist; don't mention their absence. Avoid unnecessary detail, repetition, or formatting commentary. Write in plain language and optimize for a quick 5–10 second read`,
|
|
1087
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from.'
|
|
1088
|
+
},
|
|
1089
|
+
rovo_prompt_message_summarize_presentation: {
|
|
1090
|
+
id: 'fabric.linking.rovo_prompt_message_summarize_presentation.non-final',
|
|
1091
|
+
defaultMessage: `Summarize this Google Slides deck {url} into a concise executive overview. Focus on the tldr, key findings, decisions, metrics, risks, and next steps, if there are any. Use a short executive summary followed by 2-3 bullet points. Avoid slide-by-slide narration, design details, repetition, and filler.`,
|
|
1092
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from.'
|
|
1093
|
+
},
|
|
1094
|
+
rovo_prompt_button_explain_code: {
|
|
1095
|
+
id: 'fabric.linking.rovo_prompt_button_explain_code.non-final',
|
|
1096
|
+
defaultMessage: `Explain`,
|
|
1097
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1098
|
+
},
|
|
1099
|
+
rovo_prompt_message_explain_code: {
|
|
1100
|
+
id: 'fabric.linking.rovo_prompt_message_explain_code.non-final',
|
|
1101
|
+
defaultMessage: `<p>Explain this code, pull request, or commit {url} in clear, plain language for a non-technical audience.</p><p>Cover:</p><ol><li><strong>Purpose</strong> — What problem does it solve or what goal does it achieve?</li><li><strong>How it works</strong> — High-level mechanics (no implementation detail unless critical to understanding).</li><li><strong>Why</strong> — Motivation for the change or design choice.</li><li><strong>Impact</strong> — Key behavior changes, risks, or downstream effects worth noting.</li></ol><p>Constraints:</p><ul><li>3–5 sentences or 100–150 words max.</li><li>Omit sections with nothing meaningful to say.</li><li>Prefer concrete language over abstract descriptions (e.g., "speeds up page load by caching results" over "improves performance").</li></ul>`,
|
|
1102
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
|
|
1103
|
+
},
|
|
1104
|
+
rovo_prompt_button_catch_up: {
|
|
1105
|
+
id: 'fabric.linking.rovo_prompt_button_catch_up.non-final',
|
|
1106
|
+
defaultMessage: `Catch up`,
|
|
1107
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1108
|
+
},
|
|
1109
|
+
rovo_prompt_message_catch_up: {
|
|
1110
|
+
id: 'fabric.linking.rovo_prompt_message_catch_up.non-final',
|
|
1111
|
+
defaultMessage: `Catch me up on the latest {provider} conversations or channel activity in {url} from the last two weeks. If there's no activity in the past two weeks, expand the window to the most recent 30 days (or until meaningful activity is found). Summarize the most important updates, decisions, and discussions so the user can quickly understand what they missed. Focus on key changes, unresolved questions, and any action items or follow-ups. Prioritize recent messages with the most activity. Keep the response concise — ideally 80–150 words or a short set of 3–5 key bullets.`,
|
|
1112
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from. {provider} is the 3P app name (Please make sure all html tags remain the same.)'
|
|
1113
|
+
},
|
|
1114
|
+
rovo_prompt_button_salesforce_prep: {
|
|
1115
|
+
id: 'fabric.linking.rovo_prompt_button_salesforce_prep.non-final',
|
|
1116
|
+
defaultMessage: `Prep`,
|
|
1117
|
+
description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
|
|
1118
|
+
},
|
|
1119
|
+
rovo_prompt_message_salesforce_prep: {
|
|
1120
|
+
id: 'fabric.linking.rovo_prompt_message_salesforce_prep.non-final',
|
|
1121
|
+
defaultMessage: `Prep me for this Salesforce record {url}. What's the current state, what's the recent activity, what risks or opportunities should I be aware of, and what would be useful to know before a conversation about it?`,
|
|
1122
|
+
description: 'The prompt message to send to Rovo Chat. {url} refers to Smart Link that the user triggers this action from'
|
|
1123
|
+
},
|
|
1084
1124
|
// TODO: remove when social-proof-3p-unauth-block-fg is cleaned up
|
|
1085
1125
|
pre_auth_block_social_proof_not_low: {
|
|
1086
1126
|
id: 'fabric.linking.pre_auth_block_social_proof_not_low',
|