@atlaskit/teams-public 0.64.0 → 0.65.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.
Files changed (24) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/controllers/hooks/use-team-containers/index.js +6 -5
  3. package/dist/cjs/controllers/hooks/use-team-containers/mocks.js +125 -0
  4. package/dist/cjs/services/agg-client/index.js +8 -72
  5. package/dist/cjs/services/agg-client/utils/queries/team-containers-query.js +4 -6
  6. package/dist/es2019/controllers/hooks/use-team-containers/index.js +6 -5
  7. package/dist/es2019/controllers/hooks/use-team-containers/mocks.js +119 -0
  8. package/dist/es2019/services/agg-client/index.js +14 -71
  9. package/dist/es2019/services/agg-client/utils/queries/team-containers-query.js +1 -53
  10. package/dist/esm/controllers/hooks/use-team-containers/index.js +6 -5
  11. package/dist/esm/controllers/hooks/use-team-containers/mocks.js +119 -0
  12. package/dist/esm/services/agg-client/index.js +9 -73
  13. package/dist/esm/services/agg-client/utils/queries/team-containers-query.js +3 -5
  14. package/dist/types/controllers/hooks/use-team-containers/index.d.ts +2 -1
  15. package/dist/types/controllers/hooks/use-team-containers/mocks.d.ts +127 -0
  16. package/dist/types/services/agg-client/index.d.ts +1 -2
  17. package/dist/types/services/agg-client/utils/queries/team-containers-query.d.ts +0 -1
  18. package/dist/types/services/types.d.ts +2 -2
  19. package/dist/types-ts4.5/controllers/hooks/use-team-containers/index.d.ts +2 -1
  20. package/dist/types-ts4.5/controllers/hooks/use-team-containers/mocks.d.ts +127 -0
  21. package/dist/types-ts4.5/services/agg-client/index.d.ts +1 -2
  22. package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +0 -1
  23. package/dist/types-ts4.5/services/types.d.ts +2 -2
  24. package/package.json +7 -10
@@ -0,0 +1,127 @@
1
+ export declare const MOCK_TEAM_CONTAINERS: {
2
+ graphStore: {
3
+ cypherQuery: {
4
+ edges: ({
5
+ node: {
6
+ from: {
7
+ id: string;
8
+ };
9
+ to: {
10
+ id: string;
11
+ data: {
12
+ __typename: string;
13
+ confluenceSpaceName: string;
14
+ type: string;
15
+ createdDate: string;
16
+ links: {
17
+ webUi: string;
18
+ };
19
+ icon: {
20
+ path: string;
21
+ };
22
+ jiraProjectName?: undefined;
23
+ webUrl?: undefined;
24
+ created?: undefined;
25
+ avatar?: undefined;
26
+ };
27
+ };
28
+ };
29
+ } | {
30
+ node: {
31
+ from: {
32
+ id: string;
33
+ };
34
+ to: {
35
+ id: string;
36
+ data: {
37
+ __typename: string;
38
+ jiraProjectName: string;
39
+ webUrl: string;
40
+ created: string;
41
+ avatar: {
42
+ medium: string;
43
+ };
44
+ confluenceSpaceName?: undefined;
45
+ type?: undefined;
46
+ createdDate?: undefined;
47
+ links?: undefined;
48
+ icon?: undefined;
49
+ };
50
+ };
51
+ };
52
+ })[];
53
+ };
54
+ };
55
+ };
56
+ export declare const MOCK_TEAM_CONTAINERSV2: {
57
+ graphStore: {
58
+ cypherQueryV2: {
59
+ edges: ({
60
+ node: {
61
+ columns: {
62
+ key: string;
63
+ value: {
64
+ data: {
65
+ __typename: string;
66
+ id: string;
67
+ confluenceSpaceName: string;
68
+ type: string;
69
+ createdDate: string;
70
+ links: {
71
+ base: string;
72
+ webUi: string;
73
+ };
74
+ icon: {
75
+ path: string;
76
+ };
77
+ };
78
+ };
79
+ }[];
80
+ };
81
+ } | {
82
+ node: {
83
+ columns: {
84
+ key: string;
85
+ value: {
86
+ data: {
87
+ __typename: string;
88
+ id: string;
89
+ jiraProjectName: string;
90
+ webUrl: string;
91
+ created: string;
92
+ avatar: {
93
+ medium: string;
94
+ };
95
+ projectType: string;
96
+ projectTypeName: string;
97
+ };
98
+ };
99
+ }[];
100
+ };
101
+ })[];
102
+ };
103
+ };
104
+ };
105
+ export declare const MOCK_CONNECTED_TEAMS_RESULT: {
106
+ id: string;
107
+ displayName: string;
108
+ description: string;
109
+ state: string;
110
+ membershipSettings: string;
111
+ organizationId: string;
112
+ creatorId: string;
113
+ isVerified: boolean;
114
+ members: {
115
+ id: string;
116
+ fullName: string;
117
+ avatarUrl: string;
118
+ status: string;
119
+ }[];
120
+ includesYou: boolean;
121
+ memberCount: number;
122
+ smallAvatarImageUrl: string;
123
+ smallHeaderImageUrl: string;
124
+ largeAvatarImageUrl: string;
125
+ largeHeaderImageUrl: string;
126
+ restriction: string;
127
+ }[];
@@ -6,8 +6,7 @@ export declare class AGGClient extends BaseGraphQlClient {
6
6
  constructor(baseUrl: string, config: ClientConfig);
7
7
  setBaseUrl(baseUrl: string): void;
8
8
  getTeamContainers(teamId: string): Promise<TeamContainers>;
9
- private processV2Response;
10
- private processV1Response;
9
+ private processResponse;
11
10
  unlinkTeamContainer(teamId: string, containerId: string): Promise<UnlinkContainerMutationResponse>;
12
11
  queryNumberOfTeamConnectedToContainer(containerId: string): Promise<number>;
13
12
  queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
@@ -1,4 +1,3 @@
1
- export declare const TeamContainersQuery: string;
2
1
  export declare const TeamContainersQueryV2: string;
3
2
  export declare const getTeamContainersQuery: () => string;
4
3
  export type TeamContainersQueryVariables = {
@@ -1,4 +1,4 @@
1
- export { type UnlinkContainerMutationError } from './agg-client/utils/mutations/unlink-container-mutation';
1
+ import type { TeamRestriction } from '@atlaskit/teams-client/types';
2
2
  import type { TeamContainer, TeamMembershipSettings, TeamState, UserStatus } from '../common/types';
3
3
  export type ClientContext = {
4
4
  cloudId?: string | null;
@@ -33,5 +33,5 @@ export type TeamWithMemberships = {
33
33
  smallAvatarImageUrl: string;
34
34
  largeHeaderImageUrl: string;
35
35
  smallHeaderImageUrl: string;
36
- restriction: 'ORG_MEMBERS';
36
+ restriction: TeamRestriction;
37
37
  };
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "category": "Layout and structure"
7
7
  }
8
8
  },
9
- "repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
9
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
10
10
  "main": "dist/cjs/index.js",
11
11
  "module": "dist/esm/index.js",
12
12
  "module:es2019": "dist/es2019/index.js",
@@ -44,10 +44,10 @@
44
44
  "@atlaskit/skeleton": "^2.1.0",
45
45
  "@atlaskit/teams-app-internal-analytics": "^1.20.0",
46
46
  "@atlaskit/teams-app-internal-product-permissions": "^1.2.0",
47
- "@atlaskit/teams-client": "^4.27.0",
47
+ "@atlaskit/teams-client": "^4.29.0",
48
48
  "@atlaskit/theme": "^21.0.0",
49
49
  "@atlaskit/tokens": "^8.4.0",
50
- "@atlaskit/tooltip": "^20.10.0",
50
+ "@atlaskit/tooltip": "^20.11.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@compiled/react": "^0.18.6",
53
53
  "@types/string-hash": "^1.1.3",
@@ -109,7 +109,7 @@
109
109
  }
110
110
  },
111
111
  "name": "@atlaskit/teams-public",
112
- "version": "0.64.0",
112
+ "version": "0.65.0",
113
113
  "description": "Public components related to teams",
114
114
  "author": "Atlassian Pty Ltd",
115
115
  "license": "Apache-2.0",
@@ -124,15 +124,9 @@
124
124
  "enable_medium_size_icons_for_team_link_cards": {
125
125
  "type": "boolean"
126
126
  },
127
- "enable_team_containers_null_check": {
128
- "type": "boolean"
129
- },
130
127
  "fix_team_link_card_a11y": {
131
128
  "type": "boolean"
132
129
  },
133
- "teams_containers_cypher_query_v2_migration": {
134
- "type": "boolean"
135
- },
136
130
  "migrate-product-permissions": {
137
131
  "type": "boolean"
138
132
  },
@@ -144,6 +138,9 @@
144
138
  },
145
139
  "enable_x_query_context_header": {
146
140
  "type": "boolean"
141
+ },
142
+ "enable_teams_public_migration_using_teams-client": {
143
+ "type": "boolean"
147
144
  }
148
145
  }
149
146
  }