@apolitical/component-library 1.18.0-4247.39 → 1.18.0-4247.57

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, IFullDiscussionContent } from '../../discussion';
2
+ import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, IForceHide, IFullDiscussionContent } from '../../discussion';
3
3
  interface Props {
4
4
  /** The element that will render around the content */
5
5
  element?: 'li' | 'div' | 'section' | 'article';
@@ -11,6 +11,8 @@ interface Props {
11
11
  isLoading?: boolean;
12
12
  /** The ID of the original post author, for threads */
13
13
  originalAuthorId?: string;
14
+ /** Customisation of the components */
15
+ forceHide?: IForceHide;
14
16
  /** The functions that are passed in to handle the functionality */
15
17
  functions: {
16
18
  content: {
@@ -48,5 +50,5 @@ interface Props {
48
50
  /** If the post content is truncated */
49
51
  isTruncated?: boolean;
50
52
  }
51
- declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, functions: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, comments: { openComments }, }, links, className, gtmContext, children, isTruncated, }: Props) => import("react/jsx-runtime").JSX.Element;
53
+ declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, forceHide, functions: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, comments: { openComments }, }, links, className, gtmContext, children, isTruncated, }: Props) => import("react/jsx-runtime").JSX.Element;
52
54
  export default Post;