@apolitical/component-library 5.3.7-jc.3 → 5.3.8
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/likes/likes.d.ts +2 -4
- package/index.js +36 -36
- package/index.mjs +1296 -1293
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MemberProps } from '../../../user';
|
|
3
3
|
import { IDiscussionContent } from './../../discussion';
|
|
4
4
|
import { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
5
5
|
interface Props {
|
|
@@ -23,8 +23,6 @@ interface Props {
|
|
|
23
23
|
basePath: string;
|
|
24
24
|
/** The ID of the parent, used for slugs */
|
|
25
25
|
parentId: string;
|
|
26
|
-
/** Whether to show badges and the scope of the badge */
|
|
27
|
-
badges: IBadgesOption | undefined;
|
|
28
26
|
/** Functions to handle liking and unliking */
|
|
29
27
|
functions: {
|
|
30
28
|
/** Function to create a like */
|
|
@@ -37,7 +35,7 @@ interface Props {
|
|
|
37
35
|
/** The language to use for the text */
|
|
38
36
|
locale?: string;
|
|
39
37
|
}
|
|
40
|
-
declare const Likes: ({ element, likes, peopleWhoLiked, isShort, userLiked, content, canLike, functions: { createLike, deleteLike, listLikes, },
|
|
38
|
+
declare const Likes: ({ element, likes, peopleWhoLiked, isShort, userLiked, content, canLike, activityId, basePath, parentId, functions: { createLike, deleteLike, listLikes, }, }: Props) => React.DetailedReactHTMLElement<{
|
|
41
39
|
className: string;
|
|
42
40
|
onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
43
41
|
onMouseEnter: () => void;
|