@ethora/chat-component 25.3.20 → 25.4.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.
- package/README.md +10 -15
- package/dist/main.js +1355 -1327
- package/dist/main.js.map +1 -1
- package/dist/types/types.d.ts +25 -16
- package/package.json +1 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -190,6 +190,21 @@ export interface XmppState {
|
|
|
190
190
|
client: any;
|
|
191
191
|
loading: boolean;
|
|
192
192
|
}
|
|
193
|
+
export interface FBConfig {
|
|
194
|
+
apiKey: string;
|
|
195
|
+
authDomain: string;
|
|
196
|
+
projectId: string;
|
|
197
|
+
storageBucket: string;
|
|
198
|
+
messagingSenderId: string;
|
|
199
|
+
appId: string;
|
|
200
|
+
}
|
|
201
|
+
export interface MessageBubble {
|
|
202
|
+
backgroundMessageUser?: string;
|
|
203
|
+
backgroundMessage?: string;
|
|
204
|
+
colorUser?: string;
|
|
205
|
+
color?: string;
|
|
206
|
+
borderRadius?: number;
|
|
207
|
+
}
|
|
193
208
|
export interface IConfig {
|
|
194
209
|
disableHeader?: boolean;
|
|
195
210
|
disableMedia?: boolean;
|
|
@@ -199,14 +214,7 @@ export interface IConfig {
|
|
|
199
214
|
};
|
|
200
215
|
googleLogin?: {
|
|
201
216
|
enabled: boolean;
|
|
202
|
-
firebaseConfig:
|
|
203
|
-
apiKey: string;
|
|
204
|
-
authDomain: string;
|
|
205
|
-
projectId: string;
|
|
206
|
-
storageBucket: string;
|
|
207
|
-
messagingSenderId: string;
|
|
208
|
-
appId: string;
|
|
209
|
-
};
|
|
217
|
+
firebaseConfig: FBConfig;
|
|
210
218
|
};
|
|
211
219
|
jwtLogin?: {
|
|
212
220
|
token: string;
|
|
@@ -242,13 +250,7 @@ export interface IConfig {
|
|
|
242
250
|
color?: string;
|
|
243
251
|
image?: any;
|
|
244
252
|
};
|
|
245
|
-
bubleMessage?:
|
|
246
|
-
backgroundMessageUser?: string;
|
|
247
|
-
backgroundMessage?: string;
|
|
248
|
-
colorUser?: string;
|
|
249
|
-
color?: string;
|
|
250
|
-
borderRadius?: number;
|
|
251
|
-
};
|
|
253
|
+
bubleMessage?: MessageBubble;
|
|
252
254
|
headerLogo?: any;
|
|
253
255
|
headerMenu?: () => void;
|
|
254
256
|
headerChatMenu?: () => void;
|
|
@@ -268,8 +270,15 @@ export interface IConfig {
|
|
|
268
270
|
disableSentLogic?: boolean;
|
|
269
271
|
initBeforeLoad?: boolean;
|
|
270
272
|
newArch?: boolean;
|
|
271
|
-
logoutCallback?: () => Promise<void>;
|
|
272
273
|
qrUrl?: string;
|
|
274
|
+
logoutCallback?: () => Promise<void>;
|
|
275
|
+
sendCBFunction?: (e?: any) => void;
|
|
276
|
+
secondarySendButton?: {
|
|
277
|
+
enabled: boolean;
|
|
278
|
+
messageEdit: string;
|
|
279
|
+
buttonText: string;
|
|
280
|
+
buttonStyles?: React.CSSProperties;
|
|
281
|
+
};
|
|
273
282
|
}
|
|
274
283
|
type PartialRoomWithMandatoryKeys = Partial<IRoom> & Pick<IRoom, 'jid' | 'title'>;
|
|
275
284
|
export interface xmppSettingsInterface {
|