@apolitical/component-library 8.7.24 → 8.7.25-ac.1
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/replies-feed/cache/hooks/feed/index.d.ts +1 -1
- package/discussion/feeds/replies-feed/cache/hooks/feed/parse-replies/index.d.ts +1 -0
- package/discussion/feeds/replies-feed/cache/hooks/feed/parse-replies/parse-replies.d.ts +2 -1
- package/discussion/feeds/replies-feed/mocks/replies-feed.mock.d.ts +12 -0
- package/index.js +115 -115
- package/index.mjs +6105 -6082
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './feed.hook';
|
|
2
|
-
export { IParsedReplies } from './parse-replies';
|
|
2
|
+
export { type IParsedReplies } from './parse-replies';
|
|
@@ -22,9 +22,10 @@ export interface IParsedReplies {
|
|
|
22
22
|
user: EnrichedUser<DefaultGenerics> | undefined;
|
|
23
23
|
locale?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare function parseReplies({ replies, user, replyType, }: {
|
|
25
|
+
export declare function parseReplies({ replies, user, replyType, currentLocale, }: {
|
|
26
26
|
replies: IReaction[];
|
|
27
27
|
user: IUserContext;
|
|
28
28
|
replyType?: DiscussionType;
|
|
29
|
+
currentLocale?: string;
|
|
29
30
|
}): IParsedReplies[];
|
|
30
31
|
export {};
|
|
@@ -22,6 +22,16 @@ export declare const repliesFeedMock: {
|
|
|
22
22
|
activity_id: string;
|
|
23
23
|
data: {
|
|
24
24
|
content: string;
|
|
25
|
+
payload: {
|
|
26
|
+
id: string;
|
|
27
|
+
collection: string;
|
|
28
|
+
data: {
|
|
29
|
+
original: {
|
|
30
|
+
body: string;
|
|
31
|
+
locale: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
25
35
|
};
|
|
26
36
|
parent: string;
|
|
27
37
|
latest_children: {
|
|
@@ -49,6 +59,7 @@ export declare const repliesFeedMock: {
|
|
|
49
59
|
activity_id: string;
|
|
50
60
|
data: {
|
|
51
61
|
content: string;
|
|
62
|
+
payload?: undefined;
|
|
52
63
|
};
|
|
53
64
|
parent: string;
|
|
54
65
|
latest_children: {
|
|
@@ -120,6 +131,7 @@ export declare const repliesFeedMock: {
|
|
|
120
131
|
activity_id: string;
|
|
121
132
|
data: {
|
|
122
133
|
content: string;
|
|
134
|
+
payload?: undefined;
|
|
123
135
|
};
|
|
124
136
|
parent: string;
|
|
125
137
|
latest_children: {
|