emoji-picker-react 4.7.5 → 4.7.7-rc.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 CHANGED
@@ -120,10 +120,6 @@ The following props are accepted by them picker:
120
120
  import { EmojiStyle } from 'emoji-picker-react';
121
121
  ```
122
122
 
123
- * `autoFocusSearch`: `boolean` - Whether to focus the search input on mount. Defaults to `true`.
124
-
125
- * `lazyLoadEmojis`: `boolean` - Whether to lazy load the emojis. Defaults to `false`.
126
-
127
123
  - `autoFocusSearch`: `boolean` - Whether to focus the search input on mount. Defaults to `true`.
128
124
 
129
125
  - `lazyLoadEmojis`: `boolean` - Whether to lazy load the emojis. Defaults to `false`.
@@ -3,5 +3,5 @@ import { CategoryConfig } from '../../config/categoryConfig';
3
3
  declare type Props = Readonly<{
4
4
  categoryConfig: CategoryConfig;
5
5
  }>;
6
- export declare function Suggested({ categoryConfig }: Props): JSX.Element | null;
6
+ export declare function Suggested({ categoryConfig }: Props): JSX.Element;
7
7
  export {};
@@ -18534,7 +18534,6 @@ function Suggested(_ref) {
18534
18534
  var categoryConfig = _ref.categoryConfig;
18535
18535
  var _useUpdateSuggested = useUpdateSuggested(),
18536
18536
  suggestedUpdated = _useUpdateSuggested[0];
18537
- var isMounted = useIsMounted();
18538
18537
  var suggestedEmojisModeConfig = useSuggestedEmojisModeConfig();
18539
18538
  var getEmojiUrl = useGetEmojiUrlConfig();
18540
18539
  var suggested = React.useMemo(function () {
@@ -18544,9 +18543,6 @@ function Suggested(_ref) {
18544
18543
  // eslint-disable-next-line react-hooks/exhaustive-deps
18545
18544
  [suggestedUpdated, suggestedEmojisModeConfig]);
18546
18545
  var emojiStyle = useEmojiStyleConfig();
18547
- if (!isMounted) {
18548
- return null;
18549
- }
18550
18546
  return React.createElement(EmojiCategory, {
18551
18547
  categoryConfig: categoryConfig,
18552
18548
  hiddenOnSearch: true,
@@ -18571,7 +18567,8 @@ function EmojiList() {
18571
18567
  var categories = useCategoriesConfig();
18572
18568
  var renderdCategoriesCountRef = React.useRef(0);
18573
18569
  return React.createElement("ul", {
18574
- className: flairup.cx(styles$7.emojiList)
18570
+ className: flairup.cx(styles$7.emojiList),
18571
+ suppressHydrationWarning: true
18575
18572
  }, categories.map(function (categoryConfig) {
18576
18573
  var category = categoryFromCategoryConfig(categoryConfig);
18577
18574
  if (category === exports.Categories.SUGGESTED) {