mirror of
https://github.com/tonsky/rum.git
synced 2025-08-03 18:13:19 +08:00
0.12.11
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
## 0.12.11
|
||||
|
||||
- Support `multiple` flag for `select` #259 thx @tomasd
|
||||
|
||||
## 0.12.10
|
||||
|
||||
- add ^js typehint to React Context #251 #256 thx @alexdao3
|
||||
|
@ -83,7 +83,7 @@ Rum:
|
||||
|
||||
## Using Rum
|
||||
|
||||
Add to project.clj: `[rum "0.12.10"]`
|
||||
Add to project.clj: `[rum "0.12.11"]`
|
||||
|
||||
### API Docs & Articles
|
||||
|
||||
@ -644,7 +644,7 @@ Using `:<>` as the tag in a markup vector creates a React Fragment, allowing you
|
||||
|
||||
When used from cljs Rum delegates serialization to ReactDOM library. If used from clj/cljc, Rum works as a traditional template engine à la Hiccup:
|
||||
|
||||
1. Rum’s `project.clj` dependency becomes `[rum "0.12.10" :exclusions [cljsjs/react cljsjs/react-dom]`
|
||||
1. Rum’s `project.clj` dependency becomes `[rum "0.12.11" :exclusions [cljsjs/react cljsjs/react-dom]`
|
||||
2. Import `rum.core` as usual.
|
||||
3. Define components using `rum/defc` or other macros as usual.
|
||||
4. Instead of mounting, call `rum/render-html` to render into a string.
|
||||
|
@ -1,4 +1,4 @@
|
||||
(defproject rum "0.12.10"
|
||||
(defproject rum "0.12.11"
|
||||
:description "ClojureScript wrapper for React"
|
||||
:license {:name "Eclipse"
|
||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||
|
@ -395,8 +395,8 @@ b,c,d,e,h,f,k,l,m,n,p,t,w,A);G=ib(B);var K=J(B);if(null==K)return a.Aa?a.Aa(b,c,
|
||||
h,f,k,l,m,n,p,t,w,A,G,B,K,X);oa=ib(xa);var Oa=J(xa);if(null==Oa)return a.Ea?a.Ea(b,c,d,e,h,f,k,l,m,n,p,t,w,A,G,B,K,X,oa):a.call(a,b,c,d,e,h,f,k,l,m,n,p,t,w,A,G,B,K,X,oa);xa=ib(Oa);Oa=J(Oa);if(null==Oa)return a.Fa?a.Fa(b,c,d,e,h,f,k,l,m,n,p,t,w,A,G,B,K,X,oa,xa):a.call(a,b,c,d,e,h,f,k,l,m,n,p,t,w,A,G,B,K,X,oa,xa);b=[b,c,d,e,h,f,k,l,m,n,p,t,w,A,G,B,K,X,oa,xa];for(c=Oa;;)if(c)b.push(ib(c)),c=J(c);else break;return a.apply(a,b)}
|
||||
function je(a,b){if(a.F){var c=a.G,d=$d(c+1,b);return d<=c?de(a,d,b):a.F(b)}b=D(b);return null==b?a.v?a.v():a.call(a):fe(a,ib(b),ee(b))}function ke(a,b,c){if(a.F){b=$c(b,c);var d=a.G;c=$d(d,c)+1;return c<=d?de(a,c,b):a.F(b)}return fe(a,b,D(c))}function le(a,b,c,d){return a.F?(b=$c(b,$c(c,d)),c=a.G,d=2+$d(c-1,d),d<=c?de(a,d,b):a.F(b)):ge(a,b,c,D(d))}function me(a,b,c,d,e){return a.F?(b=$c(b,$c(c,$c(d,e))),c=a.G,e=3+$d(c-2,e),e<=c?de(a,e,b):a.F(b)):he(a,b,c,d,D(e))}
|
||||
function md(a,b,c,d,e,f){return a.F?(f=ae(f),b=$c(b,$c(c,$c(d,$c(e,f)))),c=a.G,f=4+$d(c-3,f),f<=c?de(a,f,b):a.F(b)):ie(a,b,c,d,e,ae(f))}
|
||||
function ne(){if("undefined"===typeof va||"undefined"===typeof wa||"undefined"===typeof ya)ya=function(a){this.kc=a;this.m=393216;this.C=0},ya.prototype.W=function(a,b){return new ya(b)},ya.prototype.S=function(){return this.kc},ya.prototype.ea=function(){return!1},ya.prototype.next=function(){return Error("No such element")},ya.prototype.remove=function(){return Error("Unsupported operation")},ya.Cc=function(){return new S(null,1,5,U,[oe],null)},ya.Qb=!0,ya.vb="cljs.core/t_cljs$core6794",ya.jc=function(a){return Qb(a,
|
||||
"cljs.core/t_cljs$core6794")};return new ya(pe)}function qe(a,b){for(;;){if(null==D(b))return!0;var c=I(b);c=a.f?a.f(c):a.call(null,c);if(x(c))b=J(b);else return!1}}function re(a,b){for(;;)if(b=D(b)){var c=I(b);c=a.f?a.f(c):a.call(null,c);if(x(c))return c;b=J(b)}else return null}
|
||||
function ne(){if("undefined"===typeof va||"undefined"===typeof wa||"undefined"===typeof ya)ya=function(a){this.kc=a;this.m=393216;this.C=0},ya.prototype.W=function(a,b){return new ya(b)},ya.prototype.S=function(){return this.kc},ya.prototype.ea=function(){return!1},ya.prototype.next=function(){return Error("No such element")},ya.prototype.remove=function(){return Error("Unsupported operation")},ya.Cc=function(){return new S(null,1,5,U,[oe],null)},ya.Qb=!0,ya.vb="cljs.core/t_cljs$core6815",ya.jc=function(a){return Qb(a,
|
||||
"cljs.core/t_cljs$core6815")};return new ya(pe)}function qe(a,b){for(;;){if(null==D(b))return!0;var c=I(b);c=a.f?a.f(c):a.call(null,c);if(x(c))b=J(b);else return!1}}function re(a,b){for(;;)if(b=D(b)){var c=I(b);c=a.f?a.f(c):a.call(null,c);if(x(c))return c;b=J(b)}else return null}
|
||||
function se(){return function(){function a(f,h){return Pa(Ma.c?Ma.c(f,h):Ma.call(null,f,h))}function b(f){return Pa(Ma.f?Ma.f(f):Ma.call(null,f))}function c(){return Pa(Ma.v?Ma.v():Ma.call(null))}var d=null,e=function(){function f(k,l,m){var n=null;if(2<arguments.length){n=0;for(var p=Array(arguments.length-2);n<p.length;)p[n]=arguments[n+2],++n;n=new yc(p,0,null)}return h.call(this,k,l,n)}function h(k,l,m){return Pa(le(Ma,k,l,m))}f.G=2;f.F=function(k){var l=I(k);k=J(k);var m=I(k);k=Ac(k);return h(l,
|
||||
m,k)};f.w=h;return f}();d=function(f,h,k){switch(arguments.length){case 0:return c.call(this);case 1:return b.call(this,f);case 2:return a.call(this,f,h);default:var l=null;if(2<arguments.length){l=0;for(var m=Array(arguments.length-2);l<m.length;)m[l]=arguments[l+2],++l;l=new yc(m,0,null)}return e.w(f,h,l)}throw Error("Invalid arity: "+arguments.length);};d.G=2;d.F=e.F;d.v=c;d.f=b;d.c=a;d.w=e.w;return d}()}
|
||||
var te=function te(a){switch(arguments.length){case 0:return te.v();case 1:return te.f(arguments[0]);case 2:return te.c(arguments[0],arguments[1]);case 3:return te.j(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return te.w(arguments[0],arguments[1],arguments[2],new yc(c.slice(3),0,null))}};te.v=function(){return Fd};te.f=function(a){return a};
|
||||
@ -557,14 +557,14 @@ g.equiv=function(a){return this.B(null,a)};g.B=function(a,b){return b instanceof
|
||||
function Hg(){function a(){return Math.floor(16*Math.random()).toString(16)}var b=(8|3&Math.floor(16*Math.random())).toString(16);return Gg([z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),"-",z.f(a()),z.f(a()),z.f(a()),z.f(a()),"-4",z.f(a()),z.f(a()),z.f(a()),"-",z.f(b),z.f(a()),z.f(a()),z.f(a()),"-",z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a()),z.f(a())].join(""))}
|
||||
function Ig(a,b){var c=Error(a);this.message=a;this.data=b;this.Fb=null;this.name=c.name;this.description=c.description;this.number=c.number;this.fileName=c.fileName;this.lineNumber=c.lineNumber;this.columnNumber=c.columnNumber;this.stack=c.stack;return this}Ig.prototype.__proto__=Error.prototype;Ig.prototype.V=u;
|
||||
Ig.prototype.M=function(a,b,c){Qb(b,"#error {:message ");mg(this.message,b,c);x(this.data)&&(Qb(b,", :data "),mg(this.data,b,c));x(this.Fb)&&(Qb(b,", :cause "),mg(this.Fb,b,c));return Qb(b,"}")};Ig.prototype.toString=function(){return jc(this)};function Jg(a,b){return new Ig(a,b)}if("undefined"===typeof va||"undefined"===typeof wa||"undefined"===typeof Kg)var Kg=null;"undefined"!==typeof console&&La();
|
||||
if("undefined"===typeof va||"undefined"===typeof wa||"undefined"===typeof Lg)var Lg=function(){throw Error("cljs.core/*eval* not bound");};var Mg=new C("rum","react-component","rum/react-component",-1879897248),Ng=new C(null,"did-mount","did-mount",918232960),oe=new uc(null,"meta6795","meta6795",230634913,null),Og=new C(null,"min","min",444991522),Pg=new C(null,"will-unmount","will-unmount",-808051550),Qg=new C(null,"email","email",1415816706),Rg=new C("rum.examples.errors","error","rum.examples.errors/error",1819457764),Ia=new C(null,"meta","meta",1499536964),Sg=new C(null,"age","age",-604307804),Tg=new C(null,"did-remount","did-remount",
|
||||
1362550500),Ug=new C(null,"color","color",1011675173),Ja=new C(null,"dup","dup",556298533),Vg=new C("rum","class","rum/class",-2030775258),Wg=new C(null,"init","init",-1875481434),Xg=new C(null,"\x3e","\x3e",-555517146),Yg=new C("rum.examples.portals","*clicks","rum.examples.portals/*clicks",840774855),Zg=new C(null,"childContextTypes","childContextTypes",578717991),$g=new C(null,"phone","phone",-763596057),ah=new C(null,"content","content",15833224),bh=new C(null,"msgData","msgData",345907944),ch=
|
||||
new C(null,"did-catch","did-catch",2139522313),dh=new C(null,"child-context","child-context",-1375270295),eh=new C(null,"margin-left","margin-left",2015598377),fh=new C(null,"value","value",305978217),gh=new C("rum.reactive","key","rum.reactive/key",-803425142),hh=new C(null,"contextTypes","contextTypes",-2023853910),ih=new C("rum","args","rum/args",1315791754),jh=new C(null,"width","width",-384071477),vg=new C(null,"val","val",128701612),kh=new C(null,"cursor","cursor",1011937484),lh=new C(null,
|
||||
"type","type",1174270348),mh=new C(null,"timer-static","timer-static",1373464428),pg=new C(null,"fallback-impl","fallback-impl",-1501286995),Eg=new C(null,"keyword-fn","keyword-fn",-64566675),nh=new C(null,"before-render","before-render",71256781),Ga=new C(null,"flush-on-newline","flush-on-newline",-151457939),oh=new C(null,"e","e",1381269198),ph=new C(null,"className","className",-1983287057),qh=new C(null,"style","style",-496642736),rh=new C("unsafe","will-update","unsafe/will-update",1505013232),
|
||||
sh=new C(null,"div","div",1057191632),th=new C(null,"did-update","did-update",-2143702256),Ha=new C(null,"readably","readably",1129599760),gg=new C(null,"more-marker","more-marker",-14717935),uh=new C(null,"key-fn","key-fn",-636154479),vh=new C(null,"g","g",1738089905),wh=new C(null,"will-mount","will-mount",-434633071),xh=new C(null,"c","c",-1763192079),yh=new C(null,"for","for",-1323786319),zh=new C("rum","component-stack","rum/component-stack",2037541138),Ah=new C(null,"weight","weight",-1262796205),
|
||||
Ka=new C(null,"print-length","print-length",1931866356),Bh=new C(null,"max","max",61366548),Ch=new C(null,"id","id",-1388402092),Dh=new C(null,"class","class",-2030961996),Eh=new C(null,"bmi","bmi",1421979636),Fh=new C(null,"will-update","will-update",328062998),Gh=new C(null,"on-mouse-move","on-mouse-move",-1386320874),Hh=new C(null,"class-properties","class-properties",1351279702),Ih=new C("rum","local","rum/local",-1497916586),Jh=new C(null,"b","b",1482224470),Kh=new C(null,"d","d",1972142424),
|
||||
Lh=new C(null,"htmlFor","htmlFor",-1050291720),Mh=new C("rum.examples.core","interval","rum.examples.core/interval",-891109255),Nh=new C(null,"after-render","after-render",1997533433),Oh=new C(null,"static-properties","static-properties",-577838503),Ph=new C(null,"tag","tag",-1290361223),Qh=new C(null,"input","input",556931961),Rh=new C(null,"msgMethod","msgMethod",523741434),Sh=new C(null,"wrap-render","wrap-render",1782000986),Th=new C("unsafe","will-mount","unsafe/will-mount",265089051),Uh=new C(null,
|
||||
"on-change","on-change",-732046149),Vh=new C(null,"will-remount","will-remount",-141604325),Wh=new C("rum.reactive","refs","rum.reactive/refs",-814076325),og=new C(null,"alt-impl","alt-impl",670969595),Xh=new C(null,"backgroundColor","backgroundColor",1738438491),Yh=new C(null,"should-update","should-update",-1292781795),Zh=new C(null,"a","a",-2123407586),$h=new C(null,"height","height",1025178622),Sf=new C("cljs.core","not-found","cljs.core/not-found",-1572889185);function ai(a,b,c){this.ref=a;this.path=b;this.meta=c;this.m=2153938944;this.C=114690}g=ai.prototype;g.equiv=function(a){return this.B(null,a)};g.M=function(a,b,c){Qb(b,"#object [rum.cursor.Cursor ");mg(new v(null,1,[vg,this.la(null)],null),b,c);return Qb(b,"]")};g.S=function(){return this.meta};g.P=function(){return this[ba]||(this[ba]=++ca)};g.B=function(a,b){return this===b};g.Ya=function(a,b){ze.I(this.ref,Je,this.path,b);return b};
|
||||
if("undefined"===typeof va||"undefined"===typeof wa||"undefined"===typeof Lg)var Lg=function(){throw Error("cljs.core/*eval* not bound");};var Mg=new C("rum","react-component","rum/react-component",-1879897248),Ng=new C(null,"did-mount","did-mount",918232960),Og=new C(null,"min","min",444991522),Pg=new C(null,"will-unmount","will-unmount",-808051550),Qg=new C(null,"email","email",1415816706),Rg=new C("rum.examples.errors","error","rum.examples.errors/error",1819457764),Ia=new C(null,"meta","meta",1499536964),Sg=new C(null,"age","age",-604307804),Tg=new C(null,"did-remount","did-remount",1362550500),Ug=new C(null,"color","color",1011675173),
|
||||
Ja=new C(null,"dup","dup",556298533),Vg=new C("rum","class","rum/class",-2030775258),Wg=new C(null,"init","init",-1875481434),Xg=new C(null,"\x3e","\x3e",-555517146),Yg=new C("rum.examples.portals","*clicks","rum.examples.portals/*clicks",840774855),Zg=new C(null,"childContextTypes","childContextTypes",578717991),$g=new C(null,"phone","phone",-763596057),ah=new C(null,"content","content",15833224),bh=new C(null,"msgData","msgData",345907944),ch=new C(null,"did-catch","did-catch",2139522313),dh=new C(null,
|
||||
"child-context","child-context",-1375270295),eh=new C(null,"margin-left","margin-left",2015598377),fh=new C(null,"value","value",305978217),gh=new C("rum.reactive","key","rum.reactive/key",-803425142),hh=new C(null,"contextTypes","contextTypes",-2023853910),oe=new uc(null,"meta6816","meta6816",2012386538,null),ih=new C("rum","args","rum/args",1315791754),jh=new C(null,"width","width",-384071477),vg=new C(null,"val","val",128701612),kh=new C(null,"cursor","cursor",1011937484),lh=new C(null,"type",
|
||||
"type",1174270348),mh=new C(null,"timer-static","timer-static",1373464428),pg=new C(null,"fallback-impl","fallback-impl",-1501286995),Eg=new C(null,"keyword-fn","keyword-fn",-64566675),nh=new C(null,"before-render","before-render",71256781),Ga=new C(null,"flush-on-newline","flush-on-newline",-151457939),oh=new C(null,"e","e",1381269198),ph=new C(null,"className","className",-1983287057),qh=new C(null,"style","style",-496642736),rh=new C("unsafe","will-update","unsafe/will-update",1505013232),sh=new C(null,
|
||||
"div","div",1057191632),th=new C(null,"did-update","did-update",-2143702256),Ha=new C(null,"readably","readably",1129599760),gg=new C(null,"more-marker","more-marker",-14717935),uh=new C(null,"key-fn","key-fn",-636154479),vh=new C(null,"g","g",1738089905),wh=new C(null,"will-mount","will-mount",-434633071),xh=new C(null,"c","c",-1763192079),yh=new C(null,"for","for",-1323786319),zh=new C("rum","component-stack","rum/component-stack",2037541138),Ah=new C(null,"weight","weight",-1262796205),Ka=new C(null,
|
||||
"print-length","print-length",1931866356),Bh=new C(null,"max","max",61366548),Ch=new C(null,"id","id",-1388402092),Dh=new C(null,"class","class",-2030961996),Eh=new C(null,"bmi","bmi",1421979636),Fh=new C(null,"will-update","will-update",328062998),Gh=new C(null,"on-mouse-move","on-mouse-move",-1386320874),Hh=new C(null,"class-properties","class-properties",1351279702),Ih=new C("rum","local","rum/local",-1497916586),Jh=new C(null,"b","b",1482224470),Kh=new C(null,"d","d",1972142424),Lh=new C(null,
|
||||
"htmlFor","htmlFor",-1050291720),Mh=new C("rum.examples.core","interval","rum.examples.core/interval",-891109255),Nh=new C(null,"after-render","after-render",1997533433),Oh=new C(null,"static-properties","static-properties",-577838503),Ph=new C(null,"tag","tag",-1290361223),Qh=new C(null,"input","input",556931961),Rh=new C(null,"msgMethod","msgMethod",523741434),Sh=new C(null,"wrap-render","wrap-render",1782000986),Th=new C("unsafe","will-mount","unsafe/will-mount",265089051),Uh=new C(null,"on-change",
|
||||
"on-change",-732046149),Vh=new C(null,"will-remount","will-remount",-141604325),Wh=new C("rum.reactive","refs","rum.reactive/refs",-814076325),og=new C(null,"alt-impl","alt-impl",670969595),Xh=new C(null,"backgroundColor","backgroundColor",1738438491),Yh=new C(null,"should-update","should-update",-1292781795),Zh=new C(null,"a","a",-2123407586),$h=new C(null,"height","height",1025178622),Sf=new C("cljs.core","not-found","cljs.core/not-found",-1572889185);function ai(a,b,c){this.ref=a;this.path=b;this.meta=c;this.m=2153938944;this.C=114690}g=ai.prototype;g.equiv=function(a){return this.B(null,a)};g.M=function(a,b,c){Qb(b,"#object [rum.cursor.Cursor ");mg(new v(null,1,[vg,this.la(null)],null),b,c);return Qb(b,"]")};g.S=function(){return this.meta};g.P=function(){return this[ba]||(this[ba]=++ca)};g.B=function(a,b){return this===b};g.Ya=function(a,b){ze.I(this.ref,Je,this.path,b);return b};
|
||||
g.Kb=function(a,b){var c=this;return c.Ya(null,function(){var d=c.la(null);return b.f?b.f(d):b.call(null,d)}())};g.Lb=function(a,b,c){var d=this;return d.Ya(null,function(){var e=d.la(null);return b.c?b.c(e,c):b.call(null,e,c)}())};g.Mb=function(a,b,c,d){var e=this;return e.Ya(null,function(){var f=e.la(null);return b.j?b.j(f,c,d):b.call(null,f,c,d)}())};g.Nb=function(a,b,c,d,e){return this.Ya(null,me(b,this.la(null),c,d,e))};
|
||||
g.Cb=function(a,b,c){var d=this,e=this;wg(d.ref,new fd(null,e,new fd(null,b,null,1,null),2,null),function(f,h,k,l){f=Va(vc,k,d.path);l=Va(vc,l,d.path);return Cc.c(f,l)?null:c.I?c.I(b,e,f,l):c.call(null,b,e,f,l)});return e};g.Db=function(a,b){Vb(this.ref,new fd(null,this,new fd(null,b,null,1,null),2,null));return this};g.la=function(){var a=yb(this.ref);return Va(vc,a,this.path)};var bi=function bi(a){switch(arguments.length){case 1:return bi.f(arguments[0]);case 2:return bi.c(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return bi.w(arguments[0],arguments[1],new yc(c.slice(2),0,null))}};bi.f=function(a){return a};bi.c=function(a,b){return P(a)<P(b)?Va(function(c,d){return Ad(b,d)?pd.c(c,d):c},a,a):Va(pd,a,b)};bi.w=function(a,b,c){return Va(bi,a,dd.c(c,b))};
|
||||
bi.F=function(a){var b=I(a),c=J(a);a=I(c);c=J(c);return this.w(b,a,c)};bi.G=2;function ci(a){var b=new v(null,2,[Dh,ph,yh,Lh],null);return Va(function(c,d){var e=Q(d,0);d=Q(d,1);return Ad(a,e)?hd.j(c,d,vc.c(a,e)):c},ke(jd,a,mf(b)),b)}function di(a){var b=ei;return P(a)<=P(b)&&qe(function(c){return Ad(b,c)},a)};function fi(a,b){return Ge.j(ed,ue(function(c){return vc.c(c,a)}),b)}function gi(a,b){return Ge.j(ed,te.c(Be.f(function(c){return ve(function(d){return vc.c(c,d)},a)}),yg),b)}function hi(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return ii(arguments[0],arguments[1],2<b.length?new yc(b.slice(2),0,null):null)}function ii(a,b,c){return Va(function(d,e){return ke(e,d,c)},a,b)};function ji(a){var b=new ta;for(a=D(a);;)if(null!=a)b=b.append(z.f(I(a))),a=J(a);else return b.toString()}function ki(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};var li=new Ae(pe);function mi(a){if(a instanceof C||"string"===typeof a||a instanceof uc){var b=vc.c(yb(li),a);if(x(b))return b;if("string"===typeof a)b=a;else{b=Rd(a).split("-");var c=D(b);b=I(c);c=J(c);b=qd(c)||Cc.c("aria",b)||Cc.c("data",b)?a:Qd.f(ji(dd.c(Be.c(ki,c),b)))}li.ub(null,hd.j(li.la(null),a,b));return b}return a}function ni(a){return Yb(Ed(function(b,c,d){c=mi(c);return Zb(b,c,d)},Wb(pe),a))}
|
||||
|
Reference in New Issue
Block a user