@atlaskit/smart-card 45.19.3 → 45.19.5
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 +13 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +1 -1
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-metadata--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-avatar-group--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-hover-card-no-preview-button--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexibleuihovercard--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-can-open-in-right-position--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-default--default.png +1 -1
- package/dist/cjs/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-assigned-jira-issue--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-confluence--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-slack-message--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-unassigned-jira-issue--default.png +2 -2
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +1 -11
- package/dist/cjs/state/hooks/{use-inline-tailored-action-experiment → use-inline-tailored-actions}/index.js +5 -9
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +5 -59
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-metadata--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-avatar-group--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-hover-card-no-preview-button--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexibleuihovercard--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-can-open-in-right-position--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-default--default.png +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-assigned-jira-issue--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-confluence--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-slack-message--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-unassigned-jira-issue--default.png +2 -2
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +1 -11
- package/dist/es2019/state/hooks/{use-inline-tailored-action-experiment → use-inline-tailored-actions}/index.js +5 -9
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +4 -54
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-metadata--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-element-avatar-group--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-hover-card-no-preview-button--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexibleuihovercard--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-can-open-in-right-position--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-default--default.png +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-assigned-jira-issue--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-confluence--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-slack-message--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/standalone-hover-card/standalone-hover-card-for-unassigned-jira-issue--default.png +2 -2
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +1 -11
- package/dist/esm/state/hooks/{use-inline-tailored-action-experiment → use-inline-tailored-actions}/index.js +5 -9
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -2
- package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +4 -56
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +1 -1
- package/dist/types/state/hooks/{use-inline-tailored-action-experiment → use-inline-tailored-actions}/index.d.ts +5 -6
- package/dist/types/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.d.ts +1 -3
- package/package.json +4 -26
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3728ae5af3b016c1892534d03011f88ddefab2aea661143e31756f84cf555a49
|
|
3
|
+
size 28431
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:5cbfd0ee28885049b9f7feac6a482a5390f025a550061144c202601d547eae00
|
|
3
|
+
size 22455
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6e633a8b370f6e0af03429d66bea6d1d7de35a80db69ab70e22ff8b36f009448
|
|
3
|
+
size 24084
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:15c332483840b544ab59a3aef24223bc1e294f618637fc2c371d49fbd7a385fe
|
|
3
|
+
size 27928
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-link-url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
2
|
import { ActionName, CardAction } from '../../../constants';
|
|
5
3
|
import { getDefinitionId, getExtensionKey, getResourceType } from '../../../state/helpers';
|
|
6
4
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
7
5
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
8
|
-
// For block card experiment (NAVX-4814)
|
|
9
|
-
const 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']);
|
|
10
6
|
const extractRovoChatAction = ({
|
|
11
7
|
actionOptions,
|
|
12
8
|
appearance,
|
|
13
9
|
id,
|
|
14
|
-
isEmbedRovoActionsFooterExperimentEnabled,
|
|
15
10
|
product,
|
|
16
11
|
response,
|
|
17
12
|
rovoConfig
|
|
@@ -25,13 +20,8 @@ const extractRovoChatAction = ({
|
|
|
25
20
|
return;
|
|
26
21
|
}
|
|
27
22
|
const extensionKey = getExtensionKey(response);
|
|
28
|
-
const isInlineExperimentEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEqualsNoExposure('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
29
|
-
const is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && (rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) === 'CONFLUENCE';
|
|
30
|
-
const is3PEmbedPostAuthActionsEnabled = isEmbedRovoActionsFooterExperimentEnabled === true;
|
|
31
|
-
const isSupportedFeature = is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled || is3PEmbedPostAuthActionsEnabled;
|
|
32
|
-
const isOptIn = (actionOptions === null || actionOptions === void 0 ? void 0 : (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
33
23
|
const url = extractSmartLinkUrl(response);
|
|
34
|
-
return
|
|
24
|
+
return actionOptions !== null && actionOptions !== void 0 && (_actionOptions$rovoCh = actionOptions.rovoChatAction) !== null && _actionOptions$rovoCh !== void 0 && _actionOptions$rovoCh.optIn ? {
|
|
35
25
|
invokeAction: {
|
|
36
26
|
actionSubjectId: 'rovoChatPrompt',
|
|
37
27
|
actionType: ActionName.RovoChatAction,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
2
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
5
3
|
import { getExtensionKey } from '../../helpers';
|
|
6
4
|
import { useSmartCardState } from '../../store';
|
|
@@ -11,20 +9,19 @@ const NOT_ENABLED_RESULT = {
|
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
|
-
* Returns whether the
|
|
15
|
-
*
|
|
12
|
+
* Returns whether the tailored inline actions
|
|
13
|
+
* are enabled for the current user and link context.
|
|
16
14
|
*
|
|
17
15
|
* All eligibility criteria are consolidated here:
|
|
18
16
|
* 1. Rovo chat must be enabled for the tenant.
|
|
19
17
|
* 2. The consumer must have opted in via actionOptions.rovoChatAction.optIn.
|
|
20
18
|
* 3. The link must support the RovoActions feature.
|
|
21
19
|
* 4. The extension key must be one of the supported options.
|
|
22
|
-
* 5. The experiment value must be true (via tmp-editor-statsig).
|
|
23
20
|
*
|
|
24
21
|
* The extension key is derived from the card store via the resolved URL,
|
|
25
22
|
* so callers don't need to thread it as a prop.
|
|
26
23
|
*/
|
|
27
|
-
const
|
|
24
|
+
const useInlineTailoredAction = (url, showHoverPreview, actionOptions) => {
|
|
28
25
|
var _actionOptions$rovoCh, _actionOptions$rovoCh2;
|
|
29
26
|
const {
|
|
30
27
|
rovoOptions: rovoConfig
|
|
@@ -40,10 +37,9 @@ const useInlineTailoredActionExperiment = (url, showHoverPreview, actionOptions)
|
|
|
40
37
|
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
41
38
|
return NOT_ENABLED_RESULT;
|
|
42
39
|
}
|
|
43
|
-
const isEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEquals('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
44
40
|
return {
|
|
45
|
-
isEnabled
|
|
41
|
+
isEnabled: true
|
|
46
42
|
};
|
|
47
43
|
}, [isRovoChatEnabled, extensionKey, showHoverPreview, url, isRovoChatActionOptedIn]);
|
|
48
44
|
};
|
|
49
|
-
export default
|
|
45
|
+
export default useInlineTailoredAction;
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "45.19.
|
|
5
|
+
packageVersion: "45.19.4" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -49,8 +49,7 @@ const EmbedFrameWithRovoFooter = ({
|
|
|
49
49
|
},
|
|
50
50
|
product,
|
|
51
51
|
actionOptions,
|
|
52
|
-
appearance: CardDisplay.Embed
|
|
53
|
-
isEmbedRovoActionsFooterExperimentEnabled: isEmbedRovoActionsFooterEnabled
|
|
52
|
+
appearance: CardDisplay.Embed
|
|
54
53
|
}) : undefined, [actionOptions, details, isEmbedRovoActionsFooterEnabled, product, rovoOptions]);
|
|
55
54
|
const prompts = React.useMemo(() => {
|
|
56
55
|
if (!isEmbedRovoActionsFooterEnabled) {
|
|
@@ -1,60 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import useInlineTailoredActionExperiment from '../../../state/hooks/use-inline-tailored-action-experiment';
|
|
2
|
+
import useInlineTailoredAction from '../../../state/hooks/use-inline-tailored-actions';
|
|
4
3
|
import { HoverCard } from '../../HoverCard';
|
|
5
4
|
import { InlineRovoActionButton } from '../common/rovo-actions-cta';
|
|
6
5
|
import { Frame } from '../Frame';
|
|
7
6
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
8
7
|
import { renderLozenge } from './renderLozenge';
|
|
9
|
-
export function
|
|
10
|
-
id,
|
|
11
|
-
title = '',
|
|
12
|
-
isSelected,
|
|
13
|
-
isHovered,
|
|
14
|
-
onClick,
|
|
15
|
-
onAuxClick,
|
|
16
|
-
onContextMenu,
|
|
17
|
-
icon,
|
|
18
|
-
link,
|
|
19
|
-
testId = 'inline-card-resolved-view',
|
|
20
|
-
titleTextColor,
|
|
21
|
-
titlePrefix,
|
|
22
|
-
showHoverPreview = false,
|
|
23
|
-
hoverPreviewOptions,
|
|
24
|
-
actionOptions,
|
|
25
|
-
truncateInline,
|
|
26
|
-
type,
|
|
27
|
-
hideIconLoadingSkeleton,
|
|
28
|
-
lozenge
|
|
29
|
-
}) {
|
|
30
|
-
const frame = /*#__PURE__*/React.createElement(Frame, {
|
|
31
|
-
testId: testId,
|
|
32
|
-
link: link,
|
|
33
|
-
isSelected: isSelected,
|
|
34
|
-
isHovered: isHovered,
|
|
35
|
-
onClick: onClick,
|
|
36
|
-
onAuxClick: onAuxClick,
|
|
37
|
-
onContextMenu: onContextMenu,
|
|
38
|
-
truncateInline: truncateInline
|
|
39
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
40
|
-
emoji: titlePrefix,
|
|
41
|
-
icon: icon,
|
|
42
|
-
title: title,
|
|
43
|
-
titleTextColor: titleTextColor,
|
|
44
|
-
type: type,
|
|
45
|
-
hideIconLoadingSkeleton: hideIconLoadingSkeleton
|
|
46
|
-
}), renderLozenge(lozenge));
|
|
47
|
-
if (!showHoverPreview || !link) {
|
|
48
|
-
return frame;
|
|
49
|
-
}
|
|
50
|
-
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
51
|
-
id: id,
|
|
52
|
-
url: link,
|
|
53
|
-
actionOptions: actionOptions,
|
|
54
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
55
|
-
}, frame);
|
|
56
|
-
}
|
|
57
|
-
export function InlineCardResolvedViewFunctionalWithRovoActions({
|
|
8
|
+
export function InlineCardResolvedViewFunctional({
|
|
58
9
|
id,
|
|
59
10
|
title = '',
|
|
60
11
|
isSelected,
|
|
@@ -77,7 +28,7 @@ export function InlineCardResolvedViewFunctionalWithRovoActions({
|
|
|
77
28
|
}) {
|
|
78
29
|
const {
|
|
79
30
|
isEnabled: isInlineTailoredRovoActionEnabled
|
|
80
|
-
} =
|
|
31
|
+
} = useInlineTailoredAction(link, showHoverPreview, actionOptions);
|
|
81
32
|
|
|
82
33
|
// TODO https://hello.jira.atlassian.cloud/browse/NAVX-4436: fire analytics with cohort
|
|
83
34
|
const frame = /*#__PURE__*/React.createElement(Frame, {
|
|
@@ -110,5 +61,4 @@ export function InlineCardResolvedViewFunctionalWithRovoActions({
|
|
|
110
61
|
actionOptions: actionOptions,
|
|
111
62
|
hoverPreviewOptions: hoverPreviewOptions
|
|
112
63
|
}, frame);
|
|
113
|
-
}
|
|
114
|
-
export const InlineCardResolvedViewFunctional = componentWithFG('platform_sl_3p_auth_inline_tailored_cta_killswitch', InlineCardResolvedViewFunctionalWithRovoActions, InlineCardResolvedViewBase);
|
|
64
|
+
}
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.19.
|
|
12
|
+
packageVersion: "45.19.4",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:54c0e51cdd4a0c6b082b3cb16d5f4b606a5b13a5711b59640fea6ba9676055fd
|
|
3
|
+
size 46952
|
package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:1b11d9d35e77d01a61d6a3abe46c3c457d17ad2c3a90a138b94de81ba649dc92
|
|
3
|
+
size 112579
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8b81fc1cbe2bd771dc71fb00628a11caeaa9d4d670420c0da5a41e552f25d9bd
|
|
3
|
+
size 52747
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2d122761739e9f44f1a771a429e4c20eb4bdae3d188e118795c908ad71249574
|
|
3
|
+
size 253337
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b10057b7812b3b5e81c3b9d5da5b2beaa68c94438aad97a8d01ece7ff4613a85
|
|
3
|
+
size 91889
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e9f72ef9fafc8425b37081d56708cff25983c2f1d6f97a4bc6adc12818868308
|
|
3
|
+
size 17547
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0cbd1e46bf2f2e2f0e8a6cd29b208dab943202ed23ff1a6756db3d429a5bfb8a
|
|
3
|
+
size 33752
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0cbd1e46bf2f2e2f0e8a6cd29b208dab943202ed23ff1a6756db3d429a5bfb8a
|
|
3
|
+
size 33752
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9321659f1ee2e0995e21bdbaa5225c21ec8d07dbb5a55653cff0eaae81938802
|
|
3
|
+
size 44305
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8d6f0c100d5a9f2a1423a35dda99efa39af84103887ca185c7d2f33bfc73b831
|
|
3
|
+
size 41591
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3b4a0ad0685c5d5a0ea2353924798f2fe36e00e46217c1634bb9b3c42d2e0995
|
|
3
|
+
size 39546
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:1e1a80ae01963f72d728120f08fc714cca0621cf4d64254c32adbe7d2238088c
|
|
3
|
+
size 72478
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ff1de318357ca710e081259a119f96694a72f7273cf49ae895f15fb46ebc0ea6
|
|
3
|
+
size 157884
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ea765af940ad08c1410b30f96d1756712a01de7ba840715afeea5693bc44be36
|
|
3
|
+
size 365043
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:31d823fd6f77518488041af0366a24749d75f51e6b5168120aecb6e1c3e7257c
|
|
3
|
+
size 366422
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:62339a8e48b53ee7a69677858d7cc56d546e6ccf3b96808ca82dbf822ad6a87a
|
|
3
|
+
size 402137
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:20db4e7879df5b33fda992e78b3d3a37ff36aa110c15794b27931303bb02ba8a
|
|
3
|
+
size 103941
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:71d47e12cc48147d0476a9eb4620bc096379a3e76e7b05d83350ab166306bea3
|
|
3
|
+
size 12110
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:df0c02f7918ea1af82ac08eb94169eca3249edd7c5cb9f8fd9033ef46f991175
|
|
3
|
+
size 34497
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexibleuihovercard--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:f5ce1ee1029d0ad52db67970022e5342d3d9fb3d86cb7d2f7b4ef7fb199b106a
|
|
3
|
+
size 37306
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e30ab62d26530680f6762034cbccb5e86b8277c908e5d43ad213aadb4d82c100
|
|
3
|
+
size 36029
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6f7f8228c2ddfbdc7819f72376ac9d4b549f3ad8d64639d5f8cf2ce9345db79b
|
|
3
|
+
size 36028
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:078ca299b6992be37c4225f8ee1ab1618224b308624abd080f09d5e6811ff96b
|
|
3
|
+
size 21028
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3728ae5af3b016c1892534d03011f88ddefab2aea661143e31756f84cf555a49
|
|
3
|
+
size 28431
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:5cbfd0ee28885049b9f7feac6a482a5390f025a550061144c202601d547eae00
|
|
3
|
+
size 22455
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6e633a8b370f6e0af03429d66bea6d1d7de35a80db69ab70e22ff8b36f009448
|
|
3
|
+
size 24084
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:15c332483840b544ab59a3aef24223bc1e294f618637fc2c371d49fbd7a385fe
|
|
3
|
+
size 27928
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-link-url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
2
|
import { ActionName, CardAction } from '../../../constants';
|
|
5
3
|
import { getDefinitionId, getExtensionKey, getResourceType } from '../../../state/helpers';
|
|
6
4
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
7
5
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
8
|
-
// For block card experiment (NAVX-4814)
|
|
9
|
-
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']);
|
|
10
6
|
var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
11
7
|
var _actionOptions$rovoCh;
|
|
12
8
|
var actionOptions = _ref.actionOptions,
|
|
13
9
|
appearance = _ref.appearance,
|
|
14
10
|
id = _ref.id,
|
|
15
|
-
isEmbedRovoActionsFooterExperimentEnabled = _ref.isEmbedRovoActionsFooterExperimentEnabled,
|
|
16
11
|
product = _ref.product,
|
|
17
12
|
response = _ref.response,
|
|
18
13
|
rovoConfig = _ref.rovoConfig;
|
|
@@ -24,13 +19,8 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
24
19
|
return;
|
|
25
20
|
}
|
|
26
21
|
var extensionKey = getExtensionKey(response);
|
|
27
|
-
var isInlineExperimentEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEqualsNoExposure('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
28
|
-
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && (rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) === 'CONFLUENCE';
|
|
29
|
-
var is3PEmbedPostAuthActionsEnabled = isEmbedRovoActionsFooterExperimentEnabled === true;
|
|
30
|
-
var isSupportedFeature = is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled || is3PEmbedPostAuthActionsEnabled;
|
|
31
|
-
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
32
22
|
var url = extractSmartLinkUrl(response);
|
|
33
|
-
return
|
|
23
|
+
return actionOptions !== null && actionOptions !== void 0 && (_actionOptions$rovoCh = actionOptions.rovoChatAction) !== null && _actionOptions$rovoCh !== void 0 && _actionOptions$rovoCh.optIn ? {
|
|
34
24
|
invokeAction: {
|
|
35
25
|
actionSubjectId: 'rovoChatPrompt',
|
|
36
26
|
actionType: ActionName.RovoChatAction,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
2
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
5
3
|
import { getExtensionKey } from '../../helpers';
|
|
6
4
|
import { useSmartCardState } from '../../store';
|
|
@@ -11,20 +9,19 @@ var NOT_ENABLED_RESULT = {
|
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
|
-
* Returns whether the
|
|
15
|
-
*
|
|
12
|
+
* Returns whether the tailored inline actions
|
|
13
|
+
* are enabled for the current user and link context.
|
|
16
14
|
*
|
|
17
15
|
* All eligibility criteria are consolidated here:
|
|
18
16
|
* 1. Rovo chat must be enabled for the tenant.
|
|
19
17
|
* 2. The consumer must have opted in via actionOptions.rovoChatAction.optIn.
|
|
20
18
|
* 3. The link must support the RovoActions feature.
|
|
21
19
|
* 4. The extension key must be one of the supported options.
|
|
22
|
-
* 5. The experiment value must be true (via tmp-editor-statsig).
|
|
23
20
|
*
|
|
24
21
|
* The extension key is derived from the card store via the resolved URL,
|
|
25
22
|
* so callers don't need to thread it as a prop.
|
|
26
23
|
*/
|
|
27
|
-
var
|
|
24
|
+
var useInlineTailoredAction = function useInlineTailoredAction(url, showHoverPreview, actionOptions) {
|
|
28
25
|
var _actionOptions$rovoCh, _actionOptions$rovoCh2;
|
|
29
26
|
var _useRovoConfig = useRovoConfig(),
|
|
30
27
|
rovoConfig = _useRovoConfig.rovoOptions;
|
|
@@ -39,10 +36,9 @@ var useInlineTailoredActionExperiment = function useInlineTailoredActionExperime
|
|
|
39
36
|
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
40
37
|
return NOT_ENABLED_RESULT;
|
|
41
38
|
}
|
|
42
|
-
var isEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEquals('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
43
39
|
return {
|
|
44
|
-
isEnabled:
|
|
40
|
+
isEnabled: true
|
|
45
41
|
};
|
|
46
42
|
}, [isRovoChatEnabled, extensionKey, showHoverPreview, url, isRovoChatActionOptedIn]);
|
|
47
43
|
};
|
|
48
|
-
export default
|
|
44
|
+
export default useInlineTailoredAction;
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "45.19.
|
|
7
|
+
packageVersion: "45.19.4" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -54,8 +54,7 @@ var EmbedFrameWithRovoFooter = function EmbedFrameWithRovoFooter(_ref) {
|
|
|
54
54
|
},
|
|
55
55
|
product: product,
|
|
56
56
|
actionOptions: actionOptions,
|
|
57
|
-
appearance: CardDisplay.Embed
|
|
58
|
-
isEmbedRovoActionsFooterExperimentEnabled: isEmbedRovoActionsFooterEnabled
|
|
57
|
+
appearance: CardDisplay.Embed
|
|
59
58
|
}) : undefined;
|
|
60
59
|
}, [actionOptions, details, isEmbedRovoActionsFooterEnabled, product, rovoOptions]);
|
|
61
60
|
var prompts = React.useMemo(function () {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import useInlineTailoredActionExperiment from '../../../state/hooks/use-inline-tailored-action-experiment';
|
|
2
|
+
import useInlineTailoredAction from '../../../state/hooks/use-inline-tailored-actions';
|
|
4
3
|
import { HoverCard } from '../../HoverCard';
|
|
5
4
|
import { InlineRovoActionButton } from '../common/rovo-actions-cta';
|
|
6
5
|
import { Frame } from '../Frame';
|
|
7
6
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
8
7
|
import { renderLozenge } from './renderLozenge';
|
|
9
|
-
export function
|
|
8
|
+
export function InlineCardResolvedViewFunctional(_ref) {
|
|
10
9
|
var id = _ref.id,
|
|
11
10
|
_ref$title = _ref.title,
|
|
12
11
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
@@ -29,57 +28,7 @@ export function InlineCardResolvedViewBase(_ref) {
|
|
|
29
28
|
type = _ref.type,
|
|
30
29
|
hideIconLoadingSkeleton = _ref.hideIconLoadingSkeleton,
|
|
31
30
|
lozenge = _ref.lozenge;
|
|
32
|
-
var
|
|
33
|
-
testId: testId,
|
|
34
|
-
link: link,
|
|
35
|
-
isSelected: isSelected,
|
|
36
|
-
isHovered: isHovered,
|
|
37
|
-
onClick: onClick,
|
|
38
|
-
onAuxClick: onAuxClick,
|
|
39
|
-
onContextMenu: onContextMenu,
|
|
40
|
-
truncateInline: truncateInline
|
|
41
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
42
|
-
emoji: titlePrefix,
|
|
43
|
-
icon: icon,
|
|
44
|
-
title: title,
|
|
45
|
-
titleTextColor: titleTextColor,
|
|
46
|
-
type: type,
|
|
47
|
-
hideIconLoadingSkeleton: hideIconLoadingSkeleton
|
|
48
|
-
}), renderLozenge(lozenge));
|
|
49
|
-
if (!showHoverPreview || !link) {
|
|
50
|
-
return frame;
|
|
51
|
-
}
|
|
52
|
-
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
53
|
-
id: id,
|
|
54
|
-
url: link,
|
|
55
|
-
actionOptions: actionOptions,
|
|
56
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
57
|
-
}, frame);
|
|
58
|
-
}
|
|
59
|
-
export function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
|
|
60
|
-
var id = _ref2.id,
|
|
61
|
-
_ref2$title = _ref2.title,
|
|
62
|
-
title = _ref2$title === void 0 ? '' : _ref2$title,
|
|
63
|
-
isSelected = _ref2.isSelected,
|
|
64
|
-
isHovered = _ref2.isHovered,
|
|
65
|
-
onClick = _ref2.onClick,
|
|
66
|
-
onAuxClick = _ref2.onAuxClick,
|
|
67
|
-
onContextMenu = _ref2.onContextMenu,
|
|
68
|
-
icon = _ref2.icon,
|
|
69
|
-
link = _ref2.link,
|
|
70
|
-
_ref2$testId = _ref2.testId,
|
|
71
|
-
testId = _ref2$testId === void 0 ? 'inline-card-resolved-view' : _ref2$testId,
|
|
72
|
-
titleTextColor = _ref2.titleTextColor,
|
|
73
|
-
titlePrefix = _ref2.titlePrefix,
|
|
74
|
-
_ref2$showHoverPrevie = _ref2.showHoverPreview,
|
|
75
|
-
showHoverPreview = _ref2$showHoverPrevie === void 0 ? false : _ref2$showHoverPrevie,
|
|
76
|
-
hoverPreviewOptions = _ref2.hoverPreviewOptions,
|
|
77
|
-
actionOptions = _ref2.actionOptions,
|
|
78
|
-
truncateInline = _ref2.truncateInline,
|
|
79
|
-
type = _ref2.type,
|
|
80
|
-
hideIconLoadingSkeleton = _ref2.hideIconLoadingSkeleton,
|
|
81
|
-
lozenge = _ref2.lozenge;
|
|
82
|
-
var _useInlineTailoredAct = useInlineTailoredActionExperiment(link, showHoverPreview, actionOptions),
|
|
31
|
+
var _useInlineTailoredAct = useInlineTailoredAction(link, showHoverPreview, actionOptions),
|
|
83
32
|
isInlineTailoredRovoActionEnabled = _useInlineTailoredAct.isEnabled;
|
|
84
33
|
|
|
85
34
|
// TODO https://hello.jira.atlassian.cloud/browse/NAVX-4436: fire analytics with cohort
|
|
@@ -113,5 +62,4 @@ export function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
|
|
|
113
62
|
actionOptions: actionOptions,
|
|
114
63
|
hoverPreviewOptions: hoverPreviewOptions
|
|
115
64
|
}, frame);
|
|
116
|
-
}
|
|
117
|
-
export var InlineCardResolvedViewFunctional = componentWithFG('platform_sl_3p_auth_inline_tailored_cta_killswitch', InlineCardResolvedViewFunctionalWithRovoActions, InlineCardResolvedViewBase);
|
|
65
|
+
}
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "45.19.
|
|
15
|
+
packageVersion: "45.19.4",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|