@deskpro/apps-components
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -37,2 +37,8 @@ 'use strict'; | ||
function propTypeReactElement(propValue, key, componentName, location, propFullName) { | ||
if (!_react2.default.isValidElement(propValue)) { | ||
return new Error('Invalid prop `' + propFullName + '` supplied to' + ' `' + componentName + '`. Validation failed.'); | ||
} | ||
} | ||
var AppFrame = function (_React$PureComponent) { | ||
@@ -108,12 +114,7 @@ _inherits(AppFrame, _React$PureComponent); | ||
/** | ||
* a list of actions associated with this component. @see {@link ActionList} | ||
* a list of actions associated with this component | ||
*/ | ||
actions: _AppBar2.default.propTypes.actions, | ||
actions: _propTypes2.default.oneOfType(_propTypes2.default.string, _propTypes2.default.func, propTypeReactElement, _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func, propTypeReactElement]))), | ||
/** | ||
* a function that will be invoked when one of the controls was clicked | ||
*/ | ||
onAction: _propTypes2.default.func, | ||
/** | ||
* controls if the frame displays the inactive state | ||
@@ -120,0 +121,0 @@ */ |
{ | ||
"name": "@deskpro/apps-components", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"author": "DeskPRO <support@deskpro.com>", | ||
@@ -21,3 +21,3 @@ "license": "BSD 3-Clause License", | ||
"dependencies": { | ||
"@deskpro/apps-components-style": "^0.3.5", | ||
"@deskpro/apps-components-style": "^0.3.6", | ||
"classnames": "^2.2.6", | ||
@@ -24,0 +24,0 @@ "react-custom-scrollbars": "^4.2.1" |
Sorry, the diff of this file is too big to display
149403
982