@coorpacademy/app-review 0.13.6 → 0.13.7-alpha.10
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/es/views/slides/index.js
CHANGED
|
@@ -17,8 +17,8 @@ const ICON_VALUES = {
|
|
|
17
17
|
wrong: 'wrong',
|
|
18
18
|
'no-answer': 'no-answer'
|
|
19
19
|
};
|
|
20
|
-
const
|
|
21
|
-
'aria-label': '
|
|
20
|
+
const buildConfettiAnimation = (translate) => ({
|
|
21
|
+
'aria-label': translate('Congratulations confetti animation'),
|
|
22
22
|
'data-name': 'default-lottie',
|
|
23
23
|
className: undefined,
|
|
24
24
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
@@ -28,7 +28,7 @@ const confettiAnimation = {
|
|
|
28
28
|
hideOnTransparent: false
|
|
29
29
|
},
|
|
30
30
|
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg'
|
|
31
|
-
};
|
|
31
|
+
});
|
|
32
32
|
export const initialState = {
|
|
33
33
|
'0': {
|
|
34
34
|
position: 0,
|
|
@@ -236,7 +236,7 @@ const buildRankCard = (rank, translate) => {
|
|
|
236
236
|
'aria-label': 'Review Card Congrats Container',
|
|
237
237
|
'data-name': 'card-rank',
|
|
238
238
|
animationLottie: {
|
|
239
|
-
'aria-label': '
|
|
239
|
+
'aria-label': translate('New rank animation'),
|
|
240
240
|
'data-name': 'default-lottie',
|
|
241
241
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
242
242
|
loop: true,
|
|
@@ -262,7 +262,7 @@ const buildCongratsProps = (state, dispatch, options) => {
|
|
|
262
262
|
'aria-label': 'Review Card Congrats Container',
|
|
263
263
|
'data-name': 'card-star',
|
|
264
264
|
animationLottie: {
|
|
265
|
-
'aria-label': '
|
|
265
|
+
'aria-label': translate('Acquired stars animation'),
|
|
266
266
|
'data-name': 'default-lottie',
|
|
267
267
|
className: undefined,
|
|
268
268
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
@@ -303,7 +303,7 @@ const buildCongratsProps = (state, dispatch, options) => {
|
|
|
303
303
|
return {
|
|
304
304
|
'aria-label': 'Review Congratulations',
|
|
305
305
|
'data-name': 'review-congrats',
|
|
306
|
-
animationLottie:
|
|
306
|
+
animationLottie: buildConfettiAnimation(translate),
|
|
307
307
|
title: translate('Congratulations!'),
|
|
308
308
|
cardCongratsStar,
|
|
309
309
|
cardCongratsRank,
|
|
@@ -23,8 +23,8 @@ const ICON_VALUES = {
|
|
|
23
23
|
wrong: 'wrong',
|
|
24
24
|
'no-answer': 'no-answer'
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
'aria-label': '
|
|
26
|
+
const buildConfettiAnimation = (translate) => ({
|
|
27
|
+
'aria-label': translate('Congratulations confetti animation'),
|
|
28
28
|
'data-name': 'default-lottie',
|
|
29
29
|
className: undefined,
|
|
30
30
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
@@ -34,7 +34,7 @@ const confettiAnimation = {
|
|
|
34
34
|
hideOnTransparent: false
|
|
35
35
|
},
|
|
36
36
|
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg'
|
|
37
|
-
};
|
|
37
|
+
});
|
|
38
38
|
exports.initialState = {
|
|
39
39
|
'0': {
|
|
40
40
|
position: 0,
|
|
@@ -243,7 +243,7 @@ const buildRankCard = (rank, translate) => {
|
|
|
243
243
|
'aria-label': 'Review Card Congrats Container',
|
|
244
244
|
'data-name': 'card-rank',
|
|
245
245
|
animationLottie: {
|
|
246
|
-
'aria-label': '
|
|
246
|
+
'aria-label': translate('New rank animation'),
|
|
247
247
|
'data-name': 'default-lottie',
|
|
248
248
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
249
249
|
loop: true,
|
|
@@ -269,7 +269,7 @@ const buildCongratsProps = (state, dispatch, options) => {
|
|
|
269
269
|
'aria-label': 'Review Card Congrats Container',
|
|
270
270
|
'data-name': 'card-star',
|
|
271
271
|
animationLottie: {
|
|
272
|
-
'aria-label': '
|
|
272
|
+
'aria-label': translate('Acquired stars animation'),
|
|
273
273
|
'data-name': 'default-lottie',
|
|
274
274
|
className: undefined,
|
|
275
275
|
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
@@ -310,7 +310,7 @@ const buildCongratsProps = (state, dispatch, options) => {
|
|
|
310
310
|
return {
|
|
311
311
|
'aria-label': 'Review Congratulations',
|
|
312
312
|
'data-name': 'review-congrats',
|
|
313
|
-
animationLottie:
|
|
313
|
+
animationLottie: buildConfettiAnimation(translate),
|
|
314
314
|
title: translate('Congratulations!'),
|
|
315
315
|
cardCongratsStar,
|
|
316
316
|
cardCongratsRank,
|
package/locales/en/review.json
CHANGED
|
@@ -53,5 +53,8 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "You have no skill to revise yet",
|
|
55
55
|
"text": "First you need to complete courses before you can review different skills."
|
|
56
|
-
}
|
|
56
|
+
},
|
|
57
|
+
"Acquired stars animation": "Acquired stars animation",
|
|
58
|
+
"New rank animation": "New rank animation",
|
|
59
|
+
"Congratulations confetti animation": "Congratulations confetti animation"
|
|
57
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.7-alpha.10+3bad219c7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"main": "lib/index.js",
|
|
36
36
|
"module": "es/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@coorpacademy/components": "11.2.10",
|
|
38
|
+
"@coorpacademy/components": "11.2.11-alpha.10+3bad219c7",
|
|
39
39
|
"@coorpacademy/progression-engine": "11.5.3",
|
|
40
40
|
"@coorpacademy/redux-task": "1.1.6",
|
|
41
41
|
"@coorpacademy/review-services": "1.1.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"webpack-cli": "^4.10.0",
|
|
75
75
|
"webpack-dev-server": "^4.11.1"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "3bad219c7a9f09573aa4dc0b84e492910954a647"
|
|
78
78
|
}
|