@apolitical/component-library 8.3.20 → 8.3.21-ac.2
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/parse-replies/parse-replies.d.ts +1 -0
- package/discussion/feeds/replies-feed/mocks/course-discussion-replies-feed.mock.d.ts +33 -0
- package/discussion/feeds/replies-feed/replies-feed.d.ts +7 -0
- package/discussion/sections/activity-section/activity-section.d.ts +7 -0
- package/discussion/sections/activity-section/activity-section.mock.d.ts +7 -0
- package/form/components/rich-text-editor/rich-text-editor.types.d.ts +2 -2
- package/helpers/intl.d.ts +2 -0
- package/index.js +122 -122
- package/index.mjs +15913 -15825
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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;
|
|
@@ -107,7 +107,7 @@ export interface BaseProps {
|
|
|
107
107
|
};
|
|
108
108
|
[key: string]: unknown;
|
|
109
109
|
}
|
|
110
|
-
export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span;
|
|
110
|
+
export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span | Formatting.h3;
|
|
111
111
|
export interface TypeElement extends BaseElement {
|
|
112
112
|
type: BlockOptionType | MarkOptionType;
|
|
113
113
|
[Formatting.h3]?: boolean;
|
|
@@ -117,7 +117,7 @@ export interface MentionElement extends BaseElement {
|
|
|
117
117
|
id: string;
|
|
118
118
|
name?: string;
|
|
119
119
|
}
|
|
120
|
-
export type MarkOptionType = Formatting.bold | Formatting.italic | Formatting.strikethrough
|
|
120
|
+
export type MarkOptionType = Formatting.bold | Formatting.italic | Formatting.strikethrough;
|
|
121
121
|
export interface TypeText extends BaseText {
|
|
122
122
|
[Formatting.bold]?: boolean;
|
|
123
123
|
[Formatting.italic]?: boolean;
|
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;
|