@atlaskit/smart-card 43.31.6 → 43.31.8
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 +15 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/cjs/messages.js +14 -39
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +50 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +14 -33
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +43 -37
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
- package/dist/cjs/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +75 -53
- package/dist/cjs/view/HoverCard/components/views/unauthorised/graphics.js +47 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/es2019/messages.js +14 -39
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +31 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +6 -34
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +11 -29
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +38 -5
- package/dist/es2019/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +82 -58
- package/dist/es2019/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/esm/messages.js +14 -39
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +47 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +13 -32
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
- package/dist/esm/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +76 -54
- package/dist/esm/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
- package/dist/types/common/analytics/generated/analytics.types.d.ts +4 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/analytics/useLinkClicked.d.ts +2 -2
- package/dist/types/state/hooks/use-invoke/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
- package/dist/types/utils/analytics/click.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +3 -3
- package/dist/types/view/Card/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/embed-content/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
- package/dist/types/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +1 -1
- package/dist/types/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +4 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks/use-invoke/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +3 -3
- package/dist/types-ts4.5/view/Card/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/embed-content/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/package.json +4 -5
|
@@ -46,7 +46,7 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
|
|
|
46
46
|
var resolvedWidthAppearance = widthAppearance !== null && widthAppearance !== void 0 ? widthAppearance : 'default';
|
|
47
47
|
var container = /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
48
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
49
|
-
className: (0, _runtime.ax)(["_11q7glyw _189eidpf _vchhusvi", resolvedWidthAppearance === 'slim' ? "
|
|
49
|
+
className: (0, _runtime.ax)(["_11q7glyw _189eidpf _vchhusvi", resolvedWidthAppearance === 'slim' ? "_1bsbtye8" : "_1bsb1f23", "_9spsglyw", !isAIEnabled && "_2rko1mok _bfhk1bhr _16qs130s", _HoverCardContent.hoverCardClassName]),
|
|
50
50
|
"data-testid": testId
|
|
51
51
|
}, props), children);
|
|
52
52
|
return isAIEnabled ? /*#__PURE__*/React.createElement(_aiPrism.default, {
|
|
@@ -253,8 +253,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
253
253
|
flexibleCardProps: flexibleCardProps,
|
|
254
254
|
isAISummaryEnabled: isAISummaryEnabled,
|
|
255
255
|
onActionClick: onActionClick,
|
|
256
|
-
titleBlockProps: titleBlockProps
|
|
257
|
-
url: url
|
|
256
|
+
titleBlockProps: titleBlockProps
|
|
258
257
|
}));
|
|
259
258
|
}
|
|
260
259
|
return null;
|
|
@@ -306,8 +305,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
306
305
|
flexibleCardProps: flexibleCardProps,
|
|
307
306
|
isAISummaryEnabled: isAISummaryEnabled,
|
|
308
307
|
onActionClick: onActionClick,
|
|
309
|
-
titleBlockProps: titleBlockProps
|
|
310
|
-
url: url
|
|
308
|
+
titleBlockProps: titleBlockProps
|
|
311
309
|
}));
|
|
312
310
|
}
|
|
313
311
|
return null;
|
|
@@ -19,7 +19,6 @@ var _analytics = require("../../../../../state/analytics");
|
|
|
19
19
|
var _useAiSummaryAction = _interopRequireDefault(require("../../../../../state/hooks/use-ai-summary-action"));
|
|
20
20
|
var _FlexibleCard = _interopRequireDefault(require("../../../../FlexibleCard"));
|
|
21
21
|
var _blocks = require("../../../../FlexibleCard/components/blocks");
|
|
22
|
-
var _aiSummaryBlock = require("../../../../FlexibleCard/components/blocks/ai-summary-block");
|
|
23
22
|
var _utils = require("../../../utils");
|
|
24
23
|
var _ImagePreview = _interopRequireDefault(require("../../ImagePreview"));
|
|
25
24
|
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); }
|
|
@@ -36,8 +35,7 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
|
|
|
36
35
|
onActionClick = _ref.onActionClick,
|
|
37
36
|
showRovoResolvedView = _ref.showRovoResolvedView,
|
|
38
37
|
titleBlockProps = _ref.titleBlockProps,
|
|
39
|
-
id = _ref.id
|
|
40
|
-
url = _ref.url;
|
|
38
|
+
id = _ref.id;
|
|
41
39
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
42
40
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
43
41
|
|
|
@@ -88,12 +86,10 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
|
|
|
88
86
|
secondary: secondary,
|
|
89
87
|
maxLines: 1,
|
|
90
88
|
size: _constants.SmartLinkSize.Medium
|
|
91
|
-
}),
|
|
89
|
+
}), isAISummaryEnabled ? /*#__PURE__*/_react.default.createElement(_blocks.AISummaryBlock, {
|
|
92
90
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
96
|
-
placeholder: snippet
|
|
91
|
+
placeholder: snippet,
|
|
92
|
+
is3PAuthRovoActionsExperimentOn: is3PAuthRovoActionsExperimentOn
|
|
97
93
|
}) : snippet, /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, {
|
|
98
94
|
testId: "hidden-snippet",
|
|
99
95
|
onRender: onSnippetRender,
|
package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css
CHANGED
|
@@ -1,16 +1,39 @@
|
|
|
1
1
|
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
2
4
|
._zulputpp{gap:var(--ds-space-150,9pt)}._13li1mok{border-top-left-radius:var(--ds-radius-large,8px)}
|
|
5
|
+
._154i1crf{top:9pt}
|
|
6
|
+
._154i1ul9{top:30px}
|
|
7
|
+
._154i1ylp{top:40px}
|
|
3
8
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
4
|
-
.
|
|
9
|
+
._19pkutpp{margin-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._1bah1h6o{justify-content:center}
|
|
5
11
|
._1bahesu3{justify-content:flex-end}
|
|
12
|
+
._1bsb7vkz{width:1pc}
|
|
13
|
+
._1bsbqslr{width:22px}
|
|
14
|
+
._1bsbzwfg{width:2pc}
|
|
6
15
|
._1e0c1txw{display:flex}
|
|
16
|
+
._1ltv1v6z{left:7px}
|
|
7
17
|
._1n261g80{flex-wrap:wrap}
|
|
18
|
+
._1o9zidpf{flex-shrink:0}
|
|
19
|
+
._1xi21v6z{right:7px}
|
|
20
|
+
._1xi2qslr{right:22px}
|
|
8
21
|
._4cvr1h6o{align-items:center}
|
|
9
|
-
.
|
|
22
|
+
._4t3izwfg{height:2pc}
|
|
23
|
+
._bfhk11bn{background-color:var(--ds-background-accent-gray-subtlest,#f1f2f4)}
|
|
24
|
+
._bfhk16e3{background-color:var(--ds-background-accent-blue-bolder,#1868db)}
|
|
25
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
26
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
10
27
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
11
|
-
.
|
|
28
|
+
._kqswh2mm{position:relative}
|
|
29
|
+
._kqswstnw{position:absolute}
|
|
12
30
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
13
31
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
32
|
+
._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
|
|
14
33
|
._qrwq1mok{border-top-right-radius:var(--ds-radius-large,8px)}
|
|
15
|
-
.
|
|
16
|
-
.
|
|
34
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
35
|
+
._syaz1yjp{color:var(--ds-icon-success,#22a06b)}
|
|
36
|
+
._syazuq3u{color:var(--ds-icon-accent-purple,#af59e1)}
|
|
37
|
+
._syazwejn{color:var(--ds-background-accent-gray-subtlest-hovered,#dddee1)}
|
|
38
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
39
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -14,48 +14,46 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _reactIntlNext = require("react-intl-next");
|
|
16
16
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var _globe = _interopRequireDefault(require("@atlaskit/icon/core/globe"));
|
|
21
|
-
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
17
|
+
var _aiGenerativeTextSummary = _interopRequireDefault(require("@atlaskit/icon/core/ai-generative-text-summary"));
|
|
18
|
+
var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
19
|
+
var _rovoChat = _interopRequireDefault(require("@atlaskit/icon/core/rovo-chat"));
|
|
22
20
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
21
|
+
var _logo = require("@atlaskit/logo");
|
|
23
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
23
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
25
24
|
var _constants = require("../../../../../constants");
|
|
26
25
|
var _messages = require("../../../../../messages");
|
|
27
26
|
var _actions = require("../../../../../state/actions");
|
|
27
|
+
var _FlexibleCard = _interopRequireDefault(require("../../../../FlexibleCard"));
|
|
28
|
+
var _elements = require("../../../../FlexibleCard/components/elements");
|
|
29
|
+
var _graphics = require("./graphics");
|
|
28
30
|
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); }
|
|
29
31
|
var ROVO_FEATURES = [{
|
|
30
|
-
icon:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
descMessage: _messages.messages.rovo_unauthorised_feature_document_summaries_desc,
|
|
34
|
-
testIdSuffix: 'document-summaries'
|
|
32
|
+
icon: _link.default,
|
|
33
|
+
message: _messages.messages.rovo_unauthorised_feature_clear_link_names,
|
|
34
|
+
testIdSuffix: 'clear-link-names'
|
|
35
35
|
}, {
|
|
36
|
-
icon:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
descMessage: _messages.messages.rovo_unauthorised_feature_related_content_desc,
|
|
40
|
-
testIdSuffix: 'related-content'
|
|
36
|
+
icon: _aiGenerativeTextSummary.default,
|
|
37
|
+
message: _messages.messages.rovo_unauthorised_feature_understand_linked_docs,
|
|
38
|
+
testIdSuffix: 'understand-linked-docs'
|
|
41
39
|
}, {
|
|
42
|
-
icon:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
descMessage: _messages.messages.rovo_unauthorised_feature_smart_suggestions_desc,
|
|
46
|
-
testIdSuffix: 'smart-suggestions'
|
|
47
|
-
}, {
|
|
48
|
-
icon: _appSwitcher.default,
|
|
49
|
-
appearance: 'teal',
|
|
50
|
-
titleMessage: _messages.messages.rovo_unauthorised_feature_cross_reference_title,
|
|
51
|
-
descMessage: _messages.messages.rovo_unauthorised_feature_cross_reference_desc,
|
|
52
|
-
testIdSuffix: 'cross-reference'
|
|
40
|
+
icon: _rovoChat.default,
|
|
41
|
+
message: _messages.messages.rovo_unauthorised_feature_go_deeper_smart_suggestions,
|
|
42
|
+
testIdSuffix: 'go-deeper-smart-suggestions'
|
|
53
43
|
}];
|
|
44
|
+
var sparkleWrapBase = null;
|
|
45
|
+
var sparkleLeftWrap = null;
|
|
46
|
+
var sparkleGreyRightWrap = null;
|
|
47
|
+
var sparkleVioletRightWrap = null;
|
|
54
48
|
var layoutStyles = {
|
|
55
|
-
|
|
49
|
+
connectorStroke: "_syaz1fxt _1e0c1txw _1o9zidpf",
|
|
50
|
+
atlassianIconTile: "_2rko1mok _1e0c1txw _4cvr1h6o _1bah1h6o _1bsbzwfg _4t3izwfg _bfhk16e3",
|
|
51
|
+
header: "_bfhk11bn _ca0q1ejb _u5f3pxbi _n3tdutpp _19bvpxbi _13li1mok _qrwq1mok _kqswh2mm",
|
|
52
|
+
headerGraphicRow: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1h6o _otyrutpp",
|
|
53
|
+
headerTitle: "_y3gn1h6o",
|
|
56
54
|
body: "_ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi",
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
featureIconCell: "_1e0c1txw _4cvr1h6o _1bah1h6o _1o9zidpf _1bsb7vkz",
|
|
56
|
+
footer: "_zulputpp _19pkutpp _ca0q1b66 _1e0c1txw _4cvr1h6o _1bahesu3 _1n261g80"
|
|
59
57
|
};
|
|
60
58
|
var RovoUnauthorisedView = function RovoUnauthorisedView(_ref) {
|
|
61
59
|
var _ref$id = _ref.id,
|
|
@@ -79,52 +77,76 @@ var RovoUnauthorisedView = function RovoUnauthorisedView(_ref) {
|
|
|
79
77
|
authorize(_constants.CardDisplay.HoverCardPreview);
|
|
80
78
|
}
|
|
81
79
|
}, [authorize, fireEvent]);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
var handleDismiss = (0, _react.useCallback)(function () {
|
|
81
|
+
if (onDismiss) {
|
|
82
|
+
fireEvent('ui.button.clicked.dismiss', {});
|
|
83
|
+
onDismiss();
|
|
84
|
+
}
|
|
85
|
+
}, [fireEvent, onDismiss]);
|
|
86
|
+
return /*#__PURE__*/React.createElement(_FlexibleCard.default, (0, _extends2.default)({}, flexibleCardProps, {
|
|
87
|
+
testId: testId,
|
|
88
|
+
ui: {
|
|
89
|
+
hideElevation: true,
|
|
90
|
+
hideBackground: true,
|
|
91
|
+
removeBlockRestriction: true,
|
|
92
|
+
hidePadding: true
|
|
93
|
+
}
|
|
94
|
+
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
85
95
|
xcss: layoutStyles.header
|
|
96
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syaz1yjp _154i1ul9 _1ltv1v6z"])
|
|
98
|
+
}, /*#__PURE__*/React.createElement(_graphics.DenseSparkle, null)), /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syazwejn _154i1crf _1xi2qslr"])
|
|
100
|
+
}, /*#__PURE__*/React.createElement(_graphics.SparseSparkle, null)), /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syazuq3u _1bsbqslr _154i1ylp _1xi21v6z"])
|
|
102
|
+
}, /*#__PURE__*/React.createElement(_graphics.DenseSparkle, null)), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
103
|
+
xcss: layoutStyles.headerGraphicRow
|
|
104
|
+
}, /*#__PURE__*/React.createElement(_elements.LinkIcon, {
|
|
105
|
+
size: _constants.SmartLinkSize.Medium,
|
|
106
|
+
isTiledIcon: true
|
|
107
|
+
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
108
|
+
xcss: layoutStyles.connectorStroke
|
|
109
|
+
}, /*#__PURE__*/React.createElement(_graphics.SquiglyArrow, null)), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
110
|
+
xcss: layoutStyles.atlassianIconTile
|
|
111
|
+
}, /*#__PURE__*/React.createElement(_logo.AtlassianIcon, {
|
|
112
|
+
appearance: "inverse",
|
|
113
|
+
size: "small"
|
|
114
|
+
}))), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
115
|
+
xcss: layoutStyles.headerTitle
|
|
86
116
|
}, /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
87
117
|
weight: "bold",
|
|
88
118
|
size: "medium",
|
|
89
|
-
color: "color.text
|
|
119
|
+
color: "color.text"
|
|
90
120
|
}, providerName ? /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.rovo_unauthorised_title, {
|
|
91
121
|
values: {
|
|
92
122
|
context: providerName
|
|
93
123
|
}
|
|
94
|
-
})) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.rovo_unauthorised_title_no_provider))), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
124
|
+
})) : /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.rovo_unauthorised_title_no_provider)))), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
95
125
|
xcss: layoutStyles.body
|
|
96
126
|
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
97
127
|
space: "space.050"
|
|
98
128
|
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
99
129
|
space: "space.200"
|
|
100
130
|
}, ROVO_FEATURES.map(function (feature) {
|
|
131
|
+
var FeatureIcon = feature.icon;
|
|
101
132
|
return /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
102
133
|
key: feature.testIdSuffix,
|
|
103
|
-
space: "space.
|
|
134
|
+
space: "space.150",
|
|
104
135
|
alignBlock: "center",
|
|
105
|
-
testId: "".concat(testId, "-feature-row-").concat(feature.testIdSuffix)
|
|
106
|
-
}, /*#__PURE__*/React.createElement(_icon.IconTile, {
|
|
107
|
-
icon: feature.icon,
|
|
108
|
-
label: '',
|
|
109
|
-
appearance: feature.appearance,
|
|
110
|
-
size: "medium",
|
|
111
136
|
testId: "".concat(testId, "-feature-").concat(feature.testIdSuffix)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
}, /*#__PURE__*/React.createElement(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, feature.titleMessage)), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
118
|
-
size: "small",
|
|
119
|
-
color: "color.text.subtlest"
|
|
120
|
-
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, feature.descMessage))));
|
|
137
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
138
|
+
xcss: layoutStyles.featureIconCell
|
|
139
|
+
}, /*#__PURE__*/React.createElement(FeatureIcon, {
|
|
140
|
+
label: ""
|
|
141
|
+
})), /*#__PURE__*/React.createElement(_compiled.Text, null, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, feature.message)));
|
|
121
142
|
})), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
122
143
|
xcss: layoutStyles.footer
|
|
123
|
-
}, /*#__PURE__*/React.createElement(_compiled.
|
|
124
|
-
|
|
144
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
145
|
+
space: "space.050"
|
|
125
146
|
}, /*#__PURE__*/React.createElement(_new.default, {
|
|
126
147
|
appearance: "subtle",
|
|
127
|
-
|
|
148
|
+
spacing: "compact",
|
|
149
|
+
onClick: handleDismiss,
|
|
128
150
|
testId: "".concat(testId, "-not-now")
|
|
129
151
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.messages.rovo_unauthorised_not_now)), /*#__PURE__*/React.createElement(_new.default, {
|
|
130
152
|
appearance: "primary",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* graphics.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SquiglyArrow = exports.SparseSparkle = exports.DenseSparkle = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
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); }
|
|
12
|
+
var DenseSparkle = exports.DenseSparkle = function DenseSparkle() {
|
|
13
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
14
|
+
width: "33",
|
|
15
|
+
height: "33",
|
|
16
|
+
viewBox: "0 0 33 33",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
d: "M 18.1377,8.5584 C 19.820521,9.7606431 19.569624,7.0234324 19.891314,6.0724492 20.627318,4.4834923 20.654624,2.6485663 20.986387,0.9358225 20.985763,-0.63106096 19.153938,0.29529924 19.30907,1.4628594 18.581402,3.0380165 18.941526,4.9281736 18.3064,6.59809 18.189624,7.241971 17.98497,7.9130416 18.1377,8.5584 Z M 14.048,8.62872 C 16.108587,8.8291383 14.519035,6.5848441 14.323941,5.6001158 14.16595,3.856369 13.270155,2.254813 12.701225,0.60606587 11.918719,-0.74933808 10.791962,0.96396467 11.513059,1.8973545 11.672048,3.6244988 12.925689,5.0825474 13.2127,6.8456 13.436435,7.4621245 13.581302,8.1376081 14.048,8.62872 Z M 10.5438,10.7324 C 12.427639,9.875884 9.9317744,8.7259408 9.2689606,7.9718267 8.2625,6.5396335 6.6886891,5.5966404 5.36875,4.4566662 4.0131223,3.6745583 3.8966957,5.7235932 4.9866023,6.1718516 5.9867147,7.5895644 7.8032328,8.2251817 8.93219,9.61022 9.4294433,10.031063 9.9148481,10.555839 10.5438,10.7324 Z M 8.55828,14.3099 C 9.7604964,12.627122 7.023384,12.877794 6.0723265,12.556262 4.4833477,11.820331 2.6484558,11.792914 0.93570025,11.461212 c -1.5668845,6.26e-4 -0.64052126,1.832452 0.52703915,1.677318 1.5751539,0.727694 3.4653396,0.36738 5.1352306,1.00267 0.6438861,0.116827 1.314933,0.321333 1.96031,0.1687 z m 0.07008,4.0894 C 8.828733,16.338698 6.5844599,17.928323 5.5997508,18.123433 3.8560002,18.281408 2.2543901,19.1771 0.60569938,19.746162 -0.74955704,20.529217 0.96332374,21.653982 1.8969889,20.93548 3.6240071,20.774217 5.0821994,19.522267 6.84523,19.2346 7.4618123,19.010984 8.1372369,18.866007 8.62836,18.3993 Z m 2.10414,3.5072 C 9.8760472,20.022637 8.7260556,22.518484 7.9719398,23.181273 6.5393153,24.18655 5.6000777,25.76278 4.4595963,27.081513 3.6775168,28.437135 5.7265095,28.553572 6.1747816,27.463666 7.5925047,26.463552 8.2280912,24.647029 9.61315,23.5181 c 0.418283,-0.497326 0.951352,-0.985318 1.11935,-1.6116 z m 3.5775,1.9828 c -1.682815,-1.202255 -1.431924,1.534991 -1.753614,2.485976 -0.736023,1.588942 -0.763314,3.423872 -1.095073,5.136612 6.39e-4,1.566887 1.832425,0.640518 1.677317,-0.527032 0.727655,-1.57517 0.367555,-3.465328 1.00267,-5.135256 0.116772,-0.64388 0.321426,-1.314917 0.1687,-1.9603 z m 4.0891,-0.0702 c -2.060649,-0.200406 -0.470945,2.043891 -0.275873,3.028605 0.157937,1.743716 1.053669,3.345319 1.622686,4.994007 0.782496,1.355437 1.909207,-0.357878 1.188142,-1.291274 C 20.77504,28.823312 19.521385,27.365256 19.2344,25.6022 19.010647,24.985692 18.865809,24.310193 18.3991,23.8191 Z m 3.5074,-2.1038 c -1.88386,0.856461 0.611976,2.006423 1.274773,2.760542 1.006466,1.432207 2.580314,2.375182 3.90024,3.515183 1.355682,0.782012 1.472001,-1.26689 0.382153,-1.715209 C 26.463526,24.858147 24.647022,24.222555 23.5181,22.8375 23.02082,22.416678 22.53553,21.891757 21.9065,21.7153 Z m 1.9826,-3.5775 c -1.202233,1.682763 1.53485,1.432123 2.485905,1.753638 1.588978,0.735928 3.423859,0.763338 5.136608,1.095049 1.566893,-5.94e-4 0.640594,-1.832443 -0.527,-1.677317 C 29.409454,18.581486 27.519286,18.941792 25.8494,18.3065 25.205557,18.189667 24.534178,17.985164 23.8891,18.1378 Z m -0.0704,-4.0894 c -0.200405,2.06064 2.043899,0.470968 3.028605,0.275867 1.743759,-0.15797 3.345359,-1.053678 4.994083,-1.622679 1.355308,-0.782551 -0.357965,-1.909199 -1.29135,-1.188185 -1.727151,0.159054 -3.185218,1.412574 -4.948238,1.699697 -0.616574,0.223619 -1.291971,0.368616 -1.7831,0.8353 z M 21.7152,10.544 c 0.85645,1.88385 2.006449,-0.6119565 2.760542,-1.2747918 1.432624,-1.0052563 2.371905,-2.581444 3.512333,-3.9002107 C 28.770204,4.0133778 26.721159,3.8969258 26.272916,4.986848 24.855171,5.9869493 24.21954,7.8034667 22.8345,8.93243 22.416234,9.4297408 21.883198,9.917751 21.7152,10.544 Z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
var SparseSparkle = exports.SparseSparkle = function SparseSparkle() {
|
|
25
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
26
|
+
width: "35",
|
|
27
|
+
height: "34",
|
|
28
|
+
viewBox: "0 0 35 34",
|
|
29
|
+
fill: "none",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
d: "m 21.4614,9.02651 c 1.774882,1.267966 1.510442,-1.6188099 1.849578,-2.6219063 0.776223,-1.6758612 0.805105,-3.61111 1.154947,-5.41753458 C 24.447185,-0.68027653 22.513317,0.28790594 22.69688,1.5429258 21.929419,3.2042498 22.309243,5.1977402 21.6394,6.95899 21.51609,7.6380728 21.300546,8.3458903 21.4614,9.02651 Z m -9.1629,0.611 C 14.479174,9.6115402 12.55696,7.4386694 12.239238,6.4296801 11.873994,4.6211661 10.751762,3.0453042 9.9684287,1.3818975 9.0519692,0.02745097 7.9717763,1.9817201 8.8672911,2.872095 9.2298246,4.664959 10.714117,6.0484595 11.2158,7.86365 c 0.30309,0.6222222 0.536236,1.3131609 1.0827,1.77386 z M 9.02651,14.4282 c 1.267976,-1.774848 -1.6188386,-1.510386 -2.6219063,-1.849578 -1.6758612,-0.776223 -3.61111,-0.805105 -5.41753458,-1.154947 -1.66734565,0.01874 -0.69916318,1.952608 0.55585668,1.769045 1.661324,0.767461 3.6548144,0.387637 5.4160642,1.05748 0.6790828,0.12331 1.3869003,0.338854 2.06752,0.178 z m 0.79812,7.0123 C 9.6506342,19.264889 7.6156756,21.33182 6.6290172,21.715218 4.8462675,22.200193 3.3480398,23.427583 1.7425513,24.327425 0.48184315,25.389439 2.4687817,26.243895 3.3047292,25.323131 5.0679233,24.838194 6.3485808,23.265036 8.1279,22.6448 8.727623,22.296964 9.4030508,22.019757 9.82463,21.4405 Z m 4.60367,2.4235 c -1.774857,-1.267999 -1.510322,1.618845 -1.849554,2.621865 -0.776222,1.675869 -0.805026,3.611122 -1.154946,5.417535 0.01882,1.667361 1.952587,0.699167 1.769034,-0.555848 0.767463,-1.661311 0.387597,-3.654815 1.057466,-5.416052 0.123252,-0.679055 0.338956,-1.387036 0.178,-2.0675 z m 5.9772,0.261 c -2.173333,-0.211383 -0.496768,2.155705 -0.291021,3.19429 0.166568,1.839106 1.111399,3.528228 1.711458,5.267122 0.84816,1.433261 2.042749,-0.366933 1.253122,-1.36187 C 22.911487,29.402909 21.589251,27.865123 21.2864,26.0057 21.05053,25.355401 20.897759,24.642984 20.4055,24.125 Z m 4.3514,-4.2566 c -1.918413,1.03763 0.793683,2.065164 1.542216,2.81224 1.163691,1.434148 2.891651,2.307238 4.359284,3.41661 1.503797,0.716781 1.491809,-1.445265 0.281572,-1.83218 C 29.783911,22.847779 27.827538,22.311391 26.5397,20.9362 25.981077,20.526301 25.453402,20.026312 24.7569,19.8684 Z m 0.2667,-6.5645 c -0.61356,2.094147 2.024993,0.892339 3.082584,0.881972 1.837741,0.184903 3.674321,-0.429733 5.494903,-0.694759 1.566146,-0.568664 0.02093,-2.078292 -1.105917,-1.48934 -1.8201,-0.172658 -3.577509,0.836398 -5.46037,0.783027 -0.682737,0.109486 -1.416687,0.125746 -2.0112,0.5191 z"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
var SquiglyArrow = exports.SquiglyArrow = function SquiglyArrow() {
|
|
37
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
38
|
+
width: "31",
|
|
39
|
+
height: "21",
|
|
40
|
+
viewBox: "0 0 31 21",
|
|
41
|
+
fill: "none",
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
43
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
44
|
+
fill: "currentColor",
|
|
45
|
+
d: "M 21.853446,0.12040609 C 20.167706,1.2017532 24.715673,2.4997309 25.755055,3.0673371 25.02723,3.2209011 21.984019,3.856737 20.991485,3.9633568 16.045179,5.5890307 11.446918,7.8287185 9.1072914,12.742806 7.8983204,12.284216 5.7117383,11.960731 4.1643839,12.645906 2.2323901,13.501397 0.58356937,15.13985 0.06015349,17.184987 0.06666279,19.997869 1.7741124,16.035826 2.7542112,15.14763 c 1.6305676,-1.477671 4.7339707,-2.002323 5.8717147,-1.083896 -0.6742412,2.17406 -0.7914961,6.013849 1.8803011,6.750565 2.072285,0.571408 3.768061,-1.977378 2.786707,-4.245231 C 12.524186,14.792533 11.187386,13.937797 10.469825,13.425746 12.484573,8.4842061 19.328854,5.5947574 24.21859,4.6647774 25.288915,4.5397793 29.069777,3.0700705 27.388804,4.826459 26.472831,6.3589647 23.793814,8.1658647 23.628028,9.0737265 23.1618,11.626835 26.092344,8.4605266 26.699318,7.7349157 27.826169,6.2825775 29.856947,4.4211835 30.479445,3.5562506 28.766042,2.8991905 26.575439,1.3555612 24.569756,0.89998649 23.662177,0.65006782 22.790889,0.24992986 21.853446,0.12040609 Z M 9.9983561,14.652336 C 11.498101,15.3957 13.411213,18.565161 11.127761,19.347839 9.1996093,18.911365 9.5916528,16.22149 9.9983561,14.652336 Z"
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/es2019/messages.js
CHANGED
|
@@ -861,45 +861,20 @@ export const messages = defineMessages({
|
|
|
861
861
|
defaultMessage: 'Get smarter workflows by connecting your account',
|
|
862
862
|
description: 'Banner headline in Rovo unauthorised hover card header when the provider name is unknown.'
|
|
863
863
|
},
|
|
864
|
-
|
|
865
|
-
id: 'fabric.linking.rovo_unauthorised.feature.
|
|
866
|
-
defaultMessage: '
|
|
867
|
-
description: '
|
|
868
|
-
},
|
|
869
|
-
|
|
870
|
-
id: 'fabric.linking.rovo_unauthorised.feature.
|
|
871
|
-
defaultMessage: 'Understand
|
|
872
|
-
description: '
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
id: 'fabric.linking.rovo_unauthorised.feature.
|
|
876
|
-
defaultMessage: '
|
|
877
|
-
description: '
|
|
878
|
-
},
|
|
879
|
-
rovo_unauthorised_feature_smart_suggestions_desc: {
|
|
880
|
-
id: 'fabric.linking.rovo_unauthorised.feature.smart_suggestions.desc',
|
|
881
|
-
defaultMessage: 'Strengthen your drafts with actionable feedback',
|
|
882
|
-
description: 'Feature description in Rovo unauthorised view.'
|
|
883
|
-
},
|
|
884
|
-
rovo_unauthorised_feature_cross_reference_title: {
|
|
885
|
-
id: 'fabric.linking.rovo_unauthorised.feature.cross_reference.title',
|
|
886
|
-
defaultMessage: 'Tracked link mentions',
|
|
887
|
-
description: 'Feature title in Rovo unauthorised view.'
|
|
888
|
-
},
|
|
889
|
-
rovo_unauthorised_feature_cross_reference_desc: {
|
|
890
|
-
id: 'fabric.linking.rovo_unauthorised.feature.cross_reference.desc',
|
|
891
|
-
defaultMessage: 'Never miss where your work is referenced',
|
|
892
|
-
description: 'Feature description in Rovo unauthorised view.'
|
|
893
|
-
},
|
|
894
|
-
rovo_unauthorised_feature_related_content_title: {
|
|
895
|
-
id: 'fabric.linking.rovo_unauthorised.feature.related_content.title',
|
|
896
|
-
defaultMessage: 'Related content',
|
|
897
|
-
description: 'Feature title in Rovo unauthorised view.'
|
|
898
|
-
},
|
|
899
|
-
rovo_unauthorised_feature_related_content_desc: {
|
|
900
|
-
id: 'fabric.linking.rovo_unauthorised.feature.related_content.desc',
|
|
901
|
-
defaultMessage: 'Find relevant work and why it matters',
|
|
902
|
-
description: 'Feature description in Rovo unauthorised view.'
|
|
864
|
+
rovo_unauthorised_feature_clear_link_names: {
|
|
865
|
+
id: 'fabric.linking.rovo_unauthorised.feature.clear_link_names',
|
|
866
|
+
defaultMessage: 'Turn long URL into clear link names',
|
|
867
|
+
description: 'First feature bullet in Rovo unauthorised hover card.'
|
|
868
|
+
},
|
|
869
|
+
rovo_unauthorised_feature_understand_linked_docs: {
|
|
870
|
+
id: 'fabric.linking.rovo_unauthorised.feature.understand_linked_docs',
|
|
871
|
+
defaultMessage: 'Understand linked docs in seconds',
|
|
872
|
+
description: 'Second feature bullet in Rovo unauthorised hover card.'
|
|
873
|
+
},
|
|
874
|
+
rovo_unauthorised_feature_go_deeper_smart_suggestions: {
|
|
875
|
+
id: 'fabric.linking.rovo_unauthorised.feature.go_deeper_smart_suggestions',
|
|
876
|
+
defaultMessage: 'Go deeper with smart suggestions',
|
|
877
|
+
description: 'Third feature bullet in Rovo unauthorised hover card.'
|
|
903
878
|
},
|
|
904
879
|
rovo_unauthorised_connect_account: {
|
|
905
880
|
id: 'fabric.linking.rovo_unauthorised.connect_account',
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._1bah1h6o{justify-content:center}
|
|
3
4
|
._1bsb1osq{width:100%}
|
|
5
|
+
._1bsb1tcg{width:24px}
|
|
6
|
+
._1e0c116y{display:inline-flex}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._4t3i1tcg{height:24px}
|
|
4
9
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
5
10
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
6
11
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -8,11 +8,13 @@ import { cx } from '@atlaskit/css';
|
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import Spinner from '@atlaskit/spinner';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
12
|
import { getPrimitivesInlineSpaceBySize } from '../../../utils';
|
|
12
13
|
import ActionIcon from '../action-icon';
|
|
13
14
|
const styles = {
|
|
14
15
|
button: "_bfhksm61 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _1ah31i6y _irr31dpa _1di6fcek",
|
|
15
|
-
content: "_11c8wadc _syazi7uo"
|
|
16
|
+
content: "_11c8wadc _syazi7uo",
|
|
17
|
+
spinner: "_1bsb1tcg _4t3i1tcg _1e0c116y _4cvr1h6o _1bah1h6o"
|
|
16
18
|
};
|
|
17
19
|
const ActionButton = ({
|
|
18
20
|
content,
|
|
@@ -34,7 +36,12 @@ const ActionButton = ({
|
|
|
34
36
|
}
|
|
35
37
|
}, [isDisabled, isLoading, onClickCallback]);
|
|
36
38
|
const icon = iconOption && isLoading ? /*#__PURE__*/React.createElement(ActionIcon, {
|
|
37
|
-
icon: /*#__PURE__*/React.createElement(
|
|
39
|
+
icon: expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true) && fg('platform_sl_3p_auth_rovo_action_kill_switch') ? /*#__PURE__*/React.createElement(Box, {
|
|
40
|
+
xcss: styles.spinner
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
42
|
+
size: 16,
|
|
43
|
+
testId: `${testId}-loading`
|
|
44
|
+
})) : /*#__PURE__*/React.createElement(Spinner, {
|
|
38
45
|
testId: `${testId}-loading`
|
|
39
46
|
})
|
|
40
47
|
}) : iconOption;
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
7
|
import { messages } from '../../../../../messages';
|
|
7
8
|
import Action from '../action';
|
|
@@ -35,11 +36,13 @@ export function AISummariseAction({
|
|
|
35
36
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
36
37
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
37
38
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
|
|
38
|
-
icon: /*#__PURE__*/React.createElement(AiIcon, {
|
|
39
|
+
icon: /*#__PURE__*/React.createElement(AiIcon, _extends({
|
|
39
40
|
spacing: "spacious",
|
|
40
41
|
color: "currentColor",
|
|
41
42
|
label: "Summarise with AI"
|
|
42
|
-
})
|
|
43
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
44
|
+
size: props.iconSize
|
|
45
|
+
} : {})),
|
|
43
46
|
onClick: handleActionClick,
|
|
44
47
|
testId: `${testId}-summarise-action`,
|
|
45
48
|
isLoading: status === 'loading',
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
5
6
|
import { AISummariseAction } from './ai-summarise-action';
|
|
6
|
-
import { CopySummaryAction } from './copy-summary-action';
|
|
7
|
+
import { CopySummaryAction, CopySummaryActionNew } from './copy-summary-action';
|
|
7
8
|
export const AISummaryActionComponent = props => {
|
|
8
9
|
const {
|
|
9
10
|
url,
|
|
@@ -20,7 +21,10 @@ export const AISummaryActionComponent = props => {
|
|
|
20
21
|
useEffect(() => {
|
|
21
22
|
onLoadingChange === null || onLoadingChange === void 0 ? void 0 : onLoadingChange(status === 'loading');
|
|
22
23
|
}, [onLoadingChange, status]);
|
|
23
|
-
return status === 'done' ? /*#__PURE__*/React.createElement(
|
|
24
|
+
return status === 'done' ? fg('platform_sl_3p_auth_rovo_action_kill_switch') ? /*#__PURE__*/React.createElement(CopySummaryActionNew, _extends({}, props, {
|
|
25
|
+
summary: content,
|
|
26
|
+
testId: testId
|
|
27
|
+
})) : /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
24
28
|
testId: testId,
|
|
25
29
|
content: content
|
|
26
30
|
})) : /*#__PURE__*/React.createElement(AISummariseAction, _extends({}, props, {
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -34,4 +34,35 @@ export function CopySummaryAction({
|
|
|
34
34
|
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage),
|
|
35
35
|
tooltipOnHide: () => setTooltipMessage(messages.copy_summary_action_description)
|
|
36
36
|
}, props));
|
|
37
|
+
}
|
|
38
|
+
export function CopySummaryActionNew({
|
|
39
|
+
url,
|
|
40
|
+
onClick: onClickCallback,
|
|
41
|
+
summary = '',
|
|
42
|
+
testId,
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
const {
|
|
46
|
+
fireEvent
|
|
47
|
+
} = useAnalyticsEvents();
|
|
48
|
+
const [tooltipMessage, setTooltipMessage] = useState(messages.copy_summary_action_description);
|
|
49
|
+
const handleCopySummaryClick = useCallback(async () => {
|
|
50
|
+
fireEvent('ui.button.clicked.copySummary', {});
|
|
51
|
+
await navigator.clipboard.writeText(summary);
|
|
52
|
+
setTooltipMessage(messages.copied_summary_action_description);
|
|
53
|
+
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
|
|
54
|
+
}, [fireEvent, onClickCallback, summary]);
|
|
55
|
+
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
56
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
|
|
57
|
+
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
spacing: "spacious",
|
|
60
|
+
label: "Copy Summary",
|
|
61
|
+
size: props.iconSize
|
|
62
|
+
}),
|
|
63
|
+
onClick: handleCopySummaryClick,
|
|
64
|
+
testId: `${testId}-copy-summary-action`,
|
|
65
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage),
|
|
66
|
+
tooltipOnHide: () => setTooltipMessage(messages.copy_summary_action_description)
|
|
67
|
+
}, props));
|
|
37
68
|
}
|
|
@@ -4,11 +4,9 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { di } from 'react-magnetic-di';
|
|
7
|
-
import { FadeIn, StaggeredEntrance } from '@atlaskit/motion';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { InternalActionName, SmartLinkSize } from '../../../../../constants';
|
|
10
9
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
11
|
-
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
12
10
|
import * as Actions from '../../actions';
|
|
13
11
|
import { ActionFooter } from './action-footer';
|
|
14
12
|
const ignoreContainerPaddingStyles = null;
|
|
@@ -54,7 +52,6 @@ const ActionBlock = ({
|
|
|
54
52
|
var _context$actions;
|
|
55
53
|
const context = useFlexibleUiContext();
|
|
56
54
|
const ui = useFlexibleUiOptionContext();
|
|
57
|
-
const url = context === null || context === void 0 ? void 0 : context.url;
|
|
58
55
|
const isRovoChatActionAvailable = is3PAuthRovoActionsExperimentOn && fg('platform_sl_3p_auth_rovo_action_kill_switch') ? (context === null || context === void 0 ? void 0 : (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[InternalActionName.RovoChatAction]) !== undefined : undefined;
|
|
59
56
|
const [message, setMessage] = useState();
|
|
60
57
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -75,17 +72,11 @@ const ActionBlock = ({
|
|
|
75
72
|
}
|
|
76
73
|
const arr = fg('platform_sl_3p_auth_rovo_action_kill_switch') ? isRovoChatActionAvailable ? [InternalActionName.RovoChatAction] : Object.keys(context.actions).filter(name => name !== InternalActionName.RovoChatAction) : Object.keys(context.actions);
|
|
77
74
|
arr.sort(sort);
|
|
78
|
-
const renderAction =
|
|
75
|
+
const renderAction = name => {
|
|
79
76
|
const Action = name in Actions ? Actions[name] : undefined;
|
|
80
77
|
if (!Action) {
|
|
81
78
|
return null;
|
|
82
79
|
}
|
|
83
|
-
const style = padding || motionStyle ? {
|
|
84
|
-
...(motionStyle || {}),
|
|
85
|
-
...(padding && {
|
|
86
|
-
paddingInline: padding
|
|
87
|
-
})
|
|
88
|
-
} : undefined;
|
|
89
80
|
return /*#__PURE__*/React.createElement(Action, {
|
|
90
81
|
as: "stack-item",
|
|
91
82
|
spaceInline: spaceInline,
|
|
@@ -94,35 +85,16 @@ const ActionBlock = ({
|
|
|
94
85
|
onError: onError,
|
|
95
86
|
onLoadingChange: onLoadingChange,
|
|
96
87
|
size: size || (ui === null || ui === void 0 ? void 0 : ui.size)
|
|
97
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
98
89
|
,
|
|
99
|
-
style:
|
|
90
|
+
style: padding && {
|
|
91
|
+
paddingInline: padding
|
|
92
|
+
},
|
|
100
93
|
hideTooltip: isLoading
|
|
101
94
|
});
|
|
102
95
|
};
|
|
103
|
-
return
|
|
104
|
-
columns: 1
|
|
105
|
-
}, arr.map((name, index) => /*#__PURE__*/React.createElement(FadeIn, {
|
|
106
|
-
duration: 'large',
|
|
107
|
-
key: index
|
|
108
|
-
}, motion => renderAction(name, motion.style)))) : arr.map(name => renderAction(name));
|
|
96
|
+
return arr.map(name => renderAction(name));
|
|
109
97
|
}, [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]);
|
|
110
|
-
const aiSummaryConfig = fg('platform_sl_3p_auth_rovo_action_kill_switch') ?
|
|
111
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
112
|
-
useAISummaryAction(url !== null && url !== void 0 ? url : '') : undefined;
|
|
113
|
-
if (fg('platform_sl_3p_auth_rovo_action_kill_switch')) {
|
|
114
|
-
const shouldShowActions = !isRovoChatActionAvailable || isRovoChatActionAvailable && ((aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.state.status) === 'done' || (aiSummaryConfig === null || aiSummaryConfig === void 0 ? void 0 : aiSummaryConfig.state.status) === 'error');
|
|
115
|
-
return actions && shouldShowActions ? /*#__PURE__*/React.createElement("div", {
|
|
116
|
-
ref: blockRef,
|
|
117
|
-
"data-testid": testId
|
|
118
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
119
|
-
,
|
|
120
|
-
className: ax(["_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g", className])
|
|
121
|
-
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
122
|
-
message: message,
|
|
123
|
-
testId: testId
|
|
124
|
-
})) : null;
|
|
125
|
-
}
|
|
126
98
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
127
99
|
ref: blockRef,
|
|
128
100
|
"data-testid": testId
|