@apolitical/component-library 8.7.6 → 8.7.7
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 +3 -1
- package/discussion/feeds/activities-feed/index.d.ts +1 -1
- package/discussion/index.d.ts +1 -0
- package/discussion/sections/activity-section/index.d.ts +1 -0
- package/index.d.ts +1 -1
- package/index.js +136 -136
- package/index.mjs +4295 -4291
- package/package.json +1 -1
|
@@ -97,6 +97,8 @@ export interface IDiscussionPostProps {
|
|
|
97
97
|
/** The ID of the parent, used for slugs */
|
|
98
98
|
parentId: string;
|
|
99
99
|
disableMentions?: boolean;
|
|
100
|
+
/** The function to call when the post is clicked */
|
|
101
|
+
onClick?: (link?: string) => void;
|
|
100
102
|
}
|
|
101
|
-
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, locale, disableMentions, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, locale, disableMentions, onClick: onClickPost, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
102
104
|
export default Post;
|
package/discussion/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -22,4 +22,4 @@ export * from './text';
|
|
|
22
22
|
export * from './user';
|
|
23
23
|
export * from './helpers/cases';
|
|
24
24
|
export * from './helpers/prerender';
|
|
25
|
-
export { basicReducer, checkIntlPathExists, generateCssIcon, getLongDate, getShortDate, passwordValidator, } from './helpers';
|
|
25
|
+
export { basicReducer, checkIntlPathExists, generateCssIcon, getLongDate, getShortDate, passwordValidator, safeBase64Encode, } from './helpers';
|