emoji-picker-react 5.0.0 → 5.0.1

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.
Files changed (52) hide show
  1. package/dist/DomUtils/classNames.d.ts +0 -1
  2. package/dist/DomUtils/keyboardNavigation.d.ts +10 -2
  3. package/dist/DomUtils/selectors.d.ts +2 -2
  4. package/dist/data/index.js +1 -1
  5. package/dist/data/skinToneVariations.js +2 -2
  6. package/dist/data/skinToneVariations.ts +8 -7
  7. package/dist/esm/chunks/chunk-7ZGTUZFB.mjs +8021 -12
  8. package/dist/esm/chunks/chunk-ACXAQEKG.mjs +149 -0
  9. package/dist/esm/chunks/chunk-F2KS7DCA.mjs +6735 -0
  10. package/dist/esm/chunks/chunk-L5W4PFRJ.mjs +14 -0
  11. package/dist/esm/chunks/chunk-LO4TPPLH.mjs +32 -42
  12. package/dist/esm/chunks/emojis-6L3GRBAP.mjs +5 -7
  13. package/dist/esm/data.mjs +9 -16
  14. package/dist/esm/index.mjs +230 -340
  15. package/dist/esm/primitives/index.mjs +6 -65
  16. package/dist/hooks/preloadEmoji.d.ts +0 -4
  17. package/dist/hooks/useCategoryHeight.d.ts +2 -1
  18. package/dist/hooks/useEmojiVirtualization.d.ts +1 -0
  19. package/dist/index.js +1 -1
  20. package/dist/primitives/index.js +1 -1
  21. package/dist/virtualization/virtualizationHelpers.d.ts +2 -0
  22. package/llms-full.txt +6 -3
  23. package/package.json +1 -1
  24. package/src/DomUtils/classNames.ts +0 -4
  25. package/src/DomUtils/elementPositionInRow.ts +2 -2
  26. package/src/DomUtils/keyboardNavigation.ts +74 -10
  27. package/src/DomUtils/scrollTo.ts +2 -2
  28. package/src/DomUtils/selectors.ts +10 -16
  29. package/src/components/body/EmojiCategory.tsx +1 -1
  30. package/src/components/body/EmojiList.tsx +54 -23
  31. package/src/components/context/PickerDataContext.tsx +5 -1
  32. package/src/components/header/Search/Search.tsx +4 -2
  33. package/src/components/main/defaultAppearance.tsx +2 -1
  34. package/src/data/skinToneVariations.ts +8 -7
  35. package/src/data-core/pickerData.ts +1 -3
  36. package/src/data-core/prepare.ts +20 -35
  37. package/src/dataUtils/emojiSelectors.ts +2 -1
  38. package/src/dataUtils/parseNativeEmoji.ts +3 -4
  39. package/src/hooks/preloadEmoji.ts +1 -46
  40. package/src/hooks/useActiveCategoryScrollDetection.ts +22 -19
  41. package/src/hooks/useCategoryHeight.ts +38 -6
  42. package/src/hooks/useDisallowedEmojis.ts +18 -13
  43. package/src/hooks/useEmojiVirtualization.tsx +93 -67
  44. package/src/hooks/useFilter.ts +10 -8
  45. package/src/hooks/useIsEmojiHidden.ts +16 -12
  46. package/src/hooks/useKeyboardNavigation.ts +104 -17
  47. package/src/primitives/structuralStyles.tsx +3 -0
  48. package/src/primitives/tokens.ts +1 -0
  49. package/src/virtualization/virtualizationHelpers.ts +9 -2
  50. package/dist/esm/chunks/chunk-46BUDQLE.mjs +0 -228
  51. package/dist/esm/chunks/chunk-FQIJ4HBW.mjs +0 -25
  52. package/dist/esm/chunks/chunk-KQPOIRSC.mjs +0 -9305
@@ -0,0 +1,14 @@
1
+ import { init_defaultEmojiData, registerDefaultEmojiData } from "./chunk-ACXAQEKG.mjs";
2
+
3
+ import { emojis_default, init_emojis } from "./chunk-7ZGTUZFB.mjs";
4
+
5
+ import { __commonJS } from "./chunk-LO4TPPLH.mjs";
6
+
7
+ // src/data/registerDefaultEmojiData.ts
8
+ var require_registerDefaultEmojiData = __commonJS({
9
+ "src/data/registerDefaultEmojiData.ts"() {
10
+ init_defaultEmojiData(), init_emojis(), registerDefaultEmojiData(emojis_default);
11
+ }
12
+ });
13
+
14
+ export { require_registerDefaultEmojiData };
@@ -1,43 +1,33 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res, err) => function __init() {
8
- if (err) throw err[0];
9
- try {
10
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
- } catch (e) {
12
- throw err = [e], e;
13
- }
14
- };
15
- var __commonJS = (cb, mod) => function __require() {
16
- try {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- } catch (e) {
19
- throw mod = 0, e;
20
- }
21
- };
22
- var __copyProps = (to, from, except, desc) => {
23
- if (from && typeof from === "object" || typeof from === "function") {
24
- for (let key of __getOwnPropNames(from))
25
- if (!__hasOwnProp.call(to, key) && key !== except)
26
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
- }
28
- return to;
29
- };
30
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
- // If the importer is in node compatibility mode or this is not an ESM
32
- // file that has been converted to a CommonJS file using a Babel-
33
- // compatible transform (i.e. "__esModule" has not been set), then set
34
- // "default" to the CommonJS "module.exports" for node compatibility.
35
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
- mod
37
- ));
1
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __esm = (fn, res, err) => function __init() {
2
+ if (err) throw err[0];
3
+ try {
4
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
5
+ } catch (e) {
6
+ throw err = [ e ], e;
7
+ }
8
+ }, __commonJS = (cb, mod) => function __require() {
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
11
+ exports: {}
12
+ }).exports, mod), mod.exports;
13
+ } catch (e) {
14
+ throw mod = 0, e;
15
+ }
16
+ }, __copyProps = (to, from, except, desc) => {
17
+ if (from && "object" == typeof from || "function" == typeof from) for (let key of __getOwnPropNames(from)) __hasOwnProp.call(to, key) || key === except || __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ return to;
22
+ }, __toESM = (mod, isNodeMode, target) => (target = null != mod ? __create(__getProtoOf(mod)) : {},
23
+ __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ !isNodeMode && mod && mod.__esModule ? target : __defProp(target, "default", {
29
+ value: mod,
30
+ enumerable: !0
31
+ }), mod));
38
32
 
39
- export {
40
- __esm,
41
- __commonJS,
42
- __toESM
43
- };
33
+ export { __esm, __commonJS, __toESM };
@@ -1,9 +1,7 @@
1
- import {
2
- emojis_default,
3
- init_emojis
4
- } from "./chunk-7ZGTUZFB.mjs";
1
+ import { emojis_default, init_emojis } from "./chunk-7ZGTUZFB.mjs";
2
+
5
3
  import "./chunk-LO4TPPLH.mjs";
4
+
6
5
  init_emojis();
7
- export {
8
- emojis_default as default
9
- };
6
+
7
+ export { emojis_default as default };
package/dist/esm/data.mjs CHANGED
@@ -1,18 +1,11 @@
1
- import {
2
- require_registerDefaultEmojiData
3
- } from "./chunks/chunk-FQIJ4HBW.mjs";
4
- import {
5
- getEmojiByUnified,
6
- searchEmojis
7
- } from "./chunks/chunk-46BUDQLE.mjs";
1
+ import { require_registerDefaultEmojiData } from "./chunks/chunk-L5W4PFRJ.mjs";
2
+
3
+ import { getEmojiByUnified, searchEmojis } from "./chunks/chunk-ACXAQEKG.mjs";
4
+
8
5
  import "./chunks/chunk-7ZGTUZFB.mjs";
9
- import {
10
- __toESM
11
- } from "./chunks/chunk-LO4TPPLH.mjs";
12
6
 
13
- // src/data.ts
14
- var import_registerDefaultEmojiData = __toESM(require_registerDefaultEmojiData());
15
- export {
16
- getEmojiByUnified,
17
- searchEmojis
18
- };
7
+ import { __toESM } from "./chunks/chunk-LO4TPPLH.mjs";
8
+
9
+ __toESM(require_registerDefaultEmojiData());
10
+
11
+ export { getEmojiByUnified, searchEmojis };