@apolitical/component-library 8.5.0 → 8.6.0-dh.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.
@@ -1,6 +1,7 @@
1
1
  import type { IMentions } from '../../../discussion/shared';
2
2
  import { ListMembers } from '../../../form';
3
3
  import { ICategory } from '../../shared';
4
+ export declare const getInitialBody: (body: string, isTruncated: boolean | number, mentions?: IMentions) => string;
4
5
  export declare const getPostBody: (body: string, isTruncated: boolean | number, mentions?: IMentions, listMembers?: ListMembers) => Promise<string>;
5
6
  export declare const enrichPostCategories: (postCategories: string[], allCategories: ICategory[]) => (ICategory | undefined)[];
6
7
  export declare const allowClickUntilClassNameFound: (event: React.MouseEvent<HTMLElement, MouseEvent>, contentClasses: string[], breakClassName: string) => boolean;
package/helpers/intl.d.ts CHANGED
@@ -487,7 +487,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
487
487
  header_buttons_login: string;
488
488
  header_buttons_signup: string;
489
489
  header_language_unavailable_en: string;
490
- 'header_language_unavailable_sr-Cyrl': string;
491
490
  header_language_unavailable_it: string;
492
491
  header_language_unavailable_pl: string;
493
492
  header_language_unavailable_ja: string;
@@ -0,0 +1 @@
1
+ export declare function safeTruncate(text: string, maxLength: number): string;