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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.4.10",
2
+ "version": "4.4.11",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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
- width: 350,
73
- unicodeToHide: new Set<string>(),
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
-