@apolitical/component-library 1.16.0-4186.49 → 1.16.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/cache/hooks/like/like.hook.d.ts +1 -1
- package/discussion/feeds/activities-feed/cache/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/interfaces/cache.interface.d.ts +2 -1
- package/discussion/feeds/activities-feed/cache/mocks/cache.mock.d.ts +4 -4
- package/discussion/feeds/activities-feed/cache/mocks/context.mock.d.ts +3 -3
- package/index.js +10 -10
- package/index.mjs +640 -642
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IMutationProps, IHandlerContext, ICacheSubitem } from '../../interfaces';
|
|
2
2
|
interface ILikeVars {
|
|
3
3
|
activityId: string;
|
|
4
|
-
reactionId
|
|
4
|
+
reactionId?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function useLikeActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError, }, queryClient, queryKey, }: IMutationProps): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<ICacheSubitem, Error, ILikeVars, IHandlerContext>;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EnrichedActivity, EnrichedReaction } from 'getstream';
|
|
1
|
+
import type { EnrichedActivity, EnrichedReaction, EnrichedUser } from 'getstream';
|
|
2
2
|
export type ICacheItem = EnrichedActivity;
|
|
3
3
|
export type ICacheItems = ICacheItem[];
|
|
4
4
|
export type ICacheSubitem = EnrichedReaction;
|
|
5
|
+
export type ICacheUser = EnrichedUser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const cacheMock1: readonly import("
|
|
2
|
-
export declare const cacheMock2: readonly import("
|
|
3
|
-
export declare const cacheMock3: readonly import("
|
|
4
|
-
export declare const cacheMock4: readonly import("
|
|
1
|
+
export declare const cacheMock1: readonly import("..").ICacheItem[];
|
|
2
|
+
export declare const cacheMock2: readonly import("..").ICacheItem[];
|
|
3
|
+
export declare const cacheMock3: readonly import("..").ICacheItem[];
|
|
4
|
+
export declare const cacheMock4: readonly import("..").ICacheItem[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const contextMock1: Readonly<{
|
|
2
|
-
data: readonly import("
|
|
2
|
+
data: readonly import("..").ICacheItem[];
|
|
3
3
|
}>;
|
|
4
4
|
export declare const contextMock2: Readonly<{
|
|
5
|
-
data: readonly import("
|
|
5
|
+
data: readonly import("..").ICacheItem[];
|
|
6
6
|
}>;
|
|
7
7
|
export declare const contextMock3: Readonly<{
|
|
8
|
-
data: readonly import("
|
|
8
|
+
data: readonly import("..").ICacheItem[];
|
|
9
9
|
}>;
|