@apolitical/component-library 8.3.2-ac.0 → 8.3.2-bht.0
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/components/post/post.d.ts +1 -2
- package/discussion/feeds/replies-feed/cache/hooks/feed/parse-replies/parse-replies.d.ts +2 -3
- package/discussion/feeds/replies-feed/components/nested-replies-feed/nested-replies-feed.d.ts +1 -2
- package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +2 -3
- package/discussion/feeds/replies-feed/index.d.ts +1 -1
- package/discussion/feeds/replies-feed/mocks/index.d.ts +0 -1
- package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -2
- package/discussion/sections/activity-section/activity-section.d.ts +1 -2
- package/discussion/sections/activity-section/activity-section.mock.d.ts +1 -52
- package/discussion/shared/helpers/index.d.ts +0 -1
- package/discussion/shared/interfaces/activity.interface.d.ts +1 -3
- package/discussion/shared/interfaces/discussion.interface.d.ts +0 -4
- package/index.js +67 -67
- package/index.mjs +8160 -8742
- package/package.json +1 -1
- package/discussion/feeds/replies-feed/mocks/course-discussion-replies-feed.mock.d.ts +0 -144
- package/discussion/sections/activity-section/mocks/course-discussion-activity-section.mock.d.ts +0 -57
- package/discussion/shared/helpers/get-localised-content.helper.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
export declare const courseDiscussionRepliesFeedMock: {
|
|
2
|
-
next: string;
|
|
3
|
-
results: ({
|
|
4
|
-
created_at: string;
|
|
5
|
-
updated_at: string;
|
|
6
|
-
id: string;
|
|
7
|
-
user_id: string;
|
|
8
|
-
user: {
|
|
9
|
-
created_at: string;
|
|
10
|
-
updated_at: string;
|
|
11
|
-
id: string;
|
|
12
|
-
data: {
|
|
13
|
-
name: string;
|
|
14
|
-
badges: {
|
|
15
|
-
communities: {
|
|
16
|
-
'community-slug': string[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
kind: string;
|
|
22
|
-
activity_id: string;
|
|
23
|
-
data: {
|
|
24
|
-
content: {
|
|
25
|
-
original: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
parent: string;
|
|
29
|
-
latest_children: {
|
|
30
|
-
reply?: undefined;
|
|
31
|
-
};
|
|
32
|
-
children_counts: {
|
|
33
|
-
reply?: undefined;
|
|
34
|
-
};
|
|
35
|
-
own_children?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
created_at: string;
|
|
38
|
-
updated_at: string;
|
|
39
|
-
id: string;
|
|
40
|
-
user_id: string;
|
|
41
|
-
user: {
|
|
42
|
-
created_at: string;
|
|
43
|
-
updated_at: string;
|
|
44
|
-
id: string;
|
|
45
|
-
data: {
|
|
46
|
-
name: string;
|
|
47
|
-
badges?: undefined;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
kind: string;
|
|
51
|
-
activity_id: string;
|
|
52
|
-
data: {
|
|
53
|
-
content: {
|
|
54
|
-
original: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
parent: string;
|
|
58
|
-
latest_children: {
|
|
59
|
-
reply: {
|
|
60
|
-
created_at: string;
|
|
61
|
-
updated_at: string;
|
|
62
|
-
id: string;
|
|
63
|
-
user_id: string;
|
|
64
|
-
user: {
|
|
65
|
-
created_at: string;
|
|
66
|
-
updated_at: string;
|
|
67
|
-
id: string;
|
|
68
|
-
data: {
|
|
69
|
-
name: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
kind: string;
|
|
73
|
-
activity_id: string;
|
|
74
|
-
data: {
|
|
75
|
-
content: {
|
|
76
|
-
original: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
parent: string;
|
|
80
|
-
latest_children: {};
|
|
81
|
-
children_counts: {};
|
|
82
|
-
}[];
|
|
83
|
-
};
|
|
84
|
-
own_children: {
|
|
85
|
-
reply: {
|
|
86
|
-
created_at: string;
|
|
87
|
-
updated_at: string;
|
|
88
|
-
id: string;
|
|
89
|
-
user_id: string;
|
|
90
|
-
user: {
|
|
91
|
-
created_at: string;
|
|
92
|
-
updated_at: string;
|
|
93
|
-
id: string;
|
|
94
|
-
data: {
|
|
95
|
-
name: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
kind: string;
|
|
99
|
-
activity_id: string;
|
|
100
|
-
data: {
|
|
101
|
-
content: {
|
|
102
|
-
original: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
parent: string;
|
|
106
|
-
latest_children: {};
|
|
107
|
-
children_counts: {};
|
|
108
|
-
}[];
|
|
109
|
-
};
|
|
110
|
-
children_counts: {
|
|
111
|
-
reply: number;
|
|
112
|
-
};
|
|
113
|
-
} | {
|
|
114
|
-
created_at: string;
|
|
115
|
-
updated_at: string;
|
|
116
|
-
id: string;
|
|
117
|
-
user_id: string;
|
|
118
|
-
user: {
|
|
119
|
-
created_at: string;
|
|
120
|
-
updated_at: string;
|
|
121
|
-
id: string;
|
|
122
|
-
data: {
|
|
123
|
-
name: string;
|
|
124
|
-
badges?: undefined;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
kind: string;
|
|
128
|
-
activity_id: string;
|
|
129
|
-
data: {
|
|
130
|
-
content: {
|
|
131
|
-
original: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
parent: string;
|
|
135
|
-
latest_children: {
|
|
136
|
-
reply?: undefined;
|
|
137
|
-
};
|
|
138
|
-
children_counts: {
|
|
139
|
-
reply?: undefined;
|
|
140
|
-
};
|
|
141
|
-
own_children?: undefined;
|
|
142
|
-
})[];
|
|
143
|
-
duration: string;
|
|
144
|
-
};
|
package/discussion/sections/activity-section/mocks/course-discussion-activity-section.mock.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const courseDiscussionActivitySectionMock: {
|
|
2
|
-
POST: {
|
|
3
|
-
actor: {
|
|
4
|
-
created_at: string;
|
|
5
|
-
updated_at: string;
|
|
6
|
-
id: string;
|
|
7
|
-
data: {
|
|
8
|
-
jobTitle: string;
|
|
9
|
-
name: string;
|
|
10
|
-
organization: string;
|
|
11
|
-
location: {
|
|
12
|
-
en: string;
|
|
13
|
-
};
|
|
14
|
-
badges: {
|
|
15
|
-
communities: {
|
|
16
|
-
'community-slug': string[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
categories: never[];
|
|
22
|
-
content: {
|
|
23
|
-
en: string;
|
|
24
|
-
es: string;
|
|
25
|
-
fr: string;
|
|
26
|
-
pt: string;
|
|
27
|
-
};
|
|
28
|
-
feed_id: string;
|
|
29
|
-
foreign_id: string;
|
|
30
|
-
id: string;
|
|
31
|
-
latest_reactions: {
|
|
32
|
-
like: never[];
|
|
33
|
-
reply: never[];
|
|
34
|
-
};
|
|
35
|
-
latest_reactions_extra: {
|
|
36
|
-
like: never[];
|
|
37
|
-
reply: never[];
|
|
38
|
-
};
|
|
39
|
-
object: string;
|
|
40
|
-
origin: null;
|
|
41
|
-
own_reactions: {
|
|
42
|
-
like: never[];
|
|
43
|
-
reply: never[];
|
|
44
|
-
};
|
|
45
|
-
reaction_counts: {
|
|
46
|
-
like: number;
|
|
47
|
-
reply: number;
|
|
48
|
-
};
|
|
49
|
-
target: string;
|
|
50
|
-
time: string;
|
|
51
|
-
verb: string;
|
|
52
|
-
};
|
|
53
|
-
POLL: {
|
|
54
|
-
total_replies: number;
|
|
55
|
-
verb: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const getLocalisedActivityContent: ({ content, locale, }: {
|
|
2
|
-
content: {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
locale: string;
|
|
6
|
-
}) => string;
|
|
7
|
-
export declare const getLocalisedReactionContent: ({ content, }: {
|
|
8
|
-
content: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
}) => string;
|