@atlaskit/teams-public 0.64.0 → 0.65.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 +21 -0
- package/dist/cjs/controllers/hooks/use-team-containers/index.js +6 -5
- package/dist/cjs/controllers/hooks/use-team-containers/mocks.js +125 -0
- package/dist/cjs/services/agg-client/index.js +8 -72
- package/dist/cjs/services/agg-client/utils/queries/team-containers-query.js +4 -6
- package/dist/cjs/services/agg-client/utils/query-context-headers.js +2 -3
- package/dist/cjs/services/graphql-client/main.js +2 -3
- package/dist/es2019/controllers/hooks/use-team-containers/index.js +6 -5
- package/dist/es2019/controllers/hooks/use-team-containers/mocks.js +119 -0
- package/dist/es2019/services/agg-client/index.js +14 -71
- package/dist/es2019/services/agg-client/utils/queries/team-containers-query.js +1 -53
- package/dist/es2019/services/agg-client/utils/query-context-headers.js +2 -4
- package/dist/es2019/services/graphql-client/main.js +2 -3
- package/dist/esm/controllers/hooks/use-team-containers/index.js +6 -5
- package/dist/esm/controllers/hooks/use-team-containers/mocks.js +119 -0
- package/dist/esm/services/agg-client/index.js +9 -73
- package/dist/esm/services/agg-client/utils/queries/team-containers-query.js +3 -5
- package/dist/esm/services/agg-client/utils/query-context-headers.js +2 -4
- package/dist/esm/services/graphql-client/main.js +2 -3
- package/dist/types/controllers/hooks/use-team-containers/index.d.ts +2 -1
- package/dist/types/controllers/hooks/use-team-containers/mocks.d.ts +127 -0
- package/dist/types/services/agg-client/index.d.ts +1 -2
- package/dist/types/services/agg-client/utils/queries/team-containers-query.d.ts +0 -1
- package/dist/types/services/agg-client/utils/query-context-headers.d.ts +1 -1
- package/dist/types/services/graphql-client/main.d.ts +1 -1
- package/dist/types/services/types.d.ts +2 -2
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/index.d.ts +2 -1
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/mocks.d.ts +127 -0
- package/dist/types-ts4.5/services/agg-client/index.d.ts +1 -2
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +0 -1
- package/dist/types-ts4.5/services/agg-client/utils/query-context-headers.d.ts +1 -1
- package/dist/types-ts4.5/services/graphql-client/main.d.ts +1 -1
- package/dist/types-ts4.5/services/types.d.ts +2 -2
- package/package.json +5 -11
|
@@ -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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
|
|
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
|
|
|
5
5
|
constructor(serviceUrl: string, config: ClientConfig);
|
|
6
6
|
setServiceUrl(serviceUrl: string): void;
|
|
7
7
|
/**
|
|
8
|
-
* Creates query context headers if cloudId is available
|
|
8
|
+
* Creates query context headers if cloudId is available.
|
|
9
9
|
*/
|
|
10
10
|
private createQueryContextHeaders;
|
|
11
11
|
makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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:
|
|
36
|
+
restriction: TeamRestriction;
|
|
37
37
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Action } from 'react-sweet-state';
|
|
2
2
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
3
3
|
import { type TeamContainer } from '../../../common/types';
|
|
4
|
-
import
|
|
4
|
+
import type { UnlinkContainerMutationError } from '../../../services/agg-client/utils/mutations/unlink-container-mutation';
|
|
5
|
+
import { type TeamContainers, type TeamWithMemberships } from '../../../services/types';
|
|
5
6
|
type ConnectedTeams = {
|
|
6
7
|
containerId: string | undefined;
|
|
7
8
|
isLoading: boolean;
|
|
@@ -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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
|
|
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
|
|
|
5
5
|
constructor(serviceUrl: string, config: ClientConfig);
|
|
6
6
|
setServiceUrl(serviceUrl: string): void;
|
|
7
7
|
/**
|
|
8
|
-
* Creates query context headers if cloudId is available
|
|
8
|
+
* Creates query context headers if cloudId is available.
|
|
9
9
|
*/
|
|
10
10
|
private createQueryContextHeaders;
|
|
11
11
|
makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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:
|
|
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://
|
|
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.
|
|
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.
|
|
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.
|
|
112
|
+
"version": "0.65.1",
|
|
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
|
},
|
|
@@ -142,7 +136,7 @@
|
|
|
142
136
|
"ptc-enable-teams-public-analytics-refactor": {
|
|
143
137
|
"type": "boolean"
|
|
144
138
|
},
|
|
145
|
-
"
|
|
139
|
+
"enable_teams_public_migration_using_teams-client": {
|
|
146
140
|
"type": "boolean"
|
|
147
141
|
}
|
|
148
142
|
}
|