@apolitical/component-library 5.5.5 → 5.5.6-ac.0

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.
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ import { IMoreMenuOptions } from '../../../navigation';
3
+ import { DiscussionListLikesFunction, IForceHide } from '../../discussion';
4
+ import { IPostContent } from '../post';
5
+ import { DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction } from '../../shared';
6
+ interface Props {
7
+ /** The base path for the content */
8
+ basePath: string;
9
+ /** Additional classes */
10
+ className?: string;
11
+ /** Information about the content being posted */
12
+ content: IPostContent;
13
+ /** Allows the hiding of certain elements */
14
+ forceHide?: IForceHide;
15
+ functions: {
16
+ likes: {
17
+ /** Create a new like on the post */
18
+ createLike: DiscussionCreateLikeFunction;
19
+ /** Delete a like on the post */
20
+ deleteLike: DiscussionDeleteLikeFunction;
21
+ /** List the likes on the post */
22
+ listLikes: DiscussionListLikesFunction;
23
+ };
24
+ comments: {
25
+ /** Open comments on a post */
26
+ openComments?: () => void;
27
+ };
28
+ replies: {
29
+ handleReplyClick?: () => void;
30
+ };
31
+ };
32
+ /** The GTM context */
33
+ gtmContext?: string;
34
+ /** Optional `href`s for the card to link to */
35
+ links?: {
36
+ post?: string;
37
+ comments?: string;
38
+ };
39
+ /** Options for the more menu */
40
+ moreMenuOptions?: IMoreMenuOptions[];
41
+ /** The parent ID for the content */
42
+ parentId: string;
43
+ /** Optional styling options */
44
+ styling?: {
45
+ /** Option of whether or not to show the copy link button */
46
+ showShareLinkButton?: boolean;
47
+ /** Option of whether or not to show the more menu button */
48
+ showMoreMenuButton?: boolean;
49
+ };
50
+ }
51
+ declare const ActionBar: React.FC<Props>;
52
+ export default ActionBar;
@@ -0,0 +1 @@
1
+ export { default as ActionBar } from './action-bar';
@@ -94,5 +94,5 @@ export interface IDiscussionPostProps {
94
94
  /** The ID of the parent, used for slugs */
95
95
  parentId: string;
96
96
  }
97
- declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton, showMoreMenuButton }, setFocus, isCommunity, badges, categories, basePath, parentId, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
97
+ declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling, setFocus, isCommunity, badges, categories, basePath, parentId, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
98
98
  export default Post;