@coorpacademy/components 10.3.16 → 10.3.19

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 (1025) hide show
  1. package/es/atom/autocomplete/test/fixtures/error.js +1 -1
  2. package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
  3. package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
  4. package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  5. package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
  6. package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  7. package/es/atom/clue/index.js.map +1 -1
  8. package/es/atom/content-badge/test/fixtures.js +2 -0
  9. package/es/atom/content-badge/test/fixtures.js.map +1 -1
  10. package/es/atom/cta/test/fixtures/certification.js +1 -1
  11. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  13. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  15. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/light.js +1 -1
  17. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/logout.js +1 -1
  19. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  21. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  23. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  27. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  29. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  30. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  31. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  32. package/es/atom/drag-and-drop/index.js +1 -1
  33. package/es/atom/drag-and-drop/index.js.map +1 -1
  34. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  35. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  36. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  37. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  38. package/es/atom/image-upload/index.js +1 -1
  39. package/es/atom/image-upload/index.js.map +1 -1
  40. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  41. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  52. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  53. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  54. package/es/atom/input-html/index.js.map +1 -1
  55. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  56. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  57. package/es/atom/link/index.js +3 -2
  58. package/es/atom/link/index.js.map +1 -1
  59. package/es/atom/promo-code/index.js.map +1 -1
  60. package/es/atom/provider/index.js.map +1 -1
  61. package/es/atom/provider/test/index.js +1 -1
  62. package/es/atom/provider/test/index.js.map +1 -1
  63. package/es/atom/range/index.js +1 -1
  64. package/es/atom/range/index.js.map +1 -1
  65. package/es/atom/range/test/fixtures/multi.js +1 -1
  66. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  67. package/es/atom/range/test/index.js +9 -9
  68. package/es/atom/range/test/index.js.map +1 -1
  69. package/es/atom/video-upload/index.js +1 -1
  70. package/es/atom/video-upload/index.js.map +1 -1
  71. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  72. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  73. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  74. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  75. package/es/hoc/animation-scheduler/index.js +3 -3
  76. package/es/hoc/animation-scheduler/index.js.map +1 -1
  77. package/es/hoc/swapper/index.js +4 -2
  78. package/es/hoc/swapper/index.js.map +1 -1
  79. package/es/hoc/transition/index.js +1 -1
  80. package/es/hoc/transition/index.js.map +1 -1
  81. package/es/molecule/add-to-my-list/index.js +1 -1
  82. package/es/molecule/add-to-my-list/index.js.map +1 -1
  83. package/es/molecule/answer/index.js +3 -2
  84. package/es/molecule/answer/index.js.map +1 -1
  85. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  86. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  87. package/es/molecule/answer/test/fixtures/default.js +1 -1
  88. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  89. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  90. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  91. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  92. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  93. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  94. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  95. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  96. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  97. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  98. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  99. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  100. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  101. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  102. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  103. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  104. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  105. package/es/molecule/answer/test/fixtures/range.js +1 -1
  106. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  107. package/es/molecule/answer/test/fixtures/template.js +1 -1
  108. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  109. package/es/molecule/banner/test/fixtures.js +8 -0
  110. package/es/molecule/banner/test/fixtures.js.map +1 -1
  111. package/es/molecule/brand-form-group/index.js +18 -18
  112. package/es/molecule/brand-form-group/index.js.map +1 -1
  113. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  114. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  115. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  116. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  117. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  118. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  119. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  120. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  121. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  122. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  123. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  124. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  125. package/es/molecule/card/index.js +1 -1
  126. package/es/molecule/card/index.js.map +1 -1
  127. package/es/molecule/card/selectable.css +1 -8
  128. package/es/molecule/card/selectable.js +2 -4
  129. package/es/molecule/card/selectable.js.map +1 -1
  130. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  131. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  132. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  133. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  134. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  135. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  136. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  137. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  138. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  139. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  140. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  141. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  142. package/es/molecule/card-with-button/index.js.map +1 -1
  143. package/es/molecule/coorp-manager-roles/index.js +1 -1
  144. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  145. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  146. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  147. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  148. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  149. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  150. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  151. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  152. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  153. package/es/molecule/dashboard/news-list/index.js +1 -1
  154. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  155. package/es/molecule/dashboard/start-battle/index.js +1 -1
  156. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  157. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  158. package/es/molecule/drag-and-drop/index.js +1 -1
  159. package/es/molecule/drag-and-drop/index.js.map +1 -1
  160. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  161. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  162. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  163. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  164. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  165. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  166. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  167. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  168. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  169. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  170. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  171. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  172. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  173. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  174. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  175. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  176. package/es/molecule/feedback/index.js +1 -1
  177. package/es/molecule/feedback/index.js.map +1 -1
  178. package/es/molecule/filters/test/fixtures/default.js +4 -4
  179. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  180. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  181. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  182. package/es/molecule/filters/test/fixtures/one.js +2 -2
  183. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  184. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  185. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  186. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  187. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  188. package/es/molecule/filters/test/fixtures/three.js +3 -3
  189. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  190. package/es/molecule/filters/test/fixtures/two.js +3 -3
  191. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  192. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  193. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  194. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  195. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  196. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  197. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  198. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  199. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  200. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  201. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  202. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  203. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  204. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  205. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  206. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  207. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  208. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  209. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  210. package/es/molecule/popin/index.js +1 -1
  211. package/es/molecule/popin/index.js.map +1 -1
  212. package/es/molecule/progress-bar/index.js +1 -1
  213. package/es/molecule/progress-bar/index.js.map +1 -1
  214. package/es/molecule/questions/drop-down/index.js +1 -1
  215. package/es/molecule/questions/drop-down/index.js.map +1 -1
  216. package/es/molecule/questions/question-range/index.js +3 -2
  217. package/es/molecule/questions/question-range/index.js.map +1 -1
  218. package/es/molecule/questions/template/index.js +2 -2
  219. package/es/molecule/questions/template/index.js.map +1 -1
  220. package/es/molecule/questions/template/test/index.js +1 -1
  221. package/es/molecule/questions/template/test/index.js.map +1 -1
  222. package/es/molecule/quick-access-card/index.js.map +1 -1
  223. package/es/molecule/resource-player/index.js +2 -1
  224. package/es/molecule/resource-player/index.js.map +1 -1
  225. package/es/molecule/select-multiple/index.js +3 -3
  226. package/es/molecule/select-multiple/index.js.map +1 -1
  227. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  228. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  229. package/es/molecule/select-multiple/test/index.js +2 -2
  230. package/es/molecule/select-multiple/test/index.js.map +1 -1
  231. package/es/molecule/setup-section/index.js +1 -1
  232. package/es/molecule/setup-section/index.js.map +1 -1
  233. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  234. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  235. package/es/molecule/setup-slide/index.js +8 -8
  236. package/es/molecule/setup-slide/index.js.map +1 -1
  237. package/es/molecule/share/index.js +1 -1
  238. package/es/molecule/share/index.js.map +1 -1
  239. package/es/molecule/video-iframe/index.js +1 -1
  240. package/es/molecule/video-iframe/index.js.map +1 -1
  241. package/es/molecule/video-player/index.js +3 -1
  242. package/es/molecule/video-player/index.js.map +1 -1
  243. package/es/molecule/video-player/jwplayer.js +2 -2
  244. package/es/molecule/video-player/jwplayer.js.map +1 -1
  245. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  246. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  247. package/es/molecule/video-player/vimeo.js +1 -1
  248. package/es/molecule/video-player/vimeo.js.map +1 -1
  249. package/es/molecule/wizard-summary/index.js +16 -8
  250. package/es/molecule/wizard-summary/index.js.map +1 -1
  251. package/es/organism/accordion/coorp-manager/index.js +1 -1
  252. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  253. package/es/organism/accordion/toggler/index.js +1 -1
  254. package/es/organism/accordion/toggler/index.js.map +1 -1
  255. package/es/organism/accordion/toggler/test/render.js +2 -2
  256. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  257. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  258. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  259. package/es/organism/content-translation/index.js +2 -2
  260. package/es/organism/content-translation/index.js.map +1 -1
  261. package/es/organism/content-translation/test/fixtures/default.js +2 -2
  262. package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
  263. package/es/organism/content-translation/test/fixtures.js +15 -0
  264. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  265. package/es/organism/course-selection/index.js +7 -0
  266. package/es/organism/course-selection/index.js.map +1 -1
  267. package/es/organism/course-selection/style.css +11 -1
  268. package/es/organism/course-selection/test/fixtures/default.js +31 -5
  269. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  270. package/es/organism/course-selection/test/fixtures/filtered.js +2 -2
  271. package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  272. package/es/organism/course-selection/test/fixtures/sorted-selected.js +5 -5
  273. package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  274. package/es/organism/course-selection/test/fixtures/unsorted-selected.js +5 -5
  275. package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  276. package/es/organism/discussion/test/fixtures/default.js +1 -1
  277. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  278. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  279. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  280. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  281. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  282. package/es/organism/get-the-app/index.js +2 -2
  283. package/es/organism/get-the-app/index.js.map +1 -1
  284. package/es/organism/list-item/test/fixtures.js +19 -0
  285. package/es/organism/list-item/test/fixtures.js.map +1 -0
  286. package/es/organism/list-items/test/fixtures/archived.js +1 -1
  287. package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
  288. package/es/organism/list-items/test/fixtures/draft.js +1 -1
  289. package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
  290. package/es/organism/list-items/test/fixtures/published.js +1 -1
  291. package/es/organism/list-items/test/fixtures/published.js.map +1 -1
  292. package/es/organism/list-items/test/fixtures.js +17 -0
  293. package/es/organism/list-items/test/fixtures.js.map +1 -0
  294. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  295. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  296. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  297. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  298. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  299. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  300. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  301. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  302. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  303. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  304. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  305. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  306. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  307. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  308. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  309. package/es/organism/settings/index.js +3 -2
  310. package/es/organism/settings/index.js.map +1 -1
  311. package/es/organism/setup-header/style.css +1 -0
  312. package/es/organism/sidebar/index.js +11 -10
  313. package/es/organism/sidebar/index.js.map +1 -1
  314. package/es/organism/user-preferences/index.js +3 -2
  315. package/es/organism/user-preferences/index.js.map +1 -1
  316. package/es/organism/wizard-contents/index.js +26 -17
  317. package/es/organism/wizard-contents/index.js.map +1 -1
  318. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  319. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  320. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  321. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  322. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  323. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  324. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  325. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  326. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  327. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  328. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  329. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  330. package/es/template/activity/index.js +1 -1
  331. package/es/template/activity/index.js.map +1 -1
  332. package/es/template/activity/test/progression-item-test.js +1 -1
  333. package/es/template/activity/test/progression-item-test.js.map +1 -1
  334. package/es/template/app-player/player/slides/footer/index.js +1 -1
  335. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  336. package/es/template/app-player/player/slides/index.js +14 -11
  337. package/es/template/app-player/player/slides/index.js.map +1 -1
  338. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  339. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  340. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  341. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  342. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  343. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  344. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  345. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  346. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  347. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  348. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  349. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  350. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  351. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  352. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  353. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  354. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  355. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  356. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  357. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  358. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  359. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  360. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  361. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  362. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  363. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  364. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  365. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  366. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  367. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  368. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  369. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  370. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  371. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  372. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  373. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  374. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  375. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  376. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  377. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  378. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  379. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  380. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  381. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  382. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  384. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  385. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  386. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  387. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  388. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  389. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  390. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  391. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  392. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  393. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  394. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  395. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  396. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  397. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  398. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  399. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  400. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  401. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  402. package/es/template/app-player/popin-correction/index.js +3 -2
  403. package/es/template/app-player/popin-correction/index.js.map +1 -1
  404. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  405. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  406. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  407. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  408. package/es/template/app-player/popin-end/summary.js +11 -7
  409. package/es/template/app-player/popin-end/summary.js.map +1 -1
  410. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  411. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  412. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  413. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  414. package/es/template/app-player/popin-header/index.js +4 -3
  415. package/es/template/app-player/popin-header/index.js.map +1 -1
  416. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  417. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  418. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  419. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  420. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  421. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  422. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  423. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  424. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  425. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  426. package/es/template/back-office/brand-update/index.js +8 -8
  427. package/es/template/back-office/brand-update/index.js.map +1 -1
  428. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  429. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  430. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  431. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  432. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  433. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  434. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  435. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  436. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  437. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  438. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  439. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  440. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  441. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  442. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  443. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  444. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  445. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  446. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  447. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  448. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +1 -1
  449. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  450. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  451. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  452. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  453. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  454. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  455. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  456. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  457. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  458. package/es/template/back-office/brand-update/test/fixtures.js +20 -2
  459. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  460. package/es/template/cockpit/jw-uploader/index.js +1 -1
  461. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  462. package/es/template/common/dashboard/index.js +1 -1
  463. package/es/template/common/dashboard/index.js.map +1 -1
  464. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  465. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  466. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  467. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  468. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  469. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  470. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  471. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  472. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  473. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  474. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  475. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  476. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  477. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  478. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  479. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  480. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  481. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  482. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  483. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  484. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  485. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  486. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  487. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  488. package/es/util/shallow-compare.js.map +1 -1
  489. package/es/util/test/navigation.js +4 -3
  490. package/es/util/test/navigation.js.map +1 -1
  491. package/lib/atom/autocomplete/index.js +2 -2
  492. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  493. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  494. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  495. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  496. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  497. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  498. package/lib/atom/button-link/index.js +2 -2
  499. package/lib/atom/button-link-icon-only/index.js +2 -2
  500. package/lib/atom/button-menu/index.js +2 -2
  501. package/lib/atom/chips/index.js +2 -2
  502. package/lib/atom/clue/index.js.map +1 -1
  503. package/lib/atom/content-badge/test/fixtures.js +3 -0
  504. package/lib/atom/content-badge/test/fixtures.js.map +1 -1
  505. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  506. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  507. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  508. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  509. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  510. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  511. package/lib/atom/cta/test/fixtures/light.js +1 -1
  512. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  513. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  514. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  515. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  516. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  517. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  518. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  519. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  520. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  521. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  522. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  523. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  524. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  525. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  526. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  527. package/lib/atom/drag-and-drop/index.js +1 -1
  528. package/lib/atom/drag-and-drop/index.js.map +1 -1
  529. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  530. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  531. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  532. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  533. package/lib/atom/image-upload/index.js +3 -3
  534. package/lib/atom/image-upload/index.js.map +1 -1
  535. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  536. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  537. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  538. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  539. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  540. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  541. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  542. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  543. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  544. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  545. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  546. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  547. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  548. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  549. package/lib/atom/input-checkbox/index.js +2 -2
  550. package/lib/atom/input-color/index.js +2 -2
  551. package/lib/atom/input-doublestep/index.js +2 -2
  552. package/lib/atom/input-html/index.js.map +1 -1
  553. package/lib/atom/input-search/index.js +2 -2
  554. package/lib/atom/input-switch/index.js +2 -2
  555. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  556. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  557. package/lib/atom/input-text/index.js +2 -2
  558. package/lib/atom/input-textarea/index.js +2 -2
  559. package/lib/atom/link/index.js +4 -2
  560. package/lib/atom/link/index.js.map +1 -1
  561. package/lib/atom/promo-code/index.js.map +1 -1
  562. package/lib/atom/provider/index.js.map +1 -1
  563. package/lib/atom/provider/test/index.js +1 -1
  564. package/lib/atom/provider/test/index.js.map +1 -1
  565. package/lib/atom/range/index.js +1 -1
  566. package/lib/atom/range/index.js.map +1 -1
  567. package/lib/atom/range/test/fixtures/multi.js +1 -1
  568. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  569. package/lib/atom/range/test/index.js +9 -9
  570. package/lib/atom/range/test/index.js.map +1 -1
  571. package/lib/atom/select/index.js +2 -2
  572. package/lib/atom/tab/index.js +2 -2
  573. package/lib/atom/video-upload/index.js +1 -1
  574. package/lib/atom/video-upload/index.js.map +1 -1
  575. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  576. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  577. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  578. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  579. package/lib/hoc/animation/test/on-mount.js +2 -2
  580. package/lib/hoc/animation-scheduler/index.js +3 -3
  581. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  582. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +2 -2
  583. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  584. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  585. package/lib/hoc/swapper/index.js +4 -2
  586. package/lib/hoc/swapper/index.js.map +1 -1
  587. package/lib/hoc/swapper/test/on-mount.js +2 -2
  588. package/lib/hoc/transition/index.js +3 -3
  589. package/lib/hoc/transition/index.js.map +1 -1
  590. package/lib/molecule/add-to-my-list/index.js +3 -3
  591. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  592. package/lib/molecule/answer/index.js +4 -2
  593. package/lib/molecule/answer/index.js.map +1 -1
  594. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  595. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  596. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  597. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  598. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  599. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  600. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  601. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  602. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  603. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  604. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  605. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  606. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  607. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  608. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  609. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  610. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  611. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  612. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  613. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  614. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  615. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  616. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  617. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  618. package/lib/molecule/banner/test/fixtures.js +12 -0
  619. package/lib/molecule/banner/test/fixtures.js.map +1 -1
  620. package/lib/molecule/brand-create-form/index.js +2 -2
  621. package/lib/molecule/brand-form-group/index.js +18 -18
  622. package/lib/molecule/brand-form-group/index.js.map +1 -1
  623. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  624. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  625. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  626. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  627. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  628. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  629. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  630. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  631. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  632. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  633. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  634. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  635. package/lib/molecule/bullet-point-menu-button/index.js +2 -2
  636. package/lib/molecule/card/index.js +3 -3
  637. package/lib/molecule/card/index.js.map +1 -1
  638. package/lib/molecule/card/selectable.css +1 -8
  639. package/lib/molecule/card/selectable.js +1 -3
  640. package/lib/molecule/card/selectable.js.map +1 -1
  641. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  642. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  643. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  644. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  645. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  646. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  647. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  648. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  649. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  650. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  651. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  652. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  653. package/lib/molecule/card-with-button/index.js.map +1 -1
  654. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  655. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  656. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  657. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  658. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  659. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  660. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  661. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  662. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  663. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  664. package/lib/molecule/dashboard/news-list/index.js +1 -1
  665. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  666. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  667. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  668. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  669. package/lib/molecule/drag-and-drop/index.js +3 -3
  670. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  671. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  672. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  673. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  674. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  675. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  676. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  677. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  678. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  679. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  680. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  681. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  682. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  683. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  684. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  685. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  686. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  687. package/lib/molecule/feedback/index.js +3 -3
  688. package/lib/molecule/feedback/index.js.map +1 -1
  689. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  690. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  691. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  692. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  693. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  694. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  695. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  696. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  697. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  698. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  699. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  700. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  701. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  702. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  703. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  704. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  705. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  706. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  707. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  708. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  709. package/lib/molecule/hero/index.js +2 -2
  710. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  711. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  712. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  713. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  714. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  715. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  716. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  717. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  718. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  719. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  720. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  721. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  722. package/lib/molecule/popin/index.js +3 -3
  723. package/lib/molecule/popin/index.js.map +1 -1
  724. package/lib/molecule/progress-bar/index.js +1 -1
  725. package/lib/molecule/progress-bar/index.js.map +1 -1
  726. package/lib/molecule/questions/drop-down/index.js +3 -3
  727. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  728. package/lib/molecule/questions/free-text/index.js +2 -2
  729. package/lib/molecule/questions/question-range/index.js +4 -2
  730. package/lib/molecule/questions/question-range/index.js.map +1 -1
  731. package/lib/molecule/questions/template/index.js +2 -2
  732. package/lib/molecule/questions/template/index.js.map +1 -1
  733. package/lib/molecule/questions/template/test/index.js +1 -1
  734. package/lib/molecule/questions/template/test/index.js.map +1 -1
  735. package/lib/molecule/quick-access-card/index.js.map +1 -1
  736. package/lib/molecule/resource-player/index.js +3 -1
  737. package/lib/molecule/resource-player/index.js.map +1 -1
  738. package/lib/molecule/scope-tabs/index.js +2 -2
  739. package/lib/molecule/search-form/index.js +2 -2
  740. package/lib/molecule/select-multiple/index.js +5 -5
  741. package/lib/molecule/select-multiple/index.js.map +1 -1
  742. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  743. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  744. package/lib/molecule/select-multiple/test/index.js +4 -4
  745. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  746. package/lib/molecule/setup-section/index.js +1 -1
  747. package/lib/molecule/setup-section/index.js.map +1 -1
  748. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  749. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  750. package/lib/molecule/setup-sections/index.js +2 -2
  751. package/lib/molecule/setup-slide/index.js +8 -8
  752. package/lib/molecule/setup-slide/index.js.map +1 -1
  753. package/lib/molecule/share/index.js +3 -3
  754. package/lib/molecule/share/index.js.map +1 -1
  755. package/lib/molecule/titled-checkbox/index.js +2 -2
  756. package/lib/molecule/video-iframe/index.js +1 -1
  757. package/lib/molecule/video-iframe/index.js.map +1 -1
  758. package/lib/molecule/video-player/index.js +3 -1
  759. package/lib/molecule/video-player/index.js.map +1 -1
  760. package/lib/molecule/video-player/jwplayer.js +2 -2
  761. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  762. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  763. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  764. package/lib/molecule/video-player/vimeo.js +1 -1
  765. package/lib/molecule/video-player/vimeo.js.map +1 -1
  766. package/lib/molecule/wizard-summary/index.js +18 -10
  767. package/lib/molecule/wizard-summary/index.js.map +1 -1
  768. package/lib/organism/accordion/container/index.js +2 -2
  769. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  770. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  771. package/lib/organism/accordion/toggler/index.js +1 -1
  772. package/lib/organism/accordion/toggler/index.js.map +1 -1
  773. package/lib/organism/accordion/toggler/test/render.js +2 -2
  774. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  775. package/lib/organism/brand-form/index.js +2 -2
  776. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  777. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  778. package/lib/organism/content-translation/index.js +2 -2
  779. package/lib/organism/content-translation/index.js.map +1 -1
  780. package/lib/organism/content-translation/test/fixtures/default.js +2 -2
  781. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
  782. package/lib/organism/content-translation/test/fixtures.js +25 -0
  783. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  784. package/lib/organism/course-selection/index.js +8 -0
  785. package/lib/organism/course-selection/index.js.map +1 -1
  786. package/lib/organism/course-selection/style.css +11 -1
  787. package/lib/organism/course-selection/test/fixtures/default.js +31 -5
  788. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  789. package/lib/organism/course-selection/test/fixtures/filtered.js +2 -2
  790. package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  791. package/lib/organism/course-selection/test/fixtures/sorted-selected.js +5 -5
  792. package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  793. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +5 -5
  794. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  795. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  796. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  797. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  798. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  799. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  800. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  801. package/lib/organism/get-the-app/index.js +2 -2
  802. package/lib/organism/get-the-app/index.js.map +1 -1
  803. package/lib/organism/list-item/test/fixtures.js +31 -0
  804. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  805. package/lib/organism/list-items/test/fixtures/archived.js +1 -1
  806. package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
  807. package/lib/organism/list-items/test/fixtures/draft.js +1 -1
  808. package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
  809. package/lib/organism/list-items/test/fixtures/published.js +1 -1
  810. package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
  811. package/lib/organism/list-items/test/fixtures.js +28 -0
  812. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  813. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  814. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  815. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  816. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  817. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  818. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  819. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  820. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  821. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  822. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  823. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  824. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  825. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  826. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  827. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  828. package/lib/organism/settings/index.js +4 -2
  829. package/lib/organism/settings/index.js.map +1 -1
  830. package/lib/organism/setup-header/style.css +1 -0
  831. package/lib/organism/sidebar/index.js +14 -12
  832. package/lib/organism/sidebar/index.js.map +1 -1
  833. package/lib/organism/user-preferences/index.js +4 -2
  834. package/lib/organism/user-preferences/index.js.map +1 -1
  835. package/lib/organism/wizard-contents/index.js +26 -17
  836. package/lib/organism/wizard-contents/index.js.map +1 -1
  837. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  838. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  839. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  840. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  841. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  842. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  843. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  844. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  845. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  846. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  847. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  848. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  849. package/lib/template/activity/index.js +1 -1
  850. package/lib/template/activity/index.js.map +1 -1
  851. package/lib/template/activity/progression-item.js +2 -2
  852. package/lib/template/activity/test/progression-item-test.js +1 -1
  853. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  854. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  855. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  856. package/lib/template/app-player/player/slides/index.js +15 -11
  857. package/lib/template/app-player/player/slides/index.js.map +1 -1
  858. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  859. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  860. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  861. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  862. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  863. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  864. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  865. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  866. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  867. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  868. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  869. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  870. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  871. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  872. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  873. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  874. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  875. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  876. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  877. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  878. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  879. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  880. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  881. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  882. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  883. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  884. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  885. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  886. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  887. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  888. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  889. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  890. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  891. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  892. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  893. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  894. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  895. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  896. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  897. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  898. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  899. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  900. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  901. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  902. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  903. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  904. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  905. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  906. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  907. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  908. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  909. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  910. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  911. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  912. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  913. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  914. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  915. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  916. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  917. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  918. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  919. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  920. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  921. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  922. package/lib/template/app-player/popin-correction/index.js +6 -4
  923. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  924. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  925. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  926. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  927. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  928. package/lib/template/app-player/popin-end/summary.js +12 -7
  929. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  930. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  931. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  932. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  933. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  934. package/lib/template/app-player/popin-header/index.js +7 -5
  935. package/lib/template/app-player/popin-header/index.js.map +1 -1
  936. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  937. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  938. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  939. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  940. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  941. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  942. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  943. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  944. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  945. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  946. package/lib/template/back-office/brand-update/index.js +8 -8
  947. package/lib/template/back-office/brand-update/index.js.map +1 -1
  948. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  949. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  950. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  951. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  952. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  953. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  954. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  955. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  956. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  957. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  958. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  959. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  960. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  961. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  962. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  963. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  964. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  965. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  966. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  967. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  968. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  969. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  970. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  971. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  972. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  973. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  974. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  975. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  976. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  977. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  978. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  979. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  980. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +1 -1
  981. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  982. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  983. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  984. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  985. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  986. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  987. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  988. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  989. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  990. package/lib/template/back-office/brand-update/test/fixtures.js +30 -3
  991. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  992. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  993. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  994. package/lib/template/common/dashboard/index.js +1 -1
  995. package/lib/template/common/dashboard/index.js.map +1 -1
  996. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  997. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  998. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  999. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  1000. package/lib/template/common/discipline/index.js +2 -2
  1001. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  1002. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  1003. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  1004. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  1005. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  1006. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  1007. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  1008. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  1009. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  1010. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  1011. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  1012. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  1013. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  1014. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  1015. package/lib/template/teams-dashboard/index.js +2 -2
  1016. package/lib/template/teams-dashboard/test/fixtures/default.js +1 -1
  1017. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  1018. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  1019. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  1020. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  1021. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  1022. package/lib/util/shallow-compare.js.map +1 -1
  1023. package/lib/util/test/navigation.js +5 -3
  1024. package/lib/util/test/navigation.js.map +1 -1
  1025. package/package.json +2 -2
@@ -55,7 +55,7 @@ const buildForm = content => {
55
55
  }
56
56
  };
57
57
 
58
- const buildButton = (type, step) => {
58
+ const buildButton = (type, step, side) => {
59
59
  const ICONS = {
60
60
  previous: {
61
61
  position: 'left',
@@ -77,7 +77,7 @@ const buildButton = (type, step) => {
77
77
  const buttonProps = {
78
78
  type: type === 'previous' ? 'secondary' : 'primary',
79
79
  'aria-label': `${type} step button`,
80
- 'data-name': `${type}-step-button`,
80
+ 'data-name': `${type}-step-button-${side}`,
81
81
  icon: ICONS[type],
82
82
  label,
83
83
  onClick
@@ -85,10 +85,10 @@ const buildButton = (type, step) => {
85
85
  return /*#__PURE__*/React.createElement(ButtonLink, buttonProps);
86
86
  };
87
87
 
88
- const buildActionZone = (previousStep, nextStep) => {
89
- const previousButton = previousStep ? buildButton('previous', previousStep) : null;
88
+ const buildActionZone = (previousStep, nextStep, side) => {
89
+ const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;
90
90
  const nextStepType = getOr('next', 'type', nextStep);
91
- const nextButton = nextStep ? buildButton(nextStepType, nextStep) : null;
91
+ const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;
92
92
  return /*#__PURE__*/React.createElement("div", {
93
93
  className: style.actionZone
94
94
  }, /*#__PURE__*/React.createElement("div", {
@@ -109,26 +109,35 @@ const WizardContents = props => {
109
109
  } = props;
110
110
  const headerView = buildHeader(wizardHeader, steps);
111
111
  const formView = buildForm(content);
112
- const actionView = buildActionZone(previousStep, nextStep);
112
+ const rightActionView = buildActionZone(previousStep, nextStep, 'right');
113
+ const footerActionView = buildActionZone(previousStep, nextStep, 'footer');
113
114
  return /*#__PURE__*/React.createElement("div", {
114
- className: style.container
115
+ className: style.container,
116
+ "data-name": "custom-playlist-summary"
115
117
  }, /*#__PURE__*/React.createElement("div", {
116
118
  className: style.leftSection
117
119
  }, headerView, /*#__PURE__*/React.createElement("div", {
118
120
  className: style.form
119
121
  }, formView)), /*#__PURE__*/React.createElement("div", {
120
- className: style.rightSection
122
+ className: style.rightSection,
123
+ "data-name": "summary-right-section"
121
124
  }, /*#__PURE__*/React.createElement("div", {
122
125
  className: style.stickySection
123
126
  }, /*#__PURE__*/React.createElement("div", {
124
- className: style.summaryZone
125
- }, /*#__PURE__*/React.createElement(WizardSummary, summary)), actionView)), /*#__PURE__*/React.createElement("div", {
126
- className: style.footer
127
+ className: style.summaryZone,
128
+ "data-name": "summary-zone"
129
+ }, /*#__PURE__*/React.createElement(WizardSummary, _extends({}, summary, {
130
+ side: 'right'
131
+ }))), rightActionView)), /*#__PURE__*/React.createElement("div", {
132
+ className: style.footer,
133
+ "data-name": "summary-footer-section"
127
134
  }, /*#__PURE__*/React.createElement("div", {
128
135
  className: style.summaryFooter
129
- }, /*#__PURE__*/React.createElement(WizardSummary, summary)), /*#__PURE__*/React.createElement("div", {
136
+ }, /*#__PURE__*/React.createElement(WizardSummary, _extends({}, summary, {
137
+ side: 'footer'
138
+ }))), /*#__PURE__*/React.createElement("div", {
130
139
  className: style.actionFooter
131
- }, actionView)));
140
+ }, footerActionView)));
132
141
  };
133
142
 
134
143
  WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -138,13 +147,13 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
138
147
  }).isRequired,
139
148
  steps: WizardSteps.propTypes.steps,
140
149
  summary: PropTypes.shape(_extends({}, WizardSummary.propTypes)).isRequired,
141
- content: PropTypes.oneOfType([PropTypes.shape(_extends(_extends({}, BrandForm.propTypes), {}, {
150
+ content: PropTypes.oneOfType([PropTypes.shape(_extends({}, BrandForm.propTypes, {
142
151
  type: PropTypes.oneOf(['form'])
143
- })), PropTypes.shape(_extends(_extends({}, ContentTranslate.propTypes), {}, {
152
+ })), PropTypes.shape(_extends({}, ContentTranslate.propTypes, {
144
153
  type: PropTypes.oneOf(['translate'])
145
- })), PropTypes.shape(_extends(_extends({}, OrganismSearchAndChipsResults.propTypes), {}, {
154
+ })), PropTypes.shape(_extends({}, OrganismSearchAndChipsResults.propTypes, {
146
155
  type: PropTypes.oneOf(['populations'])
147
- })), PropTypes.shape(_extends(_extends({}, CourseSelection.propTypes), {}, {
156
+ })), PropTypes.shape(_extends({}, CourseSelection.propTypes, {
148
157
  type: PropTypes.oneOf(['courses'])
149
158
  }))]),
150
159
  previousStep: PropTypes.shape({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","style","buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","header","headerTitle","buildForm","content","type","buildButton","step","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","summary","headerView","formView","actionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","shape","string","func","isRequired","oneOfType","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC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AAT,CAAhB,CADkB;AAExB/B,IAAAA,KAAK,EAAE9B,SAAS,CAACyD,MAFO;AAGxB3C,IAAAA,OAAO,EAAEd,SAAS,CAAC0D;AAHK,GAAhB;AA/Be,CAA3B;AAsCA,eAAelB,cAAf","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'custom-playlist-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n }\n};\n\nconst buildButton = (type, step) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep) => {\n const previousButton = previousStep ? buildButton('previous', previousStep) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm(content);\n const actionView = buildActionZone(previousStep, nextStep);\n\n return (\n <div className={style.container}>\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.summaryZone}>\n <WizardSummary {...summary} />\n </div>\n {actionView}\n </div>\n </div>\n <div className={style.footer}>\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} />\n </div>\n <div className={style.actionFooter}>{actionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","style","buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","shape","string","func","isRequired","oneOfType","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,gBAAP,MAA6B,wBAA7B;AACA,OAAOC,6BAAP,MAA0C,6BAA1C;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC3C,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAmBH,YAAzB;AAEA,QAAMI,eAAe,GAAG;AACtBC,IAAAA,IAAI,EAAE,OADgB;AAEtB,iBAAa,cAFS;AAGtB,kBAAc,cAHQ;AAItBC,IAAAA,IAAI,EAAE,OAJgB;AAKtBH,IAAAA;AALsB,GAAxB;AAQA,sBACE,8CACE;AAAK,IAAA,SAAS,EAAEL,KAAK,CAACS;AAAtB,kBACE,oBAAC,kBAAD,EAAwBH,eAAxB,CADF,eAEE;AAAK,IAAA,SAAS,EAAEN,KAAK,C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,CAACoD,SADf;AAEEnC,IAAAA,IAAI,EAAEtB,SAAS,CAAC+D,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAFR,KAD2B,EAK3B/D,SAAS,CAAC0D,KAAV,cACKpD,gBAAgB,CAACmD,SADtB;AAEEnC,IAAAA,IAAI,EAAEtB,SAAS,CAAC+D,KAAV,CAAgB,CAAC,WAAD,CAAhB;AAFR,KAL2B,EAS3B/D,SAAS,CAAC0D,KAAV,cACKnD,6BAA6B,CAACkD,SADnC;AAEEnC,IAAAA,IAAI,EAAEtB,SAAS,CAAC+D,KAAV,CAAgB,CAAC,aAAD,CAAhB;AAFR,KAT2B,EAa3B/D,SAAS,CAAC0D,KAAV,cACKlD,eAAe,CAACiD,SADrB;AAEEnC,IAAAA,IAAI,EAAEtB,SAAS,CAAC+D,KAAV,CAAgB,CAAC,SAAD,CAAhB;AAFR,KAb2B,CAApB,CATgB;AA2BzB7B,EAAAA,YAAY,EAAElC,SAAS,CAAC0D,KAAV,CAAgB;AAC5B3B,IAAAA,KAAK,EAAE/B,SAAS,CAAC2D,MADW;AAE5B7C,IAAAA,OAAO,EAAEd,SAAS,CAAC4D;AAFS,GAAhB,CA3BW;AA+BzBzB,EAAAA,QAAQ,EAAEnC,SAAS,CAAC0D,KAAV,CAAgB;AACxBpC,IAAAA,IAAI,EAAEtB,SAAS,CAAC+D,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;AAExBhC,IAAAA,KAAK,EAAE/B,SAAS,CAAC2D,MAFO;AAGxB7C,IAAAA,OAAO,EAAEd,SAAS,CAAC4D;AAHK,GAAhB;AA/Be,CAA3B;AAsCA,eAAenB,cAAf","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'custom-playlist-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm(content);\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"custom-playlist-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
@@ -24,7 +24,7 @@ export default {
24
24
  current: true
25
25
  }],
26
26
  summary: wizardSummary.props,
27
- content: _extends(_extends({}, addCoursesForm.props), {}, {
27
+ content: _extends({}, addCoursesForm.props, {
28
28
  type: 'courses'
29
29
  }),
30
30
  previousStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js"],"names":["wizardSummary","addCoursesForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,cAAP,MAA2B,iDAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAbK,CALF;AAwBLC,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,cAAc,CAACC,KADb;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport addCoursesForm from '../../../course-selection/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: false,\n current: true\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...addCoursesForm.props,\n type: 'courses'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-add-courses-create.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js"],"names":["wizardSummary","addCoursesForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,cAAP,MAA2B,iDAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAbK,CALF;AAwBLC,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,eACFX,cAAc,CAACC,KADb;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport addCoursesForm from '../../../course-selection/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: false,\n current: true\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...addCoursesForm.props,\n type: 'courses'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-add-courses-create.js"}
@@ -24,7 +24,7 @@ export default {
24
24
  done: false
25
25
  }],
26
26
  summary: wizardSummary.props,
27
- content: _extends(_extends({}, generalInformation.props), {}, {
27
+ content: _extends({}, generalInformation.props, {
28
28
  type: 'form'
29
29
  }),
30
30
  nextStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRD,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n type: 'next',\n label: 'Next step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-create.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,eACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRD,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n type: 'next',\n label: 'Next step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-create.js"}
@@ -24,7 +24,7 @@ export default {
24
24
  done: false
25
25
  }],
26
26
  summary: wizardSummary.props,
27
- content: _extends(_extends({}, generalInformation.props), {}, {
27
+ content: _extends({}, generalInformation.props, {
28
28
  type: 'form'
29
29
  }),
30
30
  nextStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,+DAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-edit.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,+DAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,eACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-edit.js"}
@@ -24,7 +24,7 @@ export default {
24
24
  done: false
25
25
  }],
26
26
  summary: wizardSummary.props,
27
- content: _extends(_extends({}, populationsForm.props), {}, {
27
+ content: _extends({}, populationsForm.props, {
28
28
  type: 'populations'
29
29
  }),
30
30
  previousStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-populations-create.js"],"names":["wizardSummary","populationsForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,eAAP,MAA4B,iEAA5B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KATK,EAcL;AACEN,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,eAAe,CAACC,KADd;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: false,\n current: true\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...populationsForm.props,\n type: 'populations'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'next',\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-populations-create.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-populations-create.js"],"names":["wizardSummary","populationsForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,eAAP,MAA4B,iEAA5B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KATK,EAcL;AACEN,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,eACFX,eAAe,CAACC,KADd;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: false,\n current: true\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...populationsForm.props,\n type: 'populations'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'next',\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-populations-create.js"}
@@ -24,7 +24,7 @@ export default {
24
24
  done: false
25
25
  }],
26
26
  summary: wizardSummary.props,
27
- content: _extends(_extends({}, translateForm.props), {}, {
27
+ content: _extends({}, translateForm.props, {
28
28
  type: 'translate'
29
29
  }),
30
30
  previousStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-translate-edit.js"],"names":["wizardSummary","translateForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,aAAP,MAA0B,oDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KALK,EAUL;AACEN,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,aAAa,CAACC,KADZ;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport translateForm from '../../../content-translation/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: false,\n current: true\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...translateForm.props,\n type: 'translate'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'next',\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-translate-edit.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-translate-edit.js"],"names":["wizardSummary","translateForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,aAAP,MAA0B,oDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KALK,EAUL;AACEN,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,eACFX,aAAa,CAACC,KADZ;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,MADE;AAERE,MAAAA,KAAK,EAAE,WAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport translateForm from '../../../content-translation/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: false,\n current: true\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...translateForm.props,\n type: 'translate'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'next',\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-translate-edit.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismWizardContents from '..';
5
+ import fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';
6
+ import fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';
7
+ import fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';
8
+ import fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';
9
+ import fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';
10
+ test('Organism › OrganismWizardContents > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(OrganismWizardContents.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Organism.OrganismWizardContents.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);
17
+ test('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);
18
+ test('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);
19
+ test('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);
20
+ test('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismWizardContents","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,+BAAP,MAA4C,wCAA5C;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,kCAAP,MAA+C,2CAA/C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AAEAR,IAAI,CAAC,iEAAD,EAAoES,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,sBAAsB,CAACQ,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,sBAA5G,EAAoIC,+BAApI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,sBAAjH,EAAyIE,oCAAzI,CAAJ;AACAL,IAAI,CAAC,sFAAD,EAAyFE,oBAAzF,EAA+GC,sBAA/G,EAAuIG,kCAAvI,CAAJ;AACAN,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqII,gCAArI,CAAJ;AACAP,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,sBAAzG,EAAiIK,4BAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
@@ -137,7 +137,7 @@ Progression.propTypes = process.env.NODE_ENV !== "production" ? {
137
137
  }).isRequired,
138
138
  engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),
139
139
  loading: PropTypes.bool.isRequired,
140
- progressions: PropTypes.arrayOf(PropTypes.shape(_extends(_extends({}, ProgressionItem.propTypes), {}, {
140
+ progressions: PropTypes.arrayOf(PropTypes.shape(_extends({}, ProgressionItem.propTypes, {
141
141
  ref: PropTypes.string.isRequired
142
142
  }))),
143
143
  themeFilter: PropTypes.shape({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/template/activity/index.js"],"names":["React","PropTypes","classnames","Provider","Button","Select","Loader","innerHTML","ProgressionItem","EngineStars","StarsSummary","style","Progression","Component","constructor","props","context","e","recommendation","stopPropagation","preventDefault","onClick","themeFilter","onChange","handleClick","bind","handleSelectTheme","render","mainTitle","mainSubtitle","progressions","total","engines","loading","skin","primary","loader","allProgressions","map","progression","ref","coreProgression","core","themeSelect","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","course","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","childContextTypes","propTypes","string","isRequired","shape","label","stars","number","arrayOf","bool","func"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAA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, isEmpty} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport {innerHTML} from '../../atom/label/style.css';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nclass Progression extends React.Component {\n static propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleClick = this.handleClick.bind(this);\n this.handleSelectTheme = this.handleSelectTheme.bind(this);\n }\n\n handleClick = e => {\n const {recommendation} = this.props;\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n };\n\n handleSelectTheme = e => {\n const {\n themeFilter: {onChange}\n } = this.props;\n onChange && onChange(e);\n };\n\n render() {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n total,\n engines = [],\n themeFilter = {},\n loading\n } = this.props;\n const {skin} = this.context;\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem {...omit(['ref'], progression)} key={progression.ref} />\n ));\n\n const coreProgression = (\n <div data-name=\"activityCore\" className={style.core}>\n {allProgressions}\n </div>\n );\n const themeSelect = !isEmpty(themeFilter.options) ? (\n <Select\n borderClassName={style.selectBorder}\n className={style.select}\n theme=\"thematiques\"\n options={themeFilter.options}\n onChange={this.handleSelectTheme}\n />\n ) : null;\n const recommendationSection = !isEmpty(recommendation) ? (\n <div className={style.recommendationWrapper}>\n <p className={style.recommendationSection}>{recommendation.title} </p>\n <p className={style.recommendationSection}>\n <span>{recommendation.subtitle} </span>\n <span\n className={classnames(style.course, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: recommendation.courseTitle}}\n />\n </p>\n <Button\n type=\"link\"\n onClick={this.handleClick}\n submitValue={recommendation.cta}\n style={{\n backgroundColor: primary\n }}\n className={style.cta}\n />\n </div>\n ) : null;\n return (\n <div className={style.default}>\n <div data-name=\"activity-header\">\n <div className={style.mainTitle}>\n <span>{mainTitle}</span> {mainSubtitle}\n </div>\n <div className={style.headerProgression}>\n <div className={style.wrapperCta}>\n {themeSelect}\n {recommendationSection}\n </div>\n <StarsSummary engines={engines} total={total} />\n </div>\n </div>\n <div className={style.wrapperProgression} data-name=\"activityList\">\n {coreProgression}\n {loader}\n </div>\n </div>\n );\n }\n}\n\nexport default Progression;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/template/activity/index.js"],"names":["React","PropTypes","classnames","Provider","Button","Select","Loader","innerHTML","ProgressionItem","EngineStars","StarsSummary","style","Progression","Component","constructor","props","context","e","recommendation","stopPropagation","preventDefault","onClick","themeFilter","onChange","handleClick","bind","handleSelectTheme","render","mainTitle","mainSubtitle","progressions","total","engines","loading","skin","primary","loader","allProgressions","map","progression","ref","coreProgression","core","themeSelect","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","course","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","childContextTypes","propTypes","string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A,WAAW,EAAEpD,SAAS,CAAC6D,MAAV,CAAiBC,UAJA;AAK9B1C,IAAAA,OAAO,EAAEpB,SAAS,CAACqE;AALW,GAAhB;AAhBC,C;AAoIrB,eAAe1D,WAAf","sourcesContent":["import React from 'react';\nimport {get, omit, isEmpty} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport {innerHTML} from '../../atom/label/style.css';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nclass Progression extends React.Component {\n static propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleClick = this.handleClick.bind(this);\n this.handleSelectTheme = this.handleSelectTheme.bind(this);\n }\n\n handleClick = e => {\n const {recommendation} = this.props;\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n };\n\n handleSelectTheme = e => {\n const {\n themeFilter: {onChange}\n } = this.props;\n onChange && onChange(e);\n };\n\n render() {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n total,\n engines = [],\n themeFilter = {},\n loading\n } = this.props;\n const {skin} = this.context;\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem {...omit(['ref'], progression)} key={progression.ref} />\n ));\n\n const coreProgression = (\n <div data-name=\"activityCore\" className={style.core}>\n {allProgressions}\n </div>\n );\n const themeSelect = !isEmpty(themeFilter.options) ? (\n <Select\n borderClassName={style.selectBorder}\n className={style.select}\n theme=\"thematiques\"\n options={themeFilter.options}\n onChange={this.handleSelectTheme}\n />\n ) : null;\n const recommendationSection = !isEmpty(recommendation) ? (\n <div className={style.recommendationWrapper}>\n <p className={style.recommendationSection}>{recommendation.title} </p>\n <p className={style.recommendationSection}>\n <span>{recommendation.subtitle} </span>\n <span\n className={classnames(style.course, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: recommendation.courseTitle}}\n />\n </p>\n <Button\n type=\"link\"\n onClick={this.handleClick}\n submitValue={recommendation.cta}\n style={{\n backgroundColor: primary\n }}\n className={style.cta}\n />\n </div>\n ) : null;\n return (\n <div className={style.default}>\n <div data-name=\"activity-header\">\n <div className={style.mainTitle}>\n <span>{mainTitle}</span> {mainSubtitle}\n </div>\n <div className={style.headerProgression}>\n <div className={style.wrapperCta}>\n {themeSelect}\n {recommendationSection}\n </div>\n <StarsSummary engines={engines} total={total} />\n </div>\n </div>\n <div className={style.wrapperProgression} data-name=\"activityList\">\n {coreProgression}\n {loader}\n </div>\n </div>\n );\n }\n}\n\nexport default Progression;\n"],"file":"index.js"}
@@ -30,7 +30,7 @@ test('should call the onClick function with click on cta', t => {
30
30
  stopPropagation: () => t.pass()
31
31
  };
32
32
 
33
- const props = _extends(_extends({}, defaultFixture.props.progressions[0]), {}, {
33
+ const props = _extends({}, defaultFixture.props.progressions[0], {
34
34
  onClick: e => t.is(e, clickEvent)
35
35
  });
36
36
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/activity/test/progression-item-test.js"],"names":["browserEnv","test","React","shallow","configure","Adapter","Link","ProgressionItem","defaultFixture","adapter","Wrapper","props","skin","dark","primary","white","t","plan","clickEvent","preventDefault","pass","stopPropagation","progressions","onClick","e","is","wrapper","find","first","simulate","element","length"],"mappings":";;;;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,SAAQC,OAAR,EAAiBC,SAAjB,QAAiC,QAAjC;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,IAAP,MAAiB,oBAAjB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;;AAEA,MAAMK,OAAO,GAAGC,KAAK,IACnBJ,eAAe,CAACI,KAAD,EAAQ;AACrBC,EAAAA,IAAI,EAAE;AACJC,IAAAA,IAAI,EAAE,OADF;AAEJC,IAAAA,OAAO,EAAE,MAFL;AAGJC,IAAAA,KAAK,EAAE;AAHH;AADe,CAAR,CADjB;;AASAd,IAAI,CAAC,oDAAD,EAAuDe,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;AAEA,QAAMC,UAAU,GAAG;AAACC,IAAAA,cAAc,EAAE,MAAMH,CAAC,CAACI,IAAF,EAAvB;AAAiCC,IAAAA,eAAe,EAAE,MAAML,CAAC,CAACI,IAAF;AAAxD,GAAnB;;AACA,QAAMT,KAAK,yBAAOH,cAAc,CAACG,KAAf,CAAqBW,YAArB,CAAkC,CAAlC,CAAP;AAA6CC,IAAAA,OAAO,EAAEC,CAAC,IAAIR,CAAC,CAACS,EAAF,CAAKD,CAAL,EAAQN,UAAR;AAA3D,IAAX;;AACA,QAA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port {omit} from 'lodash/fp';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport Link from '../../../atom/link';\nimport ProgressionItem from '../progression-item';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst Wrapper = props =>\n ProgressionItem(props, {\n skin: {\n dark: 'black',\n primary: 'blue',\n white: 'white'\n }\n });\n\ntest('should call the onClick function with click on cta', t => {\n t.plan(3);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {...defaultFixture.props.progressions[0], onClick: e => t.is(e, clickEvent)};\n const wrapper = shallow(<Wrapper {...props} />);\n\n wrapper.find(Link).first().simulate('click', clickEvent);\n});\n\ntest('should not contain a link if progressionItem is disabled', t => {\n t.plan(1);\n\n const props = {...defaultFixture.props.progressions[3]};\n const wrapper = shallow(<Wrapper {...props} />);\n\n const element = wrapper.find(Link);\n t.is(element.length, 0);\n});\n\ntest('should not crash if onClick is not sent', t => {\n t.plan(2);\n\n const props = omit(['onClick'], defaultFixture.props.progressions[1]);\n const wrapper = shallow(<Wrapper {...props} />);\n\n wrapper\n .find(Link)\n .first()\n .simulate('click', {\n preventDefault: () => {\n t.pass();\n },\n stopPropagation: () => {\n t.pass();\n }\n });\n});\n"],"file":"progression-item-test.js"}
1
+ {"version":3,"sources":["../../../../src/template/activity/test/progression-item-test.js"],"names":["browserEnv","test","React","shallow","configure","Adapter","Link","ProgressionItem","defaultFixture","adapter","Wrapper","props","skin","dark","primary","white","t","plan","clickEvent","preventDefault","pass","stopPropagation","progressions","onClick","e","is","wrapper","find","first","simulate","element","length"],"mappings":";;;;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,SAAQC,OAAR,EAAiBC,SAAjB,QAAiC,QAAjC;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,IAAP,MAAi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D,EAAaQ,KAAb,CAAD,CAAvB;AAEA,QAAMmB,OAAO,GAAGJ,OAAO,CAACC,IAAR,CAAarB,IAAb,CAAhB;AACAU,EAAAA,CAAC,CAACS,EAAF,CAAKK,OAAO,CAACC,MAAb,EAAqB,CAArB;AACD,CARG,CAAJ;AAUA9B,IAAI,CAAC,yCAAD,EAA4Ce,CAAC,IAAI;AACnDA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;;AAEA,QAAMN,KAAK,GAAG,MAAK,CAAC,SAAD,CAAL,EAAkBH,cAAc,CAACG,KAAf,CAAqBW,YAArB,CAAkC,CAAlC,CAAlB,CAAd;;AACA,QAAMI,OAAO,GAAGvB,OAAO,eAAC,oBAAC,OAAD,EAAaQ,KAAb,CAAD,CAAvB;AAEAe,EAAAA,OAAO,CACJC,IADH,CACQrB,IADR,EAEGsB,KAFH,GAGGC,QAHH,CAGY,OAHZ,EAGqB;AACjBV,IAAAA,cAAc,EAAE,MAAM;AACpBH,MAAAA,CAAC,CAACI,IAAF;AACD,KAHgB;AAIjBC,IAAAA,eAAe,EAAE,MAAM;AACrBL,MAAAA,CAAC,CAACI,IAAF;AACD;AANgB,GAHrB;AAWD,CAjBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {omit} from 'lodash/fp';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport Link from '../../../atom/link';\nimport ProgressionItem from '../progression-item';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst Wrapper = props =>\n ProgressionItem(props, {\n skin: {\n dark: 'black',\n primary: 'blue',\n white: 'white'\n }\n });\n\ntest('should call the onClick function with click on cta', t => {\n t.plan(3);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {...defaultFixture.props.progressions[0], onClick: e => t.is(e, clickEvent)};\n const wrapper = shallow(<Wrapper {...props} />);\n\n wrapper.find(Link).first().simulate('click', clickEvent);\n});\n\ntest('should not contain a link if progressionItem is disabled', t => {\n t.plan(1);\n\n const props = {...defaultFixture.props.progressions[3]};\n const wrapper = shallow(<Wrapper {...props} />);\n\n const element = wrapper.find(Link);\n t.is(element.length, 0);\n});\n\ntest('should not crash if onClick is not sent', t => {\n t.plan(2);\n\n const props = omit(['onClick'], defaultFixture.props.progressions[1]);\n const wrapper = shallow(<Wrapper {...props} />);\n\n wrapper\n .find(Link)\n .first()\n .simulate('click', {\n preventDefault: () => {\n t.pass();\n },\n stopPropagation: () => {\n t.pass();\n }\n });\n});\n"],"file":"progression-item-test.js"}
@@ -103,7 +103,7 @@ class Button extends React.Component {
103
103
  onClick: onClick,
104
104
  onMouseEnter: this.handleMouseEnter,
105
105
  onMouseLeave: this.handleMouseLeave,
106
- style: _extends(_extends({}, hoverStyle), selectedColor)
106
+ style: _extends({}, hoverStyle, selectedColor)
107
107
  }, /*#__PURE__*/React.createElement("div", {
108
108
  className: highlighted ? style.highlighted : style.logo
109
109
  }, notifyView, /*#__PURE__*/React.createElement(IconType, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/template/app-player/player/slides/footer/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyFilterVideo2","MediaIcon","NovaCompositionCoorpacademyClue","ClueIcon","NovaCompositionCoorpacademyMap","ContextIcon","NovaCompositionCoorpacademyChat","CoachIcon","NovaCompositionCoorpacademyListBullets3","QuestionIcon","Provider","style","TABS","question","icon","media","clue","coach","className","context","Button","Component","constructor","props","onMouseEnter","setState","prevState","hovered","onMouseLeave","state","render","skin","grey","primaryColor","disabled","notify","selected","highlighted","title","type","onClick","colorIcon","selectedColor","borderTopColor","hoverStyle","IconType","button","notifyView","handleMouseEnter","handleMouseLeave","logo","color","childContextTypes","propTypes","bool","string","oneOf","isRequired","func","SlidesFooter","buttons","length","Buttons","map","key","wrapper","arrayOf","shape"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAk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AAAA,OAAO,EAAE1C,SAAS,CAAC4D;AATF,C;;AAoGrB,MAAMC,YAAY,GAAGpC,KAAK,IAAI;AAC5B,QAAM;AAACqC,IAAAA,OAAO,GAAG;AAAX,MAAiBrC,KAAvB;AACA,MAAIqC,OAAO,CAACC,MAAR,KAAmB,CAAvB,EAA0B,OAAO,IAAP;AAE1B,QAAMC,OAAO,GAAGF,OAAO,CAACG,GAAR,CAAY,CAACjB,MAAD,EAASkB,GAAT,KAAiB;AAC3C,wBAAO,oBAAC,MAAD,eAAYlB,MAAZ;AAAoB,MAAA,GAAG,EAAEkB;AAAzB,OAAP;AACD,GAFe,CAAhB;AAIA,sBACE;AAAK,iBAAU,cAAf;AAA8B,IAAA,SAAS,EAAErD,KAAK,CAACsD;AAA/C,KACGH,OADH,CADF;AAKD,CAbD;;AAeAH,YAAY,CAACN,SAAb,2CAAyB;AACvBO,EAAAA,OAAO,EAAE9D,SAAS,CAACoE,OAAV,CACPpE,SAAS,CAACqE,KAAV,CAAgB;AACdjC,IAAAA,QAAQ,EAAEpC,SAAS,CAACwD,IADN;AAEdnB,IAAAA,MAAM,EAAErC,SAAS,CAACwD,IAFJ;AAGdlB,IAAAA,QAAQ,EAAEtC,SAAS,CAACwD,IAHN;AAIdjB,IAAAA,WAAW,EAAEvC,SAAS,CAACwD,IAJT;AAKdhB,IAAAA,KAAK,EAAExC,SAAS,CAACyD,MALH;AAMdhB,IAAAA,IAAI,EAAEzC,SAAS,CAAC0D,KAAV,CAAgB,MAAK5C,IAAL,CAAhB,EAA4B6C,UANpB;AAOdjC,IAAAA,YAAY,EAAE1B,SAAS,CAAC4D,IAPV;AAQd9B,IAAAA,YAAY,EAAE9B,SAAS,CAAC4D,IARV;AASdlB,IAAAA,OAAO,EAAE1C,SAAS,CAAC4D;AATL,GAAhB,CADO;AADc,CAAzB;AAgBA,eAAeC,YAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyFilterVideo2 as MediaIcon,\n NovaCompositionCoorpacademyClue as ClueIcon,\n NovaCompositionCoorpacademyMap as ContextIcon,\n NovaCompositionCoorpacademyChat as CoachIcon,\n NovaCompositionCoorpacademyListBullets3 as QuestionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../../../atom/provider';\nimport style from './style.css';\n\nconst TABS = {\n question: {\n icon: QuestionIcon\n },\n media: {\n icon: MediaIcon\n },\n clue: {\n icon: ClueIcon\n },\n coach: {\n icon: CoachIcon,\n className: style.coach\n },\n context: {\n icon: ContextIcon\n }\n};\n\nclass Button extends React.Component {\n static propTypes = {\n disabled: PropTypes.bool,\n notify: PropTypes.bool,\n selected: PropTypes.bool,\n highlighted: PropTypes.bool,\n title: PropTypes.string,\n type: PropTypes.oneOf(keys(TABS)).isRequired,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onClick: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter} = this.props;\n\n this.setState(prevState => ({\n hovered: true\n }));\n onMouseEnter && onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave} = this.props;\n this.setState(prevState => ({\n hovered: false\n }));\n\n onMouseLeave && onMouseLeave();\n };\n\n render() {\n const {skin} = this.context;\n const {hovered} = this.state;\n const grey = get('common.grey', skin);\n const primaryColor = get('common.primary', skin);\n const {disabled, notify, selected, highlighted, title, type, onClick} = this.props;\n const colorIcon = selected ? primaryColor : grey;\n const selectedColor = (selected && {borderTopColor: primaryColor}) || {};\n\n const hoverStyle =\n !disabled && hovered\n ? {\n borderTopColor: primaryColor\n }\n : {};\n\n const IconType = get([type, 'icon'], TABS);\n const className = classnames(\n style.button,\n get([type, 'className'], TABS),\n selected && style.selected,\n disabled && style.disabled\n );\n\n const notifyView = notify ? <span className={style.notify} /> : null;\n return (\n <div\n data-name={`button`}\n data-type={type}\n data-selected={selected}\n data-disabled={disabled}\n className={className}\n onClick={onClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n style={{\n ...hoverStyle,\n ...selectedColor\n }}\n >\n <div className={highlighted ? style.highlighted : style.logo}>\n {notifyView}\n <IconType\n style={{\n color: colorIcon\n }}\n color={colorIcon}\n height={30}\n />\n </div>\n <div data-name=\"title\" className={style.title}>\n {title}\n </div>\n </div>\n );\n }\n}\n\nconst SlidesFooter = props => {\n const {buttons = []} = props;\n if (buttons.length === 0) return null;\n\n const Buttons = buttons.map((button, key) => {\n return <Button {...button} key={key} />;\n });\n\n return (\n <div data-name=\"slidesFooter\" className={style.wrapper}>\n {Buttons}\n </div>\n );\n};\n\nSlidesFooter.propTypes = {\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n notify: PropTypes.bool,\n selected: PropTypes.bool,\n highlighted: PropTypes.bool,\n title: PropTypes.string,\n type: PropTypes.oneOf(keys(TABS)).isRequired,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default SlidesFooter;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../../../src/template/app-player/player/slides/footer/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyFilterVideo2","MediaIcon","NovaCompositionCoorpacademyClue","ClueIcon","NovaCompositionCoorpacademyMap","ContextIcon","NovaCompositionCoorpacademyChat","CoachIcon","NovaCompositionCoorpacademyListBullets3","QuestionIcon","Provider","style","TABS","question","icon","media","clue","coach","className","context","Button","Component","constructor","props","onMouseEnter","setState","prevState","hovered","onMouseLeave","state","render","skin","grey","primaryColor","disabled","notify","selected","highlighted","title","type","onClick","colorIcon","selectedColor","borderTopColor","hoverStyle","IconType","button","notifyView","handleMouseEnter","handleMouseLeave","logo","color","childContextTypes","propTypes","bool","string","oneOf","isRequ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AeC,YAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyFilterVideo2 as MediaIcon,\n NovaCompositionCoorpacademyClue as ClueIcon,\n NovaCompositionCoorpacademyMap as ContextIcon,\n NovaCompositionCoorpacademyChat as CoachIcon,\n NovaCompositionCoorpacademyListBullets3 as QuestionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../../../atom/provider';\nimport style from './style.css';\n\nconst TABS = {\n question: {\n icon: QuestionIcon\n },\n media: {\n icon: MediaIcon\n },\n clue: {\n icon: ClueIcon\n },\n coach: {\n icon: CoachIcon,\n className: style.coach\n },\n context: {\n icon: ContextIcon\n }\n};\n\nclass Button extends React.Component {\n static propTypes = {\n disabled: PropTypes.bool,\n notify: PropTypes.bool,\n selected: PropTypes.bool,\n highlighted: PropTypes.bool,\n title: PropTypes.string,\n type: PropTypes.oneOf(keys(TABS)).isRequired,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onClick: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter} = this.props;\n\n this.setState(prevState => ({\n hovered: true\n }));\n onMouseEnter && onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave} = this.props;\n this.setState(prevState => ({\n hovered: false\n }));\n\n onMouseLeave && onMouseLeave();\n };\n\n render() {\n const {skin} = this.context;\n const {hovered} = this.state;\n const grey = get('common.grey', skin);\n const primaryColor = get('common.primary', skin);\n const {disabled, notify, selected, highlighted, title, type, onClick} = this.props;\n const colorIcon = selected ? primaryColor : grey;\n const selectedColor = (selected && {borderTopColor: primaryColor}) || {};\n\n const hoverStyle =\n !disabled && hovered\n ? {\n borderTopColor: primaryColor\n }\n : {};\n\n const IconType = get([type, 'icon'], TABS);\n const className = classnames(\n style.button,\n get([type, 'className'], TABS),\n selected && style.selected,\n disabled && style.disabled\n );\n\n const notifyView = notify ? <span className={style.notify} /> : null;\n return (\n <div\n data-name={`button`}\n data-type={type}\n data-selected={selected}\n data-disabled={disabled}\n className={className}\n onClick={onClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n style={{\n ...hoverStyle,\n ...selectedColor\n }}\n >\n <div className={highlighted ? style.highlighted : style.logo}>\n {notifyView}\n <IconType\n style={{\n color: colorIcon\n }}\n color={colorIcon}\n height={30}\n />\n </div>\n <div data-name=\"title\" className={style.title}>\n {title}\n </div>\n </div>\n );\n }\n}\n\nconst SlidesFooter = props => {\n const {buttons = []} = props;\n if (buttons.length === 0) return null;\n\n const Buttons = buttons.map((button, key) => {\n return <Button {...button} key={key} />;\n });\n\n return (\n <div data-name=\"slidesFooter\" className={style.wrapper}>\n {Buttons}\n </div>\n );\n};\n\nSlidesFooter.propTypes = {\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n notify: PropTypes.bool,\n selected: PropTypes.bool,\n highlighted: PropTypes.bool,\n title: PropTypes.string,\n type: PropTypes.oneOf(keys(TABS)).isRequired,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default SlidesFooter;\n"],"file":"index.js"}
@@ -8,6 +8,9 @@ import _getOr from "lodash/fp/getOr";
8
8
  import _get from "lodash/fp/get";
9
9
  import _find from "lodash/fp/find";
10
10
  import _compact from "lodash/fp/compact";
11
+ const _excluded = ["videoId"],
12
+ _excluded2 = ["question", "step"],
13
+ _excluded3 = ["error"];
11
14
 
12
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
16
 
@@ -240,11 +243,11 @@ const ContextVideo = props => {
240
243
  const {
241
244
  src
242
245
  } = props;
243
- const videos = src.map((_ref) => {
246
+ const videos = src.map(_ref => {
244
247
  let {
245
248
  videoId
246
249
  } = _ref,
247
- childProps = _objectWithoutPropertiesLoose(_ref, ["videoId"]);
250
+ childProps = _objectWithoutPropertiesLoose(_ref, _excluded);
248
251
 
249
252
  return /*#__PURE__*/React.createElement(VideoPlayer, _extends({}, _omit('id', childProps), {
250
253
  id: videoId,
@@ -276,13 +279,13 @@ const ContextMedia = ({
276
279
  };
277
280
 
278
281
  ContextMedia.propTypes = process.env.NODE_ENV !== "production" ? {
279
- media: PropTypes.oneOfType([PropTypes.shape(_extends(_extends({}, ContextImage.propTypes), {}, {
282
+ media: PropTypes.oneOfType([PropTypes.shape(_extends({}, ContextImage.propTypes, {
280
283
  type: PropTypes.oneOf(['img'])
281
- })), PropTypes.shape(_extends(_extends({}, PDF.propTypes), {}, {
284
+ })), PropTypes.shape(_extends({}, PDF.propTypes, {
282
285
  type: PropTypes.oneOf(['pdf'])
283
- })), PropTypes.shape(_extends(_extends({}, Audio.propTypes), {}, {
286
+ })), PropTypes.shape(_extends({}, Audio.propTypes, {
284
287
  type: PropTypes.oneOf(['audio'])
285
- })), PropTypes.shape(_extends(_extends({}, ContextVideo.propTypes), {}, {
288
+ })), PropTypes.shape(_extends({}, ContextVideo.propTypes, {
286
289
  type: PropTypes.oneOf(['video'])
287
290
  }))])
288
291
  } : {};
@@ -401,18 +404,18 @@ const LoadingLayout = () => /*#__PURE__*/React.createElement("div", {
401
404
  className: style.loading
402
405
  }, /*#__PURE__*/React.createElement(Loader, null));
403
406
 
404
- const LoadedLayout = (_ref2) => {
407
+ const LoadedLayout = _ref2 => {
405
408
  let {
406
409
  question
407
410
  } = _ref2,
408
- props = _objectWithoutPropertiesLoose(_ref2, ["question", "step"]);
411
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
409
412
 
410
413
  return question ? /*#__PURE__*/React.createElement(ContentLayout, _extends({}, props, {
411
414
  question: question
412
415
  })) : /*#__PURE__*/React.createElement(LoadingLayout, null);
413
416
  };
414
417
 
415
- LoadedLayout.propTypes = process.env.NODE_ENV !== "production" ? _extends(_extends({}, ContentLayout.propTypes), {}, {
418
+ LoadedLayout.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, ContentLayout.propTypes, {
416
419
  question: ContentLayout.propTypes.question
417
420
  }) : {};
418
421
  /*
@@ -431,11 +434,11 @@ ErrorMessage.propTypes = process.env.NODE_ENV !== "production" ? {
431
434
  errorMsg: PropTypes.string
432
435
  } : {};
433
436
 
434
- const Content = (_ref3) => {
437
+ const Content = _ref3 => {
435
438
  let {
436
439
  error
437
440
  } = _ref3,
438
- props = _objectWithoutPropertiesLoose(_ref3, ["error"]);
441
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
439
442
 
440
443
  return error ? /*#__PURE__*/React.createElement(ErrorMessage, props) : /*#__PURE__*/React.createElement(LoadedLayout, props);
441
444
  };