@vlprojects-chat/chat 0.0.52 → 0.0.55

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.
@@ -28,7 +28,8 @@ export default class Chat extends Chat_base {
28
28
  createUserRef(id: string): Ref<User>;
29
29
  updateUser(payload: {
30
30
  userId: number;
31
- name: string;
31
+ displayName?: string;
32
+ avatarUrl?: string;
32
33
  }): void;
33
34
  addUsers(users?: IRUser[]): void;
34
35
  addChannels(channels: IRChannel[]): void;
@@ -6,14 +6,17 @@ interface IParams {
6
6
  declare const UI_base: import("mobx-keystone")._Model<unknown, {
7
7
  route: import("mobx-keystone").OptionalModelProp<string>;
8
8
  channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
9
+ lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
9
10
  params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
10
11
  }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
11
12
  route: import("mobx-keystone").OptionalModelProp<string>;
12
13
  channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
14
+ lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
13
15
  params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
14
16
  }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
15
17
  route: import("mobx-keystone").OptionalModelProp<string>;
16
18
  channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
19
+ lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
17
20
  params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
18
21
  }>>>;
19
22
  export default class UI extends UI_base {
@@ -6,6 +6,7 @@ export interface IRUser {
6
6
  role: UserRoleEnum;
7
7
  username: string;
8
8
  displayName: string;
9
+ lang: string | null;
9
10
  }
10
11
  export interface IRChannelMessage {
11
12
  id: string;
@@ -2,7 +2,8 @@ export declare enum ListenerEventEnum {
2
2
  App = "app"
3
3
  }
4
4
  export declare enum EventBusEventEnum {
5
- MessageSent = "MessageSent"
5
+ MessageSent = "MessageSent",
6
+ ChatLoaded = "ChatLoaded"
6
7
  }
7
8
  export interface IEvents {
8
9
  event: EventBusEventEnum;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.0.52",
4
+ "version": "0.0.55",
5
5
  "description": "chat",
6
6
  "license": "ISC",
7
7
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- declare const intl: import("react-intl").IntlShape;
2
- export default intl;