@coorpacademy/player-web 4.2.11 → 4.3.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 (157) hide show
  1. package/es/map-state-to-props/test/answer.js +390 -0
  2. package/es/map-state-to-props/test/answer.js.map +1 -0
  3. package/es/map-state-to-props/test/fixtures/player/clue.json +131 -0
  4. package/es/map-state-to-props/test/fixtures/player/loading-clue.json +131 -0
  5. package/es/map-state-to-props/test/fixtures/player/no-clue.json +118 -0
  6. package/es/map-state-to-props/test/fixtures/player/slide-no-lessons.json +115 -0
  7. package/es/map-state-to-props/test/fixtures/player/slide.json +127 -0
  8. package/es/map-state-to-props/test/fixtures/popin-correction/popin-extra-life.json +139 -0
  9. package/es/map-state-to-props/test/fixtures/popin-correction/popin-failure.json +145 -0
  10. package/es/map-state-to-props/test/fixtures/popin-correction/popin-next-level.json +282 -0
  11. package/es/map-state-to-props/test/fixtures/popin-correction/popin-revival.json +140 -0
  12. package/es/map-state-to-props/test/fixtures/popin-correction/popin-success-node.json +154 -0
  13. package/es/map-state-to-props/test/fixtures/popin-correction/popin-success.json +268 -0
  14. package/es/map-state-to-props/test/fixtures/popin-correction/state-fail-multiple-answers.json +473 -0
  15. package/es/map-state-to-props/test/fixtures/popin-end/fail.json +205 -0
  16. package/es/map-state-to-props/test/fixtures/popin-end/learner-adaptive-failure.json +209 -0
  17. package/es/map-state-to-props/test/fixtures/popin-end/learner-failure-with-redirection.json +211 -0
  18. package/es/map-state-to-props/test/fixtures/popin-end/learner-failure.json +211 -0
  19. package/es/map-state-to-props/test/fixtures/popin-end/learner-success-with-redirection.json +278 -0
  20. package/es/map-state-to-props/test/fixtures/popin-end/learner-success.json +275 -0
  21. package/es/map-state-to-props/test/fixtures/popin-end/success.json +223 -0
  22. package/es/map-state-to-props/test/fixtures/progression-learner.json +102 -0
  23. package/es/map-state-to-props/test/fixtures/progression-state.json +45 -0
  24. package/es/map-state-to-props/test/fixtures/slides/basic.json +60 -0
  25. package/es/map-state-to-props/test/fixtures/slides/plop.json +56 -0
  26. package/es/map-state-to-props/test/fixtures/slides/qcm-drag.json +56 -0
  27. package/es/map-state-to-props/test/fixtures/slides/qcm-graphic.json +49 -0
  28. package/es/map-state-to-props/test/fixtures/slides/qcm.json +43 -0
  29. package/es/map-state-to-props/test/fixtures/slides/slider.json +57 -0
  30. package/es/map-state-to-props/test/fixtures/slides/template.json +49 -0
  31. package/es/map-state-to-props/test/fixtures/slides/videos.json +163 -0
  32. package/es/map-state-to-props/test/fixtures/slides/with-context.json +69 -0
  33. package/es/map-state-to-props/test/header.js +131 -0
  34. package/es/map-state-to-props/test/header.js.map +1 -0
  35. package/es/map-state-to-props/test/index.js +107 -0
  36. package/es/map-state-to-props/test/index.js.map +1 -0
  37. package/es/map-state-to-props/test/player.js +680 -0
  38. package/es/map-state-to-props/test/player.js.map +1 -0
  39. package/es/map-state-to-props/test/popin-correction.create-header-cta.js +301 -0
  40. package/es/map-state-to-props/test/popin-correction.create-header-cta.js.map +1 -0
  41. package/es/map-state-to-props/test/popin-correction.js +80 -0
  42. package/es/map-state-to-props/test/popin-correction.js.map +1 -0
  43. package/es/map-state-to-props/test/popin-end.js +313 -0
  44. package/es/map-state-to-props/test/popin-end.js.map +1 -0
  45. package/es/map-state-to-props/test/popin-error.js +77 -0
  46. package/es/map-state-to-props/test/popin-error.js.map +1 -0
  47. package/es/map-state-to-props/test/resources.js +31 -0
  48. package/es/map-state-to-props/test/resources.js.map +1 -0
  49. package/es/test/add-timeout.js +8 -0
  50. package/es/test/add-timeout.js.map +1 -0
  51. package/es/test/helpers/css-register.js +3 -0
  52. package/es/test/helpers/css-register.js.map +1 -0
  53. package/es/test/helpers/macro.js +6 -0
  54. package/es/test/helpers/macro.js.map +1 -0
  55. package/es/test/index.js +39 -0
  56. package/es/test/index.js.map +1 -0
  57. package/es/test/init-reducers.js +50 -0
  58. package/es/test/init-reducers.js.map +1 -0
  59. package/es/test/locales.js +8 -0
  60. package/es/test/locales.js.map +1 -0
  61. package/es/test/run-app.js +20 -0
  62. package/es/test/run-app.js.map +1 -0
  63. package/es/test/store.js +38 -0
  64. package/es/test/store.js.map +1 -0
  65. package/es/views/test/helpers/render.js +13 -0
  66. package/es/views/test/helpers/render.js.map +1 -0
  67. package/es/views/test/helpers/state-to-vnode.js +7 -0
  68. package/es/views/test/helpers/state-to-vnode.js.map +1 -0
  69. package/es/views/test/loading.js +15 -0
  70. package/es/views/test/loading.js.map +1 -0
  71. package/es/views/test/popin-correction.js +223 -0
  72. package/es/views/test/popin-correction.js.map +1 -0
  73. package/es/views/test/popin-end.js +93 -0
  74. package/es/views/test/popin-end.js.map +1 -0
  75. package/es/views/test/router.js +22 -0
  76. package/es/views/test/router.js.map +1 -0
  77. package/es/views/test/slide.js +335 -0
  78. package/es/views/test/slide.js.map +1 -0
  79. package/lib/map-state-to-props/test/answer.js +408 -0
  80. package/lib/map-state-to-props/test/answer.js.map +1 -0
  81. package/lib/map-state-to-props/test/fixtures/player/clue.json +131 -0
  82. package/lib/map-state-to-props/test/fixtures/player/loading-clue.json +131 -0
  83. package/lib/map-state-to-props/test/fixtures/player/no-clue.json +118 -0
  84. package/lib/map-state-to-props/test/fixtures/player/slide-no-lessons.json +115 -0
  85. package/lib/map-state-to-props/test/fixtures/player/slide.json +127 -0
  86. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-extra-life.json +139 -0
  87. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-failure.json +145 -0
  88. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-next-level.json +282 -0
  89. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-revival.json +140 -0
  90. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-success-node.json +154 -0
  91. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-success.json +268 -0
  92. package/lib/map-state-to-props/test/fixtures/popin-correction/state-fail-multiple-answers.json +473 -0
  93. package/lib/map-state-to-props/test/fixtures/popin-end/fail.json +205 -0
  94. package/lib/map-state-to-props/test/fixtures/popin-end/learner-adaptive-failure.json +209 -0
  95. package/lib/map-state-to-props/test/fixtures/popin-end/learner-failure-with-redirection.json +211 -0
  96. package/lib/map-state-to-props/test/fixtures/popin-end/learner-failure.json +211 -0
  97. package/lib/map-state-to-props/test/fixtures/popin-end/learner-success-with-redirection.json +278 -0
  98. package/lib/map-state-to-props/test/fixtures/popin-end/learner-success.json +275 -0
  99. package/lib/map-state-to-props/test/fixtures/popin-end/success.json +223 -0
  100. package/lib/map-state-to-props/test/fixtures/progression-learner.json +102 -0
  101. package/lib/map-state-to-props/test/fixtures/progression-state.json +45 -0
  102. package/lib/map-state-to-props/test/fixtures/slides/basic.json +60 -0
  103. package/lib/map-state-to-props/test/fixtures/slides/plop.json +56 -0
  104. package/lib/map-state-to-props/test/fixtures/slides/qcm-drag.json +56 -0
  105. package/lib/map-state-to-props/test/fixtures/slides/qcm-graphic.json +49 -0
  106. package/lib/map-state-to-props/test/fixtures/slides/qcm.json +43 -0
  107. package/lib/map-state-to-props/test/fixtures/slides/slider.json +57 -0
  108. package/lib/map-state-to-props/test/fixtures/slides/template.json +49 -0
  109. package/lib/map-state-to-props/test/fixtures/slides/videos.json +163 -0
  110. package/lib/map-state-to-props/test/fixtures/slides/with-context.json +69 -0
  111. package/lib/map-state-to-props/test/header.js +143 -0
  112. package/lib/map-state-to-props/test/header.js.map +1 -0
  113. package/lib/map-state-to-props/test/index.js +100 -0
  114. package/lib/map-state-to-props/test/index.js.map +1 -0
  115. package/lib/map-state-to-props/test/player.js +714 -0
  116. package/lib/map-state-to-props/test/player.js.map +1 -0
  117. package/lib/map-state-to-props/test/popin-correction.create-header-cta.js +315 -0
  118. package/lib/map-state-to-props/test/popin-correction.create-header-cta.js.map +1 -0
  119. package/lib/map-state-to-props/test/popin-correction.js +85 -0
  120. package/lib/map-state-to-props/test/popin-correction.js.map +1 -0
  121. package/lib/map-state-to-props/test/popin-end.js +328 -0
  122. package/lib/map-state-to-props/test/popin-end.js.map +1 -0
  123. package/lib/map-state-to-props/test/popin-error.js +85 -0
  124. package/lib/map-state-to-props/test/popin-error.js.map +1 -0
  125. package/lib/map-state-to-props/test/resources.js +42 -0
  126. package/lib/map-state-to-props/test/resources.js.map +1 -0
  127. package/lib/test/add-timeout.js +14 -0
  128. package/lib/test/add-timeout.js.map +1 -0
  129. package/lib/test/helpers/css-register.js +8 -0
  130. package/lib/test/helpers/css-register.js.map +1 -0
  131. package/lib/test/helpers/macro.js +12 -0
  132. package/lib/test/helpers/macro.js.map +1 -0
  133. package/lib/test/index.js +53 -0
  134. package/lib/test/index.js.map +1 -0
  135. package/lib/test/init-reducers.js +57 -0
  136. package/lib/test/init-reducers.js.map +1 -0
  137. package/lib/test/locales.js +18 -0
  138. package/lib/test/locales.js.map +1 -0
  139. package/lib/test/run-app.js +27 -0
  140. package/lib/test/run-app.js.map +1 -0
  141. package/lib/test/store.js +45 -0
  142. package/lib/test/store.js.map +1 -0
  143. package/lib/views/test/helpers/render.js +24 -0
  144. package/lib/views/test/helpers/render.js.map +1 -0
  145. package/lib/views/test/helpers/state-to-vnode.js +14 -0
  146. package/lib/views/test/helpers/state-to-vnode.js.map +1 -0
  147. package/lib/views/test/loading.js +22 -0
  148. package/lib/views/test/loading.js.map +1 -0
  149. package/lib/views/test/popin-correction.js +237 -0
  150. package/lib/views/test/popin-correction.js.map +1 -0
  151. package/lib/views/test/popin-end.js +105 -0
  152. package/lib/views/test/popin-end.js.map +1 -0
  153. package/lib/views/test/router.js +32 -0
  154. package/lib/views/test/router.js.map +1 -0
  155. package/lib/views/test/slide.js +359 -0
  156. package/lib/views/test/slide.js.map +1 -0
  157. package/package.json +4 -3
@@ -0,0 +1,145 @@
1
+ {
2
+ "data": {
3
+ "contents": {
4
+ "slide": {
5
+ "entities": {
6
+ "1.B2.4": {
7
+ "_id": "1.B2.4",
8
+ "klf": "Some KLF",
9
+ "tips": "XXX",
10
+ "chapter_id": "cha_Ny1BTxRp~",
11
+ "authors": [],
12
+ "context": {
13
+ "media": {
14
+ "subtitles": [],
15
+ "posters": [],
16
+ "src": []
17
+ }
18
+ },
19
+ "info": {
20
+ "nbSlides": 4
21
+ },
22
+ "lessons": [
23
+ {
24
+ "type": "video",
25
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B2.png",
26
+ "description": "Anatomie d'une page de résultats",
27
+ "mimeType": "application/vimeo",
28
+ "videoId": "88393119\n",
29
+ "_id": "590b862e2e967f64333ad456",
30
+ "subtitles": [],
31
+ "posters": [],
32
+ "src": []
33
+ },
34
+ {
35
+ "description": "Historique des moteurs de recherche",
36
+ "mimeType": "application/vimeo",
37
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B1.png",
38
+ "posters": [],
39
+ "src": [],
40
+ "subtitles": [],
41
+ "type": "video",
42
+ "videoId": "88546728\n",
43
+ "_id": "590b862e2e967f64333ad4fc"
44
+ }
45
+ ],
46
+ "question": {
47
+ "type": "basic",
48
+ "header": "Écrivez le mot Text dans l'input.\n",
49
+ "explanation": "Saisissez votre réponse.",
50
+ "content": {
51
+ "label": "Saisissez votre réponse.",
52
+ "placeholder": " ",
53
+ "maxTypos": null,
54
+ "choices": [],
55
+ "answers": [["Text"]],
56
+ "media": {
57
+ "subtitles": [],
58
+ "posters": [],
59
+ "src": []
60
+ }
61
+ },
62
+ "medias": []
63
+ }
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "answers": {
69
+ "entities": {
70
+ "0": {
71
+ "1.B2.4": {
72
+ "correctAnswer": ["Text"],
73
+ "corrections": [
74
+ {
75
+ "answer": "Toto",
76
+ "isCorrect": false
77
+ }
78
+ ]
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "configs": {
84
+ "entities": {
85
+ "microlearning@1": {
86
+ "remainingLifeRequests": 1
87
+ }
88
+ }
89
+ },
90
+ "progressions": {
91
+ "entities": {
92
+ "0": {
93
+ "_id": "0",
94
+ "engine": {
95
+ "ref": "microlearning",
96
+ "version": "1"
97
+ },
98
+ "content": {
99
+ "ref": "1.B2.4",
100
+ "type": "slide"
101
+ },
102
+ "state": {
103
+ "slides": ["1.B2.4"],
104
+ "nextContent": {
105
+ "ref": "failExitNode",
106
+ "type": "failure"
107
+ },
108
+ "lives": 0,
109
+ "remainingLifeRequests": 0,
110
+ "step": {
111
+ "current": 2
112
+ },
113
+ "isCorrect": false,
114
+ "stars": 0,
115
+ "requestedClues": [],
116
+ "viewedResources": [],
117
+ "content": {
118
+ "ref": "1.B2.4",
119
+ "type": "slide"
120
+ }
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "exitNodes": {
126
+ "entities": {}
127
+ }
128
+ },
129
+ "ui": {
130
+ "answers": {
131
+ "0": {
132
+ "value": ["Toto"]
133
+ }
134
+ },
135
+ "current": {
136
+ "progressionId": "0"
137
+ },
138
+ "corrections": {
139
+ "accordion": [true, false, false]
140
+ },
141
+ "route": {
142
+ "0": "correction"
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,282 @@
1
+ {
2
+ "data": {
3
+ "configs": {
4
+ "entities": {
5
+ "microlearning@1": {
6
+ "version": 1
7
+ }
8
+ }
9
+ },
10
+ "contents": {
11
+ "slide": {
12
+ "entities": {
13
+ "1.B2.4": {
14
+ "_id": "1.B2.4",
15
+ "klf": "Some KLF",
16
+ "tips": "XXX",
17
+ "chapter_id": "cha_Ny1BTxRp~",
18
+ "authors": [],
19
+ "context": {
20
+ "media": {
21
+ "subtitles": [],
22
+ "posters": [],
23
+ "src": []
24
+ }
25
+ },
26
+ "info": {
27
+ "nbSlides": 4
28
+ },
29
+ "meta": {
30
+ "updatedAt": "2017-06-13T12:15:40.321Z",
31
+ "createdAt": "2017-06-13T12:15:40.321Z"
32
+ },
33
+ "lessons": [
34
+ {
35
+ "type": "video",
36
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B2.png",
37
+ "description": "Anatomie d'une page de résultats",
38
+ "mimeType": "application/vimeo",
39
+ "videoId": "88393119\n",
40
+ "_id": "590b862e2e967f64333ad456",
41
+ "subtitles": [],
42
+ "posters": [],
43
+ "src": []
44
+ }
45
+ ],
46
+ "question": {
47
+ "type": "basic",
48
+ "header": "Écrivez le mot Text dans l'input.\n",
49
+ "explanation": "Saisissez votre réponse.",
50
+ "content": {
51
+ "label": "Saisissez votre réponse.",
52
+ "placeholder": " ",
53
+ "maxTypos": null,
54
+ "choices": [],
55
+ "answers": [["Text"]],
56
+ "media": {
57
+ "subtitles": [],
58
+ "posters": [],
59
+ "src": []
60
+ }
61
+ },
62
+ "medias": []
63
+ }
64
+ },
65
+ "sli_Nk2vje~E~": {
66
+ "_id": "sli_Nk2vje~E~",
67
+ "klf": "You can have multiple type of fields for a template question",
68
+ "tips": "Some tips",
69
+ "clue": "clue",
70
+ "chapter_id": "1.B2",
71
+ "question": {
72
+ "type": "template",
73
+ "header": "Enter 'Text' and 'Select'",
74
+ "explanation": "Type your answers",
75
+ "content": {
76
+ "template": "The answer is {{inp81438}} and {{sel31191}}",
77
+ "matchOrder": true,
78
+ "maxTypos": null,
79
+ "answers": [["Text", "Select"]],
80
+ "choices": [
81
+ {
82
+ "type": "text",
83
+ "name": "inp81438",
84
+ "label": " ",
85
+ "placeholder": " ",
86
+ "_id": "596338e04af4cb8a08a94495",
87
+ "items": [],
88
+ "media": {
89
+ "subtitles": [],
90
+ "posters": [],
91
+ "src": []
92
+ }
93
+ },
94
+ {
95
+ "type": "select",
96
+ "name": "sel31191",
97
+ "label": " ",
98
+ "_id": "596338e04af4cb8a08a94492",
99
+ "items": [
100
+ {
101
+ "text": "Select",
102
+ "value": "sli_12345.choice_01",
103
+ "_id": "596338e04af4cb8a08a94494"
104
+ },
105
+ {
106
+ "text": "Text",
107
+ "value": "sli_12345.choice_02",
108
+ "_id": "596338e04af4cb8a08a94493"
109
+ }
110
+ ]
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ },
116
+ "sli_Vy88~R-bX": {
117
+ "_id": "sli_Vy88~R-bX",
118
+ "klf": "Difficile hein !",
119
+ "tips": "Que 1 X 1 n'est pas 2 !",
120
+ "chapter_id": "cha_Ny1BTxRp~",
121
+ "authors": [],
122
+ "context": {
123
+ "media": {
124
+ "subtitles": [],
125
+ "posters": [],
126
+ "src": []
127
+ }
128
+ },
129
+ "meta": {
130
+ "updatedAt": "2017-06-06T13:49:35.256Z",
131
+ "createdAt": "2017-06-06T13:49:35.255Z"
132
+ },
133
+ "lessons": [
134
+ {
135
+ "_id": "5930752aa2b39d0024eebffb",
136
+ "description": "Hierarchie",
137
+ "mediaUrl": "//static.coorpacademy.com/content/CoorpAcademy/content/cockpitRecette-joan/raw/hierachie-contenu-1496311207505.pdf",
138
+ "mimeType": "application/pdf",
139
+ "type": "pdf",
140
+ "subtitles": [],
141
+ "posters": [],
142
+ "src": []
143
+ }
144
+ ],
145
+ "question": {
146
+ "type": "qcm",
147
+ "header": "Combien ça fait 1 + 1 ?",
148
+ "explanation": "Sélectionnez la (les) bonne(s) réponse(s).",
149
+ "content": {
150
+ "maxTypos": null,
151
+ "choices": [
152
+ {
153
+ "_id": "5930752aa2b39d0024eebffe",
154
+ "value": "sli_Vy88~R-bX.choice_EyWTW0O~X",
155
+ "label": "0",
156
+ "items": [],
157
+ "media": {
158
+ "subtitles": [],
159
+ "posters": [],
160
+ "src": []
161
+ }
162
+ },
163
+ {
164
+ "_id": "5930752aa2b39d0024eebffd",
165
+ "value": "sli_Vy88~R-bX.choice_EJmabCuZX",
166
+ "label": "1",
167
+ "items": [],
168
+ "media": {
169
+ "subtitles": [],
170
+ "posters": [],
171
+ "src": []
172
+ }
173
+ },
174
+ {
175
+ "_id": "5930752aa2b39d0024eebffc",
176
+ "value": "sli_Vy88~R-bX.choice_NyoT~C-~X",
177
+ "label": "2",
178
+ "items": [],
179
+ "media": {
180
+ "subtitles": [],
181
+ "posters": [],
182
+ "src": []
183
+ }
184
+ }
185
+ ],
186
+ "answers": [["2"]],
187
+ "media": {
188
+ "subtitles": [],
189
+ "posters": [],
190
+ "src": []
191
+ }
192
+ },
193
+ "medias": []
194
+ }
195
+ }
196
+ }
197
+ },
198
+ "level": {
199
+ "entities": {
200
+ "1.B": {
201
+ "chapterIds": ["1.B1", "1.B2", "1.B3", "1.B4"]
202
+ }
203
+ }
204
+ },
205
+ "chapter": {
206
+ "entities": {
207
+ "1.B2": {
208
+ "name": "Some chapter name"
209
+ }
210
+ }
211
+ }
212
+ },
213
+ "progressions": {
214
+ "entities": {
215
+ "0": {
216
+ "_id": "0",
217
+ "engine": {
218
+ "ref": "microlearning",
219
+ "version": "1"
220
+ },
221
+ "content": {
222
+ "ref": "1.B",
223
+ "type": "level"
224
+ },
225
+ "state": {
226
+ "slides": ["1.B2.4", "sli_Nk2vje~E~"],
227
+ "nextContent": {
228
+ "ref": "sli_Nk2vje~E~",
229
+ "type": "slide"
230
+ },
231
+ "lives": 1,
232
+ "step": {
233
+ "current": 3
234
+ },
235
+ "isCorrect": true,
236
+ "stars": 8,
237
+ "requestedClues": [],
238
+ "viewedResources": [],
239
+ "content": {
240
+ "ref": "sli_Vy88~R-bX",
241
+ "type": "slide"
242
+ }
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "answers": {
248
+ "entities": {
249
+ "0": {
250
+ "sli_Vy88~R-bX": {
251
+ "correctAnswer": ["2"],
252
+ "corrections": [
253
+ {
254
+ "answer": "2",
255
+ "isCorrect": true
256
+ }
257
+ ]
258
+ }
259
+ }
260
+ }
261
+ },
262
+ "exitNodes": {
263
+ "entities": {}
264
+ }
265
+ },
266
+ "ui": {
267
+ "answers": {
268
+ "0": {
269
+ "value": ["2"]
270
+ }
271
+ },
272
+ "current": {
273
+ "progressionId": "0"
274
+ },
275
+ "corrections": {
276
+ "accordion": [false, false, true]
277
+ },
278
+ "route": {
279
+ "0": "correction"
280
+ }
281
+ }
282
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "data": {
3
+ "configs": {
4
+ "entities": {
5
+ "microlearning@1": {
6
+ "version": 1
7
+ }
8
+ }
9
+ },
10
+ "contents": {
11
+ "slide": {
12
+ "entities": {
13
+ "1.B2.4": {
14
+ "_id": "1.B2.4",
15
+ "klf": "Some KLF",
16
+ "tips": "XXX",
17
+ "chapter_id": "cha_Ny1BTxRp~",
18
+ "authors": [],
19
+ "context": {
20
+ "media": {
21
+ "subtitles": [],
22
+ "posters": [],
23
+ "src": []
24
+ }
25
+ },
26
+ "lessons": [
27
+ {
28
+ "type": "video",
29
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B2.png",
30
+ "description": "Anatomie d'une page de résultats",
31
+ "mimeType": "application/vimeo",
32
+ "videoId": "88393119\n",
33
+ "_id": "590b862e2e967f64333ad456",
34
+ "subtitles": [],
35
+ "posters": [],
36
+ "src": []
37
+ },
38
+ {
39
+ "description": "Historique des moteurs de recherche",
40
+ "mimeType": "application/vimeo",
41
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B1.png",
42
+ "posters": [],
43
+ "src": [],
44
+ "subtitles": [],
45
+ "type": "video",
46
+ "videoId": "88546728\n",
47
+ "_id": "590b862e2e967f64333ad4fc"
48
+ }
49
+ ],
50
+ "question": {
51
+ "type": "basic",
52
+ "header": "Écrivez le mot Text dans l'input.\n",
53
+ "explanation": "Saisissez votre réponse.",
54
+ "content": {
55
+ "label": "Saisissez votre réponse.",
56
+ "placeholder": " ",
57
+ "maxTypos": null,
58
+ "choices": [],
59
+ "answers": [["Text"]],
60
+ "media": {
61
+ "subtitles": [],
62
+ "posters": [],
63
+ "src": []
64
+ }
65
+ },
66
+ "medias": []
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "answers": {
73
+ "entities": {
74
+ "0": {
75
+ "1.B2.4": {
76
+ "correctAnswer": ["Text"],
77
+ "corrections": [
78
+ {
79
+ "answer": "Toto",
80
+ "isCorrect": false
81
+ }
82
+ ]
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "progressions": {
88
+ "entities": {
89
+ "0": {
90
+ "_id": "0",
91
+ "engine": {
92
+ "ref": "microlearning",
93
+ "version": "1"
94
+ },
95
+ "content": {
96
+ "ref": "1.B2.4",
97
+ "type": "slide"
98
+ },
99
+ "state": {
100
+ "slides": ["1.B2.4"],
101
+ "nextContent": {
102
+ "ref": "extraLife",
103
+ "type": "node"
104
+ },
105
+ "lives": 0,
106
+ "step": {
107
+ "total": 4,
108
+ "current": 2
109
+ },
110
+ "isCorrect": false,
111
+ "stars": 0,
112
+ "requestedClues": [],
113
+ "viewedResources": [],
114
+ "hasViewedAResourceAtThisStep": true,
115
+ "content": {
116
+ "ref": "1.B2.4",
117
+ "type": "slide"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "exitNodes": {
124
+ "entities": {}
125
+ }
126
+ },
127
+ "ui": {
128
+ "answers": {
129
+ "0": {
130
+ "value": ["Toto"]
131
+ }
132
+ },
133
+ "current": {
134
+ "progressionId": "0"
135
+ },
136
+ "corrections": {
137
+ "accordion": [true, false, false]
138
+ }
139
+ }
140
+ }