Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit b7b97a9

Browse files
fix(lib): remove a warning about missing onKeyPress (#116)
* fix(lib): remove a warning about missing onKeyPress * PubNub SDK v0.25.0 release. --------- Co-authored-by: PubNub Release Bot <[email protected]>
1 parent 0825949 commit b7b97a9

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.pubnub.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
---
22
name: pubnub-react-chat-components
3-
version: v0.24.0
3+
version: v0.25.0
44
scm: github.com/pubnub/react-chat-components
55
schema: 1
66
files:
77
- lib/dist/index.js
88
- lib/dist/index.es.js
99
changelog:
10+
- date: 2023-04-17
11+
version: v0.25.0
12+
changes:
13+
- type: feature
14+
text: "Remove a warning about missing onKeyPress."
1015
- date: 2023-04-11
1116
version: v0.24.0
1217
changes:

packages/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pubnub/common-chat-components",
3-
"version": "0.24.0",
3+
"version": "0.25.0",
44
"main": "src/index.ts",
55
"license": "MIT",
66
"scripts": {

packages/react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pubnub/react-native-chat-components",
3-
"version": "0.24.0",
3+
"version": "0.25.0",
44
"description": "PubNub Chat Components is a development kit of React Native components that aims to help you to easily build Chat applications using PubNub infrastructure. It removes the complexicity of picking an adequate Chat engine, learning its APIs and dealing with its low-level internals. As the same time it allows you to create apps of various use cases, with different functionalities and customizable looks.",
55
"author": "PubNub <[email protected]>",
66
"main": "dist/commonjs/index",

packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pubnub/react-chat-components",
3-
"version": "0.24.0",
3+
"version": "0.25.0",
44
"description": "PubNub Chat Components is a development kit of React components that aims to help you to easily build Chat applications using PubNub infrastructure. It removes the complexicity of picking an adequate Chat engine, learning its APIs and dealing with its low-level internals. As the same time it allows you to create apps of various use cases, with different functionalities and customizable looks.",
55
"author": "PubNub <[email protected]>",
66
"main": "dist/index.js",

packages/react/src/message-input/message-input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const MessageInput: FC<MessageInputProps> = (props: MessageInputProps) =>
9898
sendMessage();
9999
if (fileRef.current) fileRef.current.value = "";
100100
}
101-
props.onKeyPress(event);
101+
props.onKeyPress && props.onKeyPress(event);
102102
} catch (e) {
103103
onError(e);
104104
}

0 commit comments

Comments
 (0)