UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

66 lines (65 loc) 3.21 kB
import React from 'react'; import { type WrappedComponentProps } from 'react-intl-next'; import { type TriggerProps } from '@atlaskit/popup/types'; import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics'; import type { AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types'; export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, TeamProfileCardTriggerState> { static defaultProps: { actions: never[]; trigger: "hover"; position: "bottom-start"; triggerLinkType: "link"; shouldRenderToParent: boolean; }; _isMounted: boolean; showTimer: number; hideTimer: number; openedByHover: boolean; openTime: number; fireAnalytics: FireEventType; fireAnalyticsWithDuration: <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void; hideProfilecard: (delay?: number) => void; showProfilecard: (delay?: number) => void; onClick: (event: React.MouseEvent<HTMLElement>) => void; onMouseEnter: () => void; onMouseLeave: () => void; onKeyPress: (event: React.KeyboardEvent) => void; onClose: () => void; openKudosDrawer: () => void; closeKudosDrawer: () => void; kudosUrl: () => string; stopPropagation: (event: React.MouseEvent<HTMLElement>) => void; triggerListeners: { onClick: (event: React.MouseEvent<HTMLElement>) => void; onMouseEnter: () => void; onMouseLeave: () => void; }; cardListeners: { onClick: (event: React.MouseEvent<HTMLElement>) => void; onMouseEnter: () => void; onMouseLeave: () => void; }; state: TeamProfileCardTriggerState; componentDidMount(): void; componentDidUpdate(prevProps: TeamProfileCardTriggerProps): void; componentWillUnmount(): void; clientFetchProfile: () => void; onErrorBoundary: () => void; handleClientSuccess(team: Team, shouldShowGiveKudos: boolean, teamCentralBaseUrl: string | undefined): void; handleClientError(err: any): void; filterActions(): ProfileCardAction[]; renderProfileCard: () => React.JSX.Element; renderKudosLauncher: () => false | React.JSX.Element | undefined; renderTrigger: (triggerProps: TriggerProps) => React.JSX.Element; renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; } /** * @deprecated This component is deprecated and provides no functionality. * It now simply renders its children without any profile card behavior. * Please use `@atlassian/team-profilecard` instead for team profile card functionality. */ declare const _default: React.FC<import("react-intl-next").WithIntlProps<TeamProfileCardTriggerProps & WrappedComponentProps>> & { WrappedComponent: React.ComponentType<TeamProfileCardTriggerProps & WrappedComponentProps>; }; export default _default;