@atlaskit/teams-public 0.43.0 → 0.45.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 +20 -0
- package/dist/cjs/controllers/hooks/use-team-containers/index.js +134 -72
- package/dist/cjs/i18n/cs.js +35 -0
- package/dist/cjs/i18n/da.js +35 -0
- package/dist/cjs/i18n/de.js +34 -0
- package/dist/cjs/i18n/en.js +39 -0
- package/dist/cjs/i18n/en_GB.js +39 -0
- package/dist/cjs/i18n/en_ZZ.js +39 -0
- package/dist/cjs/i18n/es.js +34 -0
- package/dist/cjs/i18n/fi.js +35 -0
- package/dist/cjs/i18n/fr.js +34 -0
- package/dist/cjs/i18n/hr.js +31 -0
- package/dist/cjs/i18n/hu.js +35 -0
- package/dist/cjs/i18n/it.js +35 -0
- package/dist/cjs/i18n/ja.js +35 -0
- package/dist/cjs/i18n/ko.js +34 -0
- package/dist/cjs/i18n/nb.js +35 -0
- package/dist/cjs/i18n/nl.js +35 -0
- package/dist/cjs/i18n/pl.js +34 -0
- package/dist/cjs/i18n/pt_BR.js +34 -0
- package/dist/cjs/i18n/ru.js +35 -0
- package/dist/cjs/i18n/sl.js +35 -0
- package/dist/cjs/i18n/sr_RS.js +31 -0
- package/dist/cjs/i18n/sr_YR.js +31 -0
- package/dist/cjs/i18n/sv.js +35 -0
- package/dist/cjs/i18n/th.js +35 -0
- package/dist/cjs/i18n/tr.js +22 -0
- package/dist/cjs/i18n/uk.js +35 -0
- package/dist/cjs/i18n/vi.js +35 -0
- package/dist/cjs/i18n/zh.js +34 -0
- package/dist/cjs/i18n/zh_TW.js +34 -0
- package/dist/cjs/ui/team-containers/main.js +2 -0
- package/dist/es2019/controllers/hooks/use-team-containers/index.js +38 -1
- package/dist/es2019/i18n/cs.js +29 -0
- package/dist/es2019/i18n/da.js +29 -0
- package/dist/es2019/i18n/de.js +28 -0
- package/dist/es2019/i18n/en.js +33 -0
- package/dist/es2019/i18n/en_GB.js +33 -0
- package/dist/es2019/i18n/en_ZZ.js +33 -0
- package/dist/es2019/i18n/es.js +28 -0
- package/dist/es2019/i18n/fi.js +29 -0
- package/dist/es2019/i18n/fr.js +28 -0
- package/dist/es2019/i18n/hr.js +25 -0
- package/dist/es2019/i18n/hu.js +29 -0
- package/dist/es2019/i18n/it.js +29 -0
- package/dist/es2019/i18n/ja.js +29 -0
- package/dist/es2019/i18n/ko.js +28 -0
- package/dist/es2019/i18n/nb.js +29 -0
- package/dist/es2019/i18n/nl.js +29 -0
- package/dist/es2019/i18n/pl.js +28 -0
- package/dist/es2019/i18n/pt_BR.js +28 -0
- package/dist/es2019/i18n/ru.js +29 -0
- package/dist/es2019/i18n/sl.js +29 -0
- package/dist/es2019/i18n/sr_RS.js +25 -0
- package/dist/es2019/i18n/sr_YR.js +25 -0
- package/dist/es2019/i18n/sv.js +29 -0
- package/dist/es2019/i18n/th.js +29 -0
- package/dist/es2019/i18n/tr.js +16 -0
- package/dist/es2019/i18n/uk.js +29 -0
- package/dist/es2019/i18n/vi.js +29 -0
- package/dist/es2019/i18n/zh.js +28 -0
- package/dist/es2019/i18n/zh_TW.js +28 -0
- package/dist/es2019/ui/team-containers/main.js +1 -0
- package/dist/esm/controllers/hooks/use-team-containers/index.js +134 -72
- package/dist/esm/i18n/cs.js +29 -0
- package/dist/esm/i18n/da.js +29 -0
- package/dist/esm/i18n/de.js +28 -0
- package/dist/esm/i18n/en.js +33 -0
- package/dist/esm/i18n/en_GB.js +33 -0
- package/dist/esm/i18n/en_ZZ.js +33 -0
- package/dist/esm/i18n/es.js +28 -0
- package/dist/esm/i18n/fi.js +29 -0
- package/dist/esm/i18n/fr.js +28 -0
- package/dist/esm/i18n/hr.js +25 -0
- package/dist/esm/i18n/hu.js +29 -0
- package/dist/esm/i18n/it.js +29 -0
- package/dist/esm/i18n/ja.js +29 -0
- package/dist/esm/i18n/ko.js +28 -0
- package/dist/esm/i18n/nb.js +29 -0
- package/dist/esm/i18n/nl.js +29 -0
- package/dist/esm/i18n/pl.js +28 -0
- package/dist/esm/i18n/pt_BR.js +28 -0
- package/dist/esm/i18n/ru.js +29 -0
- package/dist/esm/i18n/sl.js +29 -0
- package/dist/esm/i18n/sr_RS.js +25 -0
- package/dist/esm/i18n/sr_YR.js +25 -0
- package/dist/esm/i18n/sv.js +29 -0
- package/dist/esm/i18n/th.js +29 -0
- package/dist/esm/i18n/tr.js +16 -0
- package/dist/esm/i18n/uk.js +29 -0
- package/dist/esm/i18n/vi.js +29 -0
- package/dist/esm/i18n/zh.js +28 -0
- package/dist/esm/i18n/zh_TW.js +28 -0
- package/dist/esm/ui/team-containers/main.js +1 -0
- package/dist/types/controllers/hooks/use-team-containers/index.d.ts +2 -0
- package/dist/types/i18n/cs.d.ts +28 -0
- package/dist/types/i18n/da.d.ts +28 -0
- package/dist/types/i18n/de.d.ts +27 -0
- package/dist/types/i18n/en.d.ts +32 -0
- package/dist/types/i18n/en_GB.d.ts +32 -0
- package/dist/types/i18n/en_ZZ.d.ts +32 -0
- package/dist/types/i18n/es.d.ts +27 -0
- package/dist/types/i18n/fi.d.ts +28 -0
- package/dist/types/i18n/fr.d.ts +27 -0
- package/dist/types/i18n/hr.d.ts +24 -0
- package/dist/types/i18n/hu.d.ts +28 -0
- package/dist/types/i18n/it.d.ts +28 -0
- package/dist/types/i18n/ja.d.ts +28 -0
- package/dist/types/i18n/ko.d.ts +27 -0
- package/dist/types/i18n/nb.d.ts +28 -0
- package/dist/types/i18n/nl.d.ts +28 -0
- package/dist/types/i18n/pl.d.ts +27 -0
- package/dist/types/i18n/pt_BR.d.ts +27 -0
- package/dist/types/i18n/ru.d.ts +28 -0
- package/dist/types/i18n/sl.d.ts +28 -0
- package/dist/types/i18n/sr_RS.d.ts +24 -0
- package/dist/types/i18n/sr_YR.d.ts +24 -0
- package/dist/types/i18n/sv.d.ts +28 -0
- package/dist/types/i18n/th.d.ts +28 -0
- package/dist/types/i18n/tr.d.ts +15 -0
- package/dist/types/i18n/uk.d.ts +28 -0
- package/dist/types/i18n/vi.d.ts +28 -0
- package/dist/types/i18n/zh.d.ts +27 -0
- package/dist/types/i18n/zh_TW.d.ts +27 -0
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/index.d.ts +2 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +28 -0
- package/dist/types-ts4.5/i18n/da.d.ts +28 -0
- package/dist/types-ts4.5/i18n/de.d.ts +27 -0
- package/dist/types-ts4.5/i18n/en.d.ts +32 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +32 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +32 -0
- package/dist/types-ts4.5/i18n/es.d.ts +27 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +28 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +27 -0
- package/dist/types-ts4.5/i18n/hr.d.ts +24 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +28 -0
- package/dist/types-ts4.5/i18n/it.d.ts +28 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +28 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +27 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +28 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +28 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +27 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +27 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +28 -0
- package/dist/types-ts4.5/i18n/sl.d.ts +28 -0
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +24 -0
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +24 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +28 -0
- package/dist/types-ts4.5/i18n/th.d.ts +28 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +15 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +28 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +28 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +27 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +27 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#186624](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/186624)
|
|
8
|
+
[`dd17d7a4e9bf5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd17d7a4e9bf5) -
|
|
9
|
+
Fetch agents associated with the team from UGS
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 0.44.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#186199](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/186199)
|
|
20
|
+
[`635062ffae3bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/635062ffae3bf) -
|
|
21
|
+
Add refetchTeamContainers action to the teamContainersStore
|
|
22
|
+
|
|
3
23
|
## 0.43.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useTeamContainersHook = exports.useTeamContainers = exports.useConnectedTeams = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
13
|
var _react = require("react");
|
|
14
14
|
var _reactSweetState = require("react-sweet-state");
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
@@ -34,6 +34,12 @@ var initialState = {
|
|
|
34
34
|
teamId: null,
|
|
35
35
|
connectedTeams: initialConnectedTeamsState
|
|
36
36
|
};
|
|
37
|
+
function containersEqual(arr1, arr2) {
|
|
38
|
+
var sortById = function sortById(a, b) {
|
|
39
|
+
return a.id.localeCompare(b.id);
|
|
40
|
+
};
|
|
41
|
+
return JSON.stringify((0, _toConsumableArray2.default)(arr1).sort(sortById)) === JSON.stringify((0, _toConsumableArray2.default)(arr2).sort(sortById));
|
|
42
|
+
}
|
|
37
43
|
var actions = {
|
|
38
44
|
fetchTeamContainers: function fetchTeamContainers(teamId, fireAnalytics) {
|
|
39
45
|
return /*#__PURE__*/function () {
|
|
@@ -92,20 +98,73 @@ var actions = {
|
|
|
92
98
|
};
|
|
93
99
|
}();
|
|
94
100
|
},
|
|
95
|
-
|
|
101
|
+
refetchTeamContainers: function refetchTeamContainers(fireAnalytics) {
|
|
96
102
|
return /*#__PURE__*/function () {
|
|
97
103
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref3) {
|
|
98
|
-
var setState, getState, _getState2,
|
|
104
|
+
var setState, getState, _getState2, teamId, containers;
|
|
99
105
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
100
106
|
while (1) switch (_context2.prev = _context2.next) {
|
|
101
107
|
case 0:
|
|
102
108
|
setState = _ref3.setState, getState = _ref3.getState;
|
|
103
|
-
_getState2 = getState(),
|
|
104
|
-
if (
|
|
109
|
+
_getState2 = getState(), teamId = _getState2.teamId;
|
|
110
|
+
if (teamId) {
|
|
105
111
|
_context2.next = 4;
|
|
106
112
|
break;
|
|
107
113
|
}
|
|
108
114
|
return _context2.abrupt("return");
|
|
115
|
+
case 4:
|
|
116
|
+
_context2.prev = 4;
|
|
117
|
+
_context2.next = 7;
|
|
118
|
+
return _services.teamsClient.getTeamContainers(teamId);
|
|
119
|
+
case 7:
|
|
120
|
+
containers = _context2.sent;
|
|
121
|
+
fireAnalytics(_analytics.AnalyticsAction.SUCCEEDED, 'refetchTeamContainers');
|
|
122
|
+
// optimisation to avoid unnecessary state updates
|
|
123
|
+
if (!containersEqual(containers, getState().teamContainers)) {
|
|
124
|
+
setState({
|
|
125
|
+
teamContainers: containers,
|
|
126
|
+
loading: false,
|
|
127
|
+
error: null,
|
|
128
|
+
hasLoaded: true
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
_context2.next = 16;
|
|
132
|
+
break;
|
|
133
|
+
case 12:
|
|
134
|
+
_context2.prev = 12;
|
|
135
|
+
_context2.t0 = _context2["catch"](4);
|
|
136
|
+
fireAnalytics(_analytics.AnalyticsAction.FAILED, 'refetchTeamContainers', _context2.t0);
|
|
137
|
+
setState({
|
|
138
|
+
teamContainers: getState().teamContainers,
|
|
139
|
+
error: _context2.t0,
|
|
140
|
+
loading: false,
|
|
141
|
+
hasLoaded: true
|
|
142
|
+
});
|
|
143
|
+
case 16:
|
|
144
|
+
case "end":
|
|
145
|
+
return _context2.stop();
|
|
146
|
+
}
|
|
147
|
+
}, _callee2, null, [[4, 12]]);
|
|
148
|
+
}));
|
|
149
|
+
return function (_x2) {
|
|
150
|
+
return _ref4.apply(this, arguments);
|
|
151
|
+
};
|
|
152
|
+
}();
|
|
153
|
+
},
|
|
154
|
+
fetchNumberOfConnectedTeams: function fetchNumberOfConnectedTeams(containerId, fireAnalytics) {
|
|
155
|
+
return /*#__PURE__*/function () {
|
|
156
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref5) {
|
|
157
|
+
var setState, getState, _getState3, currentContainerId, numberOfTeams;
|
|
158
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
159
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
160
|
+
case 0:
|
|
161
|
+
setState = _ref5.setState, getState = _ref5.getState;
|
|
162
|
+
_getState3 = getState(), currentContainerId = _getState3.connectedTeams.containerId;
|
|
163
|
+
if (!(currentContainerId === containerId)) {
|
|
164
|
+
_context3.next = 4;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
return _context3.abrupt("return");
|
|
109
168
|
case 4:
|
|
110
169
|
setState({
|
|
111
170
|
connectedTeams: _objectSpread(_objectSpread({}, initialConnectedTeamsState), {}, {
|
|
@@ -113,11 +172,11 @@ var actions = {
|
|
|
113
172
|
numberOfTeams: undefined
|
|
114
173
|
})
|
|
115
174
|
});
|
|
116
|
-
|
|
117
|
-
|
|
175
|
+
_context3.prev = 5;
|
|
176
|
+
_context3.next = 8;
|
|
118
177
|
return _services.teamsClient.getNumberOfConnectedTeams(containerId);
|
|
119
178
|
case 8:
|
|
120
|
-
numberOfTeams =
|
|
179
|
+
numberOfTeams = _context3.sent;
|
|
121
180
|
fireAnalytics({
|
|
122
181
|
action: _analytics.AnalyticsAction.SUCCEEDED,
|
|
123
182
|
actionSubject: 'fetchNumberOfConnectedTeams',
|
|
@@ -130,49 +189,49 @@ var actions = {
|
|
|
130
189
|
numberOfTeams: numberOfTeams
|
|
131
190
|
})
|
|
132
191
|
});
|
|
133
|
-
|
|
192
|
+
_context3.next = 17;
|
|
134
193
|
break;
|
|
135
194
|
case 13:
|
|
136
|
-
|
|
137
|
-
|
|
195
|
+
_context3.prev = 13;
|
|
196
|
+
_context3.t0 = _context3["catch"](5);
|
|
138
197
|
fireAnalytics({
|
|
139
198
|
action: _analytics.AnalyticsAction.FAILED,
|
|
140
199
|
actionSubject: 'fetchNumberOfConnectedTeams',
|
|
141
200
|
containerId: containerId,
|
|
142
201
|
numberOfTeams: initialConnectedTeamsState.numberOfTeams,
|
|
143
|
-
error:
|
|
202
|
+
error: _context3.t0
|
|
144
203
|
});
|
|
145
204
|
setState({
|
|
146
205
|
connectedTeams: _objectSpread(_objectSpread({}, initialConnectedTeamsState), {}, {
|
|
147
206
|
containerId: containerId,
|
|
148
|
-
error:
|
|
207
|
+
error: _context3.t0
|
|
149
208
|
})
|
|
150
209
|
});
|
|
151
210
|
case 17:
|
|
152
211
|
case "end":
|
|
153
|
-
return
|
|
212
|
+
return _context3.stop();
|
|
154
213
|
}
|
|
155
|
-
},
|
|
214
|
+
}, _callee3, null, [[5, 13]]);
|
|
156
215
|
}));
|
|
157
|
-
return function (
|
|
158
|
-
return
|
|
216
|
+
return function (_x3) {
|
|
217
|
+
return _ref6.apply(this, arguments);
|
|
159
218
|
};
|
|
160
219
|
}();
|
|
161
220
|
},
|
|
162
221
|
fetchConnectedTeams: function fetchConnectedTeams(containerId, fireAnalytics) {
|
|
163
222
|
return /*#__PURE__*/function () {
|
|
164
|
-
var
|
|
165
|
-
var setState, getState,
|
|
166
|
-
return _regenerator.default.wrap(function
|
|
167
|
-
while (1) switch (
|
|
223
|
+
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(_ref7) {
|
|
224
|
+
var setState, getState, _getState4, _getState4$connectedT, currentContainerId, numberOfTeams, hasLoaded, teams;
|
|
225
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
226
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
168
227
|
case 0:
|
|
169
|
-
setState =
|
|
170
|
-
|
|
228
|
+
setState = _ref7.setState, getState = _ref7.getState;
|
|
229
|
+
_getState4 = getState(), _getState4$connectedT = _getState4.connectedTeams, currentContainerId = _getState4$connectedT.containerId, numberOfTeams = _getState4$connectedT.numberOfTeams, hasLoaded = _getState4$connectedT.hasLoaded;
|
|
171
230
|
if (!(currentContainerId === containerId && hasLoaded)) {
|
|
172
|
-
|
|
231
|
+
_context4.next = 4;
|
|
173
232
|
break;
|
|
174
233
|
}
|
|
175
|
-
return
|
|
234
|
+
return _context4.abrupt("return");
|
|
176
235
|
case 4:
|
|
177
236
|
setState({
|
|
178
237
|
connectedTeams: {
|
|
@@ -184,11 +243,11 @@ var actions = {
|
|
|
184
243
|
numberOfTeams: numberOfTeams
|
|
185
244
|
}
|
|
186
245
|
});
|
|
187
|
-
|
|
188
|
-
|
|
246
|
+
_context4.prev = 5;
|
|
247
|
+
_context4.next = 8;
|
|
189
248
|
return _services.teamsClient.getConnectedTeams(containerId);
|
|
190
249
|
case 8:
|
|
191
|
-
teams =
|
|
250
|
+
teams = _context4.sent;
|
|
192
251
|
fireAnalytics({
|
|
193
252
|
action: _analytics.AnalyticsAction.SUCCEEDED,
|
|
194
253
|
actionSubject: 'fetchConnectedTeams',
|
|
@@ -205,17 +264,17 @@ var actions = {
|
|
|
205
264
|
numberOfTeams: numberOfTeams
|
|
206
265
|
}
|
|
207
266
|
});
|
|
208
|
-
|
|
267
|
+
_context4.next = 17;
|
|
209
268
|
break;
|
|
210
269
|
case 13:
|
|
211
|
-
|
|
212
|
-
|
|
270
|
+
_context4.prev = 13;
|
|
271
|
+
_context4.t0 = _context4["catch"](5);
|
|
213
272
|
fireAnalytics({
|
|
214
273
|
action: _analytics.AnalyticsAction.FAILED,
|
|
215
274
|
actionSubject: 'fetchConnectedTeams',
|
|
216
275
|
containerId: containerId,
|
|
217
276
|
numberOfTeams: numberOfTeams,
|
|
218
|
-
error:
|
|
277
|
+
error: _context4.t0
|
|
219
278
|
});
|
|
220
279
|
setState({
|
|
221
280
|
connectedTeams: {
|
|
@@ -223,44 +282,44 @@ var actions = {
|
|
|
223
282
|
isLoading: false,
|
|
224
283
|
hasLoaded: false,
|
|
225
284
|
teams: [],
|
|
226
|
-
error:
|
|
285
|
+
error: _context4.t0,
|
|
227
286
|
numberOfTeams: numberOfTeams
|
|
228
287
|
}
|
|
229
288
|
});
|
|
230
289
|
case 17:
|
|
231
290
|
case "end":
|
|
232
|
-
return
|
|
291
|
+
return _context4.stop();
|
|
233
292
|
}
|
|
234
|
-
},
|
|
293
|
+
}, _callee4, null, [[5, 13]]);
|
|
235
294
|
}));
|
|
236
|
-
return function (
|
|
237
|
-
return
|
|
295
|
+
return function (_x4) {
|
|
296
|
+
return _ref8.apply(this, arguments);
|
|
238
297
|
};
|
|
239
298
|
}();
|
|
240
299
|
},
|
|
241
300
|
unlinkTeamContainers: function unlinkTeamContainers(teamId, containerId) {
|
|
242
301
|
return /*#__PURE__*/function () {
|
|
243
|
-
var
|
|
244
|
-
var setState, getState, mutationResult,
|
|
245
|
-
return _regenerator.default.wrap(function
|
|
246
|
-
while (1) switch (
|
|
302
|
+
var _ref0 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(_ref9) {
|
|
303
|
+
var setState, getState, mutationResult, _getState5, teamContainers, connectedTeams, newContainers;
|
|
304
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
305
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
247
306
|
case 0:
|
|
248
|
-
setState =
|
|
307
|
+
setState = _ref9.setState, getState = _ref9.getState;
|
|
249
308
|
setState({
|
|
250
309
|
unlinkError: null
|
|
251
310
|
});
|
|
252
|
-
|
|
253
|
-
|
|
311
|
+
_context5.prev = 2;
|
|
312
|
+
_context5.next = 5;
|
|
254
313
|
return _services.teamsClient.unlinkTeamContainer(teamId, containerId);
|
|
255
314
|
case 5:
|
|
256
|
-
mutationResult =
|
|
315
|
+
mutationResult = _context5.sent;
|
|
257
316
|
if (mutationResult.deleteTeamConnectedToContainer.errors.length) {
|
|
258
317
|
// Just handle 1 error at a time should be suffcient as we disconenct only 1 container at a time
|
|
259
318
|
setState({
|
|
260
319
|
unlinkError: mutationResult.deleteTeamConnectedToContainer.errors[0]
|
|
261
320
|
});
|
|
262
321
|
} else {
|
|
263
|
-
|
|
322
|
+
_getState5 = getState(), teamContainers = _getState5.teamContainers, connectedTeams = _getState5.connectedTeams;
|
|
264
323
|
newContainers = teamContainers.filter(function (container) {
|
|
265
324
|
return container.id !== containerId;
|
|
266
325
|
});
|
|
@@ -275,42 +334,42 @@ var actions = {
|
|
|
275
334
|
});
|
|
276
335
|
}
|
|
277
336
|
}
|
|
278
|
-
|
|
337
|
+
_context5.next = 12;
|
|
279
338
|
break;
|
|
280
339
|
case 9:
|
|
281
|
-
|
|
282
|
-
|
|
340
|
+
_context5.prev = 9;
|
|
341
|
+
_context5.t0 = _context5["catch"](2);
|
|
283
342
|
setState({
|
|
284
|
-
unlinkError:
|
|
343
|
+
unlinkError: _context5.t0
|
|
285
344
|
});
|
|
286
345
|
case 12:
|
|
287
346
|
case "end":
|
|
288
|
-
return
|
|
347
|
+
return _context5.stop();
|
|
289
348
|
}
|
|
290
|
-
},
|
|
349
|
+
}, _callee5, null, [[2, 9]]);
|
|
291
350
|
}));
|
|
292
|
-
return function (
|
|
293
|
-
return
|
|
351
|
+
return function (_x5) {
|
|
352
|
+
return _ref0.apply(this, arguments);
|
|
294
353
|
};
|
|
295
354
|
}();
|
|
296
355
|
},
|
|
297
356
|
addTeamContainer: function addTeamContainer(teamContainer) {
|
|
298
357
|
return /*#__PURE__*/function () {
|
|
299
|
-
var
|
|
300
|
-
var setState, getState,
|
|
301
|
-
return _regenerator.default.wrap(function
|
|
302
|
-
while (1) switch (
|
|
358
|
+
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(_ref1) {
|
|
359
|
+
var setState, getState, _getState6, teamContainers, connectedTeams, containerExists;
|
|
360
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
361
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
303
362
|
case 0:
|
|
304
|
-
setState =
|
|
305
|
-
|
|
363
|
+
setState = _ref1.setState, getState = _ref1.getState;
|
|
364
|
+
_getState6 = getState(), teamContainers = _getState6.teamContainers, connectedTeams = _getState6.connectedTeams;
|
|
306
365
|
containerExists = teamContainers.some(function (container) {
|
|
307
366
|
return container.id === teamContainer.id;
|
|
308
367
|
});
|
|
309
368
|
if (!containerExists) {
|
|
310
|
-
|
|
369
|
+
_context6.next = 5;
|
|
311
370
|
break;
|
|
312
371
|
}
|
|
313
|
-
return
|
|
372
|
+
return _context6.abrupt("return");
|
|
314
373
|
case 5:
|
|
315
374
|
if (connectedTeams.containerId === teamContainer.id) {
|
|
316
375
|
setState({
|
|
@@ -324,12 +383,12 @@ var actions = {
|
|
|
324
383
|
}
|
|
325
384
|
case 6:
|
|
326
385
|
case "end":
|
|
327
|
-
return
|
|
386
|
+
return _context6.stop();
|
|
328
387
|
}
|
|
329
|
-
},
|
|
388
|
+
}, _callee6);
|
|
330
389
|
}));
|
|
331
|
-
return function (
|
|
332
|
-
return
|
|
390
|
+
return function (_x6) {
|
|
391
|
+
return _ref10.apply(this, arguments);
|
|
333
392
|
};
|
|
334
393
|
}();
|
|
335
394
|
}
|
|
@@ -373,6 +432,9 @@ var useTeamContainers = exports.useTeamContainers = function useTeamContainers(t
|
|
|
373
432
|
addTeamContainer: actions.addTeamContainer,
|
|
374
433
|
unlinkTeamContainers: function unlinkTeamContainers(containerId) {
|
|
375
434
|
return actions.unlinkTeamContainers(teamId, containerId);
|
|
435
|
+
},
|
|
436
|
+
refetchTeamContainers: function refetchTeamContainers() {
|
|
437
|
+
return actions.refetchTeamContainers(fireOperationalAnalytics);
|
|
376
438
|
}
|
|
377
439
|
});
|
|
378
440
|
};
|
|
@@ -385,12 +447,12 @@ var useConnectedTeams = exports.useConnectedTeams = function useConnectedTeams()
|
|
|
385
447
|
fireOperationalEvent = _usePeopleAndTeamAnal2.fireOperationalEvent;
|
|
386
448
|
var _useAnalyticsEvents2 = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
387
449
|
createAnalyticsEvent = _useAnalyticsEvents2.createAnalyticsEvent;
|
|
388
|
-
var fireOperationalAnalytics = (0, _react.useCallback)(function (
|
|
389
|
-
var action =
|
|
390
|
-
actionSubject =
|
|
391
|
-
containerId =
|
|
392
|
-
numberOfTeams =
|
|
393
|
-
error =
|
|
450
|
+
var fireOperationalAnalytics = (0, _react.useCallback)(function (_ref11) {
|
|
451
|
+
var action = _ref11.action,
|
|
452
|
+
actionSubject = _ref11.actionSubject,
|
|
453
|
+
containerId = _ref11.containerId,
|
|
454
|
+
numberOfTeams = _ref11.numberOfTeams,
|
|
455
|
+
error = _ref11.error;
|
|
394
456
|
fireOperationalEvent(createAnalyticsEvent, {
|
|
395
457
|
action: action,
|
|
396
458
|
actionSubject: actionSubject,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//Czech
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'platform.teams.containers.empty-web-link-description': 'Přidejte libovolný webový odkaz',
|
|
17
|
+
'platform.teams.containers.web-link-title-description': 'Internetový odkaz',
|
|
18
|
+
'ptc-directory.team-containers.disconnect-button.tooltip': 'Odpojit',
|
|
19
|
+
'ptc-directory.team-containers.edit-link': 'Upravit odkaz',
|
|
20
|
+
'ptc-directory.team-containers.remove-link': 'Odebrat',
|
|
21
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-description': 'Confluence',
|
|
22
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-title': 'Přidat prostor',
|
|
23
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-description': 'Jira',
|
|
24
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-title': 'Přidat projekt',
|
|
25
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-description': 'Loom',
|
|
26
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-title': 'Přidat prostor',
|
|
27
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.cancel-button': 'Zrušit',
|
|
28
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback': 'Odpojení týmu od odkazu neovlivní žádné požadavky spojené s týmem.',
|
|
29
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.remove-button': 'Odebrat',
|
|
30
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.title': 'Odpojit místo',
|
|
31
|
+
'ptc-directory.team-profile-page.team-containers.show-less': 'Zobrazit méně',
|
|
32
|
+
'ptc-directory.team-profile-page.team-containers.show-more': 'Zobrazit více',
|
|
33
|
+
'ptc.team-profile-page.team-containers.empty-state.description': 'Váš tým zde může připojit své projekty Jira a prostory Confluence, aby ukázal, kde pracuje.',
|
|
34
|
+
'ptc.team-profile-page.team-containers.empty-state.title': 'Přidejte místa, kde váš tým pracuje'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//Danish (Denmark)
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'platform.teams.containers.empty-web-link-description': 'Tilføj ethvert weblink',
|
|
17
|
+
'platform.teams.containers.web-link-title-description': 'Weblink',
|
|
18
|
+
'ptc-directory.team-containers.disconnect-button.tooltip': 'Fjern tilknytning',
|
|
19
|
+
'ptc-directory.team-containers.edit-link': 'Rediger link',
|
|
20
|
+
'ptc-directory.team-containers.remove-link': 'Fjern',
|
|
21
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-description': 'Confluence',
|
|
22
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-title': 'Tilføj område',
|
|
23
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-description': 'Jira',
|
|
24
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-title': 'Tilføj projekt',
|
|
25
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-description': 'Loom',
|
|
26
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-title': 'Tilføj område',
|
|
27
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.cancel-button': 'Annuller',
|
|
28
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback': 'Hvis du fjerner teamet fra linket, påvirker det ikke sager, der er tilknyttet teamet.',
|
|
29
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.remove-button': 'Fjern',
|
|
30
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.title': 'Fjern tilknytning til sted',
|
|
31
|
+
'ptc-directory.team-profile-page.team-containers.show-less': 'Vis færre',
|
|
32
|
+
'ptc-directory.team-profile-page.team-containers.show-more': 'Vis flere',
|
|
33
|
+
'ptc.team-profile-page.team-containers.empty-state.description': 'Dit team kan linke til deres Jira-projekter og Confluence-områder her for at vise, hvor de arbejder',
|
|
34
|
+
'ptc.team-profile-page.team-containers.empty-state.title': 'Tilføj steder, hvor dit team arbejder'
|
|
35
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//German (Germany)
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'platform.teams.containers.empty-web-link-description': 'Beliebigen Weblink hinzufügen',
|
|
17
|
+
'platform.teams.containers.web-link-title-description': 'Weblink',
|
|
18
|
+
'ptc-directory.team-containers.disconnect-button.tooltip': 'Trennen',
|
|
19
|
+
'ptc-directory.team-containers.edit-link': 'Link bearbeiten',
|
|
20
|
+
'ptc-directory.team-containers.remove-link': 'Entfernen',
|
|
21
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-description': 'Confluence',
|
|
22
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-title': 'Bereich hinzufügen',
|
|
23
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-description': 'Jira',
|
|
24
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-title': 'Projekt hinzufügen',
|
|
25
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-description': 'Loom',
|
|
26
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-title': 'Bereich hinzufügen',
|
|
27
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.cancel-button': 'Abbrechen',
|
|
28
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.remove-button': 'Entfernen',
|
|
29
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.title': 'Verbindung trennen',
|
|
30
|
+
'ptc-directory.team-profile-page.team-containers.show-less': 'Weniger anzeigen',
|
|
31
|
+
'ptc-directory.team-profile-page.team-containers.show-more': 'Mehr anzeigen',
|
|
32
|
+
'ptc.team-profile-page.team-containers.empty-state.description': 'Ihr Team kann hier seine Jira-Projekte und Confluence-Bereiche verknüpfen, um zu zeigen, wo es arbeitet',
|
|
33
|
+
'ptc.team-profile-page.team-containers.empty-state.title': 'Orte hinzufügen, an denen Ihr Team arbeitet'
|
|
34
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'platform.teams.containers.empty-web-link-description': 'Add any web link',
|
|
17
|
+
'platform.teams.containers.web-link-title-description': 'Web link',
|
|
18
|
+
'ptc-directory.team-containers.disconnect-button.tooltip': 'Disconnect',
|
|
19
|
+
'ptc-directory.team-containers.edit-link': 'Edit link',
|
|
20
|
+
'ptc-directory.team-containers.remove-link': 'Remove',
|
|
21
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-description': 'Confluence',
|
|
22
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-title': 'Add space',
|
|
23
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-description': 'Jira',
|
|
24
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-title': 'Add project',
|
|
25
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-description': 'Loom',
|
|
26
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-title': 'Add space',
|
|
27
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.cancel-button': 'Cancel',
|
|
28
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.description': 'This team will no longer be connected to the {containerName} {containerType, select, JiraProject {Jira project} ConfluenceSpace {Confluence space} LoomSpace {Loom space} other {link} }.',
|
|
29
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer': 'Disconnecting the team from the {containerType, select, JiraProject {project} ConfluenceSpace {space} LoomSpace {space} other {link} } will not affect any work connected to the team within the {containerType, select, JiraProject {project} ConfluenceSpace {space} LoomSpace {space} other {link} }.',
|
|
30
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback': 'Disconnecting the team from the link will not affect any work connected to the team.',
|
|
31
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.remove-button': 'Remove',
|
|
32
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.title': 'Disconnect place',
|
|
33
|
+
'ptc-directory.team-profile-page.team-containers.project-container-text': 'project',
|
|
34
|
+
'ptc-directory.team-profile-page.team-containers.show-less': 'Show less',
|
|
35
|
+
'ptc-directory.team-profile-page.team-containers.show-more': 'Show more',
|
|
36
|
+
'ptc-directory.team-profile-page.team-containers.space-container-text': 'space',
|
|
37
|
+
'ptc.team-profile-page.team-containers.empty-state.description': 'Your team can link their Jira projects, Confluence spaces here to show where they work',
|
|
38
|
+
'ptc.team-profile-page.team-containers.empty-state.title': 'Add the places your team works'
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//English (United Kingdom)
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'platform.teams.containers.empty-web-link-description': 'Add any web link',
|
|
17
|
+
'platform.teams.containers.web-link-title-description': 'Web link',
|
|
18
|
+
'ptc-directory.team-containers.disconnect-button.tooltip': 'Disconnect',
|
|
19
|
+
'ptc-directory.team-containers.edit-link': 'Edit link',
|
|
20
|
+
'ptc-directory.team-containers.remove-link': 'Remove',
|
|
21
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-description': 'Confluence',
|
|
22
|
+
'ptc-directory.team-profile-page.team-containers.add-confluence-space-title': 'Add space',
|
|
23
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-description': 'Jira',
|
|
24
|
+
'ptc-directory.team-profile-page.team-containers.add-jira-project-title': 'Add project',
|
|
25
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-description': 'Loom',
|
|
26
|
+
'ptc-directory.team-profile-page.team-containers.add-loom-space-title': 'Add space',
|
|
27
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.cancel-button': 'Cancel',
|
|
28
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.description': 'This team will no longer be connected to the {containerName} {containerType, select, JiraProject {Jira project} ConfluenceSpace {Confluence space} LoomSpace {Loom space} other {link} }.',
|
|
29
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer': 'Disconnecting the team from the {containerType, select, JiraProject {project} ConfluenceSpace {space} LoomSpace {space} other {link} } will not affect any work connected to the team within the {containerType, select, JiraProject {project} ConfluenceSpace {space} LoomSpace {space} other {link} }.',
|
|
30
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback': 'Disconnecting the team from the link will not affect any work connected to the team.',
|
|
31
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.remove-button': 'Remove',
|
|
32
|
+
'ptc-directory.team-profile-page.team-containers.disconnect-dialog.title': 'Disconnect place',
|
|
33
|
+
'ptc-directory.team-profile-page.team-containers.project-container-text': 'project',
|
|
34
|
+
'ptc-directory.team-profile-page.team-containers.show-less': 'Show less',
|
|
35
|
+
'ptc-directory.team-profile-page.team-containers.show-more': 'Show more',
|
|
36
|
+
'ptc-directory.team-profile-page.team-containers.space-container-text': 'space',
|
|
37
|
+
'ptc.team-profile-page.team-containers.empty-state.description': 'Your team can link their Jira projects, Confluence spaces here to show where they work',
|
|
38
|
+
'ptc.team-profile-page.team-containers.empty-state.title': 'Add the places your team works'
|
|
39
|
+
};
|