diff --git a/.all-contributorsrc b/.all-contributorsrc index 00775bd..5f696a3 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -95,6 +95,16 @@ "contributions": [ "code" ] + }, + { + "login": "oklas", + "name": "Serguei Okladnikov", + "avatar_url": "https://avatars3.githubusercontent.com/u/8123356?v=4", + "profile": "https://github.com/oklas", + "contributions": [ + "bug", + "code" + ] } ], "repoType": "github" diff --git a/README.md b/README.md index 94d39a9..ac2657e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Enhanced textarea to achieve autocomplete functionality. [![MIT License][license-badge]][License] [![PRs Welcome][prs-badge]][prs] -[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors)
@@ -148,7 +148,7 @@ export default App; You can also specify the behavior of caret if you return object `{text: "item", caretPosition: "start"}` the caret will be before the word once the user confirms his selection. Other possible value are "next", "end" and number, which is absolute number in contex of textarea (0 is equal position before the first char). Defaults to "next" which is space after the injected word. - Default behavior for string based item is string: ``). This method should **always** return a unique string, otherwise you have to use object notation and specify your own `key`. + The default behavior for string based item is a string: ``). This method should **always** return a unique string, otherwise, you have to use object notation and specify your own `key` or return object from `dataProvider` with `key` property. ## [Example of usage](http://react-textarea-autocomplete.surge.sh/) `create-react-app example && cd example && yarn add @jukben/emoji-search @webscopeio/react-textarea-autocomplete` @@ -242,7 +242,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds | [
Jakub BeneΕ‘](https://jukben.cz)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=jukben "Code") [πŸ“–](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=jukben "Documentation") [🎨](#design-jukben "Design") [πŸ€”](#ideas-jukben "Ideas, Planning, & Feedback") | [
Andrey Taktaev](https://github.com/JokerNN)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=JokerNN "Code") | [
Marcin LichwaΕ‚a](https://github.com/marcinlichwala)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=marcinlichwala "Code") [πŸ“–](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=marcinlichwala "Documentation") | [
Davidson Nascimento](https://github.com/davidsonsns)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=davidsonsns "Code") | [
KajMagnus](http://www.effectivediscussions.org/)
[πŸ›](https://github.com/webscopeio/react-textarea-autocomplete/issues?q=author%3Akajmagnus "Bug reports") [πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=kajmagnus "Code") | [
JÑn VorčÑk](https://twitter.com/janvorcak)
[πŸ›](https://github.com/webscopeio/react-textarea-autocomplete/issues?q=author%3Ajvorcak "Bug reports") [πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=jvorcak "Code") | [
Mateusz BurzyΕ„ski](https://github.com/Andarist)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=Andarist "Code") [πŸ“¦](#platform-Andarist "Packaging/porting to new platform") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| [
Deepak Pai](https://github.com/debugpai2)
[πŸ›](https://github.com/webscopeio/react-textarea-autocomplete/issues?q=author%3Adebugpai2 "Bug reports") [πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=debugpai2 "Code") | [
Aleck Landgraf](http://aleck.me)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=alecklandgraf "Code") | +| [
Deepak Pai](https://github.com/debugpai2)
[πŸ›](https://github.com/webscopeio/react-textarea-autocomplete/issues?q=author%3Adebugpai2 "Bug reports") [πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=debugpai2 "Code") | [
Aleck Landgraf](http://aleck.me)
[πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=alecklandgraf "Code") | [
Serguei Okladnikov](https://github.com/oklas)
[πŸ›](https://github.com/webscopeio/react-textarea-autocomplete/issues?q=author%3Aoklas "Bug reports") [πŸ’»](https://github.com/webscopeio/react-textarea-autocomplete/commits?author=oklas "Code") | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! diff --git a/__tests__/__snapshots__/index.spec.js.snap b/__tests__/__snapshots__/index.spec.js.snap index ceae2b0..1aa9f4b 100644 --- a/__tests__/__snapshots__/index.spec.js.snap +++ b/__tests__/__snapshots__/index.spec.js.snap @@ -358,6 +358,22 @@ exports[`object-based items with keys match the snapshot of dropdown, list, and `; +exports[`object-based items without keys and custom unique generator match the snapshot 1`] = ` +
+