emoji-picker-react 4.13.0 → 4.13.2
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/config/config.d.ts +1 -1
- package/dist/emoji-picker-react.cjs.development.js +3 -1
- 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 -1
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/navigation/CategoryNavigation.tsx +3 -1
- package/src/config/config.ts +10 -10
- package/src/config/mutableConfig.ts +4 -3
package/dist/config/config.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare type ConfigExternal = {
|
|
|
51
51
|
} & Omit<PickerConfigInternal, 'previewConfig' | 'unicodeToHide'>;
|
|
52
52
|
export declare type PickerConfig = Partial<ConfigExternal>;
|
|
53
53
|
export declare type PickerDimensions = string | number;
|
|
54
|
-
export declare type MouseDownEvent = (emoji: EmojiClickData, event: MouseEvent, api
|
|
54
|
+
export declare type MouseDownEvent = (emoji: EmojiClickData, event: MouseEvent, api?: OnEmojiClickApi) => void;
|
|
55
55
|
export declare type OnSkinToneChange = (emoji: SkinTones) => void;
|
|
56
56
|
declare type OnEmojiClickApi = {
|
|
57
57
|
collapseToReactions: () => void;
|
|
@@ -20697,8 +20697,10 @@ function CategoryNavigation() {
|
|
|
20697
20697
|
allowNavigation: allowNavigation,
|
|
20698
20698
|
categoryConfig: categoryConfig,
|
|
20699
20699
|
onClick: function onClick() {
|
|
20700
|
-
setActiveCategory(category);
|
|
20701
20700
|
scrollCategoryIntoView(category);
|
|
20701
|
+
setTimeout(function () {
|
|
20702
|
+
setActiveCategory(category);
|
|
20703
|
+
}, 10);
|
|
20702
20704
|
}
|
|
20703
20705
|
});
|
|
20704
20706
|
}));
|