sceyt-chat-react-uikit 1.7.5-beta.8 → 1.7.5

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.
@@ -8,7 +8,7 @@ declare const MessageStatusIcon: ({ messageStatus, messageStatusDisplayingType,
8
8
  readIconColor?: string | undefined;
9
9
  accentColor?: string | undefined;
10
10
  }) => React.JSX.Element;
11
- declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target }: {
11
+ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target, isInviteLink, onInviteLinkClick }: {
12
12
  text: string;
13
13
  message: any;
14
14
  contactsMap?: IContactsMap | undefined;
@@ -21,5 +21,7 @@ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts,
21
21
  shouldOpenUserProfileForMention?: boolean | undefined;
22
22
  unsupportedMessage?: boolean | undefined;
23
23
  target?: string | undefined;
24
+ isInviteLink?: boolean | undefined;
25
+ onInviteLinkClick?: ((key: string) => void) | undefined;
24
26
  }) => any;
25
27
  export { MessageStatusIcon, MessageTextFormat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.7.5-beta.8",
3
+ "version": "1.7.5",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export interface IAction {
5
5
  }
6
6
  export interface IUser {
7
7
  id: string;
8
+ avatar?: string;
8
9
  firstName: string;
9
10
  lastName: string;
10
11
  avatarUrl?: string;
@@ -80,6 +81,59 @@ export interface IMarker {
80
81
  createdAt: Date;
81
82
  user: IUser | null;
82
83
  }
84
+ export interface IPollOption {
85
+ id: string;
86
+ name: string;
87
+ }
88
+ export interface IPollVote {
89
+ optionId: string;
90
+ createdAt: number;
91
+ user: {
92
+ id: string;
93
+ presence: {
94
+ status: string;
95
+ };
96
+ profile: {
97
+ avatar: string;
98
+ firstName: string;
99
+ lastName: string;
100
+ metadata: string;
101
+ metadataMap: {
102
+ [key: string]: string;
103
+ };
104
+ updatedAt: number;
105
+ username: string;
106
+ createdAt: number;
107
+ };
108
+ createdAt: number;
109
+ };
110
+ }
111
+ export interface IChangedVotes {
112
+ addedVotes: IPollVote[];
113
+ removedVotes: IPollVote[];
114
+ }
115
+ export interface IVoteDetails {
116
+ votesPerOption: {
117
+ [key: string]: number;
118
+ };
119
+ votes: IPollVote[];
120
+ ownVotes: IPollVote[];
121
+ }
122
+ export interface IPollDetails {
123
+ id: string;
124
+ name: string;
125
+ description: string;
126
+ options: IPollOption[];
127
+ anonymous: boolean;
128
+ allowMultipleVotes: boolean;
129
+ allowVoteRetract: boolean;
130
+ changedVotes?: IChangedVotes;
131
+ voteDetails: IVoteDetails;
132
+ createdAt: number;
133
+ updatedAt: number;
134
+ closedAt: number;
135
+ closed: boolean;
136
+ }
83
137
  export interface IMessage {
84
138
  id: string;
85
139
  tid?: string;
@@ -120,6 +174,7 @@ export interface IMessage {
120
174
  messageId: string;
121
175
  user: IUser;
122
176
  };
177
+ pollDetails?: IPollDetails;
123
178
  }
124
179
  export interface IMember extends IUser {
125
180
  role: string;
@@ -268,4 +323,27 @@ export interface ILabels {
268
323
  receivedBy?: string;
269
324
  displayedBy?: string;
270
325
  }
326
+ export interface OGMetadataProps {
327
+ maxWidth?: number;
328
+ maxHeight?: number;
329
+ ogLayoutOrder?: 'link-first' | 'og-first';
330
+ ogShowUrl?: boolean;
331
+ ogShowTitle?: boolean;
332
+ ogShowDescription?: boolean;
333
+ ogShowFavicon?: boolean;
334
+ order?: {
335
+ image?: number;
336
+ title?: number;
337
+ description?: number;
338
+ link?: number;
339
+ };
340
+ ogContainerBorderRadius?: string | number;
341
+ ogContainerPadding?: string;
342
+ ogContainerClassName?: string;
343
+ ogContainerShowBackground?: boolean;
344
+ ogContainerBackground?: string;
345
+ infoPadding?: string;
346
+ isInviteLink?: boolean;
347
+ target?: string;
348
+ }
271
349
  export {};