@atlaskit/teams-public 2.9.1 → 2.9.2
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 +6 -0
- package/dist/cjs/controllers/hooks/use-team-containers/actions-2.js +6 -6
- package/dist/cjs/controllers/hooks/use-team-containers/actions.js +6 -6
- package/dist/cjs/controllers/hooks/use-team-web-links/actions.js +7 -7
- package/dist/cjs/controllers/hooks/use-team-web-links/multi-team.js +7 -7
- package/dist/es2019/controllers/hooks/use-team-containers/actions-2.js +1 -1
- package/dist/es2019/controllers/hooks/use-team-containers/actions.js +1 -1
- package/dist/es2019/controllers/hooks/use-team-web-links/actions.js +1 -1
- package/dist/es2019/controllers/hooks/use-team-web-links/multi-team.js +1 -1
- package/dist/esm/controllers/hooks/use-team-containers/actions-2.js +1 -1
- package/dist/esm/controllers/hooks/use-team-containers/actions.js +1 -1
- package/dist/esm/controllers/hooks/use-team-web-links/actions.js +1 -1
- package/dist/esm/controllers/hooks/use-team-web-links/multi-team.js +1 -1
- package/dist/types/controllers/hooks/use-team-containers/connected-teams.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-containers/state.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-containers/team-containers-state.d.ts +2 -1
- package/dist/types/controllers/hooks/use-team-containers/team-state.d.ts +2 -1
- package/dist/types/controllers/hooks/use-team-containers/use-connected-teams-2.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-containers/use-connected-teams.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-containers/use-team-containers-2.d.ts +2 -1
- package/dist/types/controllers/hooks/use-team-containers/use-team-containers.d.ts +3 -1
- package/dist/types/controllers/hooks/use-team-web-links/actions.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-web-links/multi-team.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-web-links/use-team-web-links-actions.d.ts +1 -1
- package/dist/types/controllers/hooks/use-team-web-links/use-team-web-links.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
-
var
|
|
12
|
+
var _client = require("@atlaskit/teams-client/client");
|
|
13
13
|
var _containersEqual = require("./containers-equal");
|
|
14
14
|
var _getErrorDetails = require("./get-error-details");
|
|
15
15
|
var _getInitialTeamState = require("./get-initial-team-state");
|
|
@@ -50,7 +50,7 @@ var actions = exports.actions = {
|
|
|
50
50
|
});
|
|
51
51
|
_context.prev = 3;
|
|
52
52
|
_context.next = 4;
|
|
53
|
-
return
|
|
53
|
+
return _client.teamsClient.getTeamContainers(teamId);
|
|
54
54
|
case 4:
|
|
55
55
|
containers = _context.sent;
|
|
56
56
|
fireAnalyticsNext('operational.fetchTeamContainers.succeeded', {
|
|
@@ -134,7 +134,7 @@ var actions = exports.actions = {
|
|
|
134
134
|
case 1:
|
|
135
135
|
_context2.prev = 1;
|
|
136
136
|
_context2.next = 2;
|
|
137
|
-
return
|
|
137
|
+
return _client.teamsClient.getTeamContainers(teamId);
|
|
138
138
|
case 2:
|
|
139
139
|
containers = _context2.sent;
|
|
140
140
|
fireAnalyticsNext('operational.refetchTeamContainers.succeeded', {
|
|
@@ -212,7 +212,7 @@ var actions = exports.actions = {
|
|
|
212
212
|
});
|
|
213
213
|
_context3.prev = 3;
|
|
214
214
|
_context3.next = 4;
|
|
215
|
-
return
|
|
215
|
+
return _client.teamsClient.getNumberOfConnectedTeams(containerId);
|
|
216
216
|
case 4:
|
|
217
217
|
numberOfTeams = _context3.sent;
|
|
218
218
|
fireAnalyticsNext('operational.fetchNumberOfConnectedTeams.succeeded', {
|
|
@@ -302,7 +302,7 @@ var actions = exports.actions = {
|
|
|
302
302
|
});
|
|
303
303
|
_context4.prev = 3;
|
|
304
304
|
_context4.next = 4;
|
|
305
|
-
return
|
|
305
|
+
return _client.teamsClient.getConnectedTeams(containerId);
|
|
306
306
|
case 4:
|
|
307
307
|
teamsResult = _context4.sent;
|
|
308
308
|
fireAnalyticsNext('operational.fetchConnectedTeams.succeeded', {
|
|
@@ -381,7 +381,7 @@ var actions = exports.actions = {
|
|
|
381
381
|
}
|
|
382
382
|
_context5.prev = 1;
|
|
383
383
|
_context5.next = 2;
|
|
384
|
-
return
|
|
384
|
+
return _client.teamsClient.unlinkTeamContainer(teamId, containerId);
|
|
385
385
|
case 2:
|
|
386
386
|
mutationResult = _context5.sent;
|
|
387
387
|
currentState = getState();
|
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
-
var
|
|
12
|
+
var _client = require("@atlaskit/teams-client/client");
|
|
13
13
|
var _containersDeepEqual = require("./containers-deep-equal");
|
|
14
14
|
var _initialConnectedTeamsState = require("./initial-connected-teams-state");
|
|
15
15
|
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; }
|
|
@@ -39,7 +39,7 @@ var actions = exports.actions = {
|
|
|
39
39
|
});
|
|
40
40
|
_context.prev = 2;
|
|
41
41
|
_context.next = 3;
|
|
42
|
-
return
|
|
42
|
+
return _client.teamsClient.getTeamContainers(teamId);
|
|
43
43
|
case 3:
|
|
44
44
|
containers = _context.sent;
|
|
45
45
|
fireAnalytics('operational.fetchTeamContainers.succeeded', {
|
|
@@ -97,7 +97,7 @@ var actions = exports.actions = {
|
|
|
97
97
|
case 1:
|
|
98
98
|
_context2.prev = 1;
|
|
99
99
|
_context2.next = 2;
|
|
100
|
-
return
|
|
100
|
+
return _client.teamsClient.getTeamContainers(teamId);
|
|
101
101
|
case 2:
|
|
102
102
|
containers = _context2.sent;
|
|
103
103
|
fireAnalytics('operational.refetchTeamContainers.succeeded', {
|
|
@@ -164,7 +164,7 @@ var actions = exports.actions = {
|
|
|
164
164
|
});
|
|
165
165
|
_context3.prev = 2;
|
|
166
166
|
_context3.next = 3;
|
|
167
|
-
return
|
|
167
|
+
return _client.teamsClient.getNumberOfConnectedTeams(containerId);
|
|
168
168
|
case 3:
|
|
169
169
|
numberOfTeams = _context3.sent;
|
|
170
170
|
fireAnalytics('operational.fetchNumberOfConnectedTeams.succeeded', {
|
|
@@ -234,7 +234,7 @@ var actions = exports.actions = {
|
|
|
234
234
|
});
|
|
235
235
|
_context4.prev = 2;
|
|
236
236
|
_context4.next = 3;
|
|
237
|
-
return
|
|
237
|
+
return _client.teamsClient.getConnectedTeams(containerId);
|
|
238
238
|
case 3:
|
|
239
239
|
teams = _context4.sent;
|
|
240
240
|
fireAnalytics('operational.fetchConnectedTeams.succeeded', {
|
|
@@ -298,7 +298,7 @@ var actions = exports.actions = {
|
|
|
298
298
|
});
|
|
299
299
|
_context5.prev = 1;
|
|
300
300
|
_context5.next = 2;
|
|
301
|
-
return
|
|
301
|
+
return _client.teamsClient.unlinkTeamContainer(teamId, containerId);
|
|
302
302
|
case 2:
|
|
303
303
|
mutationResult = _context5.sent;
|
|
304
304
|
if (mutationResult.deleteTeamConnectedToContainer.errors.length) {
|
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
-
var
|
|
12
|
+
var _client = require("@atlaskit/teams-client/client");
|
|
13
13
|
var _initialState2 = require("./initial-state");
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
@@ -40,7 +40,7 @@ var actions = exports.actions = {
|
|
|
40
40
|
});
|
|
41
41
|
_context.prev = 2;
|
|
42
42
|
_context.next = 3;
|
|
43
|
-
return
|
|
43
|
+
return _client.teamsClient.getTeamLinksByTeamId(teamId);
|
|
44
44
|
case 3:
|
|
45
45
|
_yield$teamsClient$ge = _context.sent;
|
|
46
46
|
entities = _yield$teamsClient$ge.entities;
|
|
@@ -123,7 +123,7 @@ var actions = exports.actions = {
|
|
|
123
123
|
iconsError: false
|
|
124
124
|
});
|
|
125
125
|
_context2.next = 3;
|
|
126
|
-
return
|
|
126
|
+
return _client.teamsClient.getTeamLinkIcons(uncachedUrls);
|
|
127
127
|
case 3:
|
|
128
128
|
newIconData = _context2.sent;
|
|
129
129
|
if (getState().teamId === teamId) {
|
|
@@ -175,7 +175,7 @@ var actions = exports.actions = {
|
|
|
175
175
|
case 0:
|
|
176
176
|
getState = _ref5.getState, setState = _ref5.setState, dispatch = _ref5.dispatch;
|
|
177
177
|
_context3.next = 1;
|
|
178
|
-
return
|
|
178
|
+
return _client.teamsClient.createTeamLink(teamId, newLink);
|
|
179
179
|
case 1:
|
|
180
180
|
result = _context3.sent;
|
|
181
181
|
currentState = getState();
|
|
@@ -210,7 +210,7 @@ var actions = exports.actions = {
|
|
|
210
210
|
case 0:
|
|
211
211
|
getState = _ref7.getState, setState = _ref7.setState, dispatch = _ref7.dispatch;
|
|
212
212
|
_context4.next = 1;
|
|
213
|
-
return
|
|
213
|
+
return _client.teamsClient.updateTeamLink(teamId, linkId, newLink);
|
|
214
214
|
case 1:
|
|
215
215
|
result = _context4.sent;
|
|
216
216
|
currentState = getState();
|
|
@@ -266,7 +266,7 @@ var actions = exports.actions = {
|
|
|
266
266
|
return _context5.abrupt("return");
|
|
267
267
|
case 1:
|
|
268
268
|
_context5.next = 2;
|
|
269
|
-
return
|
|
269
|
+
return _client.teamsClient.deleteTeamLink(teamId, linkId);
|
|
270
270
|
case 2:
|
|
271
271
|
setState({
|
|
272
272
|
links: currentState.links.filter(function (link) {
|
|
@@ -300,7 +300,7 @@ var actions = exports.actions = {
|
|
|
300
300
|
case 1:
|
|
301
301
|
_context6.prev = 1;
|
|
302
302
|
_context6.next = 2;
|
|
303
|
-
return
|
|
303
|
+
return _client.teamsClient.getWebLinkTitle(url);
|
|
304
304
|
case 2:
|
|
305
305
|
title = _context6.sent;
|
|
306
306
|
return _context6.abrupt("return", title);
|
|
@@ -11,7 +11,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
var _reactSweetState = require("react-sweet-state");
|
|
14
|
-
var
|
|
14
|
+
var _client = require("@atlaskit/teams-client/client");
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
17
|
var getInitialTeamState = function getInitialTeamState() {
|
|
@@ -65,7 +65,7 @@ var actions = exports.actions = {
|
|
|
65
65
|
});
|
|
66
66
|
_context.prev = 3;
|
|
67
67
|
_context.next = 4;
|
|
68
|
-
return
|
|
68
|
+
return _client.teamsClient.getTeamLinksByTeamId(teamId);
|
|
69
69
|
case 4:
|
|
70
70
|
_yield$teamsClient$ge = _context.sent;
|
|
71
71
|
entities = _yield$teamsClient$ge.entities;
|
|
@@ -172,7 +172,7 @@ var actions = exports.actions = {
|
|
|
172
172
|
})))
|
|
173
173
|
});
|
|
174
174
|
_context2.next = 4;
|
|
175
|
-
return
|
|
175
|
+
return _client.teamsClient.getTeamLinkIcons(uncachedUrls);
|
|
176
176
|
case 4:
|
|
177
177
|
newIconData = _context2.sent;
|
|
178
178
|
currentState = getState();
|
|
@@ -236,7 +236,7 @@ var actions = exports.actions = {
|
|
|
236
236
|
case 0:
|
|
237
237
|
getState = _ref5.getState, setState = _ref5.setState, dispatch = _ref5.dispatch;
|
|
238
238
|
_context3.next = 1;
|
|
239
|
-
return
|
|
239
|
+
return _client.teamsClient.createTeamLink(teamId, newLink);
|
|
240
240
|
case 1:
|
|
241
241
|
result = _context3.sent;
|
|
242
242
|
currentState = getState();
|
|
@@ -274,7 +274,7 @@ var actions = exports.actions = {
|
|
|
274
274
|
case 0:
|
|
275
275
|
getState = _ref7.getState, setState = _ref7.setState, dispatch = _ref7.dispatch;
|
|
276
276
|
_context4.next = 1;
|
|
277
|
-
return
|
|
277
|
+
return _client.teamsClient.updateTeamLink(teamId, linkId, newLink);
|
|
278
278
|
case 1:
|
|
279
279
|
result = _context4.sent;
|
|
280
280
|
_getState3 = getState(), teams = _getState3.teams;
|
|
@@ -340,7 +340,7 @@ var actions = exports.actions = {
|
|
|
340
340
|
case 0:
|
|
341
341
|
getState = _ref9.getState, setState = _ref9.setState;
|
|
342
342
|
_context5.next = 1;
|
|
343
|
-
return
|
|
343
|
+
return _client.teamsClient.deleteTeamLink(teamId, linkId);
|
|
344
344
|
case 1:
|
|
345
345
|
// Get fresh state after async operation
|
|
346
346
|
currentState = getState();
|
|
@@ -385,7 +385,7 @@ var actions = exports.actions = {
|
|
|
385
385
|
case 1:
|
|
386
386
|
_context6.prev = 1;
|
|
387
387
|
_context6.next = 2;
|
|
388
|
-
return
|
|
388
|
+
return _client.teamsClient.getWebLinkTitle(url);
|
|
389
389
|
case 2:
|
|
390
390
|
title = _context6.sent;
|
|
391
391
|
return _context6.abrupt("return", title);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
1
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
2
2
|
import { containersEqual } from './containers-equal';
|
|
3
3
|
import { getErrorDetails } from './get-error-details';
|
|
4
4
|
import { getInitialTeamState } from './get-initial-team-state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
1
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
2
2
|
import { containersDeepEqual } from './containers-deep-equal';
|
|
3
3
|
import { initialConnectedTeamsState } from './initial-connected-teams-state';
|
|
4
4
|
export const actions = {
|
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
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
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
7
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
8
8
|
import { containersEqual } from './containers-equal';
|
|
9
9
|
import { getErrorDetails } from './get-error-details';
|
|
10
10
|
import { getInitialTeamState } from './get-initial-team-state';
|
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
7
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
8
8
|
import { containersDeepEqual } from './containers-deep-equal';
|
|
9
9
|
import { initialConnectedTeamsState } from './initial-connected-teams-state';
|
|
10
10
|
export var actions = {
|
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
7
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
8
8
|
import { initialState as _initialState } from './initial-state';
|
|
9
9
|
export var actions = {
|
|
10
10
|
getTeamWebLinks: function getTeamWebLinks(teamId) {
|
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import { createHook, createStore } from 'react-sweet-state';
|
|
9
|
-
import { teamsClient } from '@atlaskit/teams-client';
|
|
9
|
+
import { teamsClient } from '@atlaskit/teams-client/client';
|
|
10
10
|
var getInitialTeamState = function getInitialTeamState() {
|
|
11
11
|
return {
|
|
12
12
|
isLoading: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/
|
|
1
|
+
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/unlink-container-mutation';
|
|
2
2
|
import type { TeamState } from './team-state';
|
|
3
3
|
export type State = {
|
|
4
4
|
teams: Record<string, TeamState>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { TeamContainers
|
|
1
|
+
import type { TeamContainers } from '@atlaskit/teams-client/team-containers';
|
|
2
|
+
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/unlink-container-mutation';
|
|
2
3
|
import type { ConnectedTeams } from './connected-teams';
|
|
3
4
|
/**
|
|
4
5
|
* State shape for the single-team `teamContainersStore`.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { TeamContainers
|
|
1
|
+
import type { TeamContainers } from '@atlaskit/teams-client/team-containers';
|
|
2
|
+
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/unlink-container-mutation';
|
|
2
3
|
import type { ConnectedTeams } from './connected-teams';
|
|
3
4
|
export type TeamState = {
|
|
4
5
|
teamContainers: TeamContainers;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TeamWithMemberships } from '@atlaskit/teams-client/
|
|
1
|
+
import type { TeamWithMemberships } from '@atlaskit/teams-client/membership';
|
|
2
2
|
export declare const useConnectedTeams: (teamId: string) => {
|
|
3
3
|
fetchNumberOfConnectedTeams: (containerId: string) => void | Promise<void>;
|
|
4
4
|
fetchConnectedTeams: (containerId: string) => void | Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TeamWithMemberships } from '@atlaskit/teams-client/
|
|
1
|
+
import type { TeamWithMemberships } from '@atlaskit/teams-client/membership';
|
|
2
2
|
export declare const useConnectedTeams: (teamId?: string) => {
|
|
3
3
|
fetchNumberOfConnectedTeams: (containerId: string) => void | Promise<void>;
|
|
4
4
|
fetchConnectedTeams: (containerId: string) => void | Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { TeamContainers
|
|
1
|
+
import type { TeamContainers } from '@atlaskit/teams-client/team-containers';
|
|
2
|
+
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/unlink-container-mutation';
|
|
2
3
|
import { type TeamContainer } from '../../../common/types';
|
|
3
4
|
import type { ConnectedTeams } from './connected-teams';
|
|
4
5
|
export declare const useTeamContainers: (teamId: string, enable?: boolean) => {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { TeamContainers
|
|
1
|
+
import type { TeamContainers } from '@atlaskit/teams-client/team-containers';
|
|
2
|
+
import type { TeamWithMemberships } from '@atlaskit/teams-client/membership';
|
|
3
|
+
import type { UnlinkContainerMutationError } from '@atlaskit/teams-client/unlink-container-mutation';
|
|
2
4
|
import { type TeamContainer } from '../../../common/types';
|
|
3
5
|
export declare const useTeamContainers: (teamId: string, enable?: boolean) => {
|
|
4
6
|
teamContainers: TeamContainers;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TeamLink } from '@atlaskit/teams-client/
|
|
1
|
+
import type { TeamLink } from '@atlaskit/teams-client/links';
|
|
2
2
|
import { type NewTeamWebLink } from '../../../common/types';
|
|
3
3
|
import { type StoreApi, type TeamWebLinksState } from './types';
|
|
4
4
|
export declare const actions: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BoundActions, type HookFunction } from 'react-sweet-state';
|
|
2
|
-
import type { TeamLink } from '@atlaskit/teams-client/
|
|
2
|
+
import type { TeamLink } from '@atlaskit/teams-client/links';
|
|
3
3
|
import { type NewTeamWebLink, type TeamWebLink } from '../../../common/types';
|
|
4
4
|
import { type StoreApi, type TeamLinkIconData, type TeamWebLinksState as TeamWebLinksStateType } from './types';
|
|
5
5
|
type TeamWebLinksTeamState = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BoundActions, type HookReturnValue } from 'react-sweet-state';
|
|
2
|
-
import type { TeamLink } from '@atlaskit/teams-client/
|
|
2
|
+
import type { TeamLink } from '@atlaskit/teams-client/links';
|
|
3
3
|
import { type NewTeamWebLink, type TeamWebLink } from '../../../common/types';
|
|
4
4
|
import { type StoreApi, type TeamLinkIconData, type TeamWebLinksState } from './types';
|
|
5
5
|
export declare const useTeamWebLinksActions: () => HookReturnValue<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BoundActions, type HookReturnValue } from 'react-sweet-state';
|
|
2
|
-
import type { TeamLink } from '@atlaskit/teams-client/
|
|
2
|
+
import type { TeamLink } from '@atlaskit/teams-client/links';
|
|
3
3
|
import { type NewTeamWebLink } from '../../../common/types';
|
|
4
4
|
import { type StoreApi, type TeamWebLinksState } from './types';
|
|
5
5
|
export declare const useTeamWebLinks: (teamId?: string) => HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/afm-i18n-platform-people-and-teams-teams-public": "2.225.0",
|
|
27
27
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
28
|
-
"@atlaskit/avatar": "^
|
|
28
|
+
"@atlaskit/avatar": "^28.0.0",
|
|
29
29
|
"@atlaskit/button": "^25.3.0",
|
|
30
30
|
"@atlaskit/css": "^1.1.0",
|
|
31
31
|
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"react-intl": "^7.0.0"
|
|
78
78
|
},
|
|
79
79
|
"name": "@atlaskit/teams-public",
|
|
80
|
-
"version": "2.9.
|
|
80
|
+
"version": "2.9.2",
|
|
81
81
|
"description": "Public components related to teams",
|
|
82
82
|
"author": "Atlassian Pty Ltd",
|
|
83
83
|
"license": "Apache-2.0",
|