@playbasis-ai/qwikcard-sdk 2.3.19 → 2.3.22

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/CHANGELOG.md CHANGED
@@ -92,12 +92,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
92
92
 
93
93
  - Accept top-level leaderboard entries in API responses.
94
94
 
95
- ## [2.3.19] - 2026-01-31
95
+ ## [2.3.20] - 2026-01-31
96
96
 
97
97
  ### Fixed
98
98
 
99
99
  - Normalize leaderboard entries across `entries/items/leaderboard` response shapes.
100
100
  - Restore badge detail modal header styling in the embedded widget.
101
+ - Map quest catalog into widget quests so onboarding is never empty.
102
+
103
+ ## [2.3.21] - 2026-01-31
104
+
105
+ ### Changed
106
+
107
+ - Expanded “How to Earn XP” guidance to reflect the full Qwik rulebook and flag planned actions.
108
+
109
+ ## [2.3.22] - 2026-01-31
110
+
111
+ ### Fixed
112
+
113
+ - Lock text autoscaling in the embedded widget to stabilize layout in RN WebView.
114
+ - Normalize badge modal sizing and gradients for RN WebView rendering.
101
115
 
102
116
  ## [2.3.11] - 2026-01-29
103
117
 
@@ -1 +1 @@
1
- {"version":3,"file":"QwikCardApp.d.ts","sourceRoot":"","sources":["../src/QwikCardApp.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqSD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAMlD"}
1
+ {"version":3,"file":"QwikCardApp.d.ts","sourceRoot":"","sources":["../src/QwikCardApp.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAsSD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAMlD"}
@@ -73,32 +73,34 @@ function AppContent({ leaderboardId }) {
73
73
  earnedDelta: 0,
74
74
  qwikCoins,
75
75
  },
76
- goals: (() => {
76
+ quests: (() => {
77
77
  const quests = playerQuests.length > 0 ? playerQuests : questCatalog;
78
78
  const nowIso = new Date().toISOString().slice(0, 10);
79
- return quests.map((q) => ({
80
- goalId: q.id,
81
- type: 'financial',
82
- target: q.target ?? 1,
83
- current: q.progress ?? 0,
84
- progressPct: q.target && q.target > 0
85
- ? Math.round(((q.progress ?? 0) / q.target) * 100)
86
- : 0,
87
- startDate: nowIso,
88
- endDate: q.expiresAt ?? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(),
89
- status: q.status === 'completed'
90
- ? 'completed'
91
- : q.status === 'expired'
92
- ? 'at_risk'
93
- : 'on_track',
94
- rewards: {
95
- xp: q.rewards?.find((r) => r.type === 'points')?.amount || 100,
96
- badges: (q.rewards
97
- ?.filter((r) => r.type === 'badge')
98
- .map((r) => r.badgeId)
99
- .filter(Boolean) || []),
100
- },
101
- }));
79
+ return quests.map((q) => {
80
+ const target = q.target ?? 1;
81
+ const current = q.progress ?? 0;
82
+ const progressPct = target > 0 ? Math.round((current / target) * 100) : 0;
83
+ const status = q.status === 'completed' ? 'completed' : 'available';
84
+ return {
85
+ questId: q.id,
86
+ title: q.name,
87
+ description: q.description,
88
+ type: 'mission',
89
+ target,
90
+ current,
91
+ progressPct,
92
+ startDate: nowIso,
93
+ endDate: q.expiresAt,
94
+ status,
95
+ rewards: {
96
+ xp: q.rewards?.find((r) => r.type === 'points')?.amount || 100,
97
+ badges: (q.rewards
98
+ ?.filter((r) => r.type === 'badge')
99
+ .map((r) => r.badgeId)
100
+ .filter(Boolean) || []),
101
+ },
102
+ };
103
+ });
102
104
  })(),
103
105
  badges: allBadges.map((b) => ({
104
106
  id: b.id,