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
|
@@ -8,6 +8,91 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var flairup = require('flairup');
|
|
10
10
|
|
|
11
|
+
function _extends() {
|
|
12
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
+
var source = arguments[i];
|
|
15
|
+
|
|
16
|
+
for (var key in source) {
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
18
|
+
target[key] = source[key];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return target;
|
|
24
|
+
};
|
|
25
|
+
return _extends.apply(this, arguments);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _inheritsLoose(subClass, superClass) {
|
|
29
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
30
|
+
subClass.prototype.constructor = subClass;
|
|
31
|
+
|
|
32
|
+
_setPrototypeOf(subClass, superClass);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function _setPrototypeOf(o, p) {
|
|
36
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
37
|
+
o.__proto__ = p;
|
|
38
|
+
return o;
|
|
39
|
+
};
|
|
40
|
+
return _setPrototypeOf(o, p);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
44
|
+
if (source == null) return {};
|
|
45
|
+
var target = {};
|
|
46
|
+
var sourceKeys = Object.keys(source);
|
|
47
|
+
var key, i;
|
|
48
|
+
|
|
49
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return target;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
59
|
+
if (!o) return;
|
|
60
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
61
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
62
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
63
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
64
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function _arrayLikeToArray(arr, len) {
|
|
68
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
69
|
+
|
|
70
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
71
|
+
|
|
72
|
+
return arr2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
76
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
77
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
78
|
+
|
|
79
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
80
|
+
if (it) o = it;
|
|
81
|
+
var i = 0;
|
|
82
|
+
return function () {
|
|
83
|
+
if (i >= o.length) return {
|
|
84
|
+
done: true
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
done: false,
|
|
88
|
+
value: o[i++]
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
94
|
+
}
|
|
95
|
+
|
|
11
96
|
var ClassNames;
|
|
12
97
|
|
|
13
98
|
(function (ClassNames) {
|
|
@@ -137,91 +222,6 @@ function useVariationPickerRef() {
|
|
|
137
222
|
return useElementRef()['VariationPickerRef'];
|
|
138
223
|
}
|
|
139
224
|
|
|
140
|
-
function _extends() {
|
|
141
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
142
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
143
|
-
var source = arguments[i];
|
|
144
|
-
|
|
145
|
-
for (var key in source) {
|
|
146
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
147
|
-
target[key] = source[key];
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return target;
|
|
153
|
-
};
|
|
154
|
-
return _extends.apply(this, arguments);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function _inheritsLoose(subClass, superClass) {
|
|
158
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
159
|
-
subClass.prototype.constructor = subClass;
|
|
160
|
-
|
|
161
|
-
_setPrototypeOf(subClass, superClass);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function _setPrototypeOf(o, p) {
|
|
165
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
166
|
-
o.__proto__ = p;
|
|
167
|
-
return o;
|
|
168
|
-
};
|
|
169
|
-
return _setPrototypeOf(o, p);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
173
|
-
if (source == null) return {};
|
|
174
|
-
var target = {};
|
|
175
|
-
var sourceKeys = Object.keys(source);
|
|
176
|
-
var key, i;
|
|
177
|
-
|
|
178
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
179
|
-
key = sourceKeys[i];
|
|
180
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
181
|
-
target[key] = source[key];
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return target;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
188
|
-
if (!o) return;
|
|
189
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
190
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
191
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
192
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
193
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function _arrayLikeToArray(arr, len) {
|
|
197
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
198
|
-
|
|
199
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
200
|
-
|
|
201
|
-
return arr2;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
205
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
206
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
207
|
-
|
|
208
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
209
|
-
if (it) o = it;
|
|
210
|
-
var i = 0;
|
|
211
|
-
return function () {
|
|
212
|
-
if (i >= o.length) return {
|
|
213
|
-
done: true
|
|
214
|
-
};
|
|
215
|
-
return {
|
|
216
|
-
done: false,
|
|
217
|
-
value: o[i++]
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
223
|
-
}
|
|
224
|
-
|
|
225
225
|
(function (SuggestionMode) {
|
|
226
226
|
SuggestionMode["RECENT"] = "recent";
|
|
227
227
|
SuggestionMode["FREQUENT"] = "frequent";
|
|
@@ -18252,7 +18252,7 @@ function useIsEmojiHidden() {
|
|
|
18252
18252
|
}
|
|
18253
18253
|
|
|
18254
18254
|
function Button(props) {
|
|
18255
|
-
return React.createElement("button",
|
|
18255
|
+
return React.createElement("button", _extends({
|
|
18256
18256
|
type: "button"
|
|
18257
18257
|
}, props, {
|
|
18258
18258
|
className: flairup.cx('epr-btn', props.className)
|
|
@@ -19843,7 +19843,7 @@ var styles$2 = /*#__PURE__*/stylesheet.create({
|
|
|
19843
19843
|
});
|
|
19844
19844
|
|
|
19845
19845
|
function EmojiPicker(props) {
|
|
19846
|
-
return React.createElement(ElementRefContextProvider, null, React.createElement(PickerConfigProvider,
|
|
19846
|
+
return React.createElement(ElementRefContextProvider, null, React.createElement(PickerConfigProvider, _extends({}, props), React.createElement(PickerMain, null, React.createElement(Header, null), React.createElement(Body, null), React.createElement(Preview, null))));
|
|
19847
19847
|
} // eslint-disable-next-line complexity
|
|
19848
19848
|
|
|
19849
19849
|
|
|
@@ -19924,7 +19924,7 @@ function EmojiPicker$1(props) {
|
|
|
19924
19924
|
});
|
|
19925
19925
|
return React.createElement(ErrorBoundary, null, React.createElement(MutableConfigContext.Provider, {
|
|
19926
19926
|
value: MutableConfigRef
|
|
19927
|
-
}, React.createElement(EmojiPickerReact,
|
|
19927
|
+
}, React.createElement(EmojiPickerReact, _extends({}, props))));
|
|
19928
19928
|
}
|
|
19929
19929
|
|
|
19930
19930
|
exports.Emoji = ExportedEmoji;
|