@ethora/chat-component 0.1.4 → 24.10.16
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 +174 -22
- package/dist/assets/icons.d.ts +12 -0
- package/dist/components/InputComponents/AudioRecorder.d.ts +1 -1
- package/dist/components/InputComponents/Search.d.ts +9 -0
- package/dist/components/MainComponents/ChatHeaderAvatar.d.ts +9 -0
- package/dist/components/MainComponents/ChatRoom.d.ts +1 -1
- package/dist/components/MainComponents/MessageList.d.ts +3 -3
- package/dist/components/MainComponents/NoMessagesPlaceholder.d.ts +2 -0
- package/dist/components/MainComponents/RoomList.d.ts +1 -0
- package/dist/components/MainComponents/SystemMessage.d.ts +8 -0
- package/dist/components/MessageBubble/Avatar.d.ts +9 -0
- package/dist/components/styled/SendInput.d.ts +1 -1
- package/dist/main.js +5567 -5248
- package/dist/main.js.map +1 -1
- package/dist/networking/apiClient.d.ts +1 -0
- package/dist/networking/xmppClient.d.ts +0 -1
- package/dist/roomStore/roomsSlice.d.ts +16 -8
- package/dist/types/types.d.ts +5 -0
- package/package.json +13 -2
|
@@ -25,3 +25,4 @@ export declare const signInWithGoogle: () => Promise<{
|
|
|
25
25
|
export declare function loginSocial(idToken: string, accessToken: string, loginType: string, authToken?: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
26
26
|
export declare function registerSocial(idToken: string, accessToken: string, authToken: string, loginType: string, signUpPlan?: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
27
27
|
export declare function checkEmailExist(email: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
28
|
+
export declare function loginViaJwt(clientToken: string): Promise<User>;
|
|
@@ -19,7 +19,6 @@ export declare class XmppClient {
|
|
|
19
19
|
getRooms: () => Promise<unknown>;
|
|
20
20
|
leaveTheRoom: (roomJID: string) => void;
|
|
21
21
|
presenceInRoom: (roomJID: string) => Promise<unknown>;
|
|
22
|
-
getArchive: (userJID: string) => void;
|
|
23
22
|
getHistory: (chatJID: string, max: number, before?: number) => Promise<unknown>;
|
|
24
23
|
getAndReceiveRoomInfo: (roomJID: string) => Promise<Element>;
|
|
25
24
|
getLastMessageArchive(roomJID: string): void;
|
|
@@ -5,7 +5,8 @@ interface RoomMessagesState {
|
|
|
5
5
|
rooms: {
|
|
6
6
|
[jid: string]: IRoom;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
currentRoom: IRoom;
|
|
9
|
+
isLoading: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesState, {
|
|
11
12
|
addRoom(state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
@@ -25,9 +26,6 @@ export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesSt
|
|
|
25
26
|
start?: boolean;
|
|
26
27
|
}>): void;
|
|
27
28
|
deleteAllRooms(state: import('immer').WritableDraft<RoomMessagesState>): void;
|
|
28
|
-
setActiveRoom(state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
29
|
-
roomData: IRoom;
|
|
30
|
-
}>): void;
|
|
31
29
|
setComposing(state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
32
30
|
chatJID: string;
|
|
33
31
|
composing: boolean;
|
|
@@ -40,6 +38,13 @@ export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesSt
|
|
|
40
38
|
chatJID: string;
|
|
41
39
|
timestamp: number;
|
|
42
40
|
}>) => void;
|
|
41
|
+
setRoomNoMessages: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
42
|
+
value: boolean;
|
|
43
|
+
chatJID?: string;
|
|
44
|
+
}>) => void;
|
|
45
|
+
setCurrentRoom: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
46
|
+
room: IRoom;
|
|
47
|
+
}>) => void;
|
|
43
48
|
}, "roomMessages", "roomMessages", import('@reduxjs/toolkit').SliceSelectors<RoomMessagesState>>;
|
|
44
49
|
export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
45
50
|
roomData: IRoom;
|
|
@@ -53,9 +58,7 @@ export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
53
58
|
}, "roomMessages/addRoomMessage">, deleteRoomMessage: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
54
59
|
roomJID: string;
|
|
55
60
|
messageId: string;
|
|
56
|
-
}, "roomMessages/deleteRoomMessage">,
|
|
57
|
-
roomData: IRoom;
|
|
58
|
-
}, "roomMessages/setActiveRoom">, setComposing: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
61
|
+
}, "roomMessages/deleteRoomMessage">, setComposing: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
59
62
|
chatJID: string;
|
|
60
63
|
composing: boolean;
|
|
61
64
|
}, "roomMessages/setComposing">, setIsLoading: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
@@ -64,6 +67,11 @@ export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
64
67
|
}, "roomMessages/setIsLoading">, setLastViewedTimestamp: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
65
68
|
chatJID: string;
|
|
66
69
|
timestamp: number;
|
|
67
|
-
}, "roomMessages/setLastViewedTimestamp"
|
|
70
|
+
}, "roomMessages/setLastViewedTimestamp">, setRoomNoMessages: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
71
|
+
value: boolean;
|
|
72
|
+
chatJID?: string;
|
|
73
|
+
}, "roomMessages/setRoomNoMessages">, setCurrentRoom: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
74
|
+
room: IRoom;
|
|
75
|
+
}, "roomMessages/setCurrentRoom">;
|
|
68
76
|
declare const _default: import('redux').Reducer<RoomMessagesState>;
|
|
69
77
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface IRoom {
|
|
|
38
38
|
composingList?: string[];
|
|
39
39
|
lastViewedTimestamp?: number;
|
|
40
40
|
unreadMessages?: number;
|
|
41
|
+
noMessages?: boolean;
|
|
41
42
|
}
|
|
42
43
|
export interface UserType extends IMessage {
|
|
43
44
|
id: any;
|
|
@@ -95,6 +96,10 @@ export interface IConfig {
|
|
|
95
96
|
secondary: string;
|
|
96
97
|
};
|
|
97
98
|
googleLogin?: boolean;
|
|
99
|
+
jwtLogin?: {
|
|
100
|
+
token: string;
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
};
|
|
98
103
|
firebaseConfig?: {
|
|
99
104
|
apiKey: string;
|
|
100
105
|
authDomain: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethora/chat-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.10.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -51,5 +51,16 @@
|
|
|
51
51
|
"lib": "lib"
|
|
52
52
|
},
|
|
53
53
|
"author": "Ethora",
|
|
54
|
-
"license": "ISC"
|
|
54
|
+
"license": "ISC",
|
|
55
|
+
"keywords": [
|
|
56
|
+
"chat",
|
|
57
|
+
"messaging",
|
|
58
|
+
"react",
|
|
59
|
+
"react-component",
|
|
60
|
+
"messenger",
|
|
61
|
+
"reactjs",
|
|
62
|
+
"web3",
|
|
63
|
+
"xmpp",
|
|
64
|
+
"ethora"
|
|
65
|
+
]
|
|
55
66
|
}
|