react-input-emoji 5.6.3 → 5.6.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +50 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +50 -40
- package/dist/index.js.map +1 -1
- package/dist/src/index.d.ts +19 -19
- package/dist/src/types/types.d.ts +32 -0
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -4,29 +4,29 @@ export type ListenerObj = import('./types/types').ListenerObj<any>;
|
|
4
4
|
export type Props = {
|
5
5
|
value: string;
|
6
6
|
onChange: (value: string) => void;
|
7
|
-
theme
|
8
|
-
cleanOnEnter
|
9
|
-
onEnter
|
10
|
-
placeholder
|
11
|
-
onResize
|
7
|
+
theme?: ("light" | "dark" | "auto") | undefined;
|
8
|
+
cleanOnEnter?: boolean | undefined;
|
9
|
+
onEnter?: (text: string) => void;
|
10
|
+
placeholder?: string | undefined;
|
11
|
+
onResize?: (size: {
|
12
12
|
width: number;
|
13
13
|
height: number;
|
14
14
|
}) => void;
|
15
|
-
onClick
|
16
|
-
onFocus
|
15
|
+
onClick?: (() => void) | undefined;
|
16
|
+
onFocus?: (() => void) | undefined;
|
17
17
|
onBlur?: (() => void) | undefined;
|
18
|
-
shouldReturn
|
19
|
-
maxLength
|
20
|
-
keepOpened
|
21
|
-
onKeyDown
|
22
|
-
inputClass
|
23
|
-
disableRecent
|
24
|
-
tabIndex
|
25
|
-
height
|
26
|
-
borderRadius
|
27
|
-
borderColor
|
28
|
-
fontSize
|
29
|
-
fontFamily
|
18
|
+
shouldReturn?: boolean | undefined;
|
19
|
+
maxLength?: number | undefined;
|
20
|
+
keepOpened?: boolean | undefined;
|
21
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
22
|
+
inputClass?: string | undefined;
|
23
|
+
disableRecent?: boolean | undefined;
|
24
|
+
tabIndex?: number | undefined;
|
25
|
+
height?: number | undefined;
|
26
|
+
borderRadius?: number | undefined;
|
27
|
+
borderColor?: string | undefined;
|
28
|
+
fontSize?: number | undefined;
|
29
|
+
fontFamily?: string | undefined;
|
30
30
|
customEmojis?: {
|
31
31
|
id: string;
|
32
32
|
name: string;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
export interface EmojiMartItem {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
native: string;
|
5
|
+
unified: string;
|
6
|
+
keywords: string[];
|
7
|
+
shortcodes: string;
|
8
|
+
emoticons: string[];
|
9
|
+
}
|
10
|
+
export interface MentionUser {
|
11
|
+
id: string;
|
12
|
+
name: string;
|
13
|
+
image: string;
|
14
|
+
}
|
15
|
+
export type Listerner<T> = (event: T) => void;
|
16
|
+
export type ListenerObj<T> = {
|
17
|
+
subscribe: (listerner: Listerner<T>) => () => void;
|
18
|
+
publish: (event?: T) => void;
|
19
|
+
currentListerners: Listerner<T>[];
|
20
|
+
};
|
21
|
+
export type TextInputListeners = {
|
22
|
+
keyDown: ListenerObj<any>;
|
23
|
+
keyUp: ListenerObj<any>;
|
24
|
+
arrowUp: ListenerObj<any>;
|
25
|
+
arrowDown: ListenerObj<any>;
|
26
|
+
enter: ListenerObj<any>;
|
27
|
+
focus: ListenerObj<any>;
|
28
|
+
blur: ListenerObj<any>;
|
29
|
+
};
|
30
|
+
export type SanitizeFn = (html: string) => string;
|
31
|
+
export type PolluteFn = (text: string) => string;
|
32
|
+
export type Languages = "ar" | "be" | "cs" | "de" | "en" | "es" | "fa" | "fi" | "fr" | "hi" | "it" | "ja" | "kr" | "pl" | "pt" | "ru" | "sa" | "tr" | "uk" | "vi" | "zh";
|
package/package.json
CHANGED