@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.
- package/discussion/components/post/post.helpers.d.ts +1 -0
- package/helpers/intl.d.ts +0 -3
- package/helpers/truncate.d.ts +1 -0
- package/index.js +124 -124
- package/index.mjs +5156 -5168
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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;
|