@vlprojects-chat/chat 0.0.49 → 0.0.52

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,5 +1,6 @@
1
- import { Root } from 'keystone/index';
2
- import User from '../../keystone/chat/user';
1
+ import { Root } from 'keystone';
2
+ import User from 'keystone/chat/user';
3
+ export declare const getDirectsList: (root: Root) => Promise<void>;
3
4
  export declare const getDirectChannelName: (root: Root, channelId: string) => string;
4
5
  export declare const getDirectChannelList: (root: Root) => string[];
5
6
  export declare const getChatWithUser: (root: Root, channelId: string) => User | undefined;
@@ -1,2 +1,2 @@
1
- declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"form" | "textInput">;
1
+ declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"form">;
2
2
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import Poll from 'keystone/chat/poll';
2
- import { FC } from 'react';
2
+ import React from 'react';
3
3
  interface IProps {
4
4
  templatePoll: Poll;
5
5
  lastActivePoll?: Poll;
6
6
  }
7
- declare const PollAction: FC<IProps>;
8
- export default PollAction;
7
+ declare const _default: React.FunctionComponent<IProps>;
8
+ export default _default;
@@ -3,7 +3,7 @@ import Poll from 'keystone/chat/poll';
3
3
  import { IServerPoll } from '../CreatePollPage/types';
4
4
  export declare const getPollListForChannel: (channelId?: string | undefined) => Promise<IServerPoll[] | undefined>;
5
5
  export declare const getPollById: (pollId: number) => Promise<IServerPoll | undefined>;
6
- export declare const deletePoll: (pollId: number) => Promise<void | undefined>;
6
+ export declare const deletePoll: (pollId: number) => Promise<boolean>;
7
7
  export declare const startPoll: (pollId?: string | undefined) => Promise<IServerPoll | undefined>;
8
8
  export declare const stopPoll: (pollId?: string | undefined) => Promise<IServerPoll | undefined>;
9
9
  interface IOnPollEnd {
@@ -16,5 +16,5 @@ interface IOnPollStart {
16
16
  templatePoll?: Poll;
17
17
  channel?: Channel;
18
18
  }
19
- export declare const onPollStartHandler: (props: IOnPollStart) => Promise<void>;
19
+ export declare const onPollStartHandler: (props: IOnPollStart) => void;
20
20
  export {};
@@ -1,5 +1,5 @@
1
+ import User from 'keystone/chat/user';
1
2
  import React from 'react';
2
- import User from '../../../../keystone/chat/user';
3
3
  declare type Props = {
4
4
  users: User[];
5
5
  };
@@ -1,4 +1,4 @@
1
- import { Root } from 'keystone/index';
1
+ import { Root } from 'keystone';
2
2
  import Channel from '../../keystone/chat/channel';
3
3
  import User from '../../keystone/chat/user';
4
4
  import { IRChannel } from '../../types/serverResponses';