emoji-picker-react 4.4.10 → 4.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emoji-picker-react.cjs.development.js +3 -2
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +3 -2
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/config/config.ts +4 -2
- package/src/hooks/useDisallowedEmojis.ts +1 -1
package/package.json
CHANGED
package/src/config/config.ts
CHANGED
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
mergeCategoriesConfig
|
|
16
16
|
} from './categoryConfig';
|
|
17
17
|
|
|
18
|
+
const KNOWN_FAILING_EMOJIS = ['2640-fe0f', '2642-fe0f', '2695-fe0f'];
|
|
19
|
+
|
|
18
20
|
export function mergeConfig(
|
|
19
21
|
userConfig: PickerConfig = {}
|
|
20
22
|
): PickerConfigInternal {
|
|
@@ -69,8 +71,8 @@ export function basePickerConfig(): PickerConfigInternal {
|
|
|
69
71
|
skinTonesDisabled: false,
|
|
70
72
|
suggestedEmojisMode: SuggestionMode.FREQUENT,
|
|
71
73
|
theme: Theme.LIGHT,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
unicodeToHide: new Set<string>(KNOWN_FAILING_EMOJIS),
|
|
75
|
+
width: 350
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
emojiUnified,
|
|
9
9
|
unifiedWithoutSkinTone
|
|
10
10
|
} from '../dataUtils/emojiSelectors';
|
|
11
|
+
|
|
11
12
|
import { useIsUnicodeHidden } from './useHideEmojisByUniocode';
|
|
12
13
|
|
|
13
14
|
export function useDisallowedEmojis() {
|
|
@@ -48,4 +49,3 @@ function addedInNewerVersion(
|
|
|
48
49
|
): boolean {
|
|
49
50
|
return addedIn(emoji) > supportedLevel;
|
|
50
51
|
}
|
|
51
|
-
|