@apolitical/component-library 4.7.10 → 4.7.11-beta.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/communities/members-list/members-list.d.ts +6 -1
- package/communities/members-list/members-list.mock.d.ts +62 -0
- package/helpers/intl.d.ts +2 -0
- package/index.js +33 -33
- package/index.mjs +1604 -1571
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type IProfileFormProps } from '../../form';
|
|
1
2
|
import { MemberDetailsProps } from '../../user';
|
|
2
3
|
interface CommunityMemberProps extends MemberDetailsProps {
|
|
3
4
|
/** Whether the user is an admin of the community or not */
|
|
@@ -9,10 +10,14 @@ interface Props {
|
|
|
9
10
|
data: CommunityMemberProps[];
|
|
10
11
|
total?: number;
|
|
11
12
|
};
|
|
13
|
+
/** Whether the user is a member of the community */
|
|
14
|
+
isMember?: boolean;
|
|
12
15
|
/** Whether there is another page of members to load */
|
|
13
16
|
hasNextPage?: boolean;
|
|
14
17
|
/** Function to load the next page of members */
|
|
15
18
|
loadNextPage?: () => void;
|
|
19
|
+
/** Props for the profile modal */
|
|
20
|
+
profile?: IProfileFormProps;
|
|
16
21
|
/** The GTM context to use */
|
|
17
22
|
gtmContext?: string;
|
|
18
23
|
/** The GTM event to use */
|
|
@@ -20,5 +25,5 @@ interface Props {
|
|
|
20
25
|
/** Additional classes */
|
|
21
26
|
className?: string;
|
|
22
27
|
}
|
|
23
|
-
declare const MembersList: ({ members: { data, total }, hasNextPage, loadNextPage, gtmContext, gtmType, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
declare const MembersList: ({ members: { data, total }, isMember, hasNextPage, loadNextPage, profile, gtmContext, gtmType, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
29
|
export default MembersList;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
members: {
|
|
3
|
+
data: ({
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
jobTitle: string;
|
|
7
|
+
organization: string;
|
|
8
|
+
location: {
|
|
9
|
+
country: string;
|
|
10
|
+
};
|
|
11
|
+
image: {
|
|
12
|
+
thumbnail: string;
|
|
13
|
+
};
|
|
14
|
+
isAdmin: boolean;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
jobTitle: string;
|
|
19
|
+
organization: string;
|
|
20
|
+
location: {
|
|
21
|
+
country: string;
|
|
22
|
+
};
|
|
23
|
+
image: {
|
|
24
|
+
thumbnail: string;
|
|
25
|
+
};
|
|
26
|
+
isAdmin?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
jobTitle: string;
|
|
31
|
+
organization: string;
|
|
32
|
+
location: {
|
|
33
|
+
country: string;
|
|
34
|
+
};
|
|
35
|
+
image?: undefined;
|
|
36
|
+
isAdmin?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
};
|
|
39
|
+
pagination: {
|
|
40
|
+
page: number;
|
|
41
|
+
length: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
};
|
|
44
|
+
profile: {
|
|
45
|
+
hooks: {
|
|
46
|
+
useMaps: () => {
|
|
47
|
+
buildLocation: (input: string) => Promise<{
|
|
48
|
+
id: string;
|
|
49
|
+
en: string;
|
|
50
|
+
code: string;
|
|
51
|
+
}>;
|
|
52
|
+
isValidPlace: (input: string) => boolean;
|
|
53
|
+
predictPlaces: (input: string) => Promise<never[]>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
functions: {
|
|
57
|
+
uploadImage: () => Promise<void>;
|
|
58
|
+
onSuccess: () => Promise<unknown>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default _default;
|
package/helpers/intl.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
63
63
|
member_community: string;
|
|
64
64
|
membersList: string;
|
|
65
65
|
membersList_admin: string;
|
|
66
|
+
membersList_profile: string;
|
|
67
|
+
membersList_modal_title: string;
|
|
66
68
|
courseStructure_section: string;
|
|
67
69
|
courseStructure_section_end: string;
|
|
68
70
|
courseStructure_time_left: string;
|