@ethora/chat-component 24.11.13 → 24.11.15
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 +13 -2
- package/dist/assets/icons.d.ts +12 -0
- package/dist/components/Modals/Modal/Modal.d.ts +1 -1
- package/dist/components/Modals/ModalHeaderComponent.d.ts +8 -0
- package/dist/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +7 -0
- package/dist/components/styled/Button.d.ts +2 -0
- package/dist/components/styled/RoomListComponents/index.d.ts +18 -0
- package/dist/main.js +5859 -5114
- package/dist/main.js.map +1 -1
- package/dist/networking/stanzaHandlers.d.ts +2 -1
- package/dist/networking/xmpp/createRoom.xmpp.d.ts +3 -0
- package/dist/networking/xmpp/createRoomPresence.xmpp.d.ts +3 -0
- package/dist/networking/xmpp/roomConfig.xmpp.d.ts +3 -0
- package/dist/networking/xmpp/setMeAsOwner.xmpp.d.ts +3 -0
- package/dist/networking/xmppClient.d.ts +1 -1
- package/dist/roomStore/roomsSlice.d.ts +6 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Ethora Chat Component: a single npm for your React chat
|
|
2
2
|
|
|
3
|
+
      <a href="https://codeclimate.com/github/dappros/ethora-chat-component/maintainability"><img src="https://api.codeclimate.com/v1/badges/715c6f3ffb08de5ca621/maintainability" /></a>     
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
  
|
|
7
|
+
|
|
8
|
+
[](https://discord.gg/Sm6bAHA3ZC) [](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) [](https://ethora.com/) [](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="
|
|
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.
|
|
@@ -99,7 +110,7 @@ with:
|
|
|
99
110
|
defaultLogin: boolean;
|
|
100
111
|
disableInteractions: boolean; //disable interactions
|
|
101
112
|
chatHeaderBurgerMenu: boolean; // disable burger menu in room header
|
|
102
|
-
|
|
113
|
+
roomListStyles: React.CSSProperties; // used to change room List styles (left)
|
|
103
114
|
chatRoomStyles: React.CSSProperties; // used to change room styles (right)
|
|
104
115
|
setRoomJidInPath: boolean; // used to set RoomId to url
|
|
105
116
|
/>
|
package/dist/assets/icons.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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;
|