@apolitical/component-library 5.0.6 → 5.0.7-ac.0
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/feeds/activities-feed/activities-feed.d.ts +5 -0
- package/discussion/feeds/activities-feed/cache/hooks/list/list.hook.d.ts +5 -2
- package/index.js +32 -32
- package/index.mjs +5435 -5428
- package/navigation/filters/filters.d.ts +5 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_navigation.scss +3 -3
|
@@ -11,6 +11,11 @@ interface Props {
|
|
|
11
11
|
isMember: boolean;
|
|
12
12
|
/** Whether the user is an owner of the community */
|
|
13
13
|
isOwner: boolean;
|
|
14
|
+
/** The categories for the community */
|
|
15
|
+
categories: {
|
|
16
|
+
name: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
}[];
|
|
14
19
|
/** Functions for the activities query */
|
|
15
20
|
functions: {
|
|
16
21
|
/** Query functions for the activities */
|
|
@@ -3,9 +3,12 @@ import type { ICache, ICachePage } from '../..';
|
|
|
3
3
|
export interface IListActivitiesArgs {
|
|
4
4
|
queryFn: (_: unknown) => Promise<ICachePage>;
|
|
5
5
|
queryKey: QueryKey;
|
|
6
|
-
|
|
6
|
+
filterOption?: {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
|
-
export declare function useListActivities({ queryFn, queryKey,
|
|
11
|
+
export declare function useListActivities({ queryFn, queryKey, filterOption, }: IListActivitiesArgs): {
|
|
9
12
|
activities: import("../..").ICacheItems;
|
|
10
13
|
error: Error | null;
|
|
11
14
|
isLoading: boolean;
|