@meonode/ui 0.1.45 → 0.1.47

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/core.node.js CHANGED
@@ -36,8 +36,8 @@ if(!b||0===Object.keys(a).length)return a;// Merge parent theme with current the
36
36
  var d=_objectSpread(_objectSpread({},null===(c=this.rawProps)||void 0===c?void 0:c.nodetheme),b),e=function resolveRecursively(a,b){// Prevent processing same object multiple times
37
37
  if(b.has(a))return a;// Track this object to detect circular references
38
38
  b.add(a);var c={};for(var f in a)// Skip non-own properties
39
- if(Object.prototype.hasOwnProperty.call(a,f)){var g=a[f];// Skip private props (starting with _) and React `ref` property
40
- if(f.startsWith("_")||"ref"===f){c[f]=g;continue}// Resolve theme variables in string values
39
+ if(Object.prototype.hasOwnProperty.call(a,f)){var g=a[f];// Skip private props (starting with _), React ref and HTMLElement instances
40
+ if(f.startsWith("_")||"ref"===f||g instanceof HTMLElement){c[f]=g;continue}// Resolve theme variables in string values
41
41
  if("string"==typeof g&&g.includes("theme.")){var h=g;h=h.replace(/theme\.([a-zA-Z0-9_.-]+)/g,function(a,b){var c=getValueByPath(d,b);// Only convert string/number theme values
42
42
  return void 0!==c&&null!==c&&"object"!==_typeof(c)?c:a;// Keep original if no valid theme value found
43
43
  }),c[f]=h}// Recursively process nested objects
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "A structured approach to component composition with built-in theming, prop separation, and dynamic children handling.",
4
- "version": "0.1.45",
4
+ "version": "0.1.47",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",