@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.
- package/discussion/components/post/index.d.ts +1 -0
- package/discussion/components/post/post.d.ts +8 -4
- package/discussion/index.d.ts +2 -1
- package/general/link/link.d.ts +2 -2
- package/general/tooltip/index.d.ts +0 -1
- package/helpers/intl.d.ts +1 -1
- package/index.js +53 -53
- package/index.mjs +6005 -6072
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_general.scss +0 -1
- package/user/member/member.d.ts +1 -0
- package/discussion/components/likes/likes-modal.d.ts +0 -25
- package/general/tooltip/tooltip-linkset.hook.d.ts +0 -1
|
@@ -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
|
|
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
|
|
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:
|
|
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, }:
|
|
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;
|
package/discussion/index.d.ts
CHANGED
|
@@ -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';
|
package/general/link/link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
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 }:
|
|
36
|
+
declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export default Link;
|
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
|
-
|
|
157
|
+
discussion_likes_more: string;
|
|
158
158
|
discussion_likes_like: string;
|
|
159
159
|
discussion_likes_unlike: string;
|
|
160
160
|
discussion_likes_show: string;
|