@apolitical/component-library 1.16.0-4186.18 → 1.16.0-4186.49
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/communities/members-list/members-list.d.ts +7 -6
- package/context/user/user.context.d.ts +1 -1
- package/context/user/user.hook.d.ts +1 -1
- package/context/user/user.provider.d.ts +1 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +1 -1
- package/discussion/feeds/activities-feed/cache/handlers/error.handler.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/handlers/index.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/handlers/mutate.handler.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/helpers/activity.helper.d.ts +21 -0
- package/discussion/feeds/activities-feed/cache/helpers/cache.helper.d.ts +4 -0
- package/discussion/feeds/activities-feed/cache/helpers/context.helper.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/helpers/index.d.ts +3 -0
- package/discussion/feeds/activities-feed/cache/hooks/create/create.hook.d.ts +6 -0
- package/discussion/feeds/activities-feed/cache/hooks/create/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/edit/edit.hook.d.ts +7 -0
- package/discussion/feeds/activities-feed/cache/hooks/edit/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/feed/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +7 -0
- package/discussion/feeds/activities-feed/cache/hooks/like/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/like/like.hook.d.ts +7 -0
- package/discussion/feeds/activities-feed/cache/hooks/list/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/list/list.hook.d.ts +7 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove/remove.hook.d.ts +6 -0
- package/discussion/feeds/activities-feed/cache/hooks/unlike/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/unlike/unlike.hook.d.ts +7 -0
- package/discussion/feeds/activities-feed/cache/index.d.ts +3 -0
- package/discussion/feeds/activities-feed/cache/interfaces/cache.interface.d.ts +4 -0
- package/discussion/feeds/activities-feed/cache/interfaces/handler.interface.d.ts +4 -0
- package/discussion/feeds/activities-feed/cache/interfaces/index.d.ts +4 -0
- package/discussion/feeds/activities-feed/cache/interfaces/mutation.interface.d.ts +12 -0
- package/discussion/feeds/activities-feed/cache/interfaces/query.interface.d.ts +9 -0
- package/discussion/feeds/activities-feed/cache/mocks/activity.mock.d.ts +44 -0
- package/discussion/feeds/activities-feed/cache/mocks/cache.mock.d.ts +4 -0
- package/discussion/feeds/activities-feed/cache/mocks/context.mock.d.ts +9 -0
- package/discussion/feeds/activities-feed/cache/mocks/index.d.ts +5 -0
- package/discussion/feeds/activities-feed/cache/mocks/reaction.mock.d.ts +20 -0
- package/discussion/feeds/activities-feed/cache/mocks/user.mock.d.ts +20 -0
- package/discussion/feeds/replies-feed/replies-feed.handlers.d.ts +1 -1
- package/discussion/feeds/replies-to-replies-feed/replies-to-replies-feed.handlers.d.ts +1 -1
- package/discussion/sections/activity-section/activity-section.handlers.d.ts +1 -1
- package/index.js +14 -14
- package/index.mjs +1965 -1871
- package/package.json +1 -1
- package/discussion/feeds/activities-feed/activities-feed.helpers.d.ts +0 -51
- package/discussion/feeds/activities-feed/activities-feed.hooks.d.ts +0 -34
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export function mockActivity({ user, content, verb }: {
|
|
2
|
-
user: any;
|
|
3
|
-
content: any;
|
|
4
|
-
verb?: string | undefined;
|
|
5
|
-
}): {
|
|
6
|
-
id: string;
|
|
7
|
-
actor: {
|
|
8
|
-
id: any;
|
|
9
|
-
data: {
|
|
10
|
-
name: any;
|
|
11
|
-
organization: any;
|
|
12
|
-
jobTitle: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
content: any;
|
|
16
|
-
latest_reactions: {
|
|
17
|
-
like: never[];
|
|
18
|
-
};
|
|
19
|
-
reaction_counts: {
|
|
20
|
-
like: number;
|
|
21
|
-
};
|
|
22
|
-
verb: string;
|
|
23
|
-
};
|
|
24
|
-
export function mockReaction({ user, activityId, kind }: {
|
|
25
|
-
user: any;
|
|
26
|
-
activityId: any;
|
|
27
|
-
kind?: string | undefined;
|
|
28
|
-
}): {
|
|
29
|
-
id: string;
|
|
30
|
-
user_id: any;
|
|
31
|
-
user: {
|
|
32
|
-
id: any;
|
|
33
|
-
data: {
|
|
34
|
-
name: any;
|
|
35
|
-
organization: any;
|
|
36
|
-
jobTitle: any;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
kind: string;
|
|
40
|
-
activity_id: any;
|
|
41
|
-
data: {};
|
|
42
|
-
parent: string;
|
|
43
|
-
latest_children: {};
|
|
44
|
-
children_counts: {};
|
|
45
|
-
};
|
|
46
|
-
export function parseActivity(activity: any, user: any): {
|
|
47
|
-
isAuthor: boolean;
|
|
48
|
-
userLiked: boolean;
|
|
49
|
-
likeId: any;
|
|
50
|
-
peopleWhoLiked: any;
|
|
51
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export function useActivitiesFeed({ queryKey, queryFns: { list, create, edit, remove, like, unlike, } }: {
|
|
2
|
-
queryKey: any;
|
|
3
|
-
queryFns: {
|
|
4
|
-
list: any;
|
|
5
|
-
create: any;
|
|
6
|
-
edit: any;
|
|
7
|
-
remove: any;
|
|
8
|
-
like: any;
|
|
9
|
-
unlike: any;
|
|
10
|
-
};
|
|
11
|
-
}): {
|
|
12
|
-
activities: unknown;
|
|
13
|
-
error: Error | null;
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
isFetching: boolean;
|
|
16
|
-
mutations: {
|
|
17
|
-
create: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, any, any, {
|
|
18
|
-
data: any;
|
|
19
|
-
}>;
|
|
20
|
-
edit: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, any, any, {
|
|
21
|
-
data: any;
|
|
22
|
-
}>;
|
|
23
|
-
remove: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, any, any, {
|
|
24
|
-
data: any;
|
|
25
|
-
}>;
|
|
26
|
-
like: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, any, any, {
|
|
27
|
-
data: any;
|
|
28
|
-
}>;
|
|
29
|
-
unlike: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, any, any, {
|
|
30
|
-
data: any;
|
|
31
|
-
}>;
|
|
32
|
-
};
|
|
33
|
-
user: import('../../../context').IUserContext | null;
|
|
34
|
-
};
|