@kithinji/orca 1.0.5 → 1.0.6

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.
@@ -1987,13 +1987,15 @@ var StreamRenderer = class {
1987
1987
  return this.renderClassComponent(vnode, injector);
1988
1988
  }
1989
1989
  if (isIntrinsicElement(vnode)) {
1990
+ const hasDangerousHTML = vnode.props?.dangerouslySetInnerHTML;
1990
1991
  return {
1991
1992
  $$typeof: ORCA_ELEMENT_TYPE,
1992
1993
  type: vnode.type,
1993
1994
  id: vnode.id,
1994
1995
  props: {
1995
1996
  ...vnode.props,
1996
- children: this.mapChildren(vnode.props?.children, injector)
1997
+ // Only process children if dangerouslySetInnerHTML is not present
1998
+ children: hasDangerousHTML ? void 0 : this.mapChildren(vnode.props?.children, injector)
1997
1999
  },
1998
2000
  key: vnode.key ?? null
1999
2001
  };