@atlaskit/profilecard 26.11.0 → 26.12.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 +17 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.compiled.css +0 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +2 -2
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- package/dist/cjs/components/User/ReportingLinesDetails.js +1 -1
- package/dist/cjs/components/common/ProfileCardWrapper.js +1 -1
- package/dist/cjs/components/team-profile-card/main.js +1 -1
- package/dist/cjs/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.js +1 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
- package/dist/cjs/styled/Card.js +1 -1
- package/dist/cjs/styled/CoverImage.js +1 -1
- package/dist/cjs/styled/Error.js +1 -1
- package/dist/cjs/styled/ReportingLines.js +1 -1
- package/dist/cjs/styled/TeamCard.js +1 -1
- package/dist/cjs/styled/TeamTrigger.compiled.css +0 -1
- package/dist/cjs/styled/TeamTrigger.js +1 -1
- package/dist/cjs/styled/UserTrigger.js +1 -1
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/cjs/util/withOuterListeners.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/Actions.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.compiled.css +0 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +4 -2
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ReportingLinesDetails.js +1 -1
- package/dist/es2019/components/common/ProfileCardWrapper.js +1 -1
- package/dist/es2019/components/team-profile-card/main.js +1 -1
- package/dist/es2019/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.js +1 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/styled/CoverImage.js +1 -1
- package/dist/es2019/styled/Error.js +1 -1
- package/dist/es2019/styled/ReportingLines.js +1 -1
- package/dist/es2019/styled/TeamCard.js +1 -1
- package/dist/es2019/styled/TeamTrigger.compiled.css +0 -1
- package/dist/es2019/styled/TeamTrigger.js +1 -1
- package/dist/es2019/styled/UserTrigger.js +1 -1
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/es2019/util/withOuterListeners.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/Actions.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.compiled.css +0 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +2 -2
- package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
- package/dist/esm/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ReportingLinesDetails.js +1 -1
- package/dist/esm/components/common/ProfileCardWrapper.js +1 -1
- package/dist/esm/components/team-profile-card/main.js +1 -1
- package/dist/esm/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/index.js +1 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/styled/CoverImage.js +1 -1
- package/dist/esm/styled/Error.js +1 -1
- package/dist/esm/styled/ReportingLines.js +1 -1
- package/dist/esm/styled/TeamCard.js +1 -1
- package/dist/esm/styled/TeamTrigger.compiled.css +0 -1
- package/dist/esm/styled/TeamTrigger.js +1 -1
- package/dist/esm/styled/UserTrigger.js +1 -1
- package/dist/esm/util/analytics.js +2 -2
- package/dist/esm/util/withOuterListeners.js +1 -1
- package/dist/types/components/Agent/Actions.d.ts +1 -1
- package/dist/types/types.d.ts +7 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 26.12.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7bbeb928e7b97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7bbeb928e7b97) -
|
|
14
|
+
Passes editor context from agent profile card action to rovo chat
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 26.11.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -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', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.12.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "26.
|
|
69
|
+
headers.append('atl-client-version', "26.12.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -306,7 +306,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
306
306
|
})),
|
|
307
307
|
onDeleteAgent: handleOnDelete,
|
|
308
308
|
onChatClick: onChatClick ? function (event) {
|
|
309
|
-
|
|
309
|
+
onChatClick(event, (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
|
|
310
310
|
} : function () {
|
|
311
311
|
return onOpenChatFullScreen(agent.id, agent.name);
|
|
312
312
|
},
|
package/dist/cjs/styled/Card.js
CHANGED
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
// PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
|
|
3
3
|
// are necessary for the main render of the trigger component to help maintain bundle size.
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
14
14
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
15
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.12.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "26.
|
|
34
|
+
packageVersion: "26.12.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -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', "26.
|
|
9
|
+
headers.append('atl-client-version', "26.12.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "26.
|
|
81
|
+
headers.append('atl-client-version', "26.12.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./AgentProfileCard.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
@@ -237,7 +237,9 @@ const AgentProfileCard = ({
|
|
|
237
237
|
onCopyAgent: () => onCopyAgent(agent.id),
|
|
238
238
|
onDuplicateAgent: async () => await onDuplicateAgent(agent.id),
|
|
239
239
|
onDeleteAgent: handleOnDelete,
|
|
240
|
-
onChatClick: onChatClick ? event =>
|
|
240
|
+
onChatClick: onChatClick ? event => {
|
|
241
|
+
onChatClick(event, fg('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
|
|
242
|
+
} : () => onOpenChatFullScreen(agent.id, agent.name),
|
|
241
243
|
resourceClient: resourceClient,
|
|
242
244
|
onViewFullProfileClick: () => onViewFullProfile(agent.id),
|
|
243
245
|
hideMoreActions: hideMoreActions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./AgentProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ProfileCardDetails.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./ReportingLinesDetails.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./ProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Card.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Card.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
3
3
|
import "./Card.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* TeamCard.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* TeamCard.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./TeamCard.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./TeamTrigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
// PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
|
|
3
3
|
// are necessary for the main render of the trigger component to help maintain bundle size.
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
|
2
2
|
import { getPageTime } from './performance';
|
|
3
3
|
export const PACKAGE_META_DATA = {
|
|
4
4
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
5
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.12.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "26.
|
|
22
|
+
packageVersion: "26.12.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* withOuterListeners.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* withOuterListeners.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./withOuterListeners.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -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', "26.
|
|
7
|
+
headers.append('atl-client-version', "26.12.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "26.
|
|
62
|
+
headers.append('atl-client-version', "26.12.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Actions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Actions.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./Actions.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -297,7 +297,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
297
297
|
})),
|
|
298
298
|
onDeleteAgent: handleOnDelete,
|
|
299
299
|
onChatClick: onChatClick ? function (event) {
|
|
300
|
-
|
|
300
|
+
onChatClick(event, fg('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
|
|
301
301
|
} : function () {
|
|
302
302
|
return onOpenChatFullScreen(agent.id, agent.name);
|
|
303
303
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./AgentProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["text"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./ReportingLinesDetails.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./ProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* main.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["containerId", "teamId", "displayName", "description", "avatarImageUrl", "headerImageUrl", "memberAvatars", "memberCount", "cloudId", "userId", "isVerified", "teamProfileUrl"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Card.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Card.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
3
3
|
import "./Card.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* TeamCard.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* TeamCard.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./TeamCard.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./TeamTrigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
// PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
|
|
3
3
|
// are necessary for the main render of the trigger component to help maintain bundle size.
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { getPageTime } from './performance';
|
|
6
6
|
export var PACKAGE_META_DATA = {
|
|
7
7
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
8
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.12.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "26.
|
|
27
|
+
packageVersion: "26.12.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* withOuterListeners.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* withOuterListeners.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -6,7 +6,7 @@ type AgentActionsProps = {
|
|
|
6
6
|
onCopyAgent: () => void;
|
|
7
7
|
onDuplicateAgent: () => Promise<void>;
|
|
8
8
|
onDeleteAgent: () => void;
|
|
9
|
-
onChatClick: (event: React.MouseEvent) => void;
|
|
9
|
+
onChatClick: (event: React.MouseEvent, agentStudioId?: string) => void;
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
12
|
hideMoreActions?: boolean;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -284,7 +284,13 @@ export interface TeamProfilecardCoreProps {
|
|
|
284
284
|
viewProfileOnClick?: (event?: React.MouseEvent<Element>) => void;
|
|
285
285
|
}
|
|
286
286
|
export interface AgentActionsType {
|
|
287
|
-
|
|
287
|
+
/**
|
|
288
|
+
* Called when the "Chat with Agent" button is clicked. Receives the mouse event
|
|
289
|
+
* and the Agent Studio UUID.
|
|
290
|
+
* So callers can open Rovo chat with the correct agent without needing
|
|
291
|
+
* their own AAID→UUID resolution.
|
|
292
|
+
*/
|
|
293
|
+
onChatClick?: (event: React.MouseEvent, agentStudioId?: string) => void;
|
|
288
294
|
onConversationStartersClick?: (starter: ConversationStarter) => void;
|
|
289
295
|
}
|
|
290
296
|
export interface AgentProfileCardTriggerProps extends AgentActionsType {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.12.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
50
|
"@atlaskit/give-kudos": "^6.7.0",
|
|
51
51
|
"@atlaskit/heading": "^6.2.0",
|
|
52
|
-
"@atlaskit/icon": "^37.
|
|
53
|
-
"@atlaskit/link": "4.3.
|
|
52
|
+
"@atlaskit/icon": "^37.1.0",
|
|
53
|
+
"@atlaskit/link": "4.3.4",
|
|
54
54
|
"@atlaskit/lozenge": "^14.1.0",
|
|
55
55
|
"@atlaskit/menu": "^9.2.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^3.2.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.5.0",
|
|
70
70
|
"@atlaskit/theme": "^26.1.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
-
"@atlaskit/tokens": "^16.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^130.0.0",
|
|
72
|
+
"@atlaskit/tokens": "^16.1.0",
|
|
73
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
75
|
-
"@compiled/react": "^0.
|
|
75
|
+
"@compiled/react": "^0.22.2",
|
|
76
76
|
"date-fns": "^2.17.0",
|
|
77
77
|
"date-fns-tz": "^2.0.0",
|
|
78
78
|
"graphql": "^15.8.0",
|