@ethora/chat-component 24.10.20 → 24.10.22
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 +19 -36
- package/dist/assets/icons.d.ts +4 -0
- package/dist/components/ExampleComponents/CustomMessage.d.ts +12 -11
- package/dist/components/MainComponents/ChatWrapper.d.ts +4 -4
- package/dist/components/MainComponents/LoginWrapper.d.ts +4 -6
- package/dist/components/MainComponents/ReduxWrapper.d.ts +4 -4
- package/dist/components/Message.d.ts +3 -7
- package/dist/components/styled/Button.d.ts +1 -0
- package/dist/main.js +3177 -3056
- package/dist/main.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/types.d.ts +14 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html,body,#root{height:100%;margin:0;padding:0}
|
|
1
|
+
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html,body,#root{height:100%;margin:0;padding:0}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background-color:#5e3fde;border-radius:6px}::-webkit-scrollbar-track{background-color:#f0f0f0}*{scrollbar-width:thin;scrollbar-color:#5e3fde #f0f0f0}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface IRoom {
|
|
|
33
33
|
messages: IMessage[];
|
|
34
34
|
isLoading: boolean;
|
|
35
35
|
lastMessage?: string;
|
|
36
|
+
lastRoomMessage?: RoomLastMessage;
|
|
36
37
|
icon?: string;
|
|
37
38
|
composing?: boolean;
|
|
38
39
|
composingList?: string[];
|
|
@@ -41,12 +42,20 @@ export interface IRoom {
|
|
|
41
42
|
noMessages?: boolean;
|
|
42
43
|
roomBg: string;
|
|
43
44
|
}
|
|
45
|
+
export interface RoomLastMessage {
|
|
46
|
+
name: string;
|
|
47
|
+
body: string;
|
|
48
|
+
}
|
|
44
49
|
export interface UserType extends IMessage {
|
|
45
50
|
id: any;
|
|
46
51
|
user: any;
|
|
47
52
|
timestamp: any;
|
|
48
53
|
text: any;
|
|
49
54
|
}
|
|
55
|
+
export interface ConfigUser {
|
|
56
|
+
email: string;
|
|
57
|
+
password: string;
|
|
58
|
+
}
|
|
50
59
|
export interface User {
|
|
51
60
|
walletAddress: string;
|
|
52
61
|
description?: string;
|
|
@@ -111,6 +120,7 @@ export interface IConfig {
|
|
|
111
120
|
token: string;
|
|
112
121
|
enabled: boolean;
|
|
113
122
|
};
|
|
123
|
+
disableRooms?: boolean;
|
|
114
124
|
defaultLogin?: boolean;
|
|
115
125
|
}
|
|
116
126
|
export interface StorageUser {
|
|
@@ -130,3 +140,7 @@ export interface StorageUser {
|
|
|
130
140
|
isAssetsOpen?: boolean;
|
|
131
141
|
isProfileOpen?: boolean;
|
|
132
142
|
}
|
|
143
|
+
export interface MessageProps {
|
|
144
|
+
message: IMessage;
|
|
145
|
+
isUser: boolean;
|
|
146
|
+
}
|