@coorpacademy/app-review 0.8.7-alpha.3 → 0.8.7
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/types/common.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare type ViewName = 'skills' | 'onboarding' | 'slides' | 'loader';
|
|
2
|
+
export interface Translate {
|
|
3
|
+
(key: string, data?: Record<string, string>): string;
|
|
4
|
+
}
|
|
2
5
|
export declare type ChoiceFromAPI = {
|
|
3
6
|
_id: string;
|
|
4
7
|
id?: string;
|
|
@@ -146,7 +149,7 @@ export declare type Options = {
|
|
|
146
149
|
services: Services;
|
|
147
150
|
};
|
|
148
151
|
export declare type ConnectedOptions = {
|
|
149
|
-
translate:
|
|
152
|
+
translate: Translate;
|
|
150
153
|
onQuitClick: () => void;
|
|
151
154
|
};
|
|
152
155
|
export declare type AppOptions = ConnectedOptions & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dispatch } from 'redux';
|
|
2
2
|
import { AnswerUI } from '../../types/slides';
|
|
3
|
-
import { Question, SlideFromAPI } from '../../types/common';
|
|
3
|
+
import { Question, SlideFromAPI, Translate } from '../../types/common';
|
|
4
4
|
export declare const getQuestionType: (question: Question) => Question['type'];
|
|
5
|
-
export declare const mapApiSlideToUi: (dispatch: Dispatch, translate:
|
|
5
|
+
export declare const mapApiSlideToUi: (dispatch: Dispatch, translate: Translate) => (slide: SlideFromAPI, answers: string[]) => {
|
|
6
6
|
questionText: string;
|
|
7
7
|
answerUI: AnswerUI;
|
|
8
8
|
};
|
package/lib/types/common.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare type ViewName = 'skills' | 'onboarding' | 'slides' | 'loader';
|
|
2
|
+
export interface Translate {
|
|
3
|
+
(key: string, data?: Record<string, string>): string;
|
|
4
|
+
}
|
|
2
5
|
export declare type ChoiceFromAPI = {
|
|
3
6
|
_id: string;
|
|
4
7
|
id?: string;
|
|
@@ -146,7 +149,7 @@ export declare type Options = {
|
|
|
146
149
|
services: Services;
|
|
147
150
|
};
|
|
148
151
|
export declare type ConnectedOptions = {
|
|
149
|
-
translate:
|
|
152
|
+
translate: Translate;
|
|
150
153
|
onQuitClick: () => void;
|
|
151
154
|
};
|
|
152
155
|
export declare type AppOptions = ConnectedOptions & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dispatch } from 'redux';
|
|
2
2
|
import { AnswerUI } from '../../types/slides';
|
|
3
|
-
import { Question, SlideFromAPI } from '../../types/common';
|
|
3
|
+
import { Question, SlideFromAPI, Translate } from '../../types/common';
|
|
4
4
|
export declare const getQuestionType: (question: Question) => Question['type'];
|
|
5
|
-
export declare const mapApiSlideToUi: (dispatch: Dispatch, translate:
|
|
5
|
+
export declare const mapApiSlideToUi: (dispatch: Dispatch, translate: Translate) => (slide: SlideFromAPI, answers: string[]) => {
|
|
6
6
|
questionText: string;
|
|
7
7
|
answerUI: AnswerUI;
|
|
8
8
|
};
|
package/locales/en/review.json
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Quit Description Text": "You’re right on track! If you quit now, you’ll lose your progress.",
|
|
17
17
|
"Stop learning": "End session",
|
|
18
18
|
"Continue learning": "Continue learning",
|
|
19
|
+
"Continue": "Continue",
|
|
20
|
+
"Type here": "Type here",
|
|
21
|
+
"Select an answer": "Select an answer",
|
|
19
22
|
"presentation": {
|
|
20
23
|
"aria_label": "Review Presentation Container",
|
|
21
24
|
"title": "What is<br/>Revision Mode ?",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.8.7
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"main": "lib/index.js",
|
|
36
36
|
"module": "es/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@coorpacademy/components": "10.28.
|
|
38
|
+
"@coorpacademy/components": "10.28.6",
|
|
39
39
|
"@coorpacademy/redux-task": "1.1.6",
|
|
40
|
-
"@coorpacademy/translate": "6.1.5",
|
|
40
|
+
"@coorpacademy/translate": "^6.1.5",
|
|
41
41
|
"cross-fetch": "^3.1.5",
|
|
42
42
|
"jwt-decode": "^3.1.2",
|
|
43
43
|
"react-redux": "^7.2.9",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"webpack-cli": "^4.10.0",
|
|
72
72
|
"webpack-dev-server": "^4.11.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "702f62dcce3302ab5ea30e6b378bb15004417d0a"
|
|
75
75
|
}
|