emoji-picker-react 4.6.3 → 4.6.4-rc.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/categoryNameFromDom.d.ts +1 -1
- package/dist/DomUtils/classNames.d.ts +23 -23
- package/dist/DomUtils/elementPositionInRow.d.ts +10 -10
- package/dist/DomUtils/focusElement.d.ts +5 -5
- package/dist/DomUtils/getActiveElement.d.ts +2 -2
- package/dist/DomUtils/keyboardNavigation.d.ts +8 -8
- package/dist/DomUtils/scrollTo.d.ts +5 -5
- package/dist/DomUtils/selectors.d.ts +31 -31
- package/dist/EmojiPickerReact.d.ts +6 -6
- package/dist/Stylesheet/stylesheet.d.ts +39 -5
- package/dist/components/ErrorBoundary.d.ts +15 -15
- package/dist/components/Layout/Absolute.d.ts +8 -8
- package/dist/components/Layout/Flex.d.ts +14 -14
- package/dist/components/Layout/Relative.d.ts +8 -8
- package/dist/components/Layout/Space.d.ts +7 -7
- package/dist/components/atoms/Button.d.ts +6 -6
- package/dist/components/body/Body.d.ts +2 -2
- package/dist/components/body/EmojiCategory.d.ts +11 -11
- package/dist/components/body/EmojiList.d.ts +2 -2
- package/dist/components/body/EmojiVariationPicker.d.ts +3 -3
- package/dist/components/body/Suggested.d.ts +7 -7
- package/dist/components/context/ElementRefContext.d.ts +14 -14
- package/dist/components/context/PickerConfigContext.d.ts +9 -9
- package/dist/components/context/PickerContext.d.ts +25 -22
- package/dist/components/emoji/BaseEmojiProps.d.ts +12 -12
- package/dist/components/emoji/ClickableEmojiButton.d.ts +13 -13
- package/dist/components/emoji/Emoji.d.ts +12 -12
- package/dist/components/emoji/EmojiImg.d.ts +10 -10
- package/dist/components/emoji/ExportedEmoji.d.ts +11 -11
- package/dist/components/emoji/NativeEmoji.d.ts +5 -5
- package/dist/components/emoji/ViewOnlyEmoji.d.ts +3 -3
- package/dist/components/footer/Preview.d.ts +8 -8
- package/dist/components/header/CssSearch.d.ts +4 -4
- package/dist/components/header/Header.d.ts +3 -3
- package/dist/components/header/Search.d.ts +4 -4
- package/dist/components/header/SkinTonePicker.d.ts +12 -12
- package/dist/components/main/PickerMain.d.ts +6 -6
- package/dist/components/navigation/CategoryNavigation.d.ts +3 -3
- package/dist/config/categoryConfig.d.ts +20 -20
- package/dist/config/cdnUrls.d.ts +2 -2
- package/dist/config/config.d.ts +47 -47
- package/dist/config/customEmojiConfig.d.ts +6 -6
- package/dist/config/mutableConfig.d.ts +8 -8
- package/dist/config/useConfig.d.ts +25 -25
- package/dist/data/emojis.d.ts +50 -50
- package/dist/data/groups.d.ts +2 -2
- package/dist/data/skinToneVariations.d.ts +5 -5
- package/dist/dataUtils/DataTypes.d.ts +19 -19
- package/dist/dataUtils/alphaNumericEmojiIndex.d.ts +5 -5
- package/dist/dataUtils/emojiSelectors.d.ts +18 -18
- package/dist/dataUtils/parseNativeEmoji.d.ts +1 -1
- package/dist/dataUtils/suggested.d.ts +11 -11
- package/dist/emoji-picker-react.cjs.development.js +88 -88
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +88 -88
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/dist/hooks/preloadEmoji.d.ts +5 -5
- package/dist/hooks/useActiveCategoryScrollDetection.d.ts +1 -1
- package/dist/hooks/useCloseAllOpenToggles.d.ts +2 -2
- package/dist/hooks/useDebouncedState.d.ts +1 -1
- package/dist/hooks/useDisallowMouseMove.d.ts +4 -4
- package/dist/hooks/useDisallowedEmojis.d.ts +3 -3
- package/dist/hooks/useEmojiPreviewEvents.d.ts +3 -3
- package/dist/hooks/useFilter.d.ts +12 -12
- package/dist/hooks/useFocus.d.ts +3 -3
- package/dist/hooks/useHideEmojisByUniocode.d.ts +1 -1
- package/dist/hooks/useInitialLoad.d.ts +2 -2
- package/dist/hooks/useIsEmojiHidden.d.ts +8 -8
- package/dist/hooks/useIsSearchMode.d.ts +1 -1
- package/dist/hooks/useKeyboardNavigation.d.ts +1 -1
- package/dist/hooks/useMouseDownHandlers.d.ts +3 -3
- package/dist/hooks/useOnFocus.d.ts +1 -1
- package/dist/hooks/useOnScroll.d.ts +2 -2
- package/dist/hooks/useScrollCategoryIntoView.d.ts +1 -1
- package/dist/hooks/useSetVariationPicker.d.ts +2 -2
- package/dist/hooks/useShouldHideCustomEmojis.d.ts +1 -1
- package/dist/hooks/useShouldShowSkinTonePicker.d.ts +4 -4
- package/dist/index.d.ts +7 -7
- package/dist/typeRefinements/typeRefinements.d.ts +5 -5
- package/dist/types/exposedTypes.d.ts +50 -50
- package/package.json +5 -2
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
import React__default, { useRef, createElement, createContext, createRef, useContext, useState, useEffect, useMemo, useCallback, Fragment, memo, Component } from 'react';
|
|
2
2
|
import { createSheet, cx } from 'flairup';
|
|
3
3
|
|
|
4
|
+
function _extends() {
|
|
5
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
6
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7
|
+
var source = arguments[i];
|
|
8
|
+
|
|
9
|
+
for (var key in source) {
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
11
|
+
target[key] = source[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function _inheritsLoose(subClass, superClass) {
|
|
22
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
23
|
+
subClass.prototype.constructor = subClass;
|
|
24
|
+
|
|
25
|
+
_setPrototypeOf(subClass, superClass);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _setPrototypeOf(o, p) {
|
|
29
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
30
|
+
o.__proto__ = p;
|
|
31
|
+
return o;
|
|
32
|
+
};
|
|
33
|
+
return _setPrototypeOf(o, p);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
37
|
+
if (source == null) return {};
|
|
38
|
+
var target = {};
|
|
39
|
+
var sourceKeys = Object.keys(source);
|
|
40
|
+
var key, i;
|
|
41
|
+
|
|
42
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
43
|
+
key = sourceKeys[i];
|
|
44
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
45
|
+
target[key] = source[key];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return target;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
52
|
+
if (!o) return;
|
|
53
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
54
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
55
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
56
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
57
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function _arrayLikeToArray(arr, len) {
|
|
61
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
62
|
+
|
|
63
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
64
|
+
|
|
65
|
+
return arr2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
69
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
70
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
71
|
+
|
|
72
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
73
|
+
if (it) o = it;
|
|
74
|
+
var i = 0;
|
|
75
|
+
return function () {
|
|
76
|
+
if (i >= o.length) return {
|
|
77
|
+
done: true
|
|
78
|
+
};
|
|
79
|
+
return {
|
|
80
|
+
done: false,
|
|
81
|
+
value: o[i++]
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
87
|
+
}
|
|
88
|
+
|
|
4
89
|
var ClassNames;
|
|
5
90
|
|
|
6
91
|
(function (ClassNames) {
|
|
@@ -130,91 +215,6 @@ function useVariationPickerRef() {
|
|
|
130
215
|
return useElementRef()['VariationPickerRef'];
|
|
131
216
|
}
|
|
132
217
|
|
|
133
|
-
function _extends() {
|
|
134
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
135
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
136
|
-
var source = arguments[i];
|
|
137
|
-
|
|
138
|
-
for (var key in source) {
|
|
139
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
140
|
-
target[key] = source[key];
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return target;
|
|
146
|
-
};
|
|
147
|
-
return _extends.apply(this, arguments);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function _inheritsLoose(subClass, superClass) {
|
|
151
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
152
|
-
subClass.prototype.constructor = subClass;
|
|
153
|
-
|
|
154
|
-
_setPrototypeOf(subClass, superClass);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function _setPrototypeOf(o, p) {
|
|
158
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
159
|
-
o.__proto__ = p;
|
|
160
|
-
return o;
|
|
161
|
-
};
|
|
162
|
-
return _setPrototypeOf(o, p);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
166
|
-
if (source == null) return {};
|
|
167
|
-
var target = {};
|
|
168
|
-
var sourceKeys = Object.keys(source);
|
|
169
|
-
var key, i;
|
|
170
|
-
|
|
171
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
172
|
-
key = sourceKeys[i];
|
|
173
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
174
|
-
target[key] = source[key];
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return target;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
181
|
-
if (!o) return;
|
|
182
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
183
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
184
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
185
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
186
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function _arrayLikeToArray(arr, len) {
|
|
190
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
191
|
-
|
|
192
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
193
|
-
|
|
194
|
-
return arr2;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
198
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
199
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
200
|
-
|
|
201
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
202
|
-
if (it) o = it;
|
|
203
|
-
var i = 0;
|
|
204
|
-
return function () {
|
|
205
|
-
if (i >= o.length) return {
|
|
206
|
-
done: true
|
|
207
|
-
};
|
|
208
|
-
return {
|
|
209
|
-
done: false,
|
|
210
|
-
value: o[i++]
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
216
|
-
}
|
|
217
|
-
|
|
218
218
|
var SuggestionMode;
|
|
219
219
|
|
|
220
220
|
(function (SuggestionMode) {
|
|
@@ -18287,7 +18287,7 @@ var css_248z = ".EmojiPickerReact button.epr-emoji{align-items:center;border-rad
|
|
|
18287
18287
|
styleInject(css_248z);
|
|
18288
18288
|
|
|
18289
18289
|
function Button(props) {
|
|
18290
|
-
return createElement("button",
|
|
18290
|
+
return createElement("button", _extends({
|
|
18291
18291
|
type: "button"
|
|
18292
18292
|
}, props, {
|
|
18293
18293
|
className: cx('epr-btn', props.className)
|
|
@@ -19905,7 +19905,7 @@ var css_248z$9 = ".EmojiPickerReact{--epr-highlight-color:#007aeb;--epr-hover-bg
|
|
|
19905
19905
|
styleInject(css_248z$9);
|
|
19906
19906
|
|
|
19907
19907
|
function EmojiPicker(props) {
|
|
19908
|
-
return createElement(ElementRefContextProvider, null, createElement(PickerConfigProvider,
|
|
19908
|
+
return createElement(ElementRefContextProvider, null, createElement(PickerConfigProvider, _extends({}, props), createElement(PickerMain, null, createElement(Header, null), createElement(Body, null), createElement(Preview, null))));
|
|
19909
19909
|
} // eslint-disable-next-line complexity
|
|
19910
19910
|
|
|
19911
19911
|
|
|
@@ -19986,7 +19986,7 @@ function EmojiPicker$1(props) {
|
|
|
19986
19986
|
});
|
|
19987
19987
|
return createElement(ErrorBoundary, null, createElement(MutableConfigContext.Provider, {
|
|
19988
19988
|
value: MutableConfigRef
|
|
19989
|
-
}, createElement(EmojiPickerReact,
|
|
19989
|
+
}, createElement(EmojiPickerReact, _extends({}, props))));
|
|
19990
19990
|
}
|
|
19991
19991
|
|
|
19992
19992
|
export default EmojiPicker$1;
|