@streamlayer/feature-gamification 1.22.2 → 1.22.6
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/lib/gamification.js +2 -3
- package/package.json +9 -9
package/lib/gamification.js
CHANGED
|
@@ -233,7 +233,7 @@ export class Gamification extends AbstractFeature {
|
|
|
233
233
|
type: NotificationType.QUESTION_RESOLVED,
|
|
234
234
|
action: () => this.openQuestion(question.id, feedItem),
|
|
235
235
|
close: () => this.closeQuestion(id),
|
|
236
|
-
autoHideDuration: votedCorrect ? 15000 :
|
|
236
|
+
autoHideDuration: votedCorrect ? 15000 : 14000,
|
|
237
237
|
id: notificationId,
|
|
238
238
|
emitEvent: false,
|
|
239
239
|
data: {
|
|
@@ -249,7 +249,7 @@ export class Gamification extends AbstractFeature {
|
|
|
249
249
|
},
|
|
250
250
|
correctAnswerTitle: correctAnswer?.text,
|
|
251
251
|
correct: !!votedCorrect,
|
|
252
|
-
predictionResult:
|
|
252
|
+
predictionResult: true,
|
|
253
253
|
questionTitle: question?.subject,
|
|
254
254
|
},
|
|
255
255
|
inApp: {
|
|
@@ -484,7 +484,6 @@ export class Gamification extends AbstractFeature {
|
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
openQuestion = (questionId, question) => {
|
|
487
|
-
console.log('openQuestion', questionId, question);
|
|
488
487
|
if (!questionId) {
|
|
489
488
|
return () => { };
|
|
490
489
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/feature-gamification",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@bufbuild/protobuf": "^2.2.2",
|
|
6
6
|
"@fastify/deepmerge": "^2.0.0",
|
|
7
|
-
"@streamlayer/sl-eslib": "^5.
|
|
7
|
+
"@streamlayer/sl-eslib": "^5.219.0",
|
|
8
8
|
"uuid": "^11.1.0",
|
|
9
9
|
"nanostores": "^0.11.4",
|
|
10
|
-
"@streamlayer/sdk-web-api": "^1.13.
|
|
11
|
-
"@streamlayer/sdk-web-core": "^1.16.
|
|
12
|
-
"@streamlayer/sdk-web-interfaces": "^1.7.
|
|
13
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
14
|
-
"@streamlayer/sdk-web-notifications": "^1.3.
|
|
15
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
16
|
-
"@streamlayer/sdk-web-types": "^1.15.
|
|
10
|
+
"@streamlayer/sdk-web-api": "^1.13.6",
|
|
11
|
+
"@streamlayer/sdk-web-core": "^1.16.6",
|
|
12
|
+
"@streamlayer/sdk-web-interfaces": "^1.7.14",
|
|
13
|
+
"@streamlayer/sdk-web-logger": "^1.0.81",
|
|
14
|
+
"@streamlayer/sdk-web-notifications": "^1.3.43",
|
|
15
|
+
"@streamlayer/sdk-web-storage": "^1.0.81",
|
|
16
|
+
"@streamlayer/sdk-web-types": "^1.15.6"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tslib": "^2.7.0"
|