@semcore/core
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [1.5.0] - 2020-07-10 | ||
### Added | ||
- Добавлено автоматическое расширение контекста рутового компонента контекстом дочерних | ||
## [1.4.2] - 2020-06-24 | ||
### Fixed | ||
- Исправлено получение унаследованного контекста у дочерних компонентов | ||
## [1.4.1] - 2020-06-22 | ||
@@ -7,0 +19,0 @@ |
@@ -122,3 +122,3 @@ "use strict"; | ||
context: Context, | ||
parent: value || parent | ||
parent: parent | ||
}); // @ts-ignore | ||
@@ -125,0 +125,0 @@ |
@@ -86,2 +86,3 @@ "use strict"; | ||
if (propDefaultValue === undefined) { | ||
// eslint-disable-next-line no-console | ||
console.warn(defaultPropName, 'must be installed in "defaultProps"'); | ||
@@ -88,0 +89,0 @@ } // if (typeof propDefaultValue === 'function' && propDefaultValue.defaultInit) { |
@@ -397,4 +397,10 @@ "use strict"; | ||
parent = _options$parent === void 0 ? [] : _options$parent; | ||
var Component = createComposeComponent(OriginComponent, context, [(0, _Children["default"])(context, parent), // root должен быть ниже children | ||
(0, _Root["default"])(), (0, _uncontrolledProps["default"])(), (0, _staticChildren["default"])(childComponents, createComponent, context, parent), // functionDefaultProps должен быть ниже staticChild | ||
var parents = Array.isArray(parent) ? parent : [parent]; | ||
if (OriginComponent[CORE_COMPONENT]) { | ||
parents.push(OriginComponent); | ||
} | ||
var Component = createComposeComponent(OriginComponent, context, [(0, _Children["default"])(context, parents), // root должен быть ниже children | ||
(0, _Root["default"])(), (0, _uncontrolledProps["default"])(), (0, _staticChildren["default"])(childComponents, createComponent, context, parents), // functionDefaultProps должен быть ниже staticChild | ||
(0, _functionDefaultProps["default"])(), // inheritedName должен быть ниже staticChild | ||
@@ -401,0 +407,0 @@ (0, _inheritedName["default"])(), // dataName должен быть ниже staticChild |
@@ -106,3 +106,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
context: Context, | ||
parent: value || parent | ||
parent: parent | ||
}); // @ts-ignore | ||
@@ -109,0 +109,0 @@ |
@@ -72,2 +72,3 @@ import _typeof from "@babel/runtime/helpers/typeof"; | ||
if (propDefaultValue === undefined) { | ||
// eslint-disable-next-line no-console | ||
console.warn(defaultPropName, 'must be installed in "defaultProps"'); | ||
@@ -74,0 +75,0 @@ } // if (typeof propDefaultValue === 'function' && propDefaultValue.defaultInit) { |
@@ -281,4 +281,10 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
parent = _options$parent === void 0 ? [] : _options$parent; | ||
var Component = createComposeComponent(OriginComponent, context, [childrenEnhancement(context, parent), // root должен быть ниже children | ||
rootEnhancement(), uncontrolledPropsEnhancement(), staticChildrenEnhancement(childComponents, createComponent, context, parent), // functionDefaultProps должен быть ниже staticChild | ||
var parents = Array.isArray(parent) ? parent : [parent]; | ||
if (OriginComponent[CORE_COMPONENT]) { | ||
parents.push(OriginComponent); | ||
} | ||
var Component = createComposeComponent(OriginComponent, context, [childrenEnhancement(context, parents), // root должен быть ниже children | ||
rootEnhancement(), uncontrolledPropsEnhancement(), staticChildrenEnhancement(childComponents, createComponent, context, parents), // functionDefaultProps должен быть ниже staticChild | ||
functionDefaultPropsEnhancement(), // inheritedName должен быть ниже staticChild | ||
@@ -285,0 +291,0 @@ inheritedNameEnhancement(), // dataName должен быть ниже staticChild |
{ | ||
"name": "@semcore/core", | ||
"description": "SEMRush Core Component", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "lib/es6/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
279586
3118