@atlaskit/smart-card 44.23.0 → 44.23.2
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 +16 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- 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/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
- package/dist/cjs/extractors/flexible/actions/index.js +1 -1
- package/dist/cjs/extractors/flexible/index.js +1 -1
- package/dist/cjs/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +23 -75
- package/dist/cjs/view/CardWithUrl/component.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +7 -15
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +4 -11
- package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -8
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- 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/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
- package/dist/es2019/extractors/flexible/actions/index.js +1 -1
- package/dist/es2019/extractors/flexible/index.js +1 -1
- package/dist/es2019/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +3 -26
- package/dist/es2019/view/CardWithUrl/component.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/es2019/view/FlexibleCard/index.js +2 -2
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +7 -16
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +3 -10
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- 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/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
- package/dist/esm/extractors/flexible/actions/index.js +1 -1
- package/dist/esm/extractors/flexible/index.js +1 -1
- package/dist/esm/state/hooks/use-rovo-chat/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +23 -63
- package/dist/esm/view/CardWithUrl/component.js +3 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/esm/view/FlexibleCard/index.js +2 -2
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +7 -15
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +4 -11
- package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +3 -9
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -3
- package/dist/types/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/package.json +5 -8
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
- package/dist/cjs/state/hooks/use-inline-action-nudge-experiment/index.js +0 -54
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -44
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
- package/dist/es2019/state/hooks/use-inline-action-nudge-experiment/index.js +0 -48
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -36
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
- package/dist/esm/state/hooks/use-inline-action-nudge-experiment/index.js +0 -47
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -35
- package/dist/types/state/hooks/use-inline-action-nudge-experiment/index.d.ts +0 -24
- package/dist/types/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +0 -12
- package/dist/types-ts4.5/state/hooks/use-inline-action-nudge-experiment/index.d.ts +0 -24
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +0 -12
package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* ask-rovo-section-header.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
import "./ask-rovo-section-header.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl';
|
|
6
|
-
import { messages } from '../../../../../messages';
|
|
7
|
-
import RovoHexLogo from '../../../assets/rovo-hex-logo';
|
|
8
|
-
const sectionHeaderStyles = null;
|
|
9
|
-
const sectionHeaderDividerStyles = null;
|
|
10
|
-
const sectionHeaderRowStyles = null;
|
|
11
|
-
const sectionHeaderLabelStyles = null;
|
|
12
|
-
/**
|
|
13
|
-
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
14
|
-
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
15
|
-
*
|
|
16
|
-
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
17
|
-
* Rovo hex logo and the "Ask Rovo" label.
|
|
18
|
-
*/
|
|
19
|
-
const AskRovoSectionHeader = ({
|
|
20
|
-
testId
|
|
21
|
-
}) => {
|
|
22
|
-
const intl = useIntl();
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
"data-testid": testId,
|
|
25
|
-
className: ax(["_zulputpp _1e0c1txw _2lx21bp4 _otyrutpp _18u0v77o _1bsb1osq _1wpz1fhb"])
|
|
26
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
role: "separator",
|
|
28
|
-
"aria-orientation": "horizontal",
|
|
29
|
-
className: ax(["_4t3it94y _1bsb1osq _bfhk1l7x"])
|
|
30
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
className: ax(["_zulp1b66 _1e0c1txw _4cvr1h6o _19bv1b66"])
|
|
32
|
-
}, /*#__PURE__*/React.createElement(RovoHexLogo, null), /*#__PURE__*/React.createElement("span", {
|
|
33
|
-
className: ax(["_11c8wadc _syazazsu _k48p1wq8"])
|
|
34
|
-
}, intl.formatMessage(messages.rovo_chat_action_section_header))));
|
|
35
|
-
};
|
|
36
|
-
export default AskRovoSectionHeader;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
4
|
-
import { getExtensionKey } from '../../helpers';
|
|
5
|
-
import { useSmartCardState } from '../../store';
|
|
6
|
-
import useRovoConfig from '../use-rovo-config';
|
|
7
|
-
var ELIGIBLE_EXTENSION_KEYS = new Set(['slack-object-provider', 'google-object-provider', 'onedrive-object-provider', 'github-object-provider', 'ms-teams-object-provider', 'gitlab-object-provider', 'salesforce-object-provider']);
|
|
8
|
-
var NOT_ENABLED_RESULT = {
|
|
9
|
-
isEnabled: false
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Returns whether the rovogrowth-640-inline-action-nudge-exp experiment
|
|
14
|
-
* is enabled for the current user and link context.
|
|
15
|
-
*
|
|
16
|
-
* All eligibility criteria are consolidated here:
|
|
17
|
-
* 1. Rovo chat must be enabled for the tenant.
|
|
18
|
-
* 2. The consumer must have opted in via actionOptions.rovoChatAction.optIn.
|
|
19
|
-
* 3. The link must support the RovoActions feature.
|
|
20
|
-
* 4. The extension key must be one of the supported options.
|
|
21
|
-
* 5. The experiment value must be true (via tmp-editor-statsig).
|
|
22
|
-
*
|
|
23
|
-
* The extension key is derived from the card store via the resolved URL,
|
|
24
|
-
* so callers don't need to thread it as a prop.
|
|
25
|
-
*/
|
|
26
|
-
var useInlineActionNudgeExperiment = function useInlineActionNudgeExperiment(url, showHoverPreview, actionOptions) {
|
|
27
|
-
var _actionOptions$rovoCh, _actionOptions$rovoCh2;
|
|
28
|
-
var _useRovoConfig = useRovoConfig(),
|
|
29
|
-
rovoConfig = _useRovoConfig.rovoOptions;
|
|
30
|
-
var isRovoChatEnabled = getIsRovoChatEnabled(rovoConfig);
|
|
31
|
-
var cardState = useSmartCardState(url !== null && url !== void 0 ? url : '');
|
|
32
|
-
var extensionKey = getExtensionKey(cardState.details);
|
|
33
|
-
var isRovoChatActionOptedIn = (_actionOptions$rovoCh = actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh2 = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh2 === void 0 ? void 0 : _actionOptions$rovoCh2.optIn) !== null && _actionOptions$rovoCh !== void 0 ? _actionOptions$rovoCh : false;
|
|
34
|
-
return useMemo(function () {
|
|
35
|
-
if (!isRovoChatEnabled || !showHoverPreview || !url || !isRovoChatActionOptedIn) {
|
|
36
|
-
return NOT_ENABLED_RESULT;
|
|
37
|
-
}
|
|
38
|
-
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
39
|
-
return NOT_ENABLED_RESULT;
|
|
40
|
-
}
|
|
41
|
-
var isEnabled = expValEquals('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
42
|
-
return {
|
|
43
|
-
isEnabled: isEnabled
|
|
44
|
-
};
|
|
45
|
-
}, [isRovoChatEnabled, extensionKey, showHoverPreview, url, isRovoChatActionOptedIn]);
|
|
46
|
-
};
|
|
47
|
-
export default useInlineActionNudgeExperiment;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
-
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
4
|
-
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
5
|
-
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
6
|
-
._1bsb1osq{width:100%}
|
|
7
|
-
._1e0c1txw{display:flex}
|
|
8
|
-
._1wpz1fhb{align-self:stretch}
|
|
9
|
-
._2lx21bp4{flex-direction:column}
|
|
10
|
-
._4cvr1h6o{align-items:center}
|
|
11
|
-
._4t3it94y{height:1px}
|
|
12
|
-
._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
|
|
13
|
-
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
14
|
-
._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
|
|
15
|
-
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* ask-rovo-section-header.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
import "./ask-rovo-section-header.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl';
|
|
6
|
-
import { messages } from '../../../../../messages';
|
|
7
|
-
import RovoHexLogo from '../../../assets/rovo-hex-logo';
|
|
8
|
-
var sectionHeaderStyles = null;
|
|
9
|
-
var sectionHeaderDividerStyles = null;
|
|
10
|
-
var sectionHeaderRowStyles = null;
|
|
11
|
-
var sectionHeaderLabelStyles = null;
|
|
12
|
-
/**
|
|
13
|
-
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
14
|
-
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
15
|
-
*
|
|
16
|
-
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
17
|
-
* Rovo hex logo and the "Ask Rovo" label.
|
|
18
|
-
*/
|
|
19
|
-
var AskRovoSectionHeader = function AskRovoSectionHeader(_ref) {
|
|
20
|
-
var testId = _ref.testId;
|
|
21
|
-
var intl = useIntl();
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
"data-testid": testId,
|
|
24
|
-
className: ax(["_zulputpp _1e0c1txw _2lx21bp4 _otyrutpp _18u0v77o _1bsb1osq _1wpz1fhb"])
|
|
25
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
role: "separator",
|
|
27
|
-
"aria-orientation": "horizontal",
|
|
28
|
-
className: ax(["_4t3it94y _1bsb1osq _bfhk1l7x"])
|
|
29
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: ax(["_zulp1b66 _1e0c1txw _4cvr1h6o _19bv1b66"])
|
|
31
|
-
}, /*#__PURE__*/React.createElement(RovoHexLogo, null), /*#__PURE__*/React.createElement("span", {
|
|
32
|
-
className: ax(["_11c8wadc _syazazsu _k48p1wq8"])
|
|
33
|
-
}, intl.formatMessage(messages.rovo_chat_action_section_header))));
|
|
34
|
-
};
|
|
35
|
-
export default AskRovoSectionHeader;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { CardActionOptions } from '../../../view/Card/types';
|
|
2
|
-
export interface InlineActionNudgeExperiment {
|
|
3
|
-
/**
|
|
4
|
-
* True when the user is in the treatment cohort and should see the
|
|
5
|
-
* inline action nudge UI. All treatment surfaces should gate on this.
|
|
6
|
-
*/
|
|
7
|
-
isEnabled: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Returns whether the rovogrowth-640-inline-action-nudge-exp experiment
|
|
11
|
-
* is enabled for the current user and link context.
|
|
12
|
-
*
|
|
13
|
-
* All eligibility criteria are consolidated here:
|
|
14
|
-
* 1. Rovo chat must be enabled for the tenant.
|
|
15
|
-
* 2. The consumer must have opted in via actionOptions.rovoChatAction.optIn.
|
|
16
|
-
* 3. The link must support the RovoActions feature.
|
|
17
|
-
* 4. The extension key must be one of the supported options.
|
|
18
|
-
* 5. The experiment value must be true (via tmp-editor-statsig).
|
|
19
|
-
*
|
|
20
|
-
* The extension key is derived from the card store via the resolved URL,
|
|
21
|
-
* so callers don't need to thread it as a prop.
|
|
22
|
-
*/
|
|
23
|
-
declare const useInlineActionNudgeExperiment: (url?: string, showHoverPreview?: boolean, actionOptions?: CardActionOptions) => InlineActionNudgeExperiment;
|
|
24
|
-
export default useInlineActionNudgeExperiment;
|
package/dist/types/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface RovoSectionHeaderProps {
|
|
2
|
-
testId?: string;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
6
|
-
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
7
|
-
*
|
|
8
|
-
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
9
|
-
* Rovo hex logo and the "Ask Rovo" label.
|
|
10
|
-
*/
|
|
11
|
-
declare const AskRovoSectionHeader: ({ testId }: RovoSectionHeaderProps) => JSX.Element;
|
|
12
|
-
export default AskRovoSectionHeader;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { CardActionOptions } from '../../../view/Card/types';
|
|
2
|
-
export interface InlineActionNudgeExperiment {
|
|
3
|
-
/**
|
|
4
|
-
* True when the user is in the treatment cohort and should see the
|
|
5
|
-
* inline action nudge UI. All treatment surfaces should gate on this.
|
|
6
|
-
*/
|
|
7
|
-
isEnabled: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Returns whether the rovogrowth-640-inline-action-nudge-exp experiment
|
|
11
|
-
* is enabled for the current user and link context.
|
|
12
|
-
*
|
|
13
|
-
* All eligibility criteria are consolidated here:
|
|
14
|
-
* 1. Rovo chat must be enabled for the tenant.
|
|
15
|
-
* 2. The consumer must have opted in via actionOptions.rovoChatAction.optIn.
|
|
16
|
-
* 3. The link must support the RovoActions feature.
|
|
17
|
-
* 4. The extension key must be one of the supported options.
|
|
18
|
-
* 5. The experiment value must be true (via tmp-editor-statsig).
|
|
19
|
-
*
|
|
20
|
-
* The extension key is derived from the card store via the resolved URL,
|
|
21
|
-
* so callers don't need to thread it as a prop.
|
|
22
|
-
*/
|
|
23
|
-
declare const useInlineActionNudgeExperiment: (url?: string, showHoverPreview?: boolean, actionOptions?: CardActionOptions) => InlineActionNudgeExperiment;
|
|
24
|
-
export default useInlineActionNudgeExperiment;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface RovoSectionHeaderProps {
|
|
2
|
-
testId?: string;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* "Ask Rovo" section header rendered above the prompt action pill buttons in
|
|
6
|
-
* the rovogrowth-640-inline-action-nudge-exp pill variant.
|
|
7
|
-
*
|
|
8
|
-
* Renders a full-width 1px divider followed by a row containing the colourful
|
|
9
|
-
* Rovo hex logo and the "Ask Rovo" label.
|
|
10
|
-
*/
|
|
11
|
-
declare const AskRovoSectionHeader: ({ testId }: RovoSectionHeaderProps) => JSX.Element;
|
|
12
|
-
export default AskRovoSectionHeader;
|