@atlaskit/profilecard 24.14.0 → 24.14.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 +10 -0
- package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state--default.png +0 -0
- package/__tests__/vr-tests/agent-profilecard.vr.tsx +7 -1
- package/__tests__/vr-tests/user-profilecard.vr.tsx +42 -6
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.js +5 -2
- package/dist/cjs/components/Agent/ActionsCompiled.compiled.css +19 -0
- package/dist/cjs/components/Agent/ActionsCompiled.js +140 -0
- package/dist/cjs/components/Agent/AgentDeleteConfirmationModal.js +2 -4
- package/dist/cjs/components/Agent/AgentProfileCard.js +5 -1
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +242 -0
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +9 -8
- package/dist/cjs/components/Agent/ConversationStarters.js +2 -4
- package/dist/cjs/components/Error/ErrorMessage.js +3 -3
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +3 -3
- package/dist/cjs/components/User/ProfileCardDetails.compiled.css +0 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +2 -4
- package/dist/cjs/components/User/ReportingLinesDetails.js +4 -1
- package/dist/cjs/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
- package/dist/cjs/components/User/ReportingLinesDetailsCompiled.js +109 -0
- package/dist/cjs/components/common/ProfileCardWrapper.compiled.css +1 -0
- package/dist/cjs/components/common/ProfileCardWrapper.js +9 -8
- package/dist/cjs/components/team-profile-card/team-actions/more-actions/index.js +2 -4
- package/dist/cjs/styled/CoverImage.compiled.css +2 -0
- package/dist/cjs/styled/CoverImage.js +4 -2
- package/dist/cjs/styled/Error.compiled.css +0 -2
- package/dist/cjs/styled/Error.js +5 -3
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/Actions.js +5 -2
- package/dist/es2019/components/Agent/ActionsCompiled.compiled.css +19 -0
- package/dist/es2019/components/Agent/ActionsCompiled.js +116 -0
- package/dist/es2019/components/Agent/AgentDeleteConfirmationModal.js +1 -2
- package/dist/es2019/components/Agent/AgentProfileCard.js +5 -1
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +186 -0
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +8 -7
- package/dist/es2019/components/Agent/ConversationStarters.js +1 -3
- package/dist/es2019/components/Error/ErrorMessage.js +1 -2
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +1 -2
- package/dist/es2019/components/User/ProfileCardDetails.compiled.css +0 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -4
- package/dist/es2019/components/User/ReportingLinesDetails.js +4 -1
- package/dist/es2019/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
- package/dist/es2019/components/User/ReportingLinesDetailsCompiled.js +96 -0
- package/dist/es2019/components/common/ProfileCardWrapper.compiled.css +1 -0
- package/dist/es2019/components/common/ProfileCardWrapper.js +8 -7
- package/dist/es2019/components/team-profile-card/team-actions/more-actions/index.js +1 -2
- package/dist/es2019/styled/CoverImage.compiled.css +2 -0
- package/dist/es2019/styled/CoverImage.js +4 -2
- package/dist/es2019/styled/Error.compiled.css +0 -2
- package/dist/es2019/styled/Error.js +6 -4
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/Actions.js +5 -2
- package/dist/esm/components/Agent/ActionsCompiled.compiled.css +19 -0
- package/dist/esm/components/Agent/ActionsCompiled.js +131 -0
- package/dist/esm/components/Agent/AgentDeleteConfirmationModal.js +1 -2
- package/dist/esm/components/Agent/AgentProfileCard.js +5 -1
- package/dist/esm/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
- package/dist/esm/components/Agent/AgentProfileCardCompiled.js +233 -0
- package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
- package/dist/esm/components/Agent/AgentProfileCardWrapper.js +8 -7
- package/dist/esm/components/Agent/ConversationStarters.js +1 -3
- package/dist/esm/components/Error/ErrorMessage.js +1 -2
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +1 -2
- package/dist/esm/components/User/ProfileCardDetails.compiled.css +0 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -4
- package/dist/esm/components/User/ReportingLinesDetails.js +4 -1
- package/dist/esm/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
- package/dist/esm/components/User/ReportingLinesDetailsCompiled.js +102 -0
- package/dist/esm/components/common/ProfileCardWrapper.compiled.css +1 -0
- package/dist/esm/components/common/ProfileCardWrapper.js +8 -7
- package/dist/esm/components/team-profile-card/team-actions/more-actions/index.js +1 -2
- package/dist/esm/styled/CoverImage.compiled.css +2 -0
- package/dist/esm/styled/CoverImage.js +4 -2
- package/dist/esm/styled/Error.compiled.css +0 -2
- package/dist/esm/styled/Error.js +6 -4
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Agent/Actions.d.ts +10 -1
- package/dist/types/components/Agent/ActionsCompiled.d.ts +14 -0
- package/dist/types/components/Agent/AgentProfileCard.d.ts +13 -3
- package/dist/types/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +12 -1
- package/dist/types/components/User/ReportingLinesDetails.d.ts +2 -2
- package/dist/types/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
- package/dist/types-ts4.5/components/Agent/Actions.d.ts +10 -1
- package/dist/types-ts4.5/components/Agent/ActionsCompiled.d.ts +14 -0
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +13 -3
- package/dist/types-ts4.5/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +12 -1
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +2 -2
- package/dist/types-ts4.5/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
- package/package.json +11 -5
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
/* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import "./ProfileCardWrapper.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
width: '360px'
|
|
7
|
-
});
|
|
5
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
var styles = {
|
|
7
|
+
wrapper: "_1bsb1gwv"
|
|
8
|
+
};
|
|
8
9
|
export var ProfileCardWrapper = function ProfileCardWrapper(_ref) {
|
|
9
10
|
var children = _ref.children,
|
|
10
11
|
testId = _ref.testId;
|
|
11
12
|
return /*#__PURE__*/React.createElement(Box, {
|
|
12
|
-
xcss: styles,
|
|
13
|
+
xcss: styles.wrapper,
|
|
13
14
|
testId: testId
|
|
14
15
|
}, children);
|
|
15
16
|
};
|
|
@@ -6,8 +6,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
6
6
|
import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
|
|
7
7
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
8
8
|
import Popup from '@atlaskit/popup';
|
|
9
|
-
|
|
10
|
-
import { Box } from '@atlaskit/primitives';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { messages } from './messages';
|
|
12
11
|
export var MoreActions = function MoreActions(_ref) {
|
|
13
12
|
var actions = _ref.actions,
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
._1e0c1txw{display:flex}
|
|
7
7
|
._1reo15vq{overflow-x:hidden}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
|
+
._4t3i1osq{height:100%}
|
|
9
10
|
._4t3i1qr7{height:8pc}
|
|
10
11
|
._4t3i1wug{height:auto}
|
|
12
|
+
._5ral1dfr{object-fit:cover}
|
|
11
13
|
._kqswh2mm{position:relative}
|
|
12
14
|
._qrwq12b0{border-top-right-radius:var(--ds-radius-small,4px)}
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import "./CoverImage.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useRef } from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
7
|
var styles = {
|
|
7
8
|
container: "_1reo15vq _18m915vq _1bsb1osq _4t3i1qr7 _kqswh2mm _13li12b0 _qrwq12b0 _1e0c1txw _1bah1h6o _4cvr1h6o",
|
|
8
|
-
image: "_1bsbnklw _4t3i1wug"
|
|
9
|
+
image: "_1bsbnklw _4t3i1wug",
|
|
10
|
+
imageNext: "_4t3i1osq _5ral1dfr"
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -26,6 +28,6 @@ export var CoverImage = function CoverImage(_ref) {
|
|
|
26
28
|
ref: imgRef,
|
|
27
29
|
src: src,
|
|
28
30
|
alt: alt,
|
|
29
|
-
xcss: styles.image
|
|
31
|
+
xcss: fg('cover-header-image-team-profilecard') ? styles.imageNext : styles.image
|
|
30
32
|
}));
|
|
31
33
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
1
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
3
2
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
3
|
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
5
4
|
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
6
|
-
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
7
5
|
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
8
6
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
9
7
|
._y3gn1h6o{text-align:center}
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -4,11 +4,11 @@ import "./Error.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { N200 } from '@atlaskit/theme/colors';
|
|
9
9
|
var styles = {
|
|
10
10
|
errorWrapper: "_y3gn1h6o _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb",
|
|
11
|
-
errorTitle: "
|
|
11
|
+
errorTitle: "_19pku2gc",
|
|
12
12
|
teamErrorText: "_syaz1wmz _19pku2gc"
|
|
13
13
|
};
|
|
14
14
|
export var ErrorWrapper = function ErrorWrapper(props) {
|
|
@@ -18,8 +18,10 @@ export var ErrorWrapper = function ErrorWrapper(props) {
|
|
|
18
18
|
};
|
|
19
19
|
export var ErrorTitle = function ErrorTitle(props) {
|
|
20
20
|
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss:
|
|
22
|
-
},
|
|
21
|
+
xcss: styles.errorTitle
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
23
|
+
color: "color.text"
|
|
24
|
+
}, props.children));
|
|
23
25
|
};
|
|
24
26
|
export var TeamErrorText = function TeamErrorText(props) {
|
|
25
27
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
|
|
|
7
7
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
8
8
|
export var PACKAGE_META_DATA = {
|
|
9
9
|
packageName: "@atlaskit/profilecard",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "0.0.0-development"
|
|
11
11
|
};
|
|
12
12
|
var runItLater = function runItLater(cb) {
|
|
13
13
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
52
52
|
actionSubjectId: actionSubjectId,
|
|
53
53
|
attributes: _objectSpread(_objectSpread({
|
|
54
54
|
packageName: "@atlaskit/profilecard",
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "0.0.0-development"
|
|
56
56
|
}, attributes), {}, {
|
|
57
57
|
firedAt: Math.round(getPageTime())
|
|
58
58
|
})
|
|
@@ -10,5 +10,14 @@ type AgentActionsProps = {
|
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
12
|
};
|
|
13
|
-
export declare const AgentActions:
|
|
13
|
+
export declare const AgentActions: React.FC<{
|
|
14
|
+
agent: RovoAgentProfileCardInfo;
|
|
15
|
+
onEditAgent: () => void;
|
|
16
|
+
onCopyAgent: () => void;
|
|
17
|
+
onDuplicateAgent: () => void;
|
|
18
|
+
onDeleteAgent: () => void;
|
|
19
|
+
onChatClick: (event: React.MouseEvent) => void;
|
|
20
|
+
onViewFullProfileClick: () => void;
|
|
21
|
+
resourceClient: ProfileClient;
|
|
22
|
+
} & AgentActionsProps>;
|
|
14
23
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
|
|
3
|
+
type AgentActionsProps = {
|
|
4
|
+
agent: RovoAgentProfileCardInfo;
|
|
5
|
+
onEditAgent: () => void;
|
|
6
|
+
onCopyAgent: () => void;
|
|
7
|
+
onDuplicateAgent: () => void;
|
|
8
|
+
onDeleteAgent: () => void;
|
|
9
|
+
onChatClick: (event: React.MouseEvent) => void;
|
|
10
|
+
onViewFullProfileClick: () => void;
|
|
11
|
+
resourceClient: ProfileClient;
|
|
12
|
+
};
|
|
13
|
+
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare const AgentProfileCardExport: React.FC<{
|
|
3
|
+
resourceClient: import("../../types").ProfileClient;
|
|
4
|
+
agent?: import("../../types").RovoAgentProfileCardInfo;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
cloudId?: string;
|
|
8
|
+
errorType?: import("../../types").ProfileCardErrorType;
|
|
9
|
+
addFlag?: (flag: import("../../types").Flag) => void;
|
|
10
|
+
onDeleteAgent?: (agentId: string) => {
|
|
11
|
+
restore: () => void;
|
|
12
|
+
};
|
|
13
|
+
} & import("../../types").AgentActionsType>;
|
|
14
|
+
export default AgentProfileCardExport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
|
+
export default AgentProfileCard;
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<
|
|
1
|
+
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
|
|
2
|
+
resourceClient: import("../../types").ProfileClient;
|
|
3
|
+
agent?: import("../../types").RovoAgentProfileCardInfo;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
cloudId?: string;
|
|
7
|
+
errorType?: import("../..").ProfileCardErrorType;
|
|
8
|
+
addFlag?: (flag: import("../../types").Flag) => void;
|
|
9
|
+
onDeleteAgent?: (agentId: string) => {
|
|
10
|
+
restore: () => void;
|
|
11
|
+
};
|
|
12
|
+
} & import("../../types").AgentActionsType>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
|
|
3
3
|
export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
|
|
5
|
+
export default ReportingLinesDetailsExport;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
|
|
3
|
+
export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
|
|
4
|
+
declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
|
|
5
|
+
export default ReportingLinesDetails;
|
|
@@ -10,5 +10,14 @@ type AgentActionsProps = {
|
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
12
|
};
|
|
13
|
-
export declare const AgentActions:
|
|
13
|
+
export declare const AgentActions: React.FC<{
|
|
14
|
+
agent: RovoAgentProfileCardInfo;
|
|
15
|
+
onEditAgent: () => void;
|
|
16
|
+
onCopyAgent: () => void;
|
|
17
|
+
onDuplicateAgent: () => void;
|
|
18
|
+
onDeleteAgent: () => void;
|
|
19
|
+
onChatClick: (event: React.MouseEvent) => void;
|
|
20
|
+
onViewFullProfileClick: () => void;
|
|
21
|
+
resourceClient: ProfileClient;
|
|
22
|
+
} & AgentActionsProps>;
|
|
14
23
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
|
|
3
|
+
type AgentActionsProps = {
|
|
4
|
+
agent: RovoAgentProfileCardInfo;
|
|
5
|
+
onEditAgent: () => void;
|
|
6
|
+
onCopyAgent: () => void;
|
|
7
|
+
onDuplicateAgent: () => void;
|
|
8
|
+
onDeleteAgent: () => void;
|
|
9
|
+
onChatClick: (event: React.MouseEvent) => void;
|
|
10
|
+
onViewFullProfileClick: () => void;
|
|
11
|
+
resourceClient: ProfileClient;
|
|
12
|
+
};
|
|
13
|
+
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare const AgentProfileCardExport: React.FC<{
|
|
3
|
+
resourceClient: import("../../types").ProfileClient;
|
|
4
|
+
agent?: import("../../types").RovoAgentProfileCardInfo;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
cloudId?: string;
|
|
8
|
+
errorType?: import("../../types").ProfileCardErrorType;
|
|
9
|
+
addFlag?: (flag: import("../../types").Flag) => void;
|
|
10
|
+
onDeleteAgent?: (agentId: string) => {
|
|
11
|
+
restore: () => void;
|
|
12
|
+
};
|
|
13
|
+
} & import("../../types").AgentActionsType>;
|
|
14
|
+
export default AgentProfileCardExport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
|
+
export default AgentProfileCard;
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<
|
|
1
|
+
export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
|
|
2
|
+
resourceClient: import("../../types").ProfileClient;
|
|
3
|
+
agent?: import("../../types").RovoAgentProfileCardInfo;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
cloudId?: string;
|
|
7
|
+
errorType?: import("../..").ProfileCardErrorType;
|
|
8
|
+
addFlag?: (flag: import("../../types").Flag) => void;
|
|
9
|
+
onDeleteAgent?: (agentId: string) => {
|
|
10
|
+
restore: () => void;
|
|
11
|
+
};
|
|
12
|
+
} & import("../../types").AgentActionsType>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
|
|
3
3
|
export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
|
|
5
|
+
export default ReportingLinesDetailsExport;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
|
|
3
|
+
export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
|
|
4
|
+
declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
|
|
5
|
+
export default ReportingLinesDetails;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.14.
|
|
3
|
+
"version": "24.14.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.7.0",
|
|
43
43
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
44
44
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
45
|
-
"@atlaskit/avatar": "^25.
|
|
45
|
+
"@atlaskit/avatar": "^25.2.0",
|
|
46
46
|
"@atlaskit/avatar-group": "^12.2.0",
|
|
47
47
|
"@atlaskit/button": "^23.4.0",
|
|
48
48
|
"@atlaskit/css": "^0.14.0",
|
|
49
49
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
50
50
|
"@atlaskit/empty-state": "^10.1.0",
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
52
|
-
"@atlaskit/give-kudos": "^4.
|
|
52
|
+
"@atlaskit/give-kudos": "^4.4.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
54
|
"@atlaskit/icon": "^28.3.0",
|
|
55
55
|
"@atlaskit/link": "^3.2.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@atlaskit/lozenge": "^13.0.0",
|
|
58
58
|
"@atlaskit/menu": "^8.4.0",
|
|
59
59
|
"@atlaskit/modal-dialog": "^14.4.0",
|
|
60
|
-
"@atlaskit/people-teams-ui-public": "^3.
|
|
60
|
+
"@atlaskit/people-teams-ui-public": "^3.4.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
63
63
|
"@atlaskit/popup": "^4.4.0",
|
|
64
64
|
"@atlaskit/primitives": "^14.15.0",
|
|
65
65
|
"@atlaskit/rovo-agent-components": "^3.5.0",
|
|
66
|
-
"@atlaskit/rovo-triggers": "^3.
|
|
66
|
+
"@atlaskit/rovo-triggers": "^3.11.0",
|
|
67
67
|
"@atlaskit/spinner": "^19.0.0",
|
|
68
68
|
"@atlaskit/teams-app-config": "^1.11.0",
|
|
69
69
|
"@atlaskit/teams-app-internal-analytics": "^1.6.0",
|
|
@@ -164,6 +164,12 @@
|
|
|
164
164
|
},
|
|
165
165
|
"ptc-enable-profile-card-analytics-refactor": {
|
|
166
166
|
"type": "boolean"
|
|
167
|
+
},
|
|
168
|
+
"profilecard_primitives_compiled": {
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
},
|
|
171
|
+
"cover-header-image-team-profilecard": {
|
|
172
|
+
"type": "boolean"
|
|
167
173
|
}
|
|
168
174
|
},
|
|
169
175
|
"sideEffects": [
|