react-input-emoji 5.6.5 → 5.6.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ export function handlePaste(event: React.ClipboardEvent): void;
38
38
  *
39
39
  * @param {HandleSelectEmojiProps} props
40
40
  */
41
- export function handleSelectEmoji({ emoji, textInputRef, keepOpened, toggleShowPicker, maxLength }: HandleSelectEmojiProps): void;
41
+ export function handleSelectEmoji({ emoji, textInputRef, keepOpened, toggleShowPicker, maxLength, }: HandleSelectEmojiProps): void;
42
42
  /**
43
43
  *
44
44
  * @param {{text: string, html: string}} props
@@ -74,6 +74,24 @@ export function moveCaretToEnd(input: React.MutableRefObject<HTMLDivElement | nu
74
74
  * @return {string}
75
75
  */
76
76
  export function removeHtmlExceptBr(inputDiv: HTMLDivElement): string;
77
+ /**
78
+ *
79
+ * @param {*} range
80
+ * @returns
81
+ */
82
+ export function getSelectionStart(range: any): {
83
+ node: any;
84
+ offset: any;
85
+ };
86
+ /**
87
+ *
88
+ * @returns {Object} cursor
89
+ */
90
+ export function getCursor(): any;
91
+ /**
92
+ *
93
+ */
94
+ export function addLineBreak(): void;
77
95
  export type HandleKeyDownOptions = {
78
96
  placeholderEl: HTMLDivElement;
79
97
  maxLength: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-emoji",
3
- "version": "5.6.5",
3
+ "version": "5.6.7",
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",