@coorpacademy/player-web 4.2.11 → 4.2.12

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,154 @@
1
+ {
2
+ "data": {
3
+ "configs": {
4
+ "entities": {
5
+ "learner@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
+ "lessons": [
30
+ {
31
+ "type": "video",
32
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B2.png",
33
+ "description": "Anatomie d'une page de résultats",
34
+ "mimeType": "application/vimeo",
35
+ "videoId": "88393119\n",
36
+ "_id": "590b862e2e967f64333ad456",
37
+ "subtitles": [],
38
+ "posters": [],
39
+ "src": []
40
+ },
41
+ {
42
+ "description": "Historique des moteurs de recherche",
43
+ "mimeType": "application/vimeo",
44
+ "poster": "//static.coorpacademy.com/content/digital/miniatures_cours/base/1B1.png",
45
+ "posters": [],
46
+ "src": [],
47
+ "subtitles": [],
48
+ "type": "video",
49
+ "videoId": "88546728\n",
50
+ "_id": "590b862e2e967f64333ad4fc"
51
+ }
52
+ ],
53
+ "question": {
54
+ "type": "basic",
55
+ "header": "Écrivez le mot Text dans l'input.\n",
56
+ "explanation": "Saisissez votre réponse.",
57
+ "content": {
58
+ "label": "Saisissez votre réponse.",
59
+ "placeholder": " ",
60
+ "maxTypos": null,
61
+ "choices": [],
62
+ "answers": [["Text"]],
63
+ "media": {
64
+ "subtitles": [],
65
+ "posters": [],
66
+ "src": []
67
+ }
68
+ },
69
+ "medias": []
70
+ }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "answers": {
76
+ "entities": {
77
+ "0": {
78
+ "1.B2.4": {
79
+ "correctAnswer": ["Text"],
80
+ "corrections": [
81
+ {
82
+ "answer": "Text",
83
+ "isCorrect": true
84
+ }
85
+ ]
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "progressions": {
91
+ "entities": {
92
+ "0": {
93
+ "_id": "0",
94
+ "engine": {
95
+ "ref": "learner",
96
+ "version": "1"
97
+ },
98
+ "content": {
99
+ "ref": "1.B",
100
+ "type": "level"
101
+ },
102
+ "state": {
103
+ "slides": [
104
+ "1.B2.5",
105
+ "1.B2.6",
106
+ "1.B2.7",
107
+ "1.B2.14",
108
+ "1.B2.15",
109
+ "1.B2.16",
110
+ "1.B2.17",
111
+ "1.B2.4"
112
+ ],
113
+ "nextContent": {
114
+ "ref": "successExitNode",
115
+ "type": "success"
116
+ },
117
+ "livesDisabled": false,
118
+ "lives": 1,
119
+ "step": {
120
+ "current": 8
121
+ },
122
+ "isCorrect": true,
123
+ "stars": 20,
124
+ "requestedClues": [],
125
+ "viewedResources": [],
126
+ "content": {
127
+ "ref": "1.B2.4",
128
+ "type": "slide"
129
+ }
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "exitNodes": {
135
+ "entities": {}
136
+ }
137
+ },
138
+ "ui": {
139
+ "answers": {
140
+ "0": {
141
+ "value": ["Toto"]
142
+ }
143
+ },
144
+ "current": {
145
+ "progressionId": "0"
146
+ },
147
+ "corrections": {
148
+ "accordion": [true, false, false]
149
+ },
150
+ "route": {
151
+ "0": "correction"
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,268 @@
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": "5.C7",
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
+ },
199
+ "progressions": {
200
+ "entities": {
201
+ "0": {
202
+ "_id": "0",
203
+ "engine": {
204
+ "ref": "microlearning",
205
+ "version": "1"
206
+ },
207
+ "content": {
208
+ "ref": "1.B2.4",
209
+ "type": "slide"
210
+ },
211
+ "state": {
212
+ "slides": ["1.B2.4", "sli_Nk2vje~E~"],
213
+ "nextContent": {
214
+ "ref": "sli_Nk2vje~E~",
215
+ "type": "slide"
216
+ },
217
+ "lives": 1,
218
+ "step": {
219
+ "current": 3
220
+ },
221
+ "isCorrect": true,
222
+ "stars": 8,
223
+ "requestedClues": [],
224
+ "viewedResources": [],
225
+ "content": {
226
+ "ref": "sli_Vy88~R-bX",
227
+ "type": "slide"
228
+ }
229
+ }
230
+ }
231
+ }
232
+ },
233
+ "answers": {
234
+ "entities": {
235
+ "0": {
236
+ "sli_Vy88~R-bX": {
237
+ "correctAnswer": ["2"],
238
+ "corrections": [
239
+ {
240
+ "answer": "2",
241
+ "isCorrect": true
242
+ }
243
+ ]
244
+ }
245
+ }
246
+ }
247
+ },
248
+ "exitNodes": {
249
+ "entities": {}
250
+ }
251
+ },
252
+ "ui": {
253
+ "answers": {
254
+ "0": {
255
+ "value": ["2"]
256
+ }
257
+ },
258
+ "current": {
259
+ "progressionId": "0"
260
+ },
261
+ "corrections": {
262
+ "accordion": [false, false, true]
263
+ },
264
+ "route": {
265
+ "0": "correction"
266
+ }
267
+ }
268
+ }