@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.
@@ -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: any) => void;
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: any) => Promise<{
40
- title?: string;
41
- body?: string;
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
  }
@@ -8,6 +8,5 @@ export * from './list';
8
8
  export * from './pin';
9
9
  export * from './remove';
10
10
  export * from './remove-vote';
11
- export * from './translate';
12
11
  export * from './unlike';
13
12
  export * from './unpin';
@@ -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;
@@ -7,4 +7,3 @@ export * from './remove-vote';
7
7
  export * from './section';
8
8
  export * from './unlike';
9
9
  export * from './unpin';
10
- export * from './translate';
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;