@ethora/chat-component 24.11.14 → 24.11.16

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/README.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Ethora Chat Component: a single npm for your React chat
2
2
 
3
+ ![GitHub watchers](https://img.shields.io/github/watchers/dappros/ethora-chat-component) ![GitHub forks](https://img.shields.io/github/forks/dappros/ethora-chat-component) ![GitHub Repo stars](https://img.shields.io/github/stars/dappros/ethora-chat-component) ![GitHub repo size](https://img.shields.io/github/repo-size/dappros/ethora-chat-component) ![GitHub language count](https://img.shields.io/github/languages/count/dappros/ethora-chat-component) ![GitHub top language](https://img.shields.io/github/languages/top/dappros/ethora-chat-component) <a href="https://codeclimate.com/github/dappros/ethora-chat-component/maintainability"><img src="https://api.codeclimate.com/v1/badges/715c6f3ffb08de5ca621/maintainability" /></a> ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/dappros/ethora-chat-component/main) ![GitHub issues](https://img.shields.io/github/issues/dappros/ethora-chat-component) ![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/dappros/ethora-chat-component) ![GitHub](https://img.shields.io/github/license/dappros/ethora-chat-component) ![GitHub contributors](https://img.shields.io/github/contributors/dappros/ethora-chat-component)
4
+
5
+ ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=flat&logo=javascript&logoColor=%23F7DF1E)
6
+ ![React](https://img.shields.io/badge/react-%2320232a.svg?style=flat&logo=react&logoColor=%2361DAFB) ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=flat&logo=typescript&logoColor=white) ![JWT](https://img.shields.io/badge/JWT-black?style=flat&logo=JSON%20web%20tokens)
7
+
8
+ [![Discord](https://img.shields.io/badge/%3Cethora%3E-%237289DA.svg?style=flat&logo=discord&logoColor=white)](https://discord.gg/Sm6bAHA3ZC) [![Twitter URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fdappros%2Fethora)](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fdappros%2Fethora%2F&via=tarasfilatov&text=check%20out%20Ethora%20%23web3%20%23social%20app%20engine&hashtags=lowcode%2Creactnative%2Copensource%2Cnocode) [![Website](https://img.shields.io/website?url=https%3A%2F%2Fethora.com%2F)](https://ethora.com/) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCRvrXwMOU0WBkRZyFlU7V_g)](https://www.youtube.com/channel/UCRvrXwMOU0WBkRZyFlU7V_g)
9
+
10
+
11
+
12
+
13
+
3
14
  ## About Chat Component
4
15
 
5
16
  Ethora Chat Component allows you to build a functioning chat room super quickly.
@@ -55,7 +66,7 @@ you should see something like this:
55
66
 
56
67
  Voilà - your chat app should work like so:
57
68
 
58
- <img src="https://github.com/dappros/ethora-chat-component/blob/main/img/readme_animation.gif" width="600" />
69
+ <img src="https://github.com/dappros/ethora-chat-component/blob/main/img/readme_animation.gif" width="860" />
59
70
 
60
71
  ℹ️ Note: your Ethora App, User and Chat credentials are hard-coded and login screen is bypassed. This is done so that you can scaffold and test the functionality quickly.
61
72
  Leave this as is if you only need to demo or validate the chat functionality as part of your project.
@@ -70,3 +70,15 @@ export declare const LeaveIcon: ({ color, ...props }: {
70
70
  [x: string]: any;
71
71
  color?: string;
72
72
  }) => import("react/jsx-runtime").JSX.Element;
73
+ export declare const BackIcon: ({ color, ...props }: {
74
+ [x: string]: any;
75
+ color?: string;
76
+ }) => import("react/jsx-runtime").JSX.Element;
77
+ export declare const QrIcon: ({ color, ...props }: {
78
+ [x: string]: any;
79
+ color?: string;
80
+ }) => import("react/jsx-runtime").JSX.Element;
81
+ export declare const ChatIcon: ({ color, ...props }: {
82
+ [x: string]: any;
83
+ color?: string;
84
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,18 @@ import { default as React } from 'react';
2
2
 
3
3
  interface ChatHeaderAvatarProps {
4
4
  name?: string;
5
+ icon?: string;
5
6
  onClick?: () => void;
6
7
  size?: number;
8
+ upload?: {
9
+ onUpload: (image: File) => void;
10
+ active: boolean;
11
+ };
12
+ remove?: {
13
+ enabled: boolean;
14
+ onRemoveClick: () => void;
15
+ };
16
+ role?: string;
7
17
  }
8
18
  export declare const ChatHeaderAvatar: React.FC<ChatHeaderAvatarProps>;
9
19
  export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface ChatProfileModalProps {
4
+ handleCloseModal: any;
5
+ }
6
+ declare const ChatProfileModal: React.FC<ChatProfileModalProps>;
7
+ export default ChatProfileModal;
@@ -3,7 +3,7 @@ import { default as React } from 'react';
3
3
  interface ModalProps {
4
4
  children?: React.ReactNode;
5
5
  modal?: string;
6
- setOpenModal: any;
6
+ setOpenModal: (value?: 'settings' | 'profile' | 'chatprofile') => any;
7
7
  }
8
8
  declare const Modal: React.FC<ModalProps>;
9
9
  export default Modal;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface ModalHeaderComponentProps {
4
+ handleCloseModal: any;
5
+ headerTitle?: string;
6
+ }
7
+ declare const ModalHeaderComponent: React.FC<ModalHeaderComponentProps>;
8
+ export default ModalHeaderComponent;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface UserSettingsModalProps {
4
+ handleCloseModal: any;
5
+ }
6
+ declare const UserSettingsModal: React.FC<UserSettingsModalProps>;
7
+ export default UserSettingsModal;
@@ -3,9 +3,11 @@ import { default as React, ReactElement } from 'react';
3
3
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  text?: string | ReactElement;
5
5
  EndIcon?: ReactElement;
6
+ StartIcon?: ReactElement;
6
7
  loading?: boolean;
7
8
  unstyled?: boolean;
8
9
  variant?: 'default' | 'filled' | 'outlined';
10
+ children?: React.ReactNode;
9
11
  }
10
12
  declare const Button: React.FC<ButtonProps>;
11
13
  export default Button;
@@ -0,0 +1,18 @@
1
+ export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ burgerMenu?: boolean;
3
+ open?: boolean;
4
+ }>> & string;
5
+ export declare const BurgerButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
6
+ export declare const ChatItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
+ active: boolean;
8
+ bg?: string;
9
+ }>> & string;
10
+ export declare const SearchContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
+ export declare const ScollableContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const ChatInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
+ export declare const ChatName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
+ export declare const LastMessage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ export declare const UserCount: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ active: boolean;
17
+ }>> & string;
18
+ export declare const Divider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;