@apolitical/component-library 8.7.18-ac.10 → 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/sections/activity-section/cache/hooks/index.d.ts +0 -1
- package/index.js +123 -123
- package/index.mjs +6940 -6987
- package/package.json +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
|
}
|