@apolitical/component-library 8.11.2 → 8.11.3-ra.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/post.d.ts +4 -1
- package/index.js +86 -86
- package/index.mjs +6606 -6603
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { IPollFns, IPollProps } from '../../../polls';
|
|
3
3
|
import type { IMemberComponentProps } from '../../../user';
|
|
4
4
|
import type { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, DiscussionListLikesFunction, IDiscussionFormFns, IForceHide, IFullDiscussionContent } from '../../../discussion/shared';
|
|
5
|
+
import { DiscussionType } from '../../../discussion/shared';
|
|
5
6
|
import type { IBadgesOption } from '../../../user/badges';
|
|
6
7
|
export interface IPostContent extends IFullDiscussionContent {
|
|
7
8
|
/** The post body */
|
|
@@ -123,6 +124,8 @@ export interface IDiscussionPostProps {
|
|
|
123
124
|
}>;
|
|
124
125
|
};
|
|
125
126
|
hideReply?: boolean;
|
|
127
|
+
/** The type of discussion context (communities or courses) */
|
|
128
|
+
discussionType?: DiscussionType;
|
|
126
129
|
}
|
|
127
|
-
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, disableMentions, onClick: onClickPost, translation, hideReply }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, disableMentions, onClick: onClickPost, translation, hideReply, discussionType, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
128
131
|
export default Post;
|