@apolitical/component-library 1.18.0-4247.55 → 1.18.0-4247.58
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.
|
@@ -11,7 +11,7 @@ interface Props {
|
|
|
11
11
|
isLoading?: boolean;
|
|
12
12
|
/** The ID of the original post author, for threads */
|
|
13
13
|
originalAuthorId?: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Allows the hiding of certain elements within the post */
|
|
15
15
|
forceHide?: IForceHide;
|
|
16
16
|
/** The functions that are passed in to handle the functionality */
|
|
17
17
|
functions: {
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { IQueryFns } from './cache';
|
|
3
3
|
interface Props {
|
|
4
4
|
basePath: string;
|
|
5
5
|
parentId: string;
|
|
6
6
|
isMember: boolean;
|
|
7
7
|
functions: {
|
|
8
|
-
|
|
9
|
-
edit: (_: unknown) => Promise<ICacheItem>;
|
|
8
|
+
activities: IQueryFns;
|
|
10
9
|
join: () => Promise<void>;
|
|
11
10
|
leave: () => Promise<void>;
|
|
12
|
-
like: (_: unknown) => Promise<ICacheSubitem>;
|
|
13
|
-
list: (_: unknown) => Promise<ICachePage>;
|
|
14
|
-
remove: (_: unknown) => Promise<void>;
|
|
15
|
-
unlike: (_: unknown) => Promise<ICacheSubitem>;
|
|
16
11
|
};
|
|
17
12
|
}
|
|
18
13
|
declare const ActivitiesFeed: React.FC<Props>;
|
|
@@ -2,7 +2,7 @@ import type { IMutationContext } from '../../../../../../discussion/shared';
|
|
|
2
2
|
import type { ICache, ICacheItem } from '../..';
|
|
3
3
|
interface IEditVars {
|
|
4
4
|
activityId: string;
|
|
5
|
-
|
|
5
|
+
content: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function useEditActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError, }, }: IMutationContext<ICacheItem, Error, IEditVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<import('../../../../../../discussion/shared').IActivity, Error, IEditVars, ICache>;
|
|
8
8
|
export {};
|