react-input-emoji 5.6.10 → 5.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ export type Props = {
8
8
  cleanOnEnter?: boolean | undefined;
9
9
  onEnter?: (text: string) => void;
10
10
  placeholder?: string | undefined;
11
+ placeholderColor?: string | undefined;
11
12
  onResize?: (size: {
12
13
  width: number;
13
14
  height: number;
@@ -27,6 +28,7 @@ export type Props = {
27
28
  borderColor?: string | undefined;
28
29
  fontSize?: number | undefined;
29
30
  fontFamily?: string | undefined;
31
+ background?: string | undefined;
30
32
  customEmojis?: {
31
33
  id: string;
32
34
  name: string;
@@ -12,7 +12,14 @@ export type Props = {
12
12
  onCopy: (event: React.ClipboardEvent) => void;
13
13
  onPaste: (event: React.ClipboardEvent) => void;
14
14
  placeholder: string;
15
- style: React.CSSProperties;
15
+ style: {
16
+ borderRadius?: number;
17
+ borderColor?: string;
18
+ fontSize?: number;
19
+ fontFamily?: string;
20
+ background: string;
21
+ placeholderColor?: string;
22
+ };
16
23
  tabIndex: number;
17
24
  className: string;
18
25
  };
@@ -85,7 +85,7 @@ export function getSelectionStart(range: any): {
85
85
  };
86
86
  /**
87
87
  *
88
- * @returns {Object} cursor
88
+ * @return {Object} cursor
89
89
  */
90
90
  export function getCursor(): any;
91
91
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-emoji",
3
- "version": "5.6.10",
3
+ "version": "5.7.0",
4
4
  "description": "A React input with an option to add an emoji with language support.",
5
5
  "homepage": "https://cesarwbr.github.io/react-input-emoji/",
6
6
  "author": "cesarwbr",