@atlaskit/profilecard
Version:
A React component to display a card with user information.
102 lines (101 loc) • 3.83 kB
TypeScript
import { type ProfileType } from '../types';
type AnalyticsEventPayload = Record<string, any>;
export declare const PACKAGE_META_DATA: {
packageName: string;
packageVersion: string;
};
type GenericAttributes = Record<string, string | number | boolean | undefined | string[]>;
export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
duration: number;
} & GenericAttributes) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
duration: number;
} & GenericAttributes) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
duration?: number;
errorType?: "default" | "NotFound";
hasRetry?: boolean;
numActions?: number;
memberCount?: number;
includingYou?: boolean;
descriptionLength?: number;
titleLength?: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const actionClicked: (type: ProfileType, attributes: {
duration: number;
hasHref: boolean;
hasOnClick: boolean;
index: number;
actionId: string;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const reportingLinesClicked: (attributes: {
userType: "manager" | "direct-report";
duration: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const moreActionsClicked: (type: ProfileType, attributes: {
duration: number;
numActions: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const teamAvatarClicked: (attributes: {
duration: number;
hasHref: boolean;
hasOnClick: boolean;
index: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const moreMembersClicked: (attributes: {
duration: number;
memberCount: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const errorRetryClicked: (attributes: {
duration: number;
}) => AnalyticsEventPayload;
/**
* @private
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
*/
export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
duration: number;
} & GenericAttributes) => AnalyticsEventPayload;
export {};