@vlprojects-chat/chat 0.0.25 → 0.0.29
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/Chat.d.ts +1 -0
- package/dist/api/Api.d.ts +9 -13
- package/dist/api/index.d.ts +1 -1
- package/dist/components/ChannelList/components/LastMessage/LastMessage.d.ts +7 -0
- package/dist/components/ChannelList/components/LastMessage/index.d.ts +1 -0
- package/dist/components/ChannelList/styles.d.ts +1 -1
- package/dist/components/CreateChannelForm/styles.d.ts +1 -1
- package/dist/components/DirectList/styles.d.ts +1 -1
- package/dist/components/Drawer/styles.d.ts +1 -1
- package/dist/components/MessageInput/components/MessageInputActions/MessageInputActions.d.ts +5 -0
- package/dist/components/MessageInput/components/MessageInputActions/index.d.ts +1 -0
- package/dist/components/MessageInput/index.d.ts +1 -0
- package/dist/components/MessageInput/styles.d.ts +1 -1
- package/dist/components/MessageList/MessageList.d.ts +7 -0
- package/dist/components/MessageList/components/MessageActions/MessageActions.d.ts +9 -0
- package/dist/components/MessageList/components/MessageActions/index.d.ts +1 -0
- package/dist/components/MessageList/components/MessageRow/MessageRow.d.ts +8 -0
- package/dist/components/MessageList/components/MessageRow/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/SystemMessage.d.ts +7 -0
- package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/ChangedChannel.d.ts +6 -0
- package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserChanged/UserChanged.d.ts +7 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserChanged/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/UserChangedChannel.d.ts +7 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserJoined/UserJoined.d.ts +6 -0
- package/dist/components/MessageList/components/SystemMessage/components/UserJoined/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/styles.d.ts +2 -0
- package/dist/components/MessageList/components/UserMessage/UserMessage.d.ts +9 -0
- package/dist/components/MessageList/components/UserMessage/index.d.ts +1 -0
- package/dist/components/MessageList/components/UserMessage/styles.d.ts +5 -0
- package/dist/components/MessageList/index.d.ts +1 -7
- package/dist/components/MessageList/styles.d.ts +1 -1
- package/dist/components/NameInput/styles.d.ts +1 -1
- package/dist/components/PinnedMessageList/PinnedMessageList.d.ts +3 -0
- package/dist/components/PinnedMessageList/index.d.ts +1 -0
- package/dist/components/PinnedMessageList/styles.d.ts +2 -0
- package/dist/components/SubHeader/SubHeader.d.ts +7 -0
- package/dist/components/SubHeader/index.d.ts +1 -7
- package/dist/components/SubHeader/styles.d.ts +1 -1
- package/dist/containers/Auth/components/ActionBlock/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Guest/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Signin/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Signup/styles.d.ts +1 -1
- package/dist/containers/Auth/styles.d.ts +1 -1
- package/dist/containers/ChannelPage/ChannelPage.d.ts +3 -3
- package/dist/containers/ChannelPage/service.d.ts +8 -0
- package/dist/containers/ChannelPage/styles.d.ts +1 -1
- package/dist/containers/Channels/components/Footer/styles.d.ts +1 -1
- package/dist/containers/Channels/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/components/CreatePollForm/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/components/ErrorMessage/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/styles.d.ts +1 -1
- package/dist/containers/PollListPage/components/PollCard/styles.d.ts +1 -1
- package/dist/containers/PollListPage/services.d.ts +1 -1
- package/dist/containers/PollPortal/services.d.ts +1 -1
- package/dist/containers/PollPortal/styles.d.ts +1 -1
- package/dist/containers/Profile/styles.d.ts +1 -1
- package/dist/containers/UsersListPage/components/UserList/styles.d.ts +1 -1
- package/dist/containers/UsersListPage/components/UserRow/styles.d.ts +1 -1
- package/dist/hoc/MoreButtonHOC.d.ts +9 -0
- package/dist/index.es.js +200 -5
- package/dist/index.js +200 -5
- package/dist/keystone/auth.d.ts +17 -6
- package/dist/keystone/chat/channel.d.ts +30 -4
- package/dist/keystone/chat/index.d.ts +9 -3
- package/dist/keystone/chat/message.d.ts +17 -3
- package/dist/keystone/chat/pinnedMessage.d.ts +21 -0
- package/dist/keystone/chat/poll.d.ts +15 -3
- package/dist/keystone/chat/pub.d.ts +7 -3
- package/dist/keystone/chat/user.d.ts +16 -3
- package/dist/keystone/index.d.ts +13 -3
- package/dist/keystone/service.d.ts +1 -0
- package/dist/keystone/settings.d.ts +34 -13
- package/dist/keystone/socket.d.ts +7 -5
- package/dist/keystone/ui.d.ts +17 -6
- package/dist/locales/index.d.ts +24 -6
- package/dist/theme/consts.d.ts +35 -18
- package/dist/theme/muicssbaseline.d.ts +4 -0
- package/dist/theme/theme.d.ts +1 -1
- package/dist/types/const.d.ts +1 -0
- package/dist/types/serverResponses.d.ts +7 -0
- package/dist/types/socketEvents.d.ts +4 -1
- package/dist/ui-kit/HeaderTitle/HeaderTitile.d.ts +8 -0
- package/dist/ui-kit/HeaderTitle/index.d.ts +1 -0
- package/dist/ui-kit/HeaderTitle/styles.d.ts +2 -0
- package/dist/ui-kit/components/Avatar/Avatar.d.ts +2 -0
- package/dist/ui-kit/components/Avatar/styles.d.ts +1 -1
- package/dist/ui-kit/components/Button/index.d.ts +1 -1
- package/dist/ui-kit/components/Button/styles.d.ts +1 -1
- package/dist/ui-kit/components/Checkbox/styles.d.ts +1 -1
- package/dist/ui-kit/components/DropMenu/DropMenu.d.ts +8 -0
- package/dist/ui-kit/components/DropMenu/DropMenuItem.d.ts +10 -0
- package/dist/ui-kit/components/DropMenu/index.d.ts +2 -0
- package/dist/ui-kit/components/DropMenu/styles.d.ts +2 -0
- package/dist/ui-kit/components/FormErrorMessage/styles.d.ts +1 -1
- package/dist/ui-kit/components/Input/styles.d.ts +1 -1
- package/dist/ui-kit/components/Loaders/WineLoader/styles.d.ts +1 -1
- package/dist/ui-kit/icons/{ChatUsersIcon.d.ts → CloseCircleIcon.d.ts} +0 -0
- package/dist/ui-kit/icons/PinnedIcon.d.ts +10 -0
- package/dist/ui-kit/icons/SubmitMessageIcon.d.ts +10 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/errors.d.ts +1 -1
- package/package.json +59 -67
- package/dist/components/MessageList/UserMessage/SystemMessage.d.ts +0 -9
- package/dist/components/MessageList/UserMessage/index.d.ts +0 -13
- package/dist/components/MessageList/UserMessage/styles.d.ts +0 -2
- package/dist/ui-kit/ChannelName/ChannelName.d.ts +0 -6
- package/dist/ui-kit/ChannelName/index.d.ts +0 -1
package/dist/keystone/auth.d.ts
CHANGED
|
@@ -3,14 +3,25 @@ import User from './chat/user';
|
|
|
3
3
|
declare const Auth_base: import("mobx-keystone")._Model<unknown, {
|
|
4
4
|
me: import("mobx-keystone").OptionalModelProp<User>;
|
|
5
5
|
accessToken: import("mobx-keystone").OptionalModelProp<string>;
|
|
6
|
-
appId: import("mobx-keystone").
|
|
7
|
-
isAuthorized: import("mobx-keystone").
|
|
8
|
-
isAnonymousAllowed: import("mobx-keystone").
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
7
|
+
isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
8
|
+
isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
9
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
10
|
+
me: import("mobx-keystone").OptionalModelProp<User>;
|
|
11
|
+
accessToken: import("mobx-keystone").OptionalModelProp<string>;
|
|
12
|
+
appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
13
|
+
isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
14
|
+
isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
15
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
16
|
+
me: import("mobx-keystone").OptionalModelProp<User>;
|
|
17
|
+
accessToken: import("mobx-keystone").OptionalModelProp<string>;
|
|
18
|
+
appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
19
|
+
isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
20
|
+
isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
21
|
+
}>>>;
|
|
12
22
|
export default class Auth extends Auth_base {
|
|
13
23
|
setAccessToken(token: string): void;
|
|
24
|
+
get isModerator(): boolean;
|
|
14
25
|
setMe(user: IRUser): void;
|
|
15
26
|
}
|
|
16
27
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Ref } from 'mobx-keystone';
|
|
2
2
|
import { IServerPoll } from '../../containers/CreatePollPage/types';
|
|
3
3
|
import { ChannelTypeEnum } from '../../types/enums';
|
|
4
|
-
import { IRChannelMessage } from '../../types/serverResponses';
|
|
4
|
+
import { IRChannelMessage, IRPinnedMessage } from '../../types/serverResponses';
|
|
5
5
|
import Message from './message';
|
|
6
|
+
import PinnedMessage from './pinnedMessage';
|
|
6
7
|
import Poll from './poll';
|
|
7
8
|
import User from './user';
|
|
8
9
|
declare const Channel_base: import("mobx-keystone")._Model<unknown, {
|
|
@@ -14,9 +15,28 @@ declare const Channel_base: import("mobx-keystone")._Model<unknown, {
|
|
|
14
15
|
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Ref<User>>>;
|
|
15
16
|
polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
|
|
16
17
|
activePoll: import("mobx-keystone").OptionalModelProp<Ref<Poll> | undefined>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
|
|
19
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
20
|
+
name: import("mobx-keystone").OptionalModelProp<string>;
|
|
21
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
22
|
+
externalId: import("mobx-keystone").OptionalModelProp<string>;
|
|
23
|
+
type: import("mobx-keystone").OptionalModelProp<ChannelTypeEnum>;
|
|
24
|
+
messages: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Message>>;
|
|
25
|
+
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Ref<User>>>;
|
|
26
|
+
polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
|
|
27
|
+
activePoll: import("mobx-keystone").OptionalModelProp<Ref<Poll> | undefined>;
|
|
28
|
+
pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
|
|
29
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
30
|
+
name: import("mobx-keystone").OptionalModelProp<string>;
|
|
31
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
32
|
+
externalId: import("mobx-keystone").OptionalModelProp<string>;
|
|
33
|
+
type: import("mobx-keystone").OptionalModelProp<ChannelTypeEnum>;
|
|
34
|
+
messages: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Message>>;
|
|
35
|
+
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Ref<User>>>;
|
|
36
|
+
polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
|
|
37
|
+
activePoll: import("mobx-keystone").OptionalModelProp<Ref<Poll> | undefined>;
|
|
38
|
+
pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
|
|
39
|
+
}>>>;
|
|
20
40
|
export default class Channel extends Channel_base {
|
|
21
41
|
addMessages(messages: IRChannelMessage[]): void;
|
|
22
42
|
addUsers(userIds: string[]): void;
|
|
@@ -29,9 +49,15 @@ export default class Channel extends Channel_base {
|
|
|
29
49
|
stopPoll(poll: Poll): void;
|
|
30
50
|
closePollPortal(): void;
|
|
31
51
|
pollResult(poll: Poll): void;
|
|
52
|
+
setPinnedMessages(items: Array<IRPinnedMessage | PinnedMessage>): void;
|
|
53
|
+
cleanAllMessages(): void;
|
|
54
|
+
deleteMessages(ids: number[]): void;
|
|
32
55
|
get sortedMessages(): Message[];
|
|
33
56
|
get messagesCount(): number;
|
|
34
57
|
get userList(): User[];
|
|
35
58
|
get getActivePoll(): Poll | undefined;
|
|
59
|
+
get getPinnedMessages(): PinnedMessage[];
|
|
60
|
+
get lastPinnedMessage(): PinnedMessage;
|
|
61
|
+
findMessageIdx(messageId: number): number;
|
|
36
62
|
}
|
|
37
63
|
export {};
|
|
@@ -6,9 +6,15 @@ declare const Chat_base: import("mobx-keystone")._Model<unknown, {
|
|
|
6
6
|
channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
|
|
7
7
|
pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
|
|
8
8
|
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
10
|
+
channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
|
|
11
|
+
pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
|
|
12
|
+
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
|
|
13
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
14
|
+
channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
|
|
15
|
+
pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
|
|
16
|
+
users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
|
|
17
|
+
}>>>;
|
|
12
18
|
export default class Chat extends Chat_base {
|
|
13
19
|
fetchingQueueUser: string[];
|
|
14
20
|
private startFetching;
|
|
@@ -7,9 +7,23 @@ declare const Message_base: import("mobx-keystone")._Model<unknown, {
|
|
|
7
7
|
type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
|
|
8
8
|
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
|
|
9
9
|
createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
|
|
11
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
12
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
13
|
+
text: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
14
|
+
type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
|
|
15
|
+
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
|
|
16
|
+
createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
17
|
+
meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
|
|
18
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
19
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
20
|
+
text: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
21
|
+
type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
|
|
22
|
+
user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
|
|
23
|
+
createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
24
|
+
meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
|
|
25
|
+
}>>>;
|
|
13
26
|
export default class Message extends Message_base {
|
|
27
|
+
get getUser(): User | undefined;
|
|
14
28
|
}
|
|
15
29
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IRChannelMessage } from 'types/serverResponses';
|
|
2
|
+
declare const PinnedMessage_base: import("mobx-keystone")._Model<unknown, {
|
|
3
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
4
|
+
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
5
|
+
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
6
|
+
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
7
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
8
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
9
|
+
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
10
|
+
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
11
|
+
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
12
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
13
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
14
|
+
channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
15
|
+
messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
|
|
16
|
+
message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
|
|
17
|
+
}>>>;
|
|
18
|
+
export default class PinnedMessage extends PinnedMessage_base {
|
|
19
|
+
}
|
|
20
|
+
export declare const pinnedMessageRef: import("mobx-keystone").RefConstructor<PinnedMessage>;
|
|
21
|
+
export {};
|
|
@@ -7,9 +7,21 @@ declare const Poll_base: import("mobx-keystone")._Model<unknown, {
|
|
|
7
7
|
options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
|
|
8
8
|
validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
|
|
9
9
|
status: import("mobx-keystone").OptionalModelProp<IPollStatus>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
11
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
12
|
+
question: import("mobx-keystone").OptionalModelProp<string>;
|
|
13
|
+
withAnswer: import("mobx-keystone").OptionalModelProp<boolean>;
|
|
14
|
+
options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
|
|
15
|
+
validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
|
|
16
|
+
status: import("mobx-keystone").OptionalModelProp<IPollStatus>;
|
|
17
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
18
|
+
id: import("mobx-keystone").MaybeOptionalModelProp<string>;
|
|
19
|
+
question: import("mobx-keystone").OptionalModelProp<string>;
|
|
20
|
+
withAnswer: import("mobx-keystone").OptionalModelProp<boolean>;
|
|
21
|
+
options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
|
|
22
|
+
validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
|
|
23
|
+
status: import("mobx-keystone").OptionalModelProp<IPollStatus>;
|
|
24
|
+
}>>>;
|
|
13
25
|
export default class Poll extends Poll_base {
|
|
14
26
|
}
|
|
15
27
|
export declare const pollRef: import("mobx-keystone").RefConstructor<Poll>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
declare const Pub_base: import("mobx-keystone")._Model<unknown, {
|
|
2
2
|
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
3
3
|
name: import("mobx-keystone").OptionalModelProp<string>;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
5
|
+
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
6
|
+
name: import("mobx-keystone").OptionalModelProp<string>;
|
|
7
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
8
|
+
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
9
|
+
name: import("mobx-keystone").OptionalModelProp<string>;
|
|
10
|
+
}>>>;
|
|
7
11
|
export default class Pub extends Pub_base {
|
|
8
12
|
}
|
|
9
13
|
export {};
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
+
import { AvatarColorEnum } from 'theme/consts';
|
|
1
2
|
import { UserRoleEnum } from '../../types/enums';
|
|
3
|
+
export declare const getColorFromString: (colors: string[], str?: string | null | undefined) => keyof typeof AvatarColorEnum;
|
|
2
4
|
declare const User_base: import("mobx-keystone")._Model<unknown, {
|
|
3
5
|
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
4
6
|
username: import("mobx-keystone").OptionalModelProp<string>;
|
|
5
7
|
displayName: import("mobx-keystone").OptionalModelProp<string>;
|
|
6
8
|
avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
|
|
7
9
|
role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
11
|
+
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
12
|
+
username: import("mobx-keystone").OptionalModelProp<string>;
|
|
13
|
+
displayName: import("mobx-keystone").OptionalModelProp<string>;
|
|
14
|
+
avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
|
|
15
|
+
role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
|
|
16
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
17
|
+
id: import("mobx-keystone").OptionalModelProp<string>;
|
|
18
|
+
username: import("mobx-keystone").OptionalModelProp<string>;
|
|
19
|
+
displayName: import("mobx-keystone").OptionalModelProp<string>;
|
|
20
|
+
avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
|
|
21
|
+
role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
|
|
22
|
+
}>>>;
|
|
11
23
|
export default class User extends User_base {
|
|
24
|
+
get getAvatarColor(): AvatarColorEnum;
|
|
12
25
|
}
|
|
13
26
|
export declare const userRef: import("mobx-keystone").RefConstructor<User>;
|
|
14
27
|
export {};
|
package/dist/keystone/index.d.ts
CHANGED
|
@@ -9,9 +9,19 @@ declare const Root_base: import("mobx-keystone")._Model<unknown, {
|
|
|
9
9
|
socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
|
|
10
10
|
ui: import("mobx-keystone").OptionalModelProp<UI>;
|
|
11
11
|
settings: import("mobx-keystone").OptionalModelProp<Settings>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
13
|
+
chat: import("mobx-keystone").OptionalModelProp<Chat>;
|
|
14
|
+
auth: import("mobx-keystone").OptionalModelProp<Auth>;
|
|
15
|
+
socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
|
|
16
|
+
ui: import("mobx-keystone").OptionalModelProp<UI>;
|
|
17
|
+
settings: import("mobx-keystone").OptionalModelProp<Settings>;
|
|
18
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
19
|
+
chat: import("mobx-keystone").OptionalModelProp<Chat>;
|
|
20
|
+
auth: import("mobx-keystone").OptionalModelProp<Auth>;
|
|
21
|
+
socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
|
|
22
|
+
ui: import("mobx-keystone").OptionalModelProp<UI>;
|
|
23
|
+
settings: import("mobx-keystone").OptionalModelProp<Settings>;
|
|
24
|
+
}>>>;
|
|
15
25
|
export declare class Root extends Root_base {
|
|
16
26
|
}
|
|
17
27
|
export declare const createRootStore: () => Root;
|
|
@@ -3,6 +3,7 @@ export declare const getInitialData: (root: Root) => Promise<void>;
|
|
|
3
3
|
export declare const login: (root: Root, username: string, password?: string | undefined) => Promise<void>;
|
|
4
4
|
export declare const signup: (root: Root, username: string, password?: string | undefined) => Promise<void>;
|
|
5
5
|
export declare const saveProfile: (root: Root, displayName: string, avatar?: string | undefined) => Promise<void>;
|
|
6
|
+
export declare const loadChannelPolls: (root: Root, channelId: string) => Promise<void>;
|
|
6
7
|
export declare const joinChannel: (root: Root, id: string) => Promise<void>;
|
|
7
8
|
export declare const joinChannelByExternalId: (root: Root, externalId: string) => Promise<void>;
|
|
8
9
|
export declare const redirectToInitial: (root: Root) => Promise<void> | void;
|
|
@@ -1,18 +1,39 @@
|
|
|
1
1
|
declare const Settings_base: import("mobx-keystone")._Model<unknown, {
|
|
2
|
-
createChannelAllowed: import("mobx-keystone").
|
|
3
|
-
accessUnregisteredUsers: import("mobx-keystone").
|
|
4
|
-
accessChatGuest: import("mobx-keystone").
|
|
5
|
-
accessRegister: import("mobx-keystone").
|
|
6
|
-
displayDirect: import("mobx-keystone").
|
|
7
|
-
displayUserList: import("mobx-keystone").
|
|
8
|
-
displayChannelList: import("mobx-keystone").
|
|
9
|
-
displaySystemMessages: import("mobx-keystone").
|
|
10
|
-
displayHeader: import("mobx-keystone").
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
3
|
+
accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
4
|
+
accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
5
|
+
accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
6
|
+
displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
7
|
+
displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
8
|
+
displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
9
|
+
displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
10
|
+
displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
11
|
+
socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
12
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
13
|
+
createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
14
|
+
accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
15
|
+
accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
16
|
+
accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
17
|
+
displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
18
|
+
displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
19
|
+
displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
20
|
+
displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
21
|
+
displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
22
|
+
socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
23
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
24
|
+
createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
25
|
+
accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
26
|
+
accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
27
|
+
accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
28
|
+
displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
29
|
+
displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
30
|
+
displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
31
|
+
displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
32
|
+
displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
33
|
+
socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
34
|
+
}>>>;
|
|
14
35
|
export default class Settings extends Settings_base {
|
|
15
|
-
setAll({ createChannelAllowed, accessUnregisteredUsers, accessChatGuest, accessRegister, displayDirect, displayUserList, displayChannelList, displaySystemMessages, displayHeader, }: Record<string, any>): void;
|
|
36
|
+
setAll({ createChannelAllowed, accessUnregisteredUsers, accessChatGuest, accessRegister, displayDirect, displayUserList, displayChannelList, displaySystemMessages, displayHeader, socketUrl, }: Record<string, any>): void;
|
|
16
37
|
get authMode(): number;
|
|
17
38
|
}
|
|
18
39
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const SocketStore_base: import("mobx-keystone")._Model<unknown, {
|
|
2
|
-
isSocketConnected: import("mobx-keystone").
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
}
|
|
2
|
+
isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
3
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
4
|
+
isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
5
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
6
|
+
isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
7
|
+
}>>>;
|
|
6
8
|
export default class SocketStore extends SocketStore_base {
|
|
7
|
-
connect(accessToken: string): void;
|
|
9
|
+
connect(socketUrl: string, accessToken: string): void;
|
|
8
10
|
}
|
|
9
11
|
export {};
|
package/dist/keystone/ui.d.ts
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
declare const UI_base: import("mobx-keystone")._Model<unknown, {
|
|
2
2
|
route: import("mobx-keystone").OptionalModelProp<string>;
|
|
3
|
-
channelId: import("mobx-keystone").
|
|
4
|
-
params: import("mobx-keystone").
|
|
5
|
-
initialized: import("mobx-keystone").
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
4
|
+
params: import("mobx-keystone").ModelProp<Record<string, unknown>, Record<string, unknown> | null | undefined, Record<string, unknown>, Record<string, unknown> | null | undefined, string, false, string>;
|
|
5
|
+
initialized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
6
|
+
pinnedMessageIdx: import("mobx-keystone").ModelProp<Record<string, number>, Record<string, number> | null | undefined, Record<string, number>, Record<string, number> | null | undefined, string, false, string>;
|
|
7
|
+
}, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
|
|
8
|
+
route: import("mobx-keystone").OptionalModelProp<string>;
|
|
9
|
+
channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
10
|
+
params: import("mobx-keystone").ModelProp<Record<string, unknown>, Record<string, unknown> | null | undefined, Record<string, unknown>, Record<string, unknown> | null | undefined, string, false, string>;
|
|
11
|
+
initialized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
12
|
+
pinnedMessageIdx: import("mobx-keystone").ModelProp<Record<string, number>, Record<string, number> | null | undefined, Record<string, number>, Record<string, number> | null | undefined, string, false, string>;
|
|
13
|
+
}>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
|
|
14
|
+
route: import("mobx-keystone").OptionalModelProp<string>;
|
|
15
|
+
channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
|
|
16
|
+
params: import("mobx-keystone").ModelProp<Record<string, unknown>, Record<string, unknown> | null | undefined, Record<string, unknown>, Record<string, unknown> | null | undefined, string, false, string>;
|
|
17
|
+
initialized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
|
|
18
|
+
pinnedMessageIdx: import("mobx-keystone").ModelProp<Record<string, number>, Record<string, number> | null | undefined, Record<string, number>, Record<string, number> | null | undefined, string, false, string>;
|
|
19
|
+
}>>>;
|
|
9
20
|
export default class UI extends UI_base {
|
|
10
21
|
routeHistory: string[];
|
|
11
22
|
setRoute(route: string): void;
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -11,18 +11,18 @@ declare const _default: {
|
|
|
11
11
|
enterTheChat: string;
|
|
12
12
|
or: string;
|
|
13
13
|
login: string;
|
|
14
|
-
asGuest: string;
|
|
15
14
|
signIn: string;
|
|
16
|
-
|
|
15
|
+
signInTheChat: string;
|
|
17
16
|
dontHaveAccount: string;
|
|
18
17
|
signUp: string;
|
|
19
18
|
enterPassword: string;
|
|
20
|
-
|
|
19
|
+
signUpinTheChat: string;
|
|
21
20
|
alreadyHaveAccount: string;
|
|
22
21
|
name: string;
|
|
23
22
|
password: string;
|
|
24
23
|
createAccount: string;
|
|
25
24
|
polls: string;
|
|
25
|
+
poll: string;
|
|
26
26
|
profile: string;
|
|
27
27
|
users: string;
|
|
28
28
|
createNewChannel: string;
|
|
@@ -53,6 +53,15 @@ declare const _default: {
|
|
|
53
53
|
questionValidateWriteLeastTwoAnswerOptions: string;
|
|
54
54
|
questionValidateLeastOneCorrectAnswer: string;
|
|
55
55
|
questionValidateCorrectAnswerNotEmpty: string;
|
|
56
|
+
questionValidateNotLongerLetters: string;
|
|
57
|
+
joined: string;
|
|
58
|
+
channelCreated: string;
|
|
59
|
+
pinMessage: string;
|
|
60
|
+
deleteMessage: string;
|
|
61
|
+
deleteAllMessage: string;
|
|
62
|
+
systemMessageChangedName: string;
|
|
63
|
+
systemMessageUserChangedChannelName: string;
|
|
64
|
+
systemMessageChangedChannelName: string;
|
|
56
65
|
};
|
|
57
66
|
ru: {
|
|
58
67
|
messageInputPlaceholder: string;
|
|
@@ -66,18 +75,18 @@ declare const _default: {
|
|
|
66
75
|
enterTheChat: string;
|
|
67
76
|
or: string;
|
|
68
77
|
login: string;
|
|
69
|
-
asGuest: string;
|
|
70
78
|
signIn: string;
|
|
71
|
-
|
|
79
|
+
signInTheChat: string;
|
|
72
80
|
dontHaveAccount: string;
|
|
73
81
|
signUp: string;
|
|
74
82
|
enterPassword: string;
|
|
75
|
-
|
|
83
|
+
signUpinTheChat: string;
|
|
76
84
|
alreadyHaveAccount: string;
|
|
77
85
|
name: string;
|
|
78
86
|
password: string;
|
|
79
87
|
createAccount: string;
|
|
80
88
|
polls: string;
|
|
89
|
+
poll: string;
|
|
81
90
|
profile: string;
|
|
82
91
|
users: string;
|
|
83
92
|
createNewChannel: string;
|
|
@@ -108,6 +117,15 @@ declare const _default: {
|
|
|
108
117
|
questionValidateWriteLeastTwoAnswerOptions: string;
|
|
109
118
|
questionValidateLeastOneCorrectAnswer: string;
|
|
110
119
|
questionValidateCorrectAnswerNotEmpty: string;
|
|
120
|
+
questionValidateNotLongerLetters: string;
|
|
121
|
+
joined: string;
|
|
122
|
+
channelCreated: string;
|
|
123
|
+
pinMessage: string;
|
|
124
|
+
deleteMessage: string;
|
|
125
|
+
deleteAllMessage: string;
|
|
126
|
+
systemMessageChangedName: string;
|
|
127
|
+
systemMessageUserChangedChannelName: string;
|
|
128
|
+
systemMessageChangedChannelName: string;
|
|
111
129
|
};
|
|
112
130
|
};
|
|
113
131
|
export default _default;
|
package/dist/theme/consts.d.ts
CHANGED
|
@@ -1,25 +1,42 @@
|
|
|
1
|
-
export declare const HEADER_HEIGHT =
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const HEADER_HEIGHT = 68;
|
|
2
|
+
export declare const CHAT_MESSAGE_SUBMIT_FOOTER_HEIGHT = 60;
|
|
3
|
+
export declare const BREAKPOINTS: {
|
|
4
|
+
SM: number;
|
|
5
|
+
};
|
|
3
6
|
export declare const zINDEX: {
|
|
4
7
|
HEADER: number;
|
|
5
8
|
};
|
|
9
|
+
export declare enum AvatarColorEnum {
|
|
10
|
+
AVATAR1_BURGUNDY = "AVATAR1_BURGUNDY",
|
|
11
|
+
AVATAR2_RED = "AVATAR2_RED",
|
|
12
|
+
AVATAR3_DARK_PINK = "AVATAR3_DARK_PINK",
|
|
13
|
+
AVATAR4_PINK = "AVATAR4_PINK",
|
|
14
|
+
AVATAR5_GOLD = "AVATAR5_GOLD",
|
|
15
|
+
AVATAR6_NAVY_GREEN = "AVATAR6_NAVY_GREEN",
|
|
16
|
+
AVATAR7_NAVY_BLUE = "AVATAR7_NAVY_BLUE",
|
|
17
|
+
AVATAR8_PURPLE = "AVATAR8_PURPLE"
|
|
18
|
+
}
|
|
6
19
|
export declare const COLOURS: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
BLACK_01: string;
|
|
21
|
+
BLACK_03: string;
|
|
22
|
+
WHITE: string;
|
|
23
|
+
BLACK: string;
|
|
24
|
+
POLL_TEXT_PRIMARY: string;
|
|
25
|
+
POLL_TEXT_SECONDARY: string;
|
|
13
26
|
SURFACE_PRIMARY: string;
|
|
14
27
|
SURFACE_SECONDARY: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
BG_FOR_SLOT: string;
|
|
29
|
+
LIGHT_01: string;
|
|
30
|
+
LIGHT_02: string;
|
|
31
|
+
LIGHT_03: string;
|
|
32
|
+
LIGHT_04: string;
|
|
33
|
+
BLUE: string;
|
|
34
|
+
AVATAR1_BURGUNDY: string;
|
|
35
|
+
AVATAR2_RED: string;
|
|
36
|
+
AVATAR3_DARK_PINK: string;
|
|
37
|
+
AVATAR4_PINK: string;
|
|
38
|
+
AVATAR5_GOLD: string;
|
|
39
|
+
AVATAR6_NAVY_GREEN: string;
|
|
40
|
+
AVATAR7_NAVY_BLUE: string;
|
|
41
|
+
AVATAR8_PURPLE: string;
|
|
25
42
|
};
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@material
|
|
1
|
+
declare const _default: import("@mui/material/styles").Theme;
|
|
2
2
|
export default _default;
|
package/dist/types/const.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export declare enum Cookie {
|
|
|
4
4
|
export declare const APP_ID = "livedigital-chat";
|
|
5
5
|
export declare const rootDivAttrAppId = "data-appId";
|
|
6
6
|
export declare const rootDivAttrChatId = "data-chatid";
|
|
7
|
+
export declare const rootDivAttrApiUrl = "data-apiUrl";
|
|
7
8
|
export declare const POLL_CONTAINER = "poll-container";
|
|
@@ -13,6 +13,7 @@ export interface IRChannelMessage {
|
|
|
13
13
|
type: MessageTypeEnum;
|
|
14
14
|
userId: string;
|
|
15
15
|
createdAt: string;
|
|
16
|
+
meta: Record<string, unknown>;
|
|
16
17
|
}
|
|
17
18
|
export interface ISEMessage {
|
|
18
19
|
channelId: string;
|
|
@@ -50,3 +51,9 @@ export interface IRLogin {
|
|
|
50
51
|
export interface IRGetNode {
|
|
51
52
|
uri: string;
|
|
52
53
|
}
|
|
54
|
+
export interface IRPinnedMessage {
|
|
55
|
+
id: number;
|
|
56
|
+
channelId: number;
|
|
57
|
+
messageId: number;
|
|
58
|
+
message: IRChannelMessage;
|
|
59
|
+
}
|
|
@@ -7,6 +7,9 @@ declare enum SocketEventsEnum {
|
|
|
7
7
|
PollStart = "poll-start",
|
|
8
8
|
PollStop = "poll-stop",
|
|
9
9
|
PollVote = "poll-vote",
|
|
10
|
-
UserUpdateProfile = "user-update-profile"
|
|
10
|
+
UserUpdateProfile = "user-update-profile",
|
|
11
|
+
MessagePinned = "message-pinned",
|
|
12
|
+
DeleteMessages = "delete-messages",
|
|
13
|
+
CleanChannelMessages = "clean-channel-messages"
|
|
11
14
|
}
|
|
12
15
|
export default SocketEventsEnum;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './HeaderTitile';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { AvatarColorEnum } from 'theme/consts';
|
|
2
3
|
export declare enum Size {
|
|
3
4
|
lg = 32,
|
|
4
5
|
sm = 24
|
|
@@ -8,6 +9,7 @@ export interface IProps {
|
|
|
8
9
|
name?: string;
|
|
9
10
|
size: keyof typeof Size;
|
|
10
11
|
onClick?: () => void;
|
|
12
|
+
avatarColor?: AvatarColorEnum;
|
|
11
13
|
}
|
|
12
14
|
declare const Avatar: FC<IProps>;
|
|
13
15
|
export default Avatar;
|
|
@@ -4,7 +4,7 @@ interface ButtonProps {
|
|
|
4
4
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
variant?: 'contained' | 'text' | 'submit' | 'outlined' | 'flatTransparent';
|
|
7
|
+
variant?: 'contained' | 'text' | 'submit' | 'outlined' | 'flatTransparent' | 'link' | 'primary';
|
|
8
8
|
size?: 'large' | 'medium' | 'small';
|
|
9
9
|
className?: string;
|
|
10
10
|
[prop: string]: unknown;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props?: any) => import("@
|
|
1
|
+
declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "medium" | "text" | "large" | "small" | "contained" | "outlined" | "flatTransparent" | "fullWidth" | "submit" | "link" | "primary">;
|
|
2
2
|
export default _default;
|