@vlprojects-chat/chat 0.0.50 → 0.0.53

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,8 +1,8 @@
1
1
  import User from 'keystone/chat/user';
2
- import { FC } from 'react';
2
+ import React from 'react';
3
3
  interface IProps {
4
4
  user: User;
5
5
  own: boolean;
6
6
  }
7
- declare const UserMessageDisplayName: FC<IProps>;
8
- export default UserMessageDisplayName;
7
+ declare const _default: React.FC<IProps>;
8
+ export default _default;
@@ -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;
@@ -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';
@@ -1,3 +1,4 @@
1
1
  import { IEvents } from '../utils/eventBus/types';
2
- declare const useEventHook: (listener: string, callback: (data: IEvents) => void) => void;
2
+ declare type Callback = (data: IEvents) => void;
3
+ declare const useEventHook: (listener: string, callback: Callback) => void;
3
4
  export default useEventHook;