emoji-picker-react 4.4.6 → 4.4.7

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
@@ -263,3 +263,11 @@ For reference, if you only need to shim global, you can add
263
263
  window.global = window;
264
264
  </script>
265
265
  ```
266
+
267
+ # Other stuff I build
268
+
269
+ If you enjoy using emoji-picker-react, you may be interested in some of my other open source projects:
270
+
271
+ - [Vest](https://github.com/ealush/vest) - The best form validation framwork to date.
272
+ - [Context](https://github.com/ealush/vest/tree/latest/packages/context) - Context propagation library for JS Apps.
273
+ - [n4s](https://github.com/ealush/vest/tree/latest/packages/n4s) - enforce: fluent assertion library.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import './EmojiVariationPicker.css';
3
- export declare function EmojiVariationPicker(): JSX.Element | null;
3
+ export declare function EmojiVariationPicker(): JSX.Element;
@@ -17088,14 +17088,14 @@ function PickerContextProvider(_ref) {
17088
17088
  activeSkinTone: activeSkinTone,
17089
17089
  disallowClickRef: disallowClickRef,
17090
17090
  disallowMouseRef: disallowMouseRef,
17091
+ disallowedEmojisRef: disallowedEmojisRef,
17091
17092
  emojiVariationPickerState: emojiVariationPickerState,
17092
17093
  emojisThatFailedToLoadState: emojisThatFailedToLoadState,
17093
17094
  filterRef: filterRef,
17094
17095
  isPastInitialLoad: isPastInitialLoad,
17095
17096
  searchTerm: searchTerm,
17096
17097
  skinToneFanOpenState: skinToneFanOpenState,
17097
- suggestedUpdateState: suggestedUpdateState,
17098
- disallowedEmojisRef: disallowedEmojisRef
17098
+ suggestedUpdateState: suggestedUpdateState
17099
17099
  }
17100
17100
  }, children);
17101
17101
  }
@@ -17674,12 +17674,10 @@ function useSetVariationPicker() {
17674
17674
  var _emojiFromElement = emojiFromElement(element),
17675
17675
  emoji = _emojiFromElement[0];
17676
17676
 
17677
- if (!emoji) {
17678
- return;
17677
+ if (emoji) {
17678
+ setAnchoredEmojiRef(element);
17679
+ setEmojiVariationPicker(emoji);
17679
17680
  }
17680
-
17681
- setAnchoredEmojiRef(element);
17682
- setEmojiVariationPicker(emoji);
17683
17681
  };
17684
17682
  }
17685
17683
 
@@ -18482,10 +18480,6 @@ function EmojiVariationPicker() {
18482
18480
  pointerStyle = getPointerStyle();
18483
18481
  }
18484
18482
 
18485
- if (!emoji) {
18486
- return null;
18487
- }
18488
-
18489
18483
  return React.createElement("div", {
18490
18484
  ref: VariationPickerRef,
18491
18485
  className: clsx(ClassNames.variationPicker, {
@@ -18495,7 +18489,7 @@ function EmojiVariationPicker() {
18495
18489
  style: {
18496
18490
  top: top
18497
18491
  }
18498
- }, visible ? [emojiUnified(emoji)].concat(emojiVariations(emoji)).slice(0, 6).map(function (unified) {
18492
+ }, visible && emoji ? [emojiUnified(emoji)].concat(emojiVariations(emoji)).slice(0, 6).map(function (unified) {
18499
18493
  return React.createElement(ClickableEmoji, {
18500
18494
  key: unified,
18501
18495
  emoji: emoji,