@cloudparse/up-miniapps-sdk 0.7.0 → 0.7.3
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/README.md +3 -3
- package/dist/index.browser.min.js +2 -2
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +30 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +30 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -139,33 +139,33 @@ function isRunningInsideNativeShell() {
|
|
|
139
139
|
var BridgeTimeoutError = class extends Error {
|
|
140
140
|
};
|
|
141
141
|
var MOCK_ACHIEVEMENTS = [
|
|
142
|
-
{
|
|
143
|
-
completed: false,
|
|
144
|
-
description: "Discover 5 points of interest around Annecy.",
|
|
145
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=explore",
|
|
146
|
-
playerActionCount: 3,
|
|
147
|
-
slug: "explore-5-pois",
|
|
148
|
-
title: "Explorer",
|
|
149
|
-
totalActionCount: 5,
|
|
150
|
-
upReward: 50,
|
|
151
|
-
xpReward: 100
|
|
152
|
-
},
|
|
153
142
|
{
|
|
154
143
|
completed: true,
|
|
155
144
|
description: "Complete your first navigation journey.",
|
|
156
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=journey",
|
|
157
145
|
playerActionCount: 1,
|
|
146
|
+
priority: 1,
|
|
158
147
|
slug: "first-journey",
|
|
159
148
|
title: "First Steps",
|
|
160
149
|
totalActionCount: 1,
|
|
161
150
|
upReward: 20,
|
|
162
151
|
xpReward: 40
|
|
163
152
|
},
|
|
153
|
+
{
|
|
154
|
+
completed: false,
|
|
155
|
+
description: "Discover 5 points of interest around Annecy.",
|
|
156
|
+
playerActionCount: 3,
|
|
157
|
+
priority: 2,
|
|
158
|
+
slug: "explore-5-pois",
|
|
159
|
+
title: "Explorer",
|
|
160
|
+
totalActionCount: 5,
|
|
161
|
+
upReward: 50,
|
|
162
|
+
xpReward: 100
|
|
163
|
+
},
|
|
164
164
|
{
|
|
165
165
|
completed: false,
|
|
166
166
|
description: "Scan 10 QR codes at partner venues.",
|
|
167
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=scan",
|
|
168
167
|
playerActionCount: 4,
|
|
168
|
+
priority: 3,
|
|
169
169
|
slug: "scan-10-qrcodes",
|
|
170
170
|
title: "Code Breaker",
|
|
171
171
|
totalActionCount: 10,
|
|
@@ -180,6 +180,7 @@ function mockAchievement(slug) {
|
|
|
180
180
|
completed: false,
|
|
181
181
|
description: "Mocked achievement (no native shell attached).",
|
|
182
182
|
playerActionCount: 0,
|
|
183
|
+
priority: 1,
|
|
183
184
|
slug: slug || "unknown-achievement",
|
|
184
185
|
title: slug || "Unknown Achievement",
|
|
185
186
|
totalActionCount: 1,
|
|
@@ -3630,7 +3631,7 @@ var RoutingService = {
|
|
|
3630
3631
|
};
|
|
3631
3632
|
|
|
3632
3633
|
// package.json
|
|
3633
|
-
var version = "0.7.
|
|
3634
|
+
var version = "0.7.3";
|
|
3634
3635
|
|
|
3635
3636
|
// src/sdk.ts
|
|
3636
3637
|
function deepFreeze(obj) {
|
|
@@ -3865,7 +3866,7 @@ var MiniAppSDK = class {
|
|
|
3865
3866
|
}
|
|
3866
3867
|
});
|
|
3867
3868
|
/**
|
|
3868
|
-
* Fidelity &
|
|
3869
|
+
* Fidelity & Points program integration.
|
|
3869
3870
|
*/
|
|
3870
3871
|
fidelity = Object.freeze({
|
|
3871
3872
|
/** Returns current fidelity balance. */
|
|
@@ -4059,33 +4060,33 @@ var sdk = deepFreeze(new MiniAppSDK());
|
|
|
4059
4060
|
var import_react16 = require("react");
|
|
4060
4061
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
4061
4062
|
var MOCK_ACHIEVEMENTS2 = [
|
|
4062
|
-
{
|
|
4063
|
-
completed: false,
|
|
4064
|
-
description: "Discover 5 points of interest around Annecy.",
|
|
4065
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=explore",
|
|
4066
|
-
playerActionCount: 3,
|
|
4067
|
-
slug: "explore-5-pois",
|
|
4068
|
-
title: "Explorer",
|
|
4069
|
-
totalActionCount: 5,
|
|
4070
|
-
upReward: 50,
|
|
4071
|
-
xpReward: 100
|
|
4072
|
-
},
|
|
4073
4063
|
{
|
|
4074
4064
|
completed: true,
|
|
4075
4065
|
description: "Complete your first navigation journey.",
|
|
4076
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=journey",
|
|
4077
4066
|
playerActionCount: 1,
|
|
4067
|
+
priority: 1,
|
|
4078
4068
|
slug: "first-journey",
|
|
4079
4069
|
title: "First Steps",
|
|
4080
4070
|
totalActionCount: 1,
|
|
4081
4071
|
upReward: 20,
|
|
4082
4072
|
xpReward: 40
|
|
4083
4073
|
},
|
|
4074
|
+
{
|
|
4075
|
+
completed: false,
|
|
4076
|
+
description: "Discover 5 points of interest around Annecy.",
|
|
4077
|
+
playerActionCount: 3,
|
|
4078
|
+
priority: 2,
|
|
4079
|
+
slug: "explore-5-pois",
|
|
4080
|
+
title: "Explorer",
|
|
4081
|
+
totalActionCount: 5,
|
|
4082
|
+
upReward: 50,
|
|
4083
|
+
xpReward: 100
|
|
4084
|
+
},
|
|
4084
4085
|
{
|
|
4085
4086
|
completed: false,
|
|
4086
4087
|
description: "Scan 10 QR codes at partner venues.",
|
|
4087
|
-
imageUrl: "https://api.dicebear.com/9.x/icons/svg?seed=scan",
|
|
4088
4088
|
playerActionCount: 4,
|
|
4089
|
+
priority: 3,
|
|
4089
4090
|
slug: "scan-10-qrcodes",
|
|
4090
4091
|
title: "Code Breaker",
|
|
4091
4092
|
totalActionCount: 10,
|
|
@@ -4459,6 +4460,7 @@ var BridgeMocker = ({
|
|
|
4459
4460
|
completed: false,
|
|
4460
4461
|
description: "Mocked achievement (no native shell attached).",
|
|
4461
4462
|
playerActionCount: 0,
|
|
4463
|
+
priority: 1,
|
|
4462
4464
|
slug: slug || "unknown-achievement",
|
|
4463
4465
|
title: slug || "Unknown Achievement",
|
|
4464
4466
|
totalActionCount: 1,
|