signavio / react-mentions

@mention people in a textarea
https://react-mentions.vercel.app
Other
2.45k stars 569 forks source link

Updating from 3.0.2 is blocked because of utils functions #391

Open koshkarik opened 4 years ago

koshkarik commented 4 years ago

Steps to reproduce:

Utils functions are not exported in newer versions of library. In this issue https://github.com/signavio/react-mentions/issues/193#issuecomment-364175977 you advised solution for inserting in input some values (emojis, mentions, etc). So our current implementation uses utils function (mapPlainTextIndex, findStartOfMentionInPlainText) to figure out position for inserting. But starting 3.1.0 utils functions are not exported. Please suggest any solution to figure out positions for insert in newer library versions.

summera commented 2 years ago

@jfschwarz thoughts on this? Could we export these util functions in a new version?

niranjan404 commented 4 months ago

cfbr