@atlaskit/profilecard 26.22.4 → 26.23.0
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/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardResourced.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardResourced.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -5
- package/stories/agent-profilecard.stories.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1a3f7d6aa71c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a3f7d6aa71c6) -
|
|
8
|
+
Update i18n NPM package versions for people-and-teams,identity (Group 8)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 26.22.5
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 26.22.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
11
11
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
12
12
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.23.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
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.23.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -20,7 +20,7 @@ var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-a
|
|
|
20
20
|
var _filterActions = _interopRequireDefault(require("../../internal/filterActions"));
|
|
21
21
|
var _UserTrigger = require("../../styled/UserTrigger");
|
|
22
22
|
var _ErrorMessage = _interopRequireDefault(require("../Error/ErrorMessage"));
|
|
23
|
-
var
|
|
23
|
+
var _ProfilecardInternal = require("./ProfilecardInternal");
|
|
24
24
|
var _UserLoadingState = _interopRequireDefault(require("./UserLoadingState"));
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
26
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -212,7 +212,7 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
212
212
|
cloudId: this.props.cloudId,
|
|
213
213
|
addFlag: this.props.addFlag,
|
|
214
214
|
onClose: this.closeKudosDrawer
|
|
215
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
215
|
+
})), /*#__PURE__*/_react.default.createElement(_ProfilecardInternal.ProfilecardInternal, (0, _extends2.default)({}, newProps, {
|
|
216
216
|
actions: this.filterActions()
|
|
217
217
|
}))));
|
|
218
218
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "DELAY_MS_SHOW", {
|
|
|
37
37
|
Object.defineProperty(exports, "ProfileCard", {
|
|
38
38
|
enumerable: true,
|
|
39
39
|
get: function get() {
|
|
40
|
-
return
|
|
40
|
+
return _ProfilecardInternal.ProfilecardInternal;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ProfileCardTrigger", {
|
|
@@ -101,7 +101,7 @@ var _UserProfileCardClient = _interopRequireDefault(require("./client/UserProfil
|
|
|
101
101
|
var _modifyResponse = require("./client/modifyResponse");
|
|
102
102
|
var _AgentProfileCard = _interopRequireDefault(require("./components/Agent/AgentProfileCard"));
|
|
103
103
|
var _TeamProfileCardTrigger = _interopRequireDefault(require("./components/Team/TeamProfileCardTrigger"));
|
|
104
|
-
var
|
|
104
|
+
var _ProfilecardInternal = require("./components/User/ProfilecardInternal");
|
|
105
105
|
var _ProfileCardResourced = _interopRequireDefault(require("./components/User/ProfileCardResourced"));
|
|
106
106
|
var _ProfileCardTrigger = _interopRequireDefault(require("./components/User/ProfileCardTrigger"));
|
|
107
107
|
var _main = require("./components/team-profile-card/main");
|
|
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
|
|
|
7
7
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
8
8
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
9
9
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
10
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.23.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
11
11
|
};
|
|
12
12
|
var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
|
|
13
13
|
var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
|
|
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
22
22
|
actionSubjectId: actionSubjectId,
|
|
23
23
|
attributes: _objectSpread(_objectSpread({
|
|
24
24
|
packageName: "@atlaskit/profilecard",
|
|
25
|
-
packageVersion: "26.
|
|
25
|
+
packageVersion: "26.23.0"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.
|
|
8
|
+
headers.append('atl-client-version', "26.23.0");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -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.23.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -6,7 +6,7 @@ import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-a
|
|
|
6
6
|
import filterActions from '../../internal/filterActions';
|
|
7
7
|
import { CardWrapper } from '../../styled/UserTrigger';
|
|
8
8
|
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
9
|
-
import ProfileCard from './
|
|
9
|
+
import { ProfilecardInternal as ProfileCard } from './ProfilecardInternal';
|
|
10
10
|
import UserLoadingState from './UserLoadingState';
|
|
11
11
|
class ProfileCardResourced extends React.PureComponent {
|
|
12
12
|
constructor(...args) {
|
package/dist/es2019/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import UserProfileClient from './client/UserProfileCardClient';
|
|
|
9
9
|
import { modifyResponse } from './client/modifyResponse';
|
|
10
10
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
11
11
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
12
|
-
import ProfileCard from './components/User/
|
|
12
|
+
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
13
13
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
14
14
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
15
15
|
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export const PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.23.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export const TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export const USER_SUBJECT = 'profilecard';
|
|
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "26.
|
|
14
|
+
packageVersion: "26.23.0",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.
|
|
8
|
+
headers.append('atl-client-version', "26.23.0");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
|
|
|
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.23.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -16,7 +16,7 @@ import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-a
|
|
|
16
16
|
import filterActions from '../../internal/filterActions';
|
|
17
17
|
import { CardWrapper } from '../../styled/UserTrigger';
|
|
18
18
|
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
19
|
-
import ProfileCard from './
|
|
19
|
+
import { ProfilecardInternal as ProfileCard } from './ProfilecardInternal';
|
|
20
20
|
import UserLoadingState from './UserLoadingState';
|
|
21
21
|
var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
22
22
|
function ProfileCardResourced() {
|
package/dist/esm/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import UserProfileClient from './client/UserProfileCardClient';
|
|
|
9
9
|
import { modifyResponse } from './client/modifyResponse';
|
|
10
10
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
11
11
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
12
|
-
import ProfileCard from './components/User/
|
|
12
|
+
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
13
13
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
14
14
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
15
15
|
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export var PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.23.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export var TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export var USER_SUBJECT = 'profilecard';
|
|
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
16
16
|
actionSubjectId: actionSubjectId,
|
|
17
17
|
attributes: _objectSpread(_objectSpread({
|
|
18
18
|
packageName: "@atlaskit/profilecard",
|
|
19
|
-
packageVersion: "26.
|
|
19
|
+
packageVersion: "26.23.0"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import UserProfileClient from './client/UserProfileCardClient';
|
|
|
4
4
|
import { modifyResponse } from './client/modifyResponse';
|
|
5
5
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
6
6
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
7
|
-
import ProfileCard from './components/User/
|
|
7
|
+
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
8
8
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
9
9
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
10
10
|
import { TeamProfileCard } from './components/team-profile-card/main';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.23.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.
|
|
41
|
+
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.246.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
43
43
|
"@atlaskit/avatar": "^28.0.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^14.3.0",
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"@atlaskit/primitives": "^22.5.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
62
|
"@atlaskit/rovo-agent-components": "^8.9.0",
|
|
63
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
63
|
+
"@atlaskit/rovo-triggers": "^10.34.0",
|
|
64
64
|
"@atlaskit/spinner": "^20.4.0",
|
|
65
65
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-analytics": "^2.4.0",
|
|
67
67
|
"@atlaskit/teams-app-internal-navigation": "^2.3.0",
|
|
68
68
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
69
|
-
"@atlaskit/teams-public": "^2.
|
|
69
|
+
"@atlaskit/teams-public": "^2.11.0",
|
|
70
70
|
"@atlaskit/theme": "^28.2.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^188.0.0",
|
|
72
72
|
"@atlaskit/tokens": "^16.12.0",
|
|
73
73
|
"@atlaskit/tooltip": "^24.3.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
withStorybookLinkHarness,
|
|
11
11
|
} from '@atlassian/platform-storybook-helpers';
|
|
12
12
|
|
|
13
|
-
import
|
|
14
|
-
import { simpleProfileClient } from '../src/mocks';
|
|
13
|
+
import AgentProfileCard from '../src/components/Agent/AgentProfileCard';
|
|
14
|
+
import { simpleProfileClient } from '../src/mocks/simple-mock-clients';
|
|
15
15
|
import type { AgentProfileCardProps, RovoAgentProfileCardInfo } from '../src/types';
|
|
16
16
|
|
|
17
17
|
type StoryArgs = AgentProfileCardProps;
|