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.
- package/dist/DomUtils/classNames.d.ts +0 -1
- package/dist/DomUtils/keyboardNavigation.d.ts +10 -2
- package/dist/DomUtils/selectors.d.ts +2 -2
- package/dist/data/index.js +1 -1
- package/dist/data/skinToneVariations.js +2 -2
- package/dist/data/skinToneVariations.ts +8 -7
- package/dist/esm/chunks/chunk-7ZGTUZFB.mjs +8021 -12
- package/dist/esm/chunks/chunk-ACXAQEKG.mjs +149 -0
- package/dist/esm/chunks/chunk-F2KS7DCA.mjs +6735 -0
- package/dist/esm/chunks/chunk-L5W4PFRJ.mjs +14 -0
- package/dist/esm/chunks/chunk-LO4TPPLH.mjs +32 -42
- package/dist/esm/chunks/emojis-6L3GRBAP.mjs +5 -7
- package/dist/esm/data.mjs +9 -16
- package/dist/esm/index.mjs +230 -340
- package/dist/esm/primitives/index.mjs +6 -65
- package/dist/hooks/preloadEmoji.d.ts +0 -4
- package/dist/hooks/useCategoryHeight.d.ts +2 -1
- package/dist/hooks/useEmojiVirtualization.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/primitives/index.js +1 -1
- package/dist/virtualization/virtualizationHelpers.d.ts +2 -0
- package/llms-full.txt +6 -3
- package/package.json +1 -1
- package/src/DomUtils/classNames.ts +0 -4
- package/src/DomUtils/elementPositionInRow.ts +2 -2
- package/src/DomUtils/keyboardNavigation.ts +74 -10
- package/src/DomUtils/scrollTo.ts +2 -2
- package/src/DomUtils/selectors.ts +10 -16
- package/src/components/body/EmojiCategory.tsx +1 -1
- package/src/components/body/EmojiList.tsx +54 -23
- package/src/components/context/PickerDataContext.tsx +5 -1
- package/src/components/header/Search/Search.tsx +4 -2
- package/src/components/main/defaultAppearance.tsx +2 -1
- package/src/data/skinToneVariations.ts +8 -7
- package/src/data-core/pickerData.ts +1 -3
- package/src/data-core/prepare.ts +20 -35
- package/src/dataUtils/emojiSelectors.ts +2 -1
- package/src/dataUtils/parseNativeEmoji.ts +3 -4
- package/src/hooks/preloadEmoji.ts +1 -46
- package/src/hooks/useActiveCategoryScrollDetection.ts +22 -19
- package/src/hooks/useCategoryHeight.ts +38 -6
- package/src/hooks/useDisallowedEmojis.ts +18 -13
- package/src/hooks/useEmojiVirtualization.tsx +93 -67
- package/src/hooks/useFilter.ts +10 -8
- package/src/hooks/useIsEmojiHidden.ts +16 -12
- package/src/hooks/useKeyboardNavigation.ts +104 -17
- package/src/primitives/structuralStyles.tsx +3 -0
- package/src/primitives/tokens.ts +1 -0
- package/src/virtualization/virtualizationHelpers.ts +9 -2
- package/dist/esm/chunks/chunk-46BUDQLE.mjs +0 -228
- package/dist/esm/chunks/chunk-FQIJ4HBW.mjs +0 -25
- 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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
6
|
+
|
|
7
|
+
export { emojis_default as default };
|
package/dist/esm/data.mjs
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunks/chunk-
|
|
4
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
7
|
+
import { __toESM } from "./chunks/chunk-LO4TPPLH.mjs";
|
|
8
|
+
|
|
9
|
+
__toESM(require_registerDefaultEmojiData());
|
|
10
|
+
|
|
11
|
+
export { getEmojiByUnified, searchEmojis };
|