@apolitical/component-library 8.7.18-ac.1 → 8.7.18-ac.11
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 +9 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +8 -3
- package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +0 -1
- package/discussion/feeds/activities-feed/mocks/activities-feed.mock.d.ts +1 -1
- package/discussion/sections/activity-section/cache/hooks/index.d.ts +0 -1
- package/helpers/intl.d.ts +0 -1
- package/index.js +135 -135
- package/index.mjs +9182 -9204
- package/package.json +1 -1
- package/style.css +1 -1
- package/discussion/feeds/activities-feed/cache/hooks/translate/index.d.ts +0 -1
- package/discussion/feeds/activities-feed/cache/hooks/translate/translate.hook.d.ts +0 -10
- package/discussion/sections/activity-section/cache/hooks/translate/index.d.ts +0 -1
- package/discussion/sections/activity-section/cache/hooks/translate/translate.hook.d.ts +0 -10
|
@@ -112,7 +112,15 @@ export interface IDiscussionPostProps {
|
|
|
112
112
|
/** Whether the post is translatable - to control what gets the button */
|
|
113
113
|
isTranslatable?: boolean;
|
|
114
114
|
/** The function to call when the post should be translated */
|
|
115
|
-
onTranslate?: (args:
|
|
115
|
+
onTranslate?: (args: {
|
|
116
|
+
activityId: string;
|
|
117
|
+
locale: string;
|
|
118
|
+
payloadId: string;
|
|
119
|
+
payloadCollection: string;
|
|
120
|
+
}) => Promise<{
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
body?: string | undefined;
|
|
123
|
+
}>;
|
|
116
124
|
};
|
|
117
125
|
}
|
|
118
126
|
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, locale, disableMentions, onClick: onClickPost, translation, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,9 +36,14 @@ interface Props {
|
|
|
36
36
|
/** Whether the post is translatable - to control what gets the button */
|
|
37
37
|
isTranslatable?: boolean;
|
|
38
38
|
/** The function to call when the post should be translated */
|
|
39
|
-
onTranslate?: (args:
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
onTranslate?: (args: {
|
|
40
|
+
activityId: string;
|
|
41
|
+
locale: string;
|
|
42
|
+
payloadId: string;
|
|
43
|
+
payloadCollection: string;
|
|
44
|
+
}) => Promise<{
|
|
45
|
+
title?: string | undefined;
|
|
46
|
+
body?: string | undefined;
|
|
42
47
|
}>;
|
|
43
48
|
};
|
|
44
49
|
}
|
|
@@ -28,7 +28,6 @@ export declare const activitiesFeedMock: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
title: string;
|
|
31
|
-
categories: string[];
|
|
32
31
|
content: string;
|
|
33
32
|
feed_id: string;
|
|
34
33
|
foreign_id: string;
|
|
@@ -120,6 +119,7 @@ export declare const activitiesFeedMock: {
|
|
|
120
119
|
target: string;
|
|
121
120
|
time: string;
|
|
122
121
|
verb: string;
|
|
122
|
+
categories?: undefined;
|
|
123
123
|
} | {
|
|
124
124
|
actor: {
|
|
125
125
|
created_at: string;
|
package/helpers/intl.d.ts
CHANGED
|
@@ -211,7 +211,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
211
211
|
discussion_thread_show: string;
|
|
212
212
|
discussion_thread_hide: string;
|
|
213
213
|
discussion_translation_seeOriginal: string;
|
|
214
|
-
discussion_translation_seeTranslation: string;
|
|
215
214
|
discussion_translation_translate: string;
|
|
216
215
|
discussion_translation_translate_loading: string;
|
|
217
216
|
discussion_translation_translated: string;
|