@ethora/chat-component 24.10.21 → 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,6 +42,10 @@ 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;
@@ -115,6 +120,7 @@ export interface IConfig {
115
120
  token: string;
116
121
  enabled: boolean;
117
122
  };
123
+ disableRooms?: boolean;
118
124
  defaultLogin?: boolean;
119
125
  }
120
126
  export interface StorageUser {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "24.10.21",
3
+ "version": "24.10.22",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",