@apolitical/component-library 4.1.7 → 4.1.8-beta.1

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.
@@ -0,0 +1,2 @@
1
+ import { IMentions } from './../../discussion';
2
+ export declare const getPostBody: (body: string, isTruncated: boolean, mentions?: IMentions) => string;
@@ -1,3 +1,25 @@
1
+ export const mentions: {
2
+ "123456ab-12ab-12ab-12ab-123456789abc": {
3
+ created_at: string;
4
+ updated_at: string;
5
+ id: string;
6
+ data: {
7
+ jobTitle: string;
8
+ name: string;
9
+ organization: string;
10
+ };
11
+ };
12
+ "12abcdef-12cd-12cd-12cd-123456abcdef": {
13
+ created_at: string;
14
+ updated_at: string;
15
+ id: string;
16
+ data: {
17
+ jobTitle: string;
18
+ name: string;
19
+ organization: string;
20
+ };
21
+ };
22
+ };
1
23
  export namespace authors {
2
24
  namespace me {
3
25
  let id: string;
@@ -31,6 +53,7 @@ export namespace reply {
31
53
  import author = authors.me;
32
54
  export { author };
33
55
  export let userLiked: boolean;
56
+ export { mentions };
34
57
  }
35
58
  export { me_1 as me };
36
59
  export namespace otherUser_1 {
@@ -92,6 +115,7 @@ export namespace answer {
92
115
  export { createdAt_2 as createdAt };
93
116
  let updatedAt_2: string;
94
117
  export { updatedAt_2 as updatedAt };
118
+ export { mentions };
95
119
  }
96
120
  export { me_2 as me };
97
121
  export namespace otherUser_2 {
@@ -1,3 +1,6 @@
1
1
  import type { EnrichedReaction } from 'getstream';
2
+ import type { IMentions } from './../../discussion.d';
2
3
  export interface IReaction extends EnrichedReaction {
4
+ /** Details of users mentioned in the content */
5
+ mentioned_users?: IMentions;
3
6
  }