diff --git a/dist/emoji-picker.js b/dist/emoji-picker.js
index 91cf928..c32aaef 100644
--- a/dist/emoji-picker.js
+++ b/dist/emoji-picker.js
@@ -1,12 +1,12 @@
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("react"));
+ module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd)
- define(["react"], factory);
+ define(["React"], factory);
else if(typeof exports === 'object')
- exports["EmojiPicker"] = factory(require("react"));
+ exports["EmojiPicker"] = factory(require("React"));
else
- root["EmojiPicker"] = factory(root["react"]);
+ root["EmojiPicker"] = factory(root["React"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_3__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
diff --git a/dist/emoji-picker.min.js b/dist/emoji-picker.min.js
index 11ec605..9c05acb 100644
--- a/dist/emoji-picker.min.js
+++ b/dist/emoji-picker.min.js
@@ -1,4 +1,4 @@
-!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react")):"function"==typeof define&&define.amd?define(["react"],o):"object"==typeof exports?exports.EmojiPicker=o(require("react")):e.EmojiPicker=o(e.react)}(this,function(e){return function(e){function o(i){if(a[i])return a[i].exports;var t=a[i]={exports:{},id:i,loaded:!1};return e[i].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var a={};return o.m=e,o.c=a,o.p="",o(0)}([function(e,o,a){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=a(1);Object.defineProperty(o,"Picker",{enumerable:!0,get:function(){return i.Picker}}),Object.defineProperty(o,"Emoji",{enumerable:!0,get:function(){return i.Emoji}});var t=a(16);Object.defineProperty(o,"emojiIndex",{enumerable:!0,get:function(){return t.emojiIndex}})},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(2);Object.defineProperty(o,"Anchors",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(15);Object.defineProperty(o,"Category",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(22);Object.defineProperty(o,"Emoji",{enumerable:!0,get:function(){return i(_)["default"]}});var n=a(23);Object.defineProperty(o,"Picker",{enumerable:!0,get:function(){return i(n)["default"]}});var g=a(25);Object.defineProperty(o,"Preview",{enumerable:!0,get:function(){return i(g)["default"]}});var m=a(26);Object.defineProperty(o,"Search",{enumerable:!0,get:function(){return i(m)["default"]}});var r=a(27);Object.defineProperty(o,"Skins",{enumerable:!0,get:function(){return i(r)["default"]}})},function(e,o,a){"use strict";function i(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a]);return o["default"]=e,o}function t(e){return e&&e.__esModule?e:{"default":e}}function s(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function n(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}Object.defineProperty(o,"__esModule",{value:!0});var g=function(){function e(e,o){for(var a=0;a: `raw` prop works only when `window.DOMParser` exists.");var d=function(e){function o(e){t(this,o),l(Object.getPrototypeOf(o.prototype),"constructor",this).call(this,e),this._extractSVGProps=this._extractSVGProps.bind(this)}return s(o,e),r(o,null,[{key:"defaultProps",value:{element:"i",raw:!1,src:""},enumerable:!0},{key:"propTypes",value:{src:u["default"].PropTypes.string.isRequired,element:u["default"].PropTypes.string,raw:u["default"].PropTypes.bool},enumerable:!0}]),r(o,[{key:"_serializeAttrs",value:function(e){for(var o={},a=void 0,i=0;i0?this._serializeAttrs(o):null}},{key:"_stripSVG",value:function(e){return n(e).documentElement.innerHTML}},{key:"componentWillReceiveProps",value:function(e){var o=e.children;"production"!==c.env.NODE_ENV&&null!=o&&console.info(": `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,o=void 0,a=void 0,i=this.props,t=i.element,s=i.raw,n=i.src;return s===!0&&_(n)&&(e="svg",a=this._extractSVGProps(n),o=this._stripSVG(n)),o=o||n,e=e||t,a=a||{},u["default"].createElement(e,m({},a,this.props,{src:null,children:null,dangerouslySetInnerHTML:{__html:o}}))}}]),o}(u["default"].Component);o["default"]=d,e.exports=o["default"]},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(6);Object.defineProperty(o,"Activity",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(7);Object.defineProperty(o,"Flags",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(8);Object.defineProperty(o,"Foods",{enumerable:!0,get:function(){return i(_)["default"]}});var n=a(9);Object.defineProperty(o,"Nature",{enumerable:!0,get:function(){return i(n)["default"]}});var g=a(10);Object.defineProperty(o,"Objects",{enumerable:!0,get:function(){return i(g)["default"]}});var m=a(11);Object.defineProperty(o,"People",{enumerable:!0,get:function(){return i(m)["default"]}});var r=a(12);Object.defineProperty(o,"Places",{enumerable:!0,get:function(){return i(r)["default"]}});var l=a(13);Object.defineProperty(o,"Recent",{enumerable:!0,get:function(){return i(l)["default"]}});var h=a(14);Object.defineProperty(o,"Symbols",{enumerable:!0,get:function(){return i(h)["default"]}})},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function s(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function _(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var o=1;othis.maxMargin?this.maxMargin:o,o!=this.margin){this.props.name;return this.props.hasStickyPosition||(this.label.style.top=o+"px"),this.margin=o,!0}}},{key:"getEmojis",value:function(){var e=this.props,o=e.name,a=e.emojis,i=e.perLine;if("Recent"==o){var t=l.frequently.get(4*i);t.length&&(a=t)}return a&&(a=a.slice(0)),a}},{key:"updateDisplay",value:function(e){var o=this.getEmojis();(e||o)&&(this.container.style.display=e)}},{key:"render",value:function(){var e=this.props,o=e.name,a=e.hasStickyPosition,i=e.emojiProps,t=this.getEmojis(),s={},_={},g={};return t||(g={display:"none"}),a||(s={height:28},_={position:"absolute"}),r["default"].createElement("div",{ref:"container",className:"emoji-picker-category",style:g},r["default"].createElement("div",{style:s,"data-name":o,className:"emoji-picker-category-label"},r["default"].createElement("span",{style:_,ref:"label"},u[o])),t&&t.map(function(e){return r["default"].createElement(h.Emoji,n({key:e,emoji:e},i))}),t&&!t.length&&r["default"].createElement("div",{className:"emoji-picker-no-results"},r["default"].createElement(h.Emoji,n({},i,{size:22,emoji:"sleuth_or_spy"})),r["default"].createElement("span",{className:"emoji-picker-no-results-label"},"No emoji found")))}}]),o}(r["default"].Component);o["default"]=f,f.propTypes={emojis:r["default"].PropTypes.array,hasStickyPosition:r["default"].PropTypes.bool,name:r["default"].PropTypes.string.isRequired,perLine:r["default"].PropTypes.number.isRequired,emojiProps:r["default"].PropTypes.object.isRequired},f.defaultProps={emojis:[],hasStickyPosition:!0}},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(17);Object.defineProperty(o,"store",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(18);Object.defineProperty(o,"emojiIndex",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(21);Object.defineProperty(o,"frequently",{enumerable:!0,get:function(){return i(_)["default"]}})},function(e,o){"use strict";function a(e){for(var o in e){var a=e[o];i(o,a)}}function i(e,o){"localStorage"in window&&(window.localStorage[s+"."+e]=JSON.stringify(o))}function t(e){if("localStorage"in window){var o=window.localStorage[s+"."+e];return o?JSON.parse(o):void 0}}Object.defineProperty(o,"__esModule",{value:!0});var s="emoji-picker";o["default"]={update:a,set:i,get:t}},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function t(e){var o=arguments.length<=1||void 0===arguments[1]?75:arguments[1],a=null;return e.length&&(a=r.search(s(e)).map(function(e){return e.ref}),a=a.slice(0,o)),a}function s(e){return 0==["-","-1","+","+1"].indexOf(e)?e.split(""):/(:|;|=)-/.test(e)?[e]:e.split(/[-|_|\s]+/)}Object.defineProperty(o,"__esModule",{value:!0});var _=a(19),n=i(_),g=a(20),m=i(g),r=(0,n["default"])(function(){this.pipeline.reset(),this.field("short_name",{boost:2}),this.field("emoticons"),this.field("name"),this.ref("id")});for(var l in m["default"].emojis){var h=m["default"].emojis[l],u=h.short_name,f=h.name,c=h.emoticons;r.add({id:u,emoticons:c,short_name:s(u),name:s(f)})}o["default"]={search:t}},function(e,o,a){var i,t;!function(){var s=function(e){var o=new s.Index;return o.pipeline.add(s.trimmer,s.stopWordFilter,s.stemmer),e&&e.call(o,o),o};s.version="0.7.1",/*!
+!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("React")):"function"==typeof define&&define.amd?define(["React"],o):"object"==typeof exports?exports.EmojiPicker=o(require("React")):e.EmojiPicker=o(e.React)}(this,function(e){return function(e){function o(i){if(a[i])return a[i].exports;var t=a[i]={exports:{},id:i,loaded:!1};return e[i].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var a={};return o.m=e,o.c=a,o.p="",o(0)}([function(e,o,a){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=a(1);Object.defineProperty(o,"Picker",{enumerable:!0,get:function(){return i.Picker}}),Object.defineProperty(o,"Emoji",{enumerable:!0,get:function(){return i.Emoji}});var t=a(16);Object.defineProperty(o,"emojiIndex",{enumerable:!0,get:function(){return t.emojiIndex}})},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(2);Object.defineProperty(o,"Anchors",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(15);Object.defineProperty(o,"Category",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(22);Object.defineProperty(o,"Emoji",{enumerable:!0,get:function(){return i(_)["default"]}});var n=a(23);Object.defineProperty(o,"Picker",{enumerable:!0,get:function(){return i(n)["default"]}});var g=a(25);Object.defineProperty(o,"Preview",{enumerable:!0,get:function(){return i(g)["default"]}});var m=a(26);Object.defineProperty(o,"Search",{enumerable:!0,get:function(){return i(m)["default"]}});var r=a(27);Object.defineProperty(o,"Skins",{enumerable:!0,get:function(){return i(r)["default"]}})},function(e,o,a){"use strict";function i(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a]);return o["default"]=e,o}function t(e){return e&&e.__esModule?e:{"default":e}}function s(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function n(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}Object.defineProperty(o,"__esModule",{value:!0});var g=function(){function e(e,o){for(var a=0;a: `raw` prop works only when `window.DOMParser` exists.");var d=function(e){function o(e){t(this,o),l(Object.getPrototypeOf(o.prototype),"constructor",this).call(this,e),this._extractSVGProps=this._extractSVGProps.bind(this)}return s(o,e),r(o,null,[{key:"defaultProps",value:{element:"i",raw:!1,src:""},enumerable:!0},{key:"propTypes",value:{src:u["default"].PropTypes.string.isRequired,element:u["default"].PropTypes.string,raw:u["default"].PropTypes.bool},enumerable:!0}]),r(o,[{key:"_serializeAttrs",value:function(e){for(var o={},a=void 0,i=0;i0?this._serializeAttrs(o):null}},{key:"_stripSVG",value:function(e){return n(e).documentElement.innerHTML}},{key:"componentWillReceiveProps",value:function(e){var o=e.children;"production"!==c.env.NODE_ENV&&null!=o&&console.info(": `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,o=void 0,a=void 0,i=this.props,t=i.element,s=i.raw,n=i.src;return s===!0&&_(n)&&(e="svg",a=this._extractSVGProps(n),o=this._stripSVG(n)),o=o||n,e=e||t,a=a||{},u["default"].createElement(e,m({},a,this.props,{src:null,children:null,dangerouslySetInnerHTML:{__html:o}}))}}]),o}(u["default"].Component);o["default"]=d,e.exports=o["default"]},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(6);Object.defineProperty(o,"Activity",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(7);Object.defineProperty(o,"Flags",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(8);Object.defineProperty(o,"Foods",{enumerable:!0,get:function(){return i(_)["default"]}});var n=a(9);Object.defineProperty(o,"Nature",{enumerable:!0,get:function(){return i(n)["default"]}});var g=a(10);Object.defineProperty(o,"Objects",{enumerable:!0,get:function(){return i(g)["default"]}});var m=a(11);Object.defineProperty(o,"People",{enumerable:!0,get:function(){return i(m)["default"]}});var r=a(12);Object.defineProperty(o,"Places",{enumerable:!0,get:function(){return i(r)["default"]}});var l=a(13);Object.defineProperty(o,"Recent",{enumerable:!0,get:function(){return i(l)["default"]}});var h=a(14);Object.defineProperty(o,"Symbols",{enumerable:!0,get:function(){return i(h)["default"]}})},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o){e.exports=''},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function s(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function _(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var o=1;othis.maxMargin?this.maxMargin:o,o!=this.margin){this.props.name;return this.props.hasStickyPosition||(this.label.style.top=o+"px"),this.margin=o,!0}}},{key:"getEmojis",value:function(){var e=this.props,o=e.name,a=e.emojis,i=e.perLine;if("Recent"==o){var t=l.frequently.get(4*i);t.length&&(a=t)}return a&&(a=a.slice(0)),a}},{key:"updateDisplay",value:function(e){var o=this.getEmojis();(e||o)&&(this.container.style.display=e)}},{key:"render",value:function(){var e=this.props,o=e.name,a=e.hasStickyPosition,i=e.emojiProps,t=this.getEmojis(),s={},_={},g={};return t||(g={display:"none"}),a||(s={height:28},_={position:"absolute"}),r["default"].createElement("div",{ref:"container",className:"emoji-picker-category",style:g},r["default"].createElement("div",{style:s,"data-name":o,className:"emoji-picker-category-label"},r["default"].createElement("span",{style:_,ref:"label"},u[o])),t&&t.map(function(e){return r["default"].createElement(h.Emoji,n({key:e,emoji:e},i))}),t&&!t.length&&r["default"].createElement("div",{className:"emoji-picker-no-results"},r["default"].createElement(h.Emoji,n({},i,{size:22,emoji:"sleuth_or_spy"})),r["default"].createElement("span",{className:"emoji-picker-no-results-label"},"No emoji found")))}}]),o}(r["default"].Component);o["default"]=f,f.propTypes={emojis:r["default"].PropTypes.array,hasStickyPosition:r["default"].PropTypes.bool,name:r["default"].PropTypes.string.isRequired,perLine:r["default"].PropTypes.number.isRequired,emojiProps:r["default"].PropTypes.object.isRequired},f.defaultProps={emojis:[],hasStickyPosition:!0}},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(o,"__esModule",{value:!0});var t=a(17);Object.defineProperty(o,"store",{enumerable:!0,get:function(){return i(t)["default"]}});var s=a(18);Object.defineProperty(o,"emojiIndex",{enumerable:!0,get:function(){return i(s)["default"]}});var _=a(21);Object.defineProperty(o,"frequently",{enumerable:!0,get:function(){return i(_)["default"]}})},function(e,o){"use strict";function a(e){for(var o in e){var a=e[o];i(o,a)}}function i(e,o){"localStorage"in window&&(window.localStorage[s+"."+e]=JSON.stringify(o))}function t(e){if("localStorage"in window){var o=window.localStorage[s+"."+e];return o?JSON.parse(o):void 0}}Object.defineProperty(o,"__esModule",{value:!0});var s="emoji-picker";o["default"]={update:a,set:i,get:t}},function(e,o,a){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function t(e){var o=arguments.length<=1||void 0===arguments[1]?75:arguments[1],a=null;return e.length&&(a=r.search(s(e)).map(function(e){return e.ref}),a=a.slice(0,o)),a}function s(e){return 0==["-","-1","+","+1"].indexOf(e)?e.split(""):/(:|;|=)-/.test(e)?[e]:e.split(/[-|_|\s]+/)}Object.defineProperty(o,"__esModule",{value:!0});var _=a(19),n=i(_),g=a(20),m=i(g),r=(0,n["default"])(function(){this.pipeline.reset(),this.field("short_name",{boost:2}),this.field("emoticons"),this.field("name"),this.ref("id")});for(var l in m["default"].emojis){var h=m["default"].emojis[l],u=h.short_name,f=h.name,c=h.emoticons;r.add({id:u,emoticons:c,short_name:s(u),name:s(f)})}o["default"]={search:t}},function(e,o,a){var i,t;!function(){var s=function(e){var o=new s.Index;return o.pipeline.add(s.trimmer,s.stopWordFilter,s.stemmer),e&&e.call(o,o),o};s.version="0.7.1",/*!
* lunr.utils
* Copyright (C) 2016 Oliver Nightingale
*/
diff --git a/src/webpack.config.js b/src/webpack.config.js
index af84581..c54a73c 100644
--- a/src/webpack.config.js
+++ b/src/webpack.config.js
@@ -9,9 +9,9 @@ module.exports = {
libraryTarget: 'umd',
},
- externals: [
- 'react',
- ],
+ externals: [{
+ 'react': 'React',
+ }],
module: {
loaders: [