react-peer-chat 0.3.7 → 0.3.8

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/build/index.js CHANGED
@@ -119,8 +119,8 @@ export default function Chat({ name, peerId, remotePeerId, peerOptions, text = t
119
119
  return React.createElement("div", { className: 'rpc-main rpc-font', ...props },
120
120
  typeof children === 'function' ? children({ remotePeerName, messages, addMessage, audio, setAudio }) : React.createElement(React.Fragment, null,
121
121
  text && React.createElement("div", { className: 'rpc-dialog-container' },
122
- dialog ? React.createElement(BiSolidMessageX, { onClick: () => setDialog(false) }) : React.createElement("div", { className: 'rpc-notification' },
123
- React.createElement(BiSolidMessageDetail, { onClick: () => {
122
+ dialog ? React.createElement(BiSolidMessageX, { title: 'Close chat', onClick: () => setDialog(false) }) : React.createElement("div", { className: 'rpc-notification' },
123
+ React.createElement(BiSolidMessageDetail, { title: 'Open chat', onClick: () => {
124
124
  setNotification(false);
125
125
  setDialog(true);
126
126
  } }),
@@ -146,7 +146,7 @@ export default function Chat({ name, peerId, remotePeerId, peerOptions, text = t
146
146
  } },
147
147
  React.createElement("input", { ref: inputRef, className: 'rpc-input rpc-font', placeholder: 'Enter a message' }),
148
148
  React.createElement("button", { type: 'submit', className: 'rpc-button' },
149
- React.createElement(GrSend, null)))))),
149
+ React.createElement(GrSend, { title: 'Send message' })))))),
150
150
  voice && React.createElement("div", null, audio ? React.createElement(BsFillMicFill, { title: "Turn mic off", onClick: () => setAudio(false) }) : React.createElement(BsFillMicMuteFill, { title: "Turn mic on", onClick: () => setAudio(true) }))),
151
151
  voice && audio && React.createElement("audio", { ref: streamRef, autoPlay: true, style: { display: 'none' } }));
152
152
  }
package/build/styles.css CHANGED
@@ -19,10 +19,10 @@
19
19
  .rpc-notification .rpc-badge {
20
20
  background-color: red;
21
21
  position: absolute;
22
- top: 0.25rem;
23
- right: 0.25rem;
24
- width: 0.25rem;
25
- height: 0.25rem;
22
+ top: 0.3rem;
23
+ right: 0.3rem;
24
+ width: 0.3rem;
25
+ height: 0.3rem;
26
26
  border-radius: 100%;
27
27
  }
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-peer-chat",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
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",