@coorpacademy/components 10.0.37-alpha.3 → 10.0.40

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 (988) 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/cta/test/fixtures/certification.js +1 -1
  9. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  10. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  11. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  13. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/light.js +1 -1
  15. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/logout.js +1 -1
  17. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  19. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  21. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  23. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  27. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  29. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  30. package/es/atom/drag-and-drop/index.js +1 -1
  31. package/es/atom/drag-and-drop/index.js.map +1 -1
  32. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  33. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  34. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  35. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  36. package/es/atom/image-upload/index.js +1 -1
  37. package/es/atom/image-upload/index.js.map +1 -1
  38. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  39. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  40. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  41. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  52. package/es/atom/input-html/index.js.map +1 -1
  53. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  54. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  55. package/es/atom/link/index.js +2 -3
  56. package/es/atom/link/index.js.map +1 -1
  57. package/es/atom/promo-code/index.js.map +1 -1
  58. package/es/atom/provider/index.js.map +1 -1
  59. package/es/atom/provider/test/index.js +1 -1
  60. package/es/atom/provider/test/index.js.map +1 -1
  61. package/es/atom/range/index.js +1 -1
  62. package/es/atom/range/index.js.map +1 -1
  63. package/es/atom/range/test/fixtures/multi.js +1 -1
  64. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  65. package/es/atom/range/test/index.js +9 -9
  66. package/es/atom/range/test/index.js.map +1 -1
  67. package/es/atom/title/index.js +14 -5
  68. package/es/atom/title/index.js.map +1 -1
  69. package/es/atom/title/style.css +21 -0
  70. package/es/atom/title/test/fixtures/fixture.js +4 -1
  71. package/es/atom/title/test/fixtures/fixture.js.map +1 -1
  72. package/es/atom/video-upload/index.js +1 -1
  73. package/es/atom/video-upload/index.js.map +1 -1
  74. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  75. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  76. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  77. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  78. package/es/hoc/animation-scheduler/index.js +3 -3
  79. package/es/hoc/animation-scheduler/index.js.map +1 -1
  80. package/es/hoc/swapper/index.js +2 -4
  81. package/es/hoc/swapper/index.js.map +1 -1
  82. package/es/hoc/transition/index.js +1 -1
  83. package/es/hoc/transition/index.js.map +1 -1
  84. package/es/molecule/add-to-my-list/index.js +1 -1
  85. package/es/molecule/add-to-my-list/index.js.map +1 -1
  86. package/es/molecule/answer/index.js +2 -3
  87. package/es/molecule/answer/index.js.map +1 -1
  88. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  89. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  90. package/es/molecule/answer/test/fixtures/default.js +1 -1
  91. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  92. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  93. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  94. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  95. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  96. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  97. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  98. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  99. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  100. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  101. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  102. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  103. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  104. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  105. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  106. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  107. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  108. package/es/molecule/answer/test/fixtures/range.js +1 -1
  109. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  110. package/es/molecule/answer/test/fixtures/template.js +1 -1
  111. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  112. package/es/molecule/brand-form-group/index.js +17 -17
  113. package/es/molecule/brand-form-group/index.js.map +1 -1
  114. package/es/molecule/brand-form-group/style.css +14 -11
  115. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  116. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  117. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  118. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  119. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  120. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  121. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  122. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  123. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  124. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  125. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  126. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  127. package/es/molecule/brand-tabs/style.css +5 -5
  128. package/es/molecule/brand-tabs/test/fixtures.js +0 -2
  129. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -1
  130. package/es/molecule/card/index.js +1 -1
  131. package/es/molecule/card/index.js.map +1 -1
  132. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  133. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  134. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  135. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  136. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  137. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  138. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  139. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  140. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  141. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  142. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  143. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  144. package/es/molecule/card-with-button/index.js.map +1 -1
  145. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  146. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  147. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  148. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  149. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  150. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  151. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  152. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  153. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  154. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  155. package/es/molecule/dashboard/news-list/index.js +1 -1
  156. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  157. package/es/molecule/dashboard/start-battle/index.js +1 -1
  158. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  159. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  160. package/es/molecule/discipline-scope/test/fixtures.js +0 -6
  161. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -1
  162. package/es/molecule/drag-and-drop/index.js +1 -1
  163. package/es/molecule/drag-and-drop/index.js.map +1 -1
  164. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  165. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  166. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  167. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  168. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  169. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  170. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  171. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  172. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  173. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  174. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  175. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  176. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  177. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  178. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  179. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  180. package/es/molecule/external-content-viewer/index.js +3 -1
  181. package/es/molecule/external-content-viewer/index.js.map +1 -1
  182. package/es/molecule/feedback/index.js +1 -1
  183. package/es/molecule/feedback/index.js.map +1 -1
  184. package/es/molecule/filters/test/fixtures/default.js +4 -4
  185. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  186. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  187. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  188. package/es/molecule/filters/test/fixtures/one.js +2 -2
  189. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  190. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  191. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  192. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  193. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  194. package/es/molecule/filters/test/fixtures/three.js +3 -3
  195. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  196. package/es/molecule/filters/test/fixtures/two.js +3 -3
  197. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  198. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  199. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  200. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  201. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  202. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  203. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  204. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  205. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  206. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  207. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  208. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  209. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  210. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  211. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  212. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  213. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  214. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  215. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  216. package/es/molecule/popin/index.js +13 -2
  217. package/es/molecule/popin/index.js.map +1 -1
  218. package/es/molecule/popin/test/fixtures/background-no-second-button.js +13 -0
  219. package/es/molecule/popin/test/fixtures/background-no-second-button.js.map +1 -0
  220. package/es/molecule/popin/test/on-change.js +17 -5
  221. package/es/molecule/popin/test/on-change.js.map +1 -1
  222. package/es/molecule/progress-bar/index.js +1 -1
  223. package/es/molecule/progress-bar/index.js.map +1 -1
  224. package/es/molecule/questions/drop-down/index.js +1 -1
  225. package/es/molecule/questions/drop-down/index.js.map +1 -1
  226. package/es/molecule/questions/question-range/index.js +2 -3
  227. package/es/molecule/questions/question-range/index.js.map +1 -1
  228. package/es/molecule/questions/template/index.js +2 -2
  229. package/es/molecule/questions/template/index.js.map +1 -1
  230. package/es/molecule/questions/template/test/index.js +1 -1
  231. package/es/molecule/questions/template/test/index.js.map +1 -1
  232. package/es/molecule/quick-access-card/index.js +151 -0
  233. package/es/molecule/quick-access-card/index.js.map +1 -0
  234. package/es/molecule/quick-access-card/style.css +103 -0
  235. package/es/molecule/quick-access-card/test/fixtures/analytics.js +10 -0
  236. package/es/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -0
  237. package/es/molecule/quick-access-card/test/fixtures/default.js +10 -0
  238. package/es/molecule/quick-access-card/test/fixtures/default.js.map +1 -0
  239. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js +9 -0
  240. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -0
  241. package/es/molecule/quick-access-card/test/fixtures/manage-email.js +9 -0
  242. package/es/molecule/quick-access-card/test/fixtures/manage-email.js.map +1 -0
  243. package/es/molecule/quick-access-card/test/fixtures/upload-users.js +9 -0
  244. package/es/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -0
  245. package/es/molecule/resource-player/index.js +1 -2
  246. package/es/molecule/resource-player/index.js.map +1 -1
  247. package/es/molecule/scope-content/test/fixtures.js +0 -6
  248. package/es/molecule/scope-content/test/fixtures.js.map +1 -1
  249. package/es/molecule/select-multiple/index.js +1 -1
  250. package/es/molecule/select-multiple/index.js.map +1 -1
  251. package/es/molecule/select-multiple/test/index.js +3 -3
  252. package/es/molecule/select-multiple/test/index.js.map +1 -1
  253. package/es/molecule/setup-section/index.js +1 -1
  254. package/es/molecule/setup-section/index.js.map +1 -1
  255. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  256. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  257. package/es/molecule/setup-slide/index.js +8 -8
  258. package/es/molecule/setup-slide/index.js.map +1 -1
  259. package/es/molecule/share/index.js +1 -1
  260. package/es/molecule/share/index.js.map +1 -1
  261. package/es/molecule/video-iframe/index.js +1 -1
  262. package/es/molecule/video-iframe/index.js.map +1 -1
  263. package/es/molecule/video-player/index.js +1 -3
  264. package/es/molecule/video-player/index.js.map +1 -1
  265. package/es/molecule/video-player/jwplayer.js +2 -2
  266. package/es/molecule/video-player/jwplayer.js.map +1 -1
  267. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  268. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  269. package/es/molecule/video-player/vimeo.js +1 -1
  270. package/es/molecule/video-player/vimeo.js.map +1 -1
  271. package/es/organism/accordion/coorp-manager/index.js +1 -1
  272. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  273. package/es/organism/accordion/coorp-manager/part/style.css +22 -22
  274. package/es/organism/accordion/toggler/index.js +1 -1
  275. package/es/organism/accordion/toggler/index.js.map +1 -1
  276. package/es/organism/accordion/toggler/test/render.js +2 -2
  277. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  278. package/es/organism/brand-form/index.js +0 -1
  279. package/es/organism/brand-form/index.js.map +1 -1
  280. package/es/organism/brand-form/style.css +2 -11
  281. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  282. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  283. package/es/organism/discussion/test/fixtures/default.js +1 -1
  284. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  285. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  286. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  287. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  288. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  289. package/es/organism/get-the-app/index.js +2 -2
  290. package/es/organism/get-the-app/index.js.map +1 -1
  291. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  292. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  293. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  294. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  295. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  296. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  297. package/es/organism/mooc-header/test/fixtures.js +0 -6
  298. package/es/organism/mooc-header/test/fixtures.js.map +1 -1
  299. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  300. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  301. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  302. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  303. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  304. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  305. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  306. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  307. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  308. package/es/organism/settings/index.js +2 -3
  309. package/es/organism/settings/index.js.map +1 -1
  310. package/es/organism/setup-header/style.css +15 -15
  311. package/es/organism/sidebar/index.js +10 -11
  312. package/es/organism/sidebar/index.js.map +1 -1
  313. package/es/organism/sidebar/style.css +4 -4
  314. package/es/organism/user-preferences/index.js +2 -3
  315. package/es/organism/user-preferences/index.js.map +1 -1
  316. package/es/template/activity/index.js +1 -1
  317. package/es/template/activity/index.js.map +1 -1
  318. package/es/template/activity/test/progression-item-test.js +1 -1
  319. package/es/template/activity/test/progression-item-test.js.map +1 -1
  320. package/es/template/app-player/player/slides/footer/index.js +1 -1
  321. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  322. package/es/template/app-player/player/slides/index.js +11 -14
  323. package/es/template/app-player/player/slides/index.js.map +1 -1
  324. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  325. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  326. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  327. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  328. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  329. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  330. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  331. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  332. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  333. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  334. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  335. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  336. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  337. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  338. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  339. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  340. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  341. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  342. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  343. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  344. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  345. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  346. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  347. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  348. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  349. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  350. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  351. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  352. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  353. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  354. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  355. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  356. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  357. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  358. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  359. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  360. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  361. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  362. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  363. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  364. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  365. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  366. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  367. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  368. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  369. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  370. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  371. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  372. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  373. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  374. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  375. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  376. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  377. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  378. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  379. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  380. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  381. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  382. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  384. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  385. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  386. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  387. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  388. package/es/template/app-player/player/test/fixtures.js +0 -2
  389. package/es/template/app-player/player/test/fixtures.js.map +1 -1
  390. package/es/template/app-player/popin-correction/index.js +2 -3
  391. package/es/template/app-player/popin-correction/index.js.map +1 -1
  392. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  393. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  394. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  395. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  396. package/es/template/app-player/popin-end/summary.js +7 -11
  397. package/es/template/app-player/popin-end/summary.js.map +1 -1
  398. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  399. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  400. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  401. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  402. package/es/template/app-player/popin-header/index.js +3 -4
  403. package/es/template/app-player/popin-header/index.js.map +1 -1
  404. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  405. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  406. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  407. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  408. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  409. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  410. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  411. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  412. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  413. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  414. package/es/template/back-office/brand-update/index.js +6 -6
  415. package/es/template/back-office/brand-update/index.js.map +1 -1
  416. package/es/template/back-office/brand-update/style.css +5 -5
  417. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  418. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  419. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  420. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  421. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  422. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  423. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  424. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  425. package/es/template/back-office/brand-update/test/fixtures.js +0 -4
  426. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  427. package/es/template/cockpit/jw-uploader/index.js +2 -3
  428. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  429. package/es/template/common/dashboard/index.js +1 -1
  430. package/es/template/common/dashboard/index.js.map +1 -1
  431. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  432. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  433. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  434. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  435. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  436. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  437. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  438. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  439. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  440. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  441. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  442. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  443. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  444. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  445. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  446. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  447. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  448. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  449. package/es/template/common/discipline/test/fixtures.js +0 -10
  450. package/es/template/common/discipline/test/fixtures.js.map +1 -1
  451. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  452. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  453. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  454. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  455. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  456. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  457. package/es/template/teams-dashboard/test/fixtures.js +0 -2
  458. package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
  459. package/es/util/shallow-compare.js.map +1 -1
  460. package/es/util/test/navigation.js +3 -4
  461. package/es/util/test/navigation.js.map +1 -1
  462. package/es/variables/colors.css +9 -9
  463. package/lib/atom/autocomplete/index.js +2 -2
  464. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  465. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  466. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  467. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  468. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  469. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  470. package/lib/atom/clue/index.js.map +1 -1
  471. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  472. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  473. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  474. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  475. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  476. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  477. package/lib/atom/cta/test/fixtures/light.js +1 -1
  478. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  479. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  480. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  481. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  482. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  483. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  484. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  485. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  486. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  487. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  488. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  489. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  490. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  491. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  492. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  493. package/lib/atom/drag-and-drop/index.js +1 -1
  494. package/lib/atom/drag-and-drop/index.js.map +1 -1
  495. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  496. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  497. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  498. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  499. package/lib/atom/image-upload/index.js +3 -3
  500. package/lib/atom/image-upload/index.js.map +1 -1
  501. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  502. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  503. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  504. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  505. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  506. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  507. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  508. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  509. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  510. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  511. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  512. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  513. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  514. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  515. package/lib/atom/input-checkbox/index.js +2 -2
  516. package/lib/atom/input-color/index.js +2 -2
  517. package/lib/atom/input-doublestep/index.js +2 -2
  518. package/lib/atom/input-html/index.js.map +1 -1
  519. package/lib/atom/input-switch/index.js +2 -2
  520. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  521. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  522. package/lib/atom/input-text/index.js +2 -2
  523. package/lib/atom/input-textarea/index.js +2 -2
  524. package/lib/atom/link/index.js +2 -4
  525. package/lib/atom/link/index.js.map +1 -1
  526. package/lib/atom/promo-code/index.js.map +1 -1
  527. package/lib/atom/provider/index.js.map +1 -1
  528. package/lib/atom/provider/test/index.js +1 -1
  529. package/lib/atom/provider/test/index.js.map +1 -1
  530. package/lib/atom/range/index.js +1 -1
  531. package/lib/atom/range/index.js.map +1 -1
  532. package/lib/atom/range/test/fixtures/multi.js +1 -1
  533. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  534. package/lib/atom/range/test/index.js +9 -9
  535. package/lib/atom/range/test/index.js.map +1 -1
  536. package/lib/atom/select/index.js +2 -2
  537. package/lib/atom/tab/index.js +2 -2
  538. package/lib/atom/title/index.js +15 -5
  539. package/lib/atom/title/index.js.map +1 -1
  540. package/lib/atom/title/style.css +21 -0
  541. package/lib/atom/title/test/fixtures/fixture.js +4 -1
  542. package/lib/atom/title/test/fixtures/fixture.js.map +1 -1
  543. package/lib/atom/video-upload/index.js +1 -1
  544. package/lib/atom/video-upload/index.js.map +1 -1
  545. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  546. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  547. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  548. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  549. package/lib/hoc/animation/test/on-mount.js +2 -2
  550. package/lib/hoc/animation-scheduler/index.js +3 -3
  551. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  552. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +2 -2
  553. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  554. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  555. package/lib/hoc/swapper/index.js +2 -4
  556. package/lib/hoc/swapper/index.js.map +1 -1
  557. package/lib/hoc/swapper/test/on-mount.js +2 -2
  558. package/lib/hoc/transition/index.js +3 -3
  559. package/lib/hoc/transition/index.js.map +1 -1
  560. package/lib/molecule/add-to-my-list/index.js +3 -3
  561. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  562. package/lib/molecule/answer/index.js +2 -4
  563. package/lib/molecule/answer/index.js.map +1 -1
  564. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  565. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  566. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  567. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  568. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  569. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  570. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  571. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  572. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  573. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  574. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  575. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  576. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  577. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  578. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  579. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  580. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  581. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  582. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  583. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  584. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  585. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  586. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  587. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  588. package/lib/molecule/brand-create-form/index.js +2 -2
  589. package/lib/molecule/brand-form-group/index.js +17 -17
  590. package/lib/molecule/brand-form-group/index.js.map +1 -1
  591. package/lib/molecule/brand-form-group/style.css +14 -11
  592. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  593. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  594. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  595. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  596. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  597. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  598. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  599. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  600. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  601. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  602. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  603. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  604. package/lib/molecule/brand-tabs/style.css +5 -5
  605. package/lib/molecule/brand-tabs/test/fixtures.js +0 -3
  606. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -1
  607. package/lib/molecule/card/index.js +3 -3
  608. package/lib/molecule/card/index.js.map +1 -1
  609. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  610. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  611. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  612. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  613. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  614. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  615. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  616. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  617. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  618. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  619. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  620. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  621. package/lib/molecule/card-with-button/index.js.map +1 -1
  622. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  623. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  624. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  625. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  626. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  627. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  628. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  629. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  630. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  631. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  632. package/lib/molecule/dashboard/news-list/index.js +1 -1
  633. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  634. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  635. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  636. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  637. package/lib/molecule/discipline-scope/test/fixtures.js +0 -9
  638. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -1
  639. package/lib/molecule/drag-and-drop/index.js +3 -3
  640. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  641. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  642. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  643. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  644. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  645. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  646. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  647. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  648. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  649. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  650. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  651. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  652. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  653. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  654. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  655. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  656. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  657. package/lib/molecule/external-content-viewer/index.js +3 -1
  658. package/lib/molecule/external-content-viewer/index.js.map +1 -1
  659. package/lib/molecule/feedback/index.js +3 -3
  660. package/lib/molecule/feedback/index.js.map +1 -1
  661. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  662. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  663. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  664. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  665. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  666. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  667. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  668. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  669. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  670. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  671. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  672. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  673. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  674. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  675. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  676. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  677. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  678. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  679. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  680. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  681. package/lib/molecule/hero/index.js +2 -2
  682. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  683. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  684. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  685. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  686. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  687. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  688. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  689. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  690. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  691. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  692. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  693. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  694. package/lib/molecule/popin/index.js +15 -4
  695. package/lib/molecule/popin/index.js.map +1 -1
  696. package/lib/molecule/popin/test/fixtures/background-no-second-button.js +18 -0
  697. package/lib/molecule/popin/test/fixtures/background-no-second-button.js.map +1 -0
  698. package/lib/molecule/popin/test/on-change.js +17 -5
  699. package/lib/molecule/popin/test/on-change.js.map +1 -1
  700. package/lib/molecule/progress-bar/index.js +1 -1
  701. package/lib/molecule/progress-bar/index.js.map +1 -1
  702. package/lib/molecule/questions/drop-down/index.js +3 -3
  703. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  704. package/lib/molecule/questions/free-text/index.js +2 -2
  705. package/lib/molecule/questions/question-range/index.js +2 -4
  706. package/lib/molecule/questions/question-range/index.js.map +1 -1
  707. package/lib/molecule/questions/template/index.js +2 -2
  708. package/lib/molecule/questions/template/index.js.map +1 -1
  709. package/lib/molecule/questions/template/test/index.js +1 -1
  710. package/lib/molecule/questions/template/test/index.js.map +1 -1
  711. package/lib/molecule/quick-access-card/index.js +166 -0
  712. package/lib/molecule/quick-access-card/index.js.map +1 -0
  713. package/lib/molecule/quick-access-card/style.css +103 -0
  714. package/lib/molecule/quick-access-card/test/fixtures/analytics.js +15 -0
  715. package/lib/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -0
  716. package/lib/molecule/quick-access-card/test/fixtures/default.js +15 -0
  717. package/lib/molecule/quick-access-card/test/fixtures/default.js.map +1 -0
  718. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js +14 -0
  719. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -0
  720. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js +14 -0
  721. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js.map +1 -0
  722. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js +14 -0
  723. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -0
  724. package/lib/molecule/resource-player/index.js +1 -3
  725. package/lib/molecule/resource-player/index.js.map +1 -1
  726. package/lib/molecule/scope-content/test/fixtures.js +0 -9
  727. package/lib/molecule/scope-content/test/fixtures.js.map +1 -1
  728. package/lib/molecule/scope-tabs/index.js +2 -2
  729. package/lib/molecule/search/index.js +2 -2
  730. package/lib/molecule/search-form/index.js +2 -2
  731. package/lib/molecule/select-multiple/index.js +1 -1
  732. package/lib/molecule/select-multiple/index.js.map +1 -1
  733. package/lib/molecule/select-multiple/test/index.js +3 -3
  734. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  735. package/lib/molecule/setup-section/index.js +1 -1
  736. package/lib/molecule/setup-section/index.js.map +1 -1
  737. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  738. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  739. package/lib/molecule/setup-sections/index.js +2 -2
  740. package/lib/molecule/setup-slide/index.js +8 -8
  741. package/lib/molecule/setup-slide/index.js.map +1 -1
  742. package/lib/molecule/share/index.js +3 -3
  743. package/lib/molecule/share/index.js.map +1 -1
  744. package/lib/molecule/titled-checkbox/index.js +2 -2
  745. package/lib/molecule/video-iframe/index.js +1 -1
  746. package/lib/molecule/video-iframe/index.js.map +1 -1
  747. package/lib/molecule/video-player/index.js +1 -3
  748. package/lib/molecule/video-player/index.js.map +1 -1
  749. package/lib/molecule/video-player/jwplayer.js +2 -2
  750. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  751. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  752. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  753. package/lib/molecule/video-player/vimeo.js +1 -1
  754. package/lib/molecule/video-player/vimeo.js.map +1 -1
  755. package/lib/organism/accordion/container/index.js +2 -2
  756. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  757. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  758. package/lib/organism/accordion/coorp-manager/part/style.css +22 -22
  759. package/lib/organism/accordion/toggler/index.js +1 -1
  760. package/lib/organism/accordion/toggler/index.js.map +1 -1
  761. package/lib/organism/accordion/toggler/test/render.js +2 -2
  762. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  763. package/lib/organism/brand-form/index.js +2 -3
  764. package/lib/organism/brand-form/index.js.map +1 -1
  765. package/lib/organism/brand-form/style.css +2 -11
  766. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  767. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  768. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  769. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  770. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  771. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  772. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  773. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  774. package/lib/organism/get-the-app/index.js +2 -2
  775. package/lib/organism/get-the-app/index.js.map +1 -1
  776. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  777. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  778. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  779. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  780. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  781. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  782. package/lib/organism/mooc-header/test/fixtures.js +0 -9
  783. package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
  784. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  785. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  786. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  787. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  788. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  789. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  790. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  791. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  792. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  793. package/lib/organism/settings/index.js +2 -4
  794. package/lib/organism/settings/index.js.map +1 -1
  795. package/lib/organism/setup-header/style.css +15 -15
  796. package/lib/organism/sidebar/index.js +12 -14
  797. package/lib/organism/sidebar/index.js.map +1 -1
  798. package/lib/organism/sidebar/style.css +4 -4
  799. package/lib/organism/user-preferences/index.js +2 -4
  800. package/lib/organism/user-preferences/index.js.map +1 -1
  801. package/lib/template/activity/index.js +1 -1
  802. package/lib/template/activity/index.js.map +1 -1
  803. package/lib/template/activity/progression-item.js +2 -2
  804. package/lib/template/activity/test/progression-item-test.js +1 -1
  805. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  806. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  807. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  808. package/lib/template/app-player/player/slides/index.js +11 -15
  809. package/lib/template/app-player/player/slides/index.js.map +1 -1
  810. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  811. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  812. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  813. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  814. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  815. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  816. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  817. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  818. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  819. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  820. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  821. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  822. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  823. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  824. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  825. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  826. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  827. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  828. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  829. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  830. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  831. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  832. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  833. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  834. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  835. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  836. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  837. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  838. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  839. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  840. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  841. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  842. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  843. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  844. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  845. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  846. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  847. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  848. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  849. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  850. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  851. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  852. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  853. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  854. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  855. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  856. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  857. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  858. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  859. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  860. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  861. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  862. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  863. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  864. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  865. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  866. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  867. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  868. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  869. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  870. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  871. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  872. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  873. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  874. package/lib/template/app-player/player/test/fixtures.js +0 -3
  875. package/lib/template/app-player/player/test/fixtures.js.map +1 -1
  876. package/lib/template/app-player/popin-correction/index.js +4 -6
  877. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  878. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  879. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  880. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  881. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  882. package/lib/template/app-player/popin-end/summary.js +7 -12
  883. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  884. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  885. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  886. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  887. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  888. package/lib/template/app-player/popin-header/index.js +5 -7
  889. package/lib/template/app-player/popin-header/index.js.map +1 -1
  890. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  891. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  892. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  893. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  894. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  895. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  896. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  897. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  898. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  899. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  900. package/lib/template/back-office/brand-update/index.js +6 -6
  901. package/lib/template/back-office/brand-update/index.js.map +1 -1
  902. package/lib/template/back-office/brand-update/style.css +5 -5
  903. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  904. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  905. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  906. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  907. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  908. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  909. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  910. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  911. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  912. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  913. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  914. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  915. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  916. package/lib/template/back-office/brand-update/test/fixtures/manageusers.js +2 -2
  917. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  918. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  919. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  920. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  921. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  922. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  923. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  924. package/lib/template/back-office/brand-update/test/fixtures.js +0 -6
  925. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  926. package/lib/template/cockpit/jw-uploader/index.js +2 -4
  927. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  928. package/lib/template/common/dashboard/index.js +1 -1
  929. package/lib/template/common/dashboard/index.js.map +1 -1
  930. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  931. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  932. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  933. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  934. package/lib/template/common/discipline/index.js +2 -2
  935. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  936. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  937. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  938. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  939. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  940. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  941. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  942. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  943. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  944. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  945. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  946. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  947. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  948. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  949. package/lib/template/common/discipline/test/fixtures.js +0 -15
  950. package/lib/template/common/discipline/test/fixtures.js.map +1 -1
  951. package/lib/template/teams-dashboard/index.js +2 -2
  952. package/lib/template/teams-dashboard/test/fixtures/default.js +1 -1
  953. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  954. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  955. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  956. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  957. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  958. package/lib/template/teams-dashboard/test/fixtures.js +0 -3
  959. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
  960. package/lib/util/shallow-compare.js.map +1 -1
  961. package/lib/util/test/navigation.js +3 -5
  962. package/lib/util/test/navigation.js.map +1 -1
  963. package/lib/variables/colors.css +9 -9
  964. package/package.json +3 -3
  965. package/es/molecule/add-to-my-list/test/fixtures.js +0 -15
  966. package/es/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  967. package/es/molecule/popin/test/fixtures.js +0 -19
  968. package/es/molecule/popin/test/fixtures.js.map +0 -1
  969. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -13
  970. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  971. package/es/organism/accordion/coorp-manager/test/fixtures.js +0 -13
  972. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  973. package/es/organism/brand-analytics/test/fixtures.js +0 -23
  974. package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
  975. package/es/organism/brand-dashboard/test/fixtures.js +0 -13
  976. package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
  977. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -25
  978. package/lib/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  979. package/lib/molecule/popin/test/fixtures.js +0 -31
  980. package/lib/molecule/popin/test/fixtures.js.map +0 -1
  981. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -22
  982. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  983. package/lib/organism/accordion/coorp-manager/test/fixtures.js +0 -22
  984. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  985. package/lib/organism/brand-analytics/test/fixtures.js +0 -37
  986. package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
  987. package/lib/organism/brand-dashboard/test/fixtures.js +0 -22
  988. package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"names":["StartBattle","props","context","startBattleText","becomeAChampionText","challengeText","onClick","href","style","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","func","React","memo"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA,eAAD;AAAkBC,IAAAA,mBAAlB;AAAuCC,IAAAA,aAA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AIAzB,WAAW,CAAC4B,SAAZ,2CAAwB;AACtBzB,EAAAA,eAAe,EAAE0B,mBAAUC,MADL;AAEtB1B,EAAAA,mBAAmB,EAAEyB,mBAAUC,MAFT;AAGtBzB,EAAAA,aAAa,EAAEwB,mBAAUC,MAHH;AAItBxB,EAAAA,OAAO,EAAEuB,mBAAUE,IAJG;AAKtBxB,EAAAA,IAAI,EAAEsB,mBAAUC;AALM,CAAxB;;4BAQeE,eAAMC,IAAN,CAAWjC,WAAX,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = (props, context) => {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default React.memo(StartBattle);\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"names":["StartBattle","props","context","startBattleText","becomeAChampionText","challengeText","onClick","href","style","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","func","React","memo"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA,eAAD;AAAkBC,IAAAA,mBAAlB;AAAuCC,IAAAA,aAAvC;AAAsDC,IAAAA,OAAtD;AAA+DC,IAAAA;AAA/D,MAAuEN,KAA7E;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEO,eAAMC,IAAtB;AAA4B,iBAAU;AAAtC,kBACE;AAAK,IAAA,SAAS,EAAED,eAAME;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEF,eAAMG;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEH,eAAMI;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEJ,eAAMK;AAAtB,kBACE,6BAAC,kDAAD;AAAW,IAAA,SAAS,EAAEL,eAAMM;AAA5B,IADF,eAEE,6BAAC,kDAAD;AAAW,IAAA,SAAS,EAAEN,eAAMO;AAA5B,IAFF,CADF,eAKE;AAAK,IAAA,SAAS,EAAEP,eAAMQ;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAER,eAAMS;AAAtB,kBACE,6BAAC,kDAAD;AAAW,IAAA,SAAS,EAAET,eAAMU;AAA5B,IADF,EAEGd,mBAFH,eAGE,6BAAC,mDAAD;AAAY,IAAA,SAAS,EAAEI,eAAMW;AAA7B,IAHF,CADF,eAME;AAAK,IAAA,SAAS,EAAEX,eAAMH;AAAtB,KAAsCA,aAAtC,CANF,eAOE,6BAAC,aAAD;AAAM,IAAA,SAAS,EAAEG,eAAMY,MAAvB;AAA+B,IAAA,OAAO,EAAEd,OAAxC;AAAiD,IAAA,IAAI,EAAEC;AAAvD,KACGJ,eADH,CAPF,CALF,eAgBE;AAAK,IAAA,SAAS,EAAEK,eAAMa;AAAtB,kBACE,6BAAC,mDAAD;AAAY,IAAA,SAAS,EAAEb,eAAMc;AAA7B,IADF,eAEE,6BAAC,mDAAD;AAAY,IAAA,SAAS,EAAEd,eAAMe;AAA7B,IAFF,CAhBF,CADF,CADF,CADF,CADF;AA6BD,CAhCD;;AAkCAvB,WAAW,CAACwB,YAAZ,GAA2B;AACzBC,EAAAA,IAAI,EAAEC,kBAASC,iBAAT,CAA2BF;AADR,CAA3B;AAIAzB,WAAW,CAAC4B,SAAZ,2CAAwB;AACtBzB,EAAAA,eAAe,EAAE0B,mBAAUC,MADL;AAEtB1B,EAAAA,mBAAmB,EAAEyB,mBAAUC,MAFT;AAGtBzB,EAAAA,aAAa,EAAEwB,mBAAUC,MAHH;AAItBxB,EAAAA,OAAO,EAAEuB,mBAAUE,IAJG;AAKtBxB,EAAAA,IAAI,EAAEsB,mBAAUC;AALM,CAAxB;;eAQeE,eAAMC,IAAN,CAAWjC,WAAX,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = (props, context) => {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default React.memo(StartBattle);\n"],"file":"index.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/discipline-header/test/fixtures/long-description.js"],"names":["props","title","description","image"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,WAAW,EAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAlBS;AAmBLC,IAAAA,KAAK,EACH;AApBG;AADM,C","sourcesContent":["export default {\n props: {\n title: 'Les nouveaux business',\n description: `La révolution numérique a tout accéléré : les communications, la récupération des données, \n la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données,la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique a tout accéléré : les communications, \n la récupération des données, la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données, la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets.`,\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-digital-core/cockpit-digital-2016/default/shutterstock_777835606-1616609267419.jpg&h=500&w=500&q=90&m=contain'\n }\n};\n"],"file":"long-description.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/discipline-header/test/fixtures/long-description.js"],"names":["props","title","description","image"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,WAAW,EAAG;;;;;;;;;;;;;;;;oFAFT;AAmBLC,IAAAA,KAAK,EACH;AApBG;AADM,C","sourcesContent":["export default {\n props: {\n title: 'Les nouveaux business',\n description: `La révolution numérique a tout accéléré : les communications, la récupération des données, \n la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données,la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique a tout accéléré : les communications, \n la récupération des données, la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données, la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets.`,\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-digital-core/cockpit-digital-2016/default/shutterstock_777835606-1616609267419.jpg&h=500&w=500&q=90&m=contain'\n }\n};\n"],"file":"long-description.js"}
@@ -10,18 +10,12 @@ var _ = _interopRequireDefault(require(".."));
10
10
 
11
11
  var _arabic = _interopRequireDefault(require("./fixtures/arabic"));
12
12
 
13
- var _audio = _interopRequireDefault(require("./fixtures/audio"));
14
-
15
13
  var _default = _interopRequireDefault(require("./fixtures/default"));
16
14
 
17
15
  var _empty = _interopRequireDefault(require("./fixtures/empty"));
18
16
 
19
17
  var _medias = _interopRequireDefault(require("./fixtures/medias"));
20
18
 
21
- var _pdf = _interopRequireDefault(require("./fixtures/pdf"));
22
-
23
- var _vimeo = _interopRequireDefault(require("./fixtures/vimeo"));
24
-
25
19
  var _withOnclick = _interopRequireDefault(require("./fixtures/with-onclick"));
26
20
 
27
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -33,11 +27,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
33
27
  });
34
28
  });
35
29
  (0, _ava.default)('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', _renderComponent.default, _.default, _arabic.default);
36
- (0, _ava.default)('Molecule › MoleculeDisciplineScope › Audio › should be rendered', _renderComponent.default, _.default, _audio.default);
37
30
  (0, _ava.default)('Molecule › MoleculeDisciplineScope › Default › should be rendered', _renderComponent.default, _.default, _default.default);
38
31
  (0, _ava.default)('Molecule › MoleculeDisciplineScope › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
39
32
  (0, _ava.default)('Molecule › MoleculeDisciplineScope › Medias › should be rendered', _renderComponent.default, _.default, _medias.default);
40
- (0, _ava.default)('Molecule › MoleculeDisciplineScope › Pdf › should be rendered', _renderComponent.default, _.default, _pdf.default);
41
- (0, _ava.default)('Molecule › MoleculeDisciplineScope › Vimeo › should be rendered', _renderComponent.default, _.default, _vimeo.default);
42
33
  (0, _ava.default)('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', _renderComponent.default, _.default, _withOnclick.default);
43
34
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/discipline-scope/test/fixtures.js"],"names":["t","pass","MoleculeDisciplineScope","propTypes","value","key","not","undefined","renderComponentMacro","fixtureArabic","fixtureAudio","fixtureDefault","fixtureEmpty","fixtureMedias","fixturePdf","fixtureVimeo","fixtureWithOnclick"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kEAAL,EAAyEA,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAwBC,SAAhC,EAA2C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4DAA2DF,GAAI,mEAAxF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,kEAAL,EAAyEG,wBAAzE,EAA+FN,SAA/F,EAAwHO,eAAxH;AACA,kBAAK,iEAAL,EAAwED,wBAAxE,EAA8FN,SAA9F,EAAuHQ,cAAvH;AACA,kBAAK,mEAAL,EAA0EF,wBAA1E,EAAgGN,SAAhG,EAAyHS,gBAAzH;AACA,kBAAK,iEAAL,EAAwEH,wBAAxE,EAA8FN,SAA9F,EAAuHU,cAAvH;AACA,kBAAK,kEAAL,EAAyEJ,wBAAzE,EAA+FN,SAA/F,EAAwHW,eAAxH;AACA,kBAAK,+DAAL,EAAsEL,wBAAtE,EAA4FN,SAA5F,EAAqHY,YAArH;AACA,kBAAK,iEAAL,EAAwEN,wBAAxE,EAA8FN,SAA9F,EAAuHa,cAAvH;AACA,kBAAK,uEAAL,EAA8EP,wBAA9E,EAAoGN,SAApG,EAA6Hc,oBAA7H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDisciplineScope from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureAudio from './fixtures/audio';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixturePdf from './fixtures/pdf';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeDisciplineScope > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDisciplineScope.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDisciplineScope.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureArabic);\ntest('Molecule › MoleculeDisciplineScope › Audio › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureAudio);\ntest('Molecule › MoleculeDisciplineScope › Default › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureDefault);\ntest('Molecule › MoleculeDisciplineScope › Empty › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureEmpty);\ntest('Molecule › MoleculeDisciplineScope › Medias › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureMedias);\ntest('Molecule › MoleculeDisciplineScope › Pdf › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixturePdf);\ntest('Molecule › MoleculeDisciplineScope › Vimeo › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureVimeo);\ntest('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureWithOnclick);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/discipline-scope/test/fixtures.js"],"names":["t","pass","MoleculeDisciplineScope","propTypes","value","key","not","undefined","renderComponentMacro","fixtureArabic","fixtureDefault","fixtureEmpty","fixtureMedias","fixtureWithOnclick"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kEAAL,EAAyEA,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAwBC,SAAhC,EAA2C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4DAA2DF,GAAI,mEAAxF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,kEAAL,EAAyEG,wBAAzE,EAA+FN,SAA/F,EAAwHO,eAAxH;AACA,kBAAK,mEAAL,EAA0ED,wBAA1E,EAAgGN,SAAhG,EAAyHQ,gBAAzH;AACA,kBAAK,iEAAL,EAAwEF,wBAAxE,EAA8FN,SAA9F,EAAuHS,cAAvH;AACA,kBAAK,kEAAL,EAAyEH,wBAAzE,EAA+FN,SAA/F,EAAwHU,eAAxH;AACA,kBAAK,uEAAL,EAA8EJ,wBAA9E,EAAoGN,SAApG,EAA6HW,oBAA7H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDisciplineScope from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeDisciplineScope > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDisciplineScope.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDisciplineScope.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureArabic);\ntest('Molecule › MoleculeDisciplineScope › Default › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureDefault);\ntest('Molecule › MoleculeDisciplineScope › Empty › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureEmpty);\ntest('Molecule › MoleculeDisciplineScope › Medias › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureMedias);\ntest('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureWithOnclick);\n"],"file":"fixtures.js"}
@@ -29,9 +29,9 @@ var _style = _interopRequireDefault(require("./style.css"));
29
29
 
30
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
31
 
32
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
32
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
33
33
 
34
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
34
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
35
 
36
36
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
37
37
 
@@ -135,7 +135,7 @@ DragAndDrop.propTypes = process.env.NODE_ENV !== "production" ? {
135
135
  orLabel: _propTypes.default.string,
136
136
  onBack: _propTypes.default.func,
137
137
  accept: _propTypes.default.string,
138
- fields: _propTypes.default.arrayOf(_propTypes.default.shape(_extends({}, _inputText.default.propTypes, {
138
+ fields: _propTypes.default.arrayOf(_propTypes.default.shape(_extends(_extends({}, _inputText.default.propTypes), {}, {
139
139
  type: _propTypes.default.oneOf(['text'])
140
140
  }))),
141
141
  onDrop: _propTypes.default.func,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/drag-and-drop/index.js"],"names":["DragAndDrop","props","context","skin","primaryColor","state","title","message","warningMessage","mode","dragAndDropMessage","buttonTitle","backLabel","orLabel","accept","type","contentType","fields","onDrop","onDelete","onBack","handleBack","e","stopPropagation","preventDefault","loading","style","back","arrow","getRootProps","getInputProps","isDragActive","getView","disableFileInput","includes","wrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","oneOf","isRequired","string","func","arrayOf","shape","InputText","actions","label","onClick"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC7C,QAAM;AAACC,IAAAA;AAAD,MAASD,OAAf;AACA,QAAME,YAAY,GAAG,oBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;AAEA,QAAM;AACJE,IAAAA,KADI;AAEJC,IAAAA,KAFI;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,cAJI;AAKJC,IAAAA,IALI;AAMJC,IAAAA,kBANI;AAOJC,IAAAA,WAPI;AAQJC,IAAAA,SARI;AASJC,IAAAA,OATI;AAUJC,IAAAA,MAVI;AAWJC,IAAAA,IAAI,EAAEC,WAAW,GAAG,OAXhB;AAYJC,IAAAA,MAZI;AAaJC,IAAAA,MAbI;AAcJC,IAAAA,QAdI;AAeJC,IAAAA;AAfI,MAgBFnB,KAhBJ;AAkBA,QAAMoB,UAAU,GAAG,wBACjBC,CAAC,IAAI;AACHA,IAAAA,CAAC,CAACC,eAAF;AACAD,IAAAA,CAAC,CAACE,cAAF;AACAJ,IAAAA,MAAM,IAAIA,MAAM,CAACE,CAAD,CAAhB;AACD,GALgB,EAMjB,CAACF,MAAD,CANiB,CAAnB;AASA,QAAMK,OAAO,GAAGpB,KAAK,KAAK,SAA1B;AACA,sBACE,uDACE;AAAM,IAAA,OAAO,EAAEgB,UAAf;AAA2B,IAAA,SAAS,EAAEK,eAAMC;AAA5C,kBACE,6BAAC,6CAAD;AAAW,IAAA,KAAK,EA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KADM,CAbc;AAmBtBvB,EAAAA,MAAM,EAAEsB,mBAAUI,IAnBI;AAoBtBzB,EAAAA,QAAQ,EAAEqB,mBAAUI,IApBE;AAqBtBI,EAAAA,OAAO,EAAER,mBAAUK,OAAV,CACPL,mBAAUM,KAAV,CAAgB;AACd/B,IAAAA,IAAI,EAAEyB,mBAAUC,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,EAAmB,QAAnB,CAAhB,CADQ;AAEdQ,IAAAA,KAAK,EAAET,mBAAUG,MAFH;AAGdO,IAAAA,OAAO,EAAEV,mBAAUI;AAHL,GAAhB,CADO;AArBa,CAAxB;eA8Be5C,W","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport includes from 'lodash/fp/includes';\nimport Dropzone from 'react-dropzone';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport InputText from '../../atom/input-text';\nimport {Overlay} from './overlay';\nimport {UploadReport} from './upload-report';\nimport {PlaceHolder} from './placeholder';\nimport style from './style.css';\n\nexport const DragAndDrop = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n state,\n title,\n message,\n warningMessage,\n mode,\n dragAndDropMessage,\n buttonTitle,\n backLabel,\n orLabel,\n accept,\n type: contentType = 'scorm',\n fields,\n onDrop,\n onDelete,\n onBack\n } = props;\n\n const handleBack = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onBack && onBack(e);\n },\n [onBack]\n );\n\n const loading = state === 'loading';\n return (\n <div>\n <span onClick={handleBack} className={style.back}>\n <ArrowLeft width={12} height={12} className={style.arrow} />\n {backLabel}\n </span>\n <Dropzone accept={accept} disabled={loading} onDrop={onDrop}>\n {({getRootProps, getInputProps, isDragActive}) => {\n const getView = () => {\n if (contentType !== 'scorm' || includes(state, ['success', 'error', 'ready'])) {\n return (\n <UploadReport\n state={state}\n message={message}\n warningMessage={warningMessage}\n fields={fields}\n type={contentType}\n onDelete={onDelete}\n mode={mode}\n orLabel={orLabel}\n onClick={onDrop}\n buttonTitle={buttonTitle}\n primaryColor={primaryColor}\n />\n );\n }\n return (\n <PlaceHolder\n title={title}\n buttonTitle={buttonTitle}\n uploadLabel={message}\n primaryColor={primaryColor}\n onClick={onDrop}\n />\n );\n };\n\n const disableFileInput = ['success'].includes(state);\n\n return (\n <div {...getRootProps()} className={style.wrapper}>\n <input {...getInputProps()} disabled={disableFileInput} />\n {getView()}\n {isDragActive || loading ? (\n <Overlay\n iconColor={primaryColor}\n description={dragAndDropMessage}\n isLoading={loading}\n />\n ) : null}\n </div>\n );\n }}\n </Dropzone>\n </div>\n );\n};\n\nDragAndDrop.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nDragAndDrop.propTypes = {\n state: PropTypes.oneOf(['default', 'ready', 'loading', 'success', 'error']).isRequired,\n mode: PropTypes.oneOf(['edit', 'upload']),\n title: PropTypes.string,\n type: PropTypes.string,\n message: PropTypes.string,\n warningMessage: PropTypes.string,\n dragAndDropMessage: PropTypes.string,\n buttonTitle: PropTypes.string,\n backLabel: PropTypes.string,\n orLabel: PropTypes.string,\n onBack: PropTypes.func,\n accept: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n onDrop: PropTypes.func,\n onDelete: PropTypes.func,\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf(['edit', 'upload', 'delete']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default DragAndDrop;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/drag-and-drop/index.js"],"names":["DragAndDrop","props","context","skin","primaryColor","state","title","message","warningMessage","mode","dragAndDropMessage","buttonTitle","backLabel","orLabel","accept","type","contentType","fields","onDrop","onDelete","onBack","handleBack","e","stopPropagation","preventDefault","loading","style","back","arrow","getRootProps","getInputProps","isDragActive","getView","disableFileInput","includes","wrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","oneOf","isRequired","string","func","arrayOf","shape","InputText","actions","label","onClick"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC7C,QAAM;AAACC,IAAAA;AAAD,MAASD,OAAf;AACA,QAAME,YAAY,GAAG,oBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;AAEA,QAAM;AACJE,IAAAA,KADI;AAEJC,IAAAA,KAFI;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,cAJI;AAKJC,IAAAA,IALI;AAMJC,IAAAA,kBANI;AAOJC,IAAAA,WAPI;AAQJC,IAAAA,SARI;AASJC,IAAAA,OATI;AAUJC,IAAAA,MAVI;AAWJC,IAAAA,IAAI,EAAEC,WAAW,GAAG,OAXhB;AAYJC,IAAAA,MAZI;AAaJC,IAAAA,MAbI;AAcJC,IAAAA,QAdI;AAeJC,IAAAA;AAfI,MAgBFnB,KAhBJ;AAkBA,QAAMoB,UAAU,GAAG,wBACjBC,CAAC,IAAI;AACHA,IAAAA,CAAC,CAACC,eAAF;AACAD,IAAAA,CAAC,CAACE,cAAF;AACAJ,IAAAA,MAAM,IAAIA,MAAM,CAACE,CAAD,CAAhB;AACD,GALgB,EAMjB,CAACF,MAAD,CANiB,CAAnB;AASA,QAAMK,OAAO,GAAGpB,KAAK,KAAK,SAA1B;AACA,sBACE,uDACE;AAAM,IAAA,OAAO,EAAEgB,UAAf;AAA2B,IAAA,SAAS,EAAEK,eAAMC;AAA5C,kBACE,6BAAC,6CAAD;AAAW,IAAA,KAAK,EAAE,EAAlB;AAAsB,IAAA,MAAM,EAAE,EAA9B;AAAkC,IAAA,SAAS,EAAED,eAAME;AAAnD,IADF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EAAEqB,mBAAUI,IApBE;AAqBtBI,EAAAA,OAAO,EAAER,mBAAUK,OAAV,CACPL,mBAAUM,KAAV,CAAgB;AACd/B,IAAAA,IAAI,EAAEyB,mBAAUC,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,EAAmB,QAAnB,CAAhB,CADQ;AAEdQ,IAAAA,KAAK,EAAET,mBAAUG,MAFH;AAGdO,IAAAA,OAAO,EAAEV,mBAAUI;AAHL,GAAhB,CADO;AArBa,CAAxB;eA8Be5C,W","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport includes from 'lodash/fp/includes';\nimport Dropzone from 'react-dropzone';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport InputText from '../../atom/input-text';\nimport {Overlay} from './overlay';\nimport {UploadReport} from './upload-report';\nimport {PlaceHolder} from './placeholder';\nimport style from './style.css';\n\nexport const DragAndDrop = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n state,\n title,\n message,\n warningMessage,\n mode,\n dragAndDropMessage,\n buttonTitle,\n backLabel,\n orLabel,\n accept,\n type: contentType = 'scorm',\n fields,\n onDrop,\n onDelete,\n onBack\n } = props;\n\n const handleBack = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onBack && onBack(e);\n },\n [onBack]\n );\n\n const loading = state === 'loading';\n return (\n <div>\n <span onClick={handleBack} className={style.back}>\n <ArrowLeft width={12} height={12} className={style.arrow} />\n {backLabel}\n </span>\n <Dropzone accept={accept} disabled={loading} onDrop={onDrop}>\n {({getRootProps, getInputProps, isDragActive}) => {\n const getView = () => {\n if (contentType !== 'scorm' || includes(state, ['success', 'error', 'ready'])) {\n return (\n <UploadReport\n state={state}\n message={message}\n warningMessage={warningMessage}\n fields={fields}\n type={contentType}\n onDelete={onDelete}\n mode={mode}\n orLabel={orLabel}\n onClick={onDrop}\n buttonTitle={buttonTitle}\n primaryColor={primaryColor}\n />\n );\n }\n return (\n <PlaceHolder\n title={title}\n buttonTitle={buttonTitle}\n uploadLabel={message}\n primaryColor={primaryColor}\n onClick={onDrop}\n />\n );\n };\n\n const disableFileInput = ['success'].includes(state);\n\n return (\n <div {...getRootProps()} className={style.wrapper}>\n <input {...getInputProps()} disabled={disableFileInput} />\n {getView()}\n {isDragActive || loading ? (\n <Overlay\n iconColor={primaryColor}\n description={dragAndDropMessage}\n isLoading={loading}\n />\n ) : null}\n </div>\n );\n }}\n </Dropzone>\n </div>\n );\n};\n\nDragAndDrop.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nDragAndDrop.propTypes = {\n state: PropTypes.oneOf(['default', 'ready', 'loading', 'success', 'error']).isRequired,\n mode: PropTypes.oneOf(['edit', 'upload']),\n title: PropTypes.string,\n type: PropTypes.string,\n message: PropTypes.string,\n warningMessage: PropTypes.string,\n dragAndDropMessage: PropTypes.string,\n buttonTitle: PropTypes.string,\n backLabel: PropTypes.string,\n orLabel: PropTypes.string,\n onBack: PropTypes.func,\n accept: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n onDrop: PropTypes.func,\n onDelete: PropTypes.func,\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf(['edit', 'upload', 'delete']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default DragAndDrop;\n"],"file":"index.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _default2.default.props, {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
14
  state: 'error',
15
15
  buttonTitle: 'Try Again',
16
16
  message: "Sorry we couldn't upload your file."
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/error.js"],"names":["props","Default","state","buttonTitle","message"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,WAHV;AAIHC,IAAAA,OAAO,EAAE;AAJN;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'error',\n buttonTitle: 'Try Again',\n message: \"Sorry we couldn't upload your file.\"\n }\n};\n"],"file":"error.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/error.js"],"names":["props","Default","state","buttonTitle","message"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,WAHV;AAIHC,IAAAA,OAAO,EAAE;AAJN;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'error',\n buttonTitle: 'Try Again',\n message: \"Sorry we couldn't upload your file.\"\n }\n};\n"],"file":"error.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _default2.default.props, {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
14
  state: 'loading'
15
15
  })
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/loading.js"],"names":["props","Default","state"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE;AAFJ;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'loading'\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/loading.js"],"names":["props","Default","state"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE;AAFJ;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'loading'\n }\n};\n"],"file":"loading.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _ready.default.props, {
13
+ props: _extends(_extends({}, _ready.default.props), {}, {
14
14
  type: 'podcast',
15
15
  warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'
16
16
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready-invalid.js"],"names":["props","Default","type","warningMessage"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,eAAQD,KADR;AAEHE,IAAAA,IAAI,EAAE,SAFH;AAGHC,IAAAA,cAAc,EAAE;AAHb;AADQ,C","sourcesContent":["import Default from './ready';\n\nexport default {\n props: {\n ...Default.props,\n type: 'podcast',\n warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'\n }\n};\n"],"file":"ready-invalid.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready-invalid.js"],"names":["props","Default","type","warningMessage"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,eAAQD,KADR;AAEHE,IAAAA,IAAI,EAAE,SAFH;AAGHC,IAAAA,cAAc,EAAE;AAHb;AADQ,C","sourcesContent":["import Default from './ready';\n\nexport default {\n props: {\n ...Default.props,\n type: 'podcast',\n warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'\n }\n};\n"],"file":"ready-invalid.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _default2.default.props, {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
14
  state: 'ready',
15
15
  message: 'Drag & Drop your file here',
16
16
  type: 'scorm',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready.js"],"names":["props","Default","state","message","type","fields","title","value","required","placeholder","description","onChange","onDelete","console","log","mode"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,OAAO,EAAE,4BAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEC,MAAAA,QAAQ,EAAE,IAHZ;AAIEJ,MAAAA,IAAI,EAAE,MAJR;AAKEK,MAAAA,WAAW,EAAE,UALf;AAMEC,MAAAA,WAAW,EAAE,6BANf;AAOEC,MAAAA,QAAQ,EAAE,MAAM,CAAE;AAPpB,KADM,CALL;AAgBHC,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAhBb;AAiBHC,IAAAA,IAAI,EAAE;AAjBH;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'ready',\n message: 'Drag & Drop your file here',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n required: true,\n type: 'text',\n placeholder: 'Your url',\n description: 'Lorem Ipsum dolor sit amet.',\n onChange: () => {}\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"ready.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready.js"],"names":["props","Default","state","message","type","fields","title","value","required","placeholder","description","onChange","onDelete","console","log","mode"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,OAAO,EAAE,4BAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEC,MAAAA,QAAQ,EAAE,IAHZ;AAIEJ,MAAAA,IAAI,EAAE,MAJR;AAKEK,MAAAA,WAAW,EAAE,UALf;AAMEC,MAAAA,WAAW,EAAE,6BANf;AAOEC,MAAAA,QAAQ,EAAE,MAAM,CAAE;AAPpB,KADM,CALL;AAgBHC,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAhBb;AAiBHC,IAAAA,IAAI,EAAE;AAjBH;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'ready',\n message: 'Drag & Drop your file here',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n required: true,\n type: 'text',\n placeholder: 'Your url',\n description: 'Lorem Ipsum dolor sit amet.',\n onChange: () => {}\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"ready.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _default2.default.props, {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
14
  state: 'success',
15
15
  message: 'Your file is successfully imported!',
16
16
  type: 'video',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success-video.js"],"names":["props","Default","state","message","type","fields","title","value","onDelete","console","log"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AAZb;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'video',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete')\n }\n};\n"],"file":"success-video.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success-video.js"],"names":["props","Default","state","message","type","fields","title","value","onDelete","console","log"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AAZb;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'video',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete')\n }\n};\n"],"file":"success-video.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var _default = {
13
- props: _extends({}, _default2.default.props, {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
14
  state: 'success',
15
15
  message: 'Your file is successfully imported!',
16
16
  type: 'scorm',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success.js"],"names":["props","Default","state","message","type","fields","title","value","onDelete","console","log","mode"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAZb;AAaHC,IAAAA,IAAI,EAAE;AAbH;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"success.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success.js"],"names":["props","Default","state","message","type","fields","title","value","onDelete","console","log","mode"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAQD,KADR;AAEHE,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAZb;AAaHC,IAAAA,IAAI,EAAE;AAbH;AADQ,C","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"success.js"}
@@ -37,7 +37,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
37
37
  stopPropagation: () => t.pass()
38
38
  };
39
39
 
40
- const props = _extends({}, _ready.default.props, {
40
+ const props = _extends(_extends({}, _ready.default.props), {}, {
41
41
  onBack: () => t.pass()
42
42
  });
43
43
 
@@ -55,7 +55,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
55
55
  stopPropagation: () => t.pass()
56
56
  };
57
57
 
58
- const props = _extends({}, _ready.default.props, {
58
+ const props = _extends(_extends({}, _ready.default.props), {}, {
59
59
  onDelete: () => t.pass()
60
60
  });
61
61
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/drag-and-drop/test/on-click.js"],"names":["adapter","Adapter","t","plan","clickEvent","preventDefault","pass","stopPropagation","props","readyFixture","onBack","backStyle","style","back","wrapper","wrappingComponent","is","find","exists","simulate","onDelete","deleteButtonStyle","uploadReportStyle","trashIcon"],"mappings":";;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,iCAAL,EAAwCC,CAAC,IAAI;AAC3CA,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,QAAME,KAAK,gBACNC,eAAaD,KADP;AAETE,IAAAA,MAAM,EAAE,MAAMR,CAAC,CAACI,IAAF;AAFL,IAAX;;AAIA,QAAMK,SAAS,GAAI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import {replace} from 'lodash/fp';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {wrappingComponent} from '../../../test/helpers/render-component';\nimport style from '../style.css'; // eslint-disable-line css-modules/no-unused-class\nimport uploadReportStyle from '../upload-report.css'; // eslint-disable-line css-modules/no-unused-class\nimport DragDrop from '..';\nimport readyFixture from './fixtures/ready';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should call the onBack function', t => {\n t.plan(4);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {\n ...readyFixture.props,\n onBack: () => t.pass()\n };\n const backStyle = `.${replace(' ', '.', style.back)}`;\n const wrapper = mount(<DragDrop {...props} />, {wrappingComponent});\n\n t.is(wrapper.find(backStyle).exists(), true);\n\n wrapper.find(backStyle).simulate('click', clickEvent);\n});\n\ntest('should call the onDelete function', t => {\n t.plan(7);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {\n ...readyFixture.props,\n onDelete: () => t.pass()\n };\n const deleteButtonStyle = `.${replace(' ', '.', uploadReportStyle.trashIcon)}`;\n const wrapper = mount(<DragDrop {...props} />, {wrappingComponent});\n\n t.is(wrapper.find(deleteButtonStyle).exists(), true);\n\n wrapper.find(deleteButtonStyle).simulate('click', clickEvent);\n});\n"],"file":"on-click.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/drag-and-drop/test/on-click.js"],"names":["adapter","Adapter","t","plan","clickEvent","preventDefault","pass","stopPropagation","props","readyFixture","onBack","backStyle","style","back","wrapper","wrappingComponent","is","find","exists","simulate","onDelete","deleteButtonStyle","uploadReportStyle","trashIcon"],"mappings":";;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,iCAAL,EAAwCC,CAAC,IAAI;AAC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AACO,IAAAA,iBAAiB,EAAjBA;AAAD,GAA/B,CAAhB;AAEAb,EAAAA,CAAC,CAACc,EAAF,CAAKF,OAAO,CAACG,IAAR,CAAaI,iBAAb,EAAgCH,MAAhC,EAAL,EAA+C,IAA/C;AAEAJ,EAAAA,OAAO,CAACG,IAAR,CAAaI,iBAAb,EAAgCF,QAAhC,CAAyC,OAAzC,EAAkDf,UAAlD;AACD,CAdD","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {replace} from 'lodash/fp';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {wrappingComponent} from '../../../test/helpers/render-component';\nimport style from '../style.css'; // eslint-disable-line css-modules/no-unused-class\nimport uploadReportStyle from '../upload-report.css'; // eslint-disable-line css-modules/no-unused-class\nimport DragDrop from '..';\nimport readyFixture from './fixtures/ready';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should call the onBack function', t => {\n t.plan(4);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {\n ...readyFixture.props,\n onBack: () => t.pass()\n };\n const backStyle = `.${replace(' ', '.', style.back)}`;\n const wrapper = mount(<DragDrop {...props} />, {wrappingComponent});\n\n t.is(wrapper.find(backStyle).exists(), true);\n\n wrapper.find(backStyle).simulate('click', clickEvent);\n});\n\ntest('should call the onDelete function', t => {\n t.plan(7);\n\n const clickEvent = {preventDefault: () => t.pass(), stopPropagation: () => t.pass()};\n const props = {\n ...readyFixture.props,\n onDelete: () => t.pass()\n };\n const deleteButtonStyle = `.${replace(' ', '.', uploadReportStyle.trashIcon)}`;\n const wrapper = mount(<DragDrop {...props} />, {wrappingComponent});\n\n t.is(wrapper.find(deleteButtonStyle).exists(), true);\n\n wrapper.find(deleteButtonStyle).simulate('click', clickEvent);\n});\n"],"file":"on-click.js"}
@@ -33,9 +33,9 @@ var _button = _interopRequireDefault(require("../../atom/button"));
33
33
 
34
34
  var _uploadReport = _interopRequireDefault(require("./upload-report.css"));
35
35
 
36
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
37
37
 
38
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
38
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
39
 
40
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
41
 
@@ -168,7 +168,7 @@ UploadReport.propTypes = process.env.NODE_ENV !== "production" ? {
168
168
  warningMessage: _propTypes.default.string,
169
169
  orLabel: _propTypes.default.string,
170
170
  type: _propTypes.default.string,
171
- fields: _propTypes.default.arrayOf(_propTypes.default.shape(_extends({}, _inputText.default.propTypes, {
171
+ fields: _propTypes.default.arrayOf(_propTypes.default.shape(_extends(_extends({}, _inputText.default.propTypes), {}, {
172
172
  type: _propTypes.default.oneOf(['text'])
173
173
  }))),
174
174
  mode: _propTypes.default.oneOf(['edit', 'upload']),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/drag-and-drop/upload-report.js"],"names":["UploadReport","state","message","warningMessage","type","contentType","fields","mode","orLabel","buttonTitle","primaryColor","onDelete","handleDelete","e","stopPropagation","preventDefault","stopPropagationHandler","SuccessMessage","style","emoticon","ErrorMessage","selectButton","backgroundColor","showMessage","includes","fileName","fileView","fileWrapper","validateIcon","warning","showToolTip","warningIcon","emptyFileWrapper","IconType","EXTERNAL_CONTENT_ICONS","icon","iconColor","color","buildField","field","index","deleteView","actionIcon","trashIcon","fieldsList","convert","cap","reportingContainer","reportHeader","iconContainer","oval","iconHeader","reportContainer","or","drop","propTypes","PropTypes","string","isRequired","arrayOf","shape","InputText","oneOf","func"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAKA;;AAEA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEO,MAAMA,YAAY,GAAG,CAAC;AAC3BC,EAAAA,KAD2B;AAE3BC,EAAAA,OAF2B;AAG3BC,EAAAA,cAH2B;AAI3BC,EAAAA,IAAI,EAAEC,WAJqB;AAK3BC,EAAAA,MAL2B;AAM3BC,EAAAA,IAAI,GAAG,QANoB;AAO3BC,EAAAA,OAP2B;AAQ3BC,EAAAA,WAR2B;AAS3BC,EAAAA,YAT2B;AAU3BC,EAAAA;AAV2B,CAAD,KAWtB;AACJ,QAAMC,YAAY,GAAG,wBACnBC,CAAC,IAAI;AACHA,IAAAA,CAAC,CAAC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UADD;AAEvBxD,EAAAA,OAAO,EAAEsD,mBAAUC,MAAV,CAAiBC,UAFH;AAGvBvD,EAAAA,cAAc,EAAEqD,mBAAUC,MAHH;AAIvBjD,EAAAA,OAAO,EAAEgD,mBAAUC,MAJI;AAKvBrD,EAAAA,IAAI,EAAEoD,mBAAUC,MALO;AAMvBnD,EAAAA,MAAM,EAAEkD,mBAAUG,OAAV,CACNH,mBAAUI,KAAV,cACKC,mBAAUN,SADf;AAEEnD,IAAAA,IAAI,EAAEoD,mBAAUM,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAFR,KADM,CANe;AAYvBvD,EAAAA,IAAI,EAAEiD,mBAAUM,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,CAAhB,CAZiB;AAavBrD,EAAAA,WAAW,EAAE+C,mBAAUC,MAbA;AAcvB/C,EAAAA,YAAY,EAAE8C,mBAAUC,MAdD;AAevB9C,EAAAA,QAAQ,EAAE6C,mBAAUO;AAfG,CAAzB","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyValidate as Validated,\n NovaLineContentEditionBin as TrashIcon,\n NovaCompositionCoorpacademyWarn as WarnIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport {pipe, split, last, map, head, getOr, isEmpty} from 'lodash/fp';\nimport {EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport InputText from '../../atom/input-text';\n\nimport Button from '../../atom/button';\nimport style from './upload-report.css';\n\nexport const UploadReport = ({\n state,\n message,\n warningMessage,\n type: contentType,\n fields,\n mode = 'upload',\n orLabel,\n buttonTitle,\n primaryColor,\n onDelete\n}) => {\n const handleDelete = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onDelete && onDelete(e);\n },\n [onDelete]\n );\n\n const stopPropagationHandler = useCallback(e => {\n e.stopPropagation();\n e.preventDefault();\n }, []);\n\n const SuccessMessage = () => (\n <div>\n <span className={style.emoticon}>🎉</span>\n <p className={style.message}>{message}</p>\n </div>\n );\n const ErrorMessage = () => (\n <div>\n <div>\n <span className={style.emoticon}>🥺</span>\n <p className={style.message}>{message}</p>\n </div>\n <div>\n <Button\n data-name=\"cta\"\n type=\"link\"\n submitValue={buttonTitle}\n className={style.selectButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n </div>\n );\n const showMessage = ['success', 'error'].includes(state);\n\n const fileName = pipe(head, getOr('', 'value'), split('/'), last)(fields);\n const fileView = fileName ? (\n <div className={style.fileWrapper}>\n <div className={style.fileName} title={fileName}>\n {fileName}\n </div>\n {isEmpty(warningMessage) ? (\n <Validated className={style.validateIcon} />\n ) : (\n <div className={style.warning}>\n <div className={style.showToolTip}>\n <span>{warningMessage}</span>\n </div>\n <div className={style.warningIcon}>\n <WarnIcon width={11} height={11} />\n </div>\n </div>\n )}\n </div>\n ) : (\n <div className={style.emptyFileWrapper} />\n );\n const IconType = EXTERNAL_CONTENT_ICONS[contentType].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[contentType].color;\n const buildField = (field, index) => <InputText {...field} key={index} theme={'cockpit'} />;\n const deleteView = onDelete ? (\n <div onClick={handleDelete} className={classnames(style.actionIcon, style.trashIcon)}>\n <TrashIcon width={20} height={20} />\n </div>\n ) : null;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n return (\n <div className={style.reportingContainer}>\n <div className={style.reportHeader} onClick={stopPropagationHandler}>\n <div className={style.iconContainer} style={{backgroundColor: iconColor}}>\n <div className={style.oval}>\n <IconType className={style.iconHeader} color={iconColor} />\n </div>\n </div>\n {fileView}\n {deleteView}\n </div>\n <div className={style.reportContainer} onClick={stopPropagationHandler}>\n {state === 'success' ? <SuccessMessage /> : null}\n {state === 'error' ? <ErrorMessage /> : null}\n {mode === 'edit' && !showMessage ? <div>{fieldsList}</div> : null}\n {mode === 'edit' && !showMessage ? <span className={style.or}>{orLabel}</span> : null}\n </div>\n {!showMessage ? (\n <div className={style.drop}>\n <p className={style.message}>{message}</p>\n <Button\n data-name=\"cta\"\n type=\"link\"\n submitValue={buttonTitle}\n className={style.selectButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default UploadReport;\n\nUploadReport.propTypes = {\n state: PropTypes.string.isRequired,\n message: PropTypes.string.isRequired,\n warningMessage: PropTypes.string,\n orLabel: PropTypes.string,\n type: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n mode: PropTypes.oneOf(['edit', 'upload']),\n buttonTitle: PropTypes.string,\n primaryColor: PropTypes.string,\n onDelete: PropTypes.func\n};\n"],"file":"upload-report.js"}
1
+ {"version":3,"sources":["../../../src/molecule/drag-and-drop/upload-report.js"],"names":["UploadReport","state","message","warningMessage","type","contentType","fields","mode","orLabel","buttonTitle","primaryColor","onDelete","handleDelete","e","stopPropagation","preventDefault","stopPropagationHandler","SuccessMessage","style","emoticon","ErrorMessage","selectButton","backgroundColor","showMessage","includes","fileName","fileView","fileWrapper","validateIcon","warning","showToolTip","warningIcon","emptyFileWrapper","IconType","EXTERNAL_CONTENT_ICONS","icon","iconColor","color","buildField","field","index","deleteView","actionIcon","trashIcon","fieldsList","convert","cap","reportingContainer","reportHeader","iconContainer","oval","iconHeader","reportContainer","or","drop","propTypes","PropTypes","string","isRequired","arrayOf","shape","InputText","oneOf","func"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAKA;;AAEA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEO,MAAMA,YAAY,GAAG,CAAC;AAC3BC,EAAAA,KAD2B;AAE3BC,EAAAA,OAF2B;AAG3BC,EAAAA,cAH2B;AAI3BC,EAAAA,IAAI,EAAEC,WAJqB;AAK3BC,EAAAA,MAL2B;AAM3BC,EAAAA,IAAI,GAAG,QANoB;AAO3BC,EAAAA,OAP2B;AAQ3BC,EAAAA,WAR2B;AAS3BC,EAAAA,YAT2B;AAU3BC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HQV,Y;;AAEfA,YAAY,CAACuD,SAAb,2CAAyB;AACvBtD,EAAAA,KAAK,EAAEuD,mBAAUC,MAAV,CAAiBC,UADD;AAEvBxD,EAAAA,OAAO,EAAEsD,mBAAUC,MAAV,CAAiBC,UAFH;AAGvBvD,EAAAA,cAAc,EAAEqD,mBAAUC,MAHH;AAIvBjD,EAAAA,OAAO,EAAEgD,mBAAUC,MAJI;AAKvBrD,EAAAA,IAAI,EAAEoD,mBAAUC,MALO;AAMvBnD,EAAAA,MAAM,EAAEkD,mBAAUG,OAAV,CACNH,mBAAUI,KAAV,uBACKC,mBAAUN,SADf;AAEEnD,IAAAA,IAAI,EAAEoD,mBAAUM,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAFR,KADM,CANe;AAYvBvD,EAAAA,IAAI,EAAEiD,mBAAUM,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,CAAhB,CAZiB;AAavBrD,EAAAA,WAAW,EAAE+C,mBAAUC,MAbA;AAcvB/C,EAAAA,YAAY,EAAE8C,mBAAUC,MAdD;AAevB9C,EAAAA,QAAQ,EAAE6C,mBAAUO;AAfG,CAAzB","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyValidate as Validated,\n NovaLineContentEditionBin as TrashIcon,\n NovaCompositionCoorpacademyWarn as WarnIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport {pipe, split, last, map, head, getOr, isEmpty} from 'lodash/fp';\nimport {EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport InputText from '../../atom/input-text';\n\nimport Button from '../../atom/button';\nimport style from './upload-report.css';\n\nexport const UploadReport = ({\n state,\n message,\n warningMessage,\n type: contentType,\n fields,\n mode = 'upload',\n orLabel,\n buttonTitle,\n primaryColor,\n onDelete\n}) => {\n const handleDelete = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onDelete && onDelete(e);\n },\n [onDelete]\n );\n\n const stopPropagationHandler = useCallback(e => {\n e.stopPropagation();\n e.preventDefault();\n }, []);\n\n const SuccessMessage = () => (\n <div>\n <span className={style.emoticon}>🎉</span>\n <p className={style.message}>{message}</p>\n </div>\n );\n const ErrorMessage = () => (\n <div>\n <div>\n <span className={style.emoticon}>🥺</span>\n <p className={style.message}>{message}</p>\n </div>\n <div>\n <Button\n data-name=\"cta\"\n type=\"link\"\n submitValue={buttonTitle}\n className={style.selectButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n </div>\n );\n const showMessage = ['success', 'error'].includes(state);\n\n const fileName = pipe(head, getOr('', 'value'), split('/'), last)(fields);\n const fileView = fileName ? (\n <div className={style.fileWrapper}>\n <div className={style.fileName} title={fileName}>\n {fileName}\n </div>\n {isEmpty(warningMessage) ? (\n <Validated className={style.validateIcon} />\n ) : (\n <div className={style.warning}>\n <div className={style.showToolTip}>\n <span>{warningMessage}</span>\n </div>\n <div className={style.warningIcon}>\n <WarnIcon width={11} height={11} />\n </div>\n </div>\n )}\n </div>\n ) : (\n <div className={style.emptyFileWrapper} />\n );\n const IconType = EXTERNAL_CONTENT_ICONS[contentType].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[contentType].color;\n const buildField = (field, index) => <InputText {...field} key={index} theme={'cockpit'} />;\n const deleteView = onDelete ? (\n <div onClick={handleDelete} className={classnames(style.actionIcon, style.trashIcon)}>\n <TrashIcon width={20} height={20} />\n </div>\n ) : null;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n return (\n <div className={style.reportingContainer}>\n <div className={style.reportHeader} onClick={stopPropagationHandler}>\n <div className={style.iconContainer} style={{backgroundColor: iconColor}}>\n <div className={style.oval}>\n <IconType className={style.iconHeader} color={iconColor} />\n </div>\n </div>\n {fileView}\n {deleteView}\n </div>\n <div className={style.reportContainer} onClick={stopPropagationHandler}>\n {state === 'success' ? <SuccessMessage /> : null}\n {state === 'error' ? <ErrorMessage /> : null}\n {mode === 'edit' && !showMessage ? <div>{fieldsList}</div> : null}\n {mode === 'edit' && !showMessage ? <span className={style.or}>{orLabel}</span> : null}\n </div>\n {!showMessage ? (\n <div className={style.drop}>\n <p className={style.message}>{message}</p>\n <Button\n data-name=\"cta\"\n type=\"link\"\n submitValue={buttonTitle}\n className={style.selectButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default UploadReport;\n\nUploadReport.propTypes = {\n state: PropTypes.string.isRequired,\n message: PropTypes.string.isRequired,\n warningMessage: PropTypes.string,\n orLabel: PropTypes.string,\n type: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n mode: PropTypes.oneOf(['edit', 'upload']),\n buttonTitle: PropTypes.string,\n primaryColor: PropTypes.string,\n onDelete: PropTypes.func\n};\n"],"file":"upload-report.js"}
@@ -29,6 +29,8 @@ function ExternalContentViewer(props) {
29
29
  contentType,
30
30
  mode = 'default'
31
31
  } = props;
32
+ const isPdf = url.includes('.pdf');
33
+ const googleViewer = `https://docs.google.com/viewerng/viewer?embedded=true&url=${url}`;
32
34
  return (0, _startsWith2.default)('audio', contentType) ? /*#__PURE__*/_react.default.createElement("div", {
33
35
  className: podcastWrapperStyle[mode]
34
36
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -48,7 +50,7 @@ function ExternalContentViewer(props) {
48
50
  src: url,
49
51
  type: contentType
50
52
  }))) : /*#__PURE__*/_react.default.createElement("iframe", {
51
- src: url,
53
+ src: isPdf ? googleViewer : url,
52
54
  frameBorder: 0,
53
55
  className: iframeStyle[mode],
54
56
  allowFullScreen: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/external-content-viewer/index.js"],"names":["podcastWrapperStyle","default","style","podcastWrapper","cockpit","podcastWrapperCockpit","iframeStyle","iframe","iframeCockpit","ExternalContentViewer","props","url","backgroundImageUrl","contentType","mode","bgPodcast","backgroundImage","podcast","propTypes","PropTypes","string","isRequired"],"mappings":";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iBC,UADU;AAEhCT,EAAAA,kBAAkB,EAAEO,mBAAUC,MAFE;AAGhCP,EAAAA,WAAW,EAAEM,mBAAUC,MAHS;AAIhCN,EAAAA,IAAI,EAAEK,mBAAUC;AAJgB,CAAlC;eAOeX,qB","sourcesContent":["import React from 'react';\nimport {startsWith} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst podcastWrapperStyle = {\n default: style.podcastWrapper,\n cockpit: style.podcastWrapperCockpit\n};\n\nconst iframeStyle = {\n default: style.iframe,\n cockpit: style.iframeCockpit\n};\n\nfunction ExternalContentViewer(props) {\n const {url, backgroundImageUrl, contentType, mode = 'default'} = props;\n\n return startsWith('audio', contentType) ? (\n <div className={podcastWrapperStyle[mode]}>\n <div\n className={style.bgPodcast}\n style={{backgroundImage: backgroundImageUrl && `url(${backgroundImageUrl})`}}\n />\n <audio\n className={style.podcast}\n controls\n controlsList=\"nodownload\"\n autoPlay=\"\"\n name=\"media\"\n data-name=\"external-content-podcast\"\n preload=\"auto\"\n >\n <source src={url} type={contentType} />\n </audio>\n </div>\n ) : (\n <iframe\n src={url}\n frameBorder={0}\n className={iframeStyle[mode]}\n allowFullScreen\n data-name=\"external-content-iframe\"\n />\n );\n}\n\nExternalContentViewer.propTypes = {\n url: PropTypes.string.isRequired,\n backgroundImageUrl: PropTypes.string,\n contentType: PropTypes.string,\n mode: PropTypes.string\n};\n\nexport default ExternalContentViewer;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/external-content-viewer/index.js"],"names":["podcastWrapperStyle","default","style","podcastWrapper","cockpit","podcastWrapperCockpit","iframeStyle","iframe","iframeCockpit","ExternalContentViewer","props","url","backgroundImageUrl","contentType","mode","isPdf","includes","googleViewer","bgPodcast","backgroundImage","podcast","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;AAEA,MAAMA,mBAAmB,GAAG;AAC1BC,EAAAA,OAAO,EAAEC,eAAMC,cADW;A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,EAAAA,GAAG,EAAEW,mBAAUC,MAAV,CAAiBC,UADU;AAEhCZ,EAAAA,kBAAkB,EAAEU,mBAAUC,MAFE;AAGhCV,EAAAA,WAAW,EAAES,mBAAUC,MAHS;AAIhCT,EAAAA,IAAI,EAAEQ,mBAAUC;AAJgB,CAAlC;eAOed,qB","sourcesContent":["import React from 'react';\nimport {startsWith} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst podcastWrapperStyle = {\n default: style.podcastWrapper,\n cockpit: style.podcastWrapperCockpit\n};\n\nconst iframeStyle = {\n default: style.iframe,\n cockpit: style.iframeCockpit\n};\n\nfunction ExternalContentViewer(props) {\n const {url, backgroundImageUrl, contentType, mode = 'default'} = props;\n const isPdf = url.includes('.pdf');\n const googleViewer = `https://docs.google.com/viewerng/viewer?embedded=true&url=${url}`;\n\n return startsWith('audio', contentType) ? (\n <div className={podcastWrapperStyle[mode]}>\n <div\n className={style.bgPodcast}\n style={{backgroundImage: backgroundImageUrl && `url(${backgroundImageUrl})`}}\n />\n <audio\n className={style.podcast}\n controls\n controlsList=\"nodownload\"\n autoPlay=\"\"\n name=\"media\"\n data-name=\"external-content-podcast\"\n preload=\"auto\"\n >\n <source src={url} type={contentType} />\n </audio>\n </div>\n ) : (\n <iframe\n src={isPdf ? googleViewer : url}\n frameBorder={0}\n className={iframeStyle[mode]}\n allowFullScreen\n data-name=\"external-content-iframe\"\n />\n );\n}\n\nExternalContentViewer.propTypes = {\n url: PropTypes.string.isRequired,\n backgroundImageUrl: PropTypes.string,\n contentType: PropTypes.string,\n mode: PropTypes.string\n};\n\nexport default ExternalContentViewer;\n"],"file":"index.js"}
@@ -21,9 +21,9 @@ var _resourcePlayer = _interopRequireWildcard(require("../resource-player"));
21
21
 
22
22
  var _style2 = _interopRequireDefault(require("./style.css"));
23
23
 
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
25
25
 
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
29
 
@@ -37,7 +37,7 @@ const Feedback = (props, context) => {
37
37
  description
38
38
  } = props;
39
39
 
40
- const resource = media && media.type && _extends({}, media, (0, _pipe2.default)((0, _get2.default)('src.0'), (0, _extend2.default)({
40
+ const resource = media && media.type && _extends(_extends({}, media), (0, _pipe2.default)((0, _get2.default)('src.0'), (0, _extend2.default)({
41
41
  description: mediaDescription
42
42
  }))(media));
43
43
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/feedback/index.js"],"names":["Feedback","props","context","media","mediaDescription","title","description","resource","type","style","feedback","innerHTML","__html","descWrapper","resourcePlayer","propTypes","PropTypes","string","shape","oneOf","TYPE_IMAGE","TYPE_PDF","TYPE_VIDEO","TYPE_AUDIO","src","array"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACnC,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,gBAAR;AAA0BC,IAAAA,KAA1B;AAAiCC,IAAAA;AAAjC,MAAgDL,KAAtD;;AACA,QAAMM,QAAQ,GAAGJ,KAAK,IACpBA,KAAK,CAACK,IADS,iBAEVL,KAFU,EAGV,oBAAK,mBAAI,OAAJ,CAAL,EAAmB,sBAAO;AAACG,IAAAA,WAAW,EAAEF;AAAd,GAAP,CAAnB,EAA4DD,KAA5D,CAHU,CAAjB;;AAMA,SACE,CAACI,QAAQ,IAAIF,KAAZ,IAAqBC,WAArB,gBACC;AAAK,IAAA,SAAS,EAAEG,gBAAMC,QAAtB;AAAgC,iBAAU;AAA1C,kBACE;AACE,IAAA,SAAS,EAAE,yBAAWD,gBAAMJ,KAAjB,EAAwBM,gBAAxB,CADb;AAEE,iBAAU,OAFZ,CAGE;AAHF;AAIE,IAAA,uBAAuB,EAAE;AAACC,MAAAA,MAAM,EAAEP;AAAT;AAJ3B,IADF,eAOE;AAAK,IAAA,SAAS,EAAEI,gBAAMI;AAAtB,kBACE;AACE,IAAA,SAAS,EAAE,yBAAWJ,gBAAMH,WAAjB,EAA8BK,gBAA9B,CADb;AAEE,iBAAU,aAFZ,CAGE;AAHF;AAIE,IAAA,uBAAuB,EAAE;AAACC,MAAAA,MAAM,EAAEN;AAAT;AAJ3B,IADF,EAOGC,QAAQ,gBACP,uDACE,6BAAC,uBAAD;AAAgB,IAAA,SAAS,EAAEE,gBAAMK,cAAjC;AAAiD,IAAA,QAAQ,EAAEP;AAA3D,IADF,eAEE;AACE,iBAAU,kBADZ;AAEE,IAAA,SAAS,EAAE,yBAAWE,gBAAML,gBAAjB,EAAmCO,gBAAnC,CAFb,CAGE;AAHF;AAIE,IAAA,uBAAuB,EAAE;AAACC,MAAAA,MAAM,EAAER;AAAT;AAJ3B,IAFF,CADO,GAUL,IAjBN,CAPF,CADD,GA4BG,IA5BJ,KA4Ba,EA7Bf;AA+BD,CAvCD;;AAyCAJ,QAAQ,CAACe,SAAT,2CAAqB;AACnBV,EAAAA,KAAK,EAAEW,mBAAUC,MADE;AAEnBX,EAAAA,WAAW,EAAEU,mBAAUC,MAFJ;AAGnBd,EAAAA,KAAK,EAAEa,mBAAUE,KAAV,CAAgB;AACrBV,IAAAA,IAAI,EAAEQ,mBAAUG,KAAV,CAAgB,CAACC,0BAAD,EAAaC,wBAAb,EAAuBC,0BAAvB,EAAmCC,0BAAnC,CAAhB,CADe;AAErBC,IAAAA,GAAG,EAAER,mBAAUS;AAFM,GAAhB,CAHY;AAOnBrB,EAAAA,gBAAgB,EAAEY,mBAAUC;AAPT,CAArB;eAUejB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {pipe, get, extend} from 'lodash/fp';\nimport classnames from 'classnames';\n\nimport {innerHTML} from '../../atom/label/style.css';\nimport ResourcePlayer, {TYPE_IMAGE, TYPE_VIDEO, TYPE_PDF, TYPE_AUDIO} from '../resource-player';\nimport style from './style.css';\n\nconst Feedback = (props, context) => {\n const {media, mediaDescription, title, description} = props;\n const resource = media &&\n media.type && {\n ...media,\n ...pipe(get('src.0'), extend({description: mediaDescription}))(media)\n };\n\n return (\n (resource || title || description ? (\n <div className={style.feedback} data-name=\"feedback\">\n <div\n className={classnames(style.title, innerHTML)}\n data-name=\"title\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div className={style.descWrapper}>\n <div\n className={classnames(style.description, innerHTML)}\n data-name=\"description\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n {resource ? (\n <div>\n <ResourcePlayer className={style.resourcePlayer} resource={resource} />\n <div\n data-name=\"mediaDescription\"\n className={classnames(style.mediaDescription, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: mediaDescription}}\n />\n </div>\n ) : null}\n </div>\n </div>\n ) : null) || ''\n );\n};\n\nFeedback.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape({\n type: PropTypes.oneOf([TYPE_IMAGE, TYPE_PDF, TYPE_VIDEO, TYPE_AUDIO]),\n src: PropTypes.array\n }),\n mediaDescription: PropTypes.string\n};\n\nexport default Feedback;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/feedback/index.js"],"names":["Feedback","props","context","media","mediaDescription","title","description","resource","type","style","feedback","innerHTML","__html","descWrapper","resourcePlayer","propTypes","PropTypes","string","shape","oneOf","TYPE_IMAGE","TYPE_PDF","TYPE_VIDEO","TYPE_AUDIO","src","array"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACnC,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,gBAAR;AAA0BC,IAAAA,KAA1B;AAAiCC,IAAAA;AAAjC,MAAgDL,KAAtD;;AACA,QAAMM,QAAQ,GAAGJ,KAAK,IACpBA,KAAK,CAACK,IADS,0BAEVL,KAFU,GAGV,oBAAK,mBAAI,OAAJ,CAAL,EAAmB,sBAAO;AAACG,IAAAA,WAAW,EAAEF;AAAd,GAAP,CAAnB,EAA4DD,KAA5D,CAHU,CAAjB;;AA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BAAUS;AAFM,GAAhB,CAHY;AAOnBrB,EAAAA,gBAAgB,EAAEY,mBAAUC;AAPT,CAArB;eAUejB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {pipe, get, extend} from 'lodash/fp';\nimport classnames from 'classnames';\n\nimport {innerHTML} from '../../atom/label/style.css';\nimport ResourcePlayer, {TYPE_IMAGE, TYPE_VIDEO, TYPE_PDF, TYPE_AUDIO} from '../resource-player';\nimport style from './style.css';\n\nconst Feedback = (props, context) => {\n const {media, mediaDescription, title, description} = props;\n const resource = media &&\n media.type && {\n ...media,\n ...pipe(get('src.0'), extend({description: mediaDescription}))(media)\n };\n\n return (\n (resource || title || description ? (\n <div className={style.feedback} data-name=\"feedback\">\n <div\n className={classnames(style.title, innerHTML)}\n data-name=\"title\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div className={style.descWrapper}>\n <div\n className={classnames(style.description, innerHTML)}\n data-name=\"description\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n {resource ? (\n <div>\n <ResourcePlayer className={style.resourcePlayer} resource={resource} />\n <div\n data-name=\"mediaDescription\"\n className={classnames(style.mediaDescription, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: mediaDescription}}\n />\n </div>\n ) : null}\n </div>\n </div>\n ) : null) || ''\n );\n};\n\nFeedback.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n media: PropTypes.shape({\n type: PropTypes.oneOf([TYPE_IMAGE, TYPE_PDF, TYPE_VIDEO, TYPE_AUDIO]),\n src: PropTypes.array\n }),\n mediaDescription: PropTypes.string\n};\n\nexport default Feedback;\n"],"file":"index.js"}
@@ -22,7 +22,7 @@ var _default = {
22
22
  filterCTALabel: 'Filter',
23
23
  sortTabLabel: 'Sort by',
24
24
  sortCTALabel: 'Sort',
25
- filters: [_extends({}, selectFilter, {
25
+ filters: [_extends(_extends({}, selectFilter), {}, {
26
26
  type: 'select',
27
27
  fieldName: 'Thematic',
28
28
  title: 'Thematic:',
@@ -40,7 +40,7 @@ var _default = {
40
40
  selected: false
41
41
  }],
42
42
  onChange: value => console.log(value)
43
- }), _extends({}, selectFilter, {
43
+ }), _extends(_extends({}, selectFilter), {}, {
44
44
  type: 'select',
45
45
  fieldName: 'Courses',
46
46
  title: 'Learning Paths:',
@@ -62,13 +62,13 @@ var _default = {
62
62
  selected: false
63
63
  }],
64
64
  onChange: value => console.log(value)
65
- }), _extends({}, types, {
65
+ }), _extends(_extends({}, types), {}, {
66
66
  type: 'radio',
67
67
  fieldName: 'contentType',
68
68
  title: 'Type:',
69
69
  onChange: value => console.log(value)
70
70
  })],
71
- sorting: _extends({}, selectSort, {
71
+ sorting: _extends(_extends({}, selectSort), {}, {
72
72
  title: 'Sort by:',
73
73
  options: [{
74
74
  name: 'Position',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/filters/test/fixtures/default.js"],"names":["selectFilter","dropdownsFilter","props","selectSort","dropdownsSort","types","RadioGroup","filterTabLabel","filterCTALabel","sortTabLabel","sortCTALabel","filters","type","fieldName","title","options","name","value","selected","onChange","console","log","sorting","onSearch"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;;;AAEA,MAAMA,YAAY,GAAGC,gBAAgBC,KAArC;AACA,MAAMC,UAAU,GAAGC,cAAcF,KAAjC;AACA,MAAMG,KAAK,GAAGC,kBAAWJ,KAAzB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLK,IAAAA,cAAc,EAAE,QADX;AAELC,IAAAA,cAAc,EAAE,QAFX;AAGLC,IAAAA,YAAY,EAAE,SAHT;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,OAAO,EAAE,cAEFX,YAFE;AAGLY,MAAAA,IAAI,EAAE,QAHD;AAILC,MAAAA,SAAS,EAAE,UAJN;AAKLC,MAAAA,KAAK,EAAE,WALF;AAMLC,MAAAA,OAAO,EAAE,CACP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AAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AA3Dd,OALJ;AAmELK,IAAAA,OAAO,eACFnB,UADE;AAELW,MAAAA,KAAK,EAAE,UAFF;AAGLC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,IAAI,EAAE,UADR;AAEEC,QAAAA,KAAK,EAAE,UAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OADO,EAMP;AACEF,QAAAA,IAAI,EAAE,cADR;AAEEC,QAAAA,KAAK,EAAE,cAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OANO,EAWP;AACEF,QAAAA,IAAI,EAAE,QADR;AAEEC,QAAAA,KAAK,EAAE,QAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAXO,CAHJ;AAoBLC,MAAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AApBd,MAnEF;AAyFLM,IAAAA,QAAQ,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,UAAZ;AAzFX;AADM,C","sourcesContent":["import dropdownsFilter from '../../../../atom/select/test/fixtures/filter';\nimport dropdownsSort from '../../../../atom/select/test/fixtures/sort';\nimport RadioGroup from '../../../../atom/radio-group/test/fixtures/default';\n\nconst selectFilter = dropdownsFilter.props;\nconst selectSort = dropdownsSort.props;\nconst types = RadioGroup.props;\n\nexport default {\n props: {\n filterTabLabel: 'Filter',\n filterCTALabel: 'Filter',\n sortTabLabel: 'Sort by',\n sortCTALabel: 'Sort',\n filters: [\n {\n ...selectFilter,\n type: 'select',\n fieldName: 'Thematic',\n title: 'Thematic:',\n options: [\n {\n name: 'digital',\n value: 'digital',\n selected: false\n },\n {\n name: 'Esprit du temps',\n value: 'Esprit du temps',\n selected: true\n },\n {\n name: 'La troisième révolution industrielle',\n value: 'La 3e révolution industrielle',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n {\n ...selectFilter,\n type: 'select',\n fieldName: 'Courses',\n title: 'Learning Paths:',\n options: [\n {\n name: 'All categories',\n value: 'ALL',\n selected: false\n },\n {\n name: 'Innovations & Technologies',\n value: 'Innovations',\n selected: true\n },\n {\n name: 'Management',\n value: 'Management',\n selected: false\n },\n {\n name: 'Sustainable development',\n value: 'Sustainable',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n {\n ...types,\n type: 'radio',\n fieldName: 'contentType',\n title: 'Type:',\n onChange: value => console.log(value)\n }\n ],\n sorting: {\n ...selectSort,\n title: 'Sort by:',\n options: [\n {\n name: 'Position',\n value: 'Position',\n selected: true\n },\n {\n name: 'Most popular',\n value: 'Most popular',\n selected: false\n },\n {\n name: 'Newest',\n value: 'Newest',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n onSearch: () => console.log('onSearch')\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/filters/test/fixtures/default.js"],"names":["selectFilter","dropdownsFilter","props","selectSort","dropdownsSort","types","RadioGroup","filterTabLabel","filterCTALabel","sortTabLabel","sortCTALabel","filters","type","fieldName","title","options","name","value","selected","onChange","console","log","sorting","onSearch"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;;;AAEA,MAAMA,YAAY,GAAGC,gBAAgBC,KAArC;AACA,MAAMC,UAAU,GAAGC,cAAcF,KAAjC;AACA,MAAMG,KAAK,GAAGC,kBAAWJ,KAAzB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLK,IAAAA,cAAc,EAAE,QADX;AAELC,IAAAA,cAAc,EAAE,QAFX;AAGLC,IAAAA,YAAY,EAAE,SAHT;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,OAAO,EAAE,uBAEFX,YAFE;AAGLY,MAAAA,IAAI,EAAE,QAHD;AAILC,MAAAA,SAAS,EAAE,UAJN;AAKLC,MAAAA,KAAK,EAAE,WALF;AAMLC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,IAAI,EAAE,SADR;AAEEC,Q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CAACC,GAAR,CAAYJ,KAAZ;AA3Dd,OALJ;AAmELK,IAAAA,OAAO,wBACFnB,UADE;AAELW,MAAAA,KAAK,EAAE,UAFF;AAGLC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,IAAI,EAAE,UADR;AAEEC,QAAAA,KAAK,EAAE,UAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OADO,EAMP;AACEF,QAAAA,IAAI,EAAE,cADR;AAEEC,QAAAA,KAAK,EAAE,cAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OANO,EAWP;AACEF,QAAAA,IAAI,EAAE,QADR;AAEEC,QAAAA,KAAK,EAAE,QAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAXO,CAHJ;AAoBLC,MAAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AApBd,MAnEF;AAyFLM,IAAAA,QAAQ,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,UAAZ;AAzFX;AADM,C","sourcesContent":["import dropdownsFilter from '../../../../atom/select/test/fixtures/filter';\nimport dropdownsSort from '../../../../atom/select/test/fixtures/sort';\nimport RadioGroup from '../../../../atom/radio-group/test/fixtures/default';\n\nconst selectFilter = dropdownsFilter.props;\nconst selectSort = dropdownsSort.props;\nconst types = RadioGroup.props;\n\nexport default {\n props: {\n filterTabLabel: 'Filter',\n filterCTALabel: 'Filter',\n sortTabLabel: 'Sort by',\n sortCTALabel: 'Sort',\n filters: [\n {\n ...selectFilter,\n type: 'select',\n fieldName: 'Thematic',\n title: 'Thematic:',\n options: [\n {\n name: 'digital',\n value: 'digital',\n selected: false\n },\n {\n name: 'Esprit du temps',\n value: 'Esprit du temps',\n selected: true\n },\n {\n name: 'La troisième révolution industrielle',\n value: 'La 3e révolution industrielle',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n {\n ...selectFilter,\n type: 'select',\n fieldName: 'Courses',\n title: 'Learning Paths:',\n options: [\n {\n name: 'All categories',\n value: 'ALL',\n selected: false\n },\n {\n name: 'Innovations & Technologies',\n value: 'Innovations',\n selected: true\n },\n {\n name: 'Management',\n value: 'Management',\n selected: false\n },\n {\n name: 'Sustainable development',\n value: 'Sustainable',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n {\n ...types,\n type: 'radio',\n fieldName: 'contentType',\n title: 'Type:',\n onChange: value => console.log(value)\n }\n ],\n sorting: {\n ...selectSort,\n title: 'Sort by:',\n options: [\n {\n name: 'Position',\n value: 'Position',\n selected: true\n },\n {\n name: 'Most popular',\n value: 'Most popular',\n selected: false\n },\n {\n name: 'Newest',\n value: 'Newest',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n onSearch: () => console.log('onSearch')\n }\n};\n"],"file":"default.js"}