@apolitical/component-library 8.11.2-ck → 8.11.3-ra.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.
@@ -10,6 +10,8 @@ interface Props {
10
10
  form: IDiscussionForm;
11
11
  /** The categories to show in the form */
12
12
  categories?: ICategory[];
13
+ /** Determines whether or not to display the form*/
14
+ isHidden?: boolean;
13
15
  /** Details about what a user needs to have to be able to access the form */
14
16
  membershipRequiredToPost: {
15
17
  /** Whether the user needs to be a member of the community to post */
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { IPollFns, IPollProps } from '../../../polls';
3
3
  import type { IMemberComponentProps } from '../../../user';
4
4
  import type { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, DiscussionListLikesFunction, IDiscussionFormFns, IForceHide, IFullDiscussionContent } from '../../../discussion/shared';
5
+ import { DiscussionType } from '../../../discussion/shared';
5
6
  import type { IBadgesOption } from '../../../user/badges';
6
7
  export interface IPostContent extends IFullDiscussionContent {
7
8
  /** The post body */
@@ -122,6 +123,9 @@ export interface IDiscussionPostProps {
122
123
  body?: string | undefined;
123
124
  }>;
124
125
  };
126
+ hideReply?: boolean;
127
+ /** The type of discussion context (communities or courses) */
128
+ discussionType?: DiscussionType;
125
129
  }
126
- declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, disableMentions, onClick: onClickPost, translation, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
130
+ declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, disableMentions, onClick: onClickPost, translation, hideReply, discussionType, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
127
131
  export default Post;
@@ -2,7 +2,6 @@ export * from './activity.interface';
2
2
  export * from './community.category.interface';
3
3
  export * from './context.interface';
4
4
  export * from './discussion.interface';
5
- export * from './error.interface';
6
5
  export * from './payload.interface';
7
6
  export * from './reaction.interface';
8
7
  export * from './user.interface';
package/helpers/intl.d.ts CHANGED
@@ -186,9 +186,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
186
186
  discussion_form_error_loggedOut: string;
187
187
  discussion_form_error_noPermission: string;
188
188
  discussion_form_error_alreadyExists: string;
189
- discussion_form_error_insufficientWordCount: string;
190
- discussion_form_error_emailDetected: string;
191
- discussion_form_error_moderationRejected: string;
192
189
  discussion_form_title_question: string;
193
190
  discussion_form_placeholder_question: string;
194
191
  discussion_form_explainer_question: string;