emoji-picker-react 4.9.4 → 4.11.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/README.md +15 -4
- package/dist/config/config.d.ts +1 -0
- package/dist/emoji-picker-react.cjs.development.js +9 -4
- 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 +10 -5
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/body/EmojiList.tsx +7 -6
- package/src/config/config.ts +7 -1
package/package.json
CHANGED
|
@@ -41,12 +41,13 @@ export function EmojiList() {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
<React.Suspense key={category}>
|
|
45
|
+
<RenderCategory
|
|
46
|
+
category={category}
|
|
47
|
+
categoryConfig={categoryConfig}
|
|
48
|
+
renderdCategoriesCountRef={renderdCategoriesCountRef}
|
|
49
|
+
/>
|
|
50
|
+
</React.Suspense>
|
|
50
51
|
);
|
|
51
52
|
})}
|
|
52
53
|
</ul>
|
package/src/config/config.ts
CHANGED
|
@@ -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 = {
|