Socket
Socket
Sign inDemoInstall

polythene-core

Package Overview
Dependencies
0
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.2 to 1.5.0

index.d.ts

2

dist/polythene-core.js

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).polythene={})}(this,function(e){"use strict";var n="undefined"!=typeof document,t=!n,i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};function o(){return(o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}var r="hidden",a="visible",s="exposing",d="hiding",u={getInitialState:function(e,n){var t=e.attrs;if(!t.didHide)return{};var i=t.permanent||t.show,o=n(t.permanent?a:i?a:r);return{mode:o,redrawOnUpdate:n.merge([o])}},onUpdate:function(e){var n=e.state,t=e.attrs;if(t.didHide){var i=n.mode();t.permanent?i===a&&t.show?n.mode(s):i!==s||t.show||n.mode(d):i===r&&t.show?n.mode(a):i!==a||t.show||n.mode(d)}},view:function(e,n){var t=e.state,i=e.attrs,s=n.renderer,u=s("span",{className:i.placeholderClassName});if(!i.didHide)return i.permanent||i.inactive||i.show?s(i.instance,i):u;var l=t.mode();return l!==r?s(i.instance,o({},i,{didHide:function(e){return i.didHide(e),t.mode(i.permanent?a:r)}},l===d&&{show:!0,hide:!0})):u},displayName:"Conditional"},l=function(e,n){return e[n]=1,e},c=["key","style","href","id","tabIndex","tabindex","oninit","oncreate","onupdate","onbeforeremove","onremove","onbeforeupdate"],m=function(e){return"function"==typeof e?e():e},f=!t&&"ontouchstart"in document.documentElement,h=f?["touchstart","click"]:["click"],p=f?["click","mouseup"]:["mouseup"],v=f?["touchstart","mousedown"]:["mousedown"],w=f?["touchmove","mousemove"]:["mousemove"],g=f?["touchend","mouseup"]:["mouseup"];n&&document.querySelector("html").classList.add(f?"pe-touch":"pe-no-touch");var y={},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.05,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n?window:{},o=!1;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];o||(e.apply(i,r),o=!0,setTimeout(function(){return o=!1},t))}},C=function(e,n){y[e]&&y[e].forEach(function(e){return e(n)})};n&&(window.addEventListener("resize",function(e){return C("resize",e)}),window.addEventListener("scroll",function(e){return C("scroll",e)}),window.addEventListener("keydown",function(e){return C("keydown",e)}),window.addEventListener(p,function(e){return C(p,e)}));var b=function(e){var t,i=e.options,r=e.renderer,a=[],s=function(e){t||console.error("Cannot set state. Did you set a root element like Dialog to show instances?"),t(e.id),C(i.name,e)},d=function(e){var n=u(e);return a.indexOf(n)},u=function(e){for(var n=0;n<a.length;n++)if(a[n].instanceId===e)return a[n]},l=function(){a.length&&(a[0].show=!0),s({id:a.length?a[0].instanceId:null,name:"next"})},c=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;i.queue?(a.shift(),l()):-1!==(n=d(e=t))&&(a.splice(n,1),s({id:e,name:"removeItem"}))},f=function(e,n){var t=u(n);t&&(t.pause=e,t.unpause=!e,s({id:n,name:e?"pause":"unpause"}))},h=function(){a.length=0,s({id:null,name:"removeAll"})};return{clear:h,count:function(){return a.length},getInitialState:function(e,n){return{current:t=n(null),redrawOnUpdate:n.merge([t])}},hide:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id||i.defaultId,n=i.queue&&a.length?a[0]:u(e);return n&&(n.hide=!0),s({id:e,name:"hide"}),n?n.hidePromise:Promise.resolve(e)},pause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;return f(!0,e)},remove:c,show:function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=r.id||i.defaultId,h=function(e,n,t){var r,a,d=m(e),u=new Promise(function(e){return r=e}),l=new Promise(function(e){return a=e});return o({},i,{instanceId:n,spawn:t,attrs:e,show:!i.queue,showPromise:u,hidePromise:l,didShow:function(){return d.didShow&&d.didShow(n),s({id:n,name:"didShow"}),r(n)},didHide:function(){return d.didHide&&d.didHide(n),s({id:n,name:"didHide"}),c(n),a(n)}})}(t,f,r.spawn||i.defaultId);s({id:f,name:"show"}),i.queue?(a.push(h),1===a.length&&l()):u(f)?(e=h,-1!==(n=d(f))&&(a[n]=e)):a.push(h);return h.showPromise},unpause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;return f(!1,e)},view:function(e){var t=e.attrs,s=t.spawn||i.defaultId,d=a.filter(function(e){return e.show&&e.spawn===s});return i.htmlShowClass&&n&&document.documentElement&&document.documentElement.classList[d.length?"add":"remove"](i.htmlShowClass),d.length?r(i.holderSelector,{className:"container"===t.position?"pe-multiple--container":"pe-multiple--screen"},d.map(function(e){return r(i.instance,o({},{fromMultipleClassName:i.className,fromMultipleClear:h,fromMultipleDidHide:e.didHide,fromMultipleDidShow:e.didShow,hide:e.hide,holderSelector:i.holderSelector,instanceId:e.instanceId,key:e.key,pause:e.pause,show:e.show,spawnId:s,transitions:i.transitions,unpause:e.unpause},m(e.attrs)))})):r(i.placeholder)}}};b.displayName="Multi";var D=function(e){var n=e.element,t=e.selector,i=e.pseudoSelector,o=e.prop,r=e.equals,a=e.contains,s=t?n.querySelector(t):n;return!!s&&(void 0!==r?r===document.defaultView.getComputedStyle(s,i).getPropertyValue(o):void 0!==a?-1!==document.defaultView.getComputedStyle(s,i).getPropertyValue(o).indexOf(a):void 0)},E=function(e){var n=parseFloat(e)*(-1===e.indexOf("ms")?1e3:1);return isNaN(n)?0:n},I=function(e){return H(e,"show")},M=function(e){return H(e,"hide")},H=function(e,t){var i=e.el;return i?new Promise(function(o){var r=i.style,a=n?window.getComputedStyle(i):{},s=e.hasDuration?1e3*e.duration:E(a.transitionDuration),d=e.hasDelay?1e3*e.delay:E(a.transitionDelay),u=e.timingFunction||a.transitionTimingFunction;e.transitionClass&&(e.transitionClassElement||i).classList.add(e.transitionClass);var l=function(){r.transitionDuration="0ms",r.transitionDelay="0ms",e.before()},c=e.before&&"show"===t?l:e.before&&"hide"===t?l:null,m=e.after?function(){return e.after()}:null,f=function(){!function(){r.transitionDuration=s+"ms",r.transitionDelay=d+"ms",u&&(r.transitionTimingFunction=u),e.showClass&&(e.showClassElement||i).classList["show"===t?"add":"remove"](e.showClass);e.transition&&e.transition()}(),setTimeout(function(){(m&&m(),e.transitionClass)&&((e.transitionClassElement||i).classList.remove(e.transitionClass),i.offsetHeight);o()},s+d)},h=function(){0===s?f():setTimeout(f,0)};c?(c(),i.offsetHeight,setTimeout(function(){h()},0)):h()}):Promise.resolve()};e.getAnimationEndEvent=function(){if(n){var e=document.createElement("fakeelement");for(var t in i)if(void 0!==e.style[t])return i[t]}},e.Conditional=u,e.filterSupportedAttributes=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.add,i=void 0===t?[]:t,o=n.remove,r=(void 0===o?[]:o).reduce(l,{}),a=c.concat(i).filter(function(e){return!r[e]}).reduce(l,{});return Object.keys(e).reduce(function(n,t){return a[t]&&(n[t]=e[t]),n},{})},e.unpackAttrs=m,e.classForSize=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";return function(e){return{small:e.small,regular:e.regular,medium:e.medium,large:e.large,fab:e.fab}}(e)[n]},e.isClient=n,e.isServer=t,e.isTouch=f,e.pointerStartEvent=h,e.pointerEndEvent=p,e.pointerStartMoveEvent=v,e.pointerMoveEvent=w,e.pointerEndMoveEvent=g,e.Multi=b,e.show=I,e.hide=M,e.transitionComponent=function(e){var n=e.isShow,t=e.state,i=e.attrs,r=e.domElements,a=e.beforeTransition,s=e.afterTransition,d=e.showClass,u=e.transitionClass;if(t.transitioning())return Promise.resolve();t.transitioning(!0),t.visible(!!n),a&&a();var l=i[n?"showDuration":"hideDuration"],c=i[n?"showDelay":"hideDelay"],m=i[n?"showTimingFunction":"hideTimingFunction"],f=i.transitions,h=n?I:M,p=o({},i,r,{showClass:d,transitionClass:u,duration:l,delay:c,timingFunction:m}),v=o({},p,f&&f[n?"show":"hide"](p));return h(o({},v,{duration:void 0!==v.duration?v.duration:.24,hasDuration:void 0!==v.duration,delay:void 0!==v.delay?v.delay:0,hasDelay:void 0!==v.delay})).then(function(){var e=t.instanceId;i[n?"fromMultipleDidShow":"fromMultipleDidHide"]?i[n?"fromMultipleDidShow":"fromMultipleDidHide"](e):i[n?"didShow":"didHide"]&&i[n?"didShow":"didHide"](e),s&&s(),t.transitioning(!1)})},e.throttle=S,e.subscribe=function(e,n,t){y[e]=y[e]||[],y[e].push(t?S(n,t):n)},e.unsubscribe=function(e,n){if(y[e]){var t=y[e].indexOf(n);t>-1&&y[e].splice(t,1)}},e.emit=C,e.getStyle=function(e){var n=e.element,t=e.selector,i=e.pseudoSelector,o=e.prop,r=t?n.querySelector(t):n;if(r)return r.currentStyle?r.currentStyle[o]:window.getComputedStyle?document.defaultView.getComputedStyle(r,i).getPropertyValue(o):null},e.stylePropCompare=D,e.isRTL=function(e){var n=e.element,t=void 0===n?document:n,i=e.selector;return D({element:t,selector:i,prop:"direction",equals:"rtl"})},e.styleDurationToMs=E,e.deprecation=function(e,n){var t=n.option,i=n.newOption,o=n.newComponent,r=n.since,a=r?"Changed in version ".concat(r,"."):"";return t&&console.warn("".concat(e,": option '").concat(t,"' is deprecated and will be removed in later versions. Use '").concat(i,"' instead. ").concat(a)),o&&!i&&console.warn("".concat(a).concat(e,": this component is deprecated and will be removed in later versions. Use '").concat(o,"' instead. ").concat(a)),o&&i&&console.warn("".concat(a).concat(e,": this component is deprecated and will be removed in later versions. Use '").concat(o,"' with option '").concat(i,"' instead. ").concat(a))},e.iconDropdownUp='<svg xmlns="http://www.w3.org/2000/svg" id="dd-up-svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/></svg>',e.iconDropdownDown='<svg xmlns="http://www.w3.org/2000/svg" id="dd-down-svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>',Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).polythene={})}(this,function(e){"use strict";function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},o=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),o.forEach(function(t){n(e,t,i[t])})}return e}var i="hidden",o="visible",r="exposing",a="hiding",s={getInitialState:function(e,n){var t=e.attrs;if(!t.didHide)return{};var r=t.permanent||t.show,a=n(t.permanent?o:r?o:i);return{mode:a,redrawOnUpdate:n.merge([a])}},onUpdate:function(e){var n=e.state,t=e.attrs;if(t.didHide){var s=n.mode();t.permanent?s===o&&t.show?n.mode(r):s!==r||t.show||n.mode(a):s===i&&t.show?n.mode(o):s!==o||t.show||n.mode(a)}},view:function(e,n){var r=e.state,s=e.attrs,d=n.renderer,u=d("span",{className:s.placeholderClassName});if(!s.didHide)return s.permanent||s.inactive||s.show?d(s.instance,s):u;var l=r.mode();return l!==i?d(s.instance,t({},s,{didHide:function(e){return s.didHide(e),r.mode(s.permanent?o:i)}},l===a?{show:!0,hide:!0}:void 0)):u},displayName:"Conditional"},d=function(e,n){return e[n]=1,e},u=["key","style","href","id","tabIndex","tabindex","oninit","oncreate","onupdate","onbeforeremove","onremove","onbeforeupdate"],l=function(e){return"function"==typeof e?e():e},c="undefined"!=typeof document,f=!c,m={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},h=function(e){var n=e.element,t=e.selector,i=e.pseudoSelector,o=e.prop,r=e.equals,a=e.contains,s=t?n.querySelector(t):n;if(!s)return!1;var d=document.defaultView;if(d){if(void 0!==r)return r===d.getComputedStyle(s,i).getPropertyValue(o);if(void 0!==a)return-1!==d.getComputedStyle(s,i).getPropertyValue(o).indexOf(a)}return!1},p=function(e){var n=parseFloat(e)*(-1===e.indexOf("ms")?1e3:1);return isNaN(n)?0:n},v=!f&&"ontouchstart"in document.documentElement,w=v?["touchstart","click"]:["click"],g=v?["click","mouseup"]:["mouseup"],y=v?["touchstart","mousedown"]:["mousedown"],S=v?["touchmove","mousemove"]:["mousemove"],b=v?["touchend","mouseup"]:["mouseup"];if(c){var C=document.querySelector("html");C&&C.classList.add(v?"pe-touch":"pe-no-touch")}var D={},E=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.05,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c?window:{},i=!1;return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];i||(e.apply(t,r),i=!0,setTimeout(function(){return i=!1},n))}},P=function(e,n){D[e]&&D[e].forEach(function(e){return e(n)})};c&&(window.addEventListener("resize",function(e){return P("resize",e)}),window.addEventListener("scroll",function(e){return P("scroll",e)}),window.addEventListener("keydown",function(e){return P("keydown",e)}),g.forEach(function(e){return window.addEventListener(e,function(n){return P(e,n)})}));var I=function(e){var n,i=e.options,o=e.renderer,r=[],a=function(e){n||console.error("Cannot set state. Did you set a root element like Dialog to show instances?"),n(e.id),P(i.name,e)},s=function(e){var n=d(e);return r.indexOf(n)},d=function(e){for(var n=0;n<r.length;n++)if(r[n].instanceId===e)return r[n]},u=function(){r.length&&(r[0].show=!0),a({id:r.length?r[0].instanceId:null,name:"next"})},f=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;i.queue?(r.shift(),u()):-1!==(n=s(e=t))&&(r.splice(n,1),a({id:e,name:"removeItem"}))},m=function(e,n){var t=d(n);t&&(t.pause=e,t.unpause=!e,a({id:n,name:e?"pause":"unpause"}))},h=function(){r.length=0,a({id:null,name:"removeAll"})};return{clear:h,count:function(){return r.length},getInitialState:function(e,t){return{current:n=t(null),redrawOnUpdate:t.merge([n])}},hide:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id||i.defaultId,n=i.queue&&r.length?r[0]:d(e);return n&&(n.hide=!0),a({id:e,name:"hide"}),n?n.hidePromise:Promise.resolve(e)},pause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;return m(!0,e)},remove:f,show:function(){var e,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=c.id||i.defaultId,h=function(e,n,o){var r,s,d=l(e),u=new Promise(function(e){return r=e}),c=new Promise(function(e){return s=e});return t({},i,{instanceId:n,spawn:o,attrs:e,show:!i.queue,showPromise:u,hidePromise:c,didShow:function(){return d.didShow&&d.didShow(n),a({id:n,name:"didShow"}),r(n)},didHide:function(){return d.didHide&&d.didHide(n),a({id:n,name:"didHide"}),f(n),s(n)}})}(o,m,c.spawn||i.defaultId);a({id:m,name:"show"}),i.queue?(r.push(h),1===r.length&&u()):d(m)?(e=h,-1!==(n=s(m))&&(r[n]=e)):r.push(h);return h.showPromise},unpause:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.defaultId;return m(!1,e)},view:function(e){var n=e.attrs,a=n.spawn||i.defaultId,s=r.filter(function(e){return e.show&&e.spawn===a});return i.htmlShowClass&&c&&document.documentElement&&document.documentElement.classList[s.length?"add":"remove"](i.htmlShowClass),s.length?o(i.holderSelector,{className:"container"===n.position?"pe-multiple--container":"pe-multiple--screen"},s.map(function(e){return o(i.instance,t({},l(n),{fromMultipleClear:h,spawnId:a,fromMultipleClassName:i.className,holderSelector:i.holderSelector,transitions:i.transitions,fromMultipleDidHide:e.didHide,fromMultipleDidShow:e.didShow,hide:e.hide,instanceId:e.instanceId,key:e.key,pause:e.pause,show:e.show,unpause:e.unpause},l(e.attrs)))})):o(i.placeholder)}}};I.displayName="Multi";var M=function(e){return H(e,"show")},O=function(e){return H(e,"hide")},H=function(e,n){var t=e.el;return t?new Promise(function(i){var o=t.style,r=c?window.getComputedStyle(t):{},a=e.hasDuration&&void 0!==e.duration?1e3*e.duration:p(r.transitionDuration),s=e.hasDelay&&void 0!==e.delay?1e3*e.delay:p(r.transitionDelay),d=e.timingFunction||r.transitionTimingFunction;e.transitionClass&&(e.transitionClassElement||t).classList.add(e.transitionClass);var u=function(){o.transitionDuration="0ms",o.transitionDelay="0ms",e.before&&"function"==typeof e.before&&e.before()},l=e.before&&"show"===n?u:e.before&&"hide"===n?u:null,f=function(){e.after&&"function"==typeof e.after&&e.after()},m=function(){!function(){o.transitionDuration=a+"ms",o.transitionDelay=s+"ms",d&&(o.transitionTimingFunction=d),e.showClass&&(e.showClassElement||t).classList["show"===n?"add":"remove"](e.showClass);e.transition&&e.transition()}(),setTimeout(function(){(f&&f(),e.transitionClass)&&((e.transitionClassElement||t).classList.remove(e.transitionClass),t.offsetHeight);i()},a+s)},h=function(){0===a?m():setTimeout(m,0)};l?(l(),t.offsetHeight,setTimeout(function(){h()},0)):h()}):Promise.resolve()};e.coreConditional=s,e.deprecation=function(e,n){var t=n.option,i=n.newOption,o=n.newComponent,r=n.since,a=r?"Since version ".concat(r,"."):"";return t&&console.warn("".concat(e,": option '").concat(t,"' is deprecated and will be removed in later versions. Use '").concat(i,"' instead. ").concat(a)),o&&!i&&console.warn("".concat(e,": this component is deprecated and will be removed in later versions. Use component '").concat(o,"' instead. ").concat(a)),o&&i&&console.warn("".concat(e,": this component is deprecated and will be removed in later versions. Use component '").concat(o,"' with option '").concat(i,"' instead. ").concat(a))},e.filterSupportedAttributes=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.add,i=n.remove,o=i?i.reduce(d,{}):{},r=(t?u.concat(t):u).filter(function(e){return!o[e]}).reduce(d,{});return Object.keys(e).reduce(function(n,t){return r[t]&&(n[t]=e[t]),n},{})},e.unpackAttrs=l,e.classForSize=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular";return function(e){return{small:e.small,regular:e.regular,medium:e.medium,large:e.large,fab:e.fab}}(e)[n]},e.getAnimationEndEvent=function(){if(c){var e=document.createElement("fakeelement");for(var n in m)if(void 0!==e.style[n])return m[n]}},e.getStyle=function(e){var n=e.element,t=e.selector,i=e.pseudoSelector,o=e.prop,r=t?n.querySelector(t):n;if(r){if(r.currentStyle)return r.currentStyle;if(window.getComputedStyle){var a=document.defaultView;if(a){var s=a.getComputedStyle(r,i);if(s)return s.getPropertyValue(o)}}}},e.stylePropCompare=h,e.isRTL=function(e){var n=e.element,t=void 0===n?document:n,i=e.selector;return h({element:t,selector:i,prop:"direction",equals:"rtl"})},e.styleDurationToMs=p,e.iconDropdownUp='<svg xmlns="http://www.w3.org/2000/svg" id="dd-up-svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/></svg>',e.iconDropdownDown='<svg xmlns="http://www.w3.org/2000/svg" id="dd-down-svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>',e.isClient=c,e.isServer=f,e.isTouch=v,e.pointerStartEvent=w,e.pointerEndEvent=g,e.pointerStartMoveEvent=y,e.pointerMoveEvent=S,e.pointerEndMoveEvent=b,e.Multi=I,e.show=M,e.hide=O,e.transitionComponent=function(e){var n=e.isShow,i=e.state,o=e.attrs,r=e.domElements,a=e.beforeTransition,s=e.afterTransition,d=e.showClass,u=e.transitionClass;if(i.transitioning())return Promise.resolve();i.transitioning(!0),i.visible(!!n),a&&a();var l=o[n?"showDuration":"hideDuration"],c=o[n?"showDelay":"hideDelay"],f=o[n?"showTimingFunction":"hideTimingFunction"],m=o.transitions,h=n?M:O,p=t({},o,r,{showClass:d,transitionClass:u,duration:l,delay:c,timingFunction:f}),v=t({},p,m?m[n?"show":"hide"](p):void 0);return h(t({},v,{duration:void 0!==v.duration?v.duration:.24,hasDuration:void 0!==v.duration,delay:void 0!==v.delay?v.delay:0,hasDelay:void 0!==v.delay})).then(function(){var e=i.instanceId;o[n?"fromMultipleDidShow":"fromMultipleDidHide"]?o[n?"fromMultipleDidShow":"fromMultipleDidHide"](e):o[n?"didShow":"didHide"]&&o[n?"didShow":"didHide"](e),s&&s(),i.transitioning(!1)})},e.throttle=E,e.subscribe=function(e,n,t){D[e]=D[e]||[],D[e].push(t?E(n,t):n)},e.unsubscribe=function(e,n){if(D[e]){var t=D[e].indexOf(n);t>-1&&D[e].splice(t,1)}},e.emit=P,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=polythene-core.js.map
{
"name": "polythene-core",
"version": "1.4.2",
"version": "1.5.0",
"description": "",
"main": "dist/polythene-core",
"module": "dist/polythene-core.mjs",
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist/*",
"rollup": "../../node_modules/rollup/bin/rollup -c ../../scripts/bundling/rollup.umd.js && ../../node_modules/rollup/bin/rollup -c ../../scripts/bundling/rollup.es.js",
"build": "npm run clean && npm run rollup"
"build": "npm run clean && npm run rollup",
"typecheck": "../../node_modules/typescript/bin/tsc --noEmit --strict --allowJs --checkJs --noImplicitAny false --lib es2015,DOM,ScriptHost --esModuleInterop true src/index.js"
},
"files": [
"dist",
"index.d.ts",
"README.md"
],
"devDependencies": {
"@types/mithril": "^1.1.14"
},
"author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)",

@@ -17,0 +23,0 @@ "homepage": "https://github.com/ArthurClemens/polythene",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc