@vlprojects-chat/chat 0.0.43 → 0.0.46
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/containers/CreatePollPage/components/CreatePollForm/CreatePollForm.d.ts +1 -3
- package/dist/containers/CreatePollPage/components/CreatePollForm/validate.d.ts +1 -0
- package/dist/containers/CreatePollPage/components/SelectPollType/SelectPollType.d.ts +4 -2
- package/dist/containers/CreatePollPage/types.d.ts +1 -1
- package/dist/index.es.js +14 -14
- package/dist/index.js +14 -14
- package/dist/keystone/chat/channel.d.ts +1 -1
- package/dist/keystone/chat/index.d.ts +2 -1
- package/dist/keystone/chat/pinnedMessage.d.ts +5 -0
- package/dist/keystone/index.d.ts +3 -2
- package/dist/keystone/socket.d.ts +8 -0
- package/dist/locales/index.d.ts +6 -0
- package/dist/theme/consts.d.ts +2 -0
- package/dist/ui-kit/icons/PollOption1.d.ts +10 -0
- package/dist/utils/date.d.ts +1 -1
- package/package.json +1 -1
- package/dist/containers/CreatePollPage/components/ErrorMessage/ErrorMesage.d.ts +0 -6
- package/dist/containers/CreatePollPage/components/ErrorMessage/index.d.ts +0 -1
- package/dist/containers/CreatePollPage/components/ErrorMessage/styles.d.ts +0 -2
- package/dist/containers/CreatePollPage/components/SelectPollType/styles.d.ts +0 -2
- package/dist/containers/CreatePollPage/styles.d.ts +0 -2
|
@@ -48,7 +48,7 @@ export default class Channel extends Channel_base {
|
|
|
48
48
|
stopPoll(poll: Poll): void;
|
|
49
49
|
closePollPortal(): void;
|
|
50
50
|
pollResult(poll: Poll): void;
|
|
51
|
-
setPinnedMessages(items:
|
|
51
|
+
setPinnedMessages(items: IRPinnedMessage[]): void;
|
|
52
52
|
cleanAllMessages(): void;
|
|
53
53
|
deleteMessages(ids: number[]): void;
|
|
54
54
|
get sortedMessages(): Message[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from 'mobx-keystone';
|
|
1
2
|
import { IRChannel, IRPub, IRUser } from '../../types/serverResponses';
|
|
2
3
|
import Channel from './channel';
|
|
3
4
|
import Pub from './pub';
|
|
@@ -24,7 +25,7 @@ export default class Chat extends Chat_base {
|
|
|
24
25
|
get publicChannelsList(): Channel[];
|
|
25
26
|
get directChannelsList(): Channel[];
|
|
26
27
|
get pubsList(): Pub[];
|
|
27
|
-
|
|
28
|
+
createUserRef(id: string): Ref<User>;
|
|
28
29
|
updateUser(payload: {
|
|
29
30
|
userId: number;
|
|
30
31
|
name: string;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import { Ref } from 'mobx-keystone';
|
|
1
2
|
import { IRChannelMessage } from 'types/serverResponses';
|
|
3
|
+
import User from './user';
|
|
2
4
|
declare const PinnedMessage_base: import("mobx-keystone")._Model<unknown, {
|
|
3
5
|
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
4
6
|
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
5
7
|
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
6
8
|
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
9
|
+
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
|
|
7
10
|
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
8
11
|
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
9
12
|
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
10
13
|
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
11
14
|
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
15
|
+
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
|
|
12
16
|
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
13
17
|
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
14
18
|
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
15
19
|
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
16
20
|
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
21
|
+
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
|
|
17
22
|
}>>>;
|
|
18
23
|
export default class PinnedMessage extends PinnedMessage_base {
|
|
19
24
|
}
|
package/dist/keystone/index.d.ts
CHANGED
|
@@ -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
|
|
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 {};
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -76,12 +77,14 @@ declare const _default: {
|
|
|
76
77
|
"menu.direct": string;
|
|
77
78
|
"time.dayBefore": string;
|
|
78
79
|
"time.yesterday": string;
|
|
80
|
+
"time.today": string;
|
|
79
81
|
pollValidateAnswerLongerLetters: string;
|
|
80
82
|
pollValidateAnswerNotLongerLetters: string;
|
|
81
83
|
restart: string;
|
|
82
84
|
edit: string;
|
|
83
85
|
delete: string;
|
|
84
86
|
templates: string;
|
|
87
|
+
addOptionsNumber: string;
|
|
85
88
|
};
|
|
86
89
|
ru: {
|
|
87
90
|
loadingSocket: string;
|
|
@@ -151,6 +154,7 @@ declare const _default: {
|
|
|
151
154
|
selectPollType: string;
|
|
152
155
|
multipleAnswerOptions: string;
|
|
153
156
|
pollOpenEnded: string;
|
|
157
|
+
test: string;
|
|
154
158
|
thanks: string;
|
|
155
159
|
answerAccepted: string;
|
|
156
160
|
listEmpty: string;
|
|
@@ -159,12 +163,14 @@ declare const _default: {
|
|
|
159
163
|
"menu.direct": string;
|
|
160
164
|
"time.dayBefore": string;
|
|
161
165
|
"time.yesterday": string;
|
|
166
|
+
"time.today": string;
|
|
162
167
|
pollValidateAnswerLongerLetters: string;
|
|
163
168
|
pollValidateAnswerNotLongerLetters: string;
|
|
164
169
|
restart: string;
|
|
165
170
|
edit: string;
|
|
166
171
|
delete: string;
|
|
167
172
|
templates: string;
|
|
173
|
+
addOptionsNumber: string;
|
|
168
174
|
};
|
|
169
175
|
};
|
|
170
176
|
export default _default;
|
package/dist/theme/consts.d.ts
CHANGED
|
@@ -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/dist/utils/date.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const formatDate: (date?: string | null | undefined, formatString?: string) => string;
|
|
2
2
|
export declare const checkDayInterval: (dateLeft: string, dateRight: string) => number;
|
|
3
3
|
export declare const checkDateWhen: (date: string, when: 'today' | 'yesterday' | 'year') => boolean;
|
|
4
|
-
export declare const getPreparedDate: (date?: string | undefined) => string | JSX.Element | null;
|
|
4
|
+
export declare const getPreparedDate: (date?: string | undefined, withToday?: boolean | undefined) => string | JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ErrorMesage';
|