@apolitical/component-library 5.2.0-jc.3 → 5.2.0-jc.4

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.
@@ -0,0 +1 @@
1
+ export * from './likes-modal';
@@ -0,0 +1 @@
1
+ export { default as LikesModal } from './likes-modal';
@@ -1,10 +1,10 @@
1
- import { IBadgesOption } from '../../../user/badges';
2
- import { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
1
+ import { ILikesFeedQueryFns } from '../../../../../discussion/feeds';
2
+ import { IBadgesOption } from '../../../../../user';
3
3
  export interface ILikesModalProps {
4
4
  /** Whether the modal is open on page load */
5
5
  showModal?: boolean;
6
6
  /** The number of likes */
7
- likes?: number;
7
+ likeCount?: number;
8
8
  /** The ID of the activity to show likes for */
9
9
  activityId: string;
10
10
  /** The base path, used for slugs */
@@ -24,5 +24,5 @@ export interface ILikesModalProps {
24
24
  /** Additional classes */
25
25
  className?: string;
26
26
  }
27
- declare const LikesModal: ({ showModal, activityId, functions: { onClose, likes: likesFns }, badges, likes, className, basePath, parentId, }: ILikesModalProps) => import("react/jsx-runtime").JSX.Element;
27
+ declare const LikesModal: ({ showModal, activityId, functions: { onClose, likes: likesFns }, badges, likeCount, className, basePath, parentId, }: ILikesModalProps) => import("react/jsx-runtime").JSX.Element;
28
28
  export default LikesModal;
@@ -1,2 +1,2 @@
1
1
  export { default as DiscussionLikes } from './likes';
2
- export { default as LikesModal } from './likes-modal';
2
+ export { default as LikesModal } from './components/likes-modal/likes-modal';
@@ -0,0 +1 @@
1
+ export * from './likes-response.mock';
@@ -0,0 +1,5 @@
1
+ import { Dispatch } from 'react';
2
+ export declare function useOnTooltipKeyDown(dispatch: Dispatch<{
3
+ type: 'tabbableLink';
4
+ value: number;
5
+ }[]>): (e: React.KeyboardEvent<HTMLElement> | undefined) => void;
@@ -1,2 +1,3 @@
1
1
  export * from './activities-feed';
2
2
  export * from './replies-feed';
3
+ export * from './likes-feed';
@@ -1,5 +1,5 @@
1
- import { IQueryFns } from '../../../discussion/feeds/likes-feed/cache';
2
1
  import { type IBadgesOption } from '../../../user';
2
+ import { IQueryFns } from './cache';
3
3
  interface Props {
4
4
  /** Whether to show badges and the scope of the badge */
5
5
  badges?: IBadgesOption;
@@ -11,10 +11,12 @@ interface Props {
11
11
  activityId: string;
12
12
  /** The initial number of likes */
13
13
  initialLikeCount: number;
14
+ /** The total number of likes */
15
+ likeCount: number;
14
16
  /** Functions for the replies query */
15
17
  functions: {
16
18
  likes: IQueryFns;
17
19
  };
18
20
  }
19
- export default function LikesFeed({ badges, basePath, parentId, activityId, initialLikeCount, functions, }: Props): import("react/jsx-runtime").JSX.Element;
21
+ export default function LikesFeed({ badges, basePath, parentId, activityId, initialLikeCount, likeCount, functions, }: Props): import("react/jsx-runtime").JSX.Element;
20
22
  export {};