gutenblock-controls
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -108,18 +108,23 @@ 'use strict'; | ||
return _react2.default.Children.map(children, function (child) { | ||
return _react2.default.cloneElement(child, { | ||
key: index, | ||
index: index, | ||
setAttributes: setAttributes, | ||
attributes: attributes && attributes[attribute] && attributes[attribute][index] ? attributes[attribute][index] : {}, | ||
onChange: function onChange(name, value) { | ||
return _this2.update(name, value, index, _onChange); | ||
return wp.element.createElement( | ||
'div', | ||
{ | ||
style: { | ||
marginLeft: '10px', | ||
marginTop: '15px' | ||
} | ||
}, | ||
onDelete: function onDelete(childAttributes, childAttribute) { | ||
return _this2.delete(childAttributes, childAttribute, index, _onChange); | ||
}, | ||
style: { | ||
marginLeft: '10px', | ||
marginTop: '15px' | ||
} | ||
}); | ||
_react2.default.cloneElement(child, { | ||
key: index, | ||
index: index, | ||
setAttributes: setAttributes, | ||
attributes: attributes && attributes[attribute] && attributes[attribute][index] ? attributes[attribute][index] : {}, | ||
onChange: function onChange(name, value) { | ||
return _this2.update(name, value, index, _onChange); | ||
}, | ||
onDelete: function onDelete(childAttributes, childAttribute) { | ||
return _this2.delete(childAttributes, childAttribute, index, _onChange); | ||
} | ||
}) | ||
); | ||
}); | ||
@@ -126,0 +131,0 @@ } |
{ | ||
"name": "gutenblock-controls", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Useful inspector controls for gutenberg", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
25736
631