@apolitical/component-library 4.8.7 → 5.0.0-4749.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/communities/members-list/members-list.d.ts +1 -2
- package/communities/members-list/members-list.mock.d.ts +0 -21
- package/context/global/global.providers.d.ts +1 -1
- package/context/index.d.ts +0 -1
- package/discussion/components/add-post/add-post.d.ts +0 -2
- package/discussion/components/form/form.d.ts +1 -1
- package/discussion/components/form/form.type.d.ts +0 -2
- package/discussion/components/post/post.d.ts +1 -4
- package/discussion/discussion.helpers.d.ts +0 -1
- package/discussion/feeds/activities-feed/mocks/activities-feed.mock.d.ts +0 -42
- package/discussion/feeds/replies-feed/mocks/replies-feed.mock.d.ts +0 -33
- package/discussion/feeds/replies-feed/nested-replies-feed/mocks/nested-replies-feed.mock.d.ts +2 -29
- package/discussion/sections/activity-section/mocks/activity-section.mock.d.ts +0 -5
- package/discussion/shared/interfaces/user.interface.d.ts +0 -2
- package/form/components/rich-text-editor/helpers/transform/transform.d.ts +1 -1
- package/index.js +63 -63
- package/index.mjs +7550 -7716
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/buttons/_buttons.scss +14 -14
- package/styles/variables/colors/_colors.scss +0 -1
- package/styles/variables/colors/theme/_user.scss +0 -6
- package/styles/{base/buttons/_sizes.scss → variables/sizes/_buttons.scss} +4 -4
- package/styles/variables/sizes/_header.scss +19 -0
- package/styles/variables/sizes/_index.scss +1 -1
- package/styles/variables/sizes/_logo.scss +6 -0
- package/text/pill/pill.d.ts +1 -2
- package/user/member/member.d.ts +1 -7
- package/user/member/member.helpers.d.ts +0 -2
- package/user/member/member.mock.d.ts +0 -8
- package/context/badges/badges.context.d.ts +0 -13
- package/context/badges/badges.hook.d.ts +0 -1
- package/context/badges/badges.provider.d.ts +0 -8
- package/context/badges/index.d.ts +0 -4
- package/user/badge/badge.d.ts +0 -7
- package/user/badge/icon-mapping.d.ts +0 -11
- package/user/badge/index.d.ts +0 -2
- package/user/badge/interface/badge.interfaces.d.ts +0 -9
- package/user/badges/badges.d.ts +0 -12
- package/user/badges/badges.interface.d.ts +0 -8
- package/user/badges/index.d.ts +0 -2
|
@@ -10,7 +10,6 @@ interface Props {
|
|
|
10
10
|
data: CommunityMemberProps[];
|
|
11
11
|
total?: number;
|
|
12
12
|
};
|
|
13
|
-
communitySlug?: string;
|
|
14
13
|
/** Whether the user is a member of the community */
|
|
15
14
|
isMember?: boolean;
|
|
16
15
|
/** Whether there is another page of members to load */
|
|
@@ -26,5 +25,5 @@ interface Props {
|
|
|
26
25
|
/** Additional classes */
|
|
27
26
|
className?: string;
|
|
28
27
|
}
|
|
29
|
-
declare const MembersList: ({ members: { data, total },
|
|
28
|
+
declare const MembersList: ({ members: { data, total }, isMember, hasNextPage, loadNextPage, profile, gtmContext, gtmType, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
30
29
|
export default MembersList;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
members: {
|
|
3
3
|
data: ({
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
jobTitle: string;
|
|
7
|
-
organization: string;
|
|
8
|
-
badges: {
|
|
9
|
-
communities: {
|
|
10
|
-
playground: string[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
location: {
|
|
14
|
-
country: string;
|
|
15
|
-
};
|
|
16
|
-
image: {
|
|
17
|
-
thumbnail: string;
|
|
18
|
-
};
|
|
19
|
-
isAdmin: boolean;
|
|
20
|
-
} | {
|
|
21
4
|
id: string;
|
|
22
5
|
name: string;
|
|
23
6
|
jobTitle: string;
|
|
@@ -29,7 +12,6 @@ declare const _default: {
|
|
|
29
12
|
thumbnail: string;
|
|
30
13
|
};
|
|
31
14
|
isAdmin: boolean;
|
|
32
|
-
badges?: undefined;
|
|
33
15
|
} | {
|
|
34
16
|
id: string;
|
|
35
17
|
name: string;
|
|
@@ -41,7 +23,6 @@ declare const _default: {
|
|
|
41
23
|
image: {
|
|
42
24
|
thumbnail: string;
|
|
43
25
|
};
|
|
44
|
-
badges?: undefined;
|
|
45
26
|
isAdmin?: undefined;
|
|
46
27
|
} | {
|
|
47
28
|
id: string;
|
|
@@ -51,7 +32,6 @@ declare const _default: {
|
|
|
51
32
|
location: {
|
|
52
33
|
country: string;
|
|
53
34
|
};
|
|
54
|
-
badges?: undefined;
|
|
55
35
|
image?: undefined;
|
|
56
36
|
isAdmin?: undefined;
|
|
57
37
|
})[];
|
|
@@ -61,7 +41,6 @@ declare const _default: {
|
|
|
61
41
|
length: number;
|
|
62
42
|
limit: number;
|
|
63
43
|
};
|
|
64
|
-
communitySlug: string;
|
|
65
44
|
profile: {
|
|
66
45
|
hooks: {
|
|
67
46
|
useMaps: () => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type IIntlContext } from '../intl';
|
|
3
3
|
import { type IUserContext } from '../user';
|
|
4
4
|
interface Props {
|
|
5
|
-
bootstrap: () => Promise<IUserContext
|
|
5
|
+
bootstrap: () => Promise<IUserContext>;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
intl?: IIntlContext;
|
|
8
8
|
showDevTools?: boolean;
|
package/context/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { IDiscussionForm } from '../../../discussion/components/form';
|
|
|
3
3
|
interface Props {
|
|
4
4
|
/** Whether the form should be displayed as a card */
|
|
5
5
|
isCard?: boolean;
|
|
6
|
-
/** The ID of the parent, used for slugs */
|
|
7
|
-
parentId?: string;
|
|
8
6
|
/** Props for the form - this uses everything the `DiscussionForm` component does */
|
|
9
7
|
form: IDiscussionForm;
|
|
10
8
|
/** Details about what a user needs to have to be able to access the form */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IDiscussionForm } from './form.type';
|
|
2
|
-
declare const DiscussionForm: ({ id,
|
|
2
|
+
declare const DiscussionForm: ({ id, content, userHasPermissions, meta, placeholder, maxLength, buttons, forceShow, isCommunity, functions, data, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DiscussionForm;
|
|
@@ -33,8 +33,6 @@ export interface IDiscussionFormMeta {
|
|
|
33
33
|
export interface IDiscussionForm {
|
|
34
34
|
/** A unique ID for the form */
|
|
35
35
|
id?: string;
|
|
36
|
-
/** The ID of the parent, used for slugs */
|
|
37
|
-
parentId?: string;
|
|
38
36
|
/** Information about the content being created/edited */
|
|
39
37
|
content: IDiscussionContent;
|
|
40
38
|
/** If the user has permission to interact with the form, e.g. if they're a member of the community */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ListMembers, ClickMentionFallback } from '../../../form';
|
|
3
3
|
import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, IForceHide, IFullDiscussionContent } from '../../discussion';
|
|
4
|
-
import { IBadgesOption } from '../../../user/badges';
|
|
5
4
|
interface PostContent extends IFullDiscussionContent {
|
|
6
5
|
/** The post body */
|
|
7
6
|
postBody?: string;
|
|
@@ -78,8 +77,6 @@ interface Props {
|
|
|
78
77
|
setFocus?: boolean;
|
|
79
78
|
/** If the post is used within a community */
|
|
80
79
|
isCommunity?: boolean;
|
|
81
|
-
/** Whether to show badges and the scope of the badge */
|
|
82
|
-
badges?: IBadgesOption;
|
|
83
80
|
}
|
|
84
|
-
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, setFocus, isCommunity,
|
|
81
|
+
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, setFocus, isCommunity, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
85
82
|
export default Post;
|
|
@@ -8,11 +8,6 @@ export declare const activitiesFeedMock: {
|
|
|
8
8
|
jobTitle: string;
|
|
9
9
|
name: string;
|
|
10
10
|
organization: string;
|
|
11
|
-
badges: {
|
|
12
|
-
communities: {
|
|
13
|
-
'community-slug': string[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
11
|
};
|
|
17
12
|
};
|
|
18
13
|
title: string;
|
|
@@ -67,11 +62,6 @@ export declare const activitiesFeedMock: {
|
|
|
67
62
|
jobTitle: string;
|
|
68
63
|
name: string;
|
|
69
64
|
organization: string;
|
|
70
|
-
badges: {
|
|
71
|
-
communities: {
|
|
72
|
-
'community-slug': string[];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
65
|
};
|
|
76
66
|
};
|
|
77
67
|
title: string;
|
|
@@ -102,7 +92,6 @@ export declare const activitiesFeedMock: {
|
|
|
102
92
|
jobTitle: string;
|
|
103
93
|
name: string;
|
|
104
94
|
organization: string;
|
|
105
|
-
badges?: undefined;
|
|
106
95
|
};
|
|
107
96
|
};
|
|
108
97
|
content: string;
|
|
@@ -124,37 +113,6 @@ export declare const activitiesFeedMock: {
|
|
|
124
113
|
time: string;
|
|
125
114
|
verb: string;
|
|
126
115
|
title?: undefined;
|
|
127
|
-
} | {
|
|
128
|
-
actor: {
|
|
129
|
-
created_at: string;
|
|
130
|
-
updated_at: string;
|
|
131
|
-
id: string;
|
|
132
|
-
data: {
|
|
133
|
-
jobTitle: string;
|
|
134
|
-
name: string;
|
|
135
|
-
organization: string;
|
|
136
|
-
badges?: undefined;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
title: string;
|
|
140
|
-
content: string;
|
|
141
|
-
feed_id: string;
|
|
142
|
-
foreign_id: string;
|
|
143
|
-
id: string;
|
|
144
|
-
latest_reactions: {
|
|
145
|
-
pin?: undefined;
|
|
146
|
-
};
|
|
147
|
-
latest_reactions_extra: {};
|
|
148
|
-
object: string;
|
|
149
|
-
origin: null;
|
|
150
|
-
own_reactions: {};
|
|
151
|
-
reaction_counts: {
|
|
152
|
-
like?: undefined;
|
|
153
|
-
pin?: undefined;
|
|
154
|
-
};
|
|
155
|
-
target: string;
|
|
156
|
-
time: string;
|
|
157
|
-
verb: string;
|
|
158
116
|
})[];
|
|
159
117
|
next: string;
|
|
160
118
|
duration: string;
|
|
@@ -11,11 +11,6 @@ export declare const repliesFeedMock: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
data: {
|
|
13
13
|
name: string;
|
|
14
|
-
badges: {
|
|
15
|
-
communities: {
|
|
16
|
-
'community-slug': string[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
14
|
};
|
|
20
15
|
};
|
|
21
16
|
kind: string;
|
|
@@ -42,7 +37,6 @@ export declare const repliesFeedMock: {
|
|
|
42
37
|
id: string;
|
|
43
38
|
data: {
|
|
44
39
|
name: string;
|
|
45
|
-
badges?: undefined;
|
|
46
40
|
};
|
|
47
41
|
};
|
|
48
42
|
kind: string;
|
|
@@ -102,33 +96,6 @@ export declare const repliesFeedMock: {
|
|
|
102
96
|
children_counts: {
|
|
103
97
|
reply: number;
|
|
104
98
|
};
|
|
105
|
-
} | {
|
|
106
|
-
created_at: string;
|
|
107
|
-
updated_at: string;
|
|
108
|
-
id: string;
|
|
109
|
-
user_id: string;
|
|
110
|
-
user: {
|
|
111
|
-
created_at: string;
|
|
112
|
-
updated_at: string;
|
|
113
|
-
id: string;
|
|
114
|
-
data: {
|
|
115
|
-
name: string;
|
|
116
|
-
badges?: undefined;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
kind: string;
|
|
120
|
-
activity_id: string;
|
|
121
|
-
data: {
|
|
122
|
-
content: string;
|
|
123
|
-
};
|
|
124
|
-
parent: string;
|
|
125
|
-
latest_children: {
|
|
126
|
-
reply?: undefined;
|
|
127
|
-
};
|
|
128
|
-
children_counts: {
|
|
129
|
-
reply?: undefined;
|
|
130
|
-
};
|
|
131
|
-
own_children?: undefined;
|
|
132
99
|
})[];
|
|
133
100
|
duration: string;
|
|
134
101
|
};
|
package/discussion/feeds/replies-feed/nested-replies-feed/mocks/nested-replies-feed.mock.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const nestedRepliesFeedMock: {
|
|
2
2
|
next: string;
|
|
3
|
-
results:
|
|
3
|
+
results: {
|
|
4
4
|
created_at: string;
|
|
5
5
|
updated_at: string;
|
|
6
6
|
id: string;
|
|
@@ -11,11 +11,6 @@ export declare const nestedRepliesFeedMock: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
data: {
|
|
13
13
|
name: string;
|
|
14
|
-
badges: {
|
|
15
|
-
communities: {
|
|
16
|
-
'community-slug': string[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
14
|
};
|
|
20
15
|
};
|
|
21
16
|
kind: string;
|
|
@@ -26,28 +21,6 @@ export declare const nestedRepliesFeedMock: {
|
|
|
26
21
|
parent: string;
|
|
27
22
|
latest_children: {};
|
|
28
23
|
children_counts: {};
|
|
29
|
-
}
|
|
30
|
-
created_at: string;
|
|
31
|
-
updated_at: string;
|
|
32
|
-
id: string;
|
|
33
|
-
user_id: string;
|
|
34
|
-
user: {
|
|
35
|
-
created_at: string;
|
|
36
|
-
updated_at: string;
|
|
37
|
-
id: string;
|
|
38
|
-
data: {
|
|
39
|
-
name: string;
|
|
40
|
-
badges?: undefined;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
kind: string;
|
|
44
|
-
activity_id: string;
|
|
45
|
-
data: {
|
|
46
|
-
content: string;
|
|
47
|
-
};
|
|
48
|
-
parent: string;
|
|
49
|
-
latest_children: {};
|
|
50
|
-
children_counts: {};
|
|
51
|
-
})[];
|
|
24
|
+
}[];
|
|
52
25
|
duration: string;
|
|
53
26
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IBadgesObject } from '../../../user/badge';
|
|
2
1
|
import type { EnrichedUser } from 'getstream';
|
|
3
2
|
export interface IUser extends EnrichedUser {
|
|
4
3
|
error?: string;
|
|
@@ -10,6 +9,5 @@ export interface IUser extends EnrichedUser {
|
|
|
10
9
|
country?: string;
|
|
11
10
|
};
|
|
12
11
|
thumbnail?: string;
|
|
13
|
-
badges?: IBadgesObject;
|
|
14
12
|
};
|
|
15
13
|
}
|
|
@@ -12,7 +12,7 @@ export default function transform<T extends InputNodeTypes>(node: MdastNode, opt
|
|
|
12
12
|
position?: any;
|
|
13
13
|
ordered?: boolean | undefined;
|
|
14
14
|
checked?: any;
|
|
15
|
-
depth?: 1 | 2 | 3 | 4 |
|
|
15
|
+
depth?: 1 | 2 | 3 | 4 | 6 | 5 | undefined;
|
|
16
16
|
lang?: string | undefined;
|
|
17
17
|
spread?: any;
|
|
18
18
|
indent?: any;
|