@kosdev-code/kos-ui-sdk 0.1.0-dev.5189 → 0.1.0-dev.5190
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/core/core/decorators/kosModel.d.ts.map +1 -1
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.js +9 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -2582,14 +2582,19 @@ function yh(t, e) {
|
|
|
2582
2582
|
const s = t.constructor.prototype[ht];
|
|
2583
2583
|
if (!s)
|
|
2584
2584
|
return;
|
|
2585
|
-
const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e
|
|
2585
|
+
const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e.companionParent;
|
|
2586
2586
|
if (!i) {
|
|
2587
2587
|
Nn.warn(
|
|
2588
|
-
|
|
2588
|
+
"Companion decorator configured but no parent model found in initialData.companionParent"
|
|
2589
2589
|
);
|
|
2590
2590
|
return;
|
|
2591
2591
|
}
|
|
2592
|
-
if (t.getCompanionParent = () => i,
|
|
2592
|
+
if (t.getCompanionParent = () => i, Object.defineProperty(t, n, {
|
|
2593
|
+
get: () => i,
|
|
2594
|
+
enumerable: !0,
|
|
2595
|
+
configurable: !0
|
|
2596
|
+
// Allow MobX to make this observable if needed
|
|
2597
|
+
}), r === "composition")
|
|
2593
2598
|
return;
|
|
2594
2599
|
const a = [
|
|
2595
2600
|
"init",
|
|
@@ -2665,7 +2670,7 @@ const vh = {
|
|
|
2665
2670
|
logger: i,
|
|
2666
2671
|
kosContext: n
|
|
2667
2672
|
});
|
|
2668
|
-
return dh(a), fh(a), ph(a), gh(a), mh(a, s),
|
|
2673
|
+
return yh(a, r), dh(a), fh(a), ph(a), gh(a), mh(a, s), Md(a), hh(a, s), bh(a);
|
|
2669
2674
|
}
|
|
2670
2675
|
};
|
|
2671
2676
|
function R(t) {
|