@pnotify/desktop
Advanced tools
Comparing version 5.1.2 to 5.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [5.2.0](https://github.com/sciactive/pnotify/compare/v5.1.2...v5.2.0) (2020-11-06) | ||
### Bug Fixes | ||
* fix positioning of fallback desktop notice in modalish stacks ([66ea908](https://github.com/sciactive/pnotify/commit/66ea9085292ad16ecf2035ee797c492413f21189)) | ||
## [5.1.2](https://github.com/sciactive/pnotify/compare/v5.1.1...v5.1.2) (2020-04-29) | ||
@@ -8,0 +19,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).PNotifyDesktop={})}(this,(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,n){return(r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?a(t):n}function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return l(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function f(){}function s(t){return t()}function d(){return Object.create(null)}function g(t){t.forEach(s)}function p(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"===n(t)||"function"==typeof t}function m(t){t.parentNode.removeChild(t)}function y(t){return Array.from(t.childNodes)}var b;function h(t){b=t}var v=[],C=[],E=[],B=[],k=Promise.resolve(),S=!1;function M(t){E.push(t)}var R=!1,O=new Set;function T(){if(!R){R=!0;do{for(var t=0;t<v.length;t+=1){var n=v[t];h(n),J(n.$$)}for(v.length=0;C.length;)C.pop()();for(var e=0;e<E.length;e+=1){var o=E[e];O.has(o)||(O.add(o),o())}E.length=0}while(v.length);for(;B.length;)B.pop()();S=!1,R=!1,O.clear()}}function J(t){if(null!==t.fragment){t.update(),g(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(M)}}var Q=new Set;function L(t,n){t&&t.i&&(Q.delete(t),t.i(n))}function U(t,n,e){var o=t.$$,i=o.fragment,r=o.on_mount,A=o.on_destroy,a=o.after_update;i&&i.m(n,e),M((function(){var n=r.map(s).filter(p);A?A.push.apply(A,u(n)):g(n),t.$$.on_mount=[]})),a.forEach(M)}function x(t,n){-1===t.$$.dirty[0]&&(v.push(t),S||(S=!0,k.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}var F=function(){function t(){e(this,t)}var n,i,r;return n=t,(i=[{key:"$destroy",value:function(){var t,n;t=1,null!==(n=this.$$).fragment&&(g(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]),this.$destroy=f}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(){}}])&&o(n.prototype,i),r&&o(n,r),t}(),j={fallback:!0,icon:null,tag:null,title:null,text:null,options:{}};function N(){void 0!==I&&"requestPermission"in I?I.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()}var I=window.Notification,q=function(t,n,e,o){return(q="Notification"in window?function(t,n,e,o){var i=new I(t,n);return"NotificationEvent"in window?(i.addEventListener("notificationclick",e),i.addEventListener("close",o)):"addEventListener"in i?(i.addEventListener("click",e),i.addEventListener("close",o)):(i.onclick=e,i.onclose=o),i}:"mozNotification"in navigator?function(t,n,e,o){var i=navigator.mozNotification.createNotification(t,n.body,n.icon).show();return i.onclick=e,i.onclose=o,i}:"webkitNotifications"in window?function(t,n,e,o){var i=window.webkitNotifications.createNotification(n.icon,t,n.body);return i.onclick=e,i.onclose=o,i}:function(t,n,e,o){return null})(t,n,e,o)};function H(){return void 0!==I&&"permission"in I?"granted"===I.permission:"webkitNotifications"in window&&0==window.webkitNotifications.checkPermission()}var P=H();function Y(t,n,e){var o,i,r,A=n.self,a=void 0===A?null:A,c=n.fallback,u=void 0===c?j.fallback:c,l=n.icon,f=void 0===l?j.icon:l,s=n.tag,d=void 0===s?j.tag:s,g=n.title,p=void 0===g?j.title:g,w=n.text,m=void 0===w?j.text:w,y=n.options,b=void 0===y?j.options:y,h="none";function v(){if(null===f)switch(a.type){case"error":i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVud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Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC";break;case"notice":default:i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII="}else i=!1===f?null:f;r&&null===d||(r=null===d?"PNotify-".concat(Math.round(1e6*Math.random())):d);var t={body:m||a.text,tag:r};a.hide||(t.requireInteraction=!0),null!==i&&(t.icon=i),Object.apply(t,b),!("close"in(o=q(p||a.title,t,(function(){a.fire&&a.fire("click",{target:o})}),(function(){a.close&&a.close()}))))&&"cancel"in o&&(o.close=function(){o.cancel()})}return a.setModuleHandled(!0),a.on("pnotify:beforeOpen",(function(){P?o&&"show"in o&&(a.setModuleOpen(!0),o.show()):N()})),a.on("pnotify:beforeClose",(function(){P&&o&&"close"in o&&(o.close(),a.setModuleOpen(!1))})),(P=H())?(a.addModuleClass("elem","pnotify-desktop-hide"),a.animation="none",v()):u||(a.autoOpen=!1),t.$set=function(t){"self"in t&&e(0,a=t.self),"fallback"in t&&e(1,u=t.fallback),"icon"in t&&e(2,f=t.icon),"tag"in t&&e(3,d=t.tag),"title"in t&&e(4,p=t.title),"text"in t&&e(5,m=t.text),"options"in t&&e(6,b=t.options)},t.$$.update=function(){257&t.$$.dirty&&("none"!==a.animation&&e(8,h=a.animation),""!==a.getAnimatingClass()&&P&&a.setAnimatingClass(""),!P&&a.hasModuleClass("elem","pnotify-desktop-hide")?(a.removeModuleClass("elem","pnotify-desktop-hide"),e(0,a.animation=h,a)):P&&!a.hasModuleClass("elem","pnotify-desktop-hide")&&(a.addModuleClass("elem","pnotify-desktop-hide"),e(0,a.animation="none",a),v()))},[a,u,f,d,p,m,b]}var V=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&r(t,n)}(u,t);var n,o=(n=u,function(){var t,e=i(n);if(A()){var o=i(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return c(this,t)});function u(t){var n;return e(this,u),function(t,n,e,o,i,r){var A=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=b;h(t);var c=n.props||{},u=t.$$={fragment:null,ctx:null,props:r,update:f,not_equal:i,bound:d(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:d(),dirty:A},l=!1;if(u.ctx=e?e(t,c,(function(n,e){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return u.ctx&&i(u.ctx[n],u.ctx[n]=o)&&(u.bound[n]&&u.bound[n](o),l&&x(t,n)),e})):[],u.update(),l=!0,g(u.before_update),u.fragment=!!o&&o(u.ctx),n.target){if(n.hydrate){var s=y(n.target);u.fragment&&u.fragment.l(s),s.forEach(m)}else u.fragment&&u.fragment.c();n.intro&&L(t.$$.fragment),U(t,n.target,n.anchor),T()}h(a)}(a(n=o.call(this)),t,Y,null,w,{self:0,fallback:1,icon:2,tag:3,title:4,text:5,options:6}),n}return u}(F);t.default=V,t.defaults=j,t.permission=N,t.position="PrependContainer",Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).PNotifyDesktop={})}(this,(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,n){return(r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?A(t):n}function c(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=i(t);if(n){var r=i(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return a(this,e)}}function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return l(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function f(){}function s(t){return t()}function d(){return Object.create(null)}function g(t){t.forEach(s)}function p(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"===n(t)||"function"==typeof t}function y(t){t.parentNode.removeChild(t)}function b(t){return Array.from(t.childNodes)}var h;function m(t){h=t}var v=[],C=[],E=[],k=[],B=Promise.resolve(),S=!1;function M(t){E.push(t)}var R=!1,O=new Set;function T(){if(!R){R=!0;do{for(var t=0;t<v.length;t+=1){var n=v[t];m(n),J(n.$$)}for(m(null),v.length=0;C.length;)C.pop()();for(var e=0;e<E.length;e+=1){var o=E[e];O.has(o)||(O.add(o),o())}E.length=0}while(v.length);for(;k.length;)k.pop()();S=!1,R=!1,O.clear()}}function J(t){if(null!==t.fragment){t.update(),g(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(M)}}var Q=new Set;function L(t,n){t&&t.i&&(Q.delete(t),t.i(n))}function U(t,n,e){var o=t.$$,i=o.fragment,r=o.on_mount,A=o.on_destroy,a=o.after_update;i&&i.m(n,e),M((function(){var n=r.map(s).filter(p);A?A.push.apply(A,u(n)):g(n),t.$$.on_mount=[]})),a.forEach(M)}function x(t,n){-1===t.$$.dirty[0]&&(v.push(t),S||(S=!0,B.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}var j=function(){function t(){e(this,t)}var n,i,r;return n=t,(i=[{key:"$destroy",value:function(){var t,n;t=1,null!==(n=this.$$).fragment&&(g(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]),this.$destroy=f}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&o(n.prototype,i),r&&o(n,r),t}(),F={fallback:!0,icon:null,tag:null,title:null,text:null,options:{}};function N(){void 0!==I&&"requestPermission"in I?I.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()}var I=window.Notification,q=function(t,n,e,o){return(q="Notification"in window?function(t,n,e,o){var i=new I(t,n);return"NotificationEvent"in window?(i.addEventListener("notificationclick",e),i.addEventListener("close",o)):"addEventListener"in i?(i.addEventListener("click",e),i.addEventListener("close",o)):(i.onclick=e,i.onclose=o),i}:"mozNotification"in navigator?function(t,n,e,o){var i=navigator.mozNotification.createNotification(t,n.body,n.icon).show();return i.onclick=e,i.onclose=o,i}:"webkitNotifications"in window?function(t,n,e,o){var i=window.webkitNotifications.createNotification(n.icon,t,n.body);return i.onclick=e,i.onclose=o,i}:function(t,n,e,o){return null})(t,n,e,o)};function H(){return void 0!==I&&"permission"in I?"granted"===I.permission:"webkitNotifications"in window&&0==window.webkitNotifications.checkPermission()}var P=H();function Y(t,n,e){var o,i,r,A=n.self,a=void 0===A?null:A,c=n.fallback,u=void 0===c?F.fallback:c,l=n.icon,f=void 0===l?F.icon:l,s=n.tag,d=void 0===s?F.tag:s,g=n.title,p=void 0===g?F.title:g,w=n.text,y=void 0===w?F.text:w,b=n.options,h=void 0===b?F.options:b,m="none";function v(){if(null===f)switch(a.type){case"error":i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII=";break;case"success":i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiO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pnkLw0uQIAZ1UCYNkXawdw4qPCmVBcuADAMZCpAoCVYr3AKtYyHZSWauakjMx50TWwrzJw6lFARjQOt3se8jM6W9TloSCqIb9bRHbN5Fg+KkEZcow/Ak+KFBsD6h3jR8CUabAMlqn7xfxEbAdwWKLhhO3sGPCbOsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC";break;case"notice":default:i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII="}else i=!1===f?null:f;r&&null===d||(r=null===d?"PNotify-".concat(Math.round(1e6*Math.random())):d);var t={body:y||a.text,tag:r};a.hide||(t.requireInteraction=!0),null!==i&&(t.icon=i),Object.apply(t,h),!("close"in(o=q(p||a.title,t,(function(){a.fire&&a.fire("click",{target:o})}),(function(){a.close&&a.close()}))))&&"cancel"in o&&(o.close=function(){o.cancel()})}return a.on("pnotify:beforeOpen",(function(){P?o&&"show"in o&&(a.setModuleOpen(!0),o.show()):N()})),a.on("pnotify:beforeClose",(function(){P&&o&&"close"in o&&(o.close(),a.setModuleOpen(!1))})),(P=H())?(a.addModuleClass("elem","pnotify-desktop-hide"),a.animation="none",v()):u||(a.autoOpen=!1),t.$$set=function(t){"self"in t&&e(0,a=t.self),"fallback"in t&&e(1,u=t.fallback),"icon"in t&&e(2,f=t.icon),"tag"in t&&e(3,d=t.tag),"title"in t&&e(4,p=t.title),"text"in t&&e(5,y=t.text),"options"in t&&e(6,h=t.options)},t.$$.update=function(){257&t.$$.dirty&&("none"!==a.animation&&e(8,m=a.animation),""!==a.getAnimatingClass()&&P&&a.setAnimatingClass(""),!P&&a.hasModuleClass("elem","pnotify-desktop-hide")?(a.removeModuleClass("elem","pnotify-desktop-hide"),e(0,a.animation=m,a)):P&&!a.hasModuleClass("elem","pnotify-desktop-hide")&&(a.addModuleClass("elem","pnotify-desktop-hide"),e(0,a.animation="none",a),v())),1&t.$$.dirty&&a.setModuleHandled(P)},[a,u,f,d,p,y,h]}var V=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&r(t,n)}(o,t);var n=c(o);function o(t){var i;return e(this,o),function(t,n,e,o,i,r){var A=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=h;m(t);var c=n.props||{},u=t.$$={fragment:null,ctx:null,props:r,update:f,not_equal:i,bound:d(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:d(),dirty:A,skip_bound:!1},l=!1;if(u.ctx=e?e(t,c,(function(n,e){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return u.ctx&&i(u.ctx[n],u.ctx[n]=o)&&(!u.skip_bound&&u.bound[n]&&u.bound[n](o),l&&x(t,n)),e})):[],u.update(),l=!0,g(u.before_update),u.fragment=!!o&&o(u.ctx),n.target){if(n.hydrate){var s=b(n.target);u.fragment&&u.fragment.l(s),s.forEach(y)}else u.fragment&&u.fragment.c();n.intro&&L(t.$$.fragment),U(t,n.target,n.anchor),T()}m(a)}(A(i=n.call(this)),t,Y,null,w,{self:0,fallback:1,icon:2,tag:3,title:4,text:5,options:6}),i}return o}(j);t.default=V,t.defaults=F,t.permission=N,t.position="PrependContainer",Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "@pnotify/desktop", | ||
"version": "5.1.2", | ||
"version": "5.2.0", | ||
"description": "PNotify - Desktop Module", | ||
@@ -43,17 +43,17 @@ "keywords": [ | ||
"dependencies": { | ||
"@pnotify/core": "^5.1.2" | ||
"@pnotify/core": "^5.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.9.0", | ||
"@babel/preset-env": "^7.9.5", | ||
"core-js": "^3.6.5", | ||
"rollup": "^2.7.3", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"core-js": "^3.7.0", | ||
"rollup": "^2.33.1", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-postcss": "^3.1.1", | ||
"rollup-plugin-svelte": "^5.2.1", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"svelte": "^3.20.1" | ||
"rollup-plugin-postcss": "^3.1.8", | ||
"rollup-plugin-svelte": "^5.2.3", | ||
"rollup-plugin-terser": "^5.3.1", | ||
"svelte": "^3.29.4" | ||
}, | ||
"gitHead": "9981e5abf26f283912e5b6a5f7cbe2cef85cacc5" | ||
"gitHead": "25725de6ec35debe1724d1e23ce236727e9e211a" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37419
129
0
Updated@pnotify/core@^5.2.0