@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 +15 -1
- package/dist/QwikCardApp.d.ts.map +1 -1
- package/dist/QwikCardApp.js +26 -24
- package/dist/web/widgetAssets.d.ts +2 -2
- package/dist/web/widgetAssets.d.ts.map +1 -1
- package/dist/web/widgetAssets.js +2 -2
- package/dist/web/widgetHtml.d.ts.map +1 -1
- package/dist/web/widgetHtml.js +2 -0
- package/dist/web/widgetTypes.d.ts +11 -9
- package/dist/web/widgetTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/QwikCardApp.tsx +27 -26
- package/src/web/widgetAssets.ts +2 -2
- package/src/web/widgetHtml.ts +2 -0
- package/src/web/widgetTypes.ts +11 -9
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.
|
|
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;
|
|
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"}
|
package/dist/QwikCardApp.js
CHANGED
|
@@ -73,32 +73,34 @@ function AppContent({ leaderboardId }) {
|
|
|
73
73
|
earnedDelta: 0,
|
|
74
74
|
qwikCoins,
|
|
75
75
|
},
|
|
76
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
target
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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,
|