@apolitical/component-library 8.11.2-ck → 8.11.2-oa.2

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 */
@@ -122,6 +122,7 @@ export interface IDiscussionPostProps {
122
122
  body?: string | undefined;
123
123
  }>;
124
124
  };
125
+ hideReply?: boolean;
125
126
  }
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;
127
+ 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 }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
127
128
  export default Post;
@@ -26,6 +26,12 @@ export declare function addItem<ICacheItem extends ICacheItemBase>(item: ICacheI
26
26
  pageParams: string[];
27
27
  };
28
28
  export declare function findItem<ICacheItem extends ICacheItemBase>(itemId: string, cache?: ICache<ICacheItem>): ICacheItem | undefined;
29
- export declare function removeItem<ICacheItem extends ICacheItemBase>(itemId: string, cache: ICache<ICacheItem>): ICache<ICacheItem>;
29
+ export declare function removeItem<ICacheItem extends ICacheItemBase>(itemId: string, cache: ICache<ICacheItem>): {
30
+ pages: {
31
+ results: ICacheItem[];
32
+ next: string;
33
+ }[];
34
+ pageParams: string[];
35
+ };
30
36
  export declare function flattenCache<ICacheItem extends ICacheItemBase>(cache?: ICache<ICacheItem>): ICacheItem[];
31
37
  export {};
@@ -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;