react-peer-chat 0.2.4 → 0.2.5

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.d.ts CHANGED
@@ -12,7 +12,7 @@ type ChildrenOptions = {
12
12
  audio?: boolean;
13
13
  setAudio?: (audio: boolean) => void;
14
14
  };
15
- type DialogPosition = 'left' | 'center' | 'up';
15
+ type DialogPosition = 'left' | 'center' | 'right';
16
16
  type DialogOptions = {
17
17
  position: DialogPosition;
18
18
  style: CSSProperties;
package/build/index.js CHANGED
@@ -115,7 +115,7 @@ export default function Chat({ name, peerId, remotePeerId, peerOptions, text = t
115
115
  setDialog(true);
116
116
  } }),
117
117
  notification && React.createElement("span", { className: 'rpc-badge' })),
118
- React.createElement("dialog", { ref: dialogRef, className: `${dialog ? 'dialog' : ''} position-${dialogOptions?.position || 'center'}`, style: dialogOptions?.style },
118
+ React.createElement("dialog", { ref: dialogRef, className: `${dialog ? 'rpc-dialog' : ''} rpc-position-${dialogOptions?.position || 'center'}`, style: dialogOptions?.style },
119
119
  React.createElement("div", { className: 'rpc-heading' }, "Chat"),
120
120
  React.createElement("hr", null),
121
121
  React.createElement("div", null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-peer-chat",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
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",