@atlaskit/smart-card 39.2.2 → 39.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/extractors/flexible/index.js +3 -7
- package/dist/cjs/state/flexible-ui-context/index.js +3 -24
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +8 -21
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.js +6 -16
- package/dist/cjs/view/BlockCard/views/utils/index.js +3 -10
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/index.js +7 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +7 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +7 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +14 -46
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +5 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/snippet-block/index.js +8 -20
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +3 -22
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +8 -28
- package/dist/cjs/view/FlexibleCard/components/container/index.js +36 -126
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/elements/title-element/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/index.js +11 -30
- package/dist/cjs/view/FlexibleCard/utils.js +3 -7
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +10 -22
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +8 -21
- package/dist/cjs/view/HoverCard/styled.js +1 -12
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +0 -3
- package/dist/es2019/extractors/flexible/index.js +2 -7
- package/dist/es2019/state/flexible-ui-context/index.js +2 -23
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +10 -23
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.js +7 -17
- package/dist/es2019/view/BlockCard/views/utils/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/index.js +5 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +5 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +5 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +12 -44
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +3 -10
- package/dist/es2019/view/FlexibleCard/components/blocks/snippet-block/index.js +7 -18
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +4 -24
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +7 -26
- package/dist/es2019/view/FlexibleCard/components/container/index.js +8 -100
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/elements/title-element/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/index.js +14 -33
- package/dist/es2019/view/FlexibleCard/utils.js +4 -8
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +10 -22
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +9 -22
- package/dist/es2019/view/HoverCard/styled.js +0 -11
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +0 -3
- package/dist/esm/extractors/flexible/index.js +4 -8
- package/dist/esm/state/flexible-ui-context/index.js +2 -23
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +10 -23
- package/dist/esm/view/BlockCard/views/unresolved-view/index.js +7 -17
- package/dist/esm/view/BlockCard/views/utils/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/index.js +7 -18
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +7 -18
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +7 -18
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +14 -46
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +5 -12
- package/dist/esm/view/FlexibleCard/components/blocks/snippet-block/index.js +8 -20
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +4 -23
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +8 -28
- package/dist/esm/view/FlexibleCard/components/container/index.js +39 -130
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +4 -2
- package/dist/esm/view/FlexibleCard/components/elements/title-element/index.js +2 -3
- package/dist/esm/view/FlexibleCard/index.js +14 -33
- package/dist/esm/view/FlexibleCard/utils.js +3 -7
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +10 -22
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +9 -22
- package/dist/esm/view/HoverCard/styled.js +0 -11
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +0 -3
- package/dist/types/state/flexible-ui-context/index.d.ts +0 -12
- package/dist/types/state/flexible-ui-context/types.d.ts +0 -7
- package/dist/types/view/BlockCard/views/utils/index.d.ts +0 -4
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +1 -13
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -8
- package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types/view/HoverCard/styled.d.ts +0 -4
- package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +0 -12
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +0 -7
- package/dist/types-ts4.5/view/BlockCard/views/utils/index.d.ts +0 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/types.d.ts +1 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +1 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/styled.d.ts +0 -4
- package/package.json +4 -7
|
@@ -3,7 +3,6 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { SmartLinkStatus } from '../../../../constants';
|
|
7
6
|
import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
|
|
8
7
|
var hoverStyleOld = null;
|
|
9
8
|
var hoverStyle = null;
|
|
@@ -45,8 +44,6 @@ var RelatedLinkItem = function RelatedLinkItem(_ref) {
|
|
|
45
44
|
subtitle: subtitle,
|
|
46
45
|
anchorTarget: "_blank",
|
|
47
46
|
size: ui.size,
|
|
48
|
-
theme: ui.theme,
|
|
49
|
-
status: SmartLinkStatus.Resolved,
|
|
50
47
|
className: ax(["_zulputpp _11c81o8v _ca0qu2gc _n3tdu2gc"])
|
|
51
48
|
})));
|
|
52
49
|
};
|
|
@@ -13,17 +13,5 @@ export type FlexibleCardContextType = {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const FlexibleCardContext: import("react").Context<FlexibleCardContextType | undefined>;
|
|
15
15
|
export declare const useFlexibleCardContext: () => FlexibleCardContextType | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* This provides the data that will be used by Smart Links Flexible UI to populate it's
|
|
18
|
-
* underlying elements.
|
|
19
|
-
* @deprecated Remove on cleanup of platform-linking-flexible-card-context
|
|
20
|
-
*/
|
|
21
|
-
export declare const FlexibleUiContext: import("react").Context<FlexibleUiDataContext | undefined>;
|
|
22
16
|
export declare const useFlexibleUiContext: () => FlexibleUiDataContext | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* This provides the ui options that will be used by Smart Links Flexible UI
|
|
25
|
-
* to render its underlying elements.
|
|
26
|
-
* @deprecated Remove on cleanup of platform-linking-flexible-card-context
|
|
27
|
-
*/
|
|
28
|
-
export declare const FlexibleUiOptionContext: import("react").Context<InternalFlexibleUiOptions | undefined>;
|
|
29
17
|
export declare const useFlexibleUiOptionContext: () => InternalFlexibleUiOptions | undefined;
|
|
@@ -219,13 +219,6 @@ export type FlexibleUiDataContext = {
|
|
|
219
219
|
* @see TargetBranch
|
|
220
220
|
*/
|
|
221
221
|
targetBranch?: string;
|
|
222
|
-
/**
|
|
223
|
-
* Contains the Title of the linked resource.
|
|
224
|
-
* @type string
|
|
225
|
-
* @see Title
|
|
226
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
227
|
-
*/
|
|
228
|
-
title?: string;
|
|
229
222
|
/**
|
|
230
223
|
* Contains the url of the linked resource.
|
|
231
224
|
* @type string
|
|
@@ -9,10 +9,6 @@ type SimulatedMetadata = {
|
|
|
9
9
|
topMetadata: ElementItem[];
|
|
10
10
|
bottomMetadata?: ElementItem[];
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
14
|
-
*/
|
|
15
|
-
export declare const FlexibleCardUiOptionsOld: InternalFlexibleUiOptions;
|
|
16
12
|
export declare const FlexibleCardUiOptions: InternalFlexibleUiOptions;
|
|
17
13
|
export declare const titleBlockOptions: Partial<TitleBlockProps>;
|
|
18
14
|
export declare const PreviewBlockOptions: Partial<PreviewBlockProps>;
|
|
@@ -6,5 +6,5 @@ import type { AIFooterBlockProps } from './types';
|
|
|
6
6
|
* @param {AIFooterBlockProps} AIFooterBlockProps
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const AIFooterBlock: ({
|
|
9
|
+
declare const AIFooterBlock: ({ testId, ...props }: AIFooterBlockProps) => React.JSX.Element | null;
|
|
10
10
|
export default AIFooterBlock;
|
|
@@ -7,5 +7,5 @@ import { type AISummaryBlockProps } from './types';
|
|
|
7
7
|
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const AISummaryBlock: ({
|
|
10
|
+
declare const AISummaryBlock: ({ testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default AISummaryBlock;
|
|
@@ -7,5 +7,5 @@ import { type FooterBlockProps } from './types';
|
|
|
7
7
|
* @param {FooterBlockProps} FooterBlockProps
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const FooterBlock: ({
|
|
10
|
+
declare const FooterBlock: ({ testId, alwaysShow, ...props }: FooterBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default FooterBlock;
|
|
@@ -7,5 +7,5 @@ import { type MetadataBlockProps } from './types';
|
|
|
7
7
|
* @param {MetadataBlockProps} MetadataBlockProps
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const MetadataBlock: ({ maxLines,
|
|
10
|
+
declare const MetadataBlock: ({ maxLines, testId, primary, secondary, ...blockProps }: MetadataBlockProps) => JSX.Element | null;
|
|
11
11
|
export default MetadataBlock;
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from './types';
|
|
|
6
6
|
* @param {PreviewBlockProps} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlock: ({
|
|
9
|
+
declare const PreviewBlock: ({ testId, overrideUrl, ...blockProps }: PreviewBlockProps) => React.JSX.Element;
|
|
10
10
|
export default PreviewBlock;
|
|
@@ -6,5 +6,5 @@ import { type SnippetBlockProps } from './types';
|
|
|
6
6
|
* @param {SnippetBlockProps} SnippetBlockProps
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const SnippetBlock: ({ maxLines,
|
|
9
|
+
declare const SnippetBlock: ({ maxLines, testId, text, isHidden, showFooter, ...blockProps }: SnippetBlockProps) => React.JSX.Element | null;
|
|
10
10
|
export default SnippetBlock;
|
|
@@ -12,5 +12,5 @@ import { type TitleBlockProps } from './types';
|
|
|
12
12
|
* @see TitleBlockResolvedViewNew
|
|
13
13
|
* @see TitleBlockErroredViewNew
|
|
14
14
|
*/
|
|
15
|
-
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange,
|
|
15
|
+
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, showActionOnHover, testId, text, icon, hideRetry, metadataPosition, hideIcon, className, anchorRef, CompetitorPrompt, url, hideIconLoadingSkeleton, ...props }: TitleBlockProps) => JSX.Element;
|
|
16
16
|
export default TitleBlock;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type SmartLinkPosition
|
|
2
|
+
import { type SmartLinkPosition } from '../../../../../constants';
|
|
3
3
|
import { type RetryOptions } from '../../../types';
|
|
4
4
|
import { type AnchorTarget } from '../../types';
|
|
5
5
|
import { type ActionItem, type BlockProps, type ElementItem, type OnActionMenuOpenChangeOptions } from '../types';
|
|
@@ -45,12 +45,6 @@ export type TitleBlockProps = {
|
|
|
45
45
|
* Default is top.
|
|
46
46
|
*/
|
|
47
47
|
position?: SmartLinkPosition;
|
|
48
|
-
/**
|
|
49
|
-
* Determines the onClick behaviour of the Link. By default used for analytics.
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
52
|
-
*/
|
|
53
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
54
48
|
/**
|
|
55
49
|
* The options that determine the retry behaviour when a Smart Link errors.
|
|
56
50
|
* @internal
|
|
@@ -86,12 +80,6 @@ export type TitleBlockProps = {
|
|
|
86
80
|
* the Smart Link.
|
|
87
81
|
*/
|
|
88
82
|
icon?: React.ReactNode;
|
|
89
|
-
/**
|
|
90
|
-
* The theme of the link text. Can be Black or Link (default URL blue)
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
93
|
-
*/
|
|
94
|
-
theme?: SmartLinkTheme;
|
|
95
83
|
/**
|
|
96
84
|
* The vertical position of the metadata fields. Internal prop, please DO NOT USE.
|
|
97
85
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type Ref } from 'react';
|
|
2
|
-
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize
|
|
2
|
+
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
|
|
3
3
|
import { type ActionProps } from '../actions/action/types';
|
|
4
4
|
export type BlockProps = {
|
|
5
5
|
/**
|
|
@@ -25,13 +25,6 @@ export type BlockProps = {
|
|
|
25
25
|
* default to.
|
|
26
26
|
*/
|
|
27
27
|
size?: SmartLinkSize;
|
|
28
|
-
/**
|
|
29
|
-
* The status of the Smart Link. Used to conditionally render different blocks
|
|
30
|
-
* when Smart Link is in different states.
|
|
31
|
-
* @internal
|
|
32
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
33
|
-
*/
|
|
34
|
-
status?: SmartLinkStatus;
|
|
35
28
|
/**
|
|
36
29
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
37
30
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -21,5 +21,5 @@ export declare const getFlexibleUiBlock: (node: React.ReactNode) => React.ReactN
|
|
|
21
21
|
* @internal
|
|
22
22
|
* @see Block
|
|
23
23
|
*/
|
|
24
|
-
declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, removeBlockRestriction, size, status, testId,
|
|
24
|
+
declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, removeBlockRestriction, size, status, testId, }: ContainerProps) => JSX.Element;
|
|
25
25
|
export default Container;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type InternalFlexibleUiOptions } from '../FlexibleCard/types';
|
|
2
2
|
export declare const HOVER_CARD_Z_INDEX: 510;
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
5
|
-
*/
|
|
6
|
-
export declare const flexibleUiOptionsOld: InternalFlexibleUiOptions;
|
|
7
3
|
export declare const flexibleUiOptions: InternalFlexibleUiOptions;
|
|
8
4
|
export declare const CARD_WIDTH_REM = 24;
|
|
9
5
|
export declare const CARD_GAP_PX = 10;
|
|
@@ -13,17 +13,5 @@ export type FlexibleCardContextType = {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const FlexibleCardContext: import("react").Context<FlexibleCardContextType | undefined>;
|
|
15
15
|
export declare const useFlexibleCardContext: () => FlexibleCardContextType | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* This provides the data that will be used by Smart Links Flexible UI to populate it's
|
|
18
|
-
* underlying elements.
|
|
19
|
-
* @deprecated Remove on cleanup of platform-linking-flexible-card-context
|
|
20
|
-
*/
|
|
21
|
-
export declare const FlexibleUiContext: import("react").Context<FlexibleUiDataContext | undefined>;
|
|
22
16
|
export declare const useFlexibleUiContext: () => FlexibleUiDataContext | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* This provides the ui options that will be used by Smart Links Flexible UI
|
|
25
|
-
* to render its underlying elements.
|
|
26
|
-
* @deprecated Remove on cleanup of platform-linking-flexible-card-context
|
|
27
|
-
*/
|
|
28
|
-
export declare const FlexibleUiOptionContext: import("react").Context<InternalFlexibleUiOptions | undefined>;
|
|
29
17
|
export declare const useFlexibleUiOptionContext: () => InternalFlexibleUiOptions | undefined;
|
|
@@ -219,13 +219,6 @@ export type FlexibleUiDataContext = {
|
|
|
219
219
|
* @see TargetBranch
|
|
220
220
|
*/
|
|
221
221
|
targetBranch?: string;
|
|
222
|
-
/**
|
|
223
|
-
* Contains the Title of the linked resource.
|
|
224
|
-
* @type string
|
|
225
|
-
* @see Title
|
|
226
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
227
|
-
*/
|
|
228
|
-
title?: string;
|
|
229
222
|
/**
|
|
230
223
|
* Contains the url of the linked resource.
|
|
231
224
|
* @type string
|
|
@@ -9,10 +9,6 @@ type SimulatedMetadata = {
|
|
|
9
9
|
topMetadata: ElementItem[];
|
|
10
10
|
bottomMetadata?: ElementItem[];
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
14
|
-
*/
|
|
15
|
-
export declare const FlexibleCardUiOptionsOld: InternalFlexibleUiOptions;
|
|
16
12
|
export declare const FlexibleCardUiOptions: InternalFlexibleUiOptions;
|
|
17
13
|
export declare const titleBlockOptions: Partial<TitleBlockProps>;
|
|
18
14
|
export declare const PreviewBlockOptions: Partial<PreviewBlockProps>;
|
|
@@ -6,5 +6,5 @@ import type { AIFooterBlockProps } from './types';
|
|
|
6
6
|
* @param {AIFooterBlockProps} AIFooterBlockProps
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const AIFooterBlock: ({
|
|
9
|
+
declare const AIFooterBlock: ({ testId, ...props }: AIFooterBlockProps) => React.JSX.Element | null;
|
|
10
10
|
export default AIFooterBlock;
|
|
@@ -7,5 +7,5 @@ import { type AISummaryBlockProps } from './types';
|
|
|
7
7
|
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const AISummaryBlock: ({
|
|
10
|
+
declare const AISummaryBlock: ({ testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default AISummaryBlock;
|
|
@@ -7,5 +7,5 @@ import { type FooterBlockProps } from './types';
|
|
|
7
7
|
* @param {FooterBlockProps} FooterBlockProps
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const FooterBlock: ({
|
|
10
|
+
declare const FooterBlock: ({ testId, alwaysShow, ...props }: FooterBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default FooterBlock;
|
|
@@ -7,5 +7,5 @@ import { type MetadataBlockProps } from './types';
|
|
|
7
7
|
* @param {MetadataBlockProps} MetadataBlockProps
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const MetadataBlock: ({ maxLines,
|
|
10
|
+
declare const MetadataBlock: ({ maxLines, testId, primary, secondary, ...blockProps }: MetadataBlockProps) => JSX.Element | null;
|
|
11
11
|
export default MetadataBlock;
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from './types';
|
|
|
6
6
|
* @param {PreviewBlockProps} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlock: ({
|
|
9
|
+
declare const PreviewBlock: ({ testId, overrideUrl, ...blockProps }: PreviewBlockProps) => React.JSX.Element;
|
|
10
10
|
export default PreviewBlock;
|
|
@@ -6,5 +6,5 @@ import { type SnippetBlockProps } from './types';
|
|
|
6
6
|
* @param {SnippetBlockProps} SnippetBlockProps
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const SnippetBlock: ({ maxLines,
|
|
9
|
+
declare const SnippetBlock: ({ maxLines, testId, text, isHidden, showFooter, ...blockProps }: SnippetBlockProps) => React.JSX.Element | null;
|
|
10
10
|
export default SnippetBlock;
|
|
@@ -12,5 +12,5 @@ import { type TitleBlockProps } from './types';
|
|
|
12
12
|
* @see TitleBlockResolvedViewNew
|
|
13
13
|
* @see TitleBlockErroredViewNew
|
|
14
14
|
*/
|
|
15
|
-
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange,
|
|
15
|
+
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, showActionOnHover, testId, text, icon, hideRetry, metadataPosition, hideIcon, className, anchorRef, CompetitorPrompt, url, hideIconLoadingSkeleton, ...props }: TitleBlockProps) => JSX.Element;
|
|
16
16
|
export default TitleBlock;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type SmartLinkPosition
|
|
2
|
+
import { type SmartLinkPosition } from '../../../../../constants';
|
|
3
3
|
import { type RetryOptions } from '../../../types';
|
|
4
4
|
import { type AnchorTarget } from '../../types';
|
|
5
5
|
import { type ActionItem, type BlockProps, type ElementItem, type OnActionMenuOpenChangeOptions } from '../types';
|
|
@@ -45,12 +45,6 @@ export type TitleBlockProps = {
|
|
|
45
45
|
* Default is top.
|
|
46
46
|
*/
|
|
47
47
|
position?: SmartLinkPosition;
|
|
48
|
-
/**
|
|
49
|
-
* Determines the onClick behaviour of the Link. By default used for analytics.
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
52
|
-
*/
|
|
53
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
54
48
|
/**
|
|
55
49
|
* The options that determine the retry behaviour when a Smart Link errors.
|
|
56
50
|
* @internal
|
|
@@ -86,12 +80,6 @@ export type TitleBlockProps = {
|
|
|
86
80
|
* the Smart Link.
|
|
87
81
|
*/
|
|
88
82
|
icon?: React.ReactNode;
|
|
89
|
-
/**
|
|
90
|
-
* The theme of the link text. Can be Black or Link (default URL blue)
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
93
|
-
*/
|
|
94
|
-
theme?: SmartLinkTheme;
|
|
95
83
|
/**
|
|
96
84
|
* The vertical position of the metadata fields. Internal prop, please DO NOT USE.
|
|
97
85
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type Ref } from 'react';
|
|
2
|
-
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize
|
|
2
|
+
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
|
|
3
3
|
import { type ActionProps } from '../actions/action/types';
|
|
4
4
|
export type BlockProps = {
|
|
5
5
|
/**
|
|
@@ -25,13 +25,6 @@ export type BlockProps = {
|
|
|
25
25
|
* default to.
|
|
26
26
|
*/
|
|
27
27
|
size?: SmartLinkSize;
|
|
28
|
-
/**
|
|
29
|
-
* The status of the Smart Link. Used to conditionally render different blocks
|
|
30
|
-
* when Smart Link is in different states.
|
|
31
|
-
* @internal
|
|
32
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
33
|
-
*/
|
|
34
|
-
status?: SmartLinkStatus;
|
|
35
28
|
/**
|
|
36
29
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
37
30
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -21,5 +21,5 @@ export declare const getFlexibleUiBlock: (node: React.ReactNode) => React.ReactN
|
|
|
21
21
|
* @internal
|
|
22
22
|
* @see Block
|
|
23
23
|
*/
|
|
24
|
-
declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, removeBlockRestriction, size, status, testId,
|
|
24
|
+
declare const Container: ({ children, clickableContainer, hideBackground, hideElevation, hidePadding, onClick, retry, showHoverPreview, hoverPreviewOptions, actionOptions, removeBlockRestriction, size, status, testId, }: ContainerProps) => JSX.Element;
|
|
25
25
|
export default Container;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type InternalFlexibleUiOptions } from '../FlexibleCard/types';
|
|
2
2
|
export declare const HOVER_CARD_Z_INDEX: 510;
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Remove on platform-linking-flexible-card-context cleanup
|
|
5
|
-
*/
|
|
6
|
-
export declare const flexibleUiOptionsOld: InternalFlexibleUiOptions;
|
|
7
3
|
export declare const flexibleUiOptions: InternalFlexibleUiOptions;
|
|
8
4
|
export declare const CARD_WIDTH_REM = 24;
|
|
9
5
|
export declare const CARD_GAP_PX = 10;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.4.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -211,9 +211,6 @@
|
|
|
211
211
|
"platform-linking-visual-refresh-inline-lozenge": {
|
|
212
212
|
"type": "boolean"
|
|
213
213
|
},
|
|
214
|
-
"platform-linking-flexible-card-unresolved-action": {
|
|
215
|
-
"type": "boolean"
|
|
216
|
-
},
|
|
217
214
|
"smart_links_noun_support": {
|
|
218
215
|
"type": "boolean"
|
|
219
216
|
},
|
|
@@ -226,9 +223,6 @@
|
|
|
226
223
|
"platform-linking-ai-summary-migration-to-convo-ai": {
|
|
227
224
|
"type": "boolean"
|
|
228
225
|
},
|
|
229
|
-
"platform-linking-flexible-card-context": {
|
|
230
|
-
"type": "boolean"
|
|
231
|
-
},
|
|
232
226
|
"dst-a11y__replace-anchor-with-link__linking-platfo": {
|
|
233
227
|
"type": "boolean"
|
|
234
228
|
},
|
|
@@ -252,6 +246,9 @@
|
|
|
252
246
|
},
|
|
253
247
|
"platform_renderer_blindspots": {
|
|
254
248
|
"type": "boolean"
|
|
249
|
+
},
|
|
250
|
+
"platform-linking-enable-avatar-data-separator": {
|
|
251
|
+
"type": "boolean"
|
|
255
252
|
}
|
|
256
253
|
},
|
|
257
254
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|