react-input-emoji 5.9.0-beta.2 → 5.9.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -1
- package/dist/src/types/types.d.ts +0 -32
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-input-emoji",
|
3
|
-
"version": "5.9.0-beta.
|
3
|
+
"version": "5.9.0-beta.3",
|
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",
|
@@ -38,6 +38,7 @@
|
|
38
38
|
"@babel/cli": "^7.14.3",
|
39
39
|
"@babel/core": "^7.14.3",
|
40
40
|
"@babel/plugin-external-helpers": "^7.12.13",
|
41
|
+
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
41
42
|
"@babel/preset-env": "^7.14.4",
|
42
43
|
"@babel/preset-react": "^7.13.13",
|
43
44
|
"@rollup/plugin-babel": "^5.3.0",
|
@@ -1,32 +0,0 @@
|
|
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";
|