@apolitical/component-library 5.2.0-jc.8 → 5.2.0-jc.9
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/index.d.ts +1 -0
- package/communities/members-list/members-list.constants.d.ts +1 -0
- package/discussion/feeds/activities-feed/activities-feed.d.ts +1 -1
- package/discussion/feeds/activities-feed/cache/cache.helper.d.ts +5 -0
- package/discussion/feeds/replies-feed/cache/cache.helper.d.ts +16 -0
- package/discussion/sections/activity-section/activity-section.d.ts +1 -1
- package/index.js +36 -36
- package/index.mjs +684 -679
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/helper-text-box/helper-text-box.d.ts +2 -2
- package/text/helper-text-box/index.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MEMBERS_PER_PAGE = 25;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type IProfileFormProps } from '../../../form';
|
|
3
3
|
import type { IMentionsFns } from '../../../discussion/discussion.d';
|
|
4
4
|
import type { IQueryFns } from './cache';
|
|
5
|
-
import { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
5
|
+
import type { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
6
6
|
interface Props {
|
|
7
7
|
/** The base path, used for slugs */
|
|
8
8
|
basePath: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ICache, ICacheItem, ICacheItems } from './cache.interface';
|
|
2
|
+
export declare function addItem(item: ICacheItem, cache?: ICache, replace?: boolean): ICache;
|
|
3
|
+
export declare function findItem(itemId: string, cache?: ICache): import("../../..").IActivity | undefined;
|
|
4
|
+
export declare function removeItem(itemId: string, cache: ICache): ICache;
|
|
5
|
+
export declare function flattenCache(cache?: ICache): ICacheItems;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ICache, ICacheItem, ICacheItems } from './cache.interface';
|
|
2
|
+
interface IAdditionOptions {
|
|
3
|
+
append?: boolean;
|
|
4
|
+
replace?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function addItem(item: ICacheItem, cache?: ICache, opts?: IAdditionOptions): {
|
|
7
|
+
pages: {
|
|
8
|
+
next: string;
|
|
9
|
+
results: import("../../..").IReaction[];
|
|
10
|
+
}[];
|
|
11
|
+
pageParams: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare function findItem(itemId: string, cache?: ICache): import("../../..").IReaction | undefined;
|
|
14
|
+
export declare function removeItem(itemId: string, cache: ICache): ICache;
|
|
15
|
+
export declare function flattenCache(cache?: ICache): ICacheItems;
|
|
16
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { type IProfileFormProps } from '../../../form';
|
|
|
3
3
|
import { type IRepliesFeedQueryFns } from '../../../discussion/feeds';
|
|
4
4
|
import type { IMentionsFns } from './../../discussion.d';
|
|
5
5
|
import { type IQueryFns } from './cache';
|
|
6
|
-
import { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
6
|
+
import type { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
7
7
|
interface IActivitySectionQueryFns extends IQueryFns {
|
|
8
8
|
remove: () => Promise<void>;
|
|
9
9
|
}
|