@atlaskit/profilecard 24.3.0 → 24.3.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 +6 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +0 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +1 -1
- package/dist/types/components/Team/lazyTeamProfileCard.d.ts +0 -1
- package/dist/types/components/User/ProfileCardResourced.d.ts +1 -1
- package/dist/types/components/User/lazyProfileCard.d.ts +0 -1
- package/dist/types/components/common/PopupTrigger.d.ts +1 -1
- package/dist/types/components/common/types.d.ts +0 -1
- package/dist/types/components/team-profile-card/main.d.ts +0 -1
- package/dist/types/styled/Card.d.ts +3 -3
- package/dist/types/styled/TeamTrigger.d.ts +4 -4
- package/dist/types/styled/UserTrigger.d.ts +4 -4
- package/dist/types/util/analytics.d.ts +7 -7
- package/dist/types/util/useProfileInfo.d.ts +1 -1
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +0 -1
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +0 -1
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +1 -1
- package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +0 -1
- package/dist/types-ts4.5/components/common/PopupTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/common/types.d.ts +0 -1
- package/dist/types-ts4.5/components/team-profile-card/main.d.ts +0 -1
- package/dist/types-ts4.5/styled/Card.d.ts +3 -3
- package/dist/types-ts4.5/styled/TeamTrigger.d.ts +4 -4
- package/dist/types-ts4.5/styled/UserTrigger.d.ts +4 -4
- package/dist/types-ts4.5/util/analytics.d.ts +7 -7
- package/dist/types-ts4.5/util/useProfileInfo.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "24.
|
|
14
|
+
headers.append('atl-client-version', "24.3.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "24.
|
|
68
|
+
headers.append('atl-client-version', "24.3.0");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "24.
|
|
48
|
+
packageVersion: "24.3.0"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "24.
|
|
9
|
+
headers.append('atl-client-version', "24.3.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
|
|
|
74
74
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
75
75
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
76
76
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
77
|
-
headers.append('atl-client-version', "24.
|
|
77
|
+
headers.append('atl-client-version', "24.3.0");
|
|
78
78
|
return headers;
|
|
79
79
|
};
|
|
80
80
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "24.
|
|
35
|
+
packageVersion: "24.3.0",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "24.
|
|
7
|
+
headers.append('atl-client-version', "24.3.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "24.
|
|
59
|
+
headers.append('atl-client-version', "24.3.0");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "24.
|
|
42
|
+
packageVersion: "24.3.0"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
|
|
@@ -49,6 +49,6 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
|
|
|
49
49
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
50
50
|
}
|
|
51
51
|
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
|
|
52
|
-
forwardedRef?: React.Ref<any
|
|
52
|
+
forwardedRef?: React.Ref<any>;
|
|
53
53
|
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
54
54
|
export default _default;
|
|
@@ -18,7 +18,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
|
|
|
18
18
|
render(): React.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
|
|
22
22
|
cloudId?: string | undefined;
|
|
23
23
|
resourceClient?: import("../../types").ProfileClient | undefined;
|
|
24
24
|
actions?: ProfileCardAction[] | undefined;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
|
|
@@ -4,4 +4,4 @@ import { type ProfileCardTriggerProps } from './types';
|
|
|
4
4
|
export declare const PopupTrigger: <T>(props: Partial<TriggerProps> & {
|
|
5
5
|
showProfilecard: () => void;
|
|
6
6
|
hideProfilecard: () => void;
|
|
7
|
-
} & Pick<ProfileCardTriggerProps<T>,
|
|
7
|
+
} & Pick<ProfileCardTriggerProps<T>, "ariaLabelledBy" | "trigger" | "children"> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
|
|
@@ -13,11 +13,11 @@ export declare const AnimatedKudosButton: ({ children }: {
|
|
|
13
13
|
}) => React.JSX.Element;
|
|
14
14
|
export declare const ActionButtonGroup: ({ children, testId, }: {
|
|
15
15
|
children: ReactNode;
|
|
16
|
-
testId?: string
|
|
16
|
+
testId?: string;
|
|
17
17
|
}) => React.JSX.Element;
|
|
18
18
|
export declare const OverflowActionButtonsWrapper: ({ children, testId, }: {
|
|
19
19
|
children: ReactNode;
|
|
20
|
-
testId?: string
|
|
20
|
+
testId?: string;
|
|
21
21
|
}) => React.JSX.Element;
|
|
22
22
|
export declare const CardContent: ({ children }: {
|
|
23
23
|
children: ReactNode;
|
|
@@ -48,7 +48,7 @@ interface CardContainerProps {
|
|
|
48
48
|
export declare const CardContainer: ({ children, isDisabledUser, withoutElevation, }: CardContainerProps) => React.JSX.Element;
|
|
49
49
|
export declare const DetailsLabel: ({ children, extraTopSpace, }: {
|
|
50
50
|
children: ReactNode;
|
|
51
|
-
extraTopSpace?: boolean
|
|
51
|
+
extraTopSpace?: boolean;
|
|
52
52
|
}) => React.JSX.Element;
|
|
53
53
|
export declare const DetailsLabelIcon: ({ children }: {
|
|
54
54
|
children: ReactNode;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const CardTriggerWrapper: () => React.JSX.Element;
|
|
3
3
|
export declare const CardWrapper: ({ testId, children, }: {
|
|
4
|
-
testId?: string
|
|
4
|
+
testId?: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
7
|
export declare const CardHeader: ({ image, isLoading, label, }: {
|
|
8
|
-
image?: string
|
|
9
|
-
isLoading?: boolean
|
|
10
|
-
label?: string
|
|
8
|
+
image?: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
label?: string;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export declare const CardContent: (props: {
|
|
13
13
|
children: React.ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const CardWrapper: ({ children, role, testId, labelledBy, }: {
|
|
3
3
|
children: ReactNode;
|
|
4
|
-
role?: string
|
|
5
|
-
testId?: string
|
|
6
|
-
labelledBy?: string
|
|
4
|
+
role?: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
labelledBy?: string;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export declare const SpinnerContainer: ({ children, testId, }: {
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
testId?: string
|
|
10
|
+
testId?: string;
|
|
11
11
|
}) => React.JSX.Element;
|
|
@@ -12,16 +12,16 @@ interface AnalyticsEvent {
|
|
|
12
12
|
source?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
|
|
15
|
-
export declare const cardTriggered: (type: ProfileType, method:
|
|
16
|
-
export declare const teamRequestAnalytics: (action:
|
|
15
|
+
export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
|
|
16
|
+
export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
|
|
17
17
|
duration: number;
|
|
18
18
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
19
|
-
export declare const userRequestAnalytics: (action:
|
|
19
|
+
export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
|
|
20
20
|
duration: number;
|
|
21
21
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
22
|
-
export declare const profileCardRendered: (type: ProfileType, actionSubjectId:
|
|
22
|
+
export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
|
|
23
23
|
duration?: number;
|
|
24
|
-
errorType?:
|
|
24
|
+
errorType?: "default" | "NotFound";
|
|
25
25
|
hasRetry?: boolean;
|
|
26
26
|
numActions?: number;
|
|
27
27
|
memberCount?: number;
|
|
@@ -37,7 +37,7 @@ export declare const actionClicked: (type: ProfileType, attributes: {
|
|
|
37
37
|
actionId: string;
|
|
38
38
|
}) => AnalyticsEventPayload;
|
|
39
39
|
export declare const reportingLinesClicked: (attributes: {
|
|
40
|
-
userType:
|
|
40
|
+
userType: "manager" | "direct-report";
|
|
41
41
|
duration: number;
|
|
42
42
|
}) => AnalyticsEventPayload;
|
|
43
43
|
export declare const moreActionsClicked: (type: ProfileType, attributes: {
|
|
@@ -57,7 +57,7 @@ export declare const moreMembersClicked: (attributes: {
|
|
|
57
57
|
export declare const errorRetryClicked: (attributes: {
|
|
58
58
|
duration: number;
|
|
59
59
|
}) => AnalyticsEventPayload;
|
|
60
|
-
export declare const agentRequestAnalytics: (action:
|
|
60
|
+
export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
|
|
61
61
|
duration: number;
|
|
62
62
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
63
63
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
|
|
@@ -49,6 +49,6 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
|
|
|
49
49
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
50
50
|
}
|
|
51
51
|
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
|
|
52
|
-
forwardedRef?: React.Ref<any
|
|
52
|
+
forwardedRef?: React.Ref<any>;
|
|
53
53
|
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
54
54
|
export default _default;
|
|
@@ -18,7 +18,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
|
|
|
18
18
|
render(): React.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
|
|
22
22
|
cloudId?: string | undefined;
|
|
23
23
|
resourceClient?: import("../../types").ProfileClient | undefined;
|
|
24
24
|
actions?: ProfileCardAction[] | undefined;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
|
|
@@ -4,4 +4,4 @@ import { type ProfileCardTriggerProps } from './types';
|
|
|
4
4
|
export declare const PopupTrigger: <T>(props: Partial<TriggerProps> & {
|
|
5
5
|
showProfilecard: () => void;
|
|
6
6
|
hideProfilecard: () => void;
|
|
7
|
-
} & Pick<ProfileCardTriggerProps<T>,
|
|
7
|
+
} & Pick<ProfileCardTriggerProps<T>, "ariaLabelledBy" | "trigger" | "children"> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
|
|
@@ -13,11 +13,11 @@ export declare const AnimatedKudosButton: ({ children }: {
|
|
|
13
13
|
}) => React.JSX.Element;
|
|
14
14
|
export declare const ActionButtonGroup: ({ children, testId, }: {
|
|
15
15
|
children: ReactNode;
|
|
16
|
-
testId?: string
|
|
16
|
+
testId?: string;
|
|
17
17
|
}) => React.JSX.Element;
|
|
18
18
|
export declare const OverflowActionButtonsWrapper: ({ children, testId, }: {
|
|
19
19
|
children: ReactNode;
|
|
20
|
-
testId?: string
|
|
20
|
+
testId?: string;
|
|
21
21
|
}) => React.JSX.Element;
|
|
22
22
|
export declare const CardContent: ({ children }: {
|
|
23
23
|
children: ReactNode;
|
|
@@ -48,7 +48,7 @@ interface CardContainerProps {
|
|
|
48
48
|
export declare const CardContainer: ({ children, isDisabledUser, withoutElevation, }: CardContainerProps) => React.JSX.Element;
|
|
49
49
|
export declare const DetailsLabel: ({ children, extraTopSpace, }: {
|
|
50
50
|
children: ReactNode;
|
|
51
|
-
extraTopSpace?: boolean
|
|
51
|
+
extraTopSpace?: boolean;
|
|
52
52
|
}) => React.JSX.Element;
|
|
53
53
|
export declare const DetailsLabelIcon: ({ children }: {
|
|
54
54
|
children: ReactNode;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const CardTriggerWrapper: () => React.JSX.Element;
|
|
3
3
|
export declare const CardWrapper: ({ testId, children, }: {
|
|
4
|
-
testId?: string
|
|
4
|
+
testId?: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
7
|
export declare const CardHeader: ({ image, isLoading, label, }: {
|
|
8
|
-
image?: string
|
|
9
|
-
isLoading?: boolean
|
|
10
|
-
label?: string
|
|
8
|
+
image?: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
label?: string;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export declare const CardContent: (props: {
|
|
13
13
|
children: React.ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const CardWrapper: ({ children, role, testId, labelledBy, }: {
|
|
3
3
|
children: ReactNode;
|
|
4
|
-
role?: string
|
|
5
|
-
testId?: string
|
|
6
|
-
labelledBy?: string
|
|
4
|
+
role?: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
labelledBy?: string;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export declare const SpinnerContainer: ({ children, testId, }: {
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
testId?: string
|
|
10
|
+
testId?: string;
|
|
11
11
|
}) => React.JSX.Element;
|
|
@@ -12,16 +12,16 @@ interface AnalyticsEvent {
|
|
|
12
12
|
source?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
|
|
15
|
-
export declare const cardTriggered: (type: ProfileType, method:
|
|
16
|
-
export declare const teamRequestAnalytics: (action:
|
|
15
|
+
export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
|
|
16
|
+
export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
|
|
17
17
|
duration: number;
|
|
18
18
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
19
|
-
export declare const userRequestAnalytics: (action:
|
|
19
|
+
export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
|
|
20
20
|
duration: number;
|
|
21
21
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
22
|
-
export declare const profileCardRendered: (type: ProfileType, actionSubjectId:
|
|
22
|
+
export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
|
|
23
23
|
duration?: number;
|
|
24
|
-
errorType?:
|
|
24
|
+
errorType?: "default" | "NotFound";
|
|
25
25
|
hasRetry?: boolean;
|
|
26
26
|
numActions?: number;
|
|
27
27
|
memberCount?: number;
|
|
@@ -37,7 +37,7 @@ export declare const actionClicked: (type: ProfileType, attributes: {
|
|
|
37
37
|
actionId: string;
|
|
38
38
|
}) => AnalyticsEventPayload;
|
|
39
39
|
export declare const reportingLinesClicked: (attributes: {
|
|
40
|
-
userType:
|
|
40
|
+
userType: "manager" | "direct-report";
|
|
41
41
|
duration: number;
|
|
42
42
|
}) => AnalyticsEventPayload;
|
|
43
43
|
export declare const moreActionsClicked: (type: ProfileType, attributes: {
|
|
@@ -57,7 +57,7 @@ export declare const moreMembersClicked: (attributes: {
|
|
|
57
57
|
export declare const errorRetryClicked: (attributes: {
|
|
58
58
|
duration: number;
|
|
59
59
|
}) => AnalyticsEventPayload;
|
|
60
|
-
export declare const agentRequestAnalytics: (action:
|
|
60
|
+
export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
|
|
61
61
|
duration: number;
|
|
62
62
|
} & GenericAttributes) => AnalyticsEventPayload;
|
|
63
63
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.3.
|
|
3
|
+
"version": "24.3.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
54
54
|
"@atlaskit/atlassian-context": "^0.4.0",
|
|
55
55
|
"@atlaskit/avatar": "^25.1.0",
|
|
56
|
-
"@atlaskit/avatar-group": "^12.
|
|
56
|
+
"@atlaskit/avatar-group": "^12.2.0",
|
|
57
57
|
"@atlaskit/button": "^23.3.0",
|
|
58
58
|
"@atlaskit/css": "^0.12.0",
|
|
59
59
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
62
62
|
"@atlaskit/give-kudos": "^4.3.0",
|
|
63
63
|
"@atlaskit/heading": "^5.2.0",
|
|
64
|
-
"@atlaskit/icon": "^27.
|
|
64
|
+
"@atlaskit/icon": "^27.11.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/logo": "^19.6.0",
|
|
67
67
|
"@atlaskit/lozenge": "^13.0.0",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"@atlaskit/popup": "^4.3.0",
|
|
73
73
|
"@atlaskit/primitives": "^14.11.0",
|
|
74
74
|
"@atlaskit/rovo-agent-components": "^3.1.0",
|
|
75
|
-
"@atlaskit/rovo-triggers": "^3.
|
|
75
|
+
"@atlaskit/rovo-triggers": "^3.2.0",
|
|
76
76
|
"@atlaskit/spinner": "^19.0.0",
|
|
77
77
|
"@atlaskit/teams-app-config": "^1.11.0",
|
|
78
78
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
79
|
-
"@atlaskit/teams-public": "^0.
|
|
79
|
+
"@atlaskit/teams-public": "^0.53.0",
|
|
80
80
|
"@atlaskit/theme": "^19.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^6.0.0",
|
|
82
82
|
"@atlaskit/tooltip": "^20.4.0",
|