@atlaskit/smart-card 23.7.3 → 23.8.1
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 +12 -0
- package/dist/cjs/constants.js +14 -2
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +3 -1
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +41 -13
- package/dist/cjs/utils/analytics/analytics.js +128 -96
- package/dist/cjs/utils/analytics/index.js +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/components/flexible/footer/index.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +4 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +3 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +17 -4
- package/dist/cjs/view/CardWithUrl/component.js +3 -1
- package/dist/cjs/view/EmbedCard/index.js +6 -2
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +21 -4
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +4 -2
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +14 -24
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +61 -34
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +26 -7
- package/dist/cjs/view/HoverCard/index.js +6 -3
- package/dist/cjs/view/HoverCard/utils.js +1 -4
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/cjs/view/InlineCard/index.js +2 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +14 -3
- package/dist/es2019/constants.js +12 -1
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +33 -8
- package/dist/es2019/utils/analytics/analytics.js +28 -4
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/components/flexible/footer/index.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +4 -2
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -4
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +15 -3
- package/dist/es2019/view/CardWithUrl/component.js +2 -1
- package/dist/es2019/view/EmbedCard/index.js +6 -2
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +14 -3
- package/dist/es2019/view/EmbedModal/components/analytics/index.js +3 -2
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +14 -20
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +52 -30
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +23 -7
- package/dist/es2019/view/HoverCard/index.js +6 -3
- package/dist/es2019/view/HoverCard/utils.js +0 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/es2019/view/InlineCard/index.js +2 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +18 -11
- package/dist/esm/constants.js +12 -1
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +42 -14
- package/dist/esm/utils/analytics/analytics.js +118 -92
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/components/flexible/footer/index.js +1 -1
- package/dist/esm/view/BlockCard/index.js +4 -2
- package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -4
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +18 -5
- package/dist/esm/view/CardWithUrl/component.js +2 -1
- package/dist/esm/view/EmbedCard/index.js +6 -2
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +15 -4
- package/dist/esm/view/EmbedModal/components/analytics/index.js +3 -2
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +14 -22
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +54 -30
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +3 -3
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +27 -9
- package/dist/esm/view/HoverCard/index.js +6 -3
- package/dist/esm/view/HoverCard/utils.js +0 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +2 -1
- package/dist/esm/view/InlineCard/index.js +2 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +8 -3
- package/dist/types/constants.d.ts +8 -0
- package/dist/types/state/actions/index.d.ts +1 -2
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +17 -4
- package/dist/types/state/flexible-ui-context/index.d.ts +8 -4
- package/dist/types/state/hooks/useSmartLink.d.ts +5 -3
- package/dist/types/utils/analytics/analytics.d.ts +4 -2
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +2 -0
- package/dist/types/utils/mocks.d.ts +4 -2
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/view/BlockCard/components/flexible/footer/index.d.ts +1 -1
- package/dist/types/view/BlockCard/views/flexible/FlexibleUnauthorisedView.d.ts +1 -1
- package/dist/types/view/BlockCard/views/flexible/types.d.ts +17 -13
- package/dist/types/view/Card/types.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/UnauthorisedView.d.ts +3 -0
- package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +0 -1
- package/dist/types/view/HoverCard/components/HoverCardContent.d.ts +1 -0
- package/dist/types/view/HoverCard/components/views/unauthorised/types.d.ts +15 -4
- package/dist/types/view/HoverCard/types.d.ts +3 -3
- package/dist/types/view/HoverCard/utils.d.ts +0 -1
- package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +2 -0
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +7 -1
- package/package.json +5 -5
- package/report.api.md +15 -1
- package/tmp/api-report-tmp.d.ts +8 -4
|
@@ -53,8 +53,9 @@ export declare const mockAnalytics: {
|
|
|
53
53
|
}) => void;
|
|
54
54
|
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
|
|
55
55
|
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
|
|
56
|
-
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
|
|
57
|
-
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
56
|
+
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
|
|
57
|
+
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
58
|
+
learnMoreClickedEvent: () => void;
|
|
58
59
|
};
|
|
59
60
|
operational: {
|
|
60
61
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
|
|
@@ -65,6 +66,7 @@ export declare const mockAnalytics: {
|
|
|
65
66
|
};
|
|
66
67
|
track: {
|
|
67
68
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
69
|
+
appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
68
70
|
};
|
|
69
71
|
screen: {
|
|
70
72
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
import { CardInnerAppearance } from '../view/Card/types';
|
|
3
|
-
export declare type AnalyticsAction = '
|
|
3
|
+
export declare type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved';
|
|
4
4
|
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal';
|
|
5
5
|
export declare type AnalyticsName = 'embedPreviewModal';
|
|
6
6
|
export declare type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BlockCardFooterProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* This
|
|
4
|
+
* This Component is a footer that is used in a Block Card with Flexible UI.
|
|
5
5
|
* It contains a provider icon if provider is present and an actions list if one is passed.
|
|
6
6
|
* To be shown as a part of Flexible UI, needs to be wrapped inside of a CustomBlock
|
|
7
7
|
*
|
|
@@ -7,5 +7,5 @@ import { FlexibleBlockCardProps } from './types';
|
|
|
7
7
|
* @see SmartLinkStatus
|
|
8
8
|
* @see FlexibleCardProps
|
|
9
9
|
*/
|
|
10
|
-
declare const FlexibleUnauthorisedView: ({ cardState, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
10
|
+
declare const FlexibleUnauthorisedView: ({ analytics, cardState, extensionKey, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
11
11
|
export default FlexibleUnauthorisedView;
|
|
@@ -6,20 +6,23 @@ import { OnResolveCallback } from '../../../Card/types';
|
|
|
6
6
|
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
7
7
|
import { AnalyticsFacade } from '../../../../state/analytics';
|
|
8
8
|
export declare type FlexibleBlockCardProps = {
|
|
9
|
+
/**
|
|
10
|
+
* An AnalyticsFacade object used for calling analytics.
|
|
11
|
+
*/
|
|
12
|
+
analytics: AnalyticsFacade;
|
|
9
13
|
/**
|
|
10
14
|
* Determines the status and data of the Smart Link.
|
|
11
15
|
* @internal
|
|
12
16
|
*/
|
|
13
17
|
cardState: CardState;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Provides the extensionKey of a Smart Link resolver invoked.
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
extensionKey?: string;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
20
|
-
* to render Emoji.
|
|
23
|
+
* A unique id for this Smart Link instance, used for analytics.
|
|
21
24
|
*/
|
|
22
|
-
|
|
25
|
+
id?: string;
|
|
23
26
|
/**
|
|
24
27
|
* An additional action that can be performed when link is not resolved, e.g.
|
|
25
28
|
* connect account to gain access to 403 link.
|
|
@@ -35,6 +38,15 @@ export declare type FlexibleBlockCardProps = {
|
|
|
35
38
|
* function to be called after a flexible card has rendered its error states
|
|
36
39
|
*/
|
|
37
40
|
onError?: OnErrorCallback;
|
|
41
|
+
/**
|
|
42
|
+
* function to be called after a flexible card has rendered its resolved state
|
|
43
|
+
*/
|
|
44
|
+
onResolve?: OnResolveCallback;
|
|
45
|
+
/**
|
|
46
|
+
* Any additional renderers required by Flexible UI. Currently used by icon
|
|
47
|
+
* to render Emoji.
|
|
48
|
+
*/
|
|
49
|
+
renderers?: CardProviderRenderers;
|
|
38
50
|
/**
|
|
39
51
|
* A name of the provider, needed to specify to user which account has to be connected
|
|
40
52
|
*/
|
|
@@ -50,14 +62,6 @@ export declare type FlexibleBlockCardProps = {
|
|
|
50
62
|
* @see FlexibleUiOptions
|
|
51
63
|
*/
|
|
52
64
|
ui?: FlexibleUiOptions;
|
|
53
|
-
/**
|
|
54
|
-
* A unique id for this Smart Link instance, used for analytics.
|
|
55
|
-
*/
|
|
56
|
-
id?: string;
|
|
57
|
-
/**
|
|
58
|
-
* An AnalyticsFacade object used for calling analytics.
|
|
59
|
-
*/
|
|
60
|
-
analytics: AnalyticsFacade;
|
|
61
65
|
/**
|
|
62
66
|
* Determines the URL of the Smart Link.
|
|
63
67
|
*/
|
|
@@ -5,7 +5,7 @@ import { AnalyticsFacade } from '../../state/analytics';
|
|
|
5
5
|
import { FlexibleUiOptions } from '../FlexibleCard/types';
|
|
6
6
|
import { InlinePreloaderStyle, OnErrorCallback } from '../types';
|
|
7
7
|
export type { CardAppearance, CardPlatform };
|
|
8
|
-
export declare type CardInnerAppearance = CardAppearance | '
|
|
8
|
+
export declare type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
9
9
|
export declare type OnResolveCallback = (data: {
|
|
10
10
|
url?: string;
|
|
11
11
|
title?: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { ContextViewModel } from '../types';
|
|
3
|
+
import { AnalyticsFacade } from '../../../state/analytics';
|
|
3
4
|
export interface EmbedCardUnauthorisedViewProps {
|
|
5
|
+
analytics: AnalyticsFacade;
|
|
4
6
|
context?: ContextViewModel;
|
|
5
7
|
link: string;
|
|
6
8
|
isSelected?: boolean;
|
|
@@ -8,5 +10,6 @@ export interface EmbedCardUnauthorisedViewProps {
|
|
|
8
10
|
onAuthorise?: () => void;
|
|
9
11
|
inheritDimensions?: boolean;
|
|
10
12
|
onClick?: (evt: React.MouseEvent) => void;
|
|
13
|
+
extensionKey?: string;
|
|
11
14
|
}
|
|
12
15
|
export declare const EmbedCardUnauthorisedView: FC<EmbedCardUnauthorisedViewProps>;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { AnalyticsFacade } from '../../../state/analytics';
|
|
3
3
|
import { ActionItem } from '../../FlexibleCard/components/blocks/types';
|
|
4
4
|
import { HoverCardContentProps } from '../types';
|
|
5
|
+
export declare const hoverCardClassName = "smart-links-hover-preview";
|
|
5
6
|
export declare const getOpenAction: (url: string, analytics: AnalyticsFacade, onActionClick?: ((actionId: string) => void) | undefined) => ActionItem;
|
|
6
7
|
declare const HoverCardContent: React.FC<HoverCardContentProps>;
|
|
7
8
|
export default HoverCardContent;
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import { FlexibleCardProps } from '../../../../FlexibleCard/types';
|
|
2
|
+
import { AnalyticsFacade } from '../../../../../state/analytics';
|
|
2
3
|
export declare type HoverCardUnauthorisedProps = {
|
|
4
|
+
/**
|
|
5
|
+
* An AnalyticsFacade object used for calling analytics.
|
|
6
|
+
*/
|
|
7
|
+
analytics: AnalyticsFacade;
|
|
8
|
+
/**
|
|
9
|
+
* Provides the extensionKey of a Smart Link resolver invoked.
|
|
10
|
+
*/
|
|
11
|
+
extensionKey?: string;
|
|
3
12
|
/**
|
|
4
13
|
* Data required for rendering a Flexible Card
|
|
5
14
|
*/
|
|
6
15
|
flexibleCardProps: FlexibleCardProps;
|
|
7
16
|
/**
|
|
8
|
-
*
|
|
9
|
-
* connecting an account to gain access.
|
|
10
|
-
* @internal
|
|
17
|
+
* A unique ID for a Smart Link.
|
|
11
18
|
*/
|
|
12
|
-
|
|
19
|
+
id?: string;
|
|
13
20
|
/**
|
|
14
21
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
15
22
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
16
23
|
* serving as a hook for automated tests
|
|
17
24
|
*/
|
|
18
25
|
testId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The url that we were trying to resolve and that has the 'unauthorized' state for the current user
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
19
30
|
};
|
|
@@ -5,7 +5,7 @@ import { LinkAction } from '../../state/hooks-external/useSmartLinkActions';
|
|
|
5
5
|
import { CardState } from '@atlaskit/linking-common';
|
|
6
6
|
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
7
7
|
import { AnalyticsHandler } from '../../utils/types';
|
|
8
|
-
import { ReactElement } from 'react';
|
|
8
|
+
import { ReactElement, MouseEventHandler } from 'react';
|
|
9
9
|
import { JsonLd } from 'json-ld-types';
|
|
10
10
|
export interface HoverCardProps extends WithAnalyticsEventsProps {
|
|
11
11
|
id?: string;
|
|
@@ -16,7 +16,6 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
|
|
|
16
16
|
export interface HoverCardComponentProps extends HoverCardProps {
|
|
17
17
|
analyticsHandler: AnalyticsHandler;
|
|
18
18
|
analytics: AnalyticsFacade;
|
|
19
|
-
onAuthorize?: () => void;
|
|
20
19
|
}
|
|
21
20
|
export declare type PreviewDisplay = 'card' | 'embed';
|
|
22
21
|
export declare type PreviewInvokeMethod = 'keyboard' | 'mouse_hover' | 'mouse_click';
|
|
@@ -34,7 +33,8 @@ export declare type HoverCardContentProps = {
|
|
|
34
33
|
onActionClick: (actionId: string) => void;
|
|
35
34
|
onResolve: () => void;
|
|
36
35
|
url: string;
|
|
37
|
-
|
|
36
|
+
onMouseEnter?: MouseEventHandler;
|
|
37
|
+
onMouseLeave?: MouseEventHandler;
|
|
38
38
|
};
|
|
39
39
|
export declare type SnippetOrPreviewProps = {
|
|
40
40
|
data: JsonLd.Data.BaseData;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
import { LinkAction } from '../../state/hooks-external/useSmartLinkActions';
|
|
3
3
|
import { ElementItem } from '../FlexibleCard/components/blocks/types';
|
|
4
|
-
export declare const SMART_CARD_ANALYTICS_DISPLAY = "flexible";
|
|
5
4
|
export declare const getSimulatedMetadata: (extensionKey?: string, types?: JsonLd.Primitives.ObjectType[]) => JsonLd.Primitives.Property<any>;
|
|
6
5
|
export declare const toActionableMetadata: (onActionClick: (actionId: string) => void, extensionKey?: string | undefined, types?: JsonLd.Primitives.ObjectType[], cardActions?: LinkAction[], elementItems?: ElementItem[]) => ElementItem[];
|
|
@@ -16,6 +16,8 @@ export interface InlineCardUnauthorizedViewProps {
|
|
|
16
16
|
testId?: string;
|
|
17
17
|
/** A flag that determines is a tooltip should show up on hover over the unauthorised link */
|
|
18
18
|
showAuthTooltip?: boolean;
|
|
19
|
+
/** A smart link id that may be used in analytics */
|
|
20
|
+
id?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare class InlineCardUnauthorizedView extends React.Component<InlineCardUnauthorizedViewProps> {
|
|
21
23
|
handleConnectAccount: (event: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { AnalyticsFacade } from '../../state/analytics';
|
|
2
3
|
declare type UnauthorisedViewContentProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Is the name of the provider for the account that needs to be connected
|
|
@@ -11,10 +12,15 @@ declare type UnauthorisedViewContentProps = {
|
|
|
11
12
|
* serving as a hook for automated tests
|
|
12
13
|
*/
|
|
13
14
|
testId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* An analytics facade object which will be used to send analytics.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
analytics?: AnalyticsFacade;
|
|
14
20
|
};
|
|
15
21
|
/**
|
|
16
22
|
* This component is used in unauthorized views of a smart link.
|
|
17
23
|
* It represents the main text that provides a user with information on how to connect their account
|
|
18
24
|
*/
|
|
19
|
-
declare const UnauthorisedViewContent: ({ providerName, testId, }: UnauthorisedViewContentProps) => JSX.Element;
|
|
25
|
+
declare const UnauthorisedViewContent: ({ providerName, testId, analytics, }: UnauthorisedViewContentProps) => JSX.Element;
|
|
20
26
|
export default UnauthorisedViewContent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.8.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
27
27
|
"@atlaskit/avatar": "^21.1.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.1.0",
|
|
29
|
-
"@atlaskit/button": "^16.
|
|
29
|
+
"@atlaskit/button": "^16.5.0",
|
|
30
30
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
31
31
|
"@atlaskit/icon": "^21.11.0",
|
|
32
32
|
"@atlaskit/icon-file-type": "^6.3.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
41
41
|
"@atlaskit/outbound-auth-flow-client": "^3.3.0",
|
|
42
42
|
"@atlaskit/popup": "^1.5.0",
|
|
43
|
-
"@atlaskit/spinner": "^15.
|
|
43
|
+
"@atlaskit/spinner": "^15.3.0",
|
|
44
44
|
"@atlaskit/theme": "^12.2.0",
|
|
45
45
|
"@atlaskit/tokens": "^0.11.0",
|
|
46
46
|
"@atlaskit/tooltip": "^17.6.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/css-reset": "^6.3.0",
|
|
71
71
|
"@atlaskit/docs": "*",
|
|
72
72
|
"@atlaskit/field-base": "^15.0.6",
|
|
73
|
-
"@atlaskit/form": "^8.
|
|
73
|
+
"@atlaskit/form": "^8.8.0",
|
|
74
74
|
"@atlaskit/inline-message": "^11.4.0",
|
|
75
75
|
"@atlaskit/lozenge": "^11.3.0",
|
|
76
76
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/radio": "^5.4.0",
|
|
80
80
|
"@atlaskit/range": "^7.0.0",
|
|
81
81
|
"@atlaskit/section-message": "^6.3.0",
|
|
82
|
-
"@atlaskit/select": "^
|
|
82
|
+
"@atlaskit/select": "^16.0.0",
|
|
83
83
|
"@atlaskit/table-tree": "^9.2.0",
|
|
84
84
|
"@atlaskit/tabs": "^13.3.0",
|
|
85
85
|
"@atlaskit/textarea": "^4.5.0",
|
package/report.api.md
CHANGED
|
@@ -85,6 +85,7 @@ type ActionProps = {
|
|
|
85
85
|
|
|
86
86
|
// @public (undocumented)
|
|
87
87
|
export type AnalyticsAction =
|
|
88
|
+
| 'authStarted'
|
|
88
89
|
| 'clicked'
|
|
89
90
|
| 'closed'
|
|
90
91
|
| 'connectFailed'
|
|
@@ -262,7 +263,11 @@ export { CardAppearance };
|
|
|
262
263
|
export { CardContext };
|
|
263
264
|
|
|
264
265
|
// @public (undocumented)
|
|
265
|
-
type CardInnerAppearance =
|
|
266
|
+
type CardInnerAppearance =
|
|
267
|
+
| 'embedPreview'
|
|
268
|
+
| 'flexible'
|
|
269
|
+
| 'hoverCardPreview'
|
|
270
|
+
| CardAppearance;
|
|
266
271
|
|
|
267
272
|
export { CardPlatform };
|
|
268
273
|
|
|
@@ -880,6 +885,7 @@ type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
|
880
885
|
previewDisplay: PreviewDisplay;
|
|
881
886
|
hoverTime: number;
|
|
882
887
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
888
|
+
status: CardType;
|
|
883
889
|
};
|
|
884
890
|
|
|
885
891
|
// @public (undocumented)
|
|
@@ -892,6 +898,7 @@ type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
|
892
898
|
type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
893
899
|
previewDisplay: PreviewDisplay;
|
|
894
900
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
901
|
+
status: CardType;
|
|
895
902
|
};
|
|
896
903
|
|
|
897
904
|
// @public (undocumented)
|
|
@@ -1018,6 +1025,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1018
1025
|
destinationProduct,
|
|
1019
1026
|
destinationSubproduct,
|
|
1020
1027
|
location,
|
|
1028
|
+
status,
|
|
1021
1029
|
}: UiHoverCardViewedEventProps) => void;
|
|
1022
1030
|
hoverCardDismissedEvent: ({
|
|
1023
1031
|
id,
|
|
@@ -1030,7 +1038,9 @@ export const useSmartLinkAnalytics: (
|
|
|
1030
1038
|
destinationProduct,
|
|
1031
1039
|
destinationSubproduct,
|
|
1032
1040
|
location,
|
|
1041
|
+
status,
|
|
1033
1042
|
}: UiHoverCardDismissedEventProps) => void;
|
|
1043
|
+
learnMoreClickedEvent: () => void;
|
|
1034
1044
|
};
|
|
1035
1045
|
operational: {
|
|
1036
1046
|
invokeSucceededEvent: ({
|
|
@@ -1096,6 +1106,10 @@ export const useSmartLinkAnalytics: (
|
|
|
1096
1106
|
destinationSubproduct,
|
|
1097
1107
|
location,
|
|
1098
1108
|
}: TrackAppAccountConnectedProps) => void;
|
|
1109
|
+
appAccountAuthStarted: ({
|
|
1110
|
+
extensionKey,
|
|
1111
|
+
location,
|
|
1112
|
+
}: TrackAppAccountConnectedProps) => void;
|
|
1099
1113
|
};
|
|
1100
1114
|
screen: {
|
|
1101
1115
|
authPopupEvent: ({
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ type ActionProps = {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// @public (undocumented)
|
|
73
|
-
export type AnalyticsAction = 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'unresolved' | 'viewed';
|
|
73
|
+
export type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'unresolved' | 'viewed';
|
|
74
74
|
|
|
75
75
|
// @public (undocumented)
|
|
76
76
|
export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'modal' | 'smartLink' | 'smartLinkAction';
|
|
@@ -187,7 +187,7 @@ export { CardAppearance }
|
|
|
187
187
|
export { CardContext }
|
|
188
188
|
|
|
189
189
|
// @public (undocumented)
|
|
190
|
-
type CardInnerAppearance = 'flexible' | '
|
|
190
|
+
type CardInnerAppearance = 'embedPreview' | 'flexible' | 'hoverCardPreview' | CardAppearance;
|
|
191
191
|
|
|
192
192
|
export { CardPlatform }
|
|
193
193
|
|
|
@@ -758,6 +758,7 @@ type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
|
758
758
|
previewDisplay: PreviewDisplay;
|
|
759
759
|
hoverTime: number;
|
|
760
760
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
761
|
+
status: CardType;
|
|
761
762
|
};
|
|
762
763
|
|
|
763
764
|
// @public (undocumented)
|
|
@@ -770,6 +771,7 @@ type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
|
770
771
|
type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
771
772
|
previewDisplay: PreviewDisplay;
|
|
772
773
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
774
|
+
status: CardType;
|
|
773
775
|
};
|
|
774
776
|
|
|
775
777
|
// @public (undocumented)
|
|
@@ -802,8 +804,9 @@ export const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHa
|
|
|
802
804
|
}) => void;
|
|
803
805
|
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
|
|
804
806
|
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
805
|
-
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardViewedEventProps) => void;
|
|
806
|
-
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardDismissedEventProps) => void;
|
|
807
|
+
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardViewedEventProps) => void;
|
|
808
|
+
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardDismissedEventProps) => void;
|
|
809
|
+
learnMoreClickedEvent: () => void;
|
|
807
810
|
};
|
|
808
811
|
operational: {
|
|
809
812
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
@@ -814,6 +817,7 @@ export const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHa
|
|
|
814
817
|
};
|
|
815
818
|
track: {
|
|
816
819
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
820
|
+
appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
|
|
817
821
|
};
|
|
818
822
|
screen: {
|
|
819
823
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
|