sceyt-chat-react-uikit 1.7.5-beta.9 → 1.7.6-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.
@@ -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.9",
3
+ "version": "1.7.6-beta.1",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -108,6 +108,17 @@ export interface IPollVote {
108
108
  createdAt: number;
109
109
  };
110
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
+ }
111
122
  export interface IPollDetails {
112
123
  id: string;
113
124
  name: string;
@@ -116,26 +127,13 @@ export interface IPollDetails {
116
127
  anonymous: boolean;
117
128
  allowMultipleVotes: boolean;
118
129
  allowVoteRetract: boolean;
119
- votesPerOption: {
120
- [key: string]: number;
121
- };
122
- votes: IPollVote[];
123
- ownVotes: IPollVote[];
130
+ changedVotes?: IChangedVotes;
131
+ voteDetails: IVoteDetails;
124
132
  createdAt: number;
125
133
  updatedAt: number;
126
134
  closedAt: number;
127
135
  closed: boolean;
128
136
  }
129
- export interface IPollVoteParams {
130
- channelId: string;
131
- messageId: string;
132
- pollId: string;
133
- optionId: string[];
134
- }
135
- export interface IPollUpdateParams {
136
- channelId: string;
137
- pollId: string;
138
- }
139
137
  export interface IMessage {
140
138
  id: string;
141
139
  tid?: string;
@@ -325,4 +323,27 @@ export interface ILabels {
325
323
  receivedBy?: string;
326
324
  displayedBy?: string;
327
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
+ }
328
349
  export {};