react-cosmos
Advanced tools
Comparing version 2.0.0-beta.7 to 2.0.0-beta.9
@@ -7,4 +7,2 @@ '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; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -16,2 +14,6 @@ | ||
var _lodash = require('lodash.merge'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _unserializableParts = require('react-cosmos-utils/lib/unserializable-parts'); | ||
@@ -170,3 +172,3 @@ | ||
component: components[component], | ||
fixture: _extends({}, fixture.unserializable, fixture.serializable), | ||
fixture: (0, _lodash2.default)(fixture.unserializable, fixture.serializable), | ||
onComponentRef: function onComponentRef() {/* noope */}, | ||
@@ -173,0 +175,0 @@ onFixtureUpdate: onFixtureUpdate |
@@ -15,6 +15,2 @@ 'use strict'; | ||
var _lodash = require('lodash.omit'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -50,3 +46,3 @@ | ||
return _react2.default.createElement(component, _extends({}, (0, _lodash2.default)(fixture, 'children'), { | ||
return _react2.default.createElement(component, _extends({}, fixture.props, { | ||
ref: onComponentRef | ||
@@ -53,0 +49,0 @@ }), fixture.children); |
@@ -17,10 +17,6 @@ 'use strict'; | ||
var _lodash = require('lodash.omit'); | ||
var _lodash = require('lodash.isequal'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _lodash3 = require('lodash.isequal'); | ||
var _lodash4 = _interopRequireDefault(_lodash3); | ||
var _reactComponentTree = require('react-component-tree'); | ||
@@ -118,3 +114,3 @@ | ||
if (!(0, _lodash4.default)(updatedState, fixture.state)) { | ||
if (!(0, _lodash2.default)(updatedState, fixture.state)) { | ||
onFixtureUpdate({ | ||
@@ -138,14 +134,7 @@ state: updatedState | ||
onComponentRef = this.onComponentRef; | ||
var nextProxy = props.nextProxy, | ||
fixture = props.fixture, | ||
disableLocalState = props.disableLocalState; | ||
var nextProxy = props.nextProxy; | ||
// TODO: No longer omit when props will be read from fixture.props | ||
// https://github.com/react-cosmos/react-cosmos/issues/217 | ||
var childFixture = disableLocalState ? fixture : (0, _lodash2.default)(fixture, 'state'); | ||
return _react2.default.createElement(nextProxy.value, _extends({}, props, { | ||
nextProxy: nextProxy.next(), | ||
fixture: childFixture, | ||
onComponentRef: onComponentRef | ||
@@ -152,0 +141,0 @@ })); |
{ | ||
"name": "react-cosmos", | ||
"version": "2.0.0-beta.7", | ||
"version": "2.0.0-beta.9", | ||
"description": "The glue between the React Cosmos modules", | ||
@@ -15,7 +15,8 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/master/packages/react-cosmos", | ||
"lodash.omit": "^4.5.0", | ||
"react-component-playground": "^2.0.0-beta.7", | ||
"react-component-tree": "^2.0.0-beta.6", | ||
"react-cosmos-utils": "^2.0.0-beta.6", | ||
"lodash.merge": "^4.6.0", | ||
"react-component-playground": "^2.0.0-beta.9", | ||
"react-component-tree": "^2.0.0-beta.9", | ||
"react-cosmos-utils": "^2.0.0-beta.9", | ||
"react-dom-polyfill": "^2.0.0-beta.6", | ||
"react-querystring-router": "^2.0.0-beta.6" | ||
"react-querystring-router": "^2.0.0-beta.9" | ||
}, | ||
@@ -22,0 +23,0 @@ "peerDependencies": { |
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
18780
24915
9
529
+ Addedlodash.merge@^4.6.0
+ Addedlodash.merge@4.6.2(transitive)