@blocks/react
Advanced tools
Comparing version 0.0.52 to 0.0.53
@@ -68,6 +68,15 @@ "use strict"; | ||
// HEADERS | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
var Blocks = { | ||
Root: _react["default"].Fragment | ||
Root: function Root(_ref) { | ||
var _ref$layout = _ref.layout, | ||
Layout = _ref$layout === void 0 ? _react["default"].Fragment : _ref$layout, | ||
props = _objectWithoutProperties(_ref, ["layout"]); | ||
return _react["default"].createElement(Layout, props); | ||
} | ||
}; | ||
exports.Blocks = Blocks; |
{ | ||
"name": "@blocks/react", | ||
"version": "0.0.52", | ||
"version": "0.0.53", | ||
"description": "The default, Theme UI-based for the Blocks editor", | ||
@@ -18,5 +18,5 @@ "repository": "blocks/blocks", | ||
"dependencies": { | ||
"property-controls": "^0.0.52" | ||
"property-controls": "^0.0.53" | ||
}, | ||
"gitHead": "b2cd372611f28bac91ed0ddc80a39e2ab911ddfe" | ||
"gitHead": "e375996b786becb977e6bf0106b2cc4a2ab8abef" | ||
} |
@@ -18,2 +18,6 @@ import React from 'react' | ||
export const Blocks = { Root: React.Fragment } | ||
export const Blocks = { | ||
Root: ({ layout: Layout = React.Fragment, ...props }) => { | ||
return <Layout {...props} /> | ||
} | ||
} |
45520
1428
+ Addedproperty-controls@0.0.53(transitive)
- Removedproperty-controls@0.0.52(transitive)
Updatedproperty-controls@^0.0.53