{"_id":"@ekz/quill-mention","_rev":"6-6108eea1faa09abed5027e933b7dd53f","name":"@ekz/quill-mention","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@ekz/quill-mention","version":"0.1.0","description":"@mentions for the Quill rich text editor","main":"dist/quill.mention.js","repository":{"type":"git","url":"https://github.com/afconsult/quill-mention.git"},"author":{"name":"Fredrik Sundqvist","email":"fsundqvist@gmail.com"},"license":"MIT","files":["src","dist","LICENSE","README.md"],"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","css-loader":"^0.28.8","eslint":"^4.15.0","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","extract-text-webpack-plugin":"^4.0.0-beta.0","jshint":"^2.9.5","style-loader":"^0.19.1","uglifyjs-webpack-plugin":"^1.1.6","webpack":"^4.1.0","webpack-cli":"^2.0.10","webpack-dev-server":"^3.1.0"},"peerDependencies":{"quill":"^1.3.4"},"eslintConfig":{"extends":"airbnb","env":{"browser":true}},"scripts":{"watch":"webpack --watch --progress --mode production","start":"webpack-dev-server --hot --open","build":"webpack --mode production","prepublish":"yarn build"},"keywords":["quill","mentions","autocomplete","mention"],"licenseText":"MIT License\n\nCopyright (c) 2018 ÅF AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ekz/quill-mention@0.1.0","dist":{"shasum":"be53288fc29a31c2667392a0c8da0dbf14d50409","tarball":"https://registry.npmjs.org/@ekz/quill-mention/-/quill-mention-0.1.0.tgz","fileCount":16,"unpackedSize":261736,"integrity":"sha512-grrlgzQTkKgPlHW606FILhmbfN1LQ4wLd9SpL96BFLx7GBmgfgAwF0CxALDy5ht9npV/UAGBXZmUgL2VoWgjyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkS6PjEgncYxDPkLComfkkiarMbY4NMEBOfZIDiWL/nAiEA61Mm24N+dZHeO8kqFOwWjQSCNB5X0MfXd+dpc/ODQXU="}]},"maintainers":[{"name":"ekz","email":"heitkotter@gmail.com"}],"_npmUser":{"name":"ekz","email":"heitkotter@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-mention_0.1.0_1533200098044_0.37156891350794585"},"_hasShrinkwrap":false},"0.2.0":{"name":"@ekz/quill-mention","version":"0.2.0","description":"@mentions for the Quill rich text editor","main":"dist/quill.mention.js","repository":{"type":"git","url":"https://github.com/afconsult/quill-mention.git"},"author":{"name":"Fredrik Sundqvist","email":"fsundqvist@gmail.com"},"license":"MIT","files":["src","dist","LICENSE","README.md"],"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","css-loader":"^0.28.8","eslint":"^4.15.0","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","extract-text-webpack-plugin":"^4.0.0-beta.0","jshint":"^2.9.5","style-loader":"^0.19.1","uglifyjs-webpack-plugin":"^1.1.6","webpack":"^4.1.0","webpack-cli":"^2.0.10","webpack-dev-server":"^3.1.0"},"peerDependencies":{"quill":"^1.3.4"},"eslintConfig":{"extends":"airbnb","env":{"browser":true}},"scripts":{"watch":"webpack --watch --progress --mode production","start":"webpack-dev-server --hot --open","build":"webpack --mode production","prepublish":"yarn build"},"keywords":["quill","mentions","autocomplete","mention"],"licenseText":"MIT License\n\nCopyright (c) 2018 ÅF AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ekz/quill-mention@0.2.0","dist":{"shasum":"45ec93fd17eb3429bfd06ffe96958616b5f645a8","tarball":"https://registry.npmjs.org/@ekz/quill-mention/-/quill-mention-0.2.0.tgz","fileCount":16,"unpackedSize":28600,"integrity":"sha512-OVFByeKzdN49ilpsW8Ah8EOHHpWSsxtueoWTTMyFFT1q27ZsIyQ1MMl4TzIc+5Zv5pBAD3QOLSpw2duEF16ODQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUHDP3PY6LQBs0JVCoOkKqy+fGzolcrrMsUX/pJJoV7AIgamasH36KIs5TqlrzooLxIXKJT5R16Pt5G6gbaoPzCWU="}]},"maintainers":[{"name":"ekz","email":"heitkotter@gmail.com"}],"_npmUser":{"name":"ekz","email":"heitkotter@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-mention_0.2.0_1533205488225_0.9205302118268426"},"_hasShrinkwrap":false},"0.2.1":{"name":"@ekz/quill-mention","version":"0.2.1","description":"@mentions for the Quill rich text editor","main":"dist/quill.mention.js","repository":{"type":"git","url":"https://github.com/afconsult/quill-mention.git"},"author":{"name":"Fredrik Sundqvist","email":"fsundqvist@gmail.com"},"license":"MIT","files":["src","dist","LICENSE","README.md"],"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","css-loader":"^0.28.8","eslint":"^4.15.0","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","extract-text-webpack-plugin":"^4.0.0-beta.0","jshint":"^2.9.5","style-loader":"^0.19.1","uglifyjs-webpack-plugin":"^1.1.6","webpack":"^4.1.0","webpack-cli":"^2.0.10","webpack-dev-server":"^3.1.0"},"peerDependencies":{"quill":"^1.3.4"},"eslintConfig":{"extends":"airbnb","env":{"browser":true}},"scripts":{"watch":"webpack --watch --progress --mode production","start":"webpack-dev-server --hot --open","build":"webpack --mode production","prepublish":"yarn build"},"keywords":["quill","mentions","autocomplete","mention"],"licenseText":"MIT License\n\nCopyright (c) 2018 ÅF AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ekz/quill-mention@0.2.1","dist":{"shasum":"840ee0170f2b7f8a1bcb2b599cff2b2ba1771b95","tarball":"https://registry.npmjs.org/@ekz/quill-mention/-/quill-mention-0.2.1.tgz","fileCount":16,"unpackedSize":28600,"integrity":"sha512-lNU/URuYRlKRcw9w/yNZqzaZd5aMDFtJ0VDeFRBsWF6UptyReSGjANLhGbJMdEBl4xnrSuCIdHFPdBXZ0e4NOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuJ3ssKb6A7FN7IeUJy6vnSz3U3cxOi6urlsgbiHqRBwIhAKwAMLosdO9sekTctdPre0r0oInpXMc+Y/g5710Pn5hq"}]},"maintainers":[{"name":"ekz","email":"heitkotter@gmail.com"}],"_npmUser":{"name":"ekz","email":"heitkotter@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-mention_0.2.1_1533212030796_0.15299772911896925"},"_hasShrinkwrap":false},"0.3.0":{"name":"@ekz/quill-mention","version":"0.3.0","description":"@mentions for the Quill rich text editor","main":"dist/quill.mention.js","repository":{"type":"git","url":"https://github.com/afconsult/quill-mention.git"},"author":{"name":"Fredrik Sundqvist","email":"fsundqvist@gmail.com"},"license":"MIT","files":["src","dist","LICENSE","README.md"],"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","css-loader":"^0.28.8","eslint":"^4.15.0","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","extract-text-webpack-plugin":"^4.0.0-beta.0","jshint":"^2.9.5","style-loader":"^0.19.1","uglifyjs-webpack-plugin":"^1.1.6","webpack":"^4.1.0","webpack-cli":"^2.0.10","webpack-dev-server":"^3.1.0"},"peerDependencies":{"quill":"^1.3.4"},"eslintConfig":{"extends":"airbnb","env":{"browser":true}},"scripts":{"watch":"webpack --watch --progress --mode production","start":"webpack-dev-server --hot --open","build":"webpack --mode production","prepublish":"yarn build"},"keywords":["quill","mentions","autocomplete","mention"],"licenseText":"MIT License\n\nCopyright (c) 2018 ÅF AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ekz/quill-mention@0.3.0","dist":{"shasum":"131ef0c2425d71c72f3309f5ce6d25b9f2f4dde5","tarball":"https://registry.npmjs.org/@ekz/quill-mention/-/quill-mention-0.3.0.tgz","integrity":"sha512-Q4Ve3P0dmEGvnblkWzmveyAzlHfuInPBeMb25tfIQZa3AbmeYU1R8NsLUDZ5tn0+6HsePlUQv7Q5y++hwgcwaA==","fileCount":16,"unpackedSize":28846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbavxLCRA9TVsSAnZWagAANMoP/A8TAIo5AttiLOZeyXyE\nUQZ7ge2L7gRhyQohgXD/DRyfzGTNoZfeo6N2E5SPKTm4KIVqUI85xJ+stO/d\nj+tjfH5k6TMmQhjXEJoekU6QoE4WIDImHmjPrcLM8aY040qnP8hjAMmmymL7\nPZ8Ov4yR9tkbbBL4ZZA2gx4JIggj7YFbb+9fwjtuwRuh6t0fsa2r2BGGz9du\nnKupHyrseXHiXsp77kicYj392aj0ljysgoXbajIGD65wrtvl33UILwXssKnM\nRyPlf0T5a/giKabi/PvC60Qn/6uda0cbCQBaLdlyDBReCxS2M9rULs4uZVYs\nFvW7YCZ+9UNIA2MKkho0TAV0N9X2VoxP8SF0plnTT51JHBOQIpD/rq/T6sUU\nD+6MfjYLkSHpiMKHwEuKegSE9bm1V2EnT8xKAS6HYOuy7RIU+7662yJbsfg8\nFOXUdx7Ni2BvJ/hGz/hheRrEGGiWwxVnfcpAmh9cjL2XmpK010E31IHq/yYX\ny5CbwVexqYvLAlnMU0+CbpSO1veZsP3vG1ro2a60bs9ISdXDfVQBKO1ZjjaN\nYOPuVDTkp0X8K2SQM8TI0iX2TnAGCPdaZ9ISko2sgCOzKf/Caxkv3rG9jFGK\neCltvoh8VL1lMw45FQdnTDFTzbi71K1CT1ETKjaJhUDfLadMxUk8k42RYg5o\n7iyk\r\n=J8uz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBgX2KLFSisXbVD/wbxSdSnlkVN6A3MadqYTSlLF0vNAIgTkXsMghc71s4CAtRbAo2sXtpLIGHSpJcIPGpTuBvqMY="}]},"maintainers":[{"name":"ekz","email":"heitkotter@gmail.com"}],"_npmUser":{"name":"ekz","email":"heitkotter@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-mention_0.3.0_1533738058911_0.5417036168611498"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-02T08:54:57.728Z","0.1.0":"2018-08-02T08:54:58.199Z","modified":"2022-06-12T17:30:12.975Z","0.2.0":"2018-08-02T10:24:48.349Z","0.2.1":"2018-08-02T12:13:51.739Z","0.3.0":"2018-08-08T14:20:59.067Z"},"maintainers":[{"name":"ekz","email":"heitkotter@gmail.com"}],"description":"@mentions for the Quill rich text editor","keywords":["quill","mentions","autocomplete","mention"],"repository":{"type":"git","url":"https://github.com/afconsult/quill-mention.git"},"author":{"name":"Fredrik Sundqvist","email":"fsundqvist@gmail.com"},"license":"MIT","readme":"![Quill Mention](static/quill-mention.png \"Quill Mention\")\n# Quill Mention\n[![npm version](https://badge.fury.io/js/quill-mention.svg)](https://badge.fury.io/js/quill-mention)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nQuill Mention is a module to provide @mentions functionality for the [Quill](https://quilljs.com/) rich text editor.\n\n## Demo\nhttps://afconsult.github.io/projects/quill-mention/\n\n![Mention Demo GIF](static/mention.gif \"Mention Demo GIF\")\n\n## Getting Started\n### Install\nInstall with npm:\n```bash\nnpm install quill-mention --save\n```\nInstall with [Yarn](https://yarnpkg.com/en/):\n```bash\nyarn add quill-mention\n```\n\n### Example\n```javascript\nconst atValues = [\n  { id: 1, value: 'Fredrik Sundqvist' },\n  { id: 2, value: 'Patrik Sjölin' }\n];\nconst hashValues = [\n  { id: 3, value: 'Fredrik Sundqvist 2' },\n  { id: 4, value: 'Patrik Sjölin 2' }\n]\nconst quill = new Quill('#editor', {\n      modules: {\n        mention: {\n          allowedChars: /^[A-Za-z\\sÅÄÖåäö]*$/,\n          mentionDenotationChars: [\"@\", \"#\"],\n          source: function (searchTerm, renderList, mentionChar) {\n            let values;\n\n            if (mentionChar === \"@\") {\n              values = atValues;\n            } else {\n              values = hashValues;\n            }\n            \n            if (searchTerm.length === 0) {\n              renderList(values, searchTerm);\n            } else {\n              const matches = [];\n              for (i = 0; i < values.length; i++)\n                if (~values[i].value.toLowerCase().indexOf(searchTerm.toLowerCase())) matches.push(values[i]);\n              renderList(matches, searchTerm);\n            }\n          },\n        },\n      }\n    });\n```\n\n### Settings\n| Property             | Default        | Description  |\n| -------------------- | -------------- | ------------ |\n| `source(searchTerm, renderList, mentionChar)` | `null`         | Required callback function to handle the search term and connect it to a data source for matches. The data source can be a local source or an AJAX request. The callback should call `renderList(matches, searchTerm);` with matches of JSON Objects in an array to show the result for the user. The JSON Objects should have `id` and `value` but can also have other values to be used in `renderItem` for custom display. |\n| `renderItem(item)`   | `function`     | A function that gives you control over how matches from source are displayed. |\n| `allowedChars`       | `[a-zA-Z0-9_]` | Allowed characters in search term triggering a search request using regular expressions |\n| `minChars`           | `0`            | Minimum number of characters after the @ symbol triggering a search request |\n| `maxChars`           | `31`           | Maximum number of characters after the @ symbol triggering a search request |\n| `offsetTop`          | `2`            | Additional top offset of the mention container position |\n| `offsetLeft`         | `0`            | Additional left offset of the mention container position |\n| `mentionDenotationChars` | `[\"@\"]`    | Specifies which characters will cause the mention autocomplete to open\n\n\n## Authors\n\n**Fredrik Sundqvist** ([MadSpindel](https://github.com/MadSpindel))\n\nSee also the list of [contributors](https://github.com/afconsult/quill-mention/contributors) who participated in this project.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","readmeFilename":"README.md"}