@vlprojects-chat/chat 0.0.44 → 0.0.47

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.
@@ -1,8 +1,8 @@
1
- import UI from './ui';
2
1
  import Auth from './auth';
2
+ import Chat from './chat';
3
3
  import Settings from './settings';
4
4
  import SocketStore from './socket';
5
- import Chat from './chat';
5
+ import UI from './ui';
6
6
  declare const Root_base: import("mobx-keystone")._Model<unknown, {
7
7
  chat: import("mobx-keystone").OptionalModelProp<Chat>;
8
8
  auth: import("mobx-keystone").OptionalModelProp<Auth>;
@@ -23,6 +23,7 @@ declare const Root_base: import("mobx-keystone")._Model<unknown, {
23
23
  settings: import("mobx-keystone").OptionalModelProp<Settings>;
24
24
  }>>>;
25
25
  export declare class Root extends Root_base {
26
+ get currentChannel(): import("./chat/channel").default | undefined;
26
27
  }
27
28
  export declare const createRootStore: () => Root;
28
29
  declare const useKeystone: () => Root;
@@ -1,3 +1,4 @@
1
+ import { IRChannelMessage } from 'types/serverResponses';
1
2
  declare const SocketStore_base: import("mobx-keystone")._Model<unknown, {
2
3
  isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
3
4
  }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
@@ -6,6 +7,13 @@ declare const SocketStore_base: import("mobx-keystone")._Model<unknown, {
6
7
  isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
7
8
  }>>>;
8
9
  export default class SocketStore extends SocketStore_base {
10
+ messageChunk: {
11
+ channelId: string;
12
+ message: IRChannelMessage;
13
+ }[];
14
+ messageRate: number;
15
+ private startMessageProcessing;
16
+ onAttachedToRootStore(): () => void;
9
17
  connect(socketUrl: string, accessToken: string): void;
10
18
  }
11
19
  export {};
@@ -27,6 +27,7 @@ declare const _default: {
27
27
  createAccount: string;
28
28
  polls: string;
29
29
  poll: string;
30
+ test: string;
30
31
  profile: string;
31
32
  users: string;
32
33
  createNewChannel: string;
@@ -83,6 +84,7 @@ declare const _default: {
83
84
  edit: string;
84
85
  delete: string;
85
86
  templates: string;
87
+ addOptionsNumber: string;
86
88
  };
87
89
  ru: {
88
90
  loadingSocket: string;
@@ -152,6 +154,7 @@ declare const _default: {
152
154
  selectPollType: string;
153
155
  multipleAnswerOptions: string;
154
156
  pollOpenEnded: string;
157
+ test: string;
155
158
  thanks: string;
156
159
  answerAccepted: string;
157
160
  listEmpty: string;
@@ -167,6 +170,7 @@ declare const _default: {
167
170
  edit: string;
168
171
  delete: string;
169
172
  templates: string;
173
+ addOptionsNumber: string;
170
174
  };
171
175
  };
172
176
  export default _default;
@@ -19,7 +19,9 @@ export declare enum AvatarColorEnum {
19
19
  }
20
20
  export declare const COLOURS: {
21
21
  BLACK_01: string;
22
+ BLACK_02: string;
22
23
  BLACK_03: string;
24
+ BLACK_06: string;
23
25
  WHITE: string;
24
26
  BLACK: string;
25
27
  GREY: string;
@@ -0,0 +1,10 @@
1
+ import { CSSProperties, ReactElement } from 'react';
2
+ interface IProps {
3
+ className?: string;
4
+ width?: number;
5
+ height?: number;
6
+ fill?: string;
7
+ style?: CSSProperties;
8
+ }
9
+ declare const _default: (props: IProps) => ReactElement;
10
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.0.44",
4
+ "version": "0.0.47",
5
5
  "description": "chat",
6
6
  "license": "ISC",
7
7
  "main": "dist/index.js",
@@ -1,6 +0,0 @@
1
- import { FC, HTMLAttributes } from 'react';
2
- interface IProps {
3
- message?: string;
4
- }
5
- declare const ErrorMessage: FC<IProps & HTMLAttributes<HTMLDivElement>>;
6
- export default ErrorMessage;
@@ -1 +0,0 @@
1
- export { default } from './ErrorMesage';
@@ -1,2 +0,0 @@
1
- declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"root">;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "buttonGridItem">;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"headerText" | "gridContainer">;
2
- export default _default;