@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/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}svg{height:50px;width:50px}::-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}
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}
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "24.10.20",
3
+ "version": "24.10.22",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",