@atlaskit/teams-client 4.29.1 → 4.30.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 +14 -0
- package/dist/cjs/common/utils/permissions/constants.js +6 -7
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/main.js +4 -11
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/common/utils/permissions/constants.js +6 -7
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/main.js +5 -12
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/permissions/constants.js +6 -7
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/main.js +4 -11
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types-ts4.5/types/index.d.ts +2 -0
- package/package.json +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 4.30.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d0487f184cf07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0487f184cf07) -
|
|
8
|
+
Export TeamContainers type
|
|
9
|
+
|
|
10
|
+
## 4.30.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`8043a09b33198`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8043a09b33198) -
|
|
15
|
+
[ux] Enable editing team types for external teams
|
|
16
|
+
|
|
3
17
|
## 4.29.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -70,14 +70,13 @@ var SCIMSyncTeamPermissions = exports.SCIMSyncTeamPermissions = function SCIMSyn
|
|
|
70
70
|
*/
|
|
71
71
|
var getDisbandedTeamPermissionMap = function getDisbandedTeamPermissionMap(settings, permission, isMember, isOrgAdmin) {
|
|
72
72
|
var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
73
|
-
var isArchiveTeamEnabled = (0, _platformFeatureFlags.fg)('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
74
73
|
|
|
75
74
|
// Base permission map - all actions disabled for disbanded teams
|
|
76
75
|
var basePermissions = allPermissions(false, false, false);
|
|
77
76
|
|
|
78
77
|
// UNARCHIVE_TEAM permission based on team settings
|
|
79
78
|
var canUnarchive = false;
|
|
80
|
-
if (
|
|
79
|
+
if (newTeamProfileEnabled) {
|
|
81
80
|
if (settings === 'EXTERNAL' || settings === 'ORG_ADMIN_MANAGED') {
|
|
82
81
|
// For EXTERNAL and ORG_ADMIN_MANAGED teams, only org admins can unarchive
|
|
83
82
|
canUnarchive = isOrgAdmin;
|
|
@@ -98,21 +97,21 @@ var getDisbandedTeamPermissionMap = function getDisbandedTeamPermissionMap(setti
|
|
|
98
97
|
*/
|
|
99
98
|
var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, permission, isMember, isOrgAdmin, source) {
|
|
100
99
|
var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
101
|
-
var isArchiveTeamEnabled = (0, _platformFeatureFlags.fg)('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
102
100
|
if (settings === 'OPEN') {
|
|
103
101
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin)), openPermissions(permission)), {}, {
|
|
104
|
-
ARCHIVE_TEAM:
|
|
102
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
105
103
|
});
|
|
106
104
|
}
|
|
107
105
|
if (settings === 'MEMBER_INVITE') {
|
|
108
106
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin)), inviteOnlyPermissions(permission)), {}, {
|
|
109
|
-
ARCHIVE_TEAM:
|
|
107
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
110
108
|
});
|
|
111
109
|
} else if (settings === 'EXTERNAL') {
|
|
112
110
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
113
111
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
114
112
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
115
|
-
ARCHIVE_TEAM:
|
|
113
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && isOrgAdmin,
|
|
114
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
116
115
|
});
|
|
117
116
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
118
117
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -120,7 +119,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
120
119
|
EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE',
|
|
121
120
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
122
121
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
123
|
-
ARCHIVE_TEAM:
|
|
122
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE',
|
|
124
123
|
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE',
|
|
125
124
|
EDIT_TEAM_TYPE: permission === 'FULL_WRITE',
|
|
126
125
|
// ORG_ADMIN_MANAGED teams should not provide options to edit membership settings
|
|
@@ -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: "
|
|
55
|
+
packageVersion: "4.30.0",
|
|
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: "
|
|
63
|
+
packageVersion: "4.30.0",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -10,7 +10,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _constants = require("../common/utils/ufo/constants");
|
|
15
14
|
var _aggClient = require("./agg-client");
|
|
16
15
|
var _collaborationgraphClient = _interopRequireDefault(require("./collaborationgraph-client"));
|
|
@@ -161,16 +160,10 @@ var TeamsClient = exports.TeamsClient = /*#__PURE__*/function () {
|
|
|
161
160
|
while (1) switch (_context3.prev = _context3.next) {
|
|
162
161
|
case 0:
|
|
163
162
|
if (cloudId) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}));
|
|
169
|
-
} else {
|
|
170
|
-
this.setContext({
|
|
171
|
-
cloudId: cloudId
|
|
172
|
-
});
|
|
173
|
-
}
|
|
163
|
+
previousContext = this._legionClient.getContext();
|
|
164
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
165
|
+
cloudId: cloudId
|
|
166
|
+
}));
|
|
174
167
|
}
|
|
175
168
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
176
169
|
var response;
|
|
@@ -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("
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.30.0") ||
|
|
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) || '---',
|
|
@@ -52,14 +52,13 @@ export const SCIMSyncTeamPermissions = (isMember, isOrgAdmin, source) => ({
|
|
|
52
52
|
*/
|
|
53
53
|
const getDisbandedTeamPermissionMap = (settings, permission, isMember, isOrgAdmin) => {
|
|
54
54
|
const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
55
|
-
const isArchiveTeamEnabled = fg('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
56
55
|
|
|
57
56
|
// Base permission map - all actions disabled for disbanded teams
|
|
58
57
|
const basePermissions = allPermissions(false, false, false);
|
|
59
58
|
|
|
60
59
|
// UNARCHIVE_TEAM permission based on team settings
|
|
61
60
|
let canUnarchive = false;
|
|
62
|
-
if (
|
|
61
|
+
if (newTeamProfileEnabled) {
|
|
63
62
|
if (settings === 'EXTERNAL' || settings === 'ORG_ADMIN_MANAGED') {
|
|
64
63
|
// For EXTERNAL and ORG_ADMIN_MANAGED teams, only org admins can unarchive
|
|
65
64
|
canUnarchive = isOrgAdmin;
|
|
@@ -81,19 +80,18 @@ const getDisbandedTeamPermissionMap = (settings, permission, isMember, isOrgAdmi
|
|
|
81
80
|
*/
|
|
82
81
|
const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin, source) => {
|
|
83
82
|
const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
84
|
-
const isArchiveTeamEnabled = fg('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
85
83
|
if (settings === 'OPEN') {
|
|
86
84
|
return {
|
|
87
85
|
...allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin),
|
|
88
86
|
...openPermissions(permission),
|
|
89
|
-
ARCHIVE_TEAM:
|
|
87
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
if (settings === 'MEMBER_INVITE') {
|
|
93
91
|
return {
|
|
94
92
|
...allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin),
|
|
95
93
|
...inviteOnlyPermissions(permission),
|
|
96
|
-
ARCHIVE_TEAM:
|
|
94
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
97
95
|
};
|
|
98
96
|
} else if (settings === 'EXTERNAL') {
|
|
99
97
|
return {
|
|
@@ -101,7 +99,8 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
|
|
|
101
99
|
...SCIMSyncTeamPermissions(isMember, isOrgAdmin, source),
|
|
102
100
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
103
101
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
104
|
-
ARCHIVE_TEAM:
|
|
102
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && isOrgAdmin,
|
|
103
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
105
104
|
};
|
|
106
105
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
107
106
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -110,7 +109,7 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
|
|
|
110
109
|
EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE',
|
|
111
110
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
112
111
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
113
|
-
ARCHIVE_TEAM:
|
|
112
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE',
|
|
114
113
|
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE',
|
|
115
114
|
EDIT_TEAM_TYPE: permission === 'FULL_WRITE',
|
|
116
115
|
// ORG_ADMIN_MANAGED teams should not provide options to edit membership settings
|
|
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
27
27
|
return super.failure({
|
|
28
28
|
metadata: {
|
|
29
29
|
error: createErrorMetadata(error),
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "4.30.0",
|
|
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: "
|
|
38
|
+
packageVersion: "4.30.0",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
4
3
|
import { aggClient } from './agg-client';
|
|
5
4
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -110,17 +109,11 @@ export class TeamsClient {
|
|
|
110
109
|
*/
|
|
111
110
|
async querySettings(cloudId, product) {
|
|
112
111
|
if (cloudId) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
} else {
|
|
120
|
-
this.setContext({
|
|
121
|
-
cloudId
|
|
122
|
-
});
|
|
123
|
-
}
|
|
112
|
+
const previousContext = this._legionClient.getContext();
|
|
113
|
+
this.setContext({
|
|
114
|
+
...previousContext,
|
|
115
|
+
cloudId
|
|
116
|
+
});
|
|
124
117
|
}
|
|
125
118
|
return this.measurePerformance('querySettings', async () => {
|
|
126
119
|
if (!product) {
|
|
@@ -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"}@${"
|
|
31
|
+
release: `${"@atlaskit/teams-client"}@${"4.30.0"}` ||
|
|
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) || '---',
|
|
@@ -63,14 +63,13 @@ export var SCIMSyncTeamPermissions = function SCIMSyncTeamPermissions(isMember,
|
|
|
63
63
|
*/
|
|
64
64
|
var getDisbandedTeamPermissionMap = function getDisbandedTeamPermissionMap(settings, permission, isMember, isOrgAdmin) {
|
|
65
65
|
var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
66
|
-
var isArchiveTeamEnabled = fg('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
67
66
|
|
|
68
67
|
// Base permission map - all actions disabled for disbanded teams
|
|
69
68
|
var basePermissions = allPermissions(false, false, false);
|
|
70
69
|
|
|
71
70
|
// UNARCHIVE_TEAM permission based on team settings
|
|
72
71
|
var canUnarchive = false;
|
|
73
|
-
if (
|
|
72
|
+
if (newTeamProfileEnabled) {
|
|
74
73
|
if (settings === 'EXTERNAL' || settings === 'ORG_ADMIN_MANAGED') {
|
|
75
74
|
// For EXTERNAL and ORG_ADMIN_MANAGED teams, only org admins can unarchive
|
|
76
75
|
canUnarchive = isOrgAdmin;
|
|
@@ -91,21 +90,21 @@ var getDisbandedTeamPermissionMap = function getDisbandedTeamPermissionMap(setti
|
|
|
91
90
|
*/
|
|
92
91
|
var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, permission, isMember, isOrgAdmin, source) {
|
|
93
92
|
var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
94
|
-
var isArchiveTeamEnabled = fg('legion-enable-archive-teams') && newTeamProfileEnabled;
|
|
95
93
|
if (settings === 'OPEN') {
|
|
96
94
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin)), openPermissions(permission)), {}, {
|
|
97
|
-
ARCHIVE_TEAM:
|
|
95
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
98
96
|
});
|
|
99
97
|
}
|
|
100
98
|
if (settings === 'MEMBER_INVITE') {
|
|
101
99
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin)), inviteOnlyPermissions(permission)), {}, {
|
|
102
|
-
ARCHIVE_TEAM:
|
|
100
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE' && (isMember || isOrgAdmin)
|
|
103
101
|
});
|
|
104
102
|
} else if (settings === 'EXTERNAL') {
|
|
105
103
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
106
104
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
107
105
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
108
|
-
ARCHIVE_TEAM:
|
|
106
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && isOrgAdmin,
|
|
107
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
109
108
|
});
|
|
110
109
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
111
110
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -113,7 +112,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
113
112
|
EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE',
|
|
114
113
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
115
114
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || permission === 'FULL_WRITE'),
|
|
116
|
-
ARCHIVE_TEAM:
|
|
115
|
+
ARCHIVE_TEAM: newTeamProfileEnabled && permission === 'FULL_WRITE',
|
|
117
116
|
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE',
|
|
118
117
|
EDIT_TEAM_TYPE: permission === 'FULL_WRITE',
|
|
119
118
|
// ORG_ADMIN_MANAGED teams should not provide options to edit membership settings
|
|
@@ -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: "
|
|
48
|
+
packageVersion: "4.30.0",
|
|
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: "
|
|
56
|
+
packageVersion: "4.30.0",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -5,7 +5,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
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; }
|
|
6
6
|
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) { _defineProperty(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; }
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
10
9
|
import { aggClient } from './agg-client';
|
|
11
10
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -156,16 +155,10 @@ export var TeamsClient = /*#__PURE__*/function () {
|
|
|
156
155
|
while (1) switch (_context3.prev = _context3.next) {
|
|
157
156
|
case 0:
|
|
158
157
|
if (cloudId) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}));
|
|
164
|
-
} else {
|
|
165
|
-
this.setContext({
|
|
166
|
-
cloudId: cloudId
|
|
167
|
-
});
|
|
168
|
-
}
|
|
158
|
+
previousContext = this._legionClient.getContext();
|
|
159
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
160
|
+
cloudId: cloudId
|
|
161
|
+
}));
|
|
169
162
|
}
|
|
170
163
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
171
164
|
var response;
|
|
@@ -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("
|
|
32
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.30.0") ||
|
|
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,11 +1,13 @@
|
|
|
1
1
|
export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
|
|
2
2
|
export type { TeamsClientUser as User, EditableUserFields } from './user';
|
|
3
3
|
export { isEditableUserField } from './user';
|
|
4
|
+
export type { UnlinkContainerMutationError } from '../services/agg-client/utils/mutations/unlink-container-mutation';
|
|
4
5
|
export type { InvitedUser, TeamMembership, TeamAgentMembership, TeamWithMemberships, MembershipState, MembershipRole, } from './membership';
|
|
5
6
|
export type { LinkOrder, NewTeamLink, TeamLink } from './links';
|
|
6
7
|
export type { TeamsClientConfig } from './config';
|
|
7
8
|
export { isResultWithPageInfo } from '../services/agg-client/types';
|
|
8
9
|
export type { AGGPageInfo, ResultWithPageInfo, AGGPageInfoVariables, } from '../services/agg-client/types';
|
|
10
|
+
export type { TeamContainers } from '../services/agg-client';
|
|
9
11
|
export type { ReadMediaTokenResponse } from './media';
|
|
10
12
|
export type { TeamInSlack } from './slack';
|
|
11
13
|
export type { UserTenure } from './tenure';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
|
|
2
2
|
export type { TeamsClientUser as User, EditableUserFields } from './user';
|
|
3
3
|
export { isEditableUserField } from './user';
|
|
4
|
+
export type { UnlinkContainerMutationError } from '../services/agg-client/utils/mutations/unlink-container-mutation';
|
|
4
5
|
export type { InvitedUser, TeamMembership, TeamAgentMembership, TeamWithMemberships, MembershipState, MembershipRole, } from './membership';
|
|
5
6
|
export type { LinkOrder, NewTeamLink, TeamLink } from './links';
|
|
6
7
|
export type { TeamsClientConfig } from './config';
|
|
7
8
|
export { isResultWithPageInfo } from '../services/agg-client/types';
|
|
8
9
|
export type { AGGPageInfo, ResultWithPageInfo, AGGPageInfoVariables, } from '../services/agg-client/types';
|
|
10
|
+
export type { TeamContainers } from '../services/agg-client';
|
|
9
11
|
export type { ReadMediaTokenResponse } from './media';
|
|
10
12
|
export type { TeamInSlack } from './slack';
|
|
11
13
|
export type { UserTenure } from './tenure';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.30.1",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -94,12 +94,6 @@
|
|
|
94
94
|
"platform-feature-flags": {
|
|
95
95
|
"enable_edit_team_name_external_type_teams": {
|
|
96
96
|
"type": "boolean"
|
|
97
|
-
},
|
|
98
|
-
"fix_query_settings_context": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
|
-
"legion-enable-archive-teams": {
|
|
102
|
-
"type": "boolean"
|
|
103
97
|
}
|
|
104
98
|
}
|
|
105
99
|
}
|