{"_id":"@alexkuz/draft-js-mention-plugin","_rev":"4-bb00759e804cce362dfe5f0b9655baf7","name":"@alexkuz/draft-js-mention-plugin","description":"Mention Plugin for DraftJS","dist-tags":{"temp":"1.0.2-temp","latest":"1.0.2"},"versions":{"1.0.2":{"name":"@alexkuz/draft-js-mention-plugin","version":"1.0.2","description":"Mention Plugin for DraftJS","author":{"name":"Nik Graf","email":"nik@nikgraf.com","url":"http://www.nikgraf.com"},"repository":{"type":"git","url":"git+https://github.com/draft-js-plugins/draft-js-plugins.git"},"main":"lib/index.js","keywords":["editor","wysiwyg","draft","react","ux","components","widget","react-component"],"peerDependencies":{"draft-js":">=0.5.0","immutable":">=3.7.6","react":">=0.14.0 || 15.0.0-rc","react-dom":">=0.14.0 || 15.0.0-rc"},"scripts":{"clean":"../node_modules/.bin/rimraf lib","build":"npm run clean && npm run build:js && npm run build:css","build:js":"WEBPACK_CONFIG=$(pwd)/webpack.config.js BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src","build:css":"node ../scripts/concatCssFiles $(pwd) && ../node_modules/.bin/rimraf lib-css","prepublish":"npm run build"},"license":"MIT","dependencies":{"decorate-component-with-props":"^1.0.2","find-with-regex":"^1.0.2","union-class-names":"^1.0.0"},"bugs":{"url":"https://github.com/draft-js-plugins/draft-js-plugins/issues"},"homepage":"https://github.com/draft-js-plugins/draft-js-plugins#readme","_id":"@alexkuz/draft-js-mention-plugin@1.0.2","_shasum":"a5a9600e4b29020017a33a97a1734a5502f9f2d2","_from":".","_npmVersion":"3.7.3","_nodeVersion":"4.3.1","_npmUser":{"name":"alexkuz","email":"alexkuz@gmail.com"},"maintainers":[{"name":"alexkuz","email":"alexkuz@gmail.com"}],"dist":{"shasum":"a5a9600e4b29020017a33a97a1734a5502f9f2d2","tarball":"https://registry.npmjs.org/@alexkuz/draft-js-mention-plugin/-/draft-js-mention-plugin-1.0.2.tgz","integrity":"sha512-km4KNxLkte4KkMyqDOMpcr0vYWQzNeiFsbqoUKKlS7QkQJab4bMdBZ9awY51O74u2aHYyFAVGjYtJs8lFGcQZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBkOVEs2SdkmE6/1N+UGqo4M7AwmhCgbn6rBCnYmvS/GAiBatviH5rVYR24A+9DCbvTdgpMyeUqoSvB1KB8je+XFKQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/draft-js-mention-plugin-1.0.2.tgz_1464347580654_0.10720542958006263"}},"1.0.2-temp":{"name":"@alexkuz/draft-js-mention-plugin","version":"1.0.2-temp","description":"Mention Plugin for DraftJS","author":{"name":"Nik Graf","email":"nik@nikgraf.com","url":"http://www.nikgraf.com"},"repository":{"type":"git","url":"git+https://github.com/draft-js-plugins/draft-js-plugins.git"},"main":"lib/index.js","keywords":["editor","wysiwyg","draft","react","ux","components","widget","react-component"],"peerDependencies":{"draft-js":">=0.5.0","immutable":">=3.7.6","react":">=0.14.0 || 15.0.0-rc","react-dom":">=0.14.0 || 15.0.0-rc"},"scripts":{"clean":"../node_modules/.bin/rimraf lib","build":"npm run clean && npm run build:js && npm run build:css","build:js":"WEBPACK_CONFIG=$(pwd)/webpack.config.js BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src","build:css":"node ../scripts/concatCssFiles $(pwd) && ../node_modules/.bin/rimraf lib-css","prepublish":"npm run build"},"license":"MIT","dependencies":{"decorate-component-with-props":"^1.0.2","find-with-regex":"^1.0.2","union-class-names":"^1.0.0"},"bugs":{"url":"https://github.com/draft-js-plugins/draft-js-plugins/issues"},"homepage":"https://github.com/draft-js-plugins/draft-js-plugins#readme","_id":"@alexkuz/draft-js-mention-plugin@1.0.2-temp","_shasum":"aa6d73e450783cbf93548e3e0720e1a9d6393a08","_from":".","_npmVersion":"3.7.3","_nodeVersion":"4.3.1","_npmUser":{"name":"alexkuz","email":"alexkuz@gmail.com"},"maintainers":[{"name":"alexkuz","email":"alexkuz@gmail.com"}],"dist":{"shasum":"aa6d73e450783cbf93548e3e0720e1a9d6393a08","tarball":"https://registry.npmjs.org/@alexkuz/draft-js-mention-plugin/-/draft-js-mention-plugin-1.0.2-temp.tgz","integrity":"sha512-4nqIw9UJhlYEa4gFYtGYU+albWcsug+QYtosmoPfH3yGlLRKSvnWZQP5HhrfOD0/AceXTfGc1W3UHeX6Dd5mGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWt6sm4b2ZvvVhuD+TFI4hnqTB/x4Zjz9Bvsrx91x5fgIhAI6+Sll8AQy3wOAP/sGxaRRXiXnn2S6KTSlPXFUia45/"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/draft-js-mention-plugin-1.0.2-temp.tgz_1465240803307_0.3571176687255502"}}},"readme":"# DraftJS Mention Plugin\n\n*This is a plugin for the `draft-js-plugins-editor`.*\n\nThis plugin allows you to add stickers to your editor!\n\nUsage:\n\n```js\nimport createMentionPlugin from 'draft-js-mention-plugin';\n\nconst mentionPlugin = createMentionPlugin({ mentions });\n```\n\n## Importing the default styles\n\nThe plugin ships with a default styling available at this location in the installed package:\n`node_modules/draft-js-mention-plugin/lib/plugin.css`.\n\n### Webpack Usage\nFollow the steps below to import the css file by using Webpack's `style-loader` and `css-loader`. \n\n1. Install Webpack loaders: `npm install style-loader css-loader --save-dev`\n2. Add the below section to Webpack config (if your Webpack already has loaders array, simply add the below loader object(`{test:foo, loaders:bar[]}`) as an item in the array).\n\n    ```js\n    module: {\n      loaders: [{\n        test: /\\.css$/,\n        loaders: [\n          'style', 'css'\n        ]\n      }]\n    }\n    ```\n\n3. Add the below import line to your component to tell Webpack to inject style to your component.\n\n    ```js\n    import 'draft-js-mention-plugin/lib/plugin.css';\n    ```\n4. Restart Webpack.\n\n### Browserify Usage\n\nTODO: PR welcome\n","maintainers":[{"name":"alexkuz","email":"alexkuz@gmail.com"}],"time":{"modified":"2022-06-12T14:28:55.887Z","created":"2016-05-27T11:13:02.806Z","1.0.2":"2016-05-27T11:13:02.806Z","1.0.2-temp":"2016-06-06T19:20:05.606Z"},"homepage":"https://github.com/draft-js-plugins/draft-js-plugins#readme","keywords":["editor","wysiwyg","draft","react","ux","components","widget","react-component"],"repository":{"type":"git","url":"git+https://github.com/draft-js-plugins/draft-js-plugins.git"},"author":{"name":"Nik Graf","email":"nik@nikgraf.com","url":"http://www.nikgraf.com"},"bugs":{"url":"https://github.com/draft-js-plugins/draft-js-plugins/issues"},"license":"MIT","readmeFilename":"README.md"}