@next-core/brick-kit 2.167.0 → 2.167.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2621,12 +2621,12 @@ function setupTemplateProxy(proxyContext, ref, slots) {
2621
2621
  var _excluded$7 = ["properties", "slots"];
2622
2622
  function setupUseBrickInTemplate(props, proxyContext) {
2623
2623
  function walk(props) {
2624
- if (!isObject(props)) {
2625
- return props;
2626
- }
2627
2624
  if (Array.isArray(props)) {
2628
2625
  return props.map(walk);
2629
2626
  }
2627
+ if (!isObject(props) || !isPlainObject(props)) {
2628
+ return props;
2629
+ }
2630
2630
  return Object.fromEntries(Object.entries(props).map(_ref => {
2631
2631
  var [key, value] = _ref;
2632
2632
  return isObject(value) && key === "useBrick" ? Array.isArray(value) ? [key, value.map(setup)] : [key, setup(value)] : [key, walk(value)];
@@ -2653,6 +2653,9 @@ function setupUseBrickInTemplate(props, proxyContext) {
2653
2653
  }
2654
2654
  return walk(props);
2655
2655
  }
2656
+ function isPlainObject(object) {
2657
+ return Object.prototype.toString.call(object) === "[object Object]";
2658
+ }
2656
2659
 
2657
2660
  var computeRealValue = (value, context, injectDeep, internalOptions) => {
2658
2661
  var preEvaluated = isPreEvaluated(value);