@kosdev-code/kos-ui-sdk 2.1.28 → 2.1.30

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/index.js CHANGED
@@ -1900,12 +1900,12 @@ class Ge {
1900
1900
  await this._removeEvictedModels(r), this._logEvictionComplete(r.length), this.increment();
1901
1901
  }
1902
1902
  /**
1903
- * Log capacity exceeded warning (Zone 3)
1903
+ * Log capacity exceeded info (Zone 3)
1904
1904
  * @private
1905
1905
  */
1906
1906
  _logCapacityWarning(e) {
1907
- le.warn(
1908
- `Container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} models using ${this._evictionStrategy} strategy. This may indicate missing cleanup handlers or data inconsistency.`,
1907
+ le.info(
1908
+ `Container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} models using ${this._evictionStrategy} strategy.`,
1909
1909
  { parentId: this._parentId }
1910
1910
  );
1911
1911
  }
@@ -1967,7 +1967,7 @@ class Ge {
1967
1967
  */
1968
1968
  async _removeEvictedModels(e) {
1969
1969
  for (const s of e)
1970
- le.warn(
1970
+ le.info(
1971
1971
  `Evicting model: ${s.id} (type: ${s.constructor.name})`,
1972
1972
  {
1973
1973
  modelId: s.id,
@@ -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[n];
2585
+ const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e.companionParent;
2586
2586
  if (!i) {
2587
2587
  Nn.warn(
2588
- `Companion decorator configured but no parent model found at '${n}'`
2588
+ "Companion decorator configured but no parent model found in initialData.companionParent"
2589
2589
  );
2590
2590
  return;
2591
2591
  }
2592
- if (t.getCompanionParent = () => i, r === "composition")
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), yh(a, r), Md(a), hh(a, s), bh(a);
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) {
@@ -4245,7 +4250,11 @@ async function Vs(t, e, s, r, n) {
4245
4250
  const o = r != null && r.path ? Object.keys(r.path).reduce(
4246
4251
  (h, f) => String(h).replace(`{${f}}`, r == null ? void 0 : r.path[f]),
4247
4252
  String(t)
4248
- ) : String(t), i = r != null && r.query ? Object.keys(r.query).map((h) => `${h}=${r.query[h]}`).join("&") : "", a = `${gf().URL}${o}${i ? `?${encodeURIComponent(i)}` : ""}`;
4253
+ ) : String(t), i = r != null && r.query ? Object.keys(r.query).map(
4254
+ (h) => `${encodeURIComponent(h)}=${encodeURIComponent(
4255
+ r.query[h]
4256
+ )}`
4257
+ ).join("&") : "", a = `${gf().URL}${o}${i ? `?${i}` : ""}`;
4249
4258
  mf.debug(`fullUrl: ${a}`);
4250
4259
  const c = {
4251
4260
  method: String(e).toUpperCase(),