@apolitical/component-library 8.3.21-re.6 → 8.3.22

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.
@@ -20,6 +20,7 @@ export interface IParsedReplies {
20
20
  createdAt: string;
21
21
  parent: string;
22
22
  user: EnrichedUser<DefaultGenerics> | undefined;
23
+ locale?: string;
23
24
  }
24
25
  export declare function parseReplies({ replies, user, replyType, }: {
25
26
  replies: IReaction[];
@@ -24,6 +24,7 @@ export declare const courseDiscussionRepliesFeedMock: {
24
24
  content: {
25
25
  original: string;
26
26
  };
27
+ locale: string;
27
28
  };
28
29
  parent: string;
29
30
  latest_children: {
@@ -53,6 +54,7 @@ export declare const courseDiscussionRepliesFeedMock: {
53
54
  content: {
54
55
  original: string;
55
56
  };
57
+ locale: string;
56
58
  };
57
59
  parent: string;
58
60
  latest_children: {
@@ -130,6 +132,37 @@ export declare const courseDiscussionRepliesFeedMock: {
130
132
  content: {
131
133
  original: string;
132
134
  };
135
+ locale: string;
136
+ };
137
+ parent: string;
138
+ latest_children: {
139
+ reply?: undefined;
140
+ };
141
+ children_counts: {
142
+ reply?: undefined;
143
+ };
144
+ own_children?: undefined;
145
+ } | {
146
+ created_at: string;
147
+ updated_at: string;
148
+ id: string;
149
+ user_id: string;
150
+ user: {
151
+ created_at: string;
152
+ updated_at: string;
153
+ id: string;
154
+ data: {
155
+ name: string;
156
+ badges?: undefined;
157
+ };
158
+ };
159
+ kind: string;
160
+ activity_id: string;
161
+ data: {
162
+ content: {
163
+ original: string;
164
+ };
165
+ locale?: undefined;
133
166
  };
134
167
  parent: string;
135
168
  latest_children: {
@@ -33,6 +33,13 @@ interface Props {
33
33
  /** Whether to show the replies */
34
34
  showReplies: boolean;
35
35
  type?: DiscussionType;
36
+ repliesFilters?: {
37
+ isEnabled?: boolean;
38
+ options?: {
39
+ label: string;
40
+ id: string;
41
+ }[];
42
+ };
36
43
  }
37
44
  declare const RepliesFeed: React.FC<Props>;
38
45
  export default RepliesFeed;
@@ -27,6 +27,13 @@ export interface IActivitySectionProps {
27
27
  /** The locale of the page */
28
28
  locale?: string;
29
29
  type?: DiscussionType;
30
+ repliesFilters?: {
31
+ isEnabled?: boolean;
32
+ options?: {
33
+ label: string;
34
+ id: string;
35
+ }[];
36
+ };
30
37
  }
31
38
  declare const ActivitySection: React.FC<IActivitySectionProps>;
32
39
  export default ActivitySection;
@@ -151,4 +151,11 @@ export declare const argsForCourseDiscussion: {
151
151
  join: () => Promise<void>;
152
152
  leave: () => Promise<void>;
153
153
  };
154
+ repliesFilters: {
155
+ isEnabled: boolean;
156
+ options: {
157
+ id: string;
158
+ label: string;
159
+ }[];
160
+ };
154
161
  };
package/helpers/intl.d.ts CHANGED
@@ -45,6 +45,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
45
45
  carousel_pagination_ariaLive: string;
46
46
  carousel_pagination_ariaLive_slide: string;
47
47
  activitySection_notFoundError: string;
48
+ activitySection_language_switcher_info: string;
49
+ activitySection_language_switcher_all_languages_option: string;
48
50
  activitiesFeed_sorting_label: string;
49
51
  activitiesFeed_rankingMethod_recent: string;
50
52
  activitiesFeed_rankingMethod_popular: string;