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.
- package/dist/index.es.js +157 -25
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +175 -25
- package/dist/index.js.map +1 -1
- package/dist/src/utils/input-event-utils.d.ts +19 -1
- package/package.json +1 -1
@@ -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