UNPKG

hztianxu-draft-js-plugins

Version:

A Plugin Architecture on top of Draft.JS

100 lines (60 loc) 5.42 kB
# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## To Be Released ### Removed - Removed wrapping span with emojiCharacter class [#668](https://github.com/draft-js-plugins/draft-js-plugins/pull/668) ### Changed - Make the emoji highlightable. Thanks to @AndrewHamm [#635](https://github.com/draft-js-plugins/draft-js-plugins/pull/635) ### Added - Added {allowImageCache, imageType} properties to config object. - Add `emojione` as a dependency. - Add `lodash.keys` as a dependency. - Update the list of Emojis from Emojione `2.1.2` to `2.2.6`. Thanks to @mzbac - The config object will accept a property `priorityList` which should contain Emoji entries used by EmojiOne. These entries will be show first in the EmojiSuggestions dropdown after typing `:`. Thanks to @mzbac ## 1.2.3 - 2016-07-06 [#309](https://github.com/draft-js-plugins/draft-js-plugins/commit/bac8c30f5e324f1fa13b11eeecbaec9172adeb58) Fix Emoji `positionSuggestions` as we introduced a bug in the last version. Thanks to @Zhouzi ## 1.2.2 - 2016-06-26 ### Fixed - `positionSuggestions` now works by default with non-static parents. Thanks to @Zhouzi [#309](https://github.com/draft-js-plugins/draft-js-plugins/pull/309) [#206](https://github.com/draft-js-plugins/draft-js-plugins/issues/206) [#283](https://github.com/draft-js-plugins/draft-js-plugins/issues/283) [#289](https://github.com/draft-js-plugins/draft-js-plugins/issues/289) ## 1.2.1 - 2016-06-05 ### Fixed - Emojis won't show up due broken background styles [#292](https://github.com/draft-js-plugins/draft-js-plugins/pull/292) [#293](https://github.com/draft-js-plugins/draft-js-plugins/issues/293) [#294](https://github.com/draft-js-plugins/draft-js-plugins/pull/294) ## 1.2.0 - 2016-05-27 ### Added - `EmojiSuggestions` now accepts `onOpen`and `onClose` props. These callbacks are triggered when the popover has opened or closed. ## 1.1.1 - 2016-05-24 ### Fixed - Fix rendering the MentionSuggestions in IE11 by avoiding to render an Immutable List [#266](https://github.com/draft-js-plugins/draft-js-plugins/issues/266) [#270](https://github.com/draft-js-plugins/draft-js-plugins/pull/270) - Fix React 0.14.x support by returning `<noscript />` instead of `null` [#267](https://github.com/draft-js-plugins/draft-js-plugins/pull/267) ## 1.1.0 - 2016-05-08 ### Added - Extended configuration parameters to accept `imagePath`. The full path is constructed of multiple parts like this: `${imagePath}${unicode}.svg${cacheBustParam}` while the imagePath can be overwritten from now on. The default imagePath was and still is: '//cdn.jsdelivr.net/emojione/assets/svg/'. [#249](https://github.com/draft-js-plugins/draft-js-plugins/pull/249) ## 1.0.1 - 2016-04-29 ### Fixed - Make sure there is no autocomplete on tab after deleting an emoji [#234](https://github.com/draft-js-plugins/draft-js-plugins/issues/234) ## 1.0.0 - 2016-04-20 ### Changed - Instead of the popover inline it is now exported as `EmojiSuggestions` and can be placed anywhere in the DOM. It's recommended to place it right after the Editor. This change was important to avoid selection issues trigged by `contentEditable={false}`. - Moved to a flat configuration. Instead of plugin properties (decorators & hooks) being stored within pluginProps they now moved to the root object. See the changes here [#150](https://github.com/draft-js-plugins/draft-js-plugins/pull/150/files) as well as the initial discussion here [#143](https://github.com/draft-js-plugins/draft-js-plugins/issues/143) - Improved the regex and now test for a whitespace in front of the `:` to make sure it doesn't match on normal text like a link [#104](https://github.com/draft-js-plugins/draft-js-plugins/issues/104) - Moved the option `theme` from an Immutable Map to a JavaScript object. This is more likely to become a standard. - Improved styling and added animations for the Suggestions overlay as well as the hover on a single suggestion. - Updated the theme properties. ### Fixed - Fix using backspace to close the autocomplete suggestions after typing a `:` [#153](https://github.com/draft-js-plugins/draft-js-plugins/issues/153) - Fix issues with hiding the real Emoji on iOS by introducing an extra span with opacity 0. ### Added - The config now takes a property `positionSuggestions`. The function can be used to manipulate the position of the popover containing the suggestions. It receives one object as arguments containing the visible rectangle surrounding the decorated search string including the @. In addition the object contains prevProps, prevState, state, props & filteredEmojs. An object should be returned which can contain all sorts of styles. The defined properties will be applied as inline-styles. - The `EmojiSuggestions` component now takes a property `onSearchChange` which will trigger whenever the search value of changes. ## 0.0.4 - 2016-03-29 ### Fixed - Fix issue with showing two menus at the same time [#132](https://github.com/draft-js-plugins/draft-js-plugins/issues/132) - When typing ahead to 0 results and then back the first item must be still selected. [#149](https://github.com/draft-js-plugins/draft-js-plugins/pull/149) ## 0.0.3 - 2016-03-25 ### Released the first working version of DraftJS Emoji Plugin It's not recommended to use the version 0.0.0 - 0.0.2