microcosm
Advanced tools
Comparing version 12.0.0-alpha.0 to 12.0.0-alpha.1
@@ -49,2 +49,6 @@ 'use strict'; | ||
if (this.props.tag === 'button' && props.type == null) { | ||
props.type = 'button'; | ||
} | ||
return react.createElement(this.props.tag, props); | ||
@@ -51,0 +55,0 @@ } |
@@ -1,1 +0,1 @@ | ||
"use strict";function e(e,t){o.PureComponent.apply(this,arguments),this.send=this.props.send||this.context.send,this.click=this.click.bind(this)}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../microcosm.js"),o=require("react");e.contextTypes=e.propTypes={send:o.PropTypes.func},e.defaultProps={tag:"button"},t.inherit(e,o.PureComponent,{click:function(e){var o=this.send(this.props.action,this.props.value);return o&&o instanceof t.Action&&o.onDone(this.props.onDone).onUpdate(this.props.onUpdate).onCancel(this.props.onCancel).onError(this.props.onError),this.props.onClick&&this.props.onClick(e,o),o},render:function(){var e=t.merge({},this.props,{onClick:this.click});return delete e.tag,delete e.action,delete e.value,delete e.onDone,delete e.onUpdate,delete e.onCancel,delete e.onError,delete e.send,o.createElement(this.props.tag,e)}}),exports.default=e; | ||
"use strict";function e(e,t){o.PureComponent.apply(this,arguments),this.send=this.props.send||this.context.send,this.click=this.click.bind(this)}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../microcosm.js"),o=require("react");e.contextTypes=e.propTypes={send:o.PropTypes.func},e.defaultProps={tag:"button"},t.inherit(e,o.PureComponent,{click:function(e){var o=this.send(this.props.action,this.props.value);return o&&o instanceof t.Action&&o.onDone(this.props.onDone).onUpdate(this.props.onUpdate).onCancel(this.props.onCancel).onError(this.props.onError),this.props.onClick&&this.props.onClick(e,o),o},render:function(){var e=t.merge({},this.props,{onClick:this.click});return delete e.tag,delete e.action,delete e.value,delete e.onDone,delete e.onUpdate,delete e.onCancel,delete e.onError,delete e.send,"button"===this.props.tag&&null==e.type&&(e.type="button"),o.createElement(this.props.tag,e)}}),exports.default=e; |
{ | ||
"name": "microcosm", | ||
"version": "12.0.0-alpha.0", | ||
"version": "12.0.0-alpha.1", | ||
"description": "Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.", | ||
@@ -5,0 +5,0 @@ "main": "microcosm.js", |
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
198739
1418
0