@atlaskit/teams-public 0.62.6 → 0.63.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.63.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.63.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`0f5306d6607ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f5306d6607ab) -
14
+ Add ORG_ADMIN_MANAGED to membership settings
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 0.62.6
4
21
 
5
22
  ### Patch Changes
@@ -301,11 +301,11 @@ var actions = exports.actions = {
301
301
  fetchWebLinkTitle: function fetchWebLinkTitle(url) {
302
302
  return /*#__PURE__*/function () {
303
303
  var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(_ref1) {
304
- var setState, title;
304
+ var _setState, title;
305
305
  return _regenerator.default.wrap(function _callee6$(_context6) {
306
306
  while (1) switch (_context6.prev = _context6.next) {
307
307
  case 0:
308
- setState = _ref1.setState;
308
+ _setState = _ref1.setState;
309
309
  if (url) {
310
310
  _context6.next = 3;
311
311
  break;
@@ -65,7 +65,7 @@ function _makeGraphQLRequestWithoutRetries() {
65
65
  _context.next = 17;
66
66
  break;
67
67
  }
68
- return _context.abrupt("return", new Promise(function (resolve, reject) {
68
+ return _context.abrupt("return", new Promise(function (_resolve, reject) {
69
69
  setTimeout(function () {
70
70
  reject(_error.GraphQLError.from(errors));
71
71
  }, 0);
@@ -168,7 +168,7 @@ export const actions = {
168
168
  });
169
169
  },
170
170
  fetchWebLinkTitle: url => async ({
171
- setState
171
+ setState: _setState
172
172
  }) => {
173
173
  if (!url) {
174
174
  return undefined;
@@ -28,7 +28,7 @@ export async function makeGraphQLRequestWithoutRetries(serviceUrl, body, options
28
28
  } else if (errorPolicy === 'all') {
29
29
  // Set timeout will postpone error throwing and de-touch it to another event loop,
30
30
  // so we can return data along with throwing error
31
- return new Promise((resolve, reject) => {
31
+ return new Promise((_resolve, reject) => {
32
32
  setTimeout(() => {
33
33
  reject(GraphQLError.from(errors));
34
34
  }, 0);
@@ -294,11 +294,11 @@ export var actions = {
294
294
  fetchWebLinkTitle: function fetchWebLinkTitle(url) {
295
295
  return /*#__PURE__*/function () {
296
296
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(_ref1) {
297
- var setState, title;
297
+ var _setState, title;
298
298
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
299
299
  while (1) switch (_context6.prev = _context6.next) {
300
300
  case 0:
301
- setState = _ref1.setState;
301
+ _setState = _ref1.setState;
302
302
  if (url) {
303
303
  _context6.next = 3;
304
304
  break;
@@ -57,7 +57,7 @@ function _makeGraphQLRequestWithoutRetries() {
57
57
  _context.next = 17;
58
58
  break;
59
59
  }
60
- return _context.abrupt("return", new Promise(function (resolve, reject) {
60
+ return _context.abrupt("return", new Promise(function (_resolve, reject) {
61
61
  setTimeout(function () {
62
62
  reject(GraphQLError.from(errors));
63
63
  }, 0);
@@ -32,7 +32,7 @@ export type UserARI = `${typeof USER_ARI_PREFIX}${string}`;
32
32
  export declare const TEAM_ARI_PREFIX: "ari:cloud:identity::team/";
33
33
  export type TeamARI = `${typeof TEAM_ARI_PREFIX}${string}`;
34
34
  export type UserStatus = 'active' | 'inactive' | 'closed';
35
- export type TeamState = 'ACTIVE' | 'PURGED';
36
- export type TeamMembershipSettings = 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL';
35
+ export type TeamState = 'ACTIVE' | 'PURGED' | 'DISBANDED';
36
+ export type TeamMembershipSettings = 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | 'ORG_ADMIN_MANAGED';
37
37
  export type MembershipRole = 'REGULAR' | 'ADMIN';
38
38
  export type MembershipState = 'FULL_MEMBER' | 'ALUMNI' | 'REQUESTING_TO_JOIN';
@@ -6,7 +6,7 @@ export declare const actions: {
6
6
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
7
7
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
8
8
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
9
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
9
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
10
10
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
11
11
  };
12
12
  export declare const useTeamWebLinks: import("react-sweet-state").HookFunction<TeamWebLinksState, import("react-sweet-state").BoundActions<TeamWebLinksState, {
@@ -15,7 +15,7 @@ export declare const useTeamWebLinks: import("react-sweet-state").HookFunction<T
15
15
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
16
16
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
17
17
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
18
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
18
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
19
19
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
20
20
  }>, void>;
21
21
  export declare const useTeamWebLinksActions: import("react-sweet-state").HookFunction<TeamWebLinksState, import("react-sweet-state").BoundActions<TeamWebLinksState, {
@@ -24,6 +24,6 @@ export declare const useTeamWebLinksActions: import("react-sweet-state").HookFun
24
24
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
25
25
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
26
26
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
27
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
27
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
28
28
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
29
29
  }>, void>;
@@ -32,7 +32,7 @@ export type UserARI = `${typeof USER_ARI_PREFIX}${string}`;
32
32
  export declare const TEAM_ARI_PREFIX: "ari:cloud:identity::team/";
33
33
  export type TeamARI = `${typeof TEAM_ARI_PREFIX}${string}`;
34
34
  export type UserStatus = 'active' | 'inactive' | 'closed';
35
- export type TeamState = 'ACTIVE' | 'PURGED';
36
- export type TeamMembershipSettings = 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL';
35
+ export type TeamState = 'ACTIVE' | 'PURGED' | 'DISBANDED';
36
+ export type TeamMembershipSettings = 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | 'ORG_ADMIN_MANAGED';
37
37
  export type MembershipRole = 'REGULAR' | 'ADMIN';
38
38
  export type MembershipState = 'FULL_MEMBER' | 'ALUMNI' | 'REQUESTING_TO_JOIN';
@@ -6,7 +6,7 @@ export declare const actions: {
6
6
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
7
7
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
8
8
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
9
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
9
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
10
10
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
11
11
  };
12
12
  export declare const useTeamWebLinks: import("react-sweet-state").HookFunction<TeamWebLinksState, import("react-sweet-state").BoundActions<TeamWebLinksState, {
@@ -15,7 +15,7 @@ export declare const useTeamWebLinks: import("react-sweet-state").HookFunction<T
15
15
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
16
16
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
17
17
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
18
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
18
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
19
19
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
20
20
  }>, void>;
21
21
  export declare const useTeamWebLinksActions: import("react-sweet-state").HookFunction<TeamWebLinksState, import("react-sweet-state").BoundActions<TeamWebLinksState, {
@@ -24,6 +24,6 @@ export declare const useTeamWebLinksActions: import("react-sweet-state").HookFun
24
24
  createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
25
25
  updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
26
26
  removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
27
- fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
27
+ fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi) => Promise<string | undefined>;
28
28
  initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
29
29
  }>, void>;
package/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "@atlaskit/analytics-next": "^11.1.0",
29
29
  "@atlaskit/avatar": "^25.5.0",
30
30
  "@atlaskit/button": "^23.6.0",
31
- "@atlaskit/css": "^0.15.0",
31
+ "@atlaskit/css": "^0.16.0",
32
32
  "@atlaskit/dropdown-menu": "^16.3.0",
33
33
  "@atlaskit/feature-gate-js-client": "^5.5.0",
34
34
  "@atlaskit/flag": "^17.5.0",
@@ -39,17 +39,17 @@
39
39
  "@atlaskit/image": "^3.0.0",
40
40
  "@atlaskit/link": "^3.2.0",
41
41
  "@atlaskit/logo": "^19.9.0",
42
- "@atlaskit/modal-dialog": "^14.6.0",
43
- "@atlaskit/people-teams-ui-public": "^3.6.0",
42
+ "@atlaskit/modal-dialog": "^14.7.0",
43
+ "@atlaskit/people-teams-ui-public": "^3.7.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
- "@atlaskit/primitives": "^16.1.0",
45
+ "@atlaskit/primitives": "^16.2.0",
46
46
  "@atlaskit/skeleton": "^2.1.0",
47
- "@atlaskit/teams-app-internal-analytics": "^1.19.0",
47
+ "@atlaskit/teams-app-internal-analytics": "^1.20.0",
48
48
  "@atlaskit/teams-app-internal-product-permissions": "^1.2.0",
49
- "@atlaskit/teams-client": "^4.22.0",
49
+ "@atlaskit/teams-client": "^4.24.0",
50
50
  "@atlaskit/theme": "^21.0.0",
51
- "@atlaskit/tokens": "^8.0.0",
52
- "@atlaskit/tooltip": "^20.8.0",
51
+ "@atlaskit/tokens": "^8.1.0",
52
+ "@atlaskit/tooltip": "^20.10.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@compiled/react": "^0.18.6",
55
55
  "@types/string-hash": "^1.1.3",
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "name": "@atlaskit/teams-public",
114
- "version": "0.62.6",
114
+ "version": "0.63.1",
115
115
  "description": "Public components related to teams",
116
116
  "author": "Atlassian Pty Ltd",
117
117
  "license": "Apache-2.0",