@medipha/feed 0.2.3 → 0.2.4

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.
@@ -13,5 +13,7 @@ export interface PostCardProps {
13
13
  statusOnTop?: boolean;
14
14
  /** Buttons at the right of the header, e.g. "Sửa" on the author's own list. */
15
15
  headerActions?: ReactNode;
16
+ /** Author's own list: create, view, edit and delete only, so no publish menu. */
17
+ hideModeration?: boolean;
16
18
  }
17
- export declare function PostCard({ post, mode, footer, onChange, onRemoved, composerSlot, statusOnTop, headerActions, }: PostCardProps): import('react/jsx-runtime').JSX.Element;
19
+ export declare function PostCard({ post, mode, footer, onChange, onRemoved, composerSlot, statusOnTop, headerActions, hideModeration, }: PostCardProps): import('react/jsx-runtime').JSX.Element;
@@ -7,6 +7,7 @@ interface PostListProps {
7
7
  renderFooter?: (post: FeedPost) => ReactNode;
8
8
  renderHeaderActions?: (post: FeedPost) => ReactNode;
9
9
  statusOnTop?: boolean;
10
+ hideModeration?: boolean;
10
11
  }
11
- export declare function PostList({ list, emptyText, renderFooter, renderHeaderActions, statusOnTop, }: PostListProps): import('react/jsx-runtime').JSX.Element;
12
+ export declare function PostList({ list, emptyText, renderFooter, renderHeaderActions, statusOnTop, hideModeration, }: PostListProps): import('react/jsx-runtime').JSX.Element;
12
13
  export {};