@coorpacademy/app-review 0.13.9-alpha.36 → 0.14.0

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.
@@ -74,6 +74,5 @@ export declare type Template = {
74
74
  export declare type AnswerUI = {
75
75
  model: QcmDrag | Qcm | QcmGraphic | FreeText | DropDown | QuestionRange | Template;
76
76
  help: string;
77
- media?: unknown;
78
77
  };
79
78
  export declare type SlideUIAnimations = 'unstack' | 'restack';
@@ -163,30 +163,13 @@ const getAnswerUIModel = (question, answers, dispatch, translate) => {
163
163
  throw new Error(`${type} is not an handled question.type`);
164
164
  }
165
165
  };
166
- const getMedia = (media) => {
167
- if (!media)
168
- return;
169
- const { type } = media;
170
- const resource = get('src.0', media);
171
- switch (type) {
172
- case 'img':
173
- case 'audio':
174
- return {
175
- ...resource,
176
- type,
177
- url: get('url', resource)
178
- };
179
- }
180
- };
181
166
  export const mapApiSlideToUi = (dispatch, translate) => (slide, answers) => {
182
167
  const questionText = getOr('', 'question.header', slide);
183
- const media = get('question.medias.0', slide);
184
168
  return {
185
169
  questionText,
186
170
  answerUI: {
187
171
  model: getAnswerUIModel(slide.question, answers, dispatch, translate),
188
- help: getHelp(slide),
189
- media: getMedia(media)
172
+ help: getHelp(slide)
190
173
  }
191
174
  };
192
175
  };
@@ -74,6 +74,5 @@ export declare type Template = {
74
74
  export declare type AnswerUI = {
75
75
  model: QcmDrag | Qcm | QcmGraphic | FreeText | DropDown | QuestionRange | Template;
76
76
  help: string;
77
- media?: unknown;
78
77
  };
79
78
  export declare type SlideUIAnimations = 'unstack' | 'restack';
@@ -167,30 +167,13 @@ const getAnswerUIModel = (question, answers, dispatch, translate) => {
167
167
  throw new Error(`${type} is not an handled question.type`);
168
168
  }
169
169
  };
170
- const getMedia = (media) => {
171
- if (!media)
172
- return;
173
- const { type } = media;
174
- const resource = (0, fp_1.get)('src.0', media);
175
- switch (type) {
176
- case 'img':
177
- case 'audio':
178
- return {
179
- ...resource,
180
- type,
181
- url: (0, fp_1.get)('url', resource)
182
- };
183
- }
184
- };
185
170
  const mapApiSlideToUi = (dispatch, translate) => (slide, answers) => {
186
171
  const questionText = (0, fp_1.getOr)('', 'question.header', slide);
187
- const media = (0, fp_1.get)('question.medias.0', slide);
188
172
  return {
189
173
  questionText,
190
174
  answerUI: {
191
175
  model: getAnswerUIModel(slide.question, answers, dispatch, translate),
192
- help: getHelp(slide),
193
- media: getMedia(media)
176
+ help: getHelp(slide)
194
177
  }
195
178
  };
196
179
  };
@@ -0,0 +1 @@
1
+ {"ignore_dirs":[]}
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Još nemate vještinu za reviziju",
55
55
  "text": "Prvo morate završiti kurseve prije nego što možete provjeriti različite vještine."
56
- },
57
- "Acquired stars animation": "Animacija stečenih zvijezda",
58
- "New rank animation": "Nova animacija ranga",
59
- "Congratulations confetti animation": "Čestitamo konfeti animacija"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Dosud nemáte k revizi žádnou dovednost",
55
55
  "text": "Nejprve musíte dokončit kursy a teprve poté si zobrazíte různé dovednosti."
56
- },
57
- "Acquired stars animation": "Animace získaných hvězd",
58
- "New rank animation": "Nová animace hodnosti",
59
- "Congratulations confetti animation": "Gratulujeme animace konfet"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Teil pole veel ülevaatamiseks oskusi",
55
55
  "text": "Enne erinevate oskuste ülevaatamist peate esmalt läbima kursused."
56
- },
57
- "Acquired stars animation": "Omandatud tähtede animatsioon",
58
- "New rank animation": "Uus järgu animatsioon",
59
- "Congratulations confetti animation": "Õnnitleme konfeti animatsiooni"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Još nemate vještinu za reviziju",
55
55
  "text": "Prvo morate završiti tečajeve prije nego što možete pregledati različite vještine."
56
- },
57
- "Acquired stars animation": "Dobivena animacija zvijezda",
58
- "New rank animation": "Nova animacija ranga",
59
- "Congratulations confetti animation": "Čestitke, animacija s konfetima"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Դեռևս վերանայելու հմտություն չունեք",
55
55
  "text": "Սկզբում դուք պետք է ավարտեք դասընթացները, որպեսզի կարողանաք վերանայել տարբեր հմտություններ:"
56
- },
57
- "Acquired stars animation": "Ձեռք բերված աստղերի անիմացիա",
58
- "New rank animation": "Նոր աստիճանի անիմացիա",
59
- "Congratulations confetti animation": "Շնորհավոր կոնֆետի անիմացիա"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "Je hebt nog geen vaardigheden om aan te passen",
55
55
  "text": "Je moet eerst cursussen afronden voor je verschillende vaardigheden kunt beoordelen."
56
- },
57
- "Acquired stars animation": "Verworven sterren animatie",
58
- "New rank animation": "Nieuwe rang animatie",
59
- "Congratulations confetti animation": "Gefeliciteerd confetti-animatie"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "您还没有需要修改的技能",
55
55
  "text": "您需要先完成课程,才能复习不同的技能。"
56
- },
57
- "Acquired stars animation": "后天星星动画",
58
- "New rank animation": "新等级动画",
59
- "Congratulations confetti animation": "祝贺五彩纸屑动画"
56
+ }
60
57
  }
@@ -53,8 +53,5 @@
53
53
  "no_skills": {
54
54
  "title": "您還沒有能溫習的技能",
55
55
  "text": "首先您必須完成課程,才能複習不同的技能。"
56
- },
57
- "Acquired stars animation": "後天星星動畫",
58
- "New rank animation": "新等級動畫",
59
- "Congratulations confetti animation": "祝賀五彩紙屑動畫"
56
+ }
60
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.13.9-alpha.36+a659d96ec",
3
+ "version": "0.14.0",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -35,11 +35,11 @@
35
35
  "main": "lib/index.js",
36
36
  "module": "es/index.js",
37
37
  "dependencies": {
38
- "@coorpacademy/components": "11.2.13-alpha.36+a659d96ec",
38
+ "@coorpacademy/components": "11.3.0",
39
39
  "@coorpacademy/progression-engine": "11.5.3",
40
40
  "@coorpacademy/redux-task": "1.1.6",
41
- "@coorpacademy/review-services": "1.2.0",
42
- "@coorpacademy/review-services-mocks": "1.2.0",
41
+ "@coorpacademy/review-services": "1.1.0",
42
+ "@coorpacademy/review-services-mocks": "1.1.1",
43
43
  "@coorpacademy/translate": "6.2.0",
44
44
  "cross-fetch": "^3.1.5",
45
45
  "jwt-decode": "^3.1.2",
@@ -74,5 +74,5 @@
74
74
  "webpack-cli": "^4.10.0",
75
75
  "webpack-dev-server": "^4.11.1"
76
76
  },
77
- "gitHead": "a659d96ec19932cd5985e9b7c9ba98c53e602de9"
77
+ "gitHead": "19ad2bc9fd3531d637fe0aede0727cc87ab049be"
78
78
  }