@apolitical/component-library 5.0.2-jc.0 → 5.0.3-SW.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.
@@ -1,2 +1,3 @@
1
+ export type { IDiscussionPostProps, IPostContent } from './post';
1
2
  export { default as DiscussionPost } from './post';
2
3
  export { getPostBody } from './post.helpers';
@@ -2,15 +2,17 @@ import React from 'react';
2
2
  import { type ListMembers, ClickMentionFallback } from '../../../form';
3
3
  import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, IForceHide, IFullDiscussionContent } from '../../discussion';
4
4
  import { IBadgesOption } from '../../../user/badges';
5
- interface PostContent extends IFullDiscussionContent {
5
+ export interface IPostContent extends IFullDiscussionContent {
6
6
  /** The post body */
7
7
  postBody?: string;
8
+ /** Custom message to pass through to the Member component */
9
+ memberCustomMessage?: string;
8
10
  }
9
- interface Props {
11
+ export interface IDiscussionPostProps {
10
12
  /** The element that will render around the content */
11
13
  element?: 'li' | 'div' | 'section' | 'article';
12
14
  /** Information about the content being posted */
13
- content: PostContent;
15
+ content: IPostContent;
14
16
  /** If the user has permission to interact with the post box and content, e.g. if they're a member of the community */
15
17
  userHasPermissions?: boolean;
16
18
  /** If the user has owner permissions, e.g. if they're a community owner */
@@ -73,6 +75,8 @@ interface Props {
73
75
  styling?: {
74
76
  /** Option of whether or not to show the copy link button */
75
77
  showShareLinkButton?: boolean;
78
+ /** Option of whether or not to show the more menu button */
79
+ showMoreMenuButton?: boolean;
76
80
  };
77
81
  /** If the browser should focus on this post */
78
82
  setFocus?: boolean;
@@ -81,5 +85,5 @@ interface Props {
81
85
  /** Whether to show badges and the scope of the badge */
82
86
  badges?: IBadgesOption;
83
87
  }
84
- declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton }, setFocus, isCommunity, badges, }: Props) => import("react/jsx-runtime").JSX.Element;
88
+ declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton, showMoreMenuButton }, setFocus, isCommunity, badges, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
85
89
  export default Post;
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
2
  export * from './feeds';
3
+ export * from './discussion.helpers';
3
4
  export * from './sections';
4
- export type { IMentionData, IMentions, IListMemberData } from './discussion.d';
5
+ export type { IFullDiscussionContent, IMentionData, IMentions, IListMemberData, } from './discussion.d';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface ILinkProps {
2
+ interface Props {
3
3
  /** URL for link */
4
4
  href?: string | undefined;
5
5
  /** Content to rendered */
@@ -33,5 +33,5 @@ export interface ILinkProps {
33
33
  /** Data attributes for the link */
34
34
  'data-before'?: string;
35
35
  }
36
- declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }: ILinkProps) => import("react/jsx-runtime").JSX.Element;
36
+ declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
37
37
  export default Link;
@@ -1,2 +1 @@
1
1
  export { default as Tooltip } from './tooltip';
2
- export * from './tooltip-linkset.hook';
package/helpers/intl.d.ts CHANGED
@@ -154,7 +154,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
154
154
  discussion_form_explainer_question: string;
155
155
  discussion_likes: string;
156
156
  discussion_likes_short: string;
157
- discussion_likes_showAll: string;
157
+ discussion_likes_more: string;
158
158
  discussion_likes_like: string;
159
159
  discussion_likes_unlike: string;
160
160
  discussion_likes_show: string;