react-peer-chat 0.5.0 → 0.5.1
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 +1 -3
- package/build/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Here is the full API for the `<Chat>` component, these properties can be set on
|
|
|
122
122
|
| `voice` | `boolean` | No | `true` | Voice chat will be enabled if this property is set to true. |
|
|
123
123
|
| `peerOptions` | [`PeerOptions`](#PeerOptions) | No | - | Options to customize peerjs Peer instance. |
|
|
124
124
|
| `dialogOptions` | [`DialogOptions`](#DialogOptions) | No | { position: 'center' } | Options to customize text dialog box styling. |
|
|
125
|
-
| `onError` | `Function` | No | `() => alert('Browser not supported! Try some other browser.')` | Function to be executed if browser doesn't support
|
|
125
|
+
| `onError` | `Function` | No | `() => alert('Browser not supported! Try some other browser.')` | Function to be executed if browser doesn't support `WebRTC` |
|
|
126
126
|
| `onMicError` | `Function` | No | `() => alert('Microphone not accessible!')` | Function to be executed when microphone is not accessible. |
|
|
127
127
|
| `props` | `React.DetailedHTMLProps` | No | - | Props to customize the `<Chat>` component. |
|
|
128
128
|
| `children` | [`Children`](#Children) | No | - | Props to customize the `<Chat>` component. |
|
|
@@ -157,7 +157,5 @@ type ChildrenOptions = {
|
|
|
157
157
|
};
|
|
158
158
|
type Children = (childrenOptions: ChildrenOptions) => ReactNode;
|
|
159
159
|
```
|
|
160
|
-
## Used By
|
|
161
|
-
- [StarWars](https://starwarsgame.vercel.app/)
|
|
162
160
|
## Author
|
|
163
161
|
[Sahil Aggarwal](https://www.github.com/SahilAggarwal2004)
|
package/build/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-peer-chat",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "An easy to use react component for impleting peer-to-peer chatting.",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": ">=16.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/react": "^18.2.
|
|
37
|
+
"@types/react": "^18.2.28"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"peerjs": "^1.5.1"
|