@apolitical/component-library 8.8.2 → 8.9.1-re.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/discussion/components/form/form.type.d.ts +2 -0
- package/discussion/discussion.helpers.d.ts +1 -1
- package/discussion/shared/interfaces/discussion.interface.d.ts +3 -0
- package/helpers/intl.d.ts +3 -0
- package/index.js +156 -143
- package/index.mjs +17288 -15863
- package/package.json +1 -1
- package/style.css +1 -1
- package/user/member/member.types.d.ts +1 -1
|
@@ -41,6 +41,8 @@ export interface IDiscussionFormMeta {
|
|
|
41
41
|
showDivider?: boolean;
|
|
42
42
|
/** Whether the success message should show on a successful submit */
|
|
43
43
|
showSuccessMessage?: boolean;
|
|
44
|
+
/** Whether anonymous posts are allowed */
|
|
45
|
+
allowAnonymousPosts?: boolean;
|
|
44
46
|
}
|
|
45
47
|
export interface IDiscussionForm {
|
|
46
48
|
/** A unique ID for the form */
|
|
@@ -4,7 +4,7 @@ export declare const transformSlugs: (slugs: {
|
|
|
4
4
|
}) => {
|
|
5
5
|
[key: string]: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const getAuthorData: (author: IUser) => "deleted" | {
|
|
7
|
+
export declare const getAuthorData: (author: IUser, isAnonymous?: boolean) => "anonymous" | "deleted" | {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
organization: string;
|
|
@@ -42,6 +42,9 @@ export interface IFullDiscussionContent extends IDiscussionContent {
|
|
|
42
42
|
body?: string;
|
|
43
43
|
/** The author of the post */
|
|
44
44
|
author: MemberProps;
|
|
45
|
+
/** The ID of the unanonymized post author, for identifying the original author when the post is anonymous
|
|
46
|
+
and the user is the author of the post */
|
|
47
|
+
unanonymizedAuthorId?: string;
|
|
45
48
|
/** The post categories */
|
|
46
49
|
categories?: ICategory[];
|
|
47
50
|
createdAt: Date | string;
|
package/helpers/intl.d.ts
CHANGED
|
@@ -155,6 +155,9 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
155
155
|
discussionFormCard_overlay_cta_continue: string;
|
|
156
156
|
discussion_form_postType_label: string;
|
|
157
157
|
'discussion_form__postType_no-category': string;
|
|
158
|
+
discussion_form_isAnonymous_label: string;
|
|
159
|
+
discussion_form_isAnonymous_tooltip_content: string;
|
|
160
|
+
discussion_form_member_anonymous_infoMsg: string;
|
|
158
161
|
discussion_form_title: string;
|
|
159
162
|
discussion_form_titleField_label: string;
|
|
160
163
|
discussion_form_titleField_placeholder: string;
|