@atlaskit/teams-client 5.1.1 → 5.2.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 +7 -0
- package/compass.yml +1 -1
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/types/common/types.d.ts +2 -2
- package/dist/types/common/utils/permissions/types.d.ts +1 -1
- package/dist/types/common/utils/ufo/constants.d.ts +1 -1
- package/dist/types/services/identity-client/utils.d.ts +2 -2
- package/dist/types/services/use-query-light/main.d.ts +1 -1
- package/dist/types/types/links.d.ts +3 -3
- package/dist/types/types/user.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/compass.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
configVersion: 1
|
|
2
2
|
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/dc85b076-b6e1-44b1-b034-6a505facbaf9
|
|
3
3
|
name: '@atlaskit/teams-client'
|
|
4
|
-
ownerId: ari:cloud:identity::team/
|
|
4
|
+
ownerId: ari:cloud:identity::team/d8a5c4b6-436c-44ce-a11c-b8817f2b8b81 # Teams App frontend
|
|
5
5
|
labels:
|
|
6
6
|
- platform-code
|
|
7
7
|
- platform-afm
|
|
@@ -52,7 +52,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
52
52
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
53
53
|
metadata: {
|
|
54
54
|
error: (0, _utils.createErrorMetadata)(error),
|
|
55
|
-
packageVersion: "5.1.
|
|
55
|
+
packageVersion: "5.1.1",
|
|
56
56
|
packageName: "@atlaskit/teams-client"
|
|
57
57
|
}
|
|
58
58
|
}]);
|
|
@@ -60,7 +60,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
60
60
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
61
61
|
metadata: {
|
|
62
62
|
error: 'unknown error',
|
|
63
|
-
packageVersion: "5.1.
|
|
63
|
+
packageVersion: "5.1.1",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -36,7 +36,7 @@ function getSentryConfig(options) {
|
|
|
36
36
|
return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
|
|
37
37
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
38
38
|
// when building to deploy to production
|
|
39
|
-
release: "".concat("@atlaskit/teams-client", "@").concat("5.1.
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("5.1.1") ||
|
|
40
40
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
41
41
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
42
42
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
27
27
|
return super.failure({
|
|
28
28
|
metadata: {
|
|
29
29
|
error: createErrorMetadata(error),
|
|
30
|
-
packageVersion: "5.1.
|
|
30
|
+
packageVersion: "5.1.1",
|
|
31
31
|
packageName: "@atlaskit/teams-client"
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -35,7 +35,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
35
35
|
return super.failure({
|
|
36
36
|
metadata: {
|
|
37
37
|
error: 'unknown error',
|
|
38
|
-
packageVersion: "5.1.
|
|
38
|
+
packageVersion: "5.1.1",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -28,7 +28,7 @@ export function getSentryConfig(options) {
|
|
|
28
28
|
...DEFAULT_SENTRY_CONFIG,
|
|
29
29
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
30
30
|
// when building to deploy to production
|
|
31
|
-
release: `${"@atlaskit/teams-client"}@${"5.1.
|
|
31
|
+
release: `${"@atlaskit/teams-client"}@${"5.1.1"}` ||
|
|
32
32
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
33
33
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
34
34
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -45,7 +45,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
45
45
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
46
46
|
metadata: {
|
|
47
47
|
error: createErrorMetadata(error),
|
|
48
|
-
packageVersion: "5.1.
|
|
48
|
+
packageVersion: "5.1.1",
|
|
49
49
|
packageName: "@atlaskit/teams-client"
|
|
50
50
|
}
|
|
51
51
|
}]);
|
|
@@ -53,7 +53,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
53
53
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
54
54
|
metadata: {
|
|
55
55
|
error: 'unknown error',
|
|
56
|
-
packageVersion: "5.1.
|
|
56
|
+
packageVersion: "5.1.1",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
|
|
|
29
29
|
return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
|
|
30
30
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
31
31
|
// when building to deploy to production
|
|
32
|
-
release: "".concat("@atlaskit/teams-client", "@").concat("5.1.
|
|
32
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("5.1.1") ||
|
|
33
33
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
34
34
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
35
35
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const USER_ARI_PREFIX:
|
|
1
|
+
export declare const USER_ARI_PREFIX: 'ari:cloud:identity::user/';
|
|
2
2
|
export type UserARI = `${typeof USER_ARI_PREFIX}${string}`;
|
|
3
|
-
export declare const TEAM_ARI_PREFIX:
|
|
3
|
+
export declare const TEAM_ARI_PREFIX: 'ari:cloud:identity::team/';
|
|
4
4
|
export type TeamARI = `${typeof TEAM_ARI_PREFIX}${string}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const AllTeamActions: readonly [
|
|
1
|
+
export declare const AllTeamActions: readonly ['ADD_MEMBER_TO_TEAM', 'JOIN_TEAM', 'REQUEST_TO_JOIN', 'CANCEL_JOIN_REQUEST', 'APPROVE_JOIN_REQUEST', 'REJECT_JOIN_REQUEST', 'REMOVE_MEMBER_FROM_TEAM', 'CANCEL_INVITE', 'LEAVE_TEAM', 'REMOVE_AGENT_FROM_TEAM', 'ADD_AGENT_TO_TEAM', 'CAN_EDIT_HIERARCHY', 'CAN_CHANGE_MEMBERSHIP_SETTINGS', 'EDIT_TEAM_NAME', 'EDIT_DESCRIPTION', 'EDIT_PROFILE_HEADER', 'EDIT_TEAM_LINK', 'EDIT_TEAM_SETTINGS', 'EDIT_TEAM_MEMBERSHIP', 'EDIT_TEAM_TYPE', 'DELETE_TEAM', 'ARCHIVE_TEAM', 'UNARCHIVE_TEAM'];
|
|
2
2
|
export type TeamAction = (typeof AllTeamActions)[number];
|
|
3
3
|
export type TeamPermissions = {
|
|
4
4
|
canCreateTeams: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TeamsUFOExperience } from './index';
|
|
2
|
-
declare const TeamsClientExperienceKeyList: readonly [
|
|
2
|
+
declare const TeamsClientExperienceKeyList: readonly ['getAllTeams', 'getTeamById', 'updateTeamById', 'querySettings', 'queryFeatureFlags', 'queryTeamMemberships', 'queryUser', 'inviteUsersToTeam', 'getMyTeamMembership', 'getTeamLinksByTeamId', 'createTeamLink', 'updateTeamLink', 'deleteTeamLink', 'reorderTeamLink', 'acceptTeamInvitation', 'declineTeamInvitation', 'selfJoinTeam', 'cancelJoinRequest', 'acceptJoinRequest', 'declineJoinRequest', 'deleteTeamMembership', 'revokeTeamInvite', 'deleteTeam', 'archiveTeam', 'unarchiveTeam', 'unlinkTeamFromGroup', 'isSingleFullMemberTeam', 'createTeam', 'createTeamContainers', 'createExternalTeam', 'getProfileWithMutability', 'getIsSiteAdmin', 'addUsersToTeam', 'removeTeamMemberships', 'getRecommendedProducts', 'joinOrRequestDefaultAccessToProductsBulk', 'getReadMediaToken', 'getWriteUserMediaToken', 'updateUserHeaderImage', 'getWriteTeamMediaToken', 'getSoftDeletedTeamById', 'restoreTeam', 'getUserInSiteUserBase', 'getLinkedTeamsBulk', 'getTeamProfileDetails', 'getUserContainers', 'getRecommendedUsers', 'getPermissions', 'getUserManageConfig', 'getMyAvatarUploadedStatus', 'deleteUserAvatar', 'getTeamLinkIcons', 'getTeamInSlack', 'getOrgScope', 'restoreTeamToSyncedGroup', 'getTeamAndGroupDiff', 'linkExistingTeamToGroup', 'fetchUserAvatarInfo', 'getOrgEligibilityForManagedTeams', 'updateUser', 'updateUserAvatar', 'disconnectTeamInSlack', 'updateTeamInSlack', 'getUserTenure', 'getAriFromUrl', 'getWebLinkTitle', 'addAgentToTeam', 'getTeamEnabledSites', 'assignTeamsToSites', 'removeAgentTeamAssociation', 'getAssignedTeams', 'setTeamSiteAssignmentPermission', 'getUnassignedTeams', 'getTeamSiteAssignmentOrgDetails', 'getTeamsToBeClonedToJsmSites', 'getReportingLines'];
|
|
3
3
|
export type TeamsClientExperienceKeys = (typeof TeamsClientExperienceKeyList)[number];
|
|
4
4
|
export declare const TEAMS_CLIENT_EXPERIENCES: Map<'getAllTeams' | 'getTeamById' | 'updateTeamById' | 'querySettings' | 'queryFeatureFlags' | 'queryTeamMemberships' | 'queryUser' | 'inviteUsersToTeam' | 'getMyTeamMembership' | 'getTeamLinksByTeamId' | 'createTeamLink' | 'updateTeamLink' | 'deleteTeamLink' | 'reorderTeamLink' | 'acceptTeamInvitation' | 'declineTeamInvitation' | 'selfJoinTeam' | 'cancelJoinRequest' | 'acceptJoinRequest' | 'declineJoinRequest' | 'deleteTeamMembership' | 'revokeTeamInvite' | 'deleteTeam' | 'archiveTeam' | 'unarchiveTeam' | 'unlinkTeamFromGroup' | 'isSingleFullMemberTeam' | 'createTeam' | 'createTeamContainers' | 'createExternalTeam' | 'getProfileWithMutability' | 'getIsSiteAdmin' | 'addUsersToTeam' | 'removeTeamMemberships' | 'getRecommendedProducts' | 'joinOrRequestDefaultAccessToProductsBulk' | 'getReadMediaToken' | 'getWriteUserMediaToken' | 'updateUserHeaderImage' | 'getWriteTeamMediaToken' | 'getSoftDeletedTeamById' | 'restoreTeam' | 'getUserInSiteUserBase' | 'getLinkedTeamsBulk' | 'getTeamProfileDetails' | 'getUserContainers' | 'getRecommendedUsers' | 'getPermissions' | 'getUserManageConfig' | 'getMyAvatarUploadedStatus' | 'deleteUserAvatar' | 'getTeamLinkIcons' | 'getTeamInSlack' | 'getOrgScope' | 'restoreTeamToSyncedGroup' | 'getTeamAndGroupDiff' | 'linkExistingTeamToGroup' | 'fetchUserAvatarInfo' | 'getOrgEligibilityForManagedTeams' | 'updateUser' | 'updateUserAvatar' | 'disconnectTeamInSlack' | 'updateTeamInSlack' | 'getUserTenure' | 'getAriFromUrl' | 'getWebLinkTitle' | 'addAgentToTeam' | 'getTeamEnabledSites' | 'assignTeamsToSites' | 'removeAgentTeamAssociation' | 'getAssignedTeams' | 'setTeamSiteAssignmentPermission' | 'getUnassignedTeams' | 'getTeamSiteAssignmentOrgDetails' | 'getTeamsToBeClonedToJsmSites' | 'getReportingLines', TeamsUFOExperience>;
|
|
5
5
|
export {};
|
|
@@ -69,8 +69,8 @@ export type MutabilityContraints = {
|
|
|
69
69
|
};
|
|
70
70
|
export declare const MUTABILITY_DETAILS_MAP: Record<FieldKey, string>;
|
|
71
71
|
export declare const CUSTOM_FIELD_PLACE: {
|
|
72
|
-
readonly email:
|
|
73
|
-
readonly picture:
|
|
72
|
+
readonly email: 'email.initiateChange';
|
|
73
|
+
readonly picture: 'avatar';
|
|
74
74
|
};
|
|
75
75
|
export type CustomFieldKey = keyof typeof CUSTOM_FIELD_PLACE;
|
|
76
76
|
export type AllFieldKeys = FieldKey | CustomFieldKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DocumentNode } from 'graphql';
|
|
2
2
|
import { type QueryOptions, type QueryResponse } from './types';
|
|
3
3
|
export declare const useQueryLight: <TParams, TResult>(query: DocumentNode, options: QueryOptions<TParams>) => QueryResponse<TParams, TResult>;
|
|
4
|
-
export declare const useLazyQueryLight: <TParams, TResult>(query: DocumentNode, options: Omit<QueryOptions<TParams>,
|
|
4
|
+
export declare const useLazyQueryLight: <TParams, TResult>(query: DocumentNode, options: Omit<QueryOptions<TParams>, 'skip'>) => [() => void, QueryResponse<TParams, TResult>];
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Used to synchronise these field names to forms used to create/edit links e.g. TeamLinkForm
|
|
3
3
|
*/
|
|
4
4
|
export declare const LINK_FIELDS: {
|
|
5
|
-
CONTENT_TITLE:
|
|
6
|
-
DESCRIPTION:
|
|
7
|
-
LINK_URI:
|
|
5
|
+
CONTENT_TITLE: 'contentTitle';
|
|
6
|
+
DESCRIPTION: 'description';
|
|
7
|
+
LINK_URI: 'linkUri';
|
|
8
8
|
};
|
|
9
9
|
export interface TeamLink {
|
|
10
10
|
[LINK_FIELDS.CONTENT_TITLE]: string;
|
|
@@ -37,7 +37,7 @@ export interface TeamsClientUser {
|
|
|
37
37
|
export interface UserInSiteUserbase {
|
|
38
38
|
isPresent: boolean;
|
|
39
39
|
}
|
|
40
|
-
declare const EditableUserFieldList: readonly [
|
|
40
|
+
declare const EditableUserFieldList: readonly ['title', 'department', 'companyName', 'location', 'phoneNumber', 'fullName', 'nickname', 'locale', 'email', 'aboutMe', 'pronouns'];
|
|
41
41
|
export type EditableUserFields = Pick<TeamsClientUser, (typeof EditableUserFieldList)[number]>;
|
|
42
42
|
export declare const isEditableUserField: (key: string) => key is keyof EditableUserFields;
|
|
43
43
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
34
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
34
|
+
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
35
35
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
36
36
|
"@atlaskit/ufo": "^1.0.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lodash": "^4.17.21"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"react": "^18.2.0"
|
|
46
|
+
"react": "^18.2.0 || ^19.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@atlassian/ptc-test-utils": "^0.14.0",
|
|
52
52
|
"@testing-library/react": "^16.3.0",
|
|
53
53
|
"@types/faker": "^4.1.8",
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
54
|
+
"react": "^19.2.0",
|
|
55
|
+
"react-dom": "^19.2.0",
|
|
56
56
|
"swagger-typescript-api": "^13.0.3",
|
|
57
57
|
"ts-morph": "^17.0.0",
|
|
58
58
|
"ts-node": "^10.9.1",
|