@apolitical/component-library 8.6.0-ST.1 → 8.6.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
@@ -488,9 +488,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
488
488
  header_buttons_signup: string;
489
489
  header_language_unavailable_en: string;
490
490
  'header_language_unavailable_sr-Cyrl': string;
491
- header_language_unavailable_de: string;
492
- 'header_language_unavailable_fr-CA': string;
493
- header_language_unavailable_ko: string;
494
491
  header_language_unavailable_it: string;
495
492
  header_language_unavailable_pl: string;
496
493
  header_language_unavailable_ja: string;
@@ -0,0 +1 @@
1
+ export declare function safeTruncate(text: string, maxLength: number): string;