@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.
@@ -2620,12 +2620,12 @@
2620
2620
  var _excluded$7 = ["properties", "slots"];
2621
2621
  function setupUseBrickInTemplate(props, proxyContext) {
2622
2622
  function walk(props) {
2623
- if (!brickUtils.isObject(props)) {
2624
- return props;
2625
- }
2626
2623
  if (Array.isArray(props)) {
2627
2624
  return props.map(walk);
2628
2625
  }
2626
+ if (!brickUtils.isObject(props) || !isPlainObject(props)) {
2627
+ return props;
2628
+ }
2629
2629
  return Object.fromEntries(Object.entries(props).map(_ref => {
2630
2630
  var [key, value] = _ref;
2631
2631
  return brickUtils.isObject(value) && key === "useBrick" ? Array.isArray(value) ? [key, value.map(setup)] : [key, setup(value)] : [key, walk(value)];
@@ -2652,6 +2652,9 @@
2652
2652
  }
2653
2653
  return walk(props);
2654
2654
  }
2655
+ function isPlainObject(object) {
2656
+ return Object.prototype.toString.call(object) === "[object Object]";
2657
+ }
2655
2658
 
2656
2659
  var computeRealValue = (value, context, injectDeep, internalOptions) => {
2657
2660
  var preEvaluated = isPreEvaluated(value);