@apolitical/component-library 5.1.1-SW.1 → 5.1.1-jc.1
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 +0 -1
- package/discussion/components/post/post.d.ts +4 -8
- package/discussion/index.d.ts +1 -2
- package/general/buttons/button/button.d.ts +1 -0
- package/index.js +49 -49
- package/index.mjs +3576 -3602
- package/package.json +1 -1
- package/sections/full-width-section/full-width-section.d.ts +2 -0
- package/style.css +1 -1
- package/styles/variables/colors/_colors.scss +2 -0
- package/styles/variables/colors/theme/_base.scss +1 -1
- package/styles/variables/colors/theme/_layout.scss +1 -1
- package/user/member/member.d.ts +0 -3
|
@@ -2,17 +2,15 @@ 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
|
-
|
|
5
|
+
interface PostContent extends IFullDiscussionContent {
|
|
6
6
|
/** The post body */
|
|
7
7
|
postBody?: string;
|
|
8
|
-
/** Custom message to pass through to the Member component */
|
|
9
|
-
memberCustomMessage?: string;
|
|
10
8
|
}
|
|
11
|
-
|
|
9
|
+
interface Props {
|
|
12
10
|
/** The element that will render around the content */
|
|
13
11
|
element?: 'li' | 'div' | 'section' | 'article';
|
|
14
12
|
/** Information about the content being posted */
|
|
15
|
-
content:
|
|
13
|
+
content: PostContent;
|
|
16
14
|
/** If the user has permission to interact with the post box and content, e.g. if they're a member of the community */
|
|
17
15
|
userHasPermissions?: boolean;
|
|
18
16
|
/** If the user has owner permissions, e.g. if they're a community owner */
|
|
@@ -75,8 +73,6 @@ export interface IDiscussionPostProps {
|
|
|
75
73
|
styling?: {
|
|
76
74
|
/** Option of whether or not to show the copy link button */
|
|
77
75
|
showShareLinkButton?: boolean;
|
|
78
|
-
/** Option of whether or not to show the more menu button */
|
|
79
|
-
showMoreMenuButton?: boolean;
|
|
80
76
|
};
|
|
81
77
|
/** If the browser should focus on this post */
|
|
82
78
|
setFocus?: boolean;
|
|
@@ -85,5 +81,5 @@ export interface IDiscussionPostProps {
|
|
|
85
81
|
/** Whether to show badges and the scope of the badge */
|
|
86
82
|
badges?: IBadgesOption;
|
|
87
83
|
}
|
|
88
|
-
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, styling: { showShareLinkButton
|
|
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;
|
|
89
85
|
export default Post;
|
package/discussion/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './feeds';
|
|
3
|
-
export * from './discussion.helpers';
|
|
4
3
|
export * from './sections';
|
|
5
|
-
export type {
|
|
4
|
+
export type { IMentionData, IMentions, IListMemberData } from './discussion.d';
|