{"_id":"boundless-utils-web-notification","_rev":"28-d2ab0269ea8e2bf2757bffeb1272620d","name":"boundless-utils-web-notification","time":{"modified":"2022-06-13T05:00:29.508Z","created":"2017-01-25T20:29:32.340Z","1.0.0-beta.3":"2017-01-25T20:29:32.340Z","1.0.0-beta.7":"2017-02-04T02:04:48.564Z","1.0.0":"2017-02-07T02:01:46.116Z","1.0.1":"2017-02-07T02:06:57.111Z","1.0.2":"2017-02-09T06:29:10.338Z","1.0.3":"2017-02-20T00:05:41.340Z","1.0.4":"2017-03-14T06:43:00.757Z","1.1.0":"2017-06-06T04:45:58.931Z"},"maintainers":[{"name":"sighrobot","email":"rubenstein.abe@gmail.com"}],"dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0-beta.7":{"name":"boundless-utils-web-notification","version":"1.0.0-beta.7","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"glitterbyte@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"https://github.com/enigma-io/boundless#readme","_id":"boundless-utils-web-notification@1.0.0-beta.7","scripts":{},"_shasum":"2d38a39ef42f6f69f902ab75fba16d79c6a61ea7","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"yaycmyk","email":"glitterbyte@gmail.com"},"dist":{"shasum":"2d38a39ef42f6f69f902ab75fba16d79c6a61ea7","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.0-beta.7.tgz","integrity":"sha512-3H1JjkrK5/f2YwmkgkqRT5XY4ZlLCuLvy0exLk1dQjnJzd5H3wbjd85/Ojf3aTNsCX078CTlERN8X5VXY4cueQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3sLcKGjYqebCADv+7dFgwBIE6aOgVX4hHTFR3v3tvXAIgJ+cSlaIecBrPZCO4OcslSxDd2rcmOA4nlWi/BK/npq0="}]},"maintainers":[{"name":"yaycmyk","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.0-beta.7.tgz_1486173887943_0.8225742890499532"},"directories":{}},"1.0.0":{"name":"boundless-utils-web-notification","version":"1.0.0","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"glitterbyte@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"http://boundless.js.org/webNotification","_id":"boundless-utils-web-notification@1.0.0","scripts":{},"_shasum":"4006a98d1ec25c396015c161a19dcd6c3821f29a","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"yaycmyk","email":"glitterbyte@gmail.com"},"dist":{"shasum":"4006a98d1ec25c396015c161a19dcd6c3821f29a","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.0.tgz","integrity":"sha512-hXKVz7887A4gtCt7DMLG7gOjI8o+pgBdH1KN8Z/FWigvI5DcUO261TbMpzBqNDuGxJroyun4oHrlgt58sbeAPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+akHAgWOJbddkWg23BCCmeXj3I8qHRx7OMq6zmk0dYgIgRElb/dx6u6fjg+XpkZDZf+C64FYTerxjWhpGnjwldik="}]},"maintainers":[{"name":"yaycmyk","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.0.tgz_1486432905425_0.834083346882835"},"directories":{}},"1.0.1":{"name":"boundless-utils-web-notification","version":"1.0.1","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"glitterbyte@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"http://boundless.js.org/webNotification","_id":"boundless-utils-web-notification@1.0.1","scripts":{},"_shasum":"21dd543bcaef7605929cb91c9ee410fe38dc0141","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"yaycmyk","email":"glitterbyte@gmail.com"},"dist":{"shasum":"21dd543bcaef7605929cb91c9ee410fe38dc0141","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.1.tgz","integrity":"sha512-fyaD2uvyNsE01gOs6e+VGuAJodE5JgqtP9u469k3giA0EZk/vbjQFhi/f37Hpr4GKo4GGW/o5UwbKY7lb9DHIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH67wbiGG9Ztei5GFlbclMUGIGa2rghbW1l1FPz9bG65AiEAli+ZomzrbUPhQWkl/oadGm/JrXfYwvJIJQBJHVnUisM="}]},"maintainers":[{"name":"yaycmyk","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.1.tgz_1486433215238_0.2227369484025985"},"directories":{}},"1.0.2":{"name":"boundless-utils-web-notification","version":"1.0.2","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"glitterbyte@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"http://boundless.js.org/#/webNotification","_id":"boundless-utils-web-notification@1.0.2","scripts":{},"_shasum":"32e4c209555d2690e5eb53940494f411322582b1","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"yaycmyk","email":"glitterbyte@gmail.com"},"dist":{"shasum":"32e4c209555d2690e5eb53940494f411322582b1","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.2.tgz","integrity":"sha512-OCSUF7d45XG3Qm0sskv6O2eof3PzrcjLcT6mXz7c6XH4JiaOIR4ZSNNSplPZOvu9n8YZZsX6kfHeZTFpaFQsvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ+rjIB4x05BPK9tY1aNVXTiyXAKiWiFnx8YWFuorNgAiA1kxZyDlAUuvbWih6XzGabKHZH7riMn4MgJDLNmb8GZQ=="}]},"maintainers":[{"name":"yaycmyk","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.2.tgz_1486621749710_0.7745928214862943"},"directories":{}},"1.0.3":{"name":"boundless-utils-web-notification","version":"1.0.3","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"glitterbyte@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"http://boundless.js.org/webNotification","_id":"boundless-utils-web-notification@1.0.3","scripts":{},"_shasum":"67078e9c12bb4cc4a49a47b0a462b43c9759bac2","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"yaycmyk","email":"glitterbyte@gmail.com"},"dist":{"shasum":"67078e9c12bb4cc4a49a47b0a462b43c9759bac2","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.3.tgz","integrity":"sha512-Fz9byk9cZXwDf6RjSyGzz7Z8CSQDsVB6knJhLT/I067ROQ2RdL6J6fqC+S9SNO68slJqsNRTS+7T8hDGlsLPCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDDxzjsLnqt9KXxA0zrV3iFfWJF9bSJfn+gV0thP/R1AiAm78Bqmwb/2yIG2F4w2kYHnZ3bZCIdlxGzL6sFTFEdKA=="}]},"maintainers":[{"name":"yaycmyk","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.3.tgz_1487549140777_0.25365231558680534"},"directories":{}},"1.0.4":{"name":"boundless-utils-web-notification","version":"1.0.4","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"probablyup@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"https://boundless.js.org/webNotification","_id":"boundless-utils-web-notification@1.0.4","scripts":{},"_shasum":"dcfe4f43f406c897b6faaecafd5ad1b8d4194eb3","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"probablyup","email":"probablyup@gmail.com"},"dist":{"shasum":"dcfe4f43f406c897b6faaecafd5ad1b8d4194eb3","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.0.4.tgz","integrity":"sha512-SvXgmZ9BdN3K+vMMwk22CdHMkB3oMnV2PdTRRoHqnYZd2zc5rRt9een3921sd9y76nVkZ4WjYWB+qeDUkSzW+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmid557ziUsyy9+p3sUZbuOrgs/TOdl4Uq1g7lNXw03QIhALDV5VmUUSqCKRQOGKNOo2oGtPSJfztdjbjL1d9d3PzJ"}]},"maintainers":[{"name":"probablyup","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/boundless-utils-web-notification-1.0.4.tgz_1489473778954_0.1562393642961979"},"directories":{}},"1.1.0":{"name":"boundless-utils-web-notification","version":"1.1.0","description":"Trigger native toasts in supporting browsers.","repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"keywords":["utility","notification","web notification","toast","boundless"],"contributors":[{"name":"Evan Scott","email":"probablyup@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"license":"MIT","bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"homepage":"https://boundless.js.org/webNotification","_id":"boundless-utils-web-notification@1.1.0","scripts":{},"_shasum":"b441e6a336ba7686313d39ba9777a7be3b891487","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"probablyup","email":"probablyup@gmail.com"},"dist":{"shasum":"b441e6a336ba7686313d39ba9777a7be3b891487","tarball":"https://registry.npmjs.org/boundless-utils-web-notification/-/boundless-utils-web-notification-1.1.0.tgz","integrity":"sha512-MmW2eVnA3xbKJ3JboDRLxmFQq294g7JC962wOhAmxsrDMjyYY66DPkqFAUjOt/+WyesJjeGHWodKr2zdmyfzOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL3Jmt7vAENC71bnv2ZwWH+cNBvpulJEwxynOwRl+XWQIgClGAtVdJI092eFkn8qaxovXIu5T08/HeY8VTy9Vdaxk="}]},"maintainers":[{"name":"probablyup","email":"glitterbyte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/boundless-utils-web-notification-1.1.0.tgz_1496724357916_0.7940460541285574"},"directories":{}}},"description":"Trigger native toasts in supporting browsers.","homepage":"https://boundless.js.org/webNotification","keywords":["utility","notification","web notification","toast","boundless"],"repository":{"type":"git","url":"git+https://github.com/enigma-io/boundless.git"},"contributors":[{"name":"Evan Scott","email":"probablyup@gmail.com","url":"http://yaycmyk.com"},{"name":"Abe Rubenstein","email":"abe.rubenstein@enigma.io"},{"name":"Jenn Creighton","email":"jenn.creighton@enigma.io"}],"bugs":{"url":"https://github.com/enigma-io/boundless/issues"},"license":"MIT","readme":"<!---\nTHIS IS AN AUTOGENERATED FILE. EDIT INDEX.JS INSTEAD.\n-->\n# webNotification\n\n__Trigger native toasts in supporting browsers.__\n\n> Support for web notifications is [available in all major desktop browsers](http://caniuse.com/#feat=notifications),\n  except IE (February 2017).\n\nThis module is not a React component, but a utility. The \"close\" functionality of web notifications was removed in a platform\nspec update, so it's no longer possible to have a true lifecycle.\n\n```js\nimport webNotification from 'boundless-utils-web-notification';\n\nwebNotification({body: 'Some text to be displayed...'});\n```\n\nThe utility works by providing an object with the following properties:\n\n- __body__ `String`\n  up to two lines are displayed in the notification (based on the current browser implementations)\n\n- __header__ `String`\n  the bolded title displayed at the top of the notification\n\n- __icon__ `HTMLString`\n  (optional) the URL of a picture or icon to be displayed with the notification (looks best if square)\n\n- __onClick__ `Function`\n  (optional) add arbitrary functionality when the notification is clicked\n\nThis will return a `Promise`. Resolution means the notification was created correctly (returns the `Notification`,\nand rejection will return a relevant error description string.\n\n## Example Usage\n```jsx\nimport React from 'react';\nimport notify from '../index';\nimport Button from '../../boundless-button/index';\n\nexport default class NotifyDemo extends React.PureComponent {\n    state = {\n        n: 0,\n    }\n\n    spawnNotification = () => {\n        notify(this.template(this.state.n + 1)).catch((error) => console.warn(error));\n\n        this.setState({n: this.state.n + 1});\n    }\n\n    template(index) {\n        return {\n            header: `Notification #${index}`,\n            body: 'I can support up to two lines of text.',\n            icon: 'http://icons.iconarchive.com/icons/icons8/ios7/128/Astrology-Winter-icon.png',\n            onClick: () => window.open('http://www.epa.gov/'),\n        };\n    }\n\n    render() {\n        return (\n            <div>\n                <Button ref='trigger' onClick={this.spawnNotification}>\n                    Spawn Notification\n                </Button>\n            </div>\n        );\n    }\n}\n\n```\n\n\n\n","readmeFilename":"README.md"}