emoji-picker-react 4.0.0-rc.8 → 4.0.0-rc.9

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.
@@ -15284,7 +15284,6 @@ var emojis = {
15284
15284
 
15285
15285
  var skinToneVariations = [exports.SkinTones.NEUTRAL, exports.SkinTones.LIGHT, exports.SkinTones.MEDIUM_LIGHT, exports.SkinTones.MEDIUM, exports.SkinTones.MEDIUM_DARK, exports.SkinTones.DARK];
15286
15286
 
15287
- var _window;
15288
15287
  var EmojiProperties;
15289
15288
 
15290
15289
  (function (EmojiProperties) {
@@ -15343,7 +15342,7 @@ function emojiByUnified(unified) {
15343
15342
  }
15344
15343
  var allEmojis = /*#__PURE__*/Object.values(emojis).flat();
15345
15344
  var allEmojisByUnified = {};
15346
- (_window = window) == null ? void 0 : _window.setTimeout(function () {
15345
+ setTimeout(function () {
15347
15346
  allEmojis.reduce(function (allEmojis, Emoji) {
15348
15347
  allEmojis[emojiUnified(Emoji)] = Emoji;
15349
15348
  return allEmojis;
@@ -15409,11 +15408,13 @@ function useDebouncedState(initialValue, delay) {
15409
15408
  var timer = React.useRef(null);
15410
15409
 
15411
15410
  function debouncedSetState(value) {
15411
+ var _window;
15412
+
15412
15413
  if (timer.current) {
15413
15414
  clearTimeout(timer.current);
15414
15415
  }
15415
15416
 
15416
- timer.current = window.setTimeout(function () {
15417
+ timer.current = (_window = window) == null ? void 0 : _window.setTimeout(function () {
15417
15418
  setState(value);
15418
15419
  }, delay);
15419
15420
  }