@mundogamernetwork/shared-ui 1.13.0 → 1.13.2

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.
@@ -72,8 +72,12 @@ onMounted(async () => {
72
72
  try {
73
73
  const response = await fetchGamificationSummary();
74
74
  summary.value = response?.data?.data ?? response?.data ?? null;
75
- } catch {
76
- // Never let a gamification hiccup break the header it sits in.
75
+ } catch (error) {
76
+ // Never let a gamification hiccup break the header it sits in — but say
77
+ // so. Swallowing this silently made a deployed bar that renders nothing
78
+ // indistinguishable from a bar that was never deployed, and cost hours
79
+ // of bundle forensics to tell apart.
80
+ console.warn("[MgXpLevelBar] gamification dashboard unavailable", error);
77
81
  summary.value = null;
78
82
  } finally {
79
83
  loaded.value = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -12,6 +12,8 @@ export interface XpLevel {
12
12
  next_level_xp: number;
13
13
  progress_percent: number;
14
14
  title: string | null;
15
+ /** Store discount this level grants; absent on older api-main snapshots. */
16
+ reward_discount_pct?: number;
15
17
  }
16
18
 
17
19
  export interface GamificationSummary {