emoji-picker-react 3.6.1 → 3.6.3

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 (74) hide show
  1. package/README.md +31 -0
  2. package/dist/DomUtils/categoryNameFromDom.d.ts +1 -0
  3. package/dist/DomUtils/classNames.d.ts +15 -0
  4. package/dist/DomUtils/elementPositionInRow.d.ts +10 -0
  5. package/dist/DomUtils/focusElement.d.ts +5 -0
  6. package/dist/DomUtils/getActiveElement.d.ts +2 -0
  7. package/dist/DomUtils/isDarkTheme.d.ts +1 -0
  8. package/dist/DomUtils/keyboardNavigation.d.ts +8 -0
  9. package/dist/DomUtils/scrollTo.d.ts +5 -0
  10. package/dist/DomUtils/selectors.d.ts +31 -0
  11. package/dist/EmojiPickerReact.d.ts +6 -0
  12. package/dist/components/ErrorBoundary.d.ts +15 -0
  13. package/dist/components/Layout/Flex.d.ts +14 -0
  14. package/dist/components/Layout/Relative.d.ts +7 -0
  15. package/dist/components/atoms/Button.d.ts +6 -0
  16. package/dist/components/body/Body.d.ts +3 -0
  17. package/dist/components/body/EmojiCategory.d.ts +11 -0
  18. package/dist/components/body/EmojiList.d.ts +3 -0
  19. package/dist/components/body/EmojiVariationPicker.d.ts +3 -0
  20. package/dist/components/body/Suggested.d.ts +7 -0
  21. package/dist/components/context/ElementRefContext.d.ts +14 -0
  22. package/dist/components/context/PickerConfigContext.d.ts +8 -0
  23. package/dist/components/context/PickerContext.d.ts +21 -0
  24. package/dist/components/emoji/Emoji.d.ts +20 -0
  25. package/dist/components/emoji/ExportedEmoji.d.ts +8 -0
  26. package/dist/components/footer/Preview.d.ts +7 -0
  27. package/dist/components/header/Header.d.ts +3 -0
  28. package/dist/components/header/Search.d.ts +3 -0
  29. package/dist/components/header/SkinTonePicker.d.ts +3 -0
  30. package/dist/components/main/PickerMain.d.ts +7 -0
  31. package/dist/components/navigation/CategoryNavigation.d.ts +3 -0
  32. package/dist/config/categoryConfig.d.ts +16 -0
  33. package/dist/config/cdnUrls.d.ts +2 -0
  34. package/dist/config/config.d.ts +29 -0
  35. package/dist/config/useConfig.d.ts +18 -0
  36. package/dist/data/emojis.d.ts +2 -0
  37. package/dist/data/groups.d.ts +2 -0
  38. package/dist/data/skinToneVariations.d.ts +5 -0
  39. package/dist/dataUtils/DataTypes.d.ts +8 -0
  40. package/dist/dataUtils/alphaNumericEmojiIndex.d.ts +4 -0
  41. package/dist/dataUtils/asEmoji.d.ts +2 -0
  42. package/dist/dataUtils/emojiSelectors.d.ts +16 -0
  43. package/dist/dataUtils/parseNativeEmoji.d.ts +1 -0
  44. package/dist/dataUtils/suggested.d.ts +11 -0
  45. package/dist/emoji-picker-react.cjs.development.css +13 -0
  46. package/dist/emoji-picker-react.cjs.development.js +17536 -0
  47. package/dist/emoji-picker-react.cjs.development.js.map +1 -0
  48. package/dist/emoji-picker-react.cjs.production.min.js +2 -0
  49. package/dist/emoji-picker-react.cjs.production.min.js.map +1 -0
  50. package/dist/emoji-picker-react.esm.js +17606 -0
  51. package/dist/emoji-picker-react.esm.js.map +1 -0
  52. package/dist/hooks/preloadEmoji.d.ts +4 -0
  53. package/dist/hooks/useActiveCategoryScrollDetection.d.ts +1 -0
  54. package/dist/hooks/useCloseAllOpenToggles.d.ts +2 -0
  55. package/dist/hooks/useDebouncedState.d.ts +1 -0
  56. package/dist/hooks/useDisallowMouseMove.d.ts +4 -0
  57. package/dist/hooks/useEmojiPreviewEvents.d.ts +3 -0
  58. package/dist/hooks/useFilter.d.ts +11 -0
  59. package/dist/hooks/useFocus.d.ts +3 -0
  60. package/dist/hooks/useInitialLoad.d.ts +2 -0
  61. package/dist/hooks/useIsEmojiHidden.d.ts +8 -0
  62. package/dist/hooks/useIsSearchMode.d.ts +1 -0
  63. package/dist/hooks/useKeyboardNavigation.d.ts +1 -0
  64. package/dist/hooks/useMouseDownHandlers.d.ts +3 -0
  65. package/dist/hooks/useOnFocus.d.ts +1 -0
  66. package/dist/hooks/useOnScroll.d.ts +2 -0
  67. package/dist/hooks/useScrollCategoryIntoView.d.ts +1 -0
  68. package/dist/hooks/useSetVariationPicker.d.ts +2 -0
  69. package/dist/index.d.ts +7 -0
  70. package/dist/index.js +1 -1
  71. package/dist/index.js.map +1 -1
  72. package/dist/types/exposedTypes.d.ts +43 -0
  73. package/package.json +5 -3
  74. package/scripts/postinstall.js +23 -0
@@ -0,0 +1,43 @@
1
+ export declare type EmojiClickData = {
2
+ activeSkinTone: SkinTones;
3
+ unified: string;
4
+ unifiedWithoutSkinTone: string;
5
+ emoji: string;
6
+ names: string[];
7
+ getImageUrl: (emojiStyle: EmojiStyle) => string;
8
+ };
9
+ export declare enum SuggestionMode {
10
+ RECENT = "recent",
11
+ FREQUENT = "frequent"
12
+ }
13
+ export declare enum EmojiStyle {
14
+ NATIVE = "native",
15
+ APPLE = "apple",
16
+ TWITTER = "twitter",
17
+ GOOGLE = "google",
18
+ FACEBOOK = "facebook"
19
+ }
20
+ export declare enum Theme {
21
+ DARK = "dark",
22
+ LIGHT = "light",
23
+ AUTO = "auto"
24
+ }
25
+ export declare enum SkinTones {
26
+ NEUTRAL = "neutral",
27
+ LIGHT = "1f3fb",
28
+ MEDIUM_LIGHT = "1f3fc",
29
+ MEDIUM = "1f3fd",
30
+ MEDIUM_DARK = "1f3fe",
31
+ DARK = "1f3ff"
32
+ }
33
+ export declare enum Categories {
34
+ SUGGESTED = "suggested",
35
+ SMILEYS_PEOPLE = "smileys_people",
36
+ ANIMALS_NATURE = "animals_nature",
37
+ FOOD_DRINK = "food_drink",
38
+ TRAVEL_PLACES = "travel_places",
39
+ ACTIVITIES = "activities",
40
+ OBJECTS = "objects",
41
+ SYMBOLS = "symbols",
42
+ FLAGS = "flags"
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emoji-picker-react",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Emoji picker component for react applications",
5
5
  "main": "dist/index.js",
6
6
  "typings": "emoji-picker-react.d.ts",
@@ -8,7 +8,8 @@
8
8
  "storybook": "start-storybook -p 6006",
9
9
  "build": "webpack --config ./webpack.config.js",
10
10
  "build-storybook": "build-storybook",
11
- "lint": "eslint ."
11
+ "lint": "eslint .",
12
+ "postinstall": "node ./scripts/postinstall.js"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",
@@ -61,8 +62,9 @@
61
62
  "style-loader": "^1.0.0",
62
63
  "svg-url-loader": "^3.0.2",
63
64
  "terser-webpack-plugin": "^2.1.0",
65
+ "tinykeys": "^1.3.0",
64
66
  "webpack": "^4.40.2",
65
67
  "webpack-cli": "^3.3.9",
66
- "tinykeys": "^1.3.0"
68
+ "chalk": "^4.0.0"
67
69
  }
68
70
  }
@@ -0,0 +1,23 @@
1
+ const chalk = require('chalk');
2
+
3
+ const log = console.log;
4
+
5
+ log(chalk.blue('Hey! 👋'));
6
+ log(chalk.blue('Thank you for installing'), chalk.yellow('emoji-picker-react'));
7
+
8
+ log(
9
+ chalk.blue(
10
+ 'The version currently installed is an old version of the package. It should works just fine, but the new major version has many performance and customization improvements.'
11
+ )
12
+ );
13
+ log(
14
+ chalk.white.bgGray('npm i emoji-picker-react'),
15
+ 'or',
16
+ chalk.white.bgGray('yarn add emoji-picker-react')
17
+ );
18
+
19
+ log(
20
+ chalk.blue(
21
+ 'For more details, go to: https://github.com/ealush/emoji-picker-react'
22
+ )
23
+ );