emoji-picker-react 4.9.4 → 4.10.0

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.9.4",
2
+ "version": "4.10.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -48,6 +48,10 @@ export function mergeConfig(
48
48
  suggestionMode: config.suggestedEmojisMode
49
49
  });
50
50
 
51
+ config.hiddenEmojis.forEach(emoji => {
52
+ config.unicodeToHide.add(emoji);
53
+ });
54
+
51
55
  setCustomEmojis(config.customEmojis ?? []);
52
56
 
53
57
  const skinTonePickerLocation = config.searchDisabled
@@ -90,7 +94,8 @@ export function basePickerConfig(): PickerConfigInternal {
90
94
  reactionsDefaultOpen: false,
91
95
  reactions: DEFAULT_REACTIONS,
92
96
  open: true,
93
- allowExpandReactions: true
97
+ allowExpandReactions: true,
98
+ hiddenEmojis: []
94
99
  };
95
100
  }
96
101
 
@@ -120,6 +125,7 @@ export type PickerConfigInternal = {
120
125
  reactions: string[];
121
126
  open: boolean;
122
127
  allowExpandReactions: boolean;
128
+ hiddenEmojis: string[];
123
129
  };
124
130
 
125
131
  export type PreviewConfig = {