@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.
- package/dist/browser/index.iife.js +13 -1
- package/dist/browser/index.iife.js.map +2 -2
- package/dist/browser/index.mjs +13 -1
- package/dist/browser/index.mjs.map +2 -2
- package/dist/node/index.cjs +13 -1
- package/dist/node/index.cjs.map +2 -2
- package/dist/node/index.mjs +13 -1
- package/dist/node/index.mjs.map +2 -2
- package/dist/types/shared/dom/osc.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2464,7 +2464,19 @@ var kithinjiorca = (() => {
|
|
|
2464
2464
|
delete cleanProps.__clientComponent;
|
|
2465
2465
|
const instance = injector.resolve(ComponentClass);
|
|
2466
2466
|
instance.__injector = injector;
|
|
2467
|
-
|
|
2467
|
+
const mergedProps = Object.create(
|
|
2468
|
+
Object.getPrototypeOf(instance.props || {})
|
|
2469
|
+
);
|
|
2470
|
+
Object.defineProperties(
|
|
2471
|
+
mergedProps,
|
|
2472
|
+
Object.getOwnPropertyDescriptors(instance.props || {})
|
|
2473
|
+
);
|
|
2474
|
+
Object.defineProperties(
|
|
2475
|
+
mergedProps,
|
|
2476
|
+
Object.getOwnPropertyDescriptors(cleanProps || {})
|
|
2477
|
+
);
|
|
2478
|
+
instance.props = mergedProps;
|
|
2479
|
+
instance.onInit?.();
|
|
2468
2480
|
if (typeof instance.build !== "function") {
|
|
2469
2481
|
throw new Error(`Component ${name} does not implement build()`);
|
|
2470
2482
|
}
|