@atlaskit/profilecard 25.9.10 → 26.0.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 +32 -0
- package/agent/package.json +1 -8
- package/agent-profile-card/package.json +1 -8
- package/agent-profile-card-resourced/package.json +1 -8
- package/agent-profile-card-trigger/package.json +1 -8
- package/caching-client/package.json +1 -8
- package/client/package.json +1 -8
- package/config/package.json +1 -8
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- 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/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/util/analytics.js +2 -2
- package/i18n/package.json +1 -8
- package/lazy-profile-card/package.json +1 -8
- package/messages/package.json +1 -8
- package/mock-profile-client/package.json +1 -8
- package/mock-team-client/package.json +1 -8
- package/mocks/package.json +1 -8
- package/package.json +32 -40
- package/profile-card/package.json +1 -8
- package/profile-card-trigger/package.json +1 -8
- package/profile-data/package.json +1 -8
- package/simple-mock-clients/package.json +1 -8
- package/team/package.json +1 -8
- package/team-profile-card/package.json +1 -8
- package/team-profile-card-client/package.json +1 -8
- package/team-profile-card-trigger/package.json +1 -8
- package/types/package.json +1 -8
- package/user/package.json +1 -8
- package/user-profile-card-client/package.json +1 -8
- package/with-outer-listeners/package.json +1 -8
- package/dist/types-ts4.5/client/CachingClient.d.ts +0 -18
- package/dist/types-ts4.5/client/ProfileCardClient.d.ts +0 -28
- package/dist/types-ts4.5/client/RovoAgentCardClient.d.ts +0 -23
- package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +0 -50
- package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +0 -9
- package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +0 -24
- package/dist/types-ts4.5/client/errorUtils.d.ts +0 -5
- package/dist/types-ts4.5/client/getOrgIdForCloudIdFromAGG.d.ts +0 -1
- package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +0 -38
- package/dist/types-ts4.5/client/graphqlUtils.d.ts +0 -31
- package/dist/types-ts4.5/client/index.d.ts +0 -6
- package/dist/types-ts4.5/client/types.d.ts +0 -13
- package/dist/types-ts4.5/components/Agent/Actions.d.ts +0 -15
- package/dist/types-ts4.5/components/Agent/AgentDeleteConfirmationModal.d.ts +0 -10
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +0 -4
- package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +0 -22
- package/dist/types-ts4.5/components/Agent/AgentProfileCardTrigger.d.ts +0 -4
- package/dist/types-ts4.5/components/Agent/AgentProfileCardWrapper.d.ts +0 -4
- package/dist/types-ts4.5/components/Agent/ConversationStarters.d.ts +0 -3
- package/dist/types-ts4.5/components/Agent/hooks/duplicateFetch.d.ts +0 -24
- package/dist/types-ts4.5/components/Agent/hooks/useAgentActions.d.ts +0 -16
- package/dist/types-ts4.5/components/Agent/index.d.ts +0 -2
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +0 -3
- package/dist/types-ts4.5/components/Agent/messages.d.ts +0 -27
- package/dist/types-ts4.5/components/Agent/utils/index.d.ts +0 -4
- package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +0 -3
- package/dist/types-ts4.5/components/Error/ErrorBoundary.d.ts +0 -10
- package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +0 -2
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +0 -10
- package/dist/types-ts4.5/components/Error/index.d.ts +0 -3
- package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +0 -13
- package/dist/types-ts4.5/components/Icon/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +0 -6
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +0 -6
- package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +0 -7
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +0 -65
- package/dist/types-ts4.5/components/Team/index.d.ts +0 -4
- package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +0 -3
- package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +0 -10
- package/dist/types-ts4.5/components/User/ProfileCard.d.ts +0 -5
- package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +0 -3
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +0 -22
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +0 -3
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +0 -5
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +0 -7
- package/dist/types-ts4.5/components/User/index.d.ts +0 -4
- package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +0 -3
- package/dist/types-ts4.5/components/common/LoadingState.d.ts +0 -9
- package/dist/types-ts4.5/components/common/PopupTrigger.d.ts +0 -7
- package/dist/types-ts4.5/components/common/ProfileCardTrigger.d.ts +0 -9
- package/dist/types-ts4.5/components/common/ProfileCardWrapper.d.ts +0 -5
- package/dist/types-ts4.5/components/common/types.d.ts +0 -17
- package/dist/types-ts4.5/components/team-profile-card/index.d.ts +0 -1
- package/dist/types-ts4.5/components/team-profile-card/main.d.ts +0 -17
- package/dist/types-ts4.5/components/team-profile-card/mocks.d.ts +0 -16
- package/dist/types-ts4.5/components/team-profile-card/team-actions/index.d.ts +0 -21
- package/dist/types-ts4.5/components/team-profile-card/team-actions/messages.d.ts +0 -7
- package/dist/types-ts4.5/components/team-profile-card/team-actions/more-actions/index.d.ts +0 -11
- package/dist/types-ts4.5/components/team-profile-card/team-actions/more-actions/messages.d.ts +0 -7
- package/dist/types-ts4.5/components/team-profile-card/team-connections/main.d.ts +0 -3
- package/dist/types-ts4.5/components/team-profile-card/team-containers-skeleton/index.d.ts +0 -3
- package/dist/types-ts4.5/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.d.ts +0 -2
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -27
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -36
- package/dist/types-ts4.5/i18n/is.d.ts +0 -27
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -34
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -27
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -27
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -27
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/index.d.ts +0 -24
- package/dist/types-ts4.5/internal/filterActions.d.ts +0 -3
- package/dist/types-ts4.5/internal/getLabelMessage.d.ts +0 -3
- package/dist/types-ts4.5/internal/relative-date.d.ts +0 -3
- package/dist/types-ts4.5/messages.d.ts +0 -233
- package/dist/types-ts4.5/mocks/agent-data.d.ts +0 -4
- package/dist/types-ts4.5/mocks/index.d.ts +0 -4
- package/dist/types-ts4.5/mocks/mock-profile-client.d.ts +0 -1
- package/dist/types-ts4.5/mocks/mock-team-client.d.ts +0 -8
- package/dist/types-ts4.5/mocks/profile-data.d.ts +0 -45
- package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +0 -2
- package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +0 -19
- package/dist/types-ts4.5/mocks/team-data.d.ts +0 -15
- package/dist/types-ts4.5/mocks/util.d.ts +0 -6
- package/dist/types-ts4.5/styled/Card.d.ts +0 -59
- package/dist/types-ts4.5/styled/CoverImage.d.ts +0 -11
- package/dist/types-ts4.5/styled/Error.d.ts +0 -11
- package/dist/types-ts4.5/styled/ReportingLines.d.ts +0 -13
- package/dist/types-ts4.5/styled/TeamCard.d.ts +0 -35
- package/dist/types-ts4.5/styled/TeamTrigger.d.ts +0 -19
- package/dist/types-ts4.5/styled/UserTrigger.d.ts +0 -12
- package/dist/types-ts4.5/types.d.ts +0 -592
- package/dist/types-ts4.5/util/analytics.d.ts +0 -101
- package/dist/types-ts4.5/util/click.d.ts +0 -4
- package/dist/types-ts4.5/util/config.d.ts +0 -2
- package/dist/types-ts4.5/util/date.d.ts +0 -1
- package/dist/types-ts4.5/util/errors.d.ts +0 -43
- package/dist/types-ts4.5/util/performance.d.ts +0 -1
- package/dist/types-ts4.5/util/rovoAgentUtils.d.ts +0 -2
- package/dist/types-ts4.5/util/url.d.ts +0 -1
- package/dist/types-ts4.5/util/useProfileInfo.d.ts +0 -8
- package/dist/types-ts4.5/util/withOuterListeners.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 25.9.11
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 25.9.10
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/agent/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Agent/index.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Agent/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Agent/index.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Agent/AgentProfileCard.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Agent/AgentProfileCard.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Agent/AgentProfileCardResourced.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Agent/AgentProfileCardResourced.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Agent/AgentProfileCardTrigger.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Agent/AgentProfileCardTrigger.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Agent/AgentProfileCardTrigger.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/client/CachingClient.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/client/CachingClient.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/client/CachingClient.d.ts"
|
|
17
10
|
}
|
package/client/package.json
CHANGED
package/config/package.json
CHANGED
|
@@ -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', "25.9.
|
|
14
|
+
headers.append('atl-client-version', "25.9.11");
|
|
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', "25.9.
|
|
69
|
+
headers.append('atl-client-version', "25.9.11");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -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 = "25.9.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.11") !== 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: "25.9.
|
|
34
|
+
packageVersion: "25.9.11"
|
|
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', "25.9.
|
|
9
|
+
headers.append('atl-client-version', "25.9.11");
|
|
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', "25.9.
|
|
81
|
+
headers.append('atl-client-version', "25.9.11");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -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 = "25.9.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.11") !== 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: "25.9.
|
|
22
|
+
packageVersion: "25.9.11",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -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', "25.9.
|
|
7
|
+
headers.append('atl-client-version', "25.9.11");
|
|
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', "25.9.
|
|
62
|
+
headers.append('atl-client-version', "25.9.11");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -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 = "25.9.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.11") !== 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: "25.9.
|
|
27
|
+
packageVersion: "25.9.11"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/i18n/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/User/lazyProfileCard.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/User/lazyProfileCard.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/User/lazyProfileCard.d.ts"
|
|
17
10
|
}
|
package/messages/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/mocks/mock-profile-client.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/mocks/mock-profile-client.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/mocks/mock-profile-client.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/mocks/mock-team-client.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/mocks/mock-team-client.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/mocks/mock-team-client.d.ts"
|
|
17
10
|
}
|
package/mocks/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"atlaskit:src": "src/index.ts",
|
|
24
16
|
"atlassian": {
|
|
25
17
|
"react-compiler": {
|
|
@@ -47,37 +39,37 @@
|
|
|
47
39
|
},
|
|
48
40
|
"dependencies": {
|
|
49
41
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.152.0",
|
|
50
|
-
"@atlaskit/atlassian-context": "^0.
|
|
51
|
-
"@atlaskit/avatar": "^
|
|
52
|
-
"@atlaskit/avatar-group": "^
|
|
53
|
-
"@atlaskit/button": "^
|
|
54
|
-
"@atlaskit/css": "^0.
|
|
55
|
-
"@atlaskit/dropdown-menu": "^
|
|
56
|
-
"@atlaskit/empty-state": "^
|
|
57
|
-
"@atlaskit/feature-gate-js-client": "^
|
|
58
|
-
"@atlaskit/give-kudos": "^
|
|
59
|
-
"@atlaskit/heading": "^
|
|
60
|
-
"@atlaskit/icon": "^
|
|
61
|
-
"@atlaskit/link": "
|
|
62
|
-
"@atlaskit/lozenge": "^
|
|
63
|
-
"@atlaskit/menu": "^
|
|
64
|
-
"@atlaskit/modal-dialog": "^
|
|
65
|
-
"@atlaskit/people-teams-ui-public": "^
|
|
66
|
-
"@atlaskit/platform-feature-flags": "^
|
|
67
|
-
"@atlaskit/popup": "^
|
|
68
|
-
"@atlaskit/primitives": "^
|
|
69
|
-
"@atlaskit/rovo-agent-components": "^
|
|
70
|
-
"@atlaskit/rovo-triggers": "^
|
|
71
|
-
"@atlaskit/spinner": "^
|
|
72
|
-
"@atlaskit/teams-app-config": "^
|
|
73
|
-
"@atlaskit/teams-app-internal-analytics": "^
|
|
74
|
-
"@atlaskit/teams-app-internal-navigation": "^
|
|
75
|
-
"@atlaskit/teams-avatar": "^
|
|
76
|
-
"@atlaskit/teams-public": "^
|
|
77
|
-
"@atlaskit/theme": "^
|
|
78
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
79
|
-
"@atlaskit/tokens": "^
|
|
80
|
-
"@atlaskit/tooltip": "^
|
|
42
|
+
"@atlaskit/atlassian-context": "^1.0.0",
|
|
43
|
+
"@atlaskit/avatar": "^26.0.0",
|
|
44
|
+
"@atlaskit/avatar-group": "^13.0.0",
|
|
45
|
+
"@atlaskit/button": "^24.0.0",
|
|
46
|
+
"@atlaskit/css": "^1.0.0",
|
|
47
|
+
"@atlaskit/dropdown-menu": "^17.0.0",
|
|
48
|
+
"@atlaskit/empty-state": "^11.0.0",
|
|
49
|
+
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
+
"@atlaskit/give-kudos": "^6.0.0",
|
|
51
|
+
"@atlaskit/heading": "^6.0.0",
|
|
52
|
+
"@atlaskit/icon": "^36.0.0",
|
|
53
|
+
"@atlaskit/link": "4.0.0",
|
|
54
|
+
"@atlaskit/lozenge": "^14.0.0",
|
|
55
|
+
"@atlaskit/menu": "^9.0.0",
|
|
56
|
+
"@atlaskit/modal-dialog": "^16.0.0",
|
|
57
|
+
"@atlaskit/people-teams-ui-public": "^5.0.0",
|
|
58
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
59
|
+
"@atlaskit/popup": "^5.0.0",
|
|
60
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
61
|
+
"@atlaskit/rovo-agent-components": "^6.0.0",
|
|
62
|
+
"@atlaskit/rovo-triggers": "^8.0.0",
|
|
63
|
+
"@atlaskit/spinner": "^20.0.0",
|
|
64
|
+
"@atlaskit/teams-app-config": "^2.0.0",
|
|
65
|
+
"@atlaskit/teams-app-internal-analytics": "^2.0.0",
|
|
66
|
+
"@atlaskit/teams-app-internal-navigation": "^2.0.0",
|
|
67
|
+
"@atlaskit/teams-avatar": "^3.0.0",
|
|
68
|
+
"@atlaskit/teams-public": "^2.0.0",
|
|
69
|
+
"@atlaskit/theme": "^26.0.0",
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
71
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
72
|
+
"@atlaskit/tooltip": "^23.0.0",
|
|
81
73
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
82
74
|
"@babel/runtime": "^7.0.0",
|
|
83
75
|
"@compiled/react": "^0.20.0",
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/User/ProfileCard.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/User/ProfileCard.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/User/ProfileCard.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/User/ProfileCardTrigger.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/User/ProfileCardTrigger.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/mocks/profile-data.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/mocks/profile-data.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/mocks/profile-data.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/mocks/simple-mock-clients.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/mocks/simple-mock-clients.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/mocks/simple-mock-clients.d.ts"
|
|
17
10
|
}
|
package/team/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Team/index.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Team/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Team/index.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Team/TeamProfileCard.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Team/TeamProfileCard.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Team/TeamProfileCard.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/client/TeamProfileCardClient.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/client/TeamProfileCardClient.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/client/TeamProfileCardClient.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/Team/TeamProfileCardTrigger.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/Team/TeamProfileCardTrigger.d.ts"
|
|
17
10
|
}
|
package/types/package.json
CHANGED
package/user/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/User/index.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/User/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/User/index.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/client/UserProfileCardClient.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/client/UserProfileCardClient.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/client/UserProfileCardClient.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/util/withOuterListeners.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/util/withOuterListeners.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/util/withOuterListeners.d.ts"
|
|
17
10
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LRUMap } from 'lru_map';
|
|
2
|
-
interface CachedData<T> {
|
|
3
|
-
expire: number;
|
|
4
|
-
profile: T;
|
|
5
|
-
}
|
|
6
|
-
export interface CacheConfig {
|
|
7
|
-
cacheSize?: number;
|
|
8
|
-
cacheMaxAge?: number;
|
|
9
|
-
}
|
|
10
|
-
export default class CachingClient<T> {
|
|
11
|
-
config: Required<CacheConfig>;
|
|
12
|
-
cache: LRUMap<string, CachedData<T>> | null;
|
|
13
|
-
constructor(config: CacheConfig);
|
|
14
|
-
setCachedProfile(cacheIdentifier: string, profile: T): void;
|
|
15
|
-
getCachedProfile(cacheIdentifier: string): T | null;
|
|
16
|
-
flushCache(): void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|