cyano-mithril
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mithril")):"function"==typeof define&&define.amd?define(["exports","mithril"],t):t((e=e||self).cyanoMithril=e.cyanoMithril||{},e.m)}(this,function(e,t){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var s;t=t&&t.hasOwnProperty("default")?t.default:t;var i=Function.prototype.call.bind(Function.prototype.call),c=function(){return t.redraw()},u=function(e){var t=s,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},l=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=s;if(u(n)){var o=r.depsIndex,a=function(){var e=t();"function"==typeof e&&(r.teardowns.set(o,e),r.teardowns.set("_",c))},i=r.teardowns.get(o);try{"function"==typeof i&&i()}finally{r.teardowns.delete(o)}r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(a)}:a)}}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=s,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],a=t(e,r);n.states[r]=a,JSON.stringify(a)!==JSON.stringify(o)&&c()},r]},p=l(!0),f=l(),m=function(e,t){var r=s,o=u(t),a=n(r.setup?d():d(e()),2),i=a[0],c=a[1];return r.setup&&o&&c(e()),i},h={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},y=t||{},g=y.trust;y.trust=function(e,n){return n?t(n,g(e)):g(e)},y.displayName="mithril",y.fragment=t.fragment;var v=t,w=function(e,t){var n=function(e){var t=s;s=e.state;try{e.state.updates.forEach(i)}finally{Object.assign(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),s=t}};return{oninit:function(e){Object.assign(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],cleanups:new Map,teardowns:new Map})},oncreate:n,onupdate:n,view:function(n){var r=s;s=n.state;try{return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},n.attrs,{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{s=r}},onremove:function(e){var t=s;s=e.state;try{r(e.state.teardowns.values()).forEach(i)}finally{s=t}}}};e.a=h,e.cast=w,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=y,e.jsx=v,e.useCallback=function(e,t){return m(function(){return e},t)},e.useEffect=p,e.useLayoutEffect=f,e.useMemo=m,e.useReducer=function(e,t,r){var o,a,i,c,u=s,l=!u.setup&&r?r(t):t;return o=n(d(l),3),a=o[0],i=o[1],c=o[2],[a,function(t){var n=u.states[c];return i(e(n,t))}]},e.useRef=function(e){return n(d({current:e}),1)[0]},e.useState=function(e){var t=s;return d(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mithril")):"function"==typeof define&&define.amd?define(["exports","mithril"],t):t((e=e||self).cyanoMithril=e.cyanoMithril||{},e.m)}(this,function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var i;t=t&&t.hasOwnProperty("default")?t.default:t;var c=Function.prototype.call.bind(Function.prototype.call),u=function(){return t.redraw()},l=function(e){var t=i,n=t.depsIndex++,r=t.depsStates[n]||[],o=void 0===e||!!Array.isArray(e)&&(e.length>0?!e.every(function(e,t){return e===r[t]}):!t.setup);return t.depsStates[n]=e,o},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var r=i;if(l(n)){var o=r.depsIndex,a=function(){var e=t();"function"==typeof e&&(r.teardowns.set(o,e),r.teardowns.set("_",u))},s=r.teardowns.get(o);try{"function"==typeof s&&s()}finally{r.teardowns.delete(o)}r.updates.push(e?function(){return new Promise(function(e){return requestAnimationFrame(e)}).then(a)}:a)}}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=i,r=n.statesIndex++;return n.setup||(n.states[r]=e),[n.states[r],function(e){var o=n.states[r],a=t(e,r);n.states[r]=a,JSON.stringify(a)!==JSON.stringify(o)&&u()},r]},f=d(!0),m=d(),h=function(e,t){var n=i,o=l(t),a=r(n.setup?p():p(e()),2),s=a[0],c=a[1];return n.setup&&o&&c(e()),s},y={accept:"accept",acceptcharset:"acceptcharset",accesskey:"accesskey",action:"action",allowfullscreen:"allowfullscreen",allowtransparency:"allowtransparency",alt:"alt",async:"async",autocomplete:"autocomplete",autofocus:"autofocus",autoplay:"autoplay",capture:"capture",cellpadding:"cellpadding",cellspacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",class:"className",classid:"classid",classname:"className",className:"className",colspan:"colspan",cols:"cols",content:"content",contenteditable:"contenteditable",contextmenu:"contextmenu",controls:"controls",coords:"coords",crossorigin:"crossorigin",data:"data",datetime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"enctype",form:"form",formaction:"formaction",formenctype:"formenctype",formmethod:"formmethod",formnovalidate:"formnovalidate",formtarget:"formtarget",frameborder:"frameborder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hreflang",htmlfor:"htmlfor",httpequiv:"httpequiv",icon:"icon",id:"id",inputmode:"inputmode",integrity:"integrity",is:"is",keyparams:"keyparams",keytype:"keytype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginheight",marginwidth:"marginwidth",max:"max",maxlength:"maxlength",media:"media",mediagroup:"mediagroup",method:"method",min:"min",minlength:"minlength",multiple:"multiple",muted:"muted",name:"name",novalidate:"novalidate",nonce:"nonce",onblur:"onblur",onchange:"onchange",onclick:"onclick",onfocus:"onfocus",oninput:"oninput",onkeydown:"onkeydown",onkeyup:"onkeyup",onmousedown:"onmousedown",onmouseout:"onmouseout",onmouseover:"onmouseover",onmouseup:"onmouseup",onscroll:"onscroll",onsubmit:"onsubmit",ontouchend:"ontouchend",ontouchmove:"ontouchmove",ontouchstart:"ontouchstart",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radiogroup",readonly:"readonly",rel:"rel",required:"required",reversed:"reversed",role:"role",rowspan:"rowspan",rows:"rows",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellcheck",src:"src",srcdoc:"srcdoc",srclang:"srclang",srcset:"srcset",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabindex",target:"target",title:"title",type:"type",usemap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},g=t||{},v=g.trust;g.trust=function(e,n){return n?t(n,v(e)):v(e)},g.displayName="mithril",g.fragment=t.fragment;var w=t,b=function(e,t){var r=function(e){var t=i;i=e.state;try{e.state.updates.forEach(c)}finally{n(e.state,{setup:!0,updates:[],depsIndex:0,statesIndex:0}),i=t}};return{oninit:function(e){n(e.state,{setup:!1,states:[],statesIndex:0,depsStates:[],depsIndex:0,updates:[],cleanups:new Map,teardowns:new Map})},oncreate:r,onupdate:r,view:function(n){var r=i;i=n.state;try{return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},n.attrs,{vnode:n,children:n.children}))}catch(e){console.error(e)}finally{i=r}},onremove:function(e){var t=i;i=e.state;try{o(e.state.teardowns.values()).forEach(c)}finally{i=t}}}};e.a=y,e.cast=b,e.getRef=function(e){return{oncreate:function(t){return e(t.dom)}}},e.h=g,e.jsx=w,e.useCallback=function(e,t){return h(function(){return e},t)},e.useEffect=f,e.useLayoutEffect=m,e.useMemo=h,e.useReducer=function(e,t,n){var o,a,s,c,u=i,l=!u.setup&&n?n(t):t;return o=r(p(l),3),a=o[0],s=o[1],c=o[2],[a,function(t){var n=u.states[c];return s(e(n,t))}]},e.useRef=function(e){return r(p({current:e}),1)[0]},e.useState=function(e){var t=i;return p(e,function(e,n){return"function"==typeof e?e(t.states[n]):e})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=cyano-mithril.js.map |
{ | ||
"name": "cyano-mithril", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "Takes a base component and returns a Mithril component", | ||
@@ -5,0 +5,0 @@ "main": "dist/cyano-mithril", |
Sorry, the diff of this file is not supported yet
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
39669
471