@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.
- package/discussion/components/post/post.helpers.d.ts +1 -0
- package/helpers/intl.d.ts +0 -1
- package/helpers/truncate.d.ts +1 -0
- package/index.js +112 -112
- package/index.mjs +4996 -4984
- 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
|
@@ -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;
|