@coorpacademy/player-web 4.22.6 → 4.22.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.
Files changed (157) hide show
  1. package/package.json +3 -4
  2. package/es/map-state-to-props/test/answer.js +0 -391
  3. package/es/map-state-to-props/test/answer.js.map +0 -1
  4. package/es/map-state-to-props/test/fixtures/player/clue.json +0 -131
  5. package/es/map-state-to-props/test/fixtures/player/loading-clue.json +0 -131
  6. package/es/map-state-to-props/test/fixtures/player/no-clue.json +0 -118
  7. package/es/map-state-to-props/test/fixtures/player/slide-no-lessons.json +0 -115
  8. package/es/map-state-to-props/test/fixtures/player/slide.json +0 -127
  9. package/es/map-state-to-props/test/fixtures/popin-correction/popin-extra-life.json +0 -139
  10. package/es/map-state-to-props/test/fixtures/popin-correction/popin-failure.json +0 -145
  11. package/es/map-state-to-props/test/fixtures/popin-correction/popin-next-level.json +0 -282
  12. package/es/map-state-to-props/test/fixtures/popin-correction/popin-revival.json +0 -140
  13. package/es/map-state-to-props/test/fixtures/popin-correction/popin-success-node.json +0 -154
  14. package/es/map-state-to-props/test/fixtures/popin-correction/popin-success.json +0 -268
  15. package/es/map-state-to-props/test/fixtures/popin-correction/state-fail-multiple-answers.json +0 -473
  16. package/es/map-state-to-props/test/fixtures/popin-end/fail.json +0 -205
  17. package/es/map-state-to-props/test/fixtures/popin-end/learner-adaptive-failure.json +0 -209
  18. package/es/map-state-to-props/test/fixtures/popin-end/learner-failure-with-redirection.json +0 -211
  19. package/es/map-state-to-props/test/fixtures/popin-end/learner-failure.json +0 -211
  20. package/es/map-state-to-props/test/fixtures/popin-end/learner-success-with-redirection.json +0 -278
  21. package/es/map-state-to-props/test/fixtures/popin-end/learner-success.json +0 -275
  22. package/es/map-state-to-props/test/fixtures/popin-end/success.json +0 -223
  23. package/es/map-state-to-props/test/fixtures/progression-learner.json +0 -102
  24. package/es/map-state-to-props/test/fixtures/progression-state.json +0 -45
  25. package/es/map-state-to-props/test/fixtures/slides/basic.json +0 -60
  26. package/es/map-state-to-props/test/fixtures/slides/plop.json +0 -56
  27. package/es/map-state-to-props/test/fixtures/slides/qcm-drag.json +0 -56
  28. package/es/map-state-to-props/test/fixtures/slides/qcm-graphic.json +0 -49
  29. package/es/map-state-to-props/test/fixtures/slides/qcm.json +0 -43
  30. package/es/map-state-to-props/test/fixtures/slides/slider.json +0 -57
  31. package/es/map-state-to-props/test/fixtures/slides/template.json +0 -49
  32. package/es/map-state-to-props/test/fixtures/slides/videos.json +0 -163
  33. package/es/map-state-to-props/test/fixtures/slides/with-context.json +0 -69
  34. package/es/map-state-to-props/test/header.js +0 -131
  35. package/es/map-state-to-props/test/header.js.map +0 -1
  36. package/es/map-state-to-props/test/index.js +0 -107
  37. package/es/map-state-to-props/test/index.js.map +0 -1
  38. package/es/map-state-to-props/test/player.js +0 -680
  39. package/es/map-state-to-props/test/player.js.map +0 -1
  40. package/es/map-state-to-props/test/popin-correction.create-header-cta.js +0 -301
  41. package/es/map-state-to-props/test/popin-correction.create-header-cta.js.map +0 -1
  42. package/es/map-state-to-props/test/popin-correction.js +0 -80
  43. package/es/map-state-to-props/test/popin-correction.js.map +0 -1
  44. package/es/map-state-to-props/test/popin-end.js +0 -313
  45. package/es/map-state-to-props/test/popin-end.js.map +0 -1
  46. package/es/map-state-to-props/test/popin-error.js +0 -77
  47. package/es/map-state-to-props/test/popin-error.js.map +0 -1
  48. package/es/map-state-to-props/test/resources.js +0 -31
  49. package/es/map-state-to-props/test/resources.js.map +0 -1
  50. package/es/test/add-timeout.js +0 -8
  51. package/es/test/add-timeout.js.map +0 -1
  52. package/es/test/helpers/css-register.js +0 -3
  53. package/es/test/helpers/css-register.js.map +0 -1
  54. package/es/test/helpers/macro.js +0 -6
  55. package/es/test/helpers/macro.js.map +0 -1
  56. package/es/test/index.js +0 -39
  57. package/es/test/index.js.map +0 -1
  58. package/es/test/init-reducers.js +0 -50
  59. package/es/test/init-reducers.js.map +0 -1
  60. package/es/test/locales.js +0 -8
  61. package/es/test/locales.js.map +0 -1
  62. package/es/test/run-app.js +0 -20
  63. package/es/test/run-app.js.map +0 -1
  64. package/es/test/store.js +0 -38
  65. package/es/test/store.js.map +0 -1
  66. package/es/views/test/helpers/render.js +0 -13
  67. package/es/views/test/helpers/render.js.map +0 -1
  68. package/es/views/test/helpers/state-to-vnode.js +0 -7
  69. package/es/views/test/helpers/state-to-vnode.js.map +0 -1
  70. package/es/views/test/loading.js +0 -15
  71. package/es/views/test/loading.js.map +0 -1
  72. package/es/views/test/popin-correction.js +0 -223
  73. package/es/views/test/popin-correction.js.map +0 -1
  74. package/es/views/test/popin-end.js +0 -93
  75. package/es/views/test/popin-end.js.map +0 -1
  76. package/es/views/test/router.js +0 -22
  77. package/es/views/test/router.js.map +0 -1
  78. package/es/views/test/slide.js +0 -339
  79. package/es/views/test/slide.js.map +0 -1
  80. package/lib/map-state-to-props/test/answer.js +0 -409
  81. package/lib/map-state-to-props/test/answer.js.map +0 -1
  82. package/lib/map-state-to-props/test/fixtures/player/clue.json +0 -131
  83. package/lib/map-state-to-props/test/fixtures/player/loading-clue.json +0 -131
  84. package/lib/map-state-to-props/test/fixtures/player/no-clue.json +0 -118
  85. package/lib/map-state-to-props/test/fixtures/player/slide-no-lessons.json +0 -115
  86. package/lib/map-state-to-props/test/fixtures/player/slide.json +0 -127
  87. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-extra-life.json +0 -139
  88. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-failure.json +0 -145
  89. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-next-level.json +0 -282
  90. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-revival.json +0 -140
  91. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-success-node.json +0 -154
  92. package/lib/map-state-to-props/test/fixtures/popin-correction/popin-success.json +0 -268
  93. package/lib/map-state-to-props/test/fixtures/popin-correction/state-fail-multiple-answers.json +0 -473
  94. package/lib/map-state-to-props/test/fixtures/popin-end/fail.json +0 -205
  95. package/lib/map-state-to-props/test/fixtures/popin-end/learner-adaptive-failure.json +0 -209
  96. package/lib/map-state-to-props/test/fixtures/popin-end/learner-failure-with-redirection.json +0 -211
  97. package/lib/map-state-to-props/test/fixtures/popin-end/learner-failure.json +0 -211
  98. package/lib/map-state-to-props/test/fixtures/popin-end/learner-success-with-redirection.json +0 -278
  99. package/lib/map-state-to-props/test/fixtures/popin-end/learner-success.json +0 -275
  100. package/lib/map-state-to-props/test/fixtures/popin-end/success.json +0 -223
  101. package/lib/map-state-to-props/test/fixtures/progression-learner.json +0 -102
  102. package/lib/map-state-to-props/test/fixtures/progression-state.json +0 -45
  103. package/lib/map-state-to-props/test/fixtures/slides/basic.json +0 -60
  104. package/lib/map-state-to-props/test/fixtures/slides/plop.json +0 -56
  105. package/lib/map-state-to-props/test/fixtures/slides/qcm-drag.json +0 -56
  106. package/lib/map-state-to-props/test/fixtures/slides/qcm-graphic.json +0 -49
  107. package/lib/map-state-to-props/test/fixtures/slides/qcm.json +0 -43
  108. package/lib/map-state-to-props/test/fixtures/slides/slider.json +0 -57
  109. package/lib/map-state-to-props/test/fixtures/slides/template.json +0 -49
  110. package/lib/map-state-to-props/test/fixtures/slides/videos.json +0 -163
  111. package/lib/map-state-to-props/test/fixtures/slides/with-context.json +0 -69
  112. package/lib/map-state-to-props/test/header.js +0 -143
  113. package/lib/map-state-to-props/test/header.js.map +0 -1
  114. package/lib/map-state-to-props/test/index.js +0 -100
  115. package/lib/map-state-to-props/test/index.js.map +0 -1
  116. package/lib/map-state-to-props/test/player.js +0 -714
  117. package/lib/map-state-to-props/test/player.js.map +0 -1
  118. package/lib/map-state-to-props/test/popin-correction.create-header-cta.js +0 -315
  119. package/lib/map-state-to-props/test/popin-correction.create-header-cta.js.map +0 -1
  120. package/lib/map-state-to-props/test/popin-correction.js +0 -85
  121. package/lib/map-state-to-props/test/popin-correction.js.map +0 -1
  122. package/lib/map-state-to-props/test/popin-end.js +0 -328
  123. package/lib/map-state-to-props/test/popin-end.js.map +0 -1
  124. package/lib/map-state-to-props/test/popin-error.js +0 -85
  125. package/lib/map-state-to-props/test/popin-error.js.map +0 -1
  126. package/lib/map-state-to-props/test/resources.js +0 -42
  127. package/lib/map-state-to-props/test/resources.js.map +0 -1
  128. package/lib/test/add-timeout.js +0 -14
  129. package/lib/test/add-timeout.js.map +0 -1
  130. package/lib/test/helpers/css-register.js +0 -8
  131. package/lib/test/helpers/css-register.js.map +0 -1
  132. package/lib/test/helpers/macro.js +0 -12
  133. package/lib/test/helpers/macro.js.map +0 -1
  134. package/lib/test/index.js +0 -53
  135. package/lib/test/index.js.map +0 -1
  136. package/lib/test/init-reducers.js +0 -57
  137. package/lib/test/init-reducers.js.map +0 -1
  138. package/lib/test/locales.js +0 -18
  139. package/lib/test/locales.js.map +0 -1
  140. package/lib/test/run-app.js +0 -27
  141. package/lib/test/run-app.js.map +0 -1
  142. package/lib/test/store.js +0 -45
  143. package/lib/test/store.js.map +0 -1
  144. package/lib/views/test/helpers/render.js +0 -24
  145. package/lib/views/test/helpers/render.js.map +0 -1
  146. package/lib/views/test/helpers/state-to-vnode.js +0 -14
  147. package/lib/views/test/helpers/state-to-vnode.js.map +0 -1
  148. package/lib/views/test/loading.js +0 -22
  149. package/lib/views/test/loading.js.map +0 -1
  150. package/lib/views/test/popin-correction.js +0 -237
  151. package/lib/views/test/popin-correction.js.map +0 -1
  152. package/lib/views/test/popin-end.js +0 -105
  153. package/lib/views/test/popin-end.js.map +0 -1
  154. package/lib/views/test/router.js +0 -32
  155. package/lib/views/test/router.js.map +0 -1
  156. package/lib/views/test/slide.js +0 -363
  157. package/lib/views/test/slide.js.map +0 -1
@@ -1,154 +0,0 @@
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
- }
@@ -1,268 +0,0 @@
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
- }