@coorpacademy/app-review 0.5.6 → 0.6.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.
Files changed (280) hide show
  1. package/es/sandbox/index.d.ts +9 -0
  2. package/es/sandbox/index.js +41 -0
  3. package/es/{actions → src/actions}/api/fetch-correction.d.ts +2 -2
  4. package/{lib → es/src}/actions/api/fetch-rank.d.ts +3 -3
  5. package/{lib → es/src}/actions/api/fetch-skills.d.ts +2 -2
  6. package/{lib → es/src}/actions/api/fetch-slide.d.ts +2 -2
  7. package/{lib → es/src}/actions/api/post-answer.d.ts +2 -2
  8. package/es/{actions → src/actions}/api/post-progression.d.ts +2 -2
  9. package/es/{actions → src/actions}/test/create-test-store.d.ts +2 -2
  10. package/es/{actions → src/actions}/test/create-test-store.js +2 -2
  11. package/es/src/actions/ui/navigation.d.ts +19 -0
  12. package/es/src/actions/ui/navigation.js +26 -0
  13. package/{lib → es/src}/common/index.d.ts +0 -5
  14. package/es/{common → src/common}/index.js +0 -5
  15. package/es/{configure-store.js → src/configure-store.js} +5 -1
  16. package/{lib → es/src}/index.d.ts +0 -1
  17. package/es/{index.js → src/index.js} +3 -3
  18. package/{lib → es/src}/reducers/index.d.ts +1 -1
  19. package/es/{reducers → src/reducers}/ui/index.d.ts +1 -1
  20. package/{lib → es/src}/reducers/ui/navigation.d.ts +2 -2
  21. package/es/{reducers → src/reducers}/ui/navigation.js +1 -1
  22. package/{lib → es/src}/types/common.d.ts +7 -4
  23. package/{lib → es/src}/views/skills/index.d.ts +1 -3
  24. package/es/{views → src/views}/skills/index.js +0 -2
  25. package/es/src/views/slides/index.d.ts +34 -0
  26. package/es/{views → src/views}/slides/index.js +6 -4
  27. package/lib/sandbox/index.d.ts +9 -0
  28. package/lib/sandbox/index.js +43 -0
  29. package/lib/{actions → src/actions}/api/fetch-correction.d.ts +2 -2
  30. package/{es → lib/src}/actions/api/fetch-rank.d.ts +3 -3
  31. package/{es → lib/src}/actions/api/fetch-skills.d.ts +2 -2
  32. package/{es → lib/src}/actions/api/fetch-slide.d.ts +2 -2
  33. package/{es → lib/src}/actions/api/post-answer.d.ts +2 -2
  34. package/lib/{actions → src/actions}/api/post-progression.d.ts +2 -2
  35. package/lib/{actions → src/actions}/test/create-test-store.d.ts +2 -2
  36. package/lib/{actions → src/actions}/test/create-test-store.js +2 -2
  37. package/lib/src/actions/ui/navigation.d.ts +19 -0
  38. package/lib/src/actions/ui/navigation.js +86 -0
  39. package/{es → lib/src}/common/index.d.ts +0 -5
  40. package/lib/{common → src/common}/index.js +0 -5
  41. package/lib/{configure-store.js → src/configure-store.js} +5 -1
  42. package/{es → lib/src}/index.d.ts +0 -1
  43. package/lib/{index.js → src/index.js} +3 -3
  44. package/{es → lib/src}/reducers/index.d.ts +1 -1
  45. package/lib/{reducers → src/reducers}/ui/index.d.ts +1 -1
  46. package/{es → lib/src}/reducers/ui/navigation.d.ts +2 -2
  47. package/lib/{reducers → src/reducers}/ui/navigation.js +1 -1
  48. package/{es → lib/src}/types/common.d.ts +7 -4
  49. package/{es → lib/src}/views/skills/index.d.ts +1 -3
  50. package/lib/{views → src/views}/skills/index.js +0 -2
  51. package/lib/src/views/slides/index.d.ts +34 -0
  52. package/lib/{views → src/views}/slides/index.js +6 -4
  53. package/package.json +3 -3
  54. package/src/actions/api/fetch-correction.ts +2 -2
  55. package/src/actions/api/fetch-rank.ts +3 -3
  56. package/src/actions/api/fetch-skills.ts +2 -2
  57. package/src/actions/api/fetch-slide.ts +6 -2
  58. package/src/actions/api/post-answer.ts +2 -2
  59. package/src/actions/api/post-progression.ts +6 -2
  60. package/src/actions/api/test/fetch-correction.test.ts +2 -2
  61. package/src/actions/api/test/fetch-rank.test.ts +4 -4
  62. package/src/actions/api/test/fetch-skills.test.ts +2 -2
  63. package/src/actions/api/test/fetch-slide.test.ts +2 -2
  64. package/src/actions/api/test/post-answer.test.ts +11 -7
  65. package/src/actions/api/test/post-progression.test.ts +2 -2
  66. package/src/actions/data/test/token.test.ts +1 -1
  67. package/src/actions/test/create-test-store.ts +3 -3
  68. package/src/actions/ui/navigation.ts +49 -17
  69. package/src/actions/ui/test/answers.test.ts +8 -8
  70. package/src/actions/ui/test/navigation.test.ts +95 -0
  71. package/src/actions/ui/test/next-slide.test.ts +2 -2
  72. package/src/actions/ui/test/quit-popin.test.ts +2 -2
  73. package/src/actions/ui/test/slides.test.ts +1 -1
  74. package/src/common/index.ts +0 -10
  75. package/src/configure-store.ts +8 -2
  76. package/src/index.tsx +8 -6
  77. package/src/reducers/ui/navigation.ts +5 -5
  78. package/src/reducers/ui/test/navigation.test.ts +5 -5
  79. package/src/types/common.ts +9 -5
  80. package/src/views/skills/index.ts +1 -5
  81. package/src/views/skills/test/skills.test.ts +0 -4
  82. package/src/views/slides/index.ts +20 -132
  83. package/src/views/slides/test/header.on-click.test.ts +1 -1
  84. package/src/views/slides/test/index.test.ts +21 -6
  85. package/src/views/slides/test/on-quit-popin.on-click.test.ts +6 -5
  86. package/src/views/slides/test/slide.free-text.on-change.test.ts +3 -4
  87. package/src/views/slides/test/slide.next-slide.on-click.test.ts +7 -5
  88. package/src/views/slides/test/slide.qcm-drag.on-click.test.ts +1 -1
  89. package/src/views/slides/test/slide.qcm-graphic.on-click.test.ts +1 -1
  90. package/src/views/slides/test/slide.qcm.on-click.test.ts +1 -1
  91. package/src/views/slides/test/slide.slider.on-change.test.ts +1 -1
  92. package/src/views/slides/test/slide.slider.on-slider-change.test.ts +1 -1
  93. package/src/views/slides/test/slide.template.on-change.test.ts +2 -2
  94. package/es/actions/index.d.ts +0 -5
  95. package/es/actions/index.js +0 -1
  96. package/es/actions/ui/navigation.d.ts +0 -18
  97. package/es/actions/ui/navigation.js +0 -10
  98. package/es/views/slides/index.d.ts +0 -142
  99. package/lib/actions/index.d.ts +0 -5
  100. package/lib/actions/index.js +0 -1
  101. package/lib/actions/ui/navigation.d.ts +0 -18
  102. package/lib/actions/ui/navigation.js +0 -10
  103. package/lib/views/slides/index.d.ts +0 -142
  104. package/src/actions/index.ts +0 -6
  105. /package/es/{actions → src/actions}/api/fetch-correction.js +0 -0
  106. /package/es/{actions → src/actions}/api/fetch-rank.js +0 -0
  107. /package/es/{actions → src/actions}/api/fetch-skills.js +0 -0
  108. /package/es/{actions → src/actions}/api/fetch-slide.js +0 -0
  109. /package/es/{actions → src/actions}/api/post-answer.js +0 -0
  110. /package/es/{actions → src/actions}/api/post-progression.js +0 -0
  111. /package/es/{actions → src/actions}/data/token.d.ts +0 -0
  112. /package/es/{actions → src/actions}/data/token.js +0 -0
  113. /package/es/{actions → src/actions}/ui/answers.d.ts +0 -0
  114. /package/es/{actions → src/actions}/ui/answers.js +0 -0
  115. /package/es/{actions → src/actions}/ui/next-slide.d.ts +0 -0
  116. /package/es/{actions → src/actions}/ui/next-slide.js +0 -0
  117. /package/es/{actions → src/actions}/ui/quit-popin.d.ts +0 -0
  118. /package/es/{actions → src/actions}/ui/quit-popin.js +0 -0
  119. /package/es/{actions → src/actions}/ui/slides.d.ts +0 -0
  120. /package/es/{actions → src/actions}/ui/slides.js +0 -0
  121. /package/es/{configure-store.d.ts → src/configure-store.d.ts} +0 -0
  122. /package/es/{helpers → src/helpers}/css-register.d.ts +0 -0
  123. /package/es/{helpers → src/helpers}/css-register.js +0 -0
  124. /package/es/{reducers → src/reducers}/data/corrections.d.ts +0 -0
  125. /package/es/{reducers → src/reducers}/data/corrections.js +0 -0
  126. /package/es/{reducers → src/reducers}/data/index.d.ts +0 -0
  127. /package/es/{reducers → src/reducers}/data/index.js +0 -0
  128. /package/es/{reducers → src/reducers}/data/progression.d.ts +0 -0
  129. /package/es/{reducers → src/reducers}/data/progression.js +0 -0
  130. /package/es/{reducers → src/reducers}/data/rank.d.ts +0 -0
  131. /package/es/{reducers → src/reducers}/data/rank.js +0 -0
  132. /package/es/{reducers → src/reducers}/data/skills.d.ts +0 -0
  133. /package/es/{reducers → src/reducers}/data/skills.js +0 -0
  134. /package/es/{reducers → src/reducers}/data/slides.d.ts +0 -0
  135. /package/es/{reducers → src/reducers}/data/slides.js +0 -0
  136. /package/es/{reducers → src/reducers}/data/token.d.ts +0 -0
  137. /package/es/{reducers → src/reducers}/data/token.js +0 -0
  138. /package/es/{reducers → src/reducers}/index.js +0 -0
  139. /package/es/{reducers → src/reducers}/ui/answers.d.ts +0 -0
  140. /package/es/{reducers → src/reducers}/ui/answers.js +0 -0
  141. /package/es/{reducers → src/reducers}/ui/current-slide-ref.d.ts +0 -0
  142. /package/es/{reducers → src/reducers}/ui/current-slide-ref.js +0 -0
  143. /package/es/{reducers → src/reducers}/ui/index.js +0 -0
  144. /package/es/{reducers → src/reducers}/ui/positions.d.ts +0 -0
  145. /package/es/{reducers → src/reducers}/ui/positions.js +0 -0
  146. /package/es/{reducers → src/reducers}/ui/quit-popin.d.ts +0 -0
  147. /package/es/{reducers → src/reducers}/ui/quit-popin.js +0 -0
  148. /package/es/{reducers → src/reducers}/ui/show-congrats.d.ts +0 -0
  149. /package/es/{reducers → src/reducers}/ui/show-congrats.js +0 -0
  150. /package/es/{reducers → src/reducers}/ui/slide.d.ts +0 -0
  151. /package/es/{reducers → src/reducers}/ui/slide.js +0 -0
  152. /package/es/{services → src/services}/fetch-correction.d.ts +0 -0
  153. /package/es/{services → src/services}/fetch-correction.js +0 -0
  154. /package/es/{services → src/services}/fetch-rank.d.ts +0 -0
  155. /package/es/{services → src/services}/fetch-rank.js +0 -0
  156. /package/es/{services → src/services}/fetch-skills.d.ts +0 -0
  157. /package/es/{services → src/services}/fetch-skills.js +0 -0
  158. /package/es/{services → src/services}/fetch-slide.d.ts +0 -0
  159. /package/es/{services → src/services}/fetch-slide.js +0 -0
  160. /package/es/{services → src/services}/fetch-slides-to-review-by-skill-ref.d.ts +0 -0
  161. /package/es/{services → src/services}/fetch-slides-to-review-by-skill-ref.js +0 -0
  162. /package/es/{services → src/services}/index.d.ts +0 -0
  163. /package/es/{services → src/services}/index.js +0 -0
  164. /package/es/{services → src/services}/post-answer.d.ts +0 -0
  165. /package/es/{services → src/services}/post-answer.js +0 -0
  166. /package/es/{services → src/services}/post-progression.d.ts +0 -0
  167. /package/es/{services → src/services}/post-progression.js +0 -0
  168. /package/es/{services → src/services}/tools/fetch-responses.d.ts +0 -0
  169. /package/es/{services → src/services}/tools/fetch-responses.js +0 -0
  170. /package/es/{services → src/services}/tools/sleep.d.ts +0 -0
  171. /package/es/{services → src/services}/tools/sleep.js +0 -0
  172. /package/es/{test → src/test}/index.test.d.ts +0 -0
  173. /package/es/{test → src/test}/index.test.js +0 -0
  174. /package/es/{test → src/test}/util/services.mock.d.ts +0 -0
  175. /package/es/{test → src/test}/util/services.mock.js +0 -0
  176. /package/es/{types → src/types}/common.js +0 -0
  177. /package/es/{types → src/types}/slides.d.ts +0 -0
  178. /package/es/{types → src/types}/slides.js +0 -0
  179. /package/es/{views → src/views}/slides/map-api-slide-to-ui.d.ts +0 -0
  180. /package/es/{views → src/views}/slides/map-api-slide-to-ui.js +0 -0
  181. /package/es/{views → src/views}/slides/test/fixtures/free-text.d.ts +0 -0
  182. /package/es/{views → src/views}/slides/test/fixtures/free-text.js +0 -0
  183. /package/es/{views → src/views}/slides/test/fixtures/qcm-drag.d.ts +0 -0
  184. /package/es/{views → src/views}/slides/test/fixtures/qcm-drag.js +0 -0
  185. /package/es/{views → src/views}/slides/test/fixtures/qcm-graphic.d.ts +0 -0
  186. /package/es/{views → src/views}/slides/test/fixtures/qcm-graphic.js +0 -0
  187. /package/es/{views → src/views}/slides/test/fixtures/qcm.d.ts +0 -0
  188. /package/es/{views → src/views}/slides/test/fixtures/qcm.js +0 -0
  189. /package/es/{views → src/views}/slides/test/fixtures/slider.d.ts +0 -0
  190. /package/es/{views → src/views}/slides/test/fixtures/slider.js +0 -0
  191. /package/es/{views → src/views}/slides/test/fixtures/template.d.ts +0 -0
  192. /package/es/{views → src/views}/slides/test/fixtures/template.js +0 -0
  193. /package/lib/{actions → src/actions}/api/fetch-correction.js +0 -0
  194. /package/lib/{actions → src/actions}/api/fetch-rank.js +0 -0
  195. /package/lib/{actions → src/actions}/api/fetch-skills.js +0 -0
  196. /package/lib/{actions → src/actions}/api/fetch-slide.js +0 -0
  197. /package/lib/{actions → src/actions}/api/post-answer.js +0 -0
  198. /package/lib/{actions → src/actions}/api/post-progression.js +0 -0
  199. /package/lib/{actions → src/actions}/data/token.d.ts +0 -0
  200. /package/lib/{actions → src/actions}/data/token.js +0 -0
  201. /package/lib/{actions → src/actions}/ui/answers.d.ts +0 -0
  202. /package/lib/{actions → src/actions}/ui/answers.js +0 -0
  203. /package/lib/{actions → src/actions}/ui/next-slide.d.ts +0 -0
  204. /package/lib/{actions → src/actions}/ui/next-slide.js +0 -0
  205. /package/lib/{actions → src/actions}/ui/quit-popin.d.ts +0 -0
  206. /package/lib/{actions → src/actions}/ui/quit-popin.js +0 -0
  207. /package/lib/{actions → src/actions}/ui/slides.d.ts +0 -0
  208. /package/lib/{actions → src/actions}/ui/slides.js +0 -0
  209. /package/lib/{configure-store.d.ts → src/configure-store.d.ts} +0 -0
  210. /package/lib/{helpers → src/helpers}/css-register.d.ts +0 -0
  211. /package/lib/{helpers → src/helpers}/css-register.js +0 -0
  212. /package/lib/{reducers → src/reducers}/data/corrections.d.ts +0 -0
  213. /package/lib/{reducers → src/reducers}/data/corrections.js +0 -0
  214. /package/lib/{reducers → src/reducers}/data/index.d.ts +0 -0
  215. /package/lib/{reducers → src/reducers}/data/index.js +0 -0
  216. /package/lib/{reducers → src/reducers}/data/progression.d.ts +0 -0
  217. /package/lib/{reducers → src/reducers}/data/progression.js +0 -0
  218. /package/lib/{reducers → src/reducers}/data/rank.d.ts +0 -0
  219. /package/lib/{reducers → src/reducers}/data/rank.js +0 -0
  220. /package/lib/{reducers → src/reducers}/data/skills.d.ts +0 -0
  221. /package/lib/{reducers → src/reducers}/data/skills.js +0 -0
  222. /package/lib/{reducers → src/reducers}/data/slides.d.ts +0 -0
  223. /package/lib/{reducers → src/reducers}/data/slides.js +0 -0
  224. /package/lib/{reducers → src/reducers}/data/token.d.ts +0 -0
  225. /package/lib/{reducers → src/reducers}/data/token.js +0 -0
  226. /package/lib/{reducers → src/reducers}/index.js +0 -0
  227. /package/lib/{reducers → src/reducers}/ui/answers.d.ts +0 -0
  228. /package/lib/{reducers → src/reducers}/ui/answers.js +0 -0
  229. /package/lib/{reducers → src/reducers}/ui/current-slide-ref.d.ts +0 -0
  230. /package/lib/{reducers → src/reducers}/ui/current-slide-ref.js +0 -0
  231. /package/lib/{reducers → src/reducers}/ui/index.js +0 -0
  232. /package/lib/{reducers → src/reducers}/ui/positions.d.ts +0 -0
  233. /package/lib/{reducers → src/reducers}/ui/positions.js +0 -0
  234. /package/lib/{reducers → src/reducers}/ui/quit-popin.d.ts +0 -0
  235. /package/lib/{reducers → src/reducers}/ui/quit-popin.js +0 -0
  236. /package/lib/{reducers → src/reducers}/ui/show-congrats.d.ts +0 -0
  237. /package/lib/{reducers → src/reducers}/ui/show-congrats.js +0 -0
  238. /package/lib/{reducers → src/reducers}/ui/slide.d.ts +0 -0
  239. /package/lib/{reducers → src/reducers}/ui/slide.js +0 -0
  240. /package/lib/{services → src/services}/fetch-correction.d.ts +0 -0
  241. /package/lib/{services → src/services}/fetch-correction.js +0 -0
  242. /package/lib/{services → src/services}/fetch-rank.d.ts +0 -0
  243. /package/lib/{services → src/services}/fetch-rank.js +0 -0
  244. /package/lib/{services → src/services}/fetch-skills.d.ts +0 -0
  245. /package/lib/{services → src/services}/fetch-skills.js +0 -0
  246. /package/lib/{services → src/services}/fetch-slide.d.ts +0 -0
  247. /package/lib/{services → src/services}/fetch-slide.js +0 -0
  248. /package/lib/{services → src/services}/fetch-slides-to-review-by-skill-ref.d.ts +0 -0
  249. /package/lib/{services → src/services}/fetch-slides-to-review-by-skill-ref.js +0 -0
  250. /package/lib/{services → src/services}/index.d.ts +0 -0
  251. /package/lib/{services → src/services}/index.js +0 -0
  252. /package/lib/{services → src/services}/post-answer.d.ts +0 -0
  253. /package/lib/{services → src/services}/post-answer.js +0 -0
  254. /package/lib/{services → src/services}/post-progression.d.ts +0 -0
  255. /package/lib/{services → src/services}/post-progression.js +0 -0
  256. /package/lib/{services → src/services}/tools/fetch-responses.d.ts +0 -0
  257. /package/lib/{services → src/services}/tools/fetch-responses.js +0 -0
  258. /package/lib/{services → src/services}/tools/sleep.d.ts +0 -0
  259. /package/lib/{services → src/services}/tools/sleep.js +0 -0
  260. /package/lib/{test → src/test}/index.test.d.ts +0 -0
  261. /package/lib/{test → src/test}/index.test.js +0 -0
  262. /package/lib/{test → src/test}/util/services.mock.d.ts +0 -0
  263. /package/lib/{test → src/test}/util/services.mock.js +0 -0
  264. /package/lib/{types → src/types}/common.js +0 -0
  265. /package/lib/{types → src/types}/slides.d.ts +0 -0
  266. /package/lib/{types → src/types}/slides.js +0 -0
  267. /package/lib/{views → src/views}/slides/map-api-slide-to-ui.d.ts +0 -0
  268. /package/lib/{views → src/views}/slides/map-api-slide-to-ui.js +0 -0
  269. /package/lib/{views → src/views}/slides/test/fixtures/free-text.d.ts +0 -0
  270. /package/lib/{views → src/views}/slides/test/fixtures/free-text.js +0 -0
  271. /package/lib/{views → src/views}/slides/test/fixtures/qcm-drag.d.ts +0 -0
  272. /package/lib/{views → src/views}/slides/test/fixtures/qcm-drag.js +0 -0
  273. /package/lib/{views → src/views}/slides/test/fixtures/qcm-graphic.d.ts +0 -0
  274. /package/lib/{views → src/views}/slides/test/fixtures/qcm-graphic.js +0 -0
  275. /package/lib/{views → src/views}/slides/test/fixtures/qcm.d.ts +0 -0
  276. /package/lib/{views → src/views}/slides/test/fixtures/qcm.js +0 -0
  277. /package/lib/{views → src/views}/slides/test/fixtures/slider.d.ts +0 -0
  278. /package/lib/{views → src/views}/slides/test/fixtures/slider.js +0 -0
  279. /package/lib/{views → src/views}/slides/test/fixtures/template.d.ts +0 -0
  280. /package/lib/{views → src/views}/slides/test/fixtures/template.js +0 -0
@@ -1,142 +0,0 @@
1
- import type { Dispatch } from 'redux';
2
- import { type SlideIndexes } from '../../common';
3
- import type { StoreState } from '../../reducers';
4
- import type { AnswerUI } from '../../types/slides';
5
- declare const ICON_VALUES: {
6
- readonly right: "right";
7
- readonly wrong: "wrong";
8
- readonly 'no-answer': "no-answer";
9
- };
10
- declare type IconValue = keyof typeof ICON_VALUES;
11
- declare type StepItem = {
12
- current: boolean;
13
- icon: IconValue;
14
- value: string;
15
- };
16
- declare type SlideUIAnimations = 'unstack' | 'restack';
17
- export declare type ReviewSlide = {
18
- position: number;
19
- loading: boolean;
20
- showCorrectionPopin?: boolean;
21
- animateCorrectionPopin?: boolean;
22
- parentContentTitle?: string;
23
- questionText?: string;
24
- answerUI?: AnswerUI;
25
- animationType?: SlideUIAnimations;
26
- };
27
- declare type SlidesStack = {
28
- [key in SlideIndexes]: ReviewSlide;
29
- };
30
- declare type CorrectionPopinInformation = {
31
- label: string;
32
- message: string;
33
- };
34
- declare type CorrectionPopinKlf = {
35
- label: string;
36
- tooltip: string;
37
- };
38
- declare type CorrectionPopinNext = {
39
- label: string;
40
- ariaLabel: string;
41
- onClick: Function;
42
- };
43
- declare type QuitPopinButton = {
44
- label: string;
45
- type: string;
46
- customStyle?: {
47
- color: string;
48
- };
49
- handleOnclick: Function;
50
- ariaLabel: string;
51
- };
52
- export declare type CorrectionPopinProps = {
53
- klf?: CorrectionPopinKlf;
54
- information: CorrectionPopinInformation;
55
- next: CorrectionPopinNext;
56
- resultLabel: string;
57
- type: 'right' | 'wrong';
58
- };
59
- export declare type QuitPopinProps = {
60
- content: string;
61
- icon: string;
62
- mode: string;
63
- descriptionText: string;
64
- firstButton: QuitPopinButton;
65
- secondButton: QuitPopinButton;
66
- };
67
- export declare type SlidesViewProps = {
68
- header: {
69
- mode: string;
70
- skillName: string;
71
- onQuitClick: Function;
72
- 'aria-label'?: string;
73
- closeButtonAriaLabel: string;
74
- steps: StepItem[];
75
- };
76
- stack: {
77
- slides: SlidesStack;
78
- validateButton: {
79
- label: string;
80
- disabled: boolean;
81
- onClick: Function;
82
- };
83
- correctionPopinProps?: CorrectionPopinProps;
84
- endReview: boolean;
85
- };
86
- reviewBackgroundAriaLabel?: string;
87
- congrats?: CongratsProps;
88
- quitPopin?: QuitPopinProps;
89
- };
90
- declare type LottieAnimationProps = {
91
- 'aria-label': string;
92
- 'data-name'?: string;
93
- animationSrc: string;
94
- loop?: boolean;
95
- rendererSettings?: {
96
- hideOnTransparent?: boolean;
97
- className?: string;
98
- };
99
- height?: number;
100
- width?: number;
101
- className?: number;
102
- ie11ImageBackup: string;
103
- backupImageClassName?: string;
104
- autoplay?: boolean;
105
- animationControl?: 'play' | 'pause' | 'stop' | 'loading';
106
- };
107
- export declare type CongratsCardProps = {
108
- 'aria-label': string;
109
- 'data-name': string;
110
- animationLottie: LottieAnimationProps;
111
- iconAriaLabel: string;
112
- className?: string;
113
- cardType: string;
114
- reviewCardTitle: string;
115
- reviewCardValue: string;
116
- rankSuffix?: string;
117
- timerAnimation: number;
118
- };
119
- export declare type CongratsProps = {
120
- 'aria-label': string;
121
- 'data-name': 'review-congrats';
122
- animationLottie: LottieAnimationProps;
123
- title: string;
124
- cardCongratsStar: CongratsCardProps;
125
- cardCongratsRank?: CongratsCardProps;
126
- buttonRevising?: {
127
- 'aria-label': string;
128
- label: string;
129
- onClick: Function;
130
- type: string;
131
- };
132
- buttonRevisingSkill?: {
133
- label: string;
134
- 'aria-label': string;
135
- onClick: Function;
136
- type: string;
137
- };
138
- };
139
- export declare const initialState: SlidesStack;
140
- export declare const buildStepItems: (state: StoreState) => StepItem[];
141
- export declare const mapStateToSlidesProps: (state: StoreState, dispatch: Dispatch, onQuitClick: Function) => SlidesViewProps;
142
- export {};
@@ -1,5 +0,0 @@
1
- import { navigateBack, navigateTo } from './ui/navigation';
2
- export declare type Dispatchers = {
3
- navigateTo: typeof navigateTo;
4
- navigateBack: typeof navigateBack;
5
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import { AppOptions } from '../../types/common';
2
- export declare const NAVIGATE_TO = "@@navigation/NAVIGATE_TO";
3
- export declare const NAVIGATE_BACK = "@@navigation/NAVIGATE_BACK";
4
- export declare const START_APP = "@@navigation/START_APP";
5
- export declare type ViewPath = 'skills' | 'onboarding' | 'slides' | 'loader';
6
- export declare type NavigateTo = {
7
- type: '@@navigation/NAVIGATE_TO';
8
- payload: ViewPath;
9
- };
10
- export declare type NavigateBack = {
11
- type: '@@navigation/NAVIGATE_BACK';
12
- };
13
- export declare type StartApp = {
14
- type: '@@navigation/START_APP';
15
- payload: AppOptions;
16
- };
17
- export declare const navigateTo: (newPath: ViewPath) => NavigateTo;
18
- export declare const navigateBack: () => NavigateBack;
@@ -1,10 +0,0 @@
1
- export var NAVIGATE_TO = '@@navigation/NAVIGATE_TO';
2
- export var NAVIGATE_BACK = '@@navigation/NAVIGATE_BACK';
3
- export var START_APP = '@@navigation/START_APP';
4
- export var navigateTo = function (newPath) { return ({
5
- type: NAVIGATE_TO,
6
- payload: newPath
7
- }); };
8
- export var navigateBack = function () { return ({
9
- type: NAVIGATE_BACK
10
- }); };
@@ -1,142 +0,0 @@
1
- import type { Dispatch } from 'redux';
2
- import { type SlideIndexes } from '../../common';
3
- import type { StoreState } from '../../reducers';
4
- import type { AnswerUI } from '../../types/slides';
5
- declare const ICON_VALUES: {
6
- readonly right: "right";
7
- readonly wrong: "wrong";
8
- readonly 'no-answer': "no-answer";
9
- };
10
- declare type IconValue = keyof typeof ICON_VALUES;
11
- declare type StepItem = {
12
- current: boolean;
13
- icon: IconValue;
14
- value: string;
15
- };
16
- declare type SlideUIAnimations = 'unstack' | 'restack';
17
- export declare type ReviewSlide = {
18
- position: number;
19
- loading: boolean;
20
- showCorrectionPopin?: boolean;
21
- animateCorrectionPopin?: boolean;
22
- parentContentTitle?: string;
23
- questionText?: string;
24
- answerUI?: AnswerUI;
25
- animationType?: SlideUIAnimations;
26
- };
27
- declare type SlidesStack = {
28
- [key in SlideIndexes]: ReviewSlide;
29
- };
30
- declare type CorrectionPopinInformation = {
31
- label: string;
32
- message: string;
33
- };
34
- declare type CorrectionPopinKlf = {
35
- label: string;
36
- tooltip: string;
37
- };
38
- declare type CorrectionPopinNext = {
39
- label: string;
40
- ariaLabel: string;
41
- onClick: Function;
42
- };
43
- declare type QuitPopinButton = {
44
- label: string;
45
- type: string;
46
- customStyle?: {
47
- color: string;
48
- };
49
- handleOnclick: Function;
50
- ariaLabel: string;
51
- };
52
- export declare type CorrectionPopinProps = {
53
- klf?: CorrectionPopinKlf;
54
- information: CorrectionPopinInformation;
55
- next: CorrectionPopinNext;
56
- resultLabel: string;
57
- type: 'right' | 'wrong';
58
- };
59
- export declare type QuitPopinProps = {
60
- content: string;
61
- icon: string;
62
- mode: string;
63
- descriptionText: string;
64
- firstButton: QuitPopinButton;
65
- secondButton: QuitPopinButton;
66
- };
67
- export declare type SlidesViewProps = {
68
- header: {
69
- mode: string;
70
- skillName: string;
71
- onQuitClick: Function;
72
- 'aria-label'?: string;
73
- closeButtonAriaLabel: string;
74
- steps: StepItem[];
75
- };
76
- stack: {
77
- slides: SlidesStack;
78
- validateButton: {
79
- label: string;
80
- disabled: boolean;
81
- onClick: Function;
82
- };
83
- correctionPopinProps?: CorrectionPopinProps;
84
- endReview: boolean;
85
- };
86
- reviewBackgroundAriaLabel?: string;
87
- congrats?: CongratsProps;
88
- quitPopin?: QuitPopinProps;
89
- };
90
- declare type LottieAnimationProps = {
91
- 'aria-label': string;
92
- 'data-name'?: string;
93
- animationSrc: string;
94
- loop?: boolean;
95
- rendererSettings?: {
96
- hideOnTransparent?: boolean;
97
- className?: string;
98
- };
99
- height?: number;
100
- width?: number;
101
- className?: number;
102
- ie11ImageBackup: string;
103
- backupImageClassName?: string;
104
- autoplay?: boolean;
105
- animationControl?: 'play' | 'pause' | 'stop' | 'loading';
106
- };
107
- export declare type CongratsCardProps = {
108
- 'aria-label': string;
109
- 'data-name': string;
110
- animationLottie: LottieAnimationProps;
111
- iconAriaLabel: string;
112
- className?: string;
113
- cardType: string;
114
- reviewCardTitle: string;
115
- reviewCardValue: string;
116
- rankSuffix?: string;
117
- timerAnimation: number;
118
- };
119
- export declare type CongratsProps = {
120
- 'aria-label': string;
121
- 'data-name': 'review-congrats';
122
- animationLottie: LottieAnimationProps;
123
- title: string;
124
- cardCongratsStar: CongratsCardProps;
125
- cardCongratsRank?: CongratsCardProps;
126
- buttonRevising?: {
127
- 'aria-label': string;
128
- label: string;
129
- onClick: Function;
130
- type: string;
131
- };
132
- buttonRevisingSkill?: {
133
- label: string;
134
- 'aria-label': string;
135
- onClick: Function;
136
- type: string;
137
- };
138
- };
139
- export declare const initialState: SlidesStack;
140
- export declare const buildStepItems: (state: StoreState) => StepItem[];
141
- export declare const mapStateToSlidesProps: (state: StoreState, dispatch: Dispatch, onQuitClick: Function) => SlidesViewProps;
142
- export {};
@@ -1,6 +0,0 @@
1
- import {navigateBack, navigateTo} from './ui/navigation';
2
-
3
- export type Dispatchers = {
4
- navigateTo: typeof navigateTo;
5
- navigateBack: typeof navigateBack;
6
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes