@atlaskit/smart-card 26.28.2 → 26.30.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 +405 -389
- package/dist/cjs/extractors/common/context/extractAccessContext.js +2 -1
- package/dist/cjs/extractors/flexible/extract-preview.js +3 -0
- package/dist/cjs/messages.js +11 -15
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +4 -5
- package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +1 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/mocks.js +4 -3
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +0 -3
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +6 -6
- package/dist/cjs/view/FlexibleCard/utils.js +4 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +9 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +82 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +18 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/types.js +5 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +0 -3
- package/dist/cjs/view/HoverCard/styled.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/common/context/extractAccessContext.js +2 -1
- package/dist/es2019/extractors/flexible/extract-preview.js +3 -0
- package/dist/es2019/messages.js +11 -15
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -2
- package/dist/es2019/utils/analytics/LinkAnalyticsContext.js +0 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/mocks.js +3 -0
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -2
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +0 -3
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +6 -6
- package/dist/es2019/view/FlexibleCard/utils.js +4 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +9 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +72 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +17 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/types.js +1 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +0 -2
- package/dist/es2019/view/HoverCard/styled.js +3 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/common/context/extractAccessContext.js +2 -1
- package/dist/esm/extractors/flexible/extract-preview.js +3 -0
- package/dist/esm/messages.js +11 -15
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +4 -5
- package/dist/esm/utils/analytics/LinkAnalyticsContext.js +1 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +4 -3
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -2
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -2
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +0 -3
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +6 -6
- package/dist/esm/view/FlexibleCard/utils.js +4 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +9 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +71 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +8 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/types.js +1 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +0 -3
- package/dist/esm/view/HoverCard/styled.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +3 -5
- package/dist/types/state/hooks/useSmartLink.d.ts +2 -4
- package/dist/types/utils/analytics/LinkAnalyticsContext.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +2 -4
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/forbidden/index.d.ts +4 -0
- package/dist/types/view/HoverCard/components/views/forbidden/styled.d.ts +3 -0
- package/dist/types/view/HoverCard/components/views/forbidden/types.d.ts +13 -0
- package/dist/types/view/HoverCard/styled.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +3 -5
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +2 -4
- package/dist/types-ts4.5/utils/analytics/LinkAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +2 -4
- package/dist/types-ts4.5/view/BlockCard/views/ResolvedView.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/forbidden/index.d.ts +4 -0
- package/dist/types-ts4.5/view/HoverCard/components/views/forbidden/styled.d.ts +3 -0
- package/dist/types-ts4.5/view/HoverCard/components/views/forbidden/types.d.ts +13 -0
- package/dist/types-ts4.5/view/HoverCard/styled.d.ts +1 -1
- package/package.json +7 -3
- package/report.api.md +1 -6
- package/tmp/api-report-tmp.d.ts +2 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnalyticsHandler, AnalyticsName, AnalyticsPayload } from '../../utils/types';
|
|
2
|
-
import {
|
|
2
|
+
import { ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
3
3
|
import { TrackQuickActionFailureReason, TrackQuickActionType } from '../../utils/analytics/analytics';
|
|
4
4
|
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
5
5
|
/**
|
|
@@ -93,7 +93,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
93
93
|
* @param invokeType @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
94
94
|
* @returns
|
|
95
95
|
*/
|
|
96
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
96
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
97
97
|
/**
|
|
98
98
|
* This fires an event that represents when a user clicks on a hover preview's "navigate to link" button.
|
|
99
99
|
* https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3206743323/Analytics+Metrics+-+Hover+Previews
|
|
@@ -246,9 +246,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
246
246
|
* Removed in EDM-5153: This is an even from an experiment.
|
|
247
247
|
* @deprecated
|
|
248
248
|
*/
|
|
249
|
-
linkUpdated: (
|
|
250
|
-
[key: string]: any;
|
|
251
|
-
}) => void;
|
|
249
|
+
linkUpdated: () => void;
|
|
252
250
|
/**
|
|
253
251
|
* This fires a tracking event before an action invoke api call is made
|
|
254
252
|
*/
|
|
@@ -24,7 +24,7 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
24
24
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
|
|
25
25
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../utils/analytics/types").UiIframeDwelledEventProps) => void;
|
|
26
26
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../utils/analytics/types").UiIframeFocusedEventProps) => void;
|
|
27
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
27
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
|
|
28
28
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
29
29
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
|
|
30
30
|
modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
|
|
@@ -51,9 +51,7 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
51
51
|
track: {
|
|
52
52
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
53
53
|
appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
54
|
-
linkUpdated: (
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}) => void;
|
|
54
|
+
linkUpdated: () => void;
|
|
57
55
|
smartLinkQuickActionStarted: (props: {
|
|
58
56
|
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
59
57
|
}) => void;
|
|
@@ -13,5 +13,5 @@ type LinkAnalyticsContextProps = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Provides an analytics context to supply attributes to events based on a URL
|
|
15
15
|
*/
|
|
16
|
-
export declare const LinkAnalyticsContext: ({
|
|
16
|
+
export declare const LinkAnalyticsContext: ({ display, id, children, source, }: LinkAnalyticsContextProps) => JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -90,7 +90,7 @@ export declare const mockAnalytics: {
|
|
|
90
90
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("./analytics/types").UiCardClickedEventProps) => void;
|
|
91
91
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("./analytics/types").UiIframeDwelledEventProps) => void;
|
|
92
92
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("./analytics/types").UiIframeFocusedEventProps) => void;
|
|
93
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
93
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
|
|
94
94
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("./analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
95
95
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiClosedAuthEventProps) => void;
|
|
96
96
|
modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
@@ -117,9 +117,7 @@ export declare const mockAnalytics: {
|
|
|
117
117
|
track: {
|
|
118
118
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
119
119
|
appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
120
|
-
linkUpdated: (
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
}) => void;
|
|
120
|
+
linkUpdated: () => void;
|
|
123
121
|
smartLinkQuickActionStarted: (props: {
|
|
124
122
|
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
|
|
125
123
|
}) => void;
|
|
@@ -33,4 +33,4 @@ export interface ResolvedViewProps {
|
|
|
33
33
|
}
|
|
34
34
|
export declare const blockCardResolvedViewClassName = "block-card-resolved-view";
|
|
35
35
|
export declare const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
|
|
36
|
-
export declare const ResolvedView: ({ icon, actions, thumbnail, context, title, titleTextColor, titlePrefix, isSelected, users, handleAvatarClick, handleMoreAvatarsClick, onClick, link, byline, lozenge, details, testId, showActions,
|
|
36
|
+
export declare const ResolvedView: ({ icon, actions, thumbnail, context, title, titleTextColor, titlePrefix, isSelected, users, handleAvatarClick, handleMoreAvatarsClick, onClick, link, byline, lozenge, details, testId, showActions, }: ResolvedViewProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlexibleCardProps } from '../../../../FlexibleCard/types';
|
|
2
|
+
export type HoverCardForbiddenProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Data required for rendering a Flexible Card
|
|
5
|
+
*/
|
|
6
|
+
flexibleCardProps: FlexibleCardProps;
|
|
7
|
+
/**
|
|
8
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
9
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
10
|
+
* serving as a hook for automated tests
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
@@ -8,4 +8,4 @@ export declare const HoverCardContainer: import("@emotion/react").SerializedStyl
|
|
|
8
8
|
export declare const titleBlockCss: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const getTransitionStyles: (snippetHeight: number) => import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const popupContainerStyles: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const getPreviewBlockStyles: (
|
|
11
|
+
export declare const getPreviewBlockStyles: (previewHeight?: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnalyticsHandler, AnalyticsName, AnalyticsPayload } from '../../utils/types';
|
|
2
|
-
import {
|
|
2
|
+
import { ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
3
3
|
import { TrackQuickActionFailureReason, TrackQuickActionType } from '../../utils/analytics/analytics';
|
|
4
4
|
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
5
5
|
/**
|
|
@@ -93,7 +93,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
93
93
|
* @param invokeType @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
94
94
|
* @returns
|
|
95
95
|
*/
|
|
96
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
96
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
97
97
|
/**
|
|
98
98
|
* This fires an event that represents when a user clicks on a hover preview's "navigate to link" button.
|
|
99
99
|
* https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3206743323/Analytics+Metrics+-+Hover+Previews
|
|
@@ -246,9 +246,7 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
246
246
|
* Removed in EDM-5153: This is an even from an experiment.
|
|
247
247
|
* @deprecated
|
|
248
248
|
*/
|
|
249
|
-
linkUpdated: (
|
|
250
|
-
[key: string]: any;
|
|
251
|
-
}) => void;
|
|
249
|
+
linkUpdated: () => void;
|
|
252
250
|
/**
|
|
253
251
|
* This fires a tracking event before an action invoke api call is made
|
|
254
252
|
*/
|
|
@@ -24,7 +24,7 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
24
24
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
|
|
25
25
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../utils/analytics/types").UiIframeDwelledEventProps) => void;
|
|
26
26
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../utils/analytics/types").UiIframeFocusedEventProps) => void;
|
|
27
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
27
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
|
|
28
28
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
29
29
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
|
|
30
30
|
modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
|
|
@@ -51,9 +51,7 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
51
51
|
track: {
|
|
52
52
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
53
53
|
appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
54
|
-
linkUpdated: (
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}) => void;
|
|
54
|
+
linkUpdated: () => void;
|
|
57
55
|
smartLinkQuickActionStarted: (props: {
|
|
58
56
|
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
59
57
|
}) => void;
|
|
@@ -13,5 +13,5 @@ type LinkAnalyticsContextProps = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Provides an analytics context to supply attributes to events based on a URL
|
|
15
15
|
*/
|
|
16
|
-
export declare const LinkAnalyticsContext: ({
|
|
16
|
+
export declare const LinkAnalyticsContext: ({ display, id, children, source, }: LinkAnalyticsContextProps) => JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -90,7 +90,7 @@ export declare const mockAnalytics: {
|
|
|
90
90
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("./analytics/types").UiCardClickedEventProps) => void;
|
|
91
91
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("./analytics/types").UiIframeDwelledEventProps) => void;
|
|
92
92
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("./analytics/types").UiIframeFocusedEventProps) => void;
|
|
93
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
93
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
|
|
94
94
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("./analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
95
95
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiClosedAuthEventProps) => void;
|
|
96
96
|
modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
@@ -117,9 +117,7 @@ export declare const mockAnalytics: {
|
|
|
117
117
|
track: {
|
|
118
118
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
119
119
|
appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
120
|
-
linkUpdated: (
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
}) => void;
|
|
120
|
+
linkUpdated: () => void;
|
|
123
121
|
smartLinkQuickActionStarted: (props: {
|
|
124
122
|
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
|
|
125
123
|
}) => void;
|
|
@@ -33,4 +33,4 @@ export interface ResolvedViewProps {
|
|
|
33
33
|
}
|
|
34
34
|
export declare const blockCardResolvedViewClassName = "block-card-resolved-view";
|
|
35
35
|
export declare const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
|
|
36
|
-
export declare const ResolvedView: ({ icon, actions, thumbnail, context, title, titleTextColor, titlePrefix, isSelected, users, handleAvatarClick, handleMoreAvatarsClick, onClick, link, byline, lozenge, details, testId, showActions,
|
|
36
|
+
export declare const ResolvedView: ({ icon, actions, thumbnail, context, title, titleTextColor, titlePrefix, isSelected, users, handleAvatarClick, handleMoreAvatarsClick, onClick, link, byline, lozenge, details, testId, showActions, }: ResolvedViewProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlexibleCardProps } from '../../../../FlexibleCard/types';
|
|
2
|
+
export type HoverCardForbiddenProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Data required for rendering a Flexible Card
|
|
5
|
+
*/
|
|
6
|
+
flexibleCardProps: FlexibleCardProps;
|
|
7
|
+
/**
|
|
8
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
9
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
10
|
+
* serving as a hook for automated tests
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
@@ -8,4 +8,4 @@ export declare const HoverCardContainer: import("@emotion/react").SerializedStyl
|
|
|
8
8
|
export declare const titleBlockCss: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const getTransitionStyles: (snippetHeight: number) => import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const popupContainerStyles: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const getPreviewBlockStyles: (
|
|
11
|
+
export declare const getPreviewBlockStyles: (previewHeight?: number) => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.30.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
38
38
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
39
39
|
"@atlaskit/link-client-extension": "^1.7.0",
|
|
40
|
-
"@atlaskit/link-extractors": "^1.
|
|
40
|
+
"@atlaskit/link-extractors": "^1.2.0",
|
|
41
41
|
"@atlaskit/linking-common": "^4.10.0",
|
|
42
|
-
"@atlaskit/linking-types": "^8.
|
|
42
|
+
"@atlaskit/linking-types": "^8.4.0",
|
|
43
43
|
"@atlaskit/logo": "^13.14.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.4.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^12.7.0",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"@testing-library/react": "^12.1.5",
|
|
87
87
|
"@testing-library/react-hooks": "^8.0.1",
|
|
88
88
|
"@testing-library/user-event": "^14.4.3",
|
|
89
|
+
"@types/facepaint": "^1.2.1",
|
|
89
90
|
"@types/lorem-ipsum": "^1.0.2",
|
|
90
91
|
"@types/react": "^16.8.0",
|
|
91
92
|
"@types/react-loadable": "^5.4.1",
|
|
@@ -154,6 +155,9 @@
|
|
|
154
155
|
},
|
|
155
156
|
"platform.linking-platform.smart-card.iframes-allow-storage-access-by-user-activation": {
|
|
156
157
|
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"platform.linking-platform.smart-card.cross-join": {
|
|
160
|
+
"type": "boolean"
|
|
157
161
|
}
|
|
158
162
|
},
|
|
159
163
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/report.api.md
CHANGED
|
@@ -1142,7 +1142,6 @@ export const useSmartLinkAnalytics: (
|
|
|
1142
1142
|
id,
|
|
1143
1143
|
actionType,
|
|
1144
1144
|
display,
|
|
1145
|
-
invokeType,
|
|
1146
1145
|
extensionKey: overrideExtensionKey,
|
|
1147
1146
|
definitionId,
|
|
1148
1147
|
resourceType,
|
|
@@ -1309,11 +1308,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1309
1308
|
extensionKey,
|
|
1310
1309
|
location,
|
|
1311
1310
|
}: TrackAppAccountConnectedProps) => void;
|
|
1312
|
-
linkUpdated: (
|
|
1313
|
-
props: CommonEventProps & {
|
|
1314
|
-
[key: string]: any;
|
|
1315
|
-
},
|
|
1316
|
-
) => void;
|
|
1311
|
+
linkUpdated: () => void;
|
|
1317
1312
|
smartLinkQuickActionStarted: (props: {
|
|
1318
1313
|
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
1319
1314
|
}) => void;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -932,7 +932,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
932
932
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
|
|
933
933
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: UiIframeDwelledEventProps) => void;
|
|
934
934
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: UiIframeFocusedEventProps) => void;
|
|
935
|
-
actionClickedEvent: ({ id, actionType, display,
|
|
935
|
+
actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
936
936
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
937
937
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
|
|
938
938
|
modalClosedEvent: (data: Partial<AnalyticsPayload> & {
|
|
@@ -959,9 +959,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
959
959
|
track: {
|
|
960
960
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
961
961
|
appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
|
|
962
|
-
linkUpdated: (
|
|
963
|
-
[key: string]: any;
|
|
964
|
-
}) => void;
|
|
962
|
+
linkUpdated: () => void;
|
|
965
963
|
smartLinkQuickActionStarted: (props: {
|
|
966
964
|
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
967
965
|
}) => void;
|