@atlaskit/profilecard
Version:
A React component to display a card with user information.
30 lines (29 loc) • 2.06 kB
JavaScript
// Avoid exporting new components in this file as they will affect the bundle size of all consumers
// importing directly from @atlaskit/profilecard.
import ProfileCardClient from './client/ProfileCardClient';
// Note: when generating and updating Flow types in Jira, `TeamProfileClient` and `TeamProfileCardClient` are the same type
import TeamProfileClient from './client/TeamProfileCardClient';
// Note: when generating and updating Flow types in Jira, `UserProfileClient` and `UserProfileCardClient` are the same type
import UserProfileClient, { modifyResponse } from './client/UserProfileCardClient';
import AgentProfileCard from './components/Agent/AgentProfileCard';
import { TeamProfileCard } from './components/team-profile-card';
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
import ProfileCard from './components/User/ProfileCard';
import ProfileCardResourced from './components/User/ProfileCardResourced';
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from './util/config';
// Legacy Profile Card in Jira still needs to use `withOuterListeners`
export { default as withOuterListeners } from './util/withOuterListeners';
// We cannot export this component inside `./components/Team/index.ts` because it breaks the lazyload
// so we have to export this here. `TeamProfileCard` helps to build legacy team profile card inside Jira FE.
export { default as TeamProfileCard } from './components/Team/TeamProfileCard';
export { ProfileCard };
export { ProfileCardTrigger };
export { TeamProfileCardTrigger };
export { AgentProfileCard };
export { ProfileCardClient as ProfileClient, TeamProfileClient, UserProfileClient, modifyResponse };
export { DELAY_MS_SHOW, DELAY_MS_HIDE };
export { AgentProfileCardTrigger } from './components/Agent/AgentProfileCardTrigger';
export { AgentProfileCardResourced } from './components/Agent/AgentProfileCardResourced';
export { TeamProfileCard as TeamProfileCardWithContainer };
export default ProfileCardResourced;