@kithinji/orca 1.0.26 → 1.0.27

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.
@@ -14628,7 +14628,19 @@ var OSC = class _OSC {
14628
14628
  delete cleanProps.__clientComponent;
14629
14629
  const instance = injector.resolve(ComponentClass);
14630
14630
  instance.__injector = injector;
14631
- instance.props = cleanProps;
14631
+ const mergedProps = Object.create(
14632
+ Object.getPrototypeOf(instance.props || {})
14633
+ );
14634
+ Object.defineProperties(
14635
+ mergedProps,
14636
+ Object.getOwnPropertyDescriptors(instance.props || {})
14637
+ );
14638
+ Object.defineProperties(
14639
+ mergedProps,
14640
+ Object.getOwnPropertyDescriptors(cleanProps || {})
14641
+ );
14642
+ instance.props = mergedProps;
14643
+ instance.onInit?.();
14632
14644
  if (typeof instance.build !== "function") {
14633
14645
  throw new Error(`Component ${name} does not implement build()`);
14634
14646
  }