@appsemble/react-utils
Advanced tools
Comparing version 0.0.0-alpha.5 to 0.0.0-alpha.6
@@ -64,3 +64,3 @@ 'use strict'; | ||
_this.state = { | ||
value: null | ||
value: props.defaultValue | ||
}; | ||
@@ -115,2 +115,3 @@ | ||
buttons: _propTypes2.default.arrayOf(_propTypes2.default.func).isRequired, | ||
defaultValue: _propTypes2.default.instanceOf(Blob), | ||
onChange: _propTypes2.default.func | ||
@@ -120,3 +121,4 @@ }; | ||
FilePicker.defaultProps = { | ||
defaultValue: null, | ||
onChange: function onChange() {} | ||
}; |
@@ -6,2 +6,5 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = MenuButton; | ||
@@ -32,3 +35,3 @@ | ||
*/ | ||
function MenuButton() { | ||
function MenuButton(props) { | ||
if (!(0, _sdk.hasMenu)()) { | ||
@@ -39,7 +42,7 @@ return null; | ||
_IconButton2.default, | ||
{ onClick: function onClick() { | ||
_extends({}, props, { onClick: function onClick() { | ||
return (0, _menu.open)(); | ||
} }, | ||
} }), | ||
_react2.default.createElement(_menu3.default, null) | ||
); | ||
} |
{ | ||
"name": "@appsemble/react-utils", | ||
"version": "0.0.0-alpha.5", | ||
"version": "0.0.0-alpha.6", | ||
"description": "The JavaScript SDK for communication with the Appsemble extension host.", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
}, | ||
"author": "Remco Haszing <remcohaszing@gmail.com>", | ||
"author": "Appsemble <support@appsemble.com> (https://www.appsemble.com)", | ||
"license": "MIT", | ||
@@ -19,0 +19,0 @@ "dependencies": { |
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
21375
430