@bloomreach/react-sdk
Advanced tools
Comparing version 15.1.1 to 15.1.2
@@ -45,6 +45,7 @@ import React, { useRef, useEffect } from "react"; | ||
const mapping = this.getMapping(); | ||
if (!mapping) { | ||
return this.props.children; | ||
} | ||
return React.createElement(mapping, this.props); | ||
const meta = this.props.component.getMeta(); | ||
const children = mapping ? React.createElement(mapping, this.props) : this.props.children; | ||
return React.createElement(BrMeta, { | ||
meta | ||
}, children); | ||
} | ||
@@ -181,3 +182,5 @@ } | ||
if (React.Children.count(children)) { | ||
return children; | ||
return React.createElement(BrMeta, { | ||
meta: component.getMeta() | ||
}, children); | ||
} | ||
@@ -209,5 +212,3 @@ const childrenList = component.getChildren().map(((child, index) => React.createElement(BrNode, { | ||
value: component | ||
}, React.createElement(BrMeta, { | ||
meta: component.getMeta() | ||
}, this.renderNode())); | ||
}, this.renderNode()); | ||
} | ||
@@ -214,0 +215,0 @@ } |
@@ -48,6 +48,7 @@ (function(global, factory) { | ||
const mapping = this.getMapping(); | ||
if (!mapping) { | ||
return this.props.children; | ||
} | ||
return React__default["default"].createElement(mapping, this.props); | ||
const meta = this.props.component.getMeta(); | ||
const children = mapping ? React__default["default"].createElement(mapping, this.props) : this.props.children; | ||
return React__default["default"].createElement(BrMeta, { | ||
meta | ||
}, children); | ||
} | ||
@@ -170,3 +171,5 @@ } | ||
if (React__default["default"].Children.count(children)) { | ||
return children; | ||
return React__default["default"].createElement(BrMeta, { | ||
meta: component.getMeta() | ||
}, children); | ||
} | ||
@@ -198,5 +201,3 @@ const childrenList = component.getChildren().map(((child, index) => React__default["default"].createElement(BrNode, { | ||
value: component | ||
}, React__default["default"].createElement(BrMeta, { | ||
meta: component.getMeta() | ||
}, this.renderNode())); | ||
}, this.renderNode()); | ||
} | ||
@@ -203,0 +204,0 @@ } |
{ | ||
"name": "@bloomreach/react-sdk", | ||
"version": "15.1.1", | ||
"version": "15.1.2", | ||
"description": "Bloomreach SPA SDK for React", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@bloomreach/spa-sdk": "15.1.1" | ||
"@bloomreach/spa-sdk": "15.1.2" | ||
}, | ||
@@ -45,0 +45,0 @@ "peerDependencies": { |
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
66222
1094
+ Added@bloomreach/spa-sdk@15.1.2(transitive)
- Removed@bloomreach/spa-sdk@15.1.1(transitive)
Updated@bloomreach/spa-sdk@15.1.2