{"_id":"@arkane-network/vue-intercom","_rev":"4-723c606b4f534e64862f0a533bc46722","name":"@arkane-network/vue-intercom","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arkane-network/vue-intercom","version":"1.0.0","description":"An Intercom plugin for Vue.js, fork from johnnynotsolucky/vue-intercom@1.0.13","contributors":[{"name":"Steve Maris","email":"steve.maris@arkane.network"}],"license":"MIT","main":"dist/vue-intercom.js","repository":{"type":"git","url":"git+https://github.com/ArkaneNetwork/vue-intercom.git"},"scripts":{"build":"rollup -c && uglifyjs -c -o dist/vue-intercom.min.js dist/vue-intercom.js","unit":"karma start test/unit/karma.conf.js --watch","test":"karma start test/unit/karma.conf.js --single-run","lint":"eslint --ext .js src test/unit/index.js test/unit/specs","prepublish":"npm run lint && npm test && npm run build","format":"prettier src/**/*.js test/**/*.js --write"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^8.0.1","babel-loader":"^7.1.2","babel-plugin-transform-export-extensions":"^6.22.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","copy-webpack-plugin":"^4.1.0","es6-promise":"^4.1.1","eslint":"^4.8.0","eslint-config-standard":"^10.2.1","eslint-friendly-formatter":"^3.0.0","eslint-loader":"^1.9.0","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.2.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","file-loader":"^1.1.4","function-bind":"^1.1.1","isparta-loader":"^2.0.0","karma":"^1.7.1","karma-chai":"^0.1.0","karma-coverage":"^1.1.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.4","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.31","karma-webpack":"^2.0.4","mocha":"^4.0.0","phantomjs-prebuilt":"^2.1.15","prettier":"^1.7.4","rollup":"^0.50.0","rollup-plugin-buble":"^0.16.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-strip":"^1.1.1","rollup-plugin-vue":"^2.5.2","sinon":"^4.0.1","uglify-js":"^3.1.6","vue":"^2.4.4","webpack":"^3.6.0","webpack-merge":"^4.1.0"},"engines":{"node":">= 4.0.0","npm":">= 3.0.0"},"gitHead":"a75601855decfa1dad296e4fa846e259dff8433e","bugs":{"url":"https://github.com/ArkaneNetwork/vue-intercom/issues"},"homepage":"https://github.com/ArkaneNetwork/vue-intercom#readme","_id":"@arkane-network/vue-intercom@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"simsteve7","email":"steve.maris@fundrequest.io"},"dist":{"integrity":"sha512-u+cxfnb/GhQwggFOkh+XZAlTc2eGZUCws6oXrb8ygYM0LVkLEKKvtKPZM81X+ZJPIjtQGkFXkzkPW3wuBUV6AA==","shasum":"3ed90444665dd5b013982db91ecce74d7cd3e5cd","tarball":"https://registry.npmjs.org/@arkane-network/vue-intercom/-/vue-intercom-1.0.0.tgz","fileCount":16,"unpackedSize":28980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh114kCRA9TVsSAnZWagAACmgP/j9EdLt3XOOshmpnSB4P\nveZw1FtYZXOFxtrly6Pt4X8kRvI4ZTqiJ8uMjpkF3v2ROsOsb9n1TETkeNnF\nOSHZY8TZHP4Hq4+X0Sn8845iTLei5EPfl7lW3yfWxoBcgE1vuNHxXYWtTDfd\nEj+IRBkyiuE0Lh4U05Xn3nkRQojxbDNeK40hfdwnSWthQa5my14sVexAo0U4\n6cFT1kcgDHaYp6iUmTwHnxUV4JZ5CursVWykBUvCAVeSblIejaMmu6n2TmZY\ns8SAIohJECOA2/oMF1PKAfcQAuygeSB4R3MqYupaYRuCRQreTNsSiXz2Di4N\nERXPhQl1AzkUC++ijqZnzr9MVVGskEcwJFGF/lT6xOvcCZdhmIW6mq5cPLFz\nIAcwGT6OxbRAquY/wyLNvdO5UJFMf+RQu1Ku6Uh9Z5Y/rO8BIuRNPajcK97b\nfYv6iBJsY0XJLj+jUmcKGottbL2ZAlVxzbQRHVUGWs/H+fbOXhPoEi43ZnE2\n2dG9PAMwruHAy/4FI5VJeg7pzLJ5ZBsz+TiJ6MDYcf+FprMIt5VxF9oBwXnW\nLO1E2LoQyG5OMJ9eQiql5CL0lAgvgZJkM3MwRceWwF8ouJdcQO/kauP3sbJW\nm77Ncao7PhklAsuzhkKzmBb6nEI2jBnC3x4PwfpguwWlojVED0EMBxIlRIrz\nO7AD\r\n=nPQ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVYVpOuZqbodAQHQIOc3QljYDJd+fXCnzcnEhVk7irygIgaVdPtVpaDNpVjhMGcSTyhTiLLZi0Zwa/Ufpy8GZHISI="}]},"maintainers":[{"name":"nipe","email":"nico@itwhiz.be"},{"name":"davyvanroy","email":"davy.van.roy@gmail.com"},{"name":"qkyrie","email":"quintendeswaef+npm@gmail.com"},{"name":"simsteve7","email":"steve.maris@fundrequest.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-intercom_1.0.0_1558605085452_0.5572282946515825"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-23T09:51:25.399Z","1.0.0":"2019-05-23T09:51:25.580Z","modified":"2022-04-04T15:29:32.025Z"},"maintainers":[{"email":"devops@venly.io","name":"venly_io"},{"email":"davy.van.roy@gmail.com","name":"davyvanroy"},{"email":"nico@itwhiz.be","name":"nipe"},{"email":"alpacoder@gmail.com","name":"alpacoder"}],"description":"An Intercom plugin for Vue.js, fork from johnnynotsolucky/vue-intercom@1.0.13","homepage":"https://github.com/ArkaneNetwork/vue-intercom#readme","repository":{"type":"git","url":"git+https://github.com/ArkaneNetwork/vue-intercom.git"},"contributors":[{"name":"Steve Maris","email":"steve.maris@arkane.network"}],"bugs":{"url":"https://github.com/ArkaneNetwork/vue-intercom/issues"},"license":"MIT","readme":"# vue-intercom\n\nA reactive wrapper for [Intercom's](https://www.intercom.com/) [JavaScript API](https://developers.intercom.com/docs/intercom-javascript)\n\n## Installation\n\n```bash\nnpm install --save vue-intercom\n```\n\n```javascript\nimport Vue from 'vue';\nimport VueIntercom from 'vue-intercom';\n\nVue.use(VueIntercom, { appId: 'your-app-id' });\n```\n\n## Usage\n\n`vue-intercom` handles the injection of Intercom's script into your html and wraps calls to the Intercom API with methods and exposes them through the `$intercom` object in your components.\n\n```javascript\nnew Vue({\n  el: '#app',\n  data() {\n    return {\n      userId: 1,\n      name: 'Foo Bar',\n      email: 'foo@bar.com',\n    };\n  },\n  mounted() {\n    this.$intercom.boot({\n      user_id: this.userId,\n      name: this.name,\n      email: this.email,\n    });\n    this.$intercom.show();\n  },\n  watch: {\n    email(email) {\n      this.$intercom.update({ email });\n    },\n  }\n});\n```\n\n## Example App\n\n```\ncd example\nyarn\nyarn dev\n```\n\n## API\n\n### Values\n\n#### `$intercom.ready`\n\nSet to `true` once the Intercom script has been loaded.\n\n#### `$intercom.visible`\n\nSet via the `onShow`/`onHide` events.\n\n#### `$intercom.unreadCount`\n\nSet via the `onUnreadCountChange` event.\n\n### Methods\n\n#### `$intercom.boot(/* optional */options)`\n\nCalls `Intercom('boot')`. Automatically sets the `app_id` unless specified in the options object.\n\n#### `$intercom.shutdown()`\n\nCalls `Intercom('shutdown')`.\n\n#### `$intercom.update(/* optional */options)`\n\nCalls `Intercom('update')`. If the options object is set, calls `Intercom('update', options)`\n\n#### `$intercom.show()`\n\nCalls `Intercom('show')`.\n\n#### `$intercom.hide()`\n\nCalls `Intercom('hide')`.\n\n#### `$intercom.showMessages()`\n\nCalls `Intercom('showMessages')`.\n\n#### `$intercom.showNewMessage(/* optional */content)`\n\nCalls `Intercom('showNewMessage')` with pre-populated content if provided.\n\n#### `$intercom.trackEvent(name, /* optional */metadata)`\n\nCalls `Intercom('trackEvent')` with extra metadata if provided.\n\n#### `$intercom.getVisitorId()`\n\nCalls `Intercom('getVisitorId')`.\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2017 Continuon\n","readmeFilename":"README.md"}